diff --git a/assets/localization/en.json b/assets/localization/en.json index 718c9523e4..0329409e30 100644 --- a/assets/localization/en.json +++ b/assets/localization/en.json @@ -20,6 +20,7 @@ "%getResources_errorUninstallResource_resourceNotInstalled%": "Resource is not currently installed, so it can't be removed.", "%getResources_errorUninstallResource_localResourceNotFound%": "Resource cannot be located, so it can't be removed.", "%getResources_errorUninstallResource_localResourceStillPresent%": "Resource is still present. Removing failed.", + "%home_dialog_title%": "Home", "%insertNote%": "Insert Note", "%general_error_title%": "Error", "%general_loading%": "Loading", @@ -47,6 +48,32 @@ "%project_settings_platform_isEditable_description%": "Whether this project is editable. A project that is not editable is sometimes called a resource.", "%project_settings_platform_language_label%": "Project Primary Language", "%project_settings_platform_name_label%": "Project Short Name", + "%resources_action%": "Action", + "%resources_any%": "Any", + "%resources_dialog_subtitle%": "Add resources to Home", + "%resources_dialog_title%": "Get Resources", + "%resources_filterBy%": "Filter by", + "%resources_filterInput%": "Search by name, language, type", + "%resources_fullName%": "Full Name", + "%resources_get%": "Get", + "%resources_installed%": "Installed", + "%resources_language%": "Language", + "%resources_languages%": "Languages", + "%resources_loadingResources%": "Loading...", + "%resources_noResults%": "No results found", + "%resources_open%": "Open", + "%resources_remove%": "Remove", + "%resources_results%": "results", + "%resources_showing%": "Showing", + "%resources_size%": "Size", + "%resources_type%": "Type", + "%resources_types%": "Types", + "%resources_type_DBL%": "DBL Resource", + "%resources_type_ER%": "Enhanced Resource", + "%resources_type_SLR%": "Source Language Text", + "%resources_type_XR%": "XML Resource", + "%resources_type_unknown%": "Unknown resource type", + "%resources_update%": "Update", "%selectBooks_title_selectBooks%": "Select Books", "%selectMultipleProjects_title_selectProjects%": "Select Projects", "%selectProject_title%": "Select Project", diff --git a/extensions/src/platform-get-resources/contributions/localizedStrings.json b/extensions/src/platform-get-resources/contributions/localizedStrings.json index e47809202c..4c562e5a46 100644 --- a/extensions/src/platform-get-resources/contributions/localizedStrings.json +++ b/extensions/src/platform-get-resources/contributions/localizedStrings.json @@ -2,27 +2,6 @@ "metadata": {}, "localizedStrings": { "en": { - "%resources_action%": "Action", - "%resources_dialog_subtitle%": "Add resources to Home", - "%resources_dialog_title%": "Get Resources", - "%resources_filterInput%": "Search by name, language, type", - "%resources_fullName%": "Full Name", - "%resources_get%": "Get", - "%resources_installed%": "Installed", - "%resources_language%": "Language", - "%resources_languageFilter%": "Filter by language", - "%resources_loadingResources%": "Loading resources...", - "%resources_noResults%": "No results found", - "%resources_open%": "Open", - "%resources_remove%": "Remove", - "%resources_size%": "Size", - "%resources_type%": "Type", - "%resources_type_DBL%": "DBL Resource", - "%resources_type_ER%": "Enhanced Resource", - "%resources_type_SLR%": "Source Language Text", - "%resources_type_XR%": "XML Resource", - "%resources_type_unknown%": "Unknown resource type", - "%resources_update%": "Update", "%mainMenu_openGetResources%": "Get Resources" } } diff --git a/extensions/src/platform-get-resources/src/get-resources.web-view.tsx b/extensions/src/platform-get-resources/src/get-resources.web-view.tsx index 8cab55d868..b346a75d2d 100644 --- a/extensions/src/platform-get-resources/src/get-resources.web-view.tsx +++ b/extensions/src/platform-get-resources/src/get-resources.web-view.tsx @@ -1,7 +1,6 @@ import { WebViewProps } from '@papi/core'; import papi from '@papi/frontend'; import { useData, useDataProvider, useLocalizedStrings } from '@papi/frontend/react'; -import type { ResourceType } from 'platform-bible-utils'; import { FilterableResourceList, FILTERABLE_RESOURCE_LIST_STRING_KEYS } from 'platform-bible-react'; globalThis.webViewComponent = function GetResourcesDialog({ useWebViewState }: WebViewProps) { @@ -13,11 +12,11 @@ globalThis.webViewComponent = function GetResourcesDialog({ useWebViewState }: W 'platformGetResources.dblResourcesProvider', ).DblResources(undefined, []); - const [typeFilter, setTypeFilter] = useWebViewState('typeFilter', [ + const [selectedTypes, setSelectedTypes] = useWebViewState('typeFilter', [ 'DBLResource', ]); - const [languageFilter, setLanguageFilter] = useWebViewState('languageFilter', []); + const [selectedLanguages, setSelectedLanguages] = useWebViewState('languageFilter', []); const openResource = (projectId: string) => papi.commands.sendCommand('platformScriptureEditor.openResourceViewer', projectId); @@ -25,12 +24,12 @@ globalThis.webViewComponent = function GetResourcesDialog({ useWebViewState }: W return ( ('typeFilter', [ + const [selectedTypes, setSelectedTypes] = useWebViewState('typeFilter', [ 'DBLResource', ]); - const [languageFilter, setLanguageFilter] = useWebViewState('languageFilter', []); + const [selectedLanguages, setSelectedLanguages] = useWebViewState('languageFilter', []); const openResource = (projectId: string) => papi.commands.sendCommand('platformScriptureEditor.openResourceViewer', projectId); @@ -25,12 +24,12 @@ globalThis.webViewComponent = function GetResourcesDialog({ useWebViewState }: W return ( e[n]})}}return t.default=e,Object.freeze(t)}const D=je(g),fe=je(ds),ps=je(vl),Sn=je(xl),En=je(yl),Je=je(Nl),be=je(kl),Hr=je(jl),lr=je(Sl),ws=je(El),Pe=je(Cl),fs=je(Tl),Mn=je(Rl),Il=je(mn),hn=je(Ol),Xr=je(_l);const Ml=bl.extendTailwindMerge({prefix:"tw-"});function N(...e){return Ml(it.clsx(e))}const ut=g.forwardRef(({className:e,type:t,...n},r)=>a.jsx("input",{type:t,className:N("pr-twp tw-flex tw-h-10 tw-rounded-md tw-border tw-border-input tw-bg-background tw-px-3 tw-py-2 tw-text-sm tw-ring-offset-background file:tw-border-0 file:tw-bg-transparent file:tw-text-sm file:tw-font-medium file:tw-text-foreground placeholder:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50",e),ref:r,...n}));ut.displayName="Input";const $l="layoutDirection";function ye(){const e=localStorage.getItem($l);return e==="rtl"?e:"ltr"}const Al=g.forwardRef(({handleSearch:e,handleKeyDown:t,handleOnClick:n,handleSubmit:r,...o},s)=>{const i=ye();return a.jsxs("div",{className:"tw-relative",children:[a.jsx(ut,{...o,type:"text",className:N("tw-box-border tw-w-[200px] tw-gap-2.5 tw-rounded-lg tw-border tw-border-solid tw-bg-background tw-py-2 tw-pe-9 tw-ps-4 tw-font-medium tw-shadow-none tw-outline-none"),onChange:l=>e(l.target.value),onKeyDown:l=>{l.key==="Enter"&&r(),t(l)},onClick:n,ref:s}),a.jsx(Y.History,{className:N("tw-absolute tw-top-1/2 tw-h-4 tw-w-4 tw--translate-y-1/2 tw-transform tw-cursor-pointer tw-text-muted-foreground",{"tw-right-3":i==="ltr"},{"tw-left-3 tw-right-auto":i==="rtl"}),onClick:()=>{console.log("back in history")}})]})}),Gt=fe.Root,Cn=fe.Trigger,ms=fe.Group,Dl=fe.Portal,Bl=fe.Sub,Vl=fe.RadioGroup,hs=g.forwardRef(({className:e,inset:t,children:n,...r},o)=>a.jsxs(fe.SubTrigger,{ref:o,className:N("tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-px-2 tw-py-1.5 tw-text-sm tw-outline-none focus:tw-bg-accent data-[state=open]:tw-bg-accent",t&&"tw-pl-8",e),...r,children:[n,a.jsx(Y.ChevronRight,{className:"tw-ml-auto tw-h-4 tw-w-4"})]}));hs.displayName=fe.SubTrigger.displayName;const gs=g.forwardRef(({className:e,...t},n)=>a.jsx(fe.SubContent,{ref:n,className:N("tw-z-50 tw-min-w-[8rem] tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-p-1 tw-text-popover-foreground tw-shadow-lg data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",e),...t}));gs.displayName=fe.SubContent.displayName;const jt=g.forwardRef(({className:e,sideOffset:t=4,children:n,...r},o)=>{const s=ye();return a.jsx(fe.Portal,{children:a.jsx(fe.Content,{ref:o,sideOffset:t,className:N("pr-twp tw-z-50 tw-min-w-[8rem] tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-p-1 tw-text-popover-foreground tw-shadow-md data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",e),...r,children:a.jsx("div",{dir:s,children:n})})})});jt.displayName=fe.Content.displayName;const Tn=g.forwardRef(({className:e,inset:t,...n},r)=>{const o=ye();return a.jsx(fe.Item,{ref:r,className:N("tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-px-2 tw-py-1.5 tw-text-sm tw-outline-none tw-transition-colors focus:tw-bg-accent data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50",t&&"tw-pl-8",e),...n,dir:o})});Tn.displayName=fe.Item.displayName;const $n=g.forwardRef(({className:e,children:t,checked:n,...r},o)=>a.jsxs(fe.CheckboxItem,{ref:o,className:N("tw-relative tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-py-1.5 tw-pe-2 tw-ps-8 tw-text-sm tw-outline-none tw-transition-colors focus:tw-bg-accent focus:tw-text-accent-foreground data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50",e),checked:n,...r,children:[a.jsx("span",{className:"tw-absolute tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center ltr:tw-left-2 rtl:tw-right-2",children:a.jsx(fe.ItemIndicator,{children:a.jsx(Y.Check,{className:"tw-h-4 tw-w-4"})})}),t]}));$n.displayName=fe.CheckboxItem.displayName;const io=g.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(fe.RadioItem,{ref:r,className:N("tw-relative tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-py-1.5 tw-pe-2 tw-ps-8 tw-text-sm tw-outline-none tw-transition-colors focus:tw-bg-accent focus:tw-text-accent-foreground data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50",e),...n,children:[a.jsx("span",{className:"tw-absolute tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center ltr:tw-left-2 rtl:tw-right-2",children:a.jsx(fe.ItemIndicator,{children:a.jsx(Y.Circle,{className:"tw-h-2 tw-w-2 tw-fill-current"})})}),t]}));io.displayName=fe.RadioItem.displayName;const Zt=g.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(fe.Label,{ref:r,className:N("tw-px-2 tw-py-1.5 tw-text-sm tw-font-semibold",t&&"tw-pl-8",e),...n}));Zt.displayName=fe.Label.displayName;const Qt=g.forwardRef(({className:e,...t},n)=>a.jsx(fe.Separator,{ref:n,className:N("tw--mx-1 tw-my-1 tw-h-px tw-bg-muted",e),...t}));Qt.displayName=fe.Separator.displayName;function bs({className:e,...t}){return a.jsx("span",{className:N("tw-ms-auto tw-text-xs tw-tracking-widest tw-opacity-60",e),...t})}bs.displayName="DropdownMenuShortcut";var zl=Object.defineProperty,Ll=(e,t,n)=>t in e?zl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,re=(e,t,n)=>Ll(e,typeof t!="symbol"?t+"":t,n);const St=["GEN","EXO","LEV","NUM","DEU","JOS","JDG","RUT","1SA","2SA","1KI","2KI","1CH","2CH","EZR","NEH","EST","JOB","PSA","PRO","ECC","SNG","ISA","JER","LAM","EZK","DAN","HOS","JOL","AMO","OBA","JON","MIC","NAM","HAB","ZEP","HAG","ZEC","MAL","MAT","MRK","LUK","JHN","ACT","ROM","1CO","2CO","GAL","EPH","PHP","COL","1TH","2TH","1TI","2TI","TIT","PHM","HEB","JAS","1PE","2PE","1JN","2JN","3JN","JUD","REV","TOB","JDT","ESG","WIS","SIR","BAR","LJE","S3Y","SUS","BEL","1MA","2MA","3MA","4MA","1ES","2ES","MAN","PS2","ODA","PSS","JSA","JDB","TBS","SST","DNT","BLT","XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","3ES","EZA","5EZ","6EZ","INT","CNC","GLO","TDX","NDX","DAG","PS3","2BA","LBA","JUB","ENO","1MQ","2MQ","3MQ","REP","4BA","LAO"],lo=["XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","INT","CNC","GLO","TDX","NDX"],vs=["Genesis","Exodus","Leviticus","Numbers","Deuteronomy","Joshua","Judges","Ruth","1 Samuel","2 Samuel","1 Kings","2 Kings","1 Chronicles","2 Chronicles","Ezra","Nehemiah","Esther (Hebrew)","Job","Psalms","Proverbs","Ecclesiastes","Song of Songs","Isaiah","Jeremiah","Lamentations","Ezekiel","Daniel (Hebrew)","Hosea","Joel","Amos","Obadiah","Jonah","Micah","Nahum","Habakkuk","Zephaniah","Haggai","Zechariah","Malachi","Matthew","Mark","Luke","John","Acts","Romans","1 Corinthians","2 Corinthians","Galatians","Ephesians","Philippians","Colossians","1 Thessalonians","2 Thessalonians","1 Timothy","2 Timothy","Titus","Philemon","Hebrews","James","1 Peter","2 Peter","1 John","2 John","3 John","Jude","Revelation","Tobit","Judith","Esther Greek","Wisdom of Solomon","Sirach (Ecclesiasticus)","Baruch","Letter of Jeremiah","Song of 3 Young Men","Susanna","Bel and the Dragon","1 Maccabees","2 Maccabees","3 Maccabees","4 Maccabees","1 Esdras (Greek)","2 Esdras (Latin)","Prayer of Manasseh","Psalm 151","Odes","Psalms of Solomon","Joshua A. *obsolete*","Judges B. *obsolete*","Tobit S. *obsolete*","Susanna Th. *obsolete*","Daniel Th. *obsolete*","Bel Th. *obsolete*","Extra A","Extra B","Extra C","Extra D","Extra E","Extra F","Extra G","Front Matter","Back Matter","Other Matter","3 Ezra *obsolete*","Apocalypse of Ezra","5 Ezra (Latin Prologue)","6 Ezra (Latin Epilogue)","Introduction","Concordance ","Glossary ","Topical Index","Names Index","Daniel Greek","Psalms 152-155","2 Baruch (Apocalypse)","Letter of Baruch","Jubilees","Enoch","1 Meqabyan","2 Meqabyan","3 Meqabyan","Reproof (Proverbs 25-31)","4 Baruch (Rest of Baruch)","Laodiceans"],fa=Jl();function en(e,t=!0){return t&&(e=e.toUpperCase()),e in fa?fa[e]:0}function co(e){return en(e)>0}function Fl(e){const t=typeof e=="string"?en(e):e;return t>=40&&t<=66}function Gl(e){return(typeof e=="string"?en(e):e)<=39}function xs(e){return e<=66}function Ul(e){const t=typeof e=="string"?en(e):e;return ks(t)&&!xs(t)}function*ql(){for(let e=1;e<=St.length;e++)yield e}const Hl=1,ys=St.length;function Xl(){return["XXA","XXB","XXC","XXD","XXE","XXF","XXG"]}function uo(e,t="***"){const n=e-1;return n<0||n>=St.length?t:St[n]}function Ns(e){return e<=0||e>ys?"******":vs[e-1]}function Yl(e){return Ns(en(e))}function ks(e){const t=typeof e=="number"?uo(e):e;return co(t)&&!lo.includes(t)}function Wl(e){const t=typeof e=="number"?uo(e):e;return co(t)&&lo.includes(t)}function Kl(e){return vs[e-1].includes("*obsolete*")}function Jl(){const e={};for(let t=0;t(e[e.Unknown=0]="Unknown",e[e.Original=1]="Original",e[e.Septuagint=2]="Septuagint",e[e.Vulgate=3]="Vulgate",e[e.English=4]="English",e[e.RussianProtestant=5]="RussianProtestant",e[e.RussianOrthodox=6]="RussianOrthodox",e))(We||{});const Me=class{constructor(t){if(re(this,"name"),re(this,"fullPath"),re(this,"isPresent"),re(this,"hasVerseSegments"),re(this,"isCustomized"),re(this,"baseVersification"),re(this,"scriptureBooks"),re(this,"_type"),t==null)throw new Error("Argument undefined");typeof t=="string"?(this.name=t,this._type=We[t]):(this._type=t,this.name=We[t])}get type(){return this._type}equals(t){return!t.type||!this.type?!1:t.type===this.type}};re(Me,"Original",new Me(We.Original)),re(Me,"Septuagint",new Me(We.Septuagint)),re(Me,"Vulgate",new Me(We.Vulgate)),re(Me,"English",new Me(We.English)),re(Me,"RussianProtestant",new Me(We.RussianProtestant)),re(Me,"RussianOrthodox",new Me(We.RussianOrthodox));let bt=Me;function ma(e,t){const n=t[0];for(let r=1;r(e[e.Valid=0]="Valid",e[e.UnknownVersification=1]="UnknownVersification",e[e.OutOfRange=2]="OutOfRange",e[e.VerseOutOfOrder=3]="VerseOutOfOrder",e[e.VerseRepeated=4]="VerseRepeated",e))(js||{});const Ce=class se{constructor(t,n,r,o){if(re(this,"firstChapter"),re(this,"lastChapter"),re(this,"lastVerse"),re(this,"hasSegmentsDefined"),re(this,"text"),re(this,"BBBCCCVVVS"),re(this,"longHashCode"),re(this,"versification"),re(this,"rtlMark","‏"),re(this,"_bookNum",0),re(this,"_chapterNum",0),re(this,"_verseNum",0),re(this,"_verse"),r==null&&o==null)if(t!=null&&typeof t=="string"){const s=t,i=n!=null&&n instanceof bt?n:void 0;this.setEmpty(i),this.parse(s)}else if(t!=null&&typeof t=="number"){const s=n!=null&&n instanceof bt?n:void 0;this.setEmpty(s),this._verseNum=t%se.chapterDigitShifter,this._chapterNum=Math.floor(t%se.bookDigitShifter/se.chapterDigitShifter),this._bookNum=Math.floor(t/se.bookDigitShifter)}else if(n==null)if(t!=null&&t instanceof se){const s=t;this._bookNum=s.bookNum,this._chapterNum=s.chapterNum,this._verseNum=s.verseNum,this._verse=s.verse,this.versification=s.versification}else{if(t==null)return;const s=t instanceof bt?t:se.defaultVersification;this.setEmpty(s)}else throw new Error("VerseRef constructor not supported.");else if(t!=null&&n!=null&&r!=null)if(typeof t=="string"&&typeof n=="string"&&typeof r=="string")this.setEmpty(o),this.updateInternal(t,n,r);else if(typeof t=="number"&&typeof n=="number"&&typeof r=="number")this._bookNum=t,this._chapterNum=n,this._verseNum=r,this.versification=o??se.defaultVersification;else throw new Error("VerseRef constructor not supported.");else throw new Error("VerseRef constructor not supported.")}static isVerseParseable(t){return t.length>0&&"0123456789".includes(t[0])&&!t.endsWith(this.verseRangeSeparator)&&!t.endsWith(this.verseSequenceIndicator)}static tryParse(t){let n;try{return n=new se(t),{success:!0,verseRef:n}}catch(r){if(r instanceof dn)return n=new se,{success:!1,verseRef:n};throw r}}static getBBBCCCVVV(t,n,r){return t%se.bcvMaxValue*se.bookDigitShifter+(n>=0?n%se.bcvMaxValue*se.chapterDigitShifter:0)+(r>=0?r%se.bcvMaxValue:0)}static fromJSON(t){const{book:n,chapterNum:r,verseNum:o,verse:s,versificationStr:i}=t,l=s||o.toString();let c;return i&&(c=new bt(i)),n?new se(n,r.toString(),l,c):new se}static tryGetVerseNum(t){let n;if(!t)return n=-1,{success:!0,vNum:n};n=0;let r;for(let o=0;o"9")return o===0&&(n=-1),{success:!1,vNum:n};if(n=n*10+ +r-0,n>se.bcvMaxValue)return n=-1,{success:!1,vNum:n}}return{success:!0,vNum:n}}get isDefault(){return this.bookNum===0&&this.chapterNum===0&&this.verseNum===0&&this.versification==null}get hasMultiple(){return this._verse!=null&&(this._verse.includes(se.verseRangeSeparator)||this._verse.includes(se.verseSequenceIndicator))}get book(){return ie.bookNumberToId(this.bookNum,"")}set book(t){this.bookNum=ie.bookIdToNumber(t)}get chapter(){return this.isDefault||this._chapterNum<0?"":this._chapterNum.toString()}set chapter(t){const n=+t;this._chapterNum=Number.isInteger(n)?n:-1}get verse(){return this._verse!=null?this._verse:this.isDefault||this._verseNum<0?"":this._verseNum.toString()}set verse(t){const{success:n,vNum:r}=se.tryGetVerseNum(t);this._verse=n?void 0:t.replace(this.rtlMark,""),this._verseNum=r,!(this._verseNum>=0)&&({vNum:this._verseNum}=se.tryGetVerseNum(this._verse))}get bookNum(){return this._bookNum}set bookNum(t){if(t<=0||t>ie.lastBook)throw new dn("BookNum must be greater than zero and less than or equal to last book");this._bookNum=t}get chapterNum(){return this._chapterNum}set chapterNum(t){this.chapterNum=t}get verseNum(){return this._verseNum}set verseNum(t){this._verseNum=t}get versificationStr(){var t;return(t=this.versification)==null?void 0:t.name}set versificationStr(t){this.versification=this.versification!=null?new bt(t):void 0}get valid(){return this.validStatus===0}get validStatus(){return this.validateVerse(se.verseRangeSeparators,se.verseSequenceIndicators)}get BBBCCC(){return se.getBBBCCCVVV(this._bookNum,this._chapterNum,0)}get BBBCCCVVV(){return se.getBBBCCCVVV(this._bookNum,this._chapterNum,this._verseNum)}get isExcluded(){return!1}parse(t){if(t=t.replace(this.rtlMark,""),t.includes("/")){const s=t.split("/");if(t=s[0],s.length>1)try{const i=+s[1].trim();this.versification=new bt(We[i])}catch{throw new dn("Invalid reference : "+t)}}const n=t.trim().split(" ");if(n.length!==2)throw new dn("Invalid reference : "+t);const r=n[1].split(":"),o=+r[0];if(r.length!==2||ie.bookIdToNumber(n[0])===0||!Number.isInteger(o)||o<0||!se.isVerseParseable(r[1]))throw new dn("Invalid reference : "+t);this.updateInternal(n[0],r[0],r[1])}simplify(){this._verse=void 0}clone(){return new se(this)}toString(){const t=this.book;return t===""?"":`${t} ${this.chapter}:${this.verse}`}toJSON(){let t=this.verse;(t===""||t===this.verseNum.toString())&&(t=void 0);const n={book:this.book,chapterNum:this.chapterNum,verseNum:this.verseNum,verse:t,versificationStr:this.versificationStr};return t||delete n.verse,n}equals(t){return t instanceof se?t._bookNum===this._bookNum&&t._chapterNum===this._chapterNum&&t._verseNum===this._verseNum&&t.verse===this.verse&&(t.versification==null&&this.versification==null||t.versification!=null&&this.versification!=null&&t.versification.equals(this.versification)):!1}allVerses(t=!1,n=se.verseRangeSeparators,r=se.verseSequenceIndicators){if(this._verse==null||this.chapterNum<=0)return[this.clone()];const o=[],s=ma(this._verse,r);for(const i of s.map(l=>ma(l,n))){const l=this.clone();l.verse=i[0];const c=l.verseNum;if(o.push(l),i.length>1){const d=this.clone();if(d.verse=i[1],!t)for(let u=c+1;ui)return 3;if(r===i)return 4;r=i}return 0}get internalValid(){return this.versification==null?1:this._bookNum<=0||this._bookNum>ie.lastBook?2:(ie.isCanonical(this._bookNum),0)}setEmpty(t=se.defaultVersification){this._bookNum=0,this._chapterNum=-1,this._verse=void 0,this.versification=t}updateInternal(t,n,r){this.bookNum=ie.bookIdToNumber(t),this.chapter=n,this.verse=r}};re(Ce,"defaultVersification",bt.English),re(Ce,"verseRangeSeparator","-"),re(Ce,"verseSequenceIndicator",","),re(Ce,"verseRangeSeparators",[Ce.verseRangeSeparator]),re(Ce,"verseSequenceIndicators",[Ce.verseSequenceIndicator]),re(Ce,"chapterDigitShifter",1e3),re(Ce,"bookDigitShifter",Ce.chapterDigitShifter*Ce.chapterDigitShifter),re(Ce,"bcvMaxValue",Ce.chapterDigitShifter-1),re(Ce,"ValidStatusType",js);class dn extends Error{}const Zl=g.forwardRef(({bookId:e,handleSelectBook:t,isSelected:n,handleHighlightBook:r,handleKeyDown:o,bookType:s,children:i},l)=>a.jsxs(Tn,{ref:l,textValue:e,className:N("tw-mx-1 tw-flex-col tw-items-start tw-px-1 tw-font-normal tw-text-foreground/80",{"tw-bg-amber-50 tw-text-yellow-900 data-[highlighted]:tw-bg-amber-100":n}),onSelect:c=>{c.preventDefault(),t()},onKeyDown:c=>{o(c)},onFocus:r,onMouseMove:r,children:[a.jsx("span",{className:N("tw-border-b-0 tw-border-e-0 tw-border-s-2 tw-border-t-0 tw-border-solid tw-px-2",{"tw-font-bold":n,"tw-border-s-red-200":s.toLowerCase()==="ot","tw-border-s-purple-200":s.toLowerCase()==="nt","tw-border-s-indigo-200":s.toLowerCase()==="dc"}),children:ie.bookIdToEnglishName(e)}),n&&a.jsx("div",{children:i})]},e));function Ql({handleSelectChapter:e,endChapter:t,activeChapter:n,highlightedChapter:r,handleHighlightedChapter:o}){const s=Array.from({length:t},(l,c)=>c+1),i=g.useCallback(l=>{o(l)},[o]);return a.jsx("div",{className:N("tw-flex tw-flex-wrap tw-items-start tw-justify-start tw-self-stretch"),children:s.map(l=>a.jsx("div",{className:N("tw-box-content tw-flex tw-h-4 tw-w-4 tw-cursor-pointer tw-items-center tw-justify-end tw-rounded-md tw-p-2 tw-text-amber-800",{"tw-font-semibold tw-text-amber-900":l===n,"tw-bg-amber-200":l===r}),onClick:c=>{c.preventDefault(),c.stopPropagation(),e(l)},role:"button",onKeyDown:c=>{c.key==="Enter"&&e(l)},tabIndex:0,onMouseMove:()=>i(l),children:l},l))})}function ec({handleSort:e,handleLocationHistory:t,handleBookmarks:n}){return a.jsxs(Zt,{className:"tw-flex tw-justify-between",children:[a.jsx("p",{className:"tw-inline-block tw-align-middle",children:"Go To"}),a.jsxs("div",{className:"tw-flex tw-items-center",children:[a.jsx(Y.ArrowDownWideNarrow,{onClick:e,className:"tw-m-2 tw-h-4 tw-w-4 tw-cursor-pointer tw-gap-2"}),a.jsx(Y.Clock,{onClick:t,className:"tw-m-2 tw-h-4 tw-w-4 tw-cursor-pointer tw-gap-2"}),a.jsx(Y.Bookmark,{onClick:n,className:"tw-m-2 tw-h-4 tw-w-4 tw-cursor-pointer tw-gap-2"})]})]})}const xn=ie.allBookIds,tc={OT:"Old Testament",NT:"New Testament",DC:"Deuterocanon"},ha=["OT","NT","DC"],nc=32+32+32,rc=[/^(\w+)$/i,/^(\w+)(?:\s(\d+))$/i,/^(\w+)(?:\s(\d+):(\d+))$/i],oc=e=>({OT:xn.filter(n=>ie.isBookOT(n)),NT:xn.filter(n=>ie.isBookNT(n)),DC:xn.filter(n=>ie.isBookDC(n))})[e],un=e=>ee.getChaptersForBook(ie.bookIdToNumber(e));function ac(){return xn.map(t=>ie.bookIdToEnglishName(t))}function sc(e){return ac().includes(e)}function ic(e){const t=e.toLowerCase().replace(/^\w/,n=>n.toUpperCase());if(sc(t))return xn.find(r=>ie.bookIdToEnglishName(r)===t)}function lc({scrRef:e,handleSubmit:t}){const n=ye(),[r,o]=g.useState(""),[s,i]=g.useState(ie.bookNumberToId(e.bookNum)),[l,c]=g.useState(e.chapterNum??0),[d,u]=g.useState(ie.bookNumberToId(e.bookNum)),[f,w]=g.useState(!1),[b,v]=g.useState(f),m=g.useRef(void 0),h=g.useRef(void 0),k=g.useRef(void 0),O=g.useCallback(M=>oc(M).filter($=>{const W=ie.bookIdToEnglishName($).toLowerCase(),q=r.replace(/[^a-zA-Z]/g,"").toLowerCase();return W.includes(q)||$.toLowerCase().includes(q)}),[r]),E=M=>{o(M)},j=g.useRef(!1),x=g.useCallback(M=>{if(j.current){j.current=!1;return}w(M)},[]),_=g.useCallback((M,$,W,q)=>{if(c(ie.bookNumberToId(e.bookNum)!==M?1:e.chapterNum),$||un(M)===-1){t({bookNum:ie.bookIdToNumber(M),chapterNum:W||1,verseNum:q||1}),w(!1),o("");return}i(s!==M?M:""),w(!$)},[t,e.bookNum,e.chapterNum,s]),U=M=>{M<=0||M>un(s)||_(s,!0,M)},R=g.useCallback(()=>{rc.forEach(M=>{const $=r.match(M);if($){const[W,q=void 0,V=void 0]=$.slice(1),te=ic(W);(ie.isBookIdValid(W)||te)&&_(te??W,!0,q?parseInt(q,10):1,V?parseInt(V,10):1)}})},[_,r]),P=g.useCallback(M=>{f?(M.key==="ArrowDown"||M.key==="ArrowUp")&&(typeof k<"u"&&k.current!==null?k.current.focus():typeof h<"u"&&h.current!==null&&h.current.focus(),M.preventDefault()):w(!0)},[f]),F=M=>{const{key:$}=M;$==="ArrowRight"||$==="ArrowLeft"||$==="ArrowDown"||$==="ArrowUp"||$==="Enter"||(m.current.dispatchEvent(new KeyboardEvent("keydown",{key:$})),m.current.focus())},A=M=>{const{key:$}=M;if(d===s){if($==="Enter"){M.preventDefault(),_(s,!0,l);return}const W=$==="ArrowRight"&&!n||$==="ArrowRight"&&n==="ltr"||$==="ArrowLeft"&&n==="rtl",q=$==="ArrowLeft"&&!n||$==="ArrowLeft"&&n==="ltr"||$==="ArrowRight"&&n==="rtl";let V=0;if(W)if(l1)V=-1;else{M.preventDefault();return}else $==="ArrowDown"?V=6:$==="ArrowUp"&&(V=-6);l+V<=0||l+V>un(d)?c(0):V!==0&&(c(l+V),M.preventDefault())}};return g.useEffect(()=>{s===d?s===ie.bookNumberToId(e.bookNum)?c(e.chapterNum):c(1):c(0)},[d,e.bookNum,e.chapterNum,s]),g.useLayoutEffect(()=>{v(f)},[f]),g.useLayoutEffect(()=>{const M=setTimeout(()=>{if(b&&h.current&&k.current){const W=k.current.offsetTop-nc;h.current.scrollTo({top:W,behavior:"instant"})}},10);return()=>{clearTimeout(M)}},[b]),a.jsx("div",{className:"pr-twp tw-flex",children:a.jsxs(Gt,{modal:!1,open:f,onOpenChange:x,children:[a.jsx(Cn,{asChild:!0,children:a.jsx(Al,{ref:m,value:r,handleSearch:E,handleKeyDown:P,handleOnClick:()=>{i(ie.bookNumberToId(e.bookNum)),u(ie.bookNumberToId(e.bookNum)),c(e.chapterNum>0?e.chapterNum:0),w(!0),m.current.focus()},onFocus:()=>{j.current=!0},handleSubmit:R,placeholder:`${ie.bookNumberToEnglishName(e.bookNum)} ${e.chapterNum}:${e.verseNum}`})}),a.jsx(jt,{className:"tw-m-1 tw-overflow-y-auto tw-p-0 tw-font-normal tw-text-foreground/80",style:{width:"233px",maxHeight:"500px",zIndex:"250"},onKeyDown:F,align:n==="ltr"?"start":"end",ref:h,children:a.jsxs("div",{className:"rtl:tw-ps-2",children:[a.jsx(ec,{handleSort:()=>console.log("sorting"),handleLocationHistory:()=>console.log("location history"),handleBookmarks:()=>console.log("bookmarks")}),ha.map((M,$)=>O(M).length>0&&a.jsxs("div",{children:[a.jsx(Zt,{className:"tw-font-semibold tw-text-foreground/80",children:tc[M]}),O(M).map(W=>a.jsx("div",{children:a.jsx(Zl,{bookId:W,handleSelectBook:()=>_(W,!1),isSelected:s===W,handleHighlightBook:()=>u(W),handleKeyDown:A,bookType:M,ref:q=>{s===W&&(k.current=q)},children:a.jsx(Ql,{handleSelectChapter:U,endChapter:un(W),activeChapter:e.bookNum===ie.bookIdToNumber(W)?e.chapterNum:0,highlightedChapter:l,handleHighlightedChapter:q=>{c(q)}})})},W)),ha.length-1!==$?a.jsx(Qt,{}):void 0]},M))]})})]})})}const Ss=Jt.cva("pr-twp tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50",{variants:{variant:{default:"tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/90",destructive:"tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/90",outline:"tw-border tw-border-input tw-bg-background hover:tw-bg-accent hover:tw-text-accent-foreground",secondary:"tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80",ghost:"hover:tw-bg-accent hover:tw-text-accent-foreground",link:"tw-text-primary tw-underline-offset-4 hover:tw-underline"},size:{default:"tw-h-10 tw-px-4 tw-py-2",sm:"tw-h-9 tw-rounded-md tw-px-3",lg:"tw-h-11 tw-rounded-md tw-px-8",icon:"tw-h-10 tw-w-10"}},defaultVariants:{variant:"default",size:"default"}}),pe=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Kt.Slot:"button";return a.jsx(i,{className:N(Ss({variant:t,size:n,className:e})),ref:s,...o})});pe.displayName="Button";const cc=Jt.cva("tw-text-sm tw-font-medium tw-leading-none peer-disabled:tw-cursor-not-allowed peer-disabled:tw-opacity-70"),ke=g.forwardRef(({className:e,...t},n)=>a.jsx(ps.Root,{ref:n,className:N("pr-twp",cc(),e),...t}));ke.displayName=ps.Root.displayName;const po=g.forwardRef(({className:e,...t},n)=>{const r=ye();return a.jsx(Sn.Root,{className:N("pr-twp tw-grid tw-gap-2",e),...t,ref:n,dir:r})});po.displayName=Sn.Root.displayName;const er=g.forwardRef(({className:e,...t},n)=>a.jsx(Sn.Item,{ref:n,className:N("pr-twp tw-aspect-square tw-h-4 tw-w-4 tw-rounded-full tw-border tw-border-primary tw-text-primary tw-ring-offset-background focus:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50",e),...t,children:a.jsx(Sn.Indicator,{className:"tw-flex tw-items-center tw-justify-center",children:a.jsx(Y.Circle,{className:"tw-h-2.5 tw-w-2.5 tw-fill-current tw-text-current"})})}));er.displayName=Sn.Item.displayName;const Es=En.Root,Cs=En.Trigger,wo=g.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{const s=ye();return a.jsx(En.Portal,{children:a.jsx(En.Content,{ref:o,align:t,sideOffset:n,className:N("pr-twp tw-z-50 tw-w-72 tw-rounded-md tw-border tw-bg-popover tw-p-4 tw-text-popover-foreground tw-shadow-md tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",e),...r,dir:s})})});wo.displayName=En.Content.displayName;const dc=Je.Portal,Ts=g.forwardRef(({className:e,...t},n)=>a.jsx(Je.Overlay,{ref:n,className:N("tw-fixed tw-inset-0 tw-z-50 tw-bg-black/80 data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0",e),...t}));Ts.displayName=Je.Overlay.displayName;const uc=g.forwardRef(({className:e,children:t,...n},r)=>{const o=ye();return a.jsxs(dc,{children:[a.jsx(Ts,{}),a.jsxs(Je.Content,{ref:r,className:N("pr-twp tw-fixed tw-left-[50%] tw-top-[50%] tw-z-50 tw-grid tw-w-full tw-max-w-lg tw-translate-x-[-50%] tw-translate-y-[-50%] tw-gap-4 tw-border tw-bg-background tw-p-6 tw-shadow-lg tw-duration-200 data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[state=closed]:tw-slide-out-to-left-1/2 data-[state=closed]:tw-slide-out-to-top-[48%] data-[state=open]:tw-slide-in-from-left-1/2 data-[state=open]:tw-slide-in-from-top-[48%] sm:tw-rounded-lg",e),...n,dir:o,children:[t,a.jsxs(Je.Close,{className:N("tw-absolute tw-top-4 tw-rounded-sm tw-opacity-70 tw-ring-offset-background tw-transition-opacity hover:tw-opacity-100 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2 disabled:tw-pointer-events-none data-[state=open]:tw-bg-accent data-[state=open]:tw-text-muted-foreground",{"tw-right-4":o==="ltr"},{"tw-left-4":o==="rtl"}),children:[a.jsx(Y.X,{className:"tw-h-4 tw-w-4"}),a.jsx("span",{className:"tw-sr-only",children:"Close"})]})]})]})});uc.displayName=Je.Content.displayName;const pc=g.forwardRef(({className:e,...t},n)=>a.jsx(Je.Title,{ref:n,className:N("tw-text-lg tw-font-semibold tw-leading-none tw-tracking-tight",e),...t}));pc.displayName=Je.Title.displayName;const wc=g.forwardRef(({className:e,...t},n)=>a.jsx(Je.Description,{ref:n,className:N("tw-text-sm tw-text-muted-foreground",e),...t}));wc.displayName=Je.Description.displayName;const fo=g.forwardRef(({className:e,...t},n)=>a.jsx(_e.Command,{ref:n,className:N("tw-flex tw-h-full tw-w-full tw-flex-col tw-overflow-hidden tw-rounded-md tw-bg-popover tw-text-popover-foreground",e),...t}));fo.displayName=_e.Command.displayName;const mo=g.forwardRef(({className:e,...t},n)=>{const r=ye();return a.jsxs("div",{className:"tw-flex tw-items-center tw-border-b tw-px-3",dir:r,children:[a.jsx(Y.Search,{className:"tw-me-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50"}),a.jsx(_e.Command.Input,{ref:n,className:N("tw-flex tw-h-11 tw-w-full tw-rounded-md tw-bg-transparent tw-py-3 tw-text-sm tw-outline-none placeholder:tw-text-muted-foreground disabled:tw-cursor-not-allowed disabled:tw-opacity-50",e),...t})]})});mo.displayName=_e.Command.Input.displayName;const ho=g.forwardRef(({className:e,...t},n)=>a.jsx(_e.Command.List,{ref:n,className:N("tw-max-h-[300px] tw-overflow-y-auto tw-overflow-x-hidden",e),...t}));ho.displayName=_e.Command.List.displayName;const go=g.forwardRef((e,t)=>a.jsx(_e.Command.Empty,{ref:t,className:"tw-py-6 tw-text-center tw-text-sm",...e}));go.displayName=_e.Command.Empty.displayName;const Rs=g.forwardRef(({className:e,...t},n)=>a.jsx(_e.Command.Group,{ref:n,className:N("tw-overflow-hidden tw-p-1 tw-text-foreground [&_[cmdk-group-heading]]:tw-px-2 [&_[cmdk-group-heading]]:tw-py-1.5 [&_[cmdk-group-heading]]:tw-text-xs [&_[cmdk-group-heading]]:tw-font-medium [&_[cmdk-group-heading]]:tw-text-muted-foreground",e),...t}));Rs.displayName=_e.Command.Group.displayName;const fc=g.forwardRef(({className:e,...t},n)=>a.jsx(_e.Command.Separator,{ref:n,className:N("tw--mx-1 tw-h-px tw-bg-border",e),...t}));fc.displayName=_e.Command.Separator.displayName;const bo=g.forwardRef(({className:e,...t},n)=>a.jsx(_e.Command.Item,{ref:n,className:N("tw-relative tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-px-2 tw-py-1.5 tw-text-sm tw-outline-none data-[disabled=true]:tw-pointer-events-none data-[selected=true]:tw-bg-accent data-[selected=true]:tw-text-accent-foreground data-[disabled=true]:tw-opacity-50",e),...t}));bo.displayName=_e.Command.Item.displayName;function mc(e){return typeof e=="string"?e:typeof e=="number"?e.toString():e.label}function Rn({id:e,options:t=[],className:n,buttonClassName:r,popoverContentClassName:o,value:s,onChange:i=()=>{},getOptionLabel:l=mc,icon:c=void 0,buttonPlaceholder:d="",textPlaceholder:u="",commandEmptyMessage:f="No option found",buttonVariant:w="outline",alignDropDown:b="start",isDisabled:v=!1,...m}){const[h,k]=g.useState(!1);return a.jsxs(Es,{open:h,onOpenChange:k,...m,children:[a.jsx(Cs,{asChild:!0,children:a.jsxs(pe,{variant:w,role:"combobox","aria-expanded":h,id:e,className:N("tw-flex tw-w-[200px] tw-items-center tw-justify-between tw-overflow-hidden",r??n),disabled:v,children:[a.jsxs("div",{className:"tw-flex tw-flex-1 tw-items-center tw-overflow-hidden",children:[c&&a.jsx("div",{className:"tw-pe-2",children:c}),a.jsx("span",{className:"tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap",children:s?l(s):d})]}),a.jsx(Y.ChevronsUpDown,{className:"tw-ms-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50"})]})}),a.jsx(wo,{align:b,className:N("tw-w-[200px] tw-p-0",o),children:a.jsxs(fo,{children:[a.jsx(mo,{placeholder:u,className:"tw-text-inherit"}),a.jsx(go,{children:f}),a.jsx(ho,{children:t.map(O=>a.jsxs(bo,{value:l(O),onSelect:()=>{i(O),k(!1)},children:[a.jsx(Y.Check,{className:N("tw-me-2 tw-h-4 tw-w-4",{"tw-opacity-0":!s||l(s)!==l(O)})}),l(O)]},l(O)))})]})})]})}function Os({startChapter:e,endChapter:t,handleSelectStartChapter:n,handleSelectEndChapter:r,isDisabled:o=!1,chapterCount:s}){const i=g.useMemo(()=>Array.from({length:s},(d,u)=>u+1),[s]),l=d=>{n(d),d>t&&r(d)},c=d=>{r(d),dd.toString(),value:e},"start chapter"),a.jsx(ke,{htmlFor:"end-chapters-combobox",children:"to"}),a.jsx(Rn,{isDisabled:o,onChange:c,buttonClassName:"tw-ms-2 tw-w-20",options:i,getOptionLabel:d=>d.toString(),value:t},"end chapter")]})}var _s=(e=>(e.CURRENT_BOOK="current book",e.CHOOSE_BOOKS="choose books",e))(_s||{});const hc=Object.freeze(["%webView_bookSelector_currentBook%","%webView_bookSelector_choose%","%webView_bookSelector_chooseBooks%"]),_r=(e,t)=>e[t]??t;function gc({handleBookSelectionModeChange:e,currentBookName:t,onSelectBooks:n,selectedBookIds:r,chapterCount:o,endChapter:s,handleSelectEndChapter:i,startChapter:l,handleSelectStartChapter:c,localizedStrings:d}){const u=_r(d,"%webView_bookSelector_currentBook%"),f=_r(d,"%webView_bookSelector_choose%"),w=_r(d,"%webView_bookSelector_chooseBooks%"),[b,v]=g.useState("current book"),m=h=>{v(h),e(h)};return a.jsx(po,{className:"pr-twp tw-flex",value:b,onValueChange:h=>m(h),children:a.jsxs("div",{className:"tw-flex tw-w-full tw-flex-col tw-gap-4",children:[a.jsxs("div",{className:"tw-grid tw-grid-cols-[25%,25%,50%]",children:[a.jsxs("div",{className:"tw-flex tw-items-center",children:[a.jsx(er,{value:"current book"}),a.jsx(ke,{className:"tw-ms-1",children:u})]}),a.jsx(ke,{className:"tw-flex tw-items-center",children:t}),a.jsx("div",{className:"tw-flex tw-items-center tw-justify-end",children:a.jsx(Os,{isDisabled:b==="choose books",handleSelectStartChapter:c,handleSelectEndChapter:i,chapterCount:o,startChapter:l,endChapter:s})})]}),a.jsxs("div",{className:"tw-grid tw-grid-cols-[25%,50%,25%]",children:[a.jsxs("div",{className:"tw-flex tw-items-center",children:[a.jsx(er,{value:"choose books"}),a.jsx(ke,{className:"tw-ms-1",children:w})]}),a.jsx(ke,{className:"tw-flex tw-items-center",children:r.map(h=>ie.bookIdToEnglishName(h)).join(", ")}),a.jsx(pe,{disabled:b==="current book",onClick:()=>n(),children:f})]})]})})}function bc({table:e}){return a.jsxs(Gt,{children:[a.jsx(ds.DropdownMenuTrigger,{asChild:!0,children:a.jsxs(pe,{variant:"outline",size:"sm",className:"tw-ml-auto tw-hidden tw-h-8 lg:tw-flex",children:[a.jsx(Y.FilterIcon,{className:"tw-mr-2 tw-h-4 tw-w-4"}),"View"]})}),a.jsxs(jt,{align:"end",className:"tw-w-[150px]",children:[a.jsx(Zt,{children:"Toggle columns"}),a.jsx(Qt,{}),e.getAllColumns().filter(t=>t.getCanHide()).map(t=>a.jsx($n,{className:"tw-capitalize",checked:t.getIsVisible(),onCheckedChange:n=>t.toggleVisibility(!!n),children:t.id},t.id))]})]})}const Et=be.Root,Ps=be.Group,Ct=be.Value,ct=g.forwardRef(({className:e,children:t,...n},r)=>{const o=ye();return a.jsxs(be.Trigger,{ref:r,className:N("tw-flex tw-h-10 tw-w-full tw-items-center tw-justify-between tw-rounded-md tw-border tw-border-input tw-bg-background tw-px-3 tw-py-2 tw-text-sm tw-ring-offset-background placeholder:tw-text-muted-foreground focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50 [&>span]:tw-line-clamp-1",e),...n,dir:o,children:[t,a.jsx(be.Icon,{asChild:!0,children:a.jsx(Y.ChevronDown,{className:"tw-h-4 tw-w-4 tw-opacity-50"})})]})});ct.displayName=be.Trigger.displayName;const vo=g.forwardRef(({className:e,...t},n)=>a.jsx(be.ScrollUpButton,{ref:n,className:N("tw-flex tw-cursor-default tw-items-center tw-justify-center tw-py-1",e),...t,children:a.jsx(Y.ChevronUp,{className:"tw-h-4 tw-w-4"})}));vo.displayName=be.ScrollUpButton.displayName;const xo=g.forwardRef(({className:e,...t},n)=>a.jsx(be.ScrollDownButton,{ref:n,className:N("tw-flex tw-cursor-default tw-items-center tw-justify-center tw-py-1",e),...t,children:a.jsx(Y.ChevronDown,{className:"tw-h-4 tw-w-4"})}));xo.displayName=be.ScrollDownButton.displayName;const dt=g.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>{const s=ye();return a.jsx(be.Portal,{children:a.jsxs(be.Content,{ref:o,className:N("pr-twp tw-relative tw-z-50 tw-max-h-96 tw-min-w-[8rem] tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-text-popover-foreground tw-shadow-md data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:tw-translate-y-1 data-[side=left]:tw--translate-x-1 data-[side=right]:tw-translate-x-1 data-[side=top]:tw--translate-y-1",e),position:n,...r,children:[a.jsx(vo,{}),a.jsx(be.Viewport,{className:N("tw-p-1",n==="popper"&&"tw-h-[var(--radix-select-trigger-height)] tw-w-full tw-min-w-[var(--radix-select-trigger-width)]"),children:a.jsx("div",{dir:s,children:t})}),a.jsx(xo,{})]})})});dt.displayName=be.Content.displayName;const Is=g.forwardRef(({className:e,...t},n)=>a.jsx(be.Label,{ref:n,className:N("tw-py-1.5 tw-pl-8 tw-pr-2 tw-text-sm tw-font-semibold",e),...t}));Is.displayName=be.Label.displayName;const $e=g.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(be.Item,{ref:r,className:N("tw-relative tw-flex tw-w-full tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-py-1.5 tw-pe-2 tw-ps-8 tw-text-sm tw-outline-none focus:tw-bg-accent focus:tw-text-accent-foreground data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50",e),...n,children:[a.jsx("span",{className:"tw-absolute tw-start-2 tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center",children:a.jsx(be.ItemIndicator,{children:a.jsx(Y.Check,{className:"tw-h-4 tw-w-4"})})}),a.jsx(be.ItemText,{children:t})]}));$e.displayName=be.Item.displayName;const Ms=g.forwardRef(({className:e,...t},n)=>a.jsx(be.Separator,{ref:n,className:N("tw--mx-1 tw-my-1 tw-h-px tw-bg-muted",e),...t}));Ms.displayName=be.Separator.displayName;function vc({table:e}){return a.jsx("div",{className:"tw-flex tw-items-center tw-justify-between tw-px-2 tw-pb-3 tw-pt-3",children:a.jsxs("div",{className:"tw-flex tw-items-center tw-space-x-6 lg:tw-space-x-8",children:[a.jsxs("div",{className:"tw-flex-1 tw-text-sm tw-text-muted-foreground",children:[e.getFilteredSelectedRowModel().rows.length," of"," ",e.getFilteredRowModel().rows.length," row(s) selected"]}),a.jsxs("div",{className:"tw-flex tw-items-center tw-space-x-2",children:[a.jsx("p",{className:"tw-text-nowrap tw-text-sm tw-font-medium",children:"Rows per page"}),a.jsxs(Et,{value:`${e.getState().pagination.pageSize}`,onValueChange:t=>{e.setPageSize(Number(t))},children:[a.jsx(ct,{className:"tw-h-8 tw-w-[70px]",children:a.jsx(Ct,{placeholder:e.getState().pagination.pageSize})}),a.jsx(dt,{side:"top",children:[10,20,30,40,50].map(t=>a.jsx($e,{value:`${t}`,children:t},t))})]})]}),a.jsxs("div",{className:"tw-flex tw-w-[100px] tw-items-center tw-justify-center tw-text-sm tw-font-medium",children:["Page ",e.getState().pagination.pageIndex+1," of ",e.getPageCount()]}),a.jsxs("div",{className:"tw-flex tw-items-center tw-space-x-2",children:[a.jsxs(pe,{variant:"outline",size:"icon",className:"tw-hidden tw-h-8 tw-w-8 tw-p-0 lg:tw-flex",onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:[a.jsx("span",{className:"tw-sr-only",children:"Go to first page"}),a.jsx(Y.ArrowLeftIcon,{className:"tw-h-4 tw-w-4"})]}),a.jsxs(pe,{variant:"outline",size:"icon",className:"tw-h-8 tw-w-8 tw-p-0",onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:[a.jsx("span",{className:"tw-sr-only",children:"Go to previous page"}),a.jsx(Y.ChevronLeftIcon,{className:"tw-h-4 tw-w-4"})]}),a.jsxs(pe,{variant:"outline",size:"icon",className:"tw-h-8 tw-w-8 tw-p-0",onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:[a.jsx("span",{className:"tw-sr-only",children:"Go to next page"}),a.jsx(Y.ChevronRightIcon,{className:"tw-h-4 tw-w-4"})]}),a.jsxs(pe,{variant:"outline",size:"icon",className:"tw-hidden tw-h-8 tw-w-8 tw-p-0 lg:tw-flex",onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage(),children:[a.jsx("span",{className:"tw-sr-only",children:"Go to last page"}),a.jsx(Y.ArrowRightIcon,{className:"tw-h-4 tw-w-4"})]})]})]})})}const tn=g.forwardRef(({className:e,stickyHeader:t,...n},r)=>a.jsx("div",{className:N("pr-twp tw-relative tw-w-full",{"tw-overflow-auto":!t}),children:a.jsx("table",{ref:r,className:N("tw-w-full tw-caption-bottom tw-text-sm",e),...n})}));tn.displayName="Table";const nn=g.forwardRef(({className:e,stickyHeader:t,...n},r)=>a.jsx("thead",{ref:r,className:N({"tw-sticky tw-top-[-1px] tw-bg-background tw-drop-shadow-sm":t},"[&_tr]:tw-border-b",e),...n}));nn.displayName="TableHeader";const rn=g.forwardRef(({className:e,...t},n)=>a.jsx("tbody",{ref:n,className:N("[&_tr:last-child]:tw-border-0",e),...t}));rn.displayName="TableBody";const $s=g.forwardRef(({className:e,...t},n)=>a.jsx("tfoot",{ref:n,className:N("tw-border-t tw-bg-muted/50 tw-font-medium [&>tr]:last:tw-border-b-0",e),...t}));$s.displayName="TableFooter";const Ye=g.forwardRef(({className:e,...t},n)=>a.jsx("tr",{ref:n,className:N("tw-border-b tw-transition-colors hover:tw-bg-muted/50 data-[state=selected]:tw-bg-muted",e),...t}));Ye.displayName="TableRow";const Ae=g.forwardRef(({className:e,...t},n)=>a.jsx("th",{ref:n,className:N("tw-h-12 tw-px-4 tw-text-start tw-align-middle tw-font-medium tw-text-muted-foreground [&:has([role=checkbox])]:tw-pe-0",e),...t}));Ae.displayName="TableHead";const Te=g.forwardRef(({className:e,...t},n)=>a.jsx("td",{ref:n,className:N("tw-p-4 tw-align-middle [&:has([role=checkbox])]:tw-pe-0",e),...t}));Te.displayName="TableCell";const As=g.forwardRef(({className:e,...t},n)=>a.jsx("caption",{ref:n,className:N("tw-mt-4 tw-text-sm tw-text-muted-foreground",e),...t}));As.displayName="TableCaption";function Ds({columns:e,data:t,enablePagination:n=!1,showPaginationControls:r=!1,showColumnVisibilityControls:o=!1,stickyHeader:s=!1,onRowClickHandler:i=()=>{}}){var h;const[l,c]=g.useState([]),[d,u]=g.useState([]),[f,w]=g.useState({}),[b,v]=g.useState({}),m=Se.useReactTable({data:t,columns:e,getCoreRowModel:Se.getCoreRowModel(),...n&&{getPaginationRowModel:Se.getPaginationRowModel()},onSortingChange:c,getSortedRowModel:Se.getSortedRowModel(),onColumnFiltersChange:u,getFilteredRowModel:Se.getFilteredRowModel(),onColumnVisibilityChange:w,onRowSelectionChange:v,state:{sorting:l,columnFilters:d,columnVisibility:f,rowSelection:b}});return a.jsxs("div",{className:"pr-twp",children:[o&&a.jsx(bc,{table:m}),a.jsxs(tn,{stickyHeader:s,children:[a.jsx(nn,{stickyHeader:s,children:m.getHeaderGroups().map(k=>a.jsx(Ye,{children:k.headers.map(O=>a.jsx(Ae,{children:O.isPlaceholder?void 0:Se.flexRender(O.column.columnDef.header,O.getContext())},O.id))},k.id))}),a.jsx(rn,{children:(h=m.getRowModel().rows)!=null&&h.length?m.getRowModel().rows.map(k=>a.jsx(Ye,{onClick:()=>i(k,m),"data-state":k.getIsSelected()&&"selected",children:k.getVisibleCells().map(O=>a.jsx(Te,{children:Se.flexRender(O.column.columnDef.cell,O.getContext())},O.id))},k.id)):a.jsx(Ye,{children:a.jsx(Te,{colSpan:e.length,className:"tw-h-24 tw-text-center",children:"No results."})})})]}),n&&a.jsxs("div",{className:"tw-flex tw-items-center tw-justify-end tw-space-x-2 tw-py-4",children:[a.jsx(pe,{variant:"outline",size:"sm",onClick:()=>m.previousPage(),disabled:!m.getCanPreviousPage(),children:"Previous"}),a.jsx(pe,{variant:"outline",size:"sm",onClick:()=>m.nextPage(),disabled:!m.getCanNextPage(),children:"Next"})]}),n&&r&&a.jsx(vc,{table:m})]})}function xc({occurrenceData:e,setScriptureReference:t,localizedStrings:n}){const r=n["%webView_inventory_occurrences_table_header_reference%"],o=n["%webView_inventory_occurrences_table_header_occurrence%"],s=g.useMemo(()=>{const i=[];return e.forEach(l=>{i.some(c=>ee.deepEqual(c,l))||i.push(l)}),i},[e]);return a.jsxs(tn,{stickyHeader:!0,children:[a.jsx(nn,{stickyHeader:!0,children:a.jsxs(Ye,{children:[a.jsx(Ae,{children:r}),a.jsx(Ae,{children:o})]})}),a.jsx(rn,{children:s.length>0&&s.map(i=>a.jsxs(Ye,{onClick:()=>{t(i.reference)},children:[a.jsx(Te,{children:`${ie.bookNumberToEnglishName(i.reference.bookNum)} ${i.reference.chapterNum}:${i.reference.verseNum}`}),a.jsx(Te,{children:i.text})]},`${i.reference.bookNum} ${i.reference.chapterNum}:${i.reference.verseNum}-${i.text}`))})]})}const cr=g.forwardRef(({className:e,...t},n)=>a.jsx(Hr.Root,{ref:n,className:N("tw-peer pr-twp tw-h-4 tw-w-4 tw-shrink-0 tw-rounded-sm tw-border tw-border-primary tw-ring-offset-background focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50 data-[state=checked]:tw-bg-primary data-[state=checked]:tw-text-primary-foreground",e),...t,children:a.jsx(Hr.Indicator,{className:N("tw-flex tw-items-center tw-justify-center tw-text-current"),children:a.jsx(Y.Check,{className:"tw-h-4 tw-w-4"})})}));cr.displayName=Hr.Root.displayName;const Bs=e=>e.split(/(?:\r?\n|\r)|(?=(?:\\(?:v|c|id)))/g),Yr=e=>{const t=/^\\[vc]\s+(\d+)/,n=e.match(t);if(n)return+n[1]},Vs=e=>{const t=e.match(/^\\id\s+([A-Za-z]+)/);return t?ie.bookIdToNumber(t[1]):0},zs=(e,t,n)=>n.includes(e)?"unapproved":t.includes(e)?"approved":"unknown",Ls=Jt.cva("pr-twp tw-inline-flex tw-items-center tw-justify-center tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors hover:tw-bg-muted hover:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=on]:tw-bg-accent data-[state=on]:tw-text-accent-foreground",{variants:{variant:{default:"tw-bg-transparent",outline:"tw-border tw-border-input tw-bg-transparent hover:tw-bg-accent hover:tw-text-accent-foreground"},size:{default:"tw-h-10 tw-px-3",sm:"tw-h-9 tw-px-2.5",lg:"tw-h-11 tw-px-5"}},defaultVariants:{variant:"default",size:"default"}}),yc=g.forwardRef(({className:e,variant:t,size:n,...r},o)=>a.jsx(ws.Root,{ref:o,className:N(Ls({variant:t,size:n,className:e})),...r}));yc.displayName=ws.Root.displayName;const Fs=g.createContext({size:"default",variant:"default"}),yo=g.forwardRef(({className:e,variant:t,size:n,children:r,...o},s)=>{const i=ye();return a.jsx(lr.Root,{ref:s,className:N("pr-twp tw-flex tw-items-center tw-justify-center tw-gap-1",e),...o,dir:i,children:a.jsx(Fs.Provider,{value:{variant:t,size:n},children:r})})});yo.displayName=lr.Root.displayName;const yn=g.forwardRef(({className:e,children:t,variant:n,size:r,...o},s)=>{const i=g.useContext(Fs);return a.jsx(lr.Item,{ref:s,className:N(Ls({variant:i.variant||n,size:i.size||r}),e),...o,children:t})});yn.displayName=lr.Item.displayName;const dr=e=>e==="asc"?a.jsx(Y.ArrowUpIcon,{className:"tw-ms-2 tw-h-4 tw-w-4"}):e==="desc"?a.jsx(Y.ArrowDownIcon,{className:"tw-ms-2 tw-h-4 tw-w-4"}):a.jsx(Y.ArrowUpDownIcon,{className:"tw-ms-2 tw-h-4 tw-w-4"}),Nc=e=>({accessorKey:"item",accessorFn:t=>t.items[0],header:({column:t})=>a.jsxs(pe,{variant:"ghost",onClick:()=>t.toggleSorting(void 0),children:[e,dr(t.getIsSorted())]})}),kc=(e,t)=>({accessorKey:`item${t}`,accessorFn:n=>n.items[t],header:({column:n})=>a.jsxs(pe,{variant:"ghost",onClick:()=>n.toggleSorting(void 0),children:[e,dr(n.getIsSorted())]})}),jc=e=>({accessorKey:"count",header:({column:t})=>a.jsx("div",{className:"tw-flex tw-justify-end tw-tabular-nums",children:a.jsxs(pe,{variant:"ghost",onClick:()=>t.toggleSorting(void 0),children:[e,dr(t.getIsSorted())]})}),cell:({row:t})=>a.jsx("div",{className:"tw-flex tw-justify-end",children:t.getValue("count")})}),Pr=(e,t,n,r,o,s)=>{let i=[...n];e.forEach(c=>{t==="approved"?i.includes(c)||i.push(c):i=i.filter(d=>d!==c)}),r(i);let l=[...o];e.forEach(c=>{t==="unapproved"?l.includes(c)||l.push(c):l=l.filter(d=>d!==c)}),s(l)},Sc=(e,t,n,r,o)=>({accessorKey:"status",header:({column:s})=>a.jsx("div",{className:"tw-flex tw-justify-center",children:a.jsxs(pe,{variant:"ghost",onClick:()=>s.toggleSorting(void 0),children:[e,dr(s.getIsSorted())]})}),cell:({row:s})=>{const i=s.getValue("status"),l=s.getValue("item");return a.jsxs(yo,{value:i,variant:"outline",type:"single",children:[a.jsx(yn,{onClick:()=>Pr([l],"approved",t,n,r,o),value:"approved",children:a.jsx(Y.CircleCheckIcon,{})}),a.jsx(yn,{onClick:()=>Pr([l],"unapproved",t,n,r,o),value:"unapproved",children:a.jsx(Y.CircleXIcon,{})}),a.jsx(yn,{onClick:()=>Pr([l],"unknown",t,n,r,o),value:"unknown",children:a.jsx(Y.CircleHelpIcon,{})})]})}}),Ec=Object.freeze(["%webView_inventory_all%","%webView_inventory_approved%","%webView_inventory_unapproved%","%webView_inventory_unknown%","%webView_inventory_scope_currentBook%","%webView_inventory_scope_chapter%","%webView_inventory_scope_verse%","%webView_inventory_filter_text%","%webView_inventory_show_additional_items%","%webView_inventory_occurrences_table_header_reference%","%webView_inventory_occurrences_table_header_occurrence%"]),Cc=(e,t,n)=>{let r=e;return t!=="all"&&(r=r.filter(o=>t==="approved"&&o.status==="approved"||t==="unapproved"&&o.status==="unapproved"||t==="unknown"&&o.status==="unknown")),n!==""&&(r=r.filter(o=>o.items[0].includes(n))),r},Tc=(e,t,n,r,o)=>{if(!e)return[];const s=[];let i=t.bookNum,l=t.chapterNum,c=t.verseNum;return Bs(e).forEach(u=>{u.startsWith("\\id")&&(i=Vs(u),l=0,c=0),u.startsWith("\\c")&&(l=Yr(u),c=0),u.startsWith("\\v")&&(c=Yr(u),l===0&&(l=t.chapterNum));let f=o.exec(u)??void 0;for(;f;){const w=[];f.forEach(h=>w.push(h));const b=f.index,v=s.find(h=>ee.deepEqual(h.items,w)),m={reference:{bookNum:i!==void 0?i:-1,chapterNum:l!==void 0?l:-1,verseNum:c!==void 0?c:-1},text:ee.substring(u,Math.max(0,b-25),Math.min(b+25,u.length))};if(v)v.count+=1,v.occurrences.push(m);else{const h={items:w,count:1,status:zs(w[0],n,r),occurrences:[m]};s.push(h)}f=o.exec(u)??void 0}}),s},tt=(e,t)=>e[t]??t;function Rc({scriptureReference:e,setScriptureReference:t,localizedStrings:n,extractItems:r,additionalItemsLabels:o,approvedItems:s,unapprovedItems:i,text:l,scope:c,onScopeChange:d,columns:u}){const f=tt(n,"%webView_inventory_all%"),w=tt(n,"%webView_inventory_approved%"),b=tt(n,"%webView_inventory_unapproved%"),v=tt(n,"%webView_inventory_unknown%"),m=tt(n,"%webView_inventory_scope_currentBook%"),h=tt(n,"%webView_inventory_scope_chapter%"),k=tt(n,"%webView_inventory_scope_verse%"),O=tt(n,"%webView_inventory_filter_text%"),E=tt(n,"%webView_inventory_show_additional_items%"),[j,x]=g.useState(!1),[_,U]=g.useState("all"),[R,P]=g.useState(""),[F,A]=g.useState([]),M=g.useMemo(()=>l?r instanceof RegExp?Tc(l,e,s,i,r):r(l,e,s,i):[],[l,r,e,s,i]),$=g.useMemo(()=>{if(j)return M;const y=[];return M.forEach(T=>{const X=T.items[0],H=y.find(G=>G.items[0]===X);H?(H.count+=T.count,H.occurrences=H.occurrences.concat(T.occurrences)):y.push({items:[X],count:T.count,occurrences:T.occurrences,status:T.status})}),y},[j,M]),W=g.useMemo(()=>Cc($,_,R),[$,_,R]),q=g.useMemo(()=>{var X,H;if(!j)return u;const y=(X=o==null?void 0:o.tableHeaders)==null?void 0:X.length;if(!y)return u;const T=[];for(let G=0;G{A([])},[W]);const V=(y,T)=>{T.setRowSelection(()=>{const X={};return X[y.index]=!0,X}),A(y.original.items)},te=y=>{if(y==="book"||y==="chapter"||y==="verse")d(y);else throw new Error(`Invalid scope value: ${y}`)},oe=y=>{if(y==="all"||y==="approved"||y==="unapproved"||y==="unknown")U(y);else throw new Error(`Invalid status filter value: ${y}`)},ae=g.useMemo(()=>{if($.length===0||F.length===0)return[];const y=$.filter(T=>ee.deepEqual(j?T.items:[T.items[0]],F));if(y.length>1)throw new Error("Selected item is not unique");return y[0].occurrences},[F,j,$]);return a.jsxs("div",{className:"pr-twp tw-flex tw-h-full tw-flex-col",children:[a.jsxs("div",{className:"tw-flex tw-items-stretch",children:[a.jsxs(Et,{onValueChange:y=>oe(y),defaultValue:_,children:[a.jsx(ct,{className:"tw-m-1",children:a.jsx(Ct,{placeholder:"Select filter"})}),a.jsxs(dt,{children:[a.jsx($e,{value:"all",children:f}),a.jsx($e,{value:"approved",children:w}),a.jsx($e,{value:"unapproved",children:b}),a.jsx($e,{value:"unknown",children:v})]})]}),a.jsxs(Et,{onValueChange:y=>te(y),defaultValue:c,children:[a.jsx(ct,{className:"tw-m-1",children:a.jsx(Ct,{placeholder:"Select scope"})}),a.jsxs(dt,{children:[a.jsx($e,{value:"book",children:m}),a.jsx($e,{value:"chapter",children:h}),a.jsx($e,{value:"verse",children:k})]})]}),a.jsx(ut,{className:"tw-m-1 tw-rounded-md tw-border",placeholder:O,value:R,onChange:y=>{P(y.target.value)}}),o&&a.jsxs("div",{className:"tw-m-1 tw-flex tw-items-center tw-rounded-md tw-border",children:[a.jsx(cr,{className:"tw-m-1",checked:j,onCheckedChange:y=>{A([]),x(y)}}),a.jsx(ke,{className:"tw-m-1 tw-flex-shrink-0 tw-whitespace-nowrap",children:(o==null?void 0:o.checkboxText)??E})]})]}),a.jsx("div",{className:"tw-m-1 tw-flex-1 tw-overflow-auto tw-rounded-md tw-border",children:a.jsx(Ds,{columns:q,data:W,onRowClickHandler:V,stickyHeader:!0})}),ae.length>0&&a.jsx("div",{className:"tw-m-1 tw-flex-1 tw-overflow-auto tw-rounded-md tw-border",children:a.jsx(xc,{occurrenceData:ae,setScriptureReference:t,localizedStrings:n})})]})}function Oc({entries:e,getEntriesCount:t=void 0,selected:n,onChange:r,placeholder:o,commandEmptyMessage:s="No entries found",customSelectedText:i,sortSelected:l=!1,icon:c=void 0}){const[d,u]=g.useState(!1),f=g.useCallback(v=>{r(n.includes(v)?n.filter(m=>m!==v):[...n,v])},[n,r]),w=()=>{var v;return n.length===1?((v=e.find(m=>m.value===n[0]))==null?void 0:v.label)??o:i||o},b=g.useMemo(()=>{if(!l)return e;const v=e.filter(h=>h.starred).sort((h,k)=>h.label.localeCompare(k.label)),m=e.filter(h=>!h.starred).sort((h,k)=>{const O=n.includes(h.value),E=n.includes(k.value);return O&&!E?-1:!O&&E?1:h.label.localeCompare(k.label)});return[...v,...m]},[e,n,l]);return a.jsxs(Es,{open:d,onOpenChange:u,children:[a.jsx(Cs,{asChild:!0,children:a.jsxs(pe,{variant:"outline",role:"combobox","aria-expanded":d,className:N("tw-w-full tw-justify-between",n.length>0&&n.length{const m=t?t(v):void 0;return a.jsxs(bo,{value:v.value,onSelect:f,className:"tw-flex tw-items-center tw-gap-2",children:[a.jsx("div",{className:"w-4",children:a.jsx(Y.Check,{className:N("tw-h-4 tw-w-4",n.includes(v.value)?"tw-opacity-100":"tw-opacity-0")})}),a.jsx("div",{className:"tw-w-4",children:v.starred&&a.jsx(Y.Star,{className:"tw-h-4 tw-w-4"})}),a.jsx("div",{className:"tw-flex-grow",children:v.label}),t&&a.jsx("div",{className:"tw-w-10 tw-text-end tw-text-muted-foreground",children:m})]},v.value)})})]})]})})]})}function No({onSearch:e,placeholder:t,isFullWidth:n,className:r}){const[o,s]=g.useState(""),i=c=>{s(c),e(c)},l=ye();return a.jsxs("div",{className:N("tw-relative",{"tw-w-full":n},r),children:[a.jsx(Y.Search,{className:N("tw-absolute tw-top-1/2 tw-h-4 tw-w-4 tw--translate-y-1/2 tw-transform tw-opacity-50",{"tw-right-3":l==="rtl"},{"tw-left-3":l==="ltr"})}),a.jsx(ut,{className:"tw-w-full tw-text-ellipsis tw-pe-9 tw-ps-9",placeholder:t,value:o,onChange:c=>i(c.target.value)}),o&&a.jsxs(pe,{variant:"ghost",size:"icon",className:N("tw-absolute tw-top-1/2 tw-h-7 tw--translate-y-1/2 tw-transform hover:tw-bg-transparent",{"tw-left-0":l==="rtl"},{"tw-right-0":l==="ltr"}),onClick:()=>{i("")},children:[a.jsx(Y.X,{className:"tw-h-4 tw-w-4"}),a.jsx("span",{className:"tw-sr-only",children:"Clear"})]})]})}const ko=g.forwardRef(({className:e,...t},n)=>{const r=ye();return a.jsx(Pe.Root,{orientation:"vertical",ref:n,className:N("tw-flex tw-gap-1 tw-rounded-md tw-text-muted-foreground",e),...t,dir:r})});ko.displayName=Pe.List.displayName;const jo=g.forwardRef(({className:e,...t},n)=>a.jsx(Pe.List,{ref:n,className:N("tw-flex-fit tw-mlk-items-center tw-w-[124px] tw-justify-center tw-rounded-md tw-bg-muted tw-p-1 tw-text-muted-foreground",e),...t}));jo.displayName=Pe.List.displayName;const Gs=g.forwardRef(({className:e,...t},n)=>a.jsx(Pe.Trigger,{ref:n,...t,className:N("overflow-clip tw-inline-flex tw-w-[116px] tw-cursor-pointer tw-items-center tw-justify-center tw-break-words tw-rounded-sm tw-border-0 tw-bg-muted tw-px-3 tw-py-1.5 tw-text-sm tw-font-medium tw-text-inherit tw-ring-offset-background tw-transition-all hover:tw-text-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=active]:tw-bg-background data-[state=active]:tw-text-foreground data-[state=active]:tw-shadow-sm",e)})),So=g.forwardRef(({className:e,...t},n)=>a.jsx(Pe.Content,{ref:n,className:N("tw-ms-5 tw-flex-grow tw-text-foreground tw-ring-offset-background focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2",e),...t}));So.displayName=Pe.Content.displayName;function _c({tabList:e,onSearch:t,searchPlaceholder:n,headerTitle:r,searchClassName:o}){return a.jsxs("div",{className:"pr-twp",children:[a.jsxs("div",{className:"tw-sticky tw-top-0 tw-space-y-2 tw-pb-2",children:[r?a.jsx("h1",{children:r}):"",a.jsx(No,{className:o,onSearch:t,placeholder:n})]}),a.jsxs(ko,{children:[a.jsx(jo,{children:e.map(s=>a.jsx(Gs,{value:s.value,children:s.value},s.key))}),e.map(s=>a.jsx(So,{value:s.value,children:s.content},s.key))]})]})}const ur=g.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>a.jsx(fs.Root,{ref:o,decorative:n,orientation:t,className:N("pr-twp tw-shrink-0 tw-bg-border",t==="horizontal"?"tw-h-[1px] tw-w-full":"tw-h-full tw-w-[1px]",e),...r}));ur.displayName=fs.Root.displayName;function ga({className:e,...t}){return a.jsx("div",{className:N("pr-twp tw-animate-pulse tw-rounded-md tw-bg-muted",e),...t})}const Pc=Mn.Provider,Ic=Mn.Root,Mc=Mn.Trigger,Us=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(Mn.Content,{ref:r,sideOffset:t,className:N("pr-twp tw-z-50 tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-px-3 tw-py-1.5 tw-text-sm tw-text-popover-foreground tw-shadow-md tw-animate-in tw-fade-in-0 tw-zoom-in-95 data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=closed]:tw-zoom-out-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",e),...n}));Us.displayName=Mn.Content.displayName;const $c="16rem",Ac="3rem",qs=g.createContext(void 0);function pr(){const e=g.useContext(qs);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Hs=g.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,side:i="primary",...l},c)=>{const[d,u]=g.useState(e),f=t??d,w=g.useCallback(E=>{const j=typeof E=="function"?E(f):E;n?n(j):u(j)},[n,f]),b=g.useCallback(()=>w(E=>!E),[w]),v=f?"expanded":"collapsed",k=ye()==="ltr"?i:i==="primary"?"secondary":"primary",O=g.useMemo(()=>({state:v,open:f,setOpen:w,toggleSidebar:b,side:k}),[v,f,w,b,k]);return a.jsx(qs.Provider,{value:O,children:a.jsx(Pc,{delayDuration:0,children:a.jsx("div",{style:{"--sidebar-width":$c,"--sidebar-width-icon":Ac,...o},className:N("tw-group/sidebar-wrapper pr-twp tw-flex tw-w-full has-[[data-variant=inset]]:tw-bg-sidebar",r),ref:c,...l,children:s})})})});Hs.displayName="SidebarProvider";const Xs=g.forwardRef(({variant:e="sidebar",collapsible:t="offcanvas",className:n,children:r,...o},s)=>{const i=pr();return t==="none"?a.jsx("div",{className:N("tw-flex tw-h-full tw-w-[--sidebar-width] tw-flex-col tw-bg-sidebar tw-text-sidebar-foreground",n),ref:s,...o,children:r}):a.jsxs("div",{ref:s,className:"tw-group tw-peer tw-hidden tw-text-sidebar-foreground md:tw-block","data-state":i.state,"data-collapsible":i.state==="collapsed"?t:"","data-variant":e,"data-side":i.side,children:[a.jsx("div",{className:N("tw-relative tw-h-svh tw-w-[--sidebar-width] tw-bg-transparent tw-transition-[width] tw-duration-200 tw-ease-linear","group-data-[collapsible=offcanvas]:tw-w-0","group-data-[side=secondary]:tw-rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:tw-w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:tw-w-[--sidebar-width-icon]")}),a.jsx("div",{className:N("tw-absolute tw-inset-y-0 tw-z-10 tw-hidden tw-h-svh tw-w-[--sidebar-width] tw-transition-[left,right,width] tw-duration-200 tw-ease-linear md:tw-flex",i.side==="primary"?"tw-left-0 group-data-[collapsible=offcanvas]:tw-left-[calc(var(--sidebar-width)*-1)]":"tw-right-0 group-data-[collapsible=offcanvas]:tw-right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"tw-p-2 group-data-[collapsible=icon]:tw-w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:tw-w-[--sidebar-width-icon] group-data-[side=primary]:tw-border-r group-data-[side=secondary]:tw-border-l",n),...o,children:a.jsx("div",{"data-sidebar":"sidebar",className:"tw-flex tw-h-full tw-w-full tw-flex-col tw-bg-sidebar group-data-[variant=floating]:tw-rounded-lg group-data-[variant=floating]:tw-border group-data-[variant=floating]:tw-border-sidebar-border group-data-[variant=floating]:tw-shadow",children:r})})]})});Xs.displayName="Sidebar";const Dc=g.forwardRef(({className:e,onClick:t,...n},r)=>{const o=pr();return a.jsxs(pe,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:N("tw-h-7 tw-w-7",e),onClick:s=>{t==null||t(s),o.toggleSidebar()},...n,children:[o.side==="primary"?a.jsx(Y.PanelLeft,{}):a.jsx(Y.PanelRight,{}),a.jsx("span",{className:"tw-sr-only",children:"Toggle Sidebar"})]})});Dc.displayName="SidebarTrigger";const Bc=g.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=pr();return a.jsx("button",{type:"button",ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:N("tw-absolute tw-inset-y-0 tw-z-20 tw-hidden tw-w-4 tw--translate-x-1/2 tw-transition-all tw-ease-linear after:tw-absolute after:tw-inset-y-0 after:tw-left-1/2 after:tw-w-[2px] hover:after:tw-bg-sidebar-border group-data-[side=primary]:tw--right-4 group-data-[side=secondary]:tw-left-0 sm:tw-flex","[[data-side=secondary]_&]:tw-cursor-e-resize [[data-side=secondary]_&]:tw-cursor-w-resize","[[data-side=primary][data-state=collapsed]_&]:tw-cursor-e-resize [[data-side=secondary][data-state=collapsed]_&]:tw-cursor-w-resize","group-data-[collapsible=offcanvas]:tw-translate-x-0 group-data-[collapsible=offcanvas]:after:tw-left-full group-data-[collapsible=offcanvas]:hover:tw-bg-sidebar","[[data-side=primary][data-collapsible=offcanvas]_&]:tw--right-2","[[data-side=secondary][data-collapsible=offcanvas]_&]:tw--left-2",e),...t})});Bc.displayName="SidebarRail";const Ys=g.forwardRef(({className:e,...t},n)=>a.jsx("main",{ref:n,className:N("tw-relative tw-flex tw-flex-1 tw-flex-col tw-bg-background","peer-data-[variant=inset]:tw-min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:tw-m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:tw-ml-2 md:peer-data-[variant=inset]:tw-ml-0 md:peer-data-[variant=inset]:tw-rounded-xl md:peer-data-[variant=inset]:tw-shadow",e),...t}));Ys.displayName="SidebarInset";const Vc=g.forwardRef(({className:e,...t},n)=>a.jsx(ut,{ref:n,"data-sidebar":"input",className:N("tw-h-8 tw-w-full tw-bg-background tw-shadow-none focus-visible:tw-ring-2 focus-visible:tw-ring-sidebar-ring",e),...t}));Vc.displayName="SidebarInput";const zc=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"header",className:N("tw-flex tw-flex-col tw-gap-2 tw-p-2",e),...t}));zc.displayName="SidebarHeader";const Lc=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"footer",className:N("tw-flex tw-flex-col tw-gap-2 tw-p-2",e),...t}));Lc.displayName="SidebarFooter";const Fc=g.forwardRef(({className:e,...t},n)=>a.jsx(ur,{ref:n,"data-sidebar":"separator",className:N("tw-mx-2 tw-w-auto tw-bg-sidebar-border",e),...t}));Fc.displayName="SidebarSeparator";const Ws=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"content",className:N("tw-flex tw-min-h-0 tw-flex-1 tw-flex-col tw-gap-2 tw-overflow-auto group-data-[collapsible=icon]:tw-overflow-hidden",e),...t}));Ws.displayName="SidebarContent";const Wr=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"group",className:N("tw-relative tw-flex tw-w-full tw-min-w-0 tw-flex-col tw-p-2",e),...t}));Wr.displayName="SidebarGroup";const Kr=g.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Kt.Slot:"div";return a.jsx(o,{ref:r,"data-sidebar":"group-label",className:N("tw-flex tw-h-8 tw-shrink-0 tw-items-center tw-rounded-md tw-px-2 tw-text-xs tw-font-medium tw-text-sidebar-foreground/70 tw-outline-none tw-ring-sidebar-ring tw-transition-[margin,opa] tw-duration-200 tw-ease-linear focus-visible:tw-ring-2 [&>svg]:tw-size-4 [&>svg]:tw-shrink-0","group-data-[collapsible=icon]:tw--mt-8 group-data-[collapsible=icon]:tw-opacity-0",e),...n})});Kr.displayName="SidebarGroupLabel";const Gc=g.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Kt.Slot:"button";return a.jsx(o,{ref:r,"data-sidebar":"group-action",className:N("tw-absolute tw-right-3 tw-top-3.5 tw-flex tw-aspect-square tw-w-5 tw-items-center tw-justify-center tw-rounded-md tw-p-0 tw-text-sidebar-foreground tw-outline-none tw-ring-sidebar-ring tw-transition-transform hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 [&>svg]:tw-size-4 [&>svg]:tw-shrink-0","after:tw-absolute after:tw--inset-2 after:md:tw-hidden","group-data-[collapsible=icon]:tw-hidden",e),...n})});Gc.displayName="SidebarGroupAction";const Jr=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"group-content",className:N("tw-w-full tw-text-sm",e),...t}));Jr.displayName="SidebarGroupContent";const Ks=g.forwardRef(({className:e,...t},n)=>a.jsx("ul",{ref:n,"data-sidebar":"menu",className:N("tw-flex tw-w-full tw-min-w-0 tw-flex-col tw-gap-1",e),...t}));Ks.displayName="SidebarMenu";const Js=g.forwardRef(({className:e,...t},n)=>a.jsx("li",{ref:n,"data-sidebar":"menu-item",className:N("tw-group/menu-item tw-relative",e),...t}));Js.displayName="SidebarMenuItem";const Uc=Jt.cva("tw-peer/menu-button tw-flex tw-w-full tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-p-2 tw-text-left tw-text-sm tw-outline-none tw-ring-sidebar-ring tw-transition-[width,height,padding] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 tw-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 data-[active=true]:tw-font-medium data-[active=true]:tw-text-sidebar-accent-foreground data-[state=open]:hover:tw-bg-sidebar-accent data-[state=open]:hover:tw-text-sidebar-accent-foreground group-data-[collapsible=icon]:tw-!size-8 group-data-[collapsible=icon]:tw-!p-2 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0",{variants:{variant:{default:"hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground",outline:"tw-bg-background tw-shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground hover:tw-shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"tw-h-8 tw-text-sm",sm:"tw-h-7 tw-text-xs",lg:"tw-h-12 tw-text-sm group-data-[collapsible=icon]:tw-!p-0"}},defaultVariants:{variant:"default",size:"default"}}),Zs=g.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:s,...i},l)=>{const c=e?Kt.Slot:"button",{state:d}=pr(),u=a.jsx(c,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(Uc({variant:n,size:r}),s),...i});return o?(typeof o=="string"&&(o={children:o}),a.jsxs(Ic,{children:[a.jsx(Mc,{asChild:!0,children:u}),a.jsx(Us,{side:"right",align:"center",hidden:d!=="collapsed",...o})]})):u});Zs.displayName="SidebarMenuButton";const qc=g.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const s=t?Kt.Slot:"button";return a.jsx(s,{ref:o,"data-sidebar":"menu-action",className:N("tw-peer-hover/menu-button:text-sidebar-accent-foreground tw-absolute tw-right-1 tw-top-1.5 tw-flex tw-aspect-square tw-w-5 tw-items-center tw-justify-center tw-rounded-md tw-p-0 tw-text-sidebar-foreground tw-outline-none tw-ring-sidebar-ring tw-transition-transform hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 [&>svg]:tw-size-4 [&>svg]:tw-shrink-0","after:tw-absolute after:tw--inset-2 after:md:tw-hidden","tw-peer-data-[size=sm]/menu-button:top-1","tw-peer-data-[size=default]/menu-button:top-1.5","tw-peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:tw-hidden",n&&"tw-group-focus-within/menu-item:opacity-100 tw-group-hover/menu-item:opacity-100 tw-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:tw-opacity-100 md:tw-opacity-0",e),...r})});qc.displayName="SidebarMenuAction";const Hc=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:N("tw-pointer-events-none tw-absolute tw-right-1 tw-flex tw-h-5 tw-min-w-5 tw-select-none tw-items-center tw-justify-center tw-rounded-md tw-px-1 tw-text-xs tw-font-medium tw-tabular-nums tw-text-sidebar-foreground","tw-peer-hover/menu-button:text-sidebar-accent-foreground tw-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","tw-peer-data-[size=sm]/menu-button:top-1","tw-peer-data-[size=default]/menu-button:top-1.5","tw-peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:tw-hidden",e),...t}));Hc.displayName="SidebarMenuBadge";const Xc=g.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=g.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return a.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:N("tw-flex tw-h-8 tw-items-center tw-gap-2 tw-rounded-md tw-px-2",e),...n,children:[t&&a.jsx(ga,{className:"tw-size-4 tw-rounded-md","data-sidebar":"menu-skeleton-icon"}),a.jsx(ga,{className:"tw-h-4 tw-max-w-[--skeleton-width] tw-flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});Xc.displayName="SidebarMenuSkeleton";const Yc=g.forwardRef(({className:e,...t},n)=>a.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:N("tw-mx-3.5 tw-flex tw-min-w-0 tw-translate-x-px tw-flex-col tw-gap-1 tw-border-l tw-border-sidebar-border tw-px-2.5 tw-py-0.5","group-data-[collapsible=icon]:tw-hidden",e),...t}));Yc.displayName="SidebarMenuSub";const Wc=g.forwardRef(({...e},t)=>a.jsx("li",{ref:t,...e}));Wc.displayName="SidebarMenuSubItem";const Kc=g.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},s)=>{const i=e?Kt.Slot:"a";return a.jsx(i,{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("tw-flex tw-h-7 tw-min-w-0 tw--translate-x-px tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-px-2 tw-text-sidebar-foreground tw-outline-none tw-ring-sidebar-ring hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0 [&>svg]:tw-text-sidebar-accent-foreground","data-[active=true]:tw-bg-sidebar-accent data-[active=true]:tw-text-sidebar-accent-foreground",t==="sm"&&"tw-text-xs",t==="md"&&"tw-text-sm","group-data-[collapsible=icon]:tw-hidden",r),...o})});Kc.displayName="SidebarMenuSubButton";function Qs({id:e,extensionLabels:t,projectInfo:n,handleSelectSidebarItem:r,selectedSidebarItem:o,extensionsSidebarGroupLabel:s,projectsSidebarGroupLabel:i,buttonPlaceholderText:l}){const c=g.useCallback((f,w)=>{r(f,w)},[r]),d=g.useCallback(f=>{const w=n.find(b=>b.projectId===f);return w?w.projectName:f},[n]),u=g.useCallback(f=>!o.projectId&&f===o.label,[o]);return a.jsx(Xs,{id:e,collapsible:"none",variant:"inset",className:"tw-w-96 tw-gap-2 tw-overflow-y-auto tw-rounded tw-bg-slate-100",children:a.jsxs(Ws,{children:[a.jsxs(Wr,{children:[a.jsx(Kr,{className:"tw-text-sm tw-text-gray-400",children:s}),a.jsx(Jr,{children:a.jsx(Ks,{children:t.map(f=>a.jsx(Js,{children:a.jsx(Zs,{className:N("tw-rounded tw-py-2 tw-text-sm tw-text-gray-500 hover:tw-bg-white hover:tw-text-gray-900 hover:tw-shadow-sm active:tw-bg-white",{"tw-bg-white tw-text-gray-900 tw-shadow-sm":u(f)}),onClick:()=>c(f),isActive:u(f),children:a.jsx("span",{className:"tw-pl-3",children:f})})},f))})})]}),a.jsxs(Wr,{children:[a.jsx(Kr,{className:"tw-text-sm tw-text-gray-400",children:i}),a.jsx(Jr,{className:"tw-pl-3",children:a.jsx(Rn,{popoverContentClassName:"tw-z-[1000]",options:n.flatMap(f=>f.projectId),getOptionLabel:f=>d(f),buttonPlaceholder:l,onChange:f=>{const w=d(f);c(w,f)},value:(o==null?void 0:o.projectId)??void 0})})]})]})})}function Jc({id:e,extensionLabels:t,projectInfo:n,children:r,handleSelectSidebarItem:o,selectedSidebarItem:s,onSearch:i,extensionsSidebarGroupLabel:l,projectsSidebarGroupLabel:c,buttonPlaceholderText:d}){return a.jsxs("div",{className:"tw-box-border tw-flex tw-h-full tw-flex-col tw-p-3",children:[a.jsx("div",{className:"tw-box-border tw-flex tw-items-center tw-justify-center tw-py-4",children:a.jsx(No,{className:"tw-w-9/12",onSearch:i,placeholder:"Search app settings, extension settings, and project settings"})}),a.jsxs(Hs,{id:e,className:"tw-h-full tw-flex-1 tw-gap-4 tw-overflow-auto",children:[a.jsx(Qs,{extensionLabels:t,projectInfo:n,handleSelectSidebarItem:o,selectedSidebarItem:s,extensionsSidebarGroupLabel:l,projectsSidebarGroupLabel:c,buttonPlaceholderText:d}),a.jsx(Ys,{className:"tw-overflow-y-auto",children:r})]})]})}const st="scrBook",Zc="scrRef",vt="source",Qc="details",ed="Scripture Reference",td="Scripture Book",ei="Type",nd="Details";function rd(e,t){const n=t??!1;return[{accessorFn:r=>`${ie.bookNumberToId(r.start.bookNum)} ${r.start.chapterNum}:${r.start.verseNum}`,id:st,header:(e==null?void 0:e.scriptureReferenceColumnName)??ed,cell:r=>{const o=r.row.original;return r.row.getIsGrouped()?ie.bookNumberToEnglishName(o.start.bookNum):r.row.groupingColumnId===st?ee.formatScrRef(o.start):void 0},getGroupingValue:r=>r.start.bookNum,sortingFn:(r,o)=>ee.compareScrRefs(r.original.start,o.original.start),enableGrouping:!0},{accessorFn:r=>ee.formatScrRef(r.start),id:Zc,header:void 0,cell:r=>{const o=r.row.original;return r.row.getIsGrouped()?void 0:ee.formatScrRef(o.start)},sortingFn:(r,o)=>ee.compareScrRefs(r.original.start,o.original.start),enableGrouping:!1},{accessorFn:r=>r.source.displayName,id:vt,header:n?(e==null?void 0:e.typeColumnName)??ei:void 0,cell:r=>n||r.row.getIsGrouped()?r.getValue():void 0,getGroupingValue:r=>r.source.id,sortingFn:(r,o)=>r.original.source.displayName.localeCompare(o.original.source.displayName),enableGrouping:!0},{accessorFn:r=>r.detail,id:Qc,header:(e==null?void 0:e.detailsColumnName)??nd,cell:r=>r.getValue(),enableGrouping:!1}]}const od=e=>{if(!("offset"in e.start))throw new Error("No offset available in range start");if(e.end&&!("offset"in e.end))throw new Error("No offset available in range end");const{offset:t}=e.start;let n=0;return e.end&&({offset:n}=e.end),!e.end||ee.compareScrRefs(e.start,e.end)===0?`${ee.scrRefToBBBCCCVVV(e.start)}+${t}`:`${ee.scrRefToBBBCCCVVV(e.start)}+${t}-${ee.scrRefToBBBCCCVVV(e.end)}+${n}`},ba=e=>`${od({start:e.start,end:e.end})} ${e.source.displayName} ${e.detail}`;function ad({sources:e,showColumnHeaders:t=!1,showSourceColumn:n=!1,scriptureReferenceColumnName:r,scriptureBookGroupName:o,typeColumnName:s,detailsColumnName:i,onRowSelected:l}){const[c,d]=g.useState([]),[u,f]=g.useState([{id:st,desc:!1}]),[w,b]=g.useState({}),v=g.useMemo(()=>e.flatMap(R=>R.data.map(P=>({...P,source:R.source}))),[e]),m=g.useMemo(()=>rd({scriptureReferenceColumnName:r,typeColumnName:s,detailsColumnName:i},n),[r,s,i,n]);g.useEffect(()=>{c.includes(vt)?f([{id:vt,desc:!1},{id:st,desc:!1}]):f([{id:st,desc:!1}])},[c]);const h=Se.useReactTable({data:v,columns:m,state:{grouping:c,sorting:u,rowSelection:w},onGroupingChange:d,onSortingChange:f,onRowSelectionChange:b,getExpandedRowModel:Se.getExpandedRowModel(),getGroupedRowModel:Se.getGroupedRowModel(),getCoreRowModel:Se.getCoreRowModel(),getSortedRowModel:Se.getSortedRowModel(),getRowId:ba,autoResetExpanded:!1,enableMultiRowSelection:!1,enableSubRowSelection:!1});g.useEffect(()=>{if(l){const R=h.getSelectedRowModel().rowsById,P=Object.keys(R);if(P.length===1){const F=v.find(A=>ba(A)===P[0])||void 0;F&&l(F)}}},[w,v,l,h]);const k=o??td,O=s??ei,E=[{label:"No Grouping",value:[]},{label:`Group by ${k}`,value:[st]},{label:`Group by ${O}`,value:[vt]},{label:`Group by ${k} and ${O}`,value:[st,vt]},{label:`Group by ${O} and ${k}`,value:[vt,st]}],j=R=>{d(JSON.parse(R))},x=(R,P)=>{!R.getIsGrouped()&&!R.getIsSelected()&&R.getToggleSelectedHandler()(P)},_=(R,P)=>R.getIsGrouped()?"":N("banded-row",P%2===0?"even":"odd"),U=(R,P,F)=>{if(!((R==null?void 0:R.length)===0||P.depth{j(R)},children:[a.jsx(ct,{className:"tw-mb-1 tw-mt-2",children:a.jsx(Ct,{})}),a.jsx(dt,{position:"item-aligned",children:a.jsx(Ps,{children:E.map(R=>a.jsx($e,{value:JSON.stringify(R.value),children:R.label},R.label))})})]}),a.jsxs(tn,{className:"tw-relative tw-flex tw-flex-col tw-overflow-y-auto tw-p-0",children:[t&&a.jsx(nn,{children:h.getHeaderGroups().map(R=>a.jsx(Ye,{children:R.headers.filter(P=>P.column.columnDef.header).map(P=>a.jsx(Ae,{colSpan:P.colSpan,className:"top-0 tw-sticky",children:P.isPlaceholder?void 0:a.jsxs("div",{children:[P.column.getCanGroup()?a.jsx(pe,{variant:"ghost",title:`Toggle grouping by ${P.column.columnDef.header}`,onClick:P.column.getToggleGroupingHandler(),type:"button",children:P.column.getIsGrouped()?"🛑":"👊 "}):void 0," ",Se.flexRender(P.column.columnDef.header,P.getContext())]})},P.id))},R.id))}),a.jsx(rn,{children:h.getRowModel().rows.map((R,P)=>{const F=ye();return a.jsx(Ye,{"data-state":R.getIsSelected()?"selected":"",className:N(_(R,P)),onClick:A=>x(R,A),children:R.getVisibleCells().map(A=>{if(!(A.getIsPlaceholder()||A.column.columnDef.enableGrouping&&!A.getIsGrouped()&&(A.column.columnDef.id!==vt||!n)))return a.jsx(Te,{className:N(A.column.columnDef.id,"tw-p-[1px]",U(c,R,A)),children:(()=>A.getIsGrouped()?a.jsxs(pe,{variant:"link",onClick:R.getToggleExpandedHandler(),type:"button",children:[R.getIsExpanded()&&a.jsx(Y.ChevronDown,{}),!R.getIsExpanded()&&(F==="ltr"?a.jsx(Y.ChevronRight,{}):a.jsx(Y.ChevronLeft,{}))," ",Se.flexRender(A.column.columnDef.cell,A.getContext())," (",R.subRows.length,")"]}):Se.flexRender(A.column.columnDef.cell,A.getContext()))()},A.id)})},R.id)})})]})]})}const Ir={[ee.getLocalizeKeyForScrollGroupId("undefined")]:"Ø",[ee.getLocalizeKeyForScrollGroupId(0)]:"A",[ee.getLocalizeKeyForScrollGroupId(1)]:"B",[ee.getLocalizeKeyForScrollGroupId(2)]:"C",[ee.getLocalizeKeyForScrollGroupId(3)]:"D",[ee.getLocalizeKeyForScrollGroupId(4)]:"E",[ee.getLocalizeKeyForScrollGroupId(5)]:"F",[ee.getLocalizeKeyForScrollGroupId(6)]:"G",[ee.getLocalizeKeyForScrollGroupId(7)]:"H",[ee.getLocalizeKeyForScrollGroupId(8)]:"I",[ee.getLocalizeKeyForScrollGroupId(9)]:"J",[ee.getLocalizeKeyForScrollGroupId(10)]:"K",[ee.getLocalizeKeyForScrollGroupId(11)]:"L",[ee.getLocalizeKeyForScrollGroupId(12)]:"M",[ee.getLocalizeKeyForScrollGroupId(13)]:"N",[ee.getLocalizeKeyForScrollGroupId(14)]:"O",[ee.getLocalizeKeyForScrollGroupId(15)]:"P",[ee.getLocalizeKeyForScrollGroupId(16)]:"Q",[ee.getLocalizeKeyForScrollGroupId(17)]:"R",[ee.getLocalizeKeyForScrollGroupId(18)]:"S",[ee.getLocalizeKeyForScrollGroupId(19)]:"T",[ee.getLocalizeKeyForScrollGroupId(20)]:"U",[ee.getLocalizeKeyForScrollGroupId(21)]:"V",[ee.getLocalizeKeyForScrollGroupId(22)]:"W",[ee.getLocalizeKeyForScrollGroupId(23)]:"X",[ee.getLocalizeKeyForScrollGroupId(24)]:"Y",[ee.getLocalizeKeyForScrollGroupId(25)]:"Z"};function sd({availableScrollGroupIds:e,scrollGroupId:t,onChangeScrollGroupId:n,localizedStrings:r={}}){const o={...Ir,...Object.fromEntries(Object.entries(r).map(([i,l])=>[i,i===l&&i in Ir?Ir[i]:l]))},s=ye();return a.jsxs(Et,{value:`${t}`,onValueChange:i=>n(i==="undefined"?void 0:parseInt(i,10)),children:[a.jsx(ct,{className:"pr-twp tw-w-auto",children:a.jsx(Ct,{placeholder:o[ee.getLocalizeKeyForScrollGroupId(t)]??t})}),a.jsx(dt,{align:s==="rtl"?"end":"start",style:{zIndex:250},children:e.map(i=>a.jsx($e,{value:`${i}`,children:o[ee.getLocalizeKeyForScrollGroupId(i)]},`${i}`))})]})}function id({children:e}){return a.jsx("div",{className:"pr-twp tw-grid",children:e})}function ld({primary:e,secondary:t,children:n,isLoading:r=!1,loadingMessage:o}){return a.jsxs("div",{className:"tw-flex tw-items-center tw-justify-between tw-space-x-4 tw-py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"tw-text-sm tw-font-medium tw-leading-none",children:e}),a.jsx("p",{className:"tw-whitespace-normal tw-break-words tw-text-sm tw-text-muted-foreground",children:t})]}),r?a.jsx("p",{className:"tw-text-sm tw-text-muted-foreground",children:o}):a.jsx("div",{children:n})]})}function cd({primary:e,secondary:t,includeSeparator:n=!1}){return a.jsxs("div",{className:"tw-space-y-4 tw-py-2",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"tw-text-lg tw-font-medium",children:e}),a.jsx("p",{className:"tw-text-sm tw-text-muted-foreground",children:t})]}),n?a.jsx(ur,{}):""]})}function dd({id:e,className:t,listItems:n,selectedListItems:r,handleSelectListItem:o,createLabel:s}){return a.jsx("div",{id:e,className:t,children:n.map(i=>a.jsxs("div",{className:"tw-m-2 tw-flex tw-items-center",children:[a.jsx(cr,{className:"tw-me-2 tw-align-middle",checked:r.includes(i),onCheckedChange:l=>o(i,l)}),a.jsx(ke,{children:s?s(i):i})]},i))})}function ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Eo={},ti={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ti);var wd=ti.exports,Mr={};function Co(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=ni(e[n])}),t}function nt(e,t,n={clone:!0}){const r=n.clone?I({},e):e;return Nt(e)&&Nt(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Nt(t[o])&&o in e&&Nt(e[o])?r[o]=nt(e[o],t[o],n):n.clone?r[o]=Nt(t[o])?ni(t[o]):t[o]:r[o]=t[o])}),r}var Zr={exports:{}},Hn={exports:{}},le={};/** @license React v16.13.1 +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),g=require("react"),H=require("lucide-react"),pt=require("clsx"),yl=require("tailwind-merge"),ps=require("@radix-ui/react-dropdown-menu"),Q=require("platform-bible-utils"),Wt=require("@radix-ui/react-slot"),Kt=require("class-variance-authority"),Nl=require("@radix-ui/react-label"),kl=require("@radix-ui/react-radio-group"),jl=require("@radix-ui/react-popover"),Ae=require("cmdk"),Sl=require("@radix-ui/react-dialog"),_e=require("@tanstack/react-table"),El=require("@radix-ui/react-select"),Cl=require("@radix-ui/react-checkbox"),Tl=require("@radix-ui/react-toggle-group"),Rl=require("@radix-ui/react-toggle"),Ol=require("@radix-ui/react-tabs"),_l=require("@radix-ui/react-separator"),Pl=require("@radix-ui/react-tooltip"),Hr=require("@mui/styled-engine"),Fe=require("@mui/material"),mn=require("react-dom"),ws=require("sonner"),Il=require("@radix-ui/react-slider"),Ml=require("@radix-ui/react-switch"),$l=require("markdown-to-jsx");function Re(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const A=Re(g),me=Re(ps),fs=Re(Nl),Sn=Re(kl),En=Re(jl),et=Re(Sl),ve=Re(El),Xr=Re(Cl),sr=Re(Tl),ms=Re(Rl),De=Re(Ol),hs=Re(_l),Pn=Re(Pl),Al=Re(mn),hn=Re(Il),Yr=Re(Ml);const Dl=yl.extendTailwindMerge({prefix:"tw-"});function N(...e){return Dl(pt.clsx(e))}const Pt=g.forwardRef(({className:e,type:t,...n},r)=>a.jsx("input",{type:t,className:N("pr-twp tw-flex tw-h-10 tw-rounded-md tw-border tw-border-input tw-bg-background tw-px-3 tw-py-2 tw-text-sm tw-ring-offset-background file:tw-border-0 file:tw-bg-transparent file:tw-text-sm file:tw-font-medium file:tw-text-foreground placeholder:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50",e),ref:r,...n}));Pt.displayName="Input";const Bl="layoutDirection";function Se(){const e=localStorage.getItem(Bl);return e==="rtl"?e:"ltr"}const Vl=g.forwardRef(({handleSearch:e,handleKeyDown:t,handleOnClick:n,handleSubmit:r,...o},s)=>{const i=Se();return a.jsxs("div",{className:"tw-relative",children:[a.jsx(Pt,{...o,type:"text",className:N("tw-box-border tw-w-[200px] tw-gap-2.5 tw-rounded-lg tw-border tw-border-solid tw-bg-background tw-py-2 tw-pe-9 tw-ps-4 tw-font-medium tw-shadow-none tw-outline-none"),onChange:l=>e(l.target.value),onKeyDown:l=>{l.key==="Enter"&&r(),t(l)},onClick:n,ref:s}),a.jsx(H.History,{className:N("tw-absolute tw-top-1/2 tw-h-4 tw-w-4 tw--translate-y-1/2 tw-transform tw-cursor-pointer tw-text-muted-foreground",{"tw-right-3":i==="ltr"},{"tw-left-3 tw-right-auto":i==="rtl"}),onClick:()=>{console.log("back in history")}})]})}),In=me.Root,ir=me.Trigger,gs=me.Group,zl=me.Portal,Ll=me.Sub,Fl=me.RadioGroup,bs=g.forwardRef(({className:e,inset:t,children:n,...r},o)=>a.jsxs(me.SubTrigger,{ref:o,className:N("tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-px-2 tw-py-1.5 tw-text-sm tw-outline-none focus:tw-bg-accent data-[state=open]:tw-bg-accent",t&&"tw-pl-8",e),...r,children:[n,a.jsx(H.ChevronRight,{className:"tw-ml-auto tw-h-4 tw-w-4"})]}));bs.displayName=me.SubTrigger.displayName;const vs=g.forwardRef(({className:e,...t},n)=>a.jsx(me.SubContent,{ref:n,className:N("tw-z-50 tw-min-w-[8rem] tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-p-1 tw-text-popover-foreground tw-shadow-lg data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",e),...t}));vs.displayName=me.SubContent.displayName;const Jt=g.forwardRef(({className:e,sideOffset:t=4,children:n,...r},o)=>{const s=Se();return a.jsx(me.Portal,{children:a.jsx(me.Content,{ref:o,sideOffset:t,className:N("pr-twp tw-z-50 tw-min-w-[8rem] tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-p-1 tw-text-popover-foreground tw-shadow-md data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",e),...r,children:a.jsx("div",{dir:s,children:n})})})});Jt.displayName=me.Content.displayName;const Cn=g.forwardRef(({className:e,inset:t,...n},r)=>{const o=Se();return a.jsx(me.Item,{ref:r,className:N("tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-px-2 tw-py-1.5 tw-text-sm tw-outline-none tw-transition-colors focus:tw-bg-accent data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50",t&&"tw-pl-8",e),...n,dir:o})});Cn.displayName=me.Item.displayName;const lr=g.forwardRef(({className:e,children:t,checked:n,...r},o)=>a.jsxs(me.CheckboxItem,{ref:o,className:N("tw-relative tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-py-1.5 tw-pe-2 tw-ps-8 tw-text-sm tw-outline-none tw-transition-colors focus:tw-bg-accent focus:tw-text-accent-foreground data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50",e),checked:n,...r,children:[a.jsx("span",{className:"tw-absolute tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center ltr:tw-left-2 rtl:tw-right-2",children:a.jsx(me.ItemIndicator,{children:a.jsx(H.Check,{className:"tw-h-4 tw-w-4"})})}),t]}));lr.displayName=me.CheckboxItem.displayName;const co=g.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(me.RadioItem,{ref:r,className:N("tw-relative tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-py-1.5 tw-pe-2 tw-ps-8 tw-text-sm tw-outline-none tw-transition-colors focus:tw-bg-accent focus:tw-text-accent-foreground data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50",e),...n,children:[a.jsx("span",{className:"tw-absolute tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center ltr:tw-left-2 rtl:tw-right-2",children:a.jsx(me.ItemIndicator,{children:a.jsx(H.Circle,{className:"tw-h-2 tw-w-2 tw-fill-current"})})}),t]}));co.displayName=me.RadioItem.displayName;const Zt=g.forwardRef(({className:e,inset:t,...n},r)=>a.jsx(me.Label,{ref:r,className:N("tw-px-2 tw-py-1.5 tw-text-sm tw-font-semibold",t&&"tw-pl-8",e),...n}));Zt.displayName=me.Label.displayName;const Qt=g.forwardRef(({className:e,...t},n)=>a.jsx(me.Separator,{ref:n,className:N("tw--mx-1 tw-my-1 tw-h-px tw-bg-muted",e),...t}));Qt.displayName=me.Separator.displayName;function xs({className:e,...t}){return a.jsx("span",{className:N("tw-ms-auto tw-text-xs tw-tracking-widest tw-opacity-60",e),...t})}xs.displayName="DropdownMenuShortcut";var Gl=Object.defineProperty,Ul=(e,t,n)=>t in e?Gl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oe=(e,t,n)=>Ul(e,typeof t!="symbol"?t+"":t,n);const Et=["GEN","EXO","LEV","NUM","DEU","JOS","JDG","RUT","1SA","2SA","1KI","2KI","1CH","2CH","EZR","NEH","EST","JOB","PSA","PRO","ECC","SNG","ISA","JER","LAM","EZK","DAN","HOS","JOL","AMO","OBA","JON","MIC","NAM","HAB","ZEP","HAG","ZEC","MAL","MAT","MRK","LUK","JHN","ACT","ROM","1CO","2CO","GAL","EPH","PHP","COL","1TH","2TH","1TI","2TI","TIT","PHM","HEB","JAS","1PE","2PE","1JN","2JN","3JN","JUD","REV","TOB","JDT","ESG","WIS","SIR","BAR","LJE","S3Y","SUS","BEL","1MA","2MA","3MA","4MA","1ES","2ES","MAN","PS2","ODA","PSS","JSA","JDB","TBS","SST","DNT","BLT","XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","3ES","EZA","5EZ","6EZ","INT","CNC","GLO","TDX","NDX","DAG","PS3","2BA","LBA","JUB","ENO","1MQ","2MQ","3MQ","REP","4BA","LAO"],uo=["XXA","XXB","XXC","XXD","XXE","XXF","XXG","FRT","BAK","OTH","INT","CNC","GLO","TDX","NDX"],ys=["Genesis","Exodus","Leviticus","Numbers","Deuteronomy","Joshua","Judges","Ruth","1 Samuel","2 Samuel","1 Kings","2 Kings","1 Chronicles","2 Chronicles","Ezra","Nehemiah","Esther (Hebrew)","Job","Psalms","Proverbs","Ecclesiastes","Song of Songs","Isaiah","Jeremiah","Lamentations","Ezekiel","Daniel (Hebrew)","Hosea","Joel","Amos","Obadiah","Jonah","Micah","Nahum","Habakkuk","Zephaniah","Haggai","Zechariah","Malachi","Matthew","Mark","Luke","John","Acts","Romans","1 Corinthians","2 Corinthians","Galatians","Ephesians","Philippians","Colossians","1 Thessalonians","2 Thessalonians","1 Timothy","2 Timothy","Titus","Philemon","Hebrews","James","1 Peter","2 Peter","1 John","2 John","3 John","Jude","Revelation","Tobit","Judith","Esther Greek","Wisdom of Solomon","Sirach (Ecclesiasticus)","Baruch","Letter of Jeremiah","Song of 3 Young Men","Susanna","Bel and the Dragon","1 Maccabees","2 Maccabees","3 Maccabees","4 Maccabees","1 Esdras (Greek)","2 Esdras (Latin)","Prayer of Manasseh","Psalm 151","Odes","Psalms of Solomon","Joshua A. *obsolete*","Judges B. *obsolete*","Tobit S. *obsolete*","Susanna Th. *obsolete*","Daniel Th. *obsolete*","Bel Th. *obsolete*","Extra A","Extra B","Extra C","Extra D","Extra E","Extra F","Extra G","Front Matter","Back Matter","Other Matter","3 Ezra *obsolete*","Apocalypse of Ezra","5 Ezra (Latin Prologue)","6 Ezra (Latin Epilogue)","Introduction","Concordance ","Glossary ","Topical Index","Names Index","Daniel Greek","Psalms 152-155","2 Baruch (Apocalypse)","Letter of Baruch","Jubilees","Enoch","1 Meqabyan","2 Meqabyan","3 Meqabyan","Reproof (Proverbs 25-31)","4 Baruch (Rest of Baruch)","Laodiceans"],ha=ec();function en(e,t=!0){return t&&(e=e.toUpperCase()),e in ha?ha[e]:0}function po(e){return en(e)>0}function ql(e){const t=typeof e=="string"?en(e):e;return t>=40&&t<=66}function Hl(e){return(typeof e=="string"?en(e):e)<=39}function Ns(e){return e<=66}function Xl(e){const t=typeof e=="string"?en(e):e;return Ss(t)&&!Ns(t)}function*Yl(){for(let e=1;e<=Et.length;e++)yield e}const Wl=1,ks=Et.length;function Kl(){return["XXA","XXB","XXC","XXD","XXE","XXF","XXG"]}function wo(e,t="***"){const n=e-1;return n<0||n>=Et.length?t:Et[n]}function js(e){return e<=0||e>ks?"******":ys[e-1]}function Jl(e){return js(en(e))}function Ss(e){const t=typeof e=="number"?wo(e):e;return po(t)&&!uo.includes(t)}function Zl(e){const t=typeof e=="number"?wo(e):e;return po(t)&&uo.includes(t)}function Ql(e){return ys[e-1].includes("*obsolete*")}function ec(){const e={};for(let t=0;t(e[e.Unknown=0]="Unknown",e[e.Original=1]="Original",e[e.Septuagint=2]="Septuagint",e[e.Vulgate=3]="Vulgate",e[e.English=4]="English",e[e.RussianProtestant=5]="RussianProtestant",e[e.RussianOrthodox=6]="RussianOrthodox",e))(Ze||{});const Ve=class{constructor(t){if(oe(this,"name"),oe(this,"fullPath"),oe(this,"isPresent"),oe(this,"hasVerseSegments"),oe(this,"isCustomized"),oe(this,"baseVersification"),oe(this,"scriptureBooks"),oe(this,"_type"),t==null)throw new Error("Argument undefined");typeof t=="string"?(this.name=t,this._type=Ze[t]):(this._type=t,this.name=Ze[t])}get type(){return this._type}equals(t){return!t.type||!this.type?!1:t.type===this.type}};oe(Ve,"Original",new Ve(Ze.Original)),oe(Ve,"Septuagint",new Ve(Ze.Septuagint)),oe(Ve,"Vulgate",new Ve(Ze.Vulgate)),oe(Ve,"English",new Ve(Ze.English)),oe(Ve,"RussianProtestant",new Ve(Ze.RussianProtestant)),oe(Ve,"RussianOrthodox",new Ve(Ze.RussianOrthodox));let xt=Ve;function ga(e,t){const n=t[0];for(let r=1;r(e[e.Valid=0]="Valid",e[e.UnknownVersification=1]="UnknownVersification",e[e.OutOfRange=2]="OutOfRange",e[e.VerseOutOfOrder=3]="VerseOutOfOrder",e[e.VerseRepeated=4]="VerseRepeated",e))(Es||{});const Pe=class ie{constructor(t,n,r,o){if(oe(this,"firstChapter"),oe(this,"lastChapter"),oe(this,"lastVerse"),oe(this,"hasSegmentsDefined"),oe(this,"text"),oe(this,"BBBCCCVVVS"),oe(this,"longHashCode"),oe(this,"versification"),oe(this,"rtlMark","‏"),oe(this,"_bookNum",0),oe(this,"_chapterNum",0),oe(this,"_verseNum",0),oe(this,"_verse"),r==null&&o==null)if(t!=null&&typeof t=="string"){const s=t,i=n!=null&&n instanceof xt?n:void 0;this.setEmpty(i),this.parse(s)}else if(t!=null&&typeof t=="number"){const s=n!=null&&n instanceof xt?n:void 0;this.setEmpty(s),this._verseNum=t%ie.chapterDigitShifter,this._chapterNum=Math.floor(t%ie.bookDigitShifter/ie.chapterDigitShifter),this._bookNum=Math.floor(t/ie.bookDigitShifter)}else if(n==null)if(t!=null&&t instanceof ie){const s=t;this._bookNum=s.bookNum,this._chapterNum=s.chapterNum,this._verseNum=s.verseNum,this._verse=s.verse,this.versification=s.versification}else{if(t==null)return;const s=t instanceof xt?t:ie.defaultVersification;this.setEmpty(s)}else throw new Error("VerseRef constructor not supported.");else if(t!=null&&n!=null&&r!=null)if(typeof t=="string"&&typeof n=="string"&&typeof r=="string")this.setEmpty(o),this.updateInternal(t,n,r);else if(typeof t=="number"&&typeof n=="number"&&typeof r=="number")this._bookNum=t,this._chapterNum=n,this._verseNum=r,this.versification=o??ie.defaultVersification;else throw new Error("VerseRef constructor not supported.");else throw new Error("VerseRef constructor not supported.")}static isVerseParseable(t){return t.length>0&&"0123456789".includes(t[0])&&!t.endsWith(this.verseRangeSeparator)&&!t.endsWith(this.verseSequenceIndicator)}static tryParse(t){let n;try{return n=new ie(t),{success:!0,verseRef:n}}catch(r){if(r instanceof dn)return n=new ie,{success:!1,verseRef:n};throw r}}static getBBBCCCVVV(t,n,r){return t%ie.bcvMaxValue*ie.bookDigitShifter+(n>=0?n%ie.bcvMaxValue*ie.chapterDigitShifter:0)+(r>=0?r%ie.bcvMaxValue:0)}static fromJSON(t){const{book:n,chapterNum:r,verseNum:o,verse:s,versificationStr:i}=t,l=s||o.toString();let c;return i&&(c=new xt(i)),n?new ie(n,r.toString(),l,c):new ie}static tryGetVerseNum(t){let n;if(!t)return n=-1,{success:!0,vNum:n};n=0;let r;for(let o=0;o"9")return o===0&&(n=-1),{success:!1,vNum:n};if(n=n*10+ +r-0,n>ie.bcvMaxValue)return n=-1,{success:!1,vNum:n}}return{success:!0,vNum:n}}get isDefault(){return this.bookNum===0&&this.chapterNum===0&&this.verseNum===0&&this.versification==null}get hasMultiple(){return this._verse!=null&&(this._verse.includes(ie.verseRangeSeparator)||this._verse.includes(ie.verseSequenceIndicator))}get book(){return ce.bookNumberToId(this.bookNum,"")}set book(t){this.bookNum=ce.bookIdToNumber(t)}get chapter(){return this.isDefault||this._chapterNum<0?"":this._chapterNum.toString()}set chapter(t){const n=+t;this._chapterNum=Number.isInteger(n)?n:-1}get verse(){return this._verse!=null?this._verse:this.isDefault||this._verseNum<0?"":this._verseNum.toString()}set verse(t){const{success:n,vNum:r}=ie.tryGetVerseNum(t);this._verse=n?void 0:t.replace(this.rtlMark,""),this._verseNum=r,!(this._verseNum>=0)&&({vNum:this._verseNum}=ie.tryGetVerseNum(this._verse))}get bookNum(){return this._bookNum}set bookNum(t){if(t<=0||t>ce.lastBook)throw new dn("BookNum must be greater than zero and less than or equal to last book");this._bookNum=t}get chapterNum(){return this._chapterNum}set chapterNum(t){this.chapterNum=t}get verseNum(){return this._verseNum}set verseNum(t){this._verseNum=t}get versificationStr(){var t;return(t=this.versification)==null?void 0:t.name}set versificationStr(t){this.versification=this.versification!=null?new xt(t):void 0}get valid(){return this.validStatus===0}get validStatus(){return this.validateVerse(ie.verseRangeSeparators,ie.verseSequenceIndicators)}get BBBCCC(){return ie.getBBBCCCVVV(this._bookNum,this._chapterNum,0)}get BBBCCCVVV(){return ie.getBBBCCCVVV(this._bookNum,this._chapterNum,this._verseNum)}get isExcluded(){return!1}parse(t){if(t=t.replace(this.rtlMark,""),t.includes("/")){const s=t.split("/");if(t=s[0],s.length>1)try{const i=+s[1].trim();this.versification=new xt(Ze[i])}catch{throw new dn("Invalid reference : "+t)}}const n=t.trim().split(" ");if(n.length!==2)throw new dn("Invalid reference : "+t);const r=n[1].split(":"),o=+r[0];if(r.length!==2||ce.bookIdToNumber(n[0])===0||!Number.isInteger(o)||o<0||!ie.isVerseParseable(r[1]))throw new dn("Invalid reference : "+t);this.updateInternal(n[0],r[0],r[1])}simplify(){this._verse=void 0}clone(){return new ie(this)}toString(){const t=this.book;return t===""?"":`${t} ${this.chapter}:${this.verse}`}toJSON(){let t=this.verse;(t===""||t===this.verseNum.toString())&&(t=void 0);const n={book:this.book,chapterNum:this.chapterNum,verseNum:this.verseNum,verse:t,versificationStr:this.versificationStr};return t||delete n.verse,n}equals(t){return t instanceof ie?t._bookNum===this._bookNum&&t._chapterNum===this._chapterNum&&t._verseNum===this._verseNum&&t.verse===this.verse&&(t.versification==null&&this.versification==null||t.versification!=null&&this.versification!=null&&t.versification.equals(this.versification)):!1}allVerses(t=!1,n=ie.verseRangeSeparators,r=ie.verseSequenceIndicators){if(this._verse==null||this.chapterNum<=0)return[this.clone()];const o=[],s=ga(this._verse,r);for(const i of s.map(l=>ga(l,n))){const l=this.clone();l.verse=i[0];const c=l.verseNum;if(o.push(l),i.length>1){const d=this.clone();if(d.verse=i[1],!t)for(let u=c+1;ui)return 3;if(r===i)return 4;r=i}return 0}get internalValid(){return this.versification==null?1:this._bookNum<=0||this._bookNum>ce.lastBook?2:(ce.isCanonical(this._bookNum),0)}setEmpty(t=ie.defaultVersification){this._bookNum=0,this._chapterNum=-1,this._verse=void 0,this.versification=t}updateInternal(t,n,r){this.bookNum=ce.bookIdToNumber(t),this.chapter=n,this.verse=r}};oe(Pe,"defaultVersification",xt.English),oe(Pe,"verseRangeSeparator","-"),oe(Pe,"verseSequenceIndicator",","),oe(Pe,"verseRangeSeparators",[Pe.verseRangeSeparator]),oe(Pe,"verseSequenceIndicators",[Pe.verseSequenceIndicator]),oe(Pe,"chapterDigitShifter",1e3),oe(Pe,"bookDigitShifter",Pe.chapterDigitShifter*Pe.chapterDigitShifter),oe(Pe,"bcvMaxValue",Pe.chapterDigitShifter-1),oe(Pe,"ValidStatusType",Es);class dn extends Error{}const tc=g.forwardRef(({bookId:e,handleSelectBook:t,isSelected:n,handleHighlightBook:r,handleKeyDown:o,bookType:s,children:i},l)=>a.jsxs(Cn,{ref:l,textValue:e,className:N("tw-mx-1 tw-flex-col tw-items-start tw-px-1 tw-font-normal tw-text-foreground/80",{"tw-bg-amber-50 tw-text-yellow-900 data-[highlighted]:tw-bg-amber-100":n}),onSelect:c=>{c.preventDefault(),t()},onKeyDown:c=>{o(c)},onFocus:r,onMouseMove:r,children:[a.jsx("span",{className:N("tw-border-b-0 tw-border-e-0 tw-border-s-2 tw-border-t-0 tw-border-solid tw-px-2",{"tw-font-bold":n,"tw-border-s-red-200":s.toLowerCase()==="ot","tw-border-s-purple-200":s.toLowerCase()==="nt","tw-border-s-indigo-200":s.toLowerCase()==="dc"}),children:ce.bookIdToEnglishName(e)}),n&&a.jsx("div",{children:i})]},e));function nc({handleSelectChapter:e,endChapter:t,activeChapter:n,highlightedChapter:r,handleHighlightedChapter:o}){const s=Array.from({length:t},(l,c)=>c+1),i=g.useCallback(l=>{o(l)},[o]);return a.jsx("div",{className:N("tw-flex tw-flex-wrap tw-items-start tw-justify-start tw-self-stretch"),children:s.map(l=>a.jsx("div",{className:N("tw-box-content tw-flex tw-h-4 tw-w-4 tw-cursor-pointer tw-items-center tw-justify-end tw-rounded-md tw-p-2 tw-text-amber-800",{"tw-font-semibold tw-text-amber-900":l===n,"tw-bg-amber-200":l===r}),onClick:c=>{c.preventDefault(),c.stopPropagation(),e(l)},role:"button",onKeyDown:c=>{c.key==="Enter"&&e(l)},tabIndex:0,onMouseMove:()=>i(l),children:l},l))})}function rc({handleSort:e,handleLocationHistory:t,handleBookmarks:n}){return a.jsxs(Zt,{className:"tw-flex tw-justify-between",children:[a.jsx("p",{className:"tw-inline-block tw-align-middle",children:"Go To"}),a.jsxs("div",{className:"tw-flex tw-items-center",children:[a.jsx(H.ArrowDownWideNarrow,{onClick:e,className:"tw-m-2 tw-h-4 tw-w-4 tw-cursor-pointer tw-gap-2"}),a.jsx(H.Clock,{onClick:t,className:"tw-m-2 tw-h-4 tw-w-4 tw-cursor-pointer tw-gap-2"}),a.jsx(H.Bookmark,{onClick:n,className:"tw-m-2 tw-h-4 tw-w-4 tw-cursor-pointer tw-gap-2"})]})]})}const xn=ce.allBookIds,oc={OT:"Old Testament",NT:"New Testament",DC:"Deuterocanon"},ba=["OT","NT","DC"],ac=32+32+32,sc=[/^(\w+)$/i,/^(\w+)(?:\s(\d+))$/i,/^(\w+)(?:\s(\d+):(\d+))$/i],ic=e=>({OT:xn.filter(n=>ce.isBookOT(n)),NT:xn.filter(n=>ce.isBookNT(n)),DC:xn.filter(n=>ce.isBookDC(n))})[e],un=e=>Q.getChaptersForBook(ce.bookIdToNumber(e));function lc(){return xn.map(t=>ce.bookIdToEnglishName(t))}function cc(e){return lc().includes(e)}function dc(e){const t=e.toLowerCase().replace(/^\w/,n=>n.toUpperCase());if(cc(t))return xn.find(r=>ce.bookIdToEnglishName(r)===t)}function uc({scrRef:e,handleSubmit:t}){const n=Se(),[r,o]=g.useState(""),[s,i]=g.useState(ce.bookNumberToId(e.bookNum)),[l,c]=g.useState(e.chapterNum??0),[d,u]=g.useState(ce.bookNumberToId(e.bookNum)),[f,w]=g.useState(!1),[b,x]=g.useState(f),m=g.useRef(void 0),h=g.useRef(void 0),k=g.useRef(void 0),S=g.useCallback(I=>ic(I).filter(M=>{const X=ce.bookIdToEnglishName(M).toLowerCase(),F=r.replace(/[^a-zA-Z]/g,"").toLowerCase();return X.includes(F)||M.toLowerCase().includes(F)}),[r]),E=I=>{o(I)},j=g.useRef(!1),v=g.useCallback(I=>{if(j.current){j.current=!1;return}w(I)},[]),O=g.useCallback((I,M,X,F)=>{if(c(ce.bookNumberToId(e.bookNum)!==I?1:e.chapterNum),M||un(I)===-1){t({bookNum:ce.bookIdToNumber(I),chapterNum:X||1,verseNum:F||1}),w(!1),o("");return}i(s!==I?I:""),w(!M)},[t,e.bookNum,e.chapterNum,s]),z=I=>{I<=0||I>un(s)||O(s,!0,I)},R=g.useCallback(()=>{sc.forEach(I=>{const M=r.match(I);if(M){const[X,F=void 0,B=void 0]=M.slice(1),te=dc(X);(ce.isBookIdValid(X)||te)&&O(te??X,!0,F?parseInt(F,10):1,B?parseInt(B,10):1)}})},[O,r]),_=g.useCallback(I=>{f?(I.key==="ArrowDown"||I.key==="ArrowUp")&&(typeof k<"u"&&k.current!==null?k.current.focus():typeof h<"u"&&h.current!==null&&h.current.focus(),I.preventDefault()):w(!0)},[f]),L=I=>{const{key:M}=I;M==="ArrowRight"||M==="ArrowLeft"||M==="ArrowDown"||M==="ArrowUp"||M==="Enter"||(m.current.dispatchEvent(new KeyboardEvent("keydown",{key:M})),m.current.focus())},$=I=>{const{key:M}=I;if(d===s){if(M==="Enter"){I.preventDefault(),O(s,!0,l);return}const X=M==="ArrowRight"&&!n||M==="ArrowRight"&&n==="ltr"||M==="ArrowLeft"&&n==="rtl",F=M==="ArrowLeft"&&!n||M==="ArrowLeft"&&n==="ltr"||M==="ArrowRight"&&n==="rtl";let B=0;if(X)if(l1)B=-1;else{I.preventDefault();return}else M==="ArrowDown"?B=6:M==="ArrowUp"&&(B=-6);l+B<=0||l+B>un(d)?c(0):B!==0&&(c(l+B),I.preventDefault())}};return g.useEffect(()=>{s===d?s===ce.bookNumberToId(e.bookNum)?c(e.chapterNum):c(1):c(0)},[d,e.bookNum,e.chapterNum,s]),g.useLayoutEffect(()=>{x(f)},[f]),g.useLayoutEffect(()=>{const I=setTimeout(()=>{if(b&&h.current&&k.current){const X=k.current.offsetTop-ac;h.current.scrollTo({top:X,behavior:"instant"})}},10);return()=>{clearTimeout(I)}},[b]),a.jsx("div",{className:"pr-twp tw-flex",children:a.jsxs(In,{modal:!1,open:f,onOpenChange:v,children:[a.jsx(ir,{asChild:!0,children:a.jsx(Vl,{ref:m,value:r,handleSearch:E,handleKeyDown:_,handleOnClick:()=>{i(ce.bookNumberToId(e.bookNum)),u(ce.bookNumberToId(e.bookNum)),c(e.chapterNum>0?e.chapterNum:0),w(!0),m.current.focus()},onFocus:()=>{j.current=!0},handleSubmit:R,placeholder:`${ce.bookNumberToEnglishName(e.bookNum)} ${e.chapterNum}:${e.verseNum}`})}),a.jsx(Jt,{className:"tw-m-1 tw-overflow-y-auto tw-p-0 tw-font-normal tw-text-foreground/80",style:{width:"233px",maxHeight:"500px",zIndex:"250"},onKeyDown:L,align:n==="ltr"?"start":"end",ref:h,children:a.jsxs("div",{className:"rtl:tw-ps-2",children:[a.jsx(rc,{handleSort:()=>console.log("sorting"),handleLocationHistory:()=>console.log("location history"),handleBookmarks:()=>console.log("bookmarks")}),ba.map((I,M)=>S(I).length>0&&a.jsxs("div",{children:[a.jsx(Zt,{className:"tw-font-semibold tw-text-foreground/80",children:oc[I]}),S(I).map(X=>a.jsx("div",{children:a.jsx(tc,{bookId:X,handleSelectBook:()=>O(X,!1),isSelected:s===X,handleHighlightBook:()=>u(X),handleKeyDown:$,bookType:I,ref:F=>{s===X&&(k.current=F)},children:a.jsx(nc,{handleSelectChapter:z,endChapter:un(X),activeChapter:e.bookNum===ce.bookIdToNumber(X)?e.chapterNum:0,highlightedChapter:l,handleHighlightedChapter:F=>{c(F)}})})},X)),ba.length-1!==M?a.jsx(Qt,{}):void 0]},I))]})})]})})}const Cs=Kt.cva("pr-twp tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50",{variants:{variant:{default:"tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/90",destructive:"tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/90",outline:"tw-border tw-border-input tw-bg-background hover:tw-bg-accent hover:tw-text-accent-foreground",secondary:"tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80",ghost:"hover:tw-bg-accent hover:tw-text-accent-foreground",link:"tw-text-primary tw-underline-offset-4 hover:tw-underline"},size:{default:"tw-h-10 tw-px-4 tw-py-2",sm:"tw-h-9 tw-rounded-md tw-px-3",lg:"tw-h-11 tw-rounded-md tw-px-8",icon:"tw-h-10 tw-w-10"}},defaultVariants:{variant:"default",size:"default"}}),fe=g.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Wt.Slot:"button";return a.jsx(i,{className:N(Cs({variant:t,size:n,className:e})),ref:s,...o})});fe.displayName="Button";const pc=Kt.cva("tw-text-sm tw-font-medium tw-leading-none peer-disabled:tw-cursor-not-allowed peer-disabled:tw-opacity-70"),je=g.forwardRef(({className:e,...t},n)=>a.jsx(fs.Root,{ref:n,className:N("pr-twp",pc(),e),...t}));je.displayName=fs.Root.displayName;const fo=g.forwardRef(({className:e,...t},n)=>{const r=Se();return a.jsx(Sn.Root,{className:N("pr-twp tw-grid tw-gap-2",e),...t,ref:n,dir:r})});fo.displayName=Sn.Root.displayName;const Jn=g.forwardRef(({className:e,...t},n)=>a.jsx(Sn.Item,{ref:n,className:N("pr-twp tw-aspect-square tw-h-4 tw-w-4 tw-rounded-full tw-border tw-border-primary tw-text-primary tw-ring-offset-background focus:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50",e),...t,children:a.jsx(Sn.Indicator,{className:"tw-flex tw-items-center tw-justify-center",children:a.jsx(H.Circle,{className:"tw-h-2.5 tw-w-2.5 tw-fill-current tw-text-current"})})}));Jn.displayName=Sn.Item.displayName;const Ts=En.Root,Rs=En.Trigger,mo=g.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{const s=Se();return a.jsx(En.Portal,{children:a.jsx(En.Content,{ref:o,align:t,sideOffset:n,className:N("pr-twp tw-z-50 tw-w-72 tw-rounded-md tw-border tw-bg-popover tw-p-4 tw-text-popover-foreground tw-shadow-md tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",e),...r,dir:s})})});mo.displayName=En.Content.displayName;const wc=et.Portal,Os=g.forwardRef(({className:e,...t},n)=>a.jsx(et.Overlay,{ref:n,className:N("tw-fixed tw-inset-0 tw-z-50 tw-bg-black/80 data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0",e),...t}));Os.displayName=et.Overlay.displayName;const fc=g.forwardRef(({className:e,children:t,...n},r)=>{const o=Se();return a.jsxs(wc,{children:[a.jsx(Os,{}),a.jsxs(et.Content,{ref:r,className:N("pr-twp tw-fixed tw-left-[50%] tw-top-[50%] tw-z-50 tw-grid tw-w-full tw-max-w-lg tw-translate-x-[-50%] tw-translate-y-[-50%] tw-gap-4 tw-border tw-bg-background tw-p-6 tw-shadow-lg tw-duration-200 data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[state=closed]:tw-slide-out-to-left-1/2 data-[state=closed]:tw-slide-out-to-top-[48%] data-[state=open]:tw-slide-in-from-left-1/2 data-[state=open]:tw-slide-in-from-top-[48%] sm:tw-rounded-lg",e),...n,dir:o,children:[t,a.jsxs(et.Close,{className:N("tw-absolute tw-top-4 tw-rounded-sm tw-opacity-70 tw-ring-offset-background tw-transition-opacity hover:tw-opacity-100 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2 disabled:tw-pointer-events-none data-[state=open]:tw-bg-accent data-[state=open]:tw-text-muted-foreground",{"tw-right-4":o==="ltr"},{"tw-left-4":o==="rtl"}),children:[a.jsx(H.X,{className:"tw-h-4 tw-w-4"}),a.jsx("span",{className:"tw-sr-only",children:"Close"})]})]})]})});fc.displayName=et.Content.displayName;const mc=g.forwardRef(({className:e,...t},n)=>a.jsx(et.Title,{ref:n,className:N("tw-text-lg tw-font-semibold tw-leading-none tw-tracking-tight",e),...t}));mc.displayName=et.Title.displayName;const hc=g.forwardRef(({className:e,...t},n)=>a.jsx(et.Description,{ref:n,className:N("tw-text-sm tw-text-muted-foreground",e),...t}));hc.displayName=et.Description.displayName;const ho=g.forwardRef(({className:e,...t},n)=>a.jsx(Ae.Command,{ref:n,className:N("tw-flex tw-h-full tw-w-full tw-flex-col tw-overflow-hidden tw-rounded-md tw-bg-popover tw-text-popover-foreground",e),...t}));ho.displayName=Ae.Command.displayName;const go=g.forwardRef(({className:e,...t},n)=>{const r=Se();return a.jsxs("div",{className:"tw-flex tw-items-center tw-border-b tw-px-3",dir:r,children:[a.jsx(H.Search,{className:"tw-me-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50"}),a.jsx(Ae.Command.Input,{ref:n,className:N("tw-flex tw-h-11 tw-w-full tw-rounded-md tw-bg-transparent tw-py-3 tw-text-sm tw-outline-none placeholder:tw-text-muted-foreground disabled:tw-cursor-not-allowed disabled:tw-opacity-50",e),...t})]})});go.displayName=Ae.Command.Input.displayName;const bo=g.forwardRef(({className:e,...t},n)=>a.jsx(Ae.Command.List,{ref:n,className:N("tw-max-h-[300px] tw-overflow-y-auto tw-overflow-x-hidden",e),...t}));bo.displayName=Ae.Command.List.displayName;const vo=g.forwardRef((e,t)=>a.jsx(Ae.Command.Empty,{ref:t,className:"tw-py-6 tw-text-center tw-text-sm",...e}));vo.displayName=Ae.Command.Empty.displayName;const _s=g.forwardRef(({className:e,...t},n)=>a.jsx(Ae.Command.Group,{ref:n,className:N("tw-overflow-hidden tw-p-1 tw-text-foreground [&_[cmdk-group-heading]]:tw-px-2 [&_[cmdk-group-heading]]:tw-py-1.5 [&_[cmdk-group-heading]]:tw-text-xs [&_[cmdk-group-heading]]:tw-font-medium [&_[cmdk-group-heading]]:tw-text-muted-foreground",e),...t}));_s.displayName=Ae.Command.Group.displayName;const gc=g.forwardRef(({className:e,...t},n)=>a.jsx(Ae.Command.Separator,{ref:n,className:N("tw--mx-1 tw-h-px tw-bg-border",e),...t}));gc.displayName=Ae.Command.Separator.displayName;const xo=g.forwardRef(({className:e,...t},n)=>a.jsx(Ae.Command.Item,{ref:n,className:N("tw-relative tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-px-2 tw-py-1.5 tw-text-sm tw-outline-none data-[disabled=true]:tw-pointer-events-none data-[selected=true]:tw-bg-accent data-[selected=true]:tw-text-accent-foreground data-[disabled=true]:tw-opacity-50",e),...t}));xo.displayName=Ae.Command.Item.displayName;function bc(e){return typeof e=="string"?e:typeof e=="number"?e.toString():e.label}function Zn({id:e,options:t=[],className:n,buttonClassName:r,popoverContentClassName:o,value:s,onChange:i=()=>{},getOptionLabel:l=bc,icon:c=void 0,buttonPlaceholder:d="",textPlaceholder:u="",commandEmptyMessage:f="No option found",buttonVariant:w="outline",alignDropDown:b="start",isDisabled:x=!1,...m}){const[h,k]=g.useState(!1);return a.jsxs(Ts,{open:h,onOpenChange:k,...m,children:[a.jsx(Rs,{asChild:!0,children:a.jsxs(fe,{variant:w,role:"combobox","aria-expanded":h,id:e,className:N("tw-flex tw-w-[200px] tw-items-center tw-justify-between tw-overflow-hidden",r??n),disabled:x,children:[a.jsxs("div",{className:"tw-flex tw-flex-1 tw-items-center tw-overflow-hidden",children:[c&&a.jsx("div",{className:"tw-pe-2",children:c}),a.jsx("span",{className:"tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap",children:s?l(s):d})]}),a.jsx(H.ChevronsUpDown,{className:"tw-ms-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50"})]})}),a.jsx(mo,{align:b,className:N("tw-w-[200px] tw-p-0",o),children:a.jsxs(ho,{children:[a.jsx(go,{placeholder:u,className:"tw-text-inherit"}),a.jsx(vo,{children:f}),a.jsx(bo,{children:t.map(S=>a.jsxs(xo,{value:l(S),onSelect:()=>{i(S),k(!1)},children:[a.jsx(H.Check,{className:N("tw-me-2 tw-h-4 tw-w-4",{"tw-opacity-0":!s||l(s)!==l(S)})}),l(S)]},l(S)))})]})})]})}function Ps({startChapter:e,endChapter:t,handleSelectStartChapter:n,handleSelectEndChapter:r,isDisabled:o=!1,chapterCount:s}){const i=g.useMemo(()=>Array.from({length:s},(d,u)=>u+1),[s]),l=d=>{n(d),d>t&&r(d)},c=d=>{r(d),dd.toString(),value:e},"start chapter"),a.jsx(je,{htmlFor:"end-chapters-combobox",children:"to"}),a.jsx(Zn,{isDisabled:o,onChange:c,buttonClassName:"tw-ms-2 tw-w-20",options:i,getOptionLabel:d=>d.toString(),value:t},"end chapter")]})}var Is=(e=>(e.CURRENT_BOOK="current book",e.CHOOSE_BOOKS="choose books",e))(Is||{});const vc=Object.freeze(["%webView_bookSelector_currentBook%","%webView_bookSelector_choose%","%webView_bookSelector_chooseBooks%"]),Pr=(e,t)=>e[t]??t;function xc({handleBookSelectionModeChange:e,currentBookName:t,onSelectBooks:n,selectedBookIds:r,chapterCount:o,endChapter:s,handleSelectEndChapter:i,startChapter:l,handleSelectStartChapter:c,localizedStrings:d}){const u=Pr(d,"%webView_bookSelector_currentBook%"),f=Pr(d,"%webView_bookSelector_choose%"),w=Pr(d,"%webView_bookSelector_chooseBooks%"),[b,x]=g.useState("current book"),m=h=>{x(h),e(h)};return a.jsx(fo,{className:"pr-twp tw-flex",value:b,onValueChange:h=>m(h),children:a.jsxs("div",{className:"tw-flex tw-w-full tw-flex-col tw-gap-4",children:[a.jsxs("div",{className:"tw-grid tw-grid-cols-[25%,25%,50%]",children:[a.jsxs("div",{className:"tw-flex tw-items-center",children:[a.jsx(Jn,{value:"current book"}),a.jsx(je,{className:"tw-ms-1",children:u})]}),a.jsx(je,{className:"tw-flex tw-items-center",children:t}),a.jsx("div",{className:"tw-flex tw-items-center tw-justify-end",children:a.jsx(Ps,{isDisabled:b==="choose books",handleSelectStartChapter:c,handleSelectEndChapter:i,chapterCount:o,startChapter:l,endChapter:s})})]}),a.jsxs("div",{className:"tw-grid tw-grid-cols-[25%,50%,25%]",children:[a.jsxs("div",{className:"tw-flex tw-items-center",children:[a.jsx(Jn,{value:"choose books"}),a.jsx(je,{className:"tw-ms-1",children:w})]}),a.jsx(je,{className:"tw-flex tw-items-center",children:r.map(h=>ce.bookIdToEnglishName(h)).join(", ")}),a.jsx(fe,{disabled:b==="current book",onClick:()=>n(),children:f})]})]})})}function yc({table:e}){return a.jsxs(In,{children:[a.jsx(ps.DropdownMenuTrigger,{asChild:!0,children:a.jsxs(fe,{variant:"outline",size:"sm",className:"tw-ml-auto tw-hidden tw-h-8 lg:tw-flex",children:[a.jsx(H.FilterIcon,{className:"tw-mr-2 tw-h-4 tw-w-4"}),"View"]})}),a.jsxs(Jt,{align:"end",className:"tw-w-[150px]",children:[a.jsx(Zt,{children:"Toggle columns"}),a.jsx(Qt,{}),e.getAllColumns().filter(t=>t.getCanHide()).map(t=>a.jsx(lr,{className:"tw-capitalize",checked:t.getIsVisible(),onCheckedChange:n=>t.toggleVisibility(!!n),children:t.id},t.id))]})]})}const Ct=ve.Root,Ms=ve.Group,Tt=ve.Value,ft=g.forwardRef(({className:e,children:t,...n},r)=>{const o=Se();return a.jsxs(ve.Trigger,{ref:r,className:N("tw-flex tw-h-10 tw-w-full tw-items-center tw-justify-between tw-rounded-md tw-border tw-border-input tw-bg-background tw-px-3 tw-py-2 tw-text-sm tw-ring-offset-background placeholder:tw-text-muted-foreground focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50 [&>span]:tw-line-clamp-1",e),...n,dir:o,children:[t,a.jsx(ve.Icon,{asChild:!0,children:a.jsx(H.ChevronDown,{className:"tw-h-4 tw-w-4 tw-opacity-50"})})]})});ft.displayName=ve.Trigger.displayName;const yo=g.forwardRef(({className:e,...t},n)=>a.jsx(ve.ScrollUpButton,{ref:n,className:N("tw-flex tw-cursor-default tw-items-center tw-justify-center tw-py-1",e),...t,children:a.jsx(H.ChevronUp,{className:"tw-h-4 tw-w-4"})}));yo.displayName=ve.ScrollUpButton.displayName;const No=g.forwardRef(({className:e,...t},n)=>a.jsx(ve.ScrollDownButton,{ref:n,className:N("tw-flex tw-cursor-default tw-items-center tw-justify-center tw-py-1",e),...t,children:a.jsx(H.ChevronDown,{className:"tw-h-4 tw-w-4"})}));No.displayName=ve.ScrollDownButton.displayName;const mt=g.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>{const s=Se();return a.jsx(ve.Portal,{children:a.jsxs(ve.Content,{ref:o,className:N("pr-twp tw-relative tw-z-50 tw-max-h-96 tw-min-w-[8rem] tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-text-popover-foreground tw-shadow-md data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:tw-translate-y-1 data-[side=left]:tw--translate-x-1 data-[side=right]:tw-translate-x-1 data-[side=top]:tw--translate-y-1",e),position:n,...r,children:[a.jsx(yo,{}),a.jsx(ve.Viewport,{className:N("tw-p-1",n==="popper"&&"tw-h-[var(--radix-select-trigger-height)] tw-w-full tw-min-w-[var(--radix-select-trigger-width)]"),children:a.jsx("div",{dir:s,children:t})}),a.jsx(No,{})]})})});mt.displayName=ve.Content.displayName;const $s=g.forwardRef(({className:e,...t},n)=>a.jsx(ve.Label,{ref:n,className:N("tw-py-1.5 tw-pl-8 tw-pr-2 tw-text-sm tw-font-semibold",e),...t}));$s.displayName=ve.Label.displayName;const ze=g.forwardRef(({className:e,children:t,...n},r)=>a.jsxs(ve.Item,{ref:r,className:N("tw-relative tw-flex tw-w-full tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-py-1.5 tw-pe-2 tw-ps-8 tw-text-sm tw-outline-none focus:tw-bg-accent focus:tw-text-accent-foreground data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50",e),...n,children:[a.jsx("span",{className:"tw-absolute tw-start-2 tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center",children:a.jsx(ve.ItemIndicator,{children:a.jsx(H.Check,{className:"tw-h-4 tw-w-4"})})}),a.jsx(ve.ItemText,{children:t})]}));ze.displayName=ve.Item.displayName;const As=g.forwardRef(({className:e,...t},n)=>a.jsx(ve.Separator,{ref:n,className:N("tw--mx-1 tw-my-1 tw-h-px tw-bg-muted",e),...t}));As.displayName=ve.Separator.displayName;function Nc({table:e}){return a.jsx("div",{className:"tw-flex tw-items-center tw-justify-between tw-px-2 tw-pb-3 tw-pt-3",children:a.jsxs("div",{className:"tw-flex tw-items-center tw-space-x-6 lg:tw-space-x-8",children:[a.jsxs("div",{className:"tw-flex-1 tw-text-sm tw-text-muted-foreground",children:[e.getFilteredSelectedRowModel().rows.length," of"," ",e.getFilteredRowModel().rows.length," row(s) selected"]}),a.jsxs("div",{className:"tw-flex tw-items-center tw-space-x-2",children:[a.jsx("p",{className:"tw-text-nowrap tw-text-sm tw-font-medium",children:"Rows per page"}),a.jsxs(Ct,{value:`${e.getState().pagination.pageSize}`,onValueChange:t=>{e.setPageSize(Number(t))},children:[a.jsx(ft,{className:"tw-h-8 tw-w-[70px]",children:a.jsx(Tt,{placeholder:e.getState().pagination.pageSize})}),a.jsx(mt,{side:"top",children:[10,20,30,40,50].map(t=>a.jsx(ze,{value:`${t}`,children:t},t))})]})]}),a.jsxs("div",{className:"tw-flex tw-w-[100px] tw-items-center tw-justify-center tw-text-sm tw-font-medium",children:["Page ",e.getState().pagination.pageIndex+1," of ",e.getPageCount()]}),a.jsxs("div",{className:"tw-flex tw-items-center tw-space-x-2",children:[a.jsxs(fe,{variant:"outline",size:"icon",className:"tw-hidden tw-h-8 tw-w-8 tw-p-0 lg:tw-flex",onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:[a.jsx("span",{className:"tw-sr-only",children:"Go to first page"}),a.jsx(H.ArrowLeftIcon,{className:"tw-h-4 tw-w-4"})]}),a.jsxs(fe,{variant:"outline",size:"icon",className:"tw-h-8 tw-w-8 tw-p-0",onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:[a.jsx("span",{className:"tw-sr-only",children:"Go to previous page"}),a.jsx(H.ChevronLeftIcon,{className:"tw-h-4 tw-w-4"})]}),a.jsxs(fe,{variant:"outline",size:"icon",className:"tw-h-8 tw-w-8 tw-p-0",onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:[a.jsx("span",{className:"tw-sr-only",children:"Go to next page"}),a.jsx(H.ChevronRightIcon,{className:"tw-h-4 tw-w-4"})]}),a.jsxs(fe,{variant:"outline",size:"icon",className:"tw-hidden tw-h-8 tw-w-8 tw-p-0 lg:tw-flex",onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage(),children:[a.jsx("span",{className:"tw-sr-only",children:"Go to last page"}),a.jsx(H.ArrowRightIcon,{className:"tw-h-4 tw-w-4"})]})]})]})})}const tn=g.forwardRef(({className:e,stickyHeader:t,...n},r)=>a.jsx("div",{className:N("pr-twp tw-relative tw-w-full",{"tw-overflow-auto":!t}),children:a.jsx("table",{ref:r,className:N("tw-w-full tw-caption-bottom tw-text-sm",e),...n})}));tn.displayName="Table";const nn=g.forwardRef(({className:e,stickyHeader:t,...n},r)=>a.jsx("thead",{ref:r,className:N({"tw-sticky tw-top-[-1px] tw-bg-background tw-drop-shadow-sm":t},"[&_tr]:tw-border-b",e),...n}));nn.displayName="TableHeader";const rn=g.forwardRef(({className:e,...t},n)=>a.jsx("tbody",{ref:n,className:N("[&_tr:last-child]:tw-border-0",e),...t}));rn.displayName="TableBody";const Ds=g.forwardRef(({className:e,...t},n)=>a.jsx("tfoot",{ref:n,className:N("tw-border-t tw-bg-muted/50 tw-font-medium [&>tr]:last:tw-border-b-0",e),...t}));Ds.displayName="TableFooter";const Ke=g.forwardRef(({className:e,...t},n)=>a.jsx("tr",{ref:n,className:N("tw-border-b tw-transition-colors hover:tw-bg-muted/50 data-[state=selected]:tw-bg-muted",e),...t}));Ke.displayName="TableRow";const st=g.forwardRef(({className:e,...t},n)=>a.jsx("th",{ref:n,className:N("tw-h-12 tw-px-4 tw-text-start tw-align-middle tw-font-medium tw-text-muted-foreground [&:has([role=checkbox])]:tw-pe-0",e),...t}));st.displayName="TableHead";const Ie=g.forwardRef(({className:e,...t},n)=>a.jsx("td",{ref:n,className:N("tw-p-4 tw-align-middle [&:has([role=checkbox])]:tw-pe-0",e),...t}));Ie.displayName="TableCell";const Bs=g.forwardRef(({className:e,...t},n)=>a.jsx("caption",{ref:n,className:N("tw-mt-4 tw-text-sm tw-text-muted-foreground",e),...t}));Bs.displayName="TableCaption";function Vs({columns:e,data:t,enablePagination:n=!1,showPaginationControls:r=!1,showColumnVisibilityControls:o=!1,stickyHeader:s=!1,onRowClickHandler:i=()=>{}}){var h;const[l,c]=g.useState([]),[d,u]=g.useState([]),[f,w]=g.useState({}),[b,x]=g.useState({}),m=_e.useReactTable({data:t,columns:e,getCoreRowModel:_e.getCoreRowModel(),...n&&{getPaginationRowModel:_e.getPaginationRowModel()},onSortingChange:c,getSortedRowModel:_e.getSortedRowModel(),onColumnFiltersChange:u,getFilteredRowModel:_e.getFilteredRowModel(),onColumnVisibilityChange:w,onRowSelectionChange:x,state:{sorting:l,columnFilters:d,columnVisibility:f,rowSelection:b}});return a.jsxs("div",{className:"pr-twp",children:[o&&a.jsx(yc,{table:m}),a.jsxs(tn,{stickyHeader:s,children:[a.jsx(nn,{stickyHeader:s,children:m.getHeaderGroups().map(k=>a.jsx(Ke,{children:k.headers.map(S=>a.jsx(st,{children:S.isPlaceholder?void 0:_e.flexRender(S.column.columnDef.header,S.getContext())},S.id))},k.id))}),a.jsx(rn,{children:(h=m.getRowModel().rows)!=null&&h.length?m.getRowModel().rows.map(k=>a.jsx(Ke,{onClick:()=>i(k,m),"data-state":k.getIsSelected()&&"selected",children:k.getVisibleCells().map(S=>a.jsx(Ie,{children:_e.flexRender(S.column.columnDef.cell,S.getContext())},S.id))},k.id)):a.jsx(Ke,{children:a.jsx(Ie,{colSpan:e.length,className:"tw-h-24 tw-text-center",children:"No results."})})})]}),n&&a.jsxs("div",{className:"tw-flex tw-items-center tw-justify-end tw-space-x-2 tw-py-4",children:[a.jsx(fe,{variant:"outline",size:"sm",onClick:()=>m.previousPage(),disabled:!m.getCanPreviousPage(),children:"Previous"}),a.jsx(fe,{variant:"outline",size:"sm",onClick:()=>m.nextPage(),disabled:!m.getCanNextPage(),children:"Next"})]}),n&&r&&a.jsx(Nc,{table:m})]})}function kc({occurrenceData:e,setScriptureReference:t,localizedStrings:n}){const r=n["%webView_inventory_occurrences_table_header_reference%"],o=n["%webView_inventory_occurrences_table_header_occurrence%"],s=g.useMemo(()=>{const i=[];return e.forEach(l=>{i.some(c=>Q.deepEqual(c,l))||i.push(l)}),i},[e]);return a.jsxs(tn,{stickyHeader:!0,children:[a.jsx(nn,{stickyHeader:!0,children:a.jsxs(Ke,{children:[a.jsx(st,{children:r}),a.jsx(st,{children:o})]})}),a.jsx(rn,{children:s.length>0&&s.map(i=>a.jsxs(Ke,{onClick:()=>{t(i.reference)},children:[a.jsx(Ie,{children:`${ce.bookNumberToEnglishName(i.reference.bookNum)} ${i.reference.chapterNum}:${i.reference.verseNum}`}),a.jsx(Ie,{children:i.text})]},`${i.reference.bookNum} ${i.reference.chapterNum}:${i.reference.verseNum}-${i.text}`))})]})}const cr=g.forwardRef(({className:e,...t},n)=>a.jsx(Xr.Root,{ref:n,className:N("tw-peer pr-twp tw-h-4 tw-w-4 tw-shrink-0 tw-rounded-sm tw-border tw-border-primary tw-ring-offset-background focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50 data-[state=checked]:tw-bg-primary data-[state=checked]:tw-text-primary-foreground",e),...t,children:a.jsx(Xr.Indicator,{className:N("tw-flex tw-items-center tw-justify-center tw-text-current"),children:a.jsx(H.Check,{className:"tw-h-4 tw-w-4"})})}));cr.displayName=Xr.Root.displayName;const zs=e=>e.split(/(?:\r?\n|\r)|(?=(?:\\(?:v|c|id)))/g),Wr=e=>{const t=/^\\[vc]\s+(\d+)/,n=e.match(t);if(n)return+n[1]},Ls=e=>{const t=e.match(/^\\id\s+([A-Za-z]+)/);return t?ce.bookIdToNumber(t[1]):0},Fs=(e,t,n)=>n.includes(e)?"unapproved":t.includes(e)?"approved":"unknown",Gs=Kt.cva("pr-twp tw-inline-flex tw-items-center tw-justify-center tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors hover:tw-bg-muted hover:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=on]:tw-bg-accent data-[state=on]:tw-text-accent-foreground",{variants:{variant:{default:"tw-bg-transparent",outline:"tw-border tw-border-input tw-bg-transparent hover:tw-bg-accent hover:tw-text-accent-foreground"},size:{default:"tw-h-10 tw-px-3",sm:"tw-h-9 tw-px-2.5",lg:"tw-h-11 tw-px-5"}},defaultVariants:{variant:"default",size:"default"}}),jc=g.forwardRef(({className:e,variant:t,size:n,...r},o)=>a.jsx(ms.Root,{ref:o,className:N(Gs({variant:t,size:n,className:e})),...r}));jc.displayName=ms.Root.displayName;const Us=g.createContext({size:"default",variant:"default"}),ko=g.forwardRef(({className:e,variant:t,size:n,children:r,...o},s)=>{const i=Se();return a.jsx(sr.Root,{ref:s,className:N("pr-twp tw-flex tw-items-center tw-justify-center tw-gap-1",e),...o,dir:i,children:a.jsx(Us.Provider,{value:{variant:t,size:n},children:r})})});ko.displayName=sr.Root.displayName;const yn=g.forwardRef(({className:e,children:t,variant:n,size:r,...o},s)=>{const i=g.useContext(Us);return a.jsx(sr.Item,{ref:s,className:N(Gs({variant:i.variant||n,size:i.size||r}),e),...o,children:t})});yn.displayName=sr.Item.displayName;const dr=e=>e==="asc"?a.jsx(H.ArrowUpIcon,{className:"tw-ms-2 tw-h-4 tw-w-4"}):e==="desc"?a.jsx(H.ArrowDownIcon,{className:"tw-ms-2 tw-h-4 tw-w-4"}):a.jsx(H.ArrowUpDownIcon,{className:"tw-ms-2 tw-h-4 tw-w-4"}),Sc=e=>({accessorKey:"item",accessorFn:t=>t.items[0],header:({column:t})=>a.jsxs(fe,{variant:"ghost",onClick:()=>t.toggleSorting(void 0),children:[e,dr(t.getIsSorted())]})}),Ec=(e,t)=>({accessorKey:`item${t}`,accessorFn:n=>n.items[t],header:({column:n})=>a.jsxs(fe,{variant:"ghost",onClick:()=>n.toggleSorting(void 0),children:[e,dr(n.getIsSorted())]})}),Cc=e=>({accessorKey:"count",header:({column:t})=>a.jsx("div",{className:"tw-flex tw-justify-end tw-tabular-nums",children:a.jsxs(fe,{variant:"ghost",onClick:()=>t.toggleSorting(void 0),children:[e,dr(t.getIsSorted())]})}),cell:({row:t})=>a.jsx("div",{className:"tw-flex tw-justify-end",children:t.getValue("count")})}),Ir=(e,t,n,r,o,s)=>{let i=[...n];e.forEach(c=>{t==="approved"?i.includes(c)||i.push(c):i=i.filter(d=>d!==c)}),r(i);let l=[...o];e.forEach(c=>{t==="unapproved"?l.includes(c)||l.push(c):l=l.filter(d=>d!==c)}),s(l)},Tc=(e,t,n,r,o)=>({accessorKey:"status",header:({column:s})=>a.jsx("div",{className:"tw-flex tw-justify-center",children:a.jsxs(fe,{variant:"ghost",onClick:()=>s.toggleSorting(void 0),children:[e,dr(s.getIsSorted())]})}),cell:({row:s})=>{const i=s.getValue("status"),l=s.getValue("item");return a.jsxs(ko,{value:i,variant:"outline",type:"single",children:[a.jsx(yn,{onClick:()=>Ir([l],"approved",t,n,r,o),value:"approved",children:a.jsx(H.CircleCheckIcon,{})}),a.jsx(yn,{onClick:()=>Ir([l],"unapproved",t,n,r,o),value:"unapproved",children:a.jsx(H.CircleXIcon,{})}),a.jsx(yn,{onClick:()=>Ir([l],"unknown",t,n,r,o),value:"unknown",children:a.jsx(H.CircleHelpIcon,{})})]})}}),Rc=Object.freeze(["%webView_inventory_all%","%webView_inventory_approved%","%webView_inventory_unapproved%","%webView_inventory_unknown%","%webView_inventory_scope_currentBook%","%webView_inventory_scope_chapter%","%webView_inventory_scope_verse%","%webView_inventory_filter_text%","%webView_inventory_show_additional_items%","%webView_inventory_occurrences_table_header_reference%","%webView_inventory_occurrences_table_header_occurrence%"]),Oc=(e,t,n)=>{let r=e;return t!=="all"&&(r=r.filter(o=>t==="approved"&&o.status==="approved"||t==="unapproved"&&o.status==="unapproved"||t==="unknown"&&o.status==="unknown")),n!==""&&(r=r.filter(o=>o.items[0].includes(n))),r},_c=(e,t,n,r,o)=>{if(!e)return[];const s=[];let i=t.bookNum,l=t.chapterNum,c=t.verseNum;return zs(e).forEach(u=>{u.startsWith("\\id")&&(i=Ls(u),l=0,c=0),u.startsWith("\\c")&&(l=Wr(u),c=0),u.startsWith("\\v")&&(c=Wr(u),l===0&&(l=t.chapterNum));let f=o.exec(u)??void 0;for(;f;){const w=[];f.forEach(h=>w.push(h));const b=f.index,x=s.find(h=>Q.deepEqual(h.items,w)),m={reference:{bookNum:i!==void 0?i:-1,chapterNum:l!==void 0?l:-1,verseNum:c!==void 0?c:-1},text:Q.substring(u,Math.max(0,b-25),Math.min(b+25,u.length))};if(x)x.count+=1,x.occurrences.push(m);else{const h={items:w,count:1,status:Fs(w[0],n,r),occurrences:[m]};s.push(h)}f=o.exec(u)??void 0}}),s},at=(e,t)=>e[t]??t;function Pc({scriptureReference:e,setScriptureReference:t,localizedStrings:n,extractItems:r,additionalItemsLabels:o,approvedItems:s,unapprovedItems:i,text:l,scope:c,onScopeChange:d,columns:u}){const f=at(n,"%webView_inventory_all%"),w=at(n,"%webView_inventory_approved%"),b=at(n,"%webView_inventory_unapproved%"),x=at(n,"%webView_inventory_unknown%"),m=at(n,"%webView_inventory_scope_currentBook%"),h=at(n,"%webView_inventory_scope_chapter%"),k=at(n,"%webView_inventory_scope_verse%"),S=at(n,"%webView_inventory_filter_text%"),E=at(n,"%webView_inventory_show_additional_items%"),[j,v]=g.useState(!1),[O,z]=g.useState("all"),[R,_]=g.useState(""),[L,$]=g.useState([]),I=g.useMemo(()=>l?r instanceof RegExp?_c(l,e,s,i,r):r(l,e,s,i):[],[l,r,e,s,i]),M=g.useMemo(()=>{if(j)return I;const y=[];return I.forEach(C=>{const G=C.items[0],U=y.find(V=>V.items[0]===G);U?(U.count+=C.count,U.occurrences=U.occurrences.concat(C.occurrences)):y.push({items:[G],count:C.count,occurrences:C.occurrences,status:C.status})}),y},[j,I]),X=g.useMemo(()=>Oc(M,O,R),[M,O,R]),F=g.useMemo(()=>{var G,U;if(!j)return u;const y=(G=o==null?void 0:o.tableHeaders)==null?void 0:G.length;if(!y)return u;const C=[];for(let V=0;V{$([])},[X]);const B=(y,C)=>{C.setRowSelection(()=>{const G={};return G[y.index]=!0,G}),$(y.original.items)},te=y=>{if(y==="book"||y==="chapter"||y==="verse")d(y);else throw new Error(`Invalid scope value: ${y}`)},ae=y=>{if(y==="all"||y==="approved"||y==="unapproved"||y==="unknown")z(y);else throw new Error(`Invalid status filter value: ${y}`)},se=g.useMemo(()=>{if(M.length===0||L.length===0)return[];const y=M.filter(C=>Q.deepEqual(j?C.items:[C.items[0]],L));if(y.length>1)throw new Error("Selected item is not unique");return y[0].occurrences},[L,j,M]);return a.jsxs("div",{className:"pr-twp tw-flex tw-h-full tw-flex-col",children:[a.jsxs("div",{className:"tw-flex tw-items-stretch",children:[a.jsxs(Ct,{onValueChange:y=>ae(y),defaultValue:O,children:[a.jsx(ft,{className:"tw-m-1",children:a.jsx(Tt,{placeholder:"Select filter"})}),a.jsxs(mt,{children:[a.jsx(ze,{value:"all",children:f}),a.jsx(ze,{value:"approved",children:w}),a.jsx(ze,{value:"unapproved",children:b}),a.jsx(ze,{value:"unknown",children:x})]})]}),a.jsxs(Ct,{onValueChange:y=>te(y),defaultValue:c,children:[a.jsx(ft,{className:"tw-m-1",children:a.jsx(Tt,{placeholder:"Select scope"})}),a.jsxs(mt,{children:[a.jsx(ze,{value:"book",children:m}),a.jsx(ze,{value:"chapter",children:h}),a.jsx(ze,{value:"verse",children:k})]})]}),a.jsx(Pt,{className:"tw-m-1 tw-rounded-md tw-border",placeholder:S,value:R,onChange:y=>{_(y.target.value)}}),o&&a.jsxs("div",{className:"tw-m-1 tw-flex tw-items-center tw-rounded-md tw-border",children:[a.jsx(cr,{className:"tw-m-1",checked:j,onCheckedChange:y=>{$([]),v(y)}}),a.jsx(je,{className:"tw-m-1 tw-flex-shrink-0 tw-whitespace-nowrap",children:(o==null?void 0:o.checkboxText)??E})]})]}),a.jsx("div",{className:"tw-m-1 tw-flex-1 tw-overflow-auto tw-rounded-md tw-border",children:a.jsx(Vs,{columns:F,data:X,onRowClickHandler:B,stickyHeader:!0})}),se.length>0&&a.jsx("div",{className:"tw-m-1 tw-flex-1 tw-overflow-auto tw-rounded-md tw-border",children:a.jsx(kc,{occurrenceData:se,setScriptureReference:t,localizedStrings:n})})]})}function qs({entries:e,getEntriesCount:t=void 0,selected:n,onChange:r,placeholder:o,commandEmptyMessage:s="No entries found",customSelectedText:i,sortSelected:l=!1,icon:c=void 0,className:d=void 0}){const[u,f]=g.useState(!1),w=g.useCallback(m=>{var k;const h=(k=e.find(S=>S.label===m))==null?void 0:k.value;h&&r(n.includes(h)?n.filter(S=>S!==h):[...n,h])},[e,n,r]),b=()=>i||o,x=g.useMemo(()=>{if(!l)return e;const m=e.filter(k=>k.starred).sort((k,S)=>k.label.localeCompare(S.label)),h=e.filter(k=>!k.starred).sort((k,S)=>{const E=n.includes(k.value),j=n.includes(S.value);return E&&!j?-1:!E&&j?1:k.label.localeCompare(S.label)});return[...m,...h]},[e,n,l]);return a.jsx("div",{className:d,children:a.jsxs(Ts,{open:u,onOpenChange:f,children:[a.jsx(Rs,{asChild:!0,children:a.jsxs(fe,{variant:"ghost",role:"combobox","aria-expanded":u,className:N("tw-w-full tw-justify-between",n.length>0&&n.length{const h=t?t(m):void 0;return a.jsxs(xo,{value:m.label,onSelect:w,className:"tw-flex tw-items-center tw-gap-2",children:[a.jsx("div",{className:"w-4",children:a.jsx(H.Check,{className:N("tw-h-4 tw-w-4",n.includes(m.value)?"tw-opacity-100":"tw-opacity-0")})}),a.jsx("div",{className:"tw-w-4",children:m.starred&&a.jsx(H.Star,{className:"tw-h-4 tw-w-4"})}),a.jsx("div",{className:"tw-flex-grow",children:m.label}),t&&a.jsx("div",{className:"tw-w-10 tw-text-end tw-text-muted-foreground",children:h})]},m.label)})})]})]})})]})})}function ur({onSearch:e,placeholder:t,isFullWidth:n,className:r}){const[o,s]=g.useState(""),i=c=>{s(c),e(c)},l=Se();return a.jsxs("div",{className:N("tw-relative",{"tw-w-full":n},r),children:[a.jsx(H.Search,{className:N("tw-absolute tw-top-1/2 tw-h-4 tw-w-4 tw--translate-y-1/2 tw-transform tw-opacity-50",{"tw-right-3":l==="rtl"},{"tw-left-3":l==="ltr"})}),a.jsx(Pt,{className:"tw-w-full tw-text-ellipsis tw-pe-9 tw-ps-9",placeholder:t,value:o,onChange:c=>i(c.target.value)}),o&&a.jsxs(fe,{variant:"ghost",size:"icon",className:N("tw-absolute tw-top-1/2 tw-h-7 tw--translate-y-1/2 tw-transform hover:tw-bg-transparent",{"tw-left-0":l==="rtl"},{"tw-right-0":l==="ltr"}),onClick:()=>{i("")},children:[a.jsx(H.X,{className:"tw-h-4 tw-w-4"}),a.jsx("span",{className:"tw-sr-only",children:"Clear"})]})]})}const jo=g.forwardRef(({className:e,...t},n)=>{const r=Se();return a.jsx(De.Root,{orientation:"vertical",ref:n,className:N("tw-flex tw-gap-1 tw-rounded-md tw-text-muted-foreground",e),...t,dir:r})});jo.displayName=De.List.displayName;const So=g.forwardRef(({className:e,...t},n)=>a.jsx(De.List,{ref:n,className:N("tw-flex-fit tw-mlk-items-center tw-w-[124px] tw-justify-center tw-rounded-md tw-bg-muted tw-p-1 tw-text-muted-foreground",e),...t}));So.displayName=De.List.displayName;const Hs=g.forwardRef(({className:e,...t},n)=>a.jsx(De.Trigger,{ref:n,...t,className:N("overflow-clip tw-inline-flex tw-w-[116px] tw-cursor-pointer tw-items-center tw-justify-center tw-break-words tw-rounded-sm tw-border-0 tw-bg-muted tw-px-3 tw-py-1.5 tw-text-sm tw-font-medium tw-text-inherit tw-ring-offset-background tw-transition-all hover:tw-text-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=active]:tw-bg-background data-[state=active]:tw-text-foreground data-[state=active]:tw-shadow-sm",e)})),Eo=g.forwardRef(({className:e,...t},n)=>a.jsx(De.Content,{ref:n,className:N("tw-ms-5 tw-flex-grow tw-text-foreground tw-ring-offset-background focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2",e),...t}));Eo.displayName=De.Content.displayName;function Ic({tabList:e,onSearch:t,searchPlaceholder:n,headerTitle:r,searchClassName:o}){return a.jsxs("div",{className:"pr-twp",children:[a.jsxs("div",{className:"tw-sticky tw-top-0 tw-space-y-2 tw-pb-2",children:[r?a.jsx("h1",{children:r}):"",a.jsx(ur,{className:o,onSearch:t,placeholder:n})]}),a.jsxs(jo,{children:[a.jsx(So,{children:e.map(s=>a.jsx(Hs,{value:s.value,children:s.value},s.key))}),e.map(s=>a.jsx(Eo,{value:s.value,children:s.content},s.key))]})]})}const pr=g.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},o)=>a.jsx(hs.Root,{ref:o,decorative:n,orientation:t,className:N("pr-twp tw-shrink-0 tw-bg-border",t==="horizontal"?"tw-h-[1px] tw-w-full":"tw-h-full tw-w-[1px]",e),...r}));pr.displayName=hs.Root.displayName;function va({className:e,...t}){return a.jsx("div",{className:N("pr-twp tw-animate-pulse tw-rounded-md tw-bg-muted",e),...t})}const Mc=Pn.Provider,$c=Pn.Root,Ac=Pn.Trigger,Xs=g.forwardRef(({className:e,sideOffset:t=4,...n},r)=>a.jsx(Pn.Content,{ref:r,sideOffset:t,className:N("pr-twp tw-z-50 tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-px-3 tw-py-1.5 tw-text-sm tw-text-popover-foreground tw-shadow-md tw-animate-in tw-fade-in-0 tw-zoom-in-95 data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=closed]:tw-zoom-out-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2",e),...n}));Xs.displayName=Pn.Content.displayName;const Dc="16rem",Bc="3rem",Ys=g.createContext(void 0);function wr(){const e=g.useContext(Ys);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const Ws=g.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:o,children:s,side:i="primary",...l},c)=>{const[d,u]=g.useState(e),f=t??d,w=g.useCallback(E=>{const j=typeof E=="function"?E(f):E;n?n(j):u(j)},[n,f]),b=g.useCallback(()=>w(E=>!E),[w]),x=f?"expanded":"collapsed",k=Se()==="ltr"?i:i==="primary"?"secondary":"primary",S=g.useMemo(()=>({state:x,open:f,setOpen:w,toggleSidebar:b,side:k}),[x,f,w,b,k]);return a.jsx(Ys.Provider,{value:S,children:a.jsx(Mc,{delayDuration:0,children:a.jsx("div",{style:{"--sidebar-width":Dc,"--sidebar-width-icon":Bc,...o},className:N("tw-group/sidebar-wrapper pr-twp tw-flex tw-w-full has-[[data-variant=inset]]:tw-bg-sidebar",r),ref:c,...l,children:s})})})});Ws.displayName="SidebarProvider";const Ks=g.forwardRef(({variant:e="sidebar",collapsible:t="offcanvas",className:n,children:r,...o},s)=>{const i=wr();return t==="none"?a.jsx("div",{className:N("tw-flex tw-h-full tw-w-[--sidebar-width] tw-flex-col tw-bg-sidebar tw-text-sidebar-foreground",n),ref:s,...o,children:r}):a.jsxs("div",{ref:s,className:"tw-group tw-peer tw-hidden tw-text-sidebar-foreground md:tw-block","data-state":i.state,"data-collapsible":i.state==="collapsed"?t:"","data-variant":e,"data-side":i.side,children:[a.jsx("div",{className:N("tw-relative tw-h-svh tw-w-[--sidebar-width] tw-bg-transparent tw-transition-[width] tw-duration-200 tw-ease-linear","group-data-[collapsible=offcanvas]:tw-w-0","group-data-[side=secondary]:tw-rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:tw-w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:tw-w-[--sidebar-width-icon]")}),a.jsx("div",{className:N("tw-absolute tw-inset-y-0 tw-z-10 tw-hidden tw-h-svh tw-w-[--sidebar-width] tw-transition-[left,right,width] tw-duration-200 tw-ease-linear md:tw-flex",i.side==="primary"?"tw-left-0 group-data-[collapsible=offcanvas]:tw-left-[calc(var(--sidebar-width)*-1)]":"tw-right-0 group-data-[collapsible=offcanvas]:tw-right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"tw-p-2 group-data-[collapsible=icon]:tw-w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:tw-w-[--sidebar-width-icon] group-data-[side=primary]:tw-border-r group-data-[side=secondary]:tw-border-l",n),...o,children:a.jsx("div",{"data-sidebar":"sidebar",className:"tw-flex tw-h-full tw-w-full tw-flex-col tw-bg-sidebar group-data-[variant=floating]:tw-rounded-lg group-data-[variant=floating]:tw-border group-data-[variant=floating]:tw-border-sidebar-border group-data-[variant=floating]:tw-shadow",children:r})})]})});Ks.displayName="Sidebar";const Vc=g.forwardRef(({className:e,onClick:t,...n},r)=>{const o=wr();return a.jsxs(fe,{ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:N("tw-h-7 tw-w-7",e),onClick:s=>{t==null||t(s),o.toggleSidebar()},...n,children:[o.side==="primary"?a.jsx(H.PanelLeft,{}):a.jsx(H.PanelRight,{}),a.jsx("span",{className:"tw-sr-only",children:"Toggle Sidebar"})]})});Vc.displayName="SidebarTrigger";const zc=g.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=wr();return a.jsx("button",{type:"button",ref:n,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:N("tw-absolute tw-inset-y-0 tw-z-20 tw-hidden tw-w-4 tw--translate-x-1/2 tw-transition-all tw-ease-linear after:tw-absolute after:tw-inset-y-0 after:tw-left-1/2 after:tw-w-[2px] hover:after:tw-bg-sidebar-border group-data-[side=primary]:tw--right-4 group-data-[side=secondary]:tw-left-0 sm:tw-flex","[[data-side=secondary]_&]:tw-cursor-e-resize [[data-side=secondary]_&]:tw-cursor-w-resize","[[data-side=primary][data-state=collapsed]_&]:tw-cursor-e-resize [[data-side=secondary][data-state=collapsed]_&]:tw-cursor-w-resize","group-data-[collapsible=offcanvas]:tw-translate-x-0 group-data-[collapsible=offcanvas]:after:tw-left-full group-data-[collapsible=offcanvas]:hover:tw-bg-sidebar","[[data-side=primary][data-collapsible=offcanvas]_&]:tw--right-2","[[data-side=secondary][data-collapsible=offcanvas]_&]:tw--left-2",e),...t})});zc.displayName="SidebarRail";const Js=g.forwardRef(({className:e,...t},n)=>a.jsx("main",{ref:n,className:N("tw-relative tw-flex tw-flex-1 tw-flex-col tw-bg-background","peer-data-[variant=inset]:tw-min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:tw-m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:tw-ml-2 md:peer-data-[variant=inset]:tw-ml-0 md:peer-data-[variant=inset]:tw-rounded-xl md:peer-data-[variant=inset]:tw-shadow",e),...t}));Js.displayName="SidebarInset";const Lc=g.forwardRef(({className:e,...t},n)=>a.jsx(Pt,{ref:n,"data-sidebar":"input",className:N("tw-h-8 tw-w-full tw-bg-background tw-shadow-none focus-visible:tw-ring-2 focus-visible:tw-ring-sidebar-ring",e),...t}));Lc.displayName="SidebarInput";const Fc=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"header",className:N("tw-flex tw-flex-col tw-gap-2 tw-p-2",e),...t}));Fc.displayName="SidebarHeader";const Gc=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"footer",className:N("tw-flex tw-flex-col tw-gap-2 tw-p-2",e),...t}));Gc.displayName="SidebarFooter";const Uc=g.forwardRef(({className:e,...t},n)=>a.jsx(pr,{ref:n,"data-sidebar":"separator",className:N("tw-mx-2 tw-w-auto tw-bg-sidebar-border",e),...t}));Uc.displayName="SidebarSeparator";const Zs=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"content",className:N("tw-flex tw-min-h-0 tw-flex-1 tw-flex-col tw-gap-2 tw-overflow-auto group-data-[collapsible=icon]:tw-overflow-hidden",e),...t}));Zs.displayName="SidebarContent";const Kr=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"group",className:N("tw-relative tw-flex tw-w-full tw-min-w-0 tw-flex-col tw-p-2",e),...t}));Kr.displayName="SidebarGroup";const Jr=g.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Wt.Slot:"div";return a.jsx(o,{ref:r,"data-sidebar":"group-label",className:N("tw-flex tw-h-8 tw-shrink-0 tw-items-center tw-rounded-md tw-px-2 tw-text-xs tw-font-medium tw-text-sidebar-foreground/70 tw-outline-none tw-ring-sidebar-ring tw-transition-[margin,opa] tw-duration-200 tw-ease-linear focus-visible:tw-ring-2 [&>svg]:tw-size-4 [&>svg]:tw-shrink-0","group-data-[collapsible=icon]:tw--mt-8 group-data-[collapsible=icon]:tw-opacity-0",e),...n})});Jr.displayName="SidebarGroupLabel";const qc=g.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const o=t?Wt.Slot:"button";return a.jsx(o,{ref:r,"data-sidebar":"group-action",className:N("tw-absolute tw-right-3 tw-top-3.5 tw-flex tw-aspect-square tw-w-5 tw-items-center tw-justify-center tw-rounded-md tw-p-0 tw-text-sidebar-foreground tw-outline-none tw-ring-sidebar-ring tw-transition-transform hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 [&>svg]:tw-size-4 [&>svg]:tw-shrink-0","after:tw-absolute after:tw--inset-2 after:md:tw-hidden","group-data-[collapsible=icon]:tw-hidden",e),...n})});qc.displayName="SidebarGroupAction";const Zr=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"group-content",className:N("tw-w-full tw-text-sm",e),...t}));Zr.displayName="SidebarGroupContent";const Qs=g.forwardRef(({className:e,...t},n)=>a.jsx("ul",{ref:n,"data-sidebar":"menu",className:N("tw-flex tw-w-full tw-min-w-0 tw-flex-col tw-gap-1",e),...t}));Qs.displayName="SidebarMenu";const ei=g.forwardRef(({className:e,...t},n)=>a.jsx("li",{ref:n,"data-sidebar":"menu-item",className:N("tw-group/menu-item tw-relative",e),...t}));ei.displayName="SidebarMenuItem";const Hc=Kt.cva("tw-peer/menu-button tw-flex tw-w-full tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-p-2 tw-text-left tw-text-sm tw-outline-none tw-ring-sidebar-ring tw-transition-[width,height,padding] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 tw-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 data-[active=true]:tw-font-medium data-[active=true]:tw-text-sidebar-accent-foreground data-[state=open]:hover:tw-bg-sidebar-accent data-[state=open]:hover:tw-text-sidebar-accent-foreground group-data-[collapsible=icon]:tw-!size-8 group-data-[collapsible=icon]:tw-!p-2 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0",{variants:{variant:{default:"hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground",outline:"tw-bg-background tw-shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground hover:tw-shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"tw-h-8 tw-text-sm",sm:"tw-h-7 tw-text-xs",lg:"tw-h-12 tw-text-sm group-data-[collapsible=icon]:tw-!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ti=g.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:s,...i},l)=>{const c=e?Wt.Slot:"button",{state:d}=wr(),u=a.jsx(c,{ref:l,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:N(Hc({variant:n,size:r}),s),...i});return o?(typeof o=="string"&&(o={children:o}),a.jsxs($c,{children:[a.jsx(Ac,{asChild:!0,children:u}),a.jsx(Xs,{side:"right",align:"center",hidden:d!=="collapsed",...o})]})):u});ti.displayName="SidebarMenuButton";const Xc=g.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},o)=>{const s=t?Wt.Slot:"button";return a.jsx(s,{ref:o,"data-sidebar":"menu-action",className:N("tw-peer-hover/menu-button:text-sidebar-accent-foreground tw-absolute tw-right-1 tw-top-1.5 tw-flex tw-aspect-square tw-w-5 tw-items-center tw-justify-center tw-rounded-md tw-p-0 tw-text-sidebar-foreground tw-outline-none tw-ring-sidebar-ring tw-transition-transform hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 [&>svg]:tw-size-4 [&>svg]:tw-shrink-0","after:tw-absolute after:tw--inset-2 after:md:tw-hidden","tw-peer-data-[size=sm]/menu-button:top-1","tw-peer-data-[size=default]/menu-button:top-1.5","tw-peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:tw-hidden",n&&"tw-group-focus-within/menu-item:opacity-100 tw-group-hover/menu-item:opacity-100 tw-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:tw-opacity-100 md:tw-opacity-0",e),...r})});Xc.displayName="SidebarMenuAction";const Yc=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,"data-sidebar":"menu-badge",className:N("tw-pointer-events-none tw-absolute tw-right-1 tw-flex tw-h-5 tw-min-w-5 tw-select-none tw-items-center tw-justify-center tw-rounded-md tw-px-1 tw-text-xs tw-font-medium tw-tabular-nums tw-text-sidebar-foreground","tw-peer-hover/menu-button:text-sidebar-accent-foreground tw-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","tw-peer-data-[size=sm]/menu-button:top-1","tw-peer-data-[size=default]/menu-button:top-1.5","tw-peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:tw-hidden",e),...t}));Yc.displayName="SidebarMenuBadge";const Wc=g.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const o=g.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return a.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:N("tw-flex tw-h-8 tw-items-center tw-gap-2 tw-rounded-md tw-px-2",e),...n,children:[t&&a.jsx(va,{className:"tw-size-4 tw-rounded-md","data-sidebar":"menu-skeleton-icon"}),a.jsx(va,{className:"tw-h-4 tw-max-w-[--skeleton-width] tw-flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});Wc.displayName="SidebarMenuSkeleton";const Kc=g.forwardRef(({className:e,...t},n)=>a.jsx("ul",{ref:n,"data-sidebar":"menu-sub",className:N("tw-mx-3.5 tw-flex tw-min-w-0 tw-translate-x-px tw-flex-col tw-gap-1 tw-border-l tw-border-sidebar-border tw-px-2.5 tw-py-0.5","group-data-[collapsible=icon]:tw-hidden",e),...t}));Kc.displayName="SidebarMenuSub";const Jc=g.forwardRef(({...e},t)=>a.jsx("li",{ref:t,...e}));Jc.displayName="SidebarMenuSubItem";const Zc=g.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...o},s)=>{const i=e?Wt.Slot:"a";return a.jsx(i,{ref:s,"data-sidebar":"menu-sub-button","data-size":t,"data-active":n,className:N("tw-flex tw-h-7 tw-min-w-0 tw--translate-x-px tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-px-2 tw-text-sidebar-foreground tw-outline-none tw-ring-sidebar-ring hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0 [&>svg]:tw-text-sidebar-accent-foreground","data-[active=true]:tw-bg-sidebar-accent data-[active=true]:tw-text-sidebar-accent-foreground",t==="sm"&&"tw-text-xs",t==="md"&&"tw-text-sm","group-data-[collapsible=icon]:tw-hidden",r),...o})});Zc.displayName="SidebarMenuSubButton";function ni({id:e,extensionLabels:t,projectInfo:n,handleSelectSidebarItem:r,selectedSidebarItem:o,extensionsSidebarGroupLabel:s,projectsSidebarGroupLabel:i,buttonPlaceholderText:l}){const c=g.useCallback((f,w)=>{r(f,w)},[r]),d=g.useCallback(f=>{const w=n.find(b=>b.projectId===f);return w?w.projectName:f},[n]),u=g.useCallback(f=>!o.projectId&&f===o.label,[o]);return a.jsx(Ks,{id:e,collapsible:"none",variant:"inset",className:"tw-w-96 tw-gap-2 tw-overflow-y-auto tw-rounded tw-bg-slate-100",children:a.jsxs(Zs,{children:[a.jsxs(Kr,{children:[a.jsx(Jr,{className:"tw-text-sm tw-text-gray-400",children:s}),a.jsx(Zr,{children:a.jsx(Qs,{children:t.map(f=>a.jsx(ei,{children:a.jsx(ti,{className:N("tw-rounded tw-py-2 tw-text-sm tw-text-gray-500 hover:tw-bg-white hover:tw-text-gray-900 hover:tw-shadow-sm active:tw-bg-white",{"tw-bg-white tw-text-gray-900 tw-shadow-sm":u(f)}),onClick:()=>c(f),isActive:u(f),children:a.jsx("span",{className:"tw-pl-3",children:f})})},f))})})]}),a.jsxs(Kr,{children:[a.jsx(Jr,{className:"tw-text-sm tw-text-gray-400",children:i}),a.jsx(Zr,{className:"tw-pl-3",children:a.jsx(Zn,{popoverContentClassName:"tw-z-[1000]",options:n.flatMap(f=>f.projectId),getOptionLabel:f=>d(f),buttonPlaceholder:l,onChange:f=>{const w=d(f);c(w,f)},value:(o==null?void 0:o.projectId)??void 0})})]})]})})}function Qc({id:e,extensionLabels:t,projectInfo:n,children:r,handleSelectSidebarItem:o,selectedSidebarItem:s,onSearch:i,extensionsSidebarGroupLabel:l,projectsSidebarGroupLabel:c,buttonPlaceholderText:d}){return a.jsxs("div",{className:"tw-box-border tw-flex tw-h-full tw-flex-col tw-p-3",children:[a.jsx("div",{className:"tw-box-border tw-flex tw-items-center tw-justify-center tw-py-4",children:a.jsx(ur,{className:"tw-w-9/12",onSearch:i,placeholder:"Search app settings, extension settings, and project settings"})}),a.jsxs(Ws,{id:e,className:"tw-h-full tw-flex-1 tw-gap-4 tw-overflow-auto",children:[a.jsx(ni,{extensionLabels:t,projectInfo:n,handleSelectSidebarItem:o,selectedSidebarItem:s,extensionsSidebarGroupLabel:l,projectsSidebarGroupLabel:c,buttonPlaceholderText:d}),a.jsx(Js,{className:"tw-overflow-y-auto",children:r})]})]})}const ut="scrBook",ed="scrRef",yt="source",td="details",nd="Scripture Reference",rd="Scripture Book",ri="Type",od="Details";function ad(e,t){const n=t??!1;return[{accessorFn:r=>`${ce.bookNumberToId(r.start.bookNum)} ${r.start.chapterNum}:${r.start.verseNum}`,id:ut,header:(e==null?void 0:e.scriptureReferenceColumnName)??nd,cell:r=>{const o=r.row.original;return r.row.getIsGrouped()?ce.bookNumberToEnglishName(o.start.bookNum):r.row.groupingColumnId===ut?Q.formatScrRef(o.start):void 0},getGroupingValue:r=>r.start.bookNum,sortingFn:(r,o)=>Q.compareScrRefs(r.original.start,o.original.start),enableGrouping:!0},{accessorFn:r=>Q.formatScrRef(r.start),id:ed,header:void 0,cell:r=>{const o=r.row.original;return r.row.getIsGrouped()?void 0:Q.formatScrRef(o.start)},sortingFn:(r,o)=>Q.compareScrRefs(r.original.start,o.original.start),enableGrouping:!1},{accessorFn:r=>r.source.displayName,id:yt,header:n?(e==null?void 0:e.typeColumnName)??ri:void 0,cell:r=>n||r.row.getIsGrouped()?r.getValue():void 0,getGroupingValue:r=>r.source.id,sortingFn:(r,o)=>r.original.source.displayName.localeCompare(o.original.source.displayName),enableGrouping:!0},{accessorFn:r=>r.detail,id:td,header:(e==null?void 0:e.detailsColumnName)??od,cell:r=>r.getValue(),enableGrouping:!1}]}const sd=e=>{if(!("offset"in e.start))throw new Error("No offset available in range start");if(e.end&&!("offset"in e.end))throw new Error("No offset available in range end");const{offset:t}=e.start;let n=0;return e.end&&({offset:n}=e.end),!e.end||Q.compareScrRefs(e.start,e.end)===0?`${Q.scrRefToBBBCCCVVV(e.start)}+${t}`:`${Q.scrRefToBBBCCCVVV(e.start)}+${t}-${Q.scrRefToBBBCCCVVV(e.end)}+${n}`},xa=e=>`${sd({start:e.start,end:e.end})} ${e.source.displayName} ${e.detail}`;function id({sources:e,showColumnHeaders:t=!1,showSourceColumn:n=!1,scriptureReferenceColumnName:r,scriptureBookGroupName:o,typeColumnName:s,detailsColumnName:i,onRowSelected:l}){const[c,d]=g.useState([]),[u,f]=g.useState([{id:ut,desc:!1}]),[w,b]=g.useState({}),x=g.useMemo(()=>e.flatMap(R=>R.data.map(_=>({..._,source:R.source}))),[e]),m=g.useMemo(()=>ad({scriptureReferenceColumnName:r,typeColumnName:s,detailsColumnName:i},n),[r,s,i,n]);g.useEffect(()=>{c.includes(yt)?f([{id:yt,desc:!1},{id:ut,desc:!1}]):f([{id:ut,desc:!1}])},[c]);const h=_e.useReactTable({data:x,columns:m,state:{grouping:c,sorting:u,rowSelection:w},onGroupingChange:d,onSortingChange:f,onRowSelectionChange:b,getExpandedRowModel:_e.getExpandedRowModel(),getGroupedRowModel:_e.getGroupedRowModel(),getCoreRowModel:_e.getCoreRowModel(),getSortedRowModel:_e.getSortedRowModel(),getRowId:xa,autoResetExpanded:!1,enableMultiRowSelection:!1,enableSubRowSelection:!1});g.useEffect(()=>{if(l){const R=h.getSelectedRowModel().rowsById,_=Object.keys(R);if(_.length===1){const L=x.find($=>xa($)===_[0])||void 0;L&&l(L)}}},[w,x,l,h]);const k=o??rd,S=s??ri,E=[{label:"No Grouping",value:[]},{label:`Group by ${k}`,value:[ut]},{label:`Group by ${S}`,value:[yt]},{label:`Group by ${k} and ${S}`,value:[ut,yt]},{label:`Group by ${S} and ${k}`,value:[yt,ut]}],j=R=>{d(JSON.parse(R))},v=(R,_)=>{!R.getIsGrouped()&&!R.getIsSelected()&&R.getToggleSelectedHandler()(_)},O=(R,_)=>R.getIsGrouped()?"":N("banded-row",_%2===0?"even":"odd"),z=(R,_,L)=>{if(!((R==null?void 0:R.length)===0||_.depth{j(R)},children:[a.jsx(ft,{className:"tw-mb-1 tw-mt-2",children:a.jsx(Tt,{})}),a.jsx(mt,{position:"item-aligned",children:a.jsx(Ms,{children:E.map(R=>a.jsx(ze,{value:JSON.stringify(R.value),children:R.label},R.label))})})]}),a.jsxs(tn,{className:"tw-relative tw-flex tw-flex-col tw-overflow-y-auto tw-p-0",children:[t&&a.jsx(nn,{children:h.getHeaderGroups().map(R=>a.jsx(Ke,{children:R.headers.filter(_=>_.column.columnDef.header).map(_=>a.jsx(st,{colSpan:_.colSpan,className:"top-0 tw-sticky",children:_.isPlaceholder?void 0:a.jsxs("div",{children:[_.column.getCanGroup()?a.jsx(fe,{variant:"ghost",title:`Toggle grouping by ${_.column.columnDef.header}`,onClick:_.column.getToggleGroupingHandler(),type:"button",children:_.column.getIsGrouped()?"🛑":"👊 "}):void 0," ",_e.flexRender(_.column.columnDef.header,_.getContext())]})},_.id))},R.id))}),a.jsx(rn,{children:h.getRowModel().rows.map((R,_)=>{const L=Se();return a.jsx(Ke,{"data-state":R.getIsSelected()?"selected":"",className:N(O(R,_)),onClick:$=>v(R,$),children:R.getVisibleCells().map($=>{if(!($.getIsPlaceholder()||$.column.columnDef.enableGrouping&&!$.getIsGrouped()&&($.column.columnDef.id!==yt||!n)))return a.jsx(Ie,{className:N($.column.columnDef.id,"tw-p-[1px]",z(c,R,$)),children:(()=>$.getIsGrouped()?a.jsxs(fe,{variant:"link",onClick:R.getToggleExpandedHandler(),type:"button",children:[R.getIsExpanded()&&a.jsx(H.ChevronDown,{}),!R.getIsExpanded()&&(L==="ltr"?a.jsx(H.ChevronRight,{}):a.jsx(H.ChevronLeft,{}))," ",_e.flexRender($.column.columnDef.cell,$.getContext())," (",R.subRows.length,")"]}):_e.flexRender($.column.columnDef.cell,$.getContext()))()},$.id)})},R.id)})})]})]})}const Mr={[Q.getLocalizeKeyForScrollGroupId("undefined")]:"Ø",[Q.getLocalizeKeyForScrollGroupId(0)]:"A",[Q.getLocalizeKeyForScrollGroupId(1)]:"B",[Q.getLocalizeKeyForScrollGroupId(2)]:"C",[Q.getLocalizeKeyForScrollGroupId(3)]:"D",[Q.getLocalizeKeyForScrollGroupId(4)]:"E",[Q.getLocalizeKeyForScrollGroupId(5)]:"F",[Q.getLocalizeKeyForScrollGroupId(6)]:"G",[Q.getLocalizeKeyForScrollGroupId(7)]:"H",[Q.getLocalizeKeyForScrollGroupId(8)]:"I",[Q.getLocalizeKeyForScrollGroupId(9)]:"J",[Q.getLocalizeKeyForScrollGroupId(10)]:"K",[Q.getLocalizeKeyForScrollGroupId(11)]:"L",[Q.getLocalizeKeyForScrollGroupId(12)]:"M",[Q.getLocalizeKeyForScrollGroupId(13)]:"N",[Q.getLocalizeKeyForScrollGroupId(14)]:"O",[Q.getLocalizeKeyForScrollGroupId(15)]:"P",[Q.getLocalizeKeyForScrollGroupId(16)]:"Q",[Q.getLocalizeKeyForScrollGroupId(17)]:"R",[Q.getLocalizeKeyForScrollGroupId(18)]:"S",[Q.getLocalizeKeyForScrollGroupId(19)]:"T",[Q.getLocalizeKeyForScrollGroupId(20)]:"U",[Q.getLocalizeKeyForScrollGroupId(21)]:"V",[Q.getLocalizeKeyForScrollGroupId(22)]:"W",[Q.getLocalizeKeyForScrollGroupId(23)]:"X",[Q.getLocalizeKeyForScrollGroupId(24)]:"Y",[Q.getLocalizeKeyForScrollGroupId(25)]:"Z"};function ld({availableScrollGroupIds:e,scrollGroupId:t,onChangeScrollGroupId:n,localizedStrings:r={}}){const o={...Mr,...Object.fromEntries(Object.entries(r).map(([i,l])=>[i,i===l&&i in Mr?Mr[i]:l]))},s=Se();return a.jsxs(Ct,{value:`${t}`,onValueChange:i=>n(i==="undefined"?void 0:parseInt(i,10)),children:[a.jsx(ft,{className:"pr-twp tw-w-auto",children:a.jsx(Tt,{placeholder:o[Q.getLocalizeKeyForScrollGroupId(t)]??t})}),a.jsx(mt,{align:s==="rtl"?"end":"start",style:{zIndex:250},children:e.map(i=>a.jsx(ze,{value:`${i}`,children:o[Q.getLocalizeKeyForScrollGroupId(i)]},`${i}`))})]})}function cd({children:e}){return a.jsx("div",{className:"pr-twp tw-grid",children:e})}function dd({primary:e,secondary:t,children:n,isLoading:r=!1,loadingMessage:o}){return a.jsxs("div",{className:"tw-flex tw-items-center tw-justify-between tw-space-x-4 tw-py-2",children:[a.jsxs("div",{children:[a.jsx("p",{className:"tw-text-sm tw-font-medium tw-leading-none",children:e}),a.jsx("p",{className:"tw-whitespace-normal tw-break-words tw-text-sm tw-text-muted-foreground",children:t})]}),r?a.jsx("p",{className:"tw-text-sm tw-text-muted-foreground",children:o}):a.jsx("div",{children:n})]})}function ud({primary:e,secondary:t,includeSeparator:n=!1}){return a.jsxs("div",{className:"tw-space-y-4 tw-py-2",children:[a.jsxs("div",{children:[a.jsx("h3",{className:"tw-text-lg tw-font-medium",children:e}),a.jsx("p",{className:"tw-text-sm tw-text-muted-foreground",children:t})]}),n?a.jsx(pr,{}):""]})}function pd({id:e,className:t,listItems:n,selectedListItems:r,handleSelectListItem:o,createLabel:s}){return a.jsx("div",{id:e,className:t,children:n.map(i=>a.jsxs("div",{className:"tw-m-2 tw-flex tw-items-center",children:[a.jsx(cr,{className:"tw-me-2 tw-align-middle",checked:r.includes(i),onCheckedChange:l=>o(i,l)}),a.jsx(je,{children:s?s(i):i})]},i))})}function wd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fd(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Co={},oi={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(oi);var md=oi.exports,$r={};function To(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=ai(e[n])}),t}function it(e,t,n={clone:!0}){const r=n.clone?P({},e):e;return jt(e)&&jt(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(jt(t[o])&&o in e&&jt(e[o])?r[o]=it(e[o],t[o],n):n.clone?r[o]=jt(t[o])?ai(t[o]):t[o]:r[o]=t[o])}),r}var Qr={exports:{}},Gn={exports:{}},de={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var va;function fd(){if(va)return le;va=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function E(x){if(typeof x=="object"&&x!==null){var _=x.$$typeof;switch(_){case t:switch(x=x.type,x){case c:case d:case r:case s:case o:case f:return x;default:switch(x=x&&x.$$typeof,x){case l:case u:case v:case b:case i:return x;default:return _}}case n:return _}}}function j(x){return E(x)===d}return le.AsyncMode=c,le.ConcurrentMode=d,le.ContextConsumer=l,le.ContextProvider=i,le.Element=t,le.ForwardRef=u,le.Fragment=r,le.Lazy=v,le.Memo=b,le.Portal=n,le.Profiler=s,le.StrictMode=o,le.Suspense=f,le.isAsyncMode=function(x){return j(x)||E(x)===c},le.isConcurrentMode=j,le.isContextConsumer=function(x){return E(x)===l},le.isContextProvider=function(x){return E(x)===i},le.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},le.isForwardRef=function(x){return E(x)===u},le.isFragment=function(x){return E(x)===r},le.isLazy=function(x){return E(x)===v},le.isMemo=function(x){return E(x)===b},le.isPortal=function(x){return E(x)===n},le.isProfiler=function(x){return E(x)===s},le.isStrictMode=function(x){return E(x)===o},le.isSuspense=function(x){return E(x)===f},le.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===d||x===s||x===o||x===f||x===w||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===b||x.$$typeof===i||x.$$typeof===l||x.$$typeof===u||x.$$typeof===h||x.$$typeof===k||x.$$typeof===O||x.$$typeof===m)},le.typeOf=E,le}var ce={};/** @license React v16.13.1 + */var ya;function hd(){if(ya)return de;ya=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(v){if(typeof v=="object"&&v!==null){var O=v.$$typeof;switch(O){case t:switch(v=v.type,v){case c:case d:case r:case s:case o:case f:return v;default:switch(v=v&&v.$$typeof,v){case l:case u:case x:case b:case i:return v;default:return O}}case n:return O}}}function j(v){return E(v)===d}return de.AsyncMode=c,de.ConcurrentMode=d,de.ContextConsumer=l,de.ContextProvider=i,de.Element=t,de.ForwardRef=u,de.Fragment=r,de.Lazy=x,de.Memo=b,de.Portal=n,de.Profiler=s,de.StrictMode=o,de.Suspense=f,de.isAsyncMode=function(v){return j(v)||E(v)===c},de.isConcurrentMode=j,de.isContextConsumer=function(v){return E(v)===l},de.isContextProvider=function(v){return E(v)===i},de.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},de.isForwardRef=function(v){return E(v)===u},de.isFragment=function(v){return E(v)===r},de.isLazy=function(v){return E(v)===x},de.isMemo=function(v){return E(v)===b},de.isPortal=function(v){return E(v)===n},de.isProfiler=function(v){return E(v)===s},de.isStrictMode=function(v){return E(v)===o},de.isSuspense=function(v){return E(v)===f},de.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===d||v===s||v===o||v===f||v===w||typeof v=="object"&&v!==null&&(v.$$typeof===x||v.$$typeof===b||v.$$typeof===i||v.$$typeof===l||v.$$typeof===u||v.$$typeof===h||v.$$typeof===k||v.$$typeof===S||v.$$typeof===m)},de.typeOf=E,de}var ue={};/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var xa;function md(){return xa||(xa=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function E(S){return typeof S=="string"||typeof S=="function"||S===r||S===d||S===s||S===o||S===f||S===w||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===b||S.$$typeof===i||S.$$typeof===l||S.$$typeof===u||S.$$typeof===h||S.$$typeof===k||S.$$typeof===O||S.$$typeof===m)}function j(S){if(typeof S=="object"&&S!==null){var we=S.$$typeof;switch(we){case t:var B=S.type;switch(B){case c:case d:case r:case s:case o:case f:return B;default:var xe=B&&B.$$typeof;switch(xe){case l:case u:case v:case b:case i:return xe;default:return we}}case n:return we}}}var x=c,_=d,U=l,R=i,P=t,F=u,A=r,M=v,$=b,W=n,q=s,V=o,te=f,oe=!1;function ae(S){return oe||(oe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(S)||j(S)===c}function y(S){return j(S)===d}function T(S){return j(S)===l}function X(S){return j(S)===i}function H(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function G(S){return j(S)===u}function J(S){return j(S)===r}function z(S){return j(S)===v}function Z(S){return j(S)===b}function K(S){return j(S)===n}function Q(S){return j(S)===s}function C(S){return j(S)===o}function L(S){return j(S)===f}ce.AsyncMode=x,ce.ConcurrentMode=_,ce.ContextConsumer=U,ce.ContextProvider=R,ce.Element=P,ce.ForwardRef=F,ce.Fragment=A,ce.Lazy=M,ce.Memo=$,ce.Portal=W,ce.Profiler=q,ce.StrictMode=V,ce.Suspense=te,ce.isAsyncMode=ae,ce.isConcurrentMode=y,ce.isContextConsumer=T,ce.isContextProvider=X,ce.isElement=H,ce.isForwardRef=G,ce.isFragment=J,ce.isLazy=z,ce.isMemo=Z,ce.isPortal=K,ce.isProfiler=Q,ce.isStrictMode=C,ce.isSuspense=L,ce.isValidElementType=E,ce.typeOf=j}()),ce}var ya;function ri(){return ya||(ya=1,process.env.NODE_ENV==="production"?Hn.exports=fd():Hn.exports=md()),Hn.exports}/* + */var Na;function gd(){return Na||(Na=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(T){return typeof T=="string"||typeof T=="function"||T===r||T===d||T===s||T===o||T===f||T===w||typeof T=="object"&&T!==null&&(T.$$typeof===x||T.$$typeof===b||T.$$typeof===i||T.$$typeof===l||T.$$typeof===u||T.$$typeof===h||T.$$typeof===k||T.$$typeof===S||T.$$typeof===m)}function j(T){if(typeof T=="object"&&T!==null){var ke=T.$$typeof;switch(ke){case t:var D=T.type;switch(D){case c:case d:case r:case s:case o:case f:return D;default:var xe=D&&D.$$typeof;switch(xe){case l:case u:case x:case b:case i:return xe;default:return ke}}case n:return ke}}}var v=c,O=d,z=l,R=i,_=t,L=u,$=r,I=x,M=b,X=n,F=s,B=o,te=f,ae=!1;function se(T){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(T)||j(T)===c}function y(T){return j(T)===d}function C(T){return j(T)===l}function G(T){return j(T)===i}function U(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function V(T){return j(T)===u}function W(T){return j(T)===r}function Y(T){return j(T)===x}function K(T){return j(T)===b}function q(T){return j(T)===n}function Z(T){return j(T)===s}function ee(T){return j(T)===o}function le(T){return j(T)===f}ue.AsyncMode=v,ue.ConcurrentMode=O,ue.ContextConsumer=z,ue.ContextProvider=R,ue.Element=_,ue.ForwardRef=L,ue.Fragment=$,ue.Lazy=I,ue.Memo=M,ue.Portal=X,ue.Profiler=F,ue.StrictMode=B,ue.Suspense=te,ue.isAsyncMode=se,ue.isConcurrentMode=y,ue.isContextConsumer=C,ue.isContextProvider=G,ue.isElement=U,ue.isForwardRef=V,ue.isFragment=W,ue.isLazy=Y,ue.isMemo=K,ue.isPortal=q,ue.isProfiler=Z,ue.isStrictMode=ee,ue.isSuspense=le,ue.isValidElementType=E,ue.typeOf=j}()),ue}var ka;function si(){return ka||(ka=1,process.env.NODE_ENV==="production"?Gn.exports=hd():Gn.exports=gd()),Gn.exports}/* object-assign (c) Sindre Sorhus @license MIT -*/var $r,Na;function hd(){if(Na)return $r;Na=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(u){d[u]=u}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $r=o()?Object.assign:function(s,i){for(var l,c=r(s),d,u=1;u1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function T(X,H,G,J,z){for(var Z=X[H],K=0;K0?", expected one of type ["+Q.join(", ")+"]":"";return new m("Invalid "+Z+" `"+K+"` supplied to "+("`"+z+"`"+we+"."))}return h(H)}function F(){function y(T,X,H,G,J){return W(T[X])?null:new m("Invalid "+G+" `"+J+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return h(y)}function A(y,T,X,H,G){return new m((y||"React class")+": "+T+" type `"+X+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function M(y){function T(X,H,G,J,z){var Z=X[H],K=V(Z);if(K!=="object")return new m("Invalid "+J+" `"+z+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var Q in y){var C=y[Q];if(typeof C!="function")return A(G,J,z,Q,te(C));var L=C(Z,Q,G,J,z+"."+Q,n);if(L)return L}return null}return h(T)}function $(y){function T(X,H,G,J,z){var Z=X[H],K=V(Z);if(K!=="object")return new m("Invalid "+J+" `"+z+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var Q=t({},X[H],y);for(var C in Q){var L=y[C];if(r(y,C)&&typeof L!="function")return A(G,J,z,C,te(L));if(!L)return new m("Invalid "+J+" `"+z+"` key `"+C+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(X[H],null," ")+` -Valid keys: `+JSON.stringify(Object.keys(y),null," "));var S=L(Z,C,G,J,z+"."+C,n);if(S)return S}return null}return h(T)}function W(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(W);if(y===null||l(y))return!0;var T=f(y);if(T){var X=T.call(y),H;if(T!==y.entries){for(;!(H=X.next()).done;)if(!W(H.value))return!1}else for(;!(H=X.next()).done;){var G=H.value;if(G&&!W(G[1]))return!1}}else return!1;return!0;default:return!1}}function q(y,T){return y==="symbol"?!0:T?T["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&T instanceof Symbol:!1}function V(y){var T=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":q(T,y)?"symbol":T}function te(y){if(typeof y>"u"||y===null)return""+y;var T=V(y);if(T==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return T}function oe(y){var T=te(y);switch(T){case"array":case"object":return"an "+T;case"boolean":case"date":case"regexp":return"a "+T;default:return T}}function ae(y){return!y.constructor||!y.constructor.name?w:y.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Vr}var zr,Ca;function vd(){if(Ca)return zr;Ca=1;var e=To();function t(){}function n(){}return n.resetWarningCache=t,zr=function(){function r(i,l,c,d,u,f){if(f!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},zr}if(process.env.NODE_ENV!=="production"){var xd=ri(),yd=!0;Zr.exports=bd()(xd.isElement,yd)}else Zr.exports=vd()();var Nd=Zr.exports;const p=ud(Nd);function kd(e){const{prototype:t={}}=e;return!!t.isReactComponent}function ai(e,t,n,r,o){const s=e[t],i=o||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!kd(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const si=Co(p.element,ai);si.isRequired=Co(p.element.isRequired,ai);const ii=si,jd="exact-prop: ​";function Sd(e){return process.env.NODE_ENV==="production"?e:I({},e,{[jd]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function Ut(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function C(G,U,V,W,Y){for(var K=G[U],q=0;q0?", expected one of type ["+Z.join(", ")+"]":"";return new m("Invalid "+K+" `"+q+"` supplied to "+("`"+Y+"`"+ke+"."))}return h(U)}function L(){function y(C,G,U,V,W){return X(C[G])?null:new m("Invalid "+V+" `"+W+"` supplied to "+("`"+U+"`, expected a ReactNode."))}return h(y)}function $(y,C,G,U,V){return new m((y||"React class")+": "+C+" type `"+G+"."+U+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function I(y){function C(G,U,V,W,Y){var K=G[U],q=B(K);if(q!=="object")return new m("Invalid "+W+" `"+Y+"` of type `"+q+"` "+("supplied to `"+V+"`, expected `object`."));for(var Z in y){var ee=y[Z];if(typeof ee!="function")return $(V,W,Y,Z,te(ee));var le=ee(K,Z,V,W,Y+"."+Z,n);if(le)return le}return null}return h(C)}function M(y){function C(G,U,V,W,Y){var K=G[U],q=B(K);if(q!=="object")return new m("Invalid "+W+" `"+Y+"` of type `"+q+"` "+("supplied to `"+V+"`, expected `object`."));var Z=t({},G[U],y);for(var ee in Z){var le=y[ee];if(r(y,ee)&&typeof le!="function")return $(V,W,Y,ee,te(le));if(!le)return new m("Invalid "+W+" `"+Y+"` key `"+ee+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(G[U],null," ")+` +Valid keys: `+JSON.stringify(Object.keys(y),null," "));var T=le(K,ee,V,W,Y+"."+ee,n);if(T)return T}return null}return h(C)}function X(y){switch(typeof y){case"number":case"string":case"undefined":return!0;case"boolean":return!y;case"object":if(Array.isArray(y))return y.every(X);if(y===null||l(y))return!0;var C=f(y);if(C){var G=C.call(y),U;if(C!==y.entries){for(;!(U=G.next()).done;)if(!X(U.value))return!1}else for(;!(U=G.next()).done;){var V=U.value;if(V&&!X(V[1]))return!1}}else return!1;return!0;default:return!1}}function F(y,C){return y==="symbol"?!0:C?C["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&C instanceof Symbol:!1}function B(y){var C=typeof y;return Array.isArray(y)?"array":y instanceof RegExp?"object":F(C,y)?"symbol":C}function te(y){if(typeof y>"u"||y===null)return""+y;var C=B(y);if(C==="object"){if(y instanceof Date)return"date";if(y instanceof RegExp)return"regexp"}return C}function ae(y){var C=te(y);switch(C){case"array":case"object":return"an "+C;case"boolean":case"date":case"regexp":return"a "+C;default:return C}}function se(y){return!y.constructor||!y.constructor.name?w:y.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},zr}var Lr,Ra;function yd(){if(Ra)return Lr;Ra=1;var e=Ro();function t(){}function n(){}return n.resetWarningCache=t,Lr=function(){function r(i,l,c,d,u,f){if(f!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Lr}if(process.env.NODE_ENV!=="production"){var Nd=si(),kd=!0;Qr.exports=xd()(Nd.isElement,kd)}else Qr.exports=yd()();var jd=Qr.exports;const p=wd(jd);function Sd(e){const{prototype:t={}}=e;return!!t.isReactComponent}function li(e,t,n,r,o){const s=e[t],i=o||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!Sd(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ci=To(p.element,li);ci.isRequired=To(p.element.isRequired,li);const di=ci,Ed="exact-prop: ​";function Cd(e){return process.env.NODE_ENV==="production"?e:P({},e,{[Ed]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function Gt(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Id(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Md(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,s,i)=>{const l=o||"<>",c=i||r;return typeof n[r]<"u"?new Error(`The ${s} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function $d(e,t){var n,r;return D.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function tr(e){return e&&e.ownerDocument||document}function Ad(e){return tr(e).defaultView||window}function Dd(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?I({},t.propTypes):null;return o=>(s,i,l,c,d,...u)=>{const f=d||i,w=n==null?void 0:n[f];if(w){const b=w(s,i,l,c,d,...u);if(b)return b}return typeof s[i]<"u"&&!s[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function nr(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Bd=typeof window<"u"?D.useLayoutEffect:D.useEffect,qt=Bd;let Pa=0;function Vd(e){const[t,n]=D.useState(e),r=e||t;return D.useEffect(()=>{t==null&&(Pa+=1,n(`mui-${Pa}`))},[t]),r}const Ia=D["useId".toString()];function di(e){if(Ia!==void 0){const t=Ia();return e??t}return Vd(e)}function zd(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function ui({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=D.useRef(e!==void 0),[s,i]=D.useState(t),l=o?e:s;if(process.env.NODE_ENV!=="production"){D.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(` -`))},[r,n,e]);const{current:d}=D.useRef(t);D.useEffect(()=>{!o&&d!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(` -`))},[JSON.stringify(t)])}const c=D.useCallback(d=>{o||i(d)},[]);return[l,c]}function eo(e){const t=D.useRef(e);return qt(()=>{t.current=e}),D.useRef((...n)=>(0,t.current)(...n)).current}function Tt(...e){return D.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{nr(n,t)})},e)}const Ma={};function Ld(e,t){const n=D.useRef(Ma);return n.current===Ma&&(n.current=e(t)),n}const Fd=[];function Gd(e){D.useEffect(e,Fd)}class An{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new An}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function gn(){const e=Ld(An.create).current;return Gd(e.disposeEffect),e}let wr=!0,to=!1;const Ud=new An,qd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Hd(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&qd[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Xd(e){e.metaKey||e.altKey||e.ctrlKey||(wr=!0)}function Lr(){wr=!1}function Yd(){this.visibilityState==="hidden"&&to&&(wr=!0)}function Wd(e){e.addEventListener("keydown",Xd,!0),e.addEventListener("mousedown",Lr,!0),e.addEventListener("pointerdown",Lr,!0),e.addEventListener("touchstart",Lr,!0),e.addEventListener("visibilitychange",Yd,!0)}function Kd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return wr||Hd(t)}function pi(){const e=D.useCallback(o=>{o!=null&&Wd(o.ownerDocument)},[]),t=D.useRef(!1);function n(){return t.current?(to=!0,Ud.start(100,()=>{to=!1}),t.current=!1,!0):!1}function r(o){return Kd(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function wi(e,t){const n=I({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=I({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=I({},s),Object.keys(o).forEach(i=>{n[r][i]=wi(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ro(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}const $a=e=>e,Jd=()=>{let e=$a;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$a}}},Zd=Jd(),fi=Zd,mi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function fr(e,t,n="Mui"){const r=mi[t];return r?`${n}-${r}`:`${fi.generate(e)}-${t}`}function hi(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=fr(e,o,n)}),r}function Qd(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}const eu=["values","unit","step"],tu=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>I({},n,{[r.key]:r.val}),{})};function nu(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ne(e,eu),s=tu(t),i=Object.keys(s);function l(w){return`@media (min-width:${typeof t[w]=="number"?t[w]:w}${n})`}function c(w){return`@media (max-width:${(typeof t[w]=="number"?t[w]:w)-r/100}${n})`}function d(w,b){const v=i.indexOf(b);return`@media (min-width:${typeof t[w]=="number"?t[w]:w}${n}) and (max-width:${(v!==-1&&typeof t[i[v]]=="number"?t[i[v]]:b)-r/100}${n})`}function u(w){return i.indexOf(w)+1`@media (min-width:${Oo[e]}px)`};function rt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Aa;return t.reduce((i,l,c)=>(i[s.up(s.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Aa;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||Oo).indexOf(l)!==-1){const c=s.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function su(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function iu(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function mr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function rr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=mr(e,n)||r,t&&(o=t(o,r,e)),o}function ve(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,d=mr(c,r)||{};return rt(i,l,f=>{let w=rr(d,o,f);return f===w&&typeof f=="string"&&(w=rr(d,o,`${t}${f==="default"?"":Ze(f)}`,f)),n===!1?w:{[n]:w}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:pt}:{},s.filterProps=[t],s}function lu(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const cu={m:"margin",p:"padding"},du={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Da={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},uu=lu(e=>{if(e.length>2)if(Da[e])e=Da[e];else return[e];const[t,n]=e.split(""),r=cu[t],o=du[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),hr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],pu=[...hr,...gr];function Dn(e,t,n,r){var o;const s=(o=mr(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(` + */var _a;function Rd(){return _a||(_a=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x=!1,m=!1,h=!1,k=!1,S=!1,E;E=Symbol.for("react.module.reference");function j(D){return!!(typeof D=="string"||typeof D=="function"||D===n||D===o||S||D===r||D===d||D===u||k||D===b||x||m||h||typeof D=="object"&&D!==null&&(D.$$typeof===w||D.$$typeof===f||D.$$typeof===s||D.$$typeof===i||D.$$typeof===c||D.$$typeof===E||D.getModuleId!==void 0))}function v(D){if(typeof D=="object"&&D!==null){var xe=D.$$typeof;switch(xe){case e:var Ee=D.type;switch(Ee){case n:case o:case r:case d:case u:return Ee;default:var rt=Ee&&Ee.$$typeof;switch(rt){case l:case i:case c:case w:case f:case s:return rt;default:return xe}}case t:return xe}}}var O=i,z=s,R=e,_=c,L=n,$=w,I=f,M=t,X=o,F=r,B=d,te=u,ae=!1,se=!1;function y(D){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function C(D){return se||(se=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(D){return v(D)===i}function U(D){return v(D)===s}function V(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function W(D){return v(D)===c}function Y(D){return v(D)===n}function K(D){return v(D)===w}function q(D){return v(D)===f}function Z(D){return v(D)===t}function ee(D){return v(D)===o}function le(D){return v(D)===r}function T(D){return v(D)===d}function ke(D){return v(D)===u}we.ContextConsumer=O,we.ContextProvider=z,we.Element=R,we.ForwardRef=_,we.Fragment=L,we.Lazy=$,we.Memo=I,we.Portal=M,we.Profiler=X,we.StrictMode=F,we.Suspense=B,we.SuspenseList=te,we.isAsyncMode=y,we.isConcurrentMode=C,we.isContextConsumer=G,we.isContextProvider=U,we.isElement=V,we.isForwardRef=W,we.isFragment=Y,we.isLazy=K,we.isMemo=q,we.isPortal=Z,we.isProfiler=ee,we.isStrictMode=le,we.isSuspense=T,we.isSuspenseList=ke,we.isValidElementType=j,we.typeOf=v}()),we}process.env.NODE_ENV==="production"?eo.exports=Td():eo.exports=Rd();var Pa=eo.exports;const Od=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function _d(e){const t=`${e}`.match(Od);return t&&t[1]||""}function ui(e,t=""){return e.displayName||e.name||_d(e)||t}function Ia(e,t,n){const r=ui(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Pd(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ui(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Pa.ForwardRef:return Ia(e,e.render,"ForwardRef");case Pa.Memo:return Ia(e,e.type,"memo");default:return}}}function Tn(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],i=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${i}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const Id=p.oneOfType([p.func,p.object]),pi=Id;function tt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Md(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function $d(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Ad(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,s,i)=>{const l=o||"<>",c=i||r;return typeof n[r]<"u"?new Error(`The ${s} \`${c}\` of \`${l}\` is deprecated. ${t}`):null}}function Dd(e,t){var n,r;return A.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Qn(e){return e&&e.ownerDocument||document}function Bd(e){return Qn(e).defaultView||window}function Vd(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?P({},t.propTypes):null;return o=>(s,i,l,c,d,...u)=>{const f=d||i,w=n==null?void 0:n[f];if(w){const b=w(s,i,l,c,d,...u);if(b)return b}return typeof s[i]<"u"&&!s[o]?new Error(`The prop \`${f}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function er(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const zd=typeof window<"u"?A.useLayoutEffect:A.useEffect,Ut=zd;let Ma=0;function Ld(e){const[t,n]=A.useState(e),r=e||t;return A.useEffect(()=>{t==null&&(Ma+=1,n(`mui-${Ma}`))},[t]),r}const $a=A["useId".toString()];function wi(e){if($a!==void 0){const t=$a();return e??t}return Ld(e)}function Fd(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=o||t;return typeof e[t]<"u"?new Error(`The prop \`${s}\` is not supported. Please remove it.`):null}function fi({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=A.useRef(e!==void 0),[s,i]=A.useState(t),l=o?e:s;if(process.env.NODE_ENV!=="production"){A.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(` +`))},[r,n,e]);const{current:d}=A.useRef(t);A.useEffect(()=>{!o&&d!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(` +`))},[JSON.stringify(t)])}const c=A.useCallback(d=>{o||i(d)},[]);return[l,c]}function to(e){const t=A.useRef(e);return Ut(()=>{t.current=e}),A.useRef((...n)=>(0,t.current)(...n)).current}function Rt(...e){return A.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{er(n,t)})},e)}const Aa={};function Gd(e,t){const n=A.useRef(Aa);return n.current===Aa&&(n.current=e(t)),n}const Ud=[];function qd(e){A.useEffect(e,Ud)}class Mn{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Mn}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function gn(){const e=Gd(Mn.create).current;return qd(e.disposeEffect),e}let fr=!0,no=!1;const Hd=new Mn,Xd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Yd(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Xd[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Wd(e){e.metaKey||e.altKey||e.ctrlKey||(fr=!0)}function Fr(){fr=!1}function Kd(){this.visibilityState==="hidden"&&no&&(fr=!0)}function Jd(e){e.addEventListener("keydown",Wd,!0),e.addEventListener("mousedown",Fr,!0),e.addEventListener("pointerdown",Fr,!0),e.addEventListener("touchstart",Fr,!0),e.addEventListener("visibilitychange",Kd,!0)}function Zd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return fr||Yd(t)}function mi(){const e=A.useCallback(o=>{o!=null&&Jd(o.ownerDocument)},[]),t=A.useRef(!1);function n(){return t.current?(no=!0,Hd.start(100,()=>{no=!1}),t.current=!1,!0):!1}function r(o){return Zd(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function hi(e,t){const n=P({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=P({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=P({},s),Object.keys(o).forEach(i=>{n[r][i]=hi(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Oo(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}const Da=e=>e,Qd=()=>{let e=Da;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Da}}},eu=Qd(),gi=eu,bi={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function mr(e,t,n="Mui"){const r=bi[t];return r?`${n}-${r}`:`${gi.generate(e)}-${t}`}function vi(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=mr(e,o,n)}),r}function tu(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Ce(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s=0)&&(n[o]=e[o]);return n}const nu=["values","unit","step"],ru=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>P({},n,{[r.key]:r.val}),{})};function ou(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ce(e,nu),s=ru(t),i=Object.keys(s);function l(w){return`@media (min-width:${typeof t[w]=="number"?t[w]:w}${n})`}function c(w){return`@media (max-width:${(typeof t[w]=="number"?t[w]:w)-r/100}${n})`}function d(w,b){const x=i.indexOf(b);return`@media (min-width:${typeof t[w]=="number"?t[w]:w}${n}) and (max-width:${(x!==-1&&typeof t[i[x]]=="number"?t[i[x]]:b)-r/100}${n})`}function u(w){return i.indexOf(w)+1`@media (min-width:${_o[e]}px)`};function lt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Ba;return t.reduce((i,l,c)=>(i[s.up(s.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Ba;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||_o).indexOf(l)!==-1){const c=s.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function lu(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function cu(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function hr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function tr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=hr(e,n)||r,t&&(o=t(o,r,e)),o}function Ne(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,d=hr(c,r)||{};return lt(i,l,f=>{let w=tr(d,o,f);return f===w&&typeof f=="string"&&(w=tr(d,o,`${t}${f==="default"?"":tt(f)}`,f)),n===!1?w:{[n]:w}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:ht}:{},s.filterProps=[t],s}function du(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const uu={m:"margin",p:"padding"},pu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Va={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},wu=du(e=>{if(e.length>2)if(Va[e])e=Va[e];else return[e];const[t,n]=e.split(""),r=uu[t],o=pu[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),gr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],br=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],fu=[...gr,...br];function $n(e,t,n,r){var o;const s=(o=hr(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(` `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(` `))),s[i]):typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(` -`)),()=>{})}function gi(e){return Dn(e,"spacing",8,"spacing")}function Bn(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function wu(e,t){return n=>e.reduce((r,o)=>(r[o]=Bn(t,n),r),{})}function fu(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=uu(n),s=wu(o,r),i=e[n];return rt(e,i,s)}function bi(e,t){const n=gi(e.theme);return Object.keys(e).map(r=>fu(e,t,r,n)).reduce(Nn,{})}function he(e){return bi(e,hr)}he.propTypes=process.env.NODE_ENV!=="production"?hr.reduce((e,t)=>(e[t]=pt,e),{}):{};he.filterProps=hr;function ge(e){return bi(e,gr)}ge.propTypes=process.env.NODE_ENV!=="production"?gr.reduce((e,t)=>(e[t]=pt,e),{}):{};ge.filterProps=gr;process.env.NODE_ENV!=="production"&&pu.reduce((e,t)=>(e[t]=pt,e),{});function mu(e=8){if(e.mui)return e;const t=gi({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function br(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Nn(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Le(e){return typeof e!="number"?e:`${e}px solid`}function qe(e,t){return ve({prop:e,themeKey:"borders",transform:t})}const hu=qe("border",Le),gu=qe("borderTop",Le),bu=qe("borderRight",Le),vu=qe("borderBottom",Le),xu=qe("borderLeft",Le),yu=qe("borderColor"),Nu=qe("borderTopColor"),ku=qe("borderRightColor"),ju=qe("borderBottomColor"),Su=qe("borderLeftColor"),Eu=qe("outline",Le),Cu=qe("outlineColor"),vr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Bn(t,r)});return rt(e,e.borderRadius,n)}return null};vr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:pt}:{};vr.filterProps=["borderRadius"];br(hu,gu,bu,vu,xu,yu,Nu,ku,ju,Su,vr,Eu,Cu);const xr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dn(e.theme,"spacing",8,"gap"),n=r=>({gap:Bn(t,r)});return rt(e,e.gap,n)}return null};xr.propTypes=process.env.NODE_ENV!=="production"?{gap:pt}:{};xr.filterProps=["gap"];const yr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Bn(t,r)});return rt(e,e.columnGap,n)}return null};yr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:pt}:{};yr.filterProps=["columnGap"];const Nr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Bn(t,r)});return rt(e,e.rowGap,n)}return null};Nr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:pt}:{};Nr.filterProps=["rowGap"];const Tu=ve({prop:"gridColumn"}),Ru=ve({prop:"gridRow"}),Ou=ve({prop:"gridAutoFlow"}),_u=ve({prop:"gridAutoColumns"}),Pu=ve({prop:"gridAutoRows"}),Iu=ve({prop:"gridTemplateColumns"}),Mu=ve({prop:"gridTemplateRows"}),$u=ve({prop:"gridTemplateAreas"}),Au=ve({prop:"gridArea"});br(xr,yr,Nr,Tu,Ru,Ou,_u,Pu,Iu,Mu,$u,Au);function Ft(e,t){return t==="grey"?t:e}const Du=ve({prop:"color",themeKey:"palette",transform:Ft}),Bu=ve({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ft}),Vu=ve({prop:"backgroundColor",themeKey:"palette",transform:Ft});br(Du,Bu,Vu);function De(e){return e<=1&&e!==0?`${e*100}%`:e}const zu=ve({prop:"width",transform:De}),_o=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Oo[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:De(n)}};return rt(e,e.maxWidth,t)}return null};_o.filterProps=["maxWidth"];const Lu=ve({prop:"minWidth",transform:De}),Fu=ve({prop:"height",transform:De}),Gu=ve({prop:"maxHeight",transform:De}),Uu=ve({prop:"minHeight",transform:De});ve({prop:"size",cssProperty:"width",transform:De});ve({prop:"size",cssProperty:"height",transform:De});const qu=ve({prop:"boxSizing"});br(zu,_o,Lu,Fu,Gu,Uu,qu);const Hu={border:{themeKey:"borders",transform:Le},borderTop:{themeKey:"borders",transform:Le},borderRight:{themeKey:"borders",transform:Le},borderBottom:{themeKey:"borders",transform:Le},borderLeft:{themeKey:"borders",transform:Le},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Le},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:vr},color:{themeKey:"palette",transform:Ft},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ft},backgroundColor:{themeKey:"palette",transform:Ft},p:{style:ge},pt:{style:ge},pr:{style:ge},pb:{style:ge},pl:{style:ge},px:{style:ge},py:{style:ge},padding:{style:ge},paddingTop:{style:ge},paddingRight:{style:ge},paddingBottom:{style:ge},paddingLeft:{style:ge},paddingX:{style:ge},paddingY:{style:ge},paddingInline:{style:ge},paddingInlineStart:{style:ge},paddingInlineEnd:{style:ge},paddingBlock:{style:ge},paddingBlockStart:{style:ge},paddingBlockEnd:{style:ge},m:{style:he},mt:{style:he},mr:{style:he},mb:{style:he},ml:{style:he},mx:{style:he},my:{style:he},margin:{style:he},marginTop:{style:he},marginRight:{style:he},marginBottom:{style:he},marginLeft:{style:he},marginX:{style:he},marginY:{style:he},marginInline:{style:he},marginInlineStart:{style:he},marginInlineEnd:{style:he},marginBlock:{style:he},marginBlockStart:{style:he},marginBlockEnd:{style:he},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:xr},rowGap:{style:Nr},columnGap:{style:yr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:De},maxWidth:{style:_o},minWidth:{transform:De},height:{transform:De},maxHeight:{transform:De},minHeight:{transform:De},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Po=Hu;function Xu(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Yu(e,t){return typeof e=="function"?e(t):e}function Wu(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:u,style:f}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const w=mr(o,d)||{};return f?f(i):rt(i,r,v=>{let m=rr(w,u,v);return v===m&&typeof v=="string"&&(m=rr(w,u,`${n}${v==="default"?"":Ze(v)}`,v)),c===!1?m:{[c]:m}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:Po;function l(c){let d=c;if(typeof c=="function")d=c(s);else if(typeof c!="object")return c;if(!d)return null;const u=su(s.breakpoints),f=Object.keys(u);let w=u;return Object.keys(d).forEach(b=>{const v=Yu(d[b],s);if(v!=null)if(typeof v=="object")if(i[b])w=Nn(w,e(b,v,s,i));else{const m=rt({theme:s},v,h=>({[b]:h}));Xu(m,v)?w[b]=t({sx:v,theme:s}):w=Nn(w,m)}else w=Nn(w,e(b,v,s,i))}),iu(f,w)}return Array.isArray(o)?o.map(l):l(o)}return t}const vi=Wu();vi.filterProps=["sx"];const Io=vi;function Ku(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Ju=["breakpoints","palette","spacing","shape"];function Mo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=Ne(e,Ju),l=nu(n),c=mu(o);let d=nt({breakpoints:l,direction:"ltr",components:{},palette:I({mode:"light"},r),spacing:c,shape:I({},ou,s)},i);return d.applyStyles=Ku,d=t.reduce((u,f)=>nt(u,f),d),d.unstable_sxConfig=I({},Po,i==null?void 0:i.unstable_sxConfig),d.unstable_sx=function(f){return Io({sx:f,theme:this})},d}function Zu(e){return Object.keys(e).length===0}function xi(e=null){const t=D.useContext(qr.ThemeContext);return!t||Zu(t)?e:t}const Qu=Mo();function yi(e=Qu){return xi(e)}const ep=["ownerState"],tp=["variants"],np=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rp(e){return Object.keys(e).length===0}function op(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Jn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ap=Mo(),Ba=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Xn({defaultTheme:e,theme:t,themeId:n}){return rp(t)?e:t[n]||t}function sp(e){return e?(t,n)=>n[e]:null}function Zn(e,t){let{ownerState:n}=t,r=Ne(t,ep);const o=typeof e=="function"?e(I({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>Zn(s,I({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let l=Ne(o,tp);return s.forEach(c=>{let d=!0;typeof c.props=="function"?d=c.props(I({ownerState:n},r,n)):Object.keys(c.props).forEach(u=>{(n==null?void 0:n[u])!==c.props[u]&&r[u]!==c.props[u]&&(d=!1)}),d&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(I({ownerState:n},r,n)):c.style))}),l}return o}function ip(e={}){const{themeId:t,defaultTheme:n=ap,rootShouldForwardProp:r=Jn,slotShouldForwardProp:o=Jn}=e,s=i=>Io(I({},i,{theme:Xn(I({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{qr.internal_processStyles(i,x=>x.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:u,skipSx:f,overridesResolver:w=sp(Ba(d))}=l,b=Ne(l,np),v=u!==void 0?u:d&&d!=="Root"&&d!=="root"||!1,m=f||!1;let h;process.env.NODE_ENV!=="production"&&c&&(h=`${c}-${Ba(d||"Root")}`);let k=Jn;d==="Root"||d==="root"?k=r:d?k=o:op(i)&&(k=void 0);const O=qr(i,I({shouldForwardProp:k,label:h},b)),E=x=>typeof x=="function"&&x.__emotion_real!==x||Nt(x)?_=>Zn(x,I({},_,{theme:Xn({theme:_.theme,defaultTheme:n,themeId:t})})):x,j=(x,..._)=>{let U=E(x);const R=_?_.map(E):[];c&&w&&R.push(A=>{const M=Xn(I({},A,{defaultTheme:n,themeId:t}));if(!M.components||!M.components[c]||!M.components[c].styleOverrides)return null;const $=M.components[c].styleOverrides,W={};return Object.entries($).forEach(([q,V])=>{W[q]=Zn(V,I({},A,{theme:M}))}),w(A,W)}),c&&!v&&R.push(A=>{var M;const $=Xn(I({},A,{defaultTheme:n,themeId:t})),W=$==null||(M=$.components)==null||(M=M[c])==null?void 0:M.variants;return Zn({variants:W},I({},A,{theme:$}))}),m||R.push(s);const P=R.length-_.length;if(Array.isArray(x)&&P>0){const A=new Array(P).fill("");U=[...x,...A],U.raw=[...x.raw,...A]}const F=O(U,...R);if(process.env.NODE_ENV!=="production"){let A;c&&(A=`${c}${Ze(d||"")}`),A===void 0&&(A=`Styled(${Od(i)})`),F.displayName=A}return i.muiName&&(F.muiName=i.muiName),F};return O.withConfig&&(j.withConfig=O.withConfig),j}}function lp(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:wi(t.components[n].defaultProps,r)}function cp({props:e,name:t,defaultTheme:n,themeId:r}){let o=yi(n);return r&&(o=o[r]||o),lp({theme:o,name:t,props:e})}function $o(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(en)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Qd(e,t,n)}function dp(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Rt(e){if(e.type)return e;if(e.charAt(0)==="#")return Rt(dp(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color. -The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ut(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space. -The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ut(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function kr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function up(e){e=Rt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(d,u=(d+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),kr({type:l,values:c})}function Va(e){e=Rt(e);let t=e.type==="hsl"||e.type==="hsla"?Rt(up(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function za(e,t){const n=Va(e),r=Va(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ni(e,t){return e=Rt(e),t=$o(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,kr(e)}function pp(e,t){if(e=Rt(e),t=$o(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return kr(e)}function wp(e,t){if(e=Rt(e),t=$o(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return kr(e)}function fp(e,t){return I({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const mp={black:"#000",white:"#fff"},_n=mp,hp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},gp=hp,bp={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},$t=bp,vp={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},At=vp,xp={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},pn=xp,yp={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Dt=yp,Np={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Bt=Np,kp={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Vt=kp,jp=["mode","contrastThreshold","tonalOffset"],La={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:_n.white,default:_n.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Fr={text:{primary:_n.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:_n.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Fa(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=wp(e.main,o):t==="dark"&&(e.dark=pp(e.main,s)))}function Sp(e="light"){return e==="dark"?{main:Dt[200],light:Dt[50],dark:Dt[400]}:{main:Dt[700],light:Dt[400],dark:Dt[800]}}function Ep(e="light"){return e==="dark"?{main:$t[200],light:$t[50],dark:$t[400]}:{main:$t[500],light:$t[300],dark:$t[700]}}function Cp(e="light"){return e==="dark"?{main:At[500],light:At[300],dark:At[700]}:{main:At[700],light:At[400],dark:At[800]}}function Tp(e="light"){return e==="dark"?{main:Bt[400],light:Bt[300],dark:Bt[700]}:{main:Bt[700],light:Bt[500],dark:Bt[900]}}function Rp(e="light"){return e==="dark"?{main:Vt[400],light:Vt[300],dark:Vt[700]}:{main:Vt[800],light:Vt[500],dark:Vt[900]}}function Op(e="light"){return e==="dark"?{main:pn[400],light:pn[300],dark:pn[700]}:{main:"#ed6c02",light:pn[500],dark:pn[900]}}function _p(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ne(e,jp),s=e.primary||Sp(t),i=e.secondary||Ep(t),l=e.error||Cp(t),c=e.info||Tp(t),d=e.success||Rp(t),u=e.warning||Op(t);function f(m){const h=za(m,Fr.text.primary)>=n?Fr.text.primary:La.text.primary;if(process.env.NODE_ENV!=="production"){const k=za(m,h);k<3&&console.error([`MUI: The contrast ratio of ${k}:1 for ${h} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` -`))}return h}const w=({color:m,name:h,mainShade:k=500,lightShade:O=300,darkShade:E=700})=>{if(m=I({},m),!m.main&&m[k]&&(m.main=m[k]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. -The color object needs to have a \`main\` property or a \`${k}\` property.`:Ut(11,h?` (${h})`:"",k));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. +`)),()=>{})}function xi(e){return $n(e,"spacing",8,"spacing")}function An(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function mu(e,t){return n=>e.reduce((r,o)=>(r[o]=An(t,n),r),{})}function hu(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=wu(n),s=mu(o,r),i=e[n];return lt(e,i,s)}function yi(e,t){const n=xi(e.theme);return Object.keys(e).map(r=>hu(e,t,r,n)).reduce(Nn,{})}function ge(e){return yi(e,gr)}ge.propTypes=process.env.NODE_ENV!=="production"?gr.reduce((e,t)=>(e[t]=ht,e),{}):{};ge.filterProps=gr;function be(e){return yi(e,br)}be.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=ht,e),{}):{};be.filterProps=br;process.env.NODE_ENV!=="production"&&fu.reduce((e,t)=>(e[t]=ht,e),{});function gu(e=8){if(e.mui)return e;const t=xi({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function vr(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Nn(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function qe(e){return typeof e!="number"?e:`${e}px solid`}function We(e,t){return Ne({prop:e,themeKey:"borders",transform:t})}const bu=We("border",qe),vu=We("borderTop",qe),xu=We("borderRight",qe),yu=We("borderBottom",qe),Nu=We("borderLeft",qe),ku=We("borderColor"),ju=We("borderTopColor"),Su=We("borderRightColor"),Eu=We("borderBottomColor"),Cu=We("borderLeftColor"),Tu=We("outline",qe),Ru=We("outlineColor"),xr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=$n(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:An(t,r)});return lt(e,e.borderRadius,n)}return null};xr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ht}:{};xr.filterProps=["borderRadius"];vr(bu,vu,xu,yu,Nu,ku,ju,Su,Eu,Cu,xr,Tu,Ru);const yr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=$n(e.theme,"spacing",8,"gap"),n=r=>({gap:An(t,r)});return lt(e,e.gap,n)}return null};yr.propTypes=process.env.NODE_ENV!=="production"?{gap:ht}:{};yr.filterProps=["gap"];const Nr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=$n(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:An(t,r)});return lt(e,e.columnGap,n)}return null};Nr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ht}:{};Nr.filterProps=["columnGap"];const kr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=$n(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:An(t,r)});return lt(e,e.rowGap,n)}return null};kr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ht}:{};kr.filterProps=["rowGap"];const Ou=Ne({prop:"gridColumn"}),_u=Ne({prop:"gridRow"}),Pu=Ne({prop:"gridAutoFlow"}),Iu=Ne({prop:"gridAutoColumns"}),Mu=Ne({prop:"gridAutoRows"}),$u=Ne({prop:"gridTemplateColumns"}),Au=Ne({prop:"gridTemplateRows"}),Du=Ne({prop:"gridTemplateAreas"}),Bu=Ne({prop:"gridArea"});vr(yr,Nr,kr,Ou,_u,Pu,Iu,Mu,$u,Au,Du,Bu);function Ft(e,t){return t==="grey"?t:e}const Vu=Ne({prop:"color",themeKey:"palette",transform:Ft}),zu=Ne({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ft}),Lu=Ne({prop:"backgroundColor",themeKey:"palette",transform:Ft});vr(Vu,zu,Lu);function Le(e){return e<=1&&e!==0?`${e*100}%`:e}const Fu=Ne({prop:"width",transform:Le}),Po=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||_o[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:Le(n)}};return lt(e,e.maxWidth,t)}return null};Po.filterProps=["maxWidth"];const Gu=Ne({prop:"minWidth",transform:Le}),Uu=Ne({prop:"height",transform:Le}),qu=Ne({prop:"maxHeight",transform:Le}),Hu=Ne({prop:"minHeight",transform:Le});Ne({prop:"size",cssProperty:"width",transform:Le});Ne({prop:"size",cssProperty:"height",transform:Le});const Xu=Ne({prop:"boxSizing"});vr(Fu,Po,Gu,Uu,qu,Hu,Xu);const Yu={border:{themeKey:"borders",transform:qe},borderTop:{themeKey:"borders",transform:qe},borderRight:{themeKey:"borders",transform:qe},borderBottom:{themeKey:"borders",transform:qe},borderLeft:{themeKey:"borders",transform:qe},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qe},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xr},color:{themeKey:"palette",transform:Ft},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ft},backgroundColor:{themeKey:"palette",transform:Ft},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:ge},mt:{style:ge},mr:{style:ge},mb:{style:ge},ml:{style:ge},mx:{style:ge},my:{style:ge},margin:{style:ge},marginTop:{style:ge},marginRight:{style:ge},marginBottom:{style:ge},marginLeft:{style:ge},marginX:{style:ge},marginY:{style:ge},marginInline:{style:ge},marginInlineStart:{style:ge},marginInlineEnd:{style:ge},marginBlock:{style:ge},marginBlockStart:{style:ge},marginBlockEnd:{style:ge},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:yr},rowGap:{style:kr},columnGap:{style:Nr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Le},maxWidth:{style:Po},minWidth:{transform:Le},height:{transform:Le},maxHeight:{transform:Le},minHeight:{transform:Le},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Io=Yu;function Wu(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ku(e,t){return typeof e=="function"?e(t):e}function Ju(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:u,style:f}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const w=hr(o,d)||{};return f?f(i):lt(i,r,x=>{let m=tr(w,u,x);return x===m&&typeof x=="string"&&(m=tr(w,u,`${n}${x==="default"?"":tt(x)}`,x)),c===!1?m:{[c]:m}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:Io;function l(c){let d=c;if(typeof c=="function")d=c(s);else if(typeof c!="object")return c;if(!d)return null;const u=lu(s.breakpoints),f=Object.keys(u);let w=u;return Object.keys(d).forEach(b=>{const x=Ku(d[b],s);if(x!=null)if(typeof x=="object")if(i[b])w=Nn(w,e(b,x,s,i));else{const m=lt({theme:s},x,h=>({[b]:h}));Wu(m,x)?w[b]=t({sx:x,theme:s}):w=Nn(w,m)}else w=Nn(w,e(b,x,s,i))}),cu(f,w)}return Array.isArray(o)?o.map(l):l(o)}return t}const Ni=Ju();Ni.filterProps=["sx"];const Mo=Ni;function Zu(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const Qu=["breakpoints","palette","spacing","shape"];function $o(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=Ce(e,Qu),l=ou(n),c=gu(o);let d=it({breakpoints:l,direction:"ltr",components:{},palette:P({mode:"light"},r),spacing:c,shape:P({},su,s)},i);return d.applyStyles=Zu,d=t.reduce((u,f)=>it(u,f),d),d.unstable_sxConfig=P({},Io,i==null?void 0:i.unstable_sxConfig),d.unstable_sx=function(f){return Mo({sx:f,theme:this})},d}function ep(e){return Object.keys(e).length===0}function ki(e=null){const t=A.useContext(Hr.ThemeContext);return!t||ep(t)?e:t}const tp=$o();function ji(e=tp){return ki(e)}const np=["ownerState"],rp=["variants"],op=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ap(e){return Object.keys(e).length===0}function sp(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yn(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ip=$o(),za=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Un({defaultTheme:e,theme:t,themeId:n}){return ap(t)?e:t[n]||t}function lp(e){return e?(t,n)=>n[e]:null}function Wn(e,t){let{ownerState:n}=t,r=Ce(t,np);const o=typeof e=="function"?e(P({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(s=>Wn(s,P({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:s=[]}=o;let l=Ce(o,rp);return s.forEach(c=>{let d=!0;typeof c.props=="function"?d=c.props(P({ownerState:n},r,n)):Object.keys(c.props).forEach(u=>{(n==null?void 0:n[u])!==c.props[u]&&r[u]!==c.props[u]&&(d=!1)}),d&&(Array.isArray(l)||(l=[l]),l.push(typeof c.style=="function"?c.style(P({ownerState:n},r,n)):c.style))}),l}return o}function cp(e={}){const{themeId:t,defaultTheme:n=ip,rootShouldForwardProp:r=Yn,slotShouldForwardProp:o=Yn}=e,s=i=>Mo(P({},i,{theme:Un(P({},i,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(i,l={})=>{Hr.internal_processStyles(i,v=>v.filter(O=>!(O!=null&&O.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:u,skipSx:f,overridesResolver:w=lp(za(d))}=l,b=Ce(l,op),x=u!==void 0?u:d&&d!=="Root"&&d!=="root"||!1,m=f||!1;let h;process.env.NODE_ENV!=="production"&&c&&(h=`${c}-${za(d||"Root")}`);let k=Yn;d==="Root"||d==="root"?k=r:d?k=o:sp(i)&&(k=void 0);const S=Hr(i,P({shouldForwardProp:k,label:h},b)),E=v=>typeof v=="function"&&v.__emotion_real!==v||jt(v)?O=>Wn(v,P({},O,{theme:Un({theme:O.theme,defaultTheme:n,themeId:t})})):v,j=(v,...O)=>{let z=E(v);const R=O?O.map(E):[];c&&w&&R.push($=>{const I=Un(P({},$,{defaultTheme:n,themeId:t}));if(!I.components||!I.components[c]||!I.components[c].styleOverrides)return null;const M=I.components[c].styleOverrides,X={};return Object.entries(M).forEach(([F,B])=>{X[F]=Wn(B,P({},$,{theme:I}))}),w($,X)}),c&&!x&&R.push($=>{var I;const M=Un(P({},$,{defaultTheme:n,themeId:t})),X=M==null||(I=M.components)==null||(I=I[c])==null?void 0:I.variants;return Wn({variants:X},P({},$,{theme:M}))}),m||R.push(s);const _=R.length-O.length;if(Array.isArray(v)&&_>0){const $=new Array(_).fill("");z=[...v,...$],z.raw=[...v.raw,...$]}const L=S(z,...R);if(process.env.NODE_ENV!=="production"){let $;c&&($=`${c}${tt(d||"")}`),$===void 0&&($=`Styled(${Pd(i)})`),L.displayName=$}return i.muiName&&(L.muiName=i.muiName),L};return S.withConfig&&(j.withConfig=S.withConfig),j}}function dp(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:hi(t.components[n].defaultProps,r)}function up({props:e,name:t,defaultTheme:n,themeId:r}){let o=ji(n);return r&&(o=o[r]||o),dp({theme:o,name:t,props:e})}function Ao(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(en)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),tu(e,t,n)}function pp(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Ot(e){if(e.type)return e;if(e.charAt(0)==="#")return Ot(pp(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color. +The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Gt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space. +The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Gt(10,o))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:o}}function jr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,s)=>s<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function wp(e){e=Ot(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),i=(d,u=(d+n/30)%12)=>o-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),jr({type:l,values:c})}function La(e){e=Ot(e);let t=e.type==="hsl"||e.type==="hsla"?Ot(wp(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Fa(e,t){const n=La(e),r=La(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Si(e,t){return e=Ot(e),t=Ao(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,jr(e)}function fp(e,t){if(e=Ot(e),t=Ao(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return jr(e)}function mp(e,t){if(e=Ot(e),t=Ao(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return jr(e)}function hp(e,t){return P({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const gp={black:"#000",white:"#fff"},Rn=gp,bp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},vp=bp,xp={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},$t=xp,yp={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},At=yp,Np={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},pn=Np,kp={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Dt=kp,jp={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Bt=jp,Sp={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Vt=Sp,Ep=["mode","contrastThreshold","tonalOffset"],Ga={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Rn.white,default:Rn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Gr={text:{primary:Rn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Rn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Ua(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=mp(e.main,o):t==="dark"&&(e.dark=fp(e.main,s)))}function Cp(e="light"){return e==="dark"?{main:Dt[200],light:Dt[50],dark:Dt[400]}:{main:Dt[700],light:Dt[400],dark:Dt[800]}}function Tp(e="light"){return e==="dark"?{main:$t[200],light:$t[50],dark:$t[400]}:{main:$t[500],light:$t[300],dark:$t[700]}}function Rp(e="light"){return e==="dark"?{main:At[500],light:At[300],dark:At[700]}:{main:At[700],light:At[400],dark:At[800]}}function Op(e="light"){return e==="dark"?{main:Bt[400],light:Bt[300],dark:Bt[700]}:{main:Bt[700],light:Bt[500],dark:Bt[900]}}function _p(e="light"){return e==="dark"?{main:Vt[400],light:Vt[300],dark:Vt[700]}:{main:Vt[800],light:Vt[500],dark:Vt[900]}}function Pp(e="light"){return e==="dark"?{main:pn[400],light:pn[300],dark:pn[700]}:{main:"#ed6c02",light:pn[500],dark:pn[900]}}function Ip(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ce(e,Ep),s=e.primary||Cp(t),i=e.secondary||Tp(t),l=e.error||Rp(t),c=e.info||Op(t),d=e.success||_p(t),u=e.warning||Pp(t);function f(m){const h=Fa(m,Gr.text.primary)>=n?Gr.text.primary:Ga.text.primary;if(process.env.NODE_ENV!=="production"){const k=Fa(m,h);k<3&&console.error([`MUI: The contrast ratio of ${k}:1 for ${h} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` +`))}return h}const w=({color:m,name:h,mainShade:k=500,lightShade:S=300,darkShade:E=700})=>{if(m=P({},m),!m.main&&m[k]&&(m.main=m[k]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. +The color object needs to have a \`main\` property or a \`${k}\` property.`:Gt(11,h?` (${h})`:"",k));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${h?` (${h})`:""} provided to augmentColor(color) is invalid. \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead. Did you intend to use one of the following approaches? @@ -55,16 +55,16 @@ const theme1 = createTheme({ palette: { const theme2 = createTheme({ palette: { primary: { main: green[500] }, -} });`:Ut(12,h?` (${h})`:"",JSON.stringify(m.main)));return Fa(m,"light",O,r),Fa(m,"dark",E,r),m.contrastText||(m.contrastText=f(m.main)),m},b={dark:Fr,light:La};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),nt(I({common:I({},_n),mode:t,primary:w({color:s,name:"primary"}),secondary:w({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:l,name:"error"}),warning:w({color:u,name:"warning"}),info:w({color:c,name:"info"}),success:w({color:d,name:"success"}),grey:gp,contrastThreshold:n,getContrastText:f,augmentColor:w,tonalOffset:r},b[t]),o)}const Pp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ip(e){return Math.round(e*1e5)/1e5}const Ga={textTransform:"uppercase"},Ua='"Roboto", "Helvetica", "Arial", sans-serif';function Mp(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ua,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:u,pxToRem:f}=n,w=Ne(n,Pp);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,v=f||(k=>`${k/d*b}rem`),m=(k,O,E,j,x)=>I({fontFamily:r,fontWeight:k,fontSize:v(O),lineHeight:E},r===Ua?{letterSpacing:`${Ip(j/O)}em`}:{},x,u),h={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,Ga),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Ga),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nt(I({htmlFontSize:d,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},h),w,{clone:!1})}const $p=.2,Ap=.14,Dp=.12;function me(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${$p})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ap})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Dp})`].join(",")}const Bp=["none",me(0,2,1,-1,0,1,1,0,0,1,3,0),me(0,3,1,-2,0,2,2,0,0,1,5,0),me(0,3,3,-2,0,3,4,0,0,1,8,0),me(0,2,4,-1,0,4,5,0,0,1,10,0),me(0,3,5,-1,0,5,8,0,0,1,14,0),me(0,3,5,-1,0,6,10,0,0,1,18,0),me(0,4,5,-2,0,7,10,1,0,2,16,1),me(0,5,5,-3,0,8,10,1,0,3,14,2),me(0,5,6,-3,0,9,12,1,0,3,16,2),me(0,6,6,-3,0,10,14,1,0,4,18,3),me(0,6,7,-4,0,11,15,1,0,4,20,3),me(0,7,8,-4,0,12,17,2,0,5,22,4),me(0,7,8,-4,0,13,19,2,0,5,24,4),me(0,7,9,-4,0,14,21,2,0,5,26,4),me(0,8,9,-5,0,15,22,2,0,6,28,5),me(0,8,10,-5,0,16,24,2,0,6,30,5),me(0,8,11,-5,0,17,26,2,0,6,32,5),me(0,9,11,-5,0,18,28,2,0,7,34,6),me(0,9,12,-6,0,19,29,2,0,7,36,6),me(0,10,13,-6,0,20,31,3,0,8,38,7),me(0,10,13,-6,0,21,33,3,0,8,40,7),me(0,10,14,-6,0,22,35,3,0,8,42,7),me(0,11,14,-7,0,23,36,3,0,9,44,8),me(0,11,15,-7,0,24,38,3,0,9,46,8)],Vp=Bp,zp=["duration","easing","delay"],Lp={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Fp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qa(e){return`${Math.round(e)}ms`}function Gp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Up(e){const t=I({},Lp,e.easing),n=I({},Fp,e.duration);return I({getAutoHeightDuration:Gp,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0}=s,d=Ne(s,zp);if(process.env.NODE_ENV!=="production"){const u=w=>typeof w=="string",f=w=>!isNaN(parseFloat(w));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!u(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` -`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:qa(i)} ${l} ${typeof c=="string"?c:qa(c)}`).join(",")}},e,{easing:t,duration:n})}const qp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Hp=qp,Xp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Yp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=Ne(e,Xp);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Ut(18));const l=_p(r),c=Mo(e);let d=nt(c,{mixins:fp(c.breakpoints,n),palette:l,shadows:Vp.slice(),typography:Mp(l,s),transitions:Up(o),zIndex:I({},Hp)});if(d=nt(d,i),d=t.reduce((u,f)=>nt(u,f),d),process.env.NODE_ENV!=="production"){const u=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(w,b)=>{let v;for(v in w){const m=w[v];if(u.indexOf(v)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){const h=fr("",v);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${h}' syntax:`,JSON.stringify({root:{[`&.${h}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(` -`))}w[v]={}}}};Object.keys(d.components).forEach(w=>{const b=d.components[w].styleOverrides;b&&w.indexOf("Mui")===0&&f(b,w)})}return d.unstable_sxConfig=I({},Po,i==null?void 0:i.unstable_sxConfig),d.unstable_sx=function(f){return Io({sx:f,theme:this})},d}const Wp=Yp(),Ao=Wp,Do="$$material";function Bo({props:e,name:t}){return cp({props:e,name:t,defaultTheme:Ao,themeId:Do})}const Kp=e=>Jn(e)&&e!=="classes",Jp=ip({themeId:Do,defaultTheme:Ao,rootShouldForwardProp:Kp}),Vn=Jp;function Zp(e){return fr("MuiSvgIcon",e)}hi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Qp=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ew=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ze(t)}`,`fontSize${Ze(n)}`]};return Ro(o,Zp,r)},tw=Vn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ze(n.color)}`],t[`fontSize${Ze(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,i,l,c,d,u,f,w,b,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((d=e.typography)==null||(u=d.pxToRem)==null?void 0:u.call(d,35))||"2.1875rem"}[t.fontSize],color:(f=(w=(e.vars||e).palette)==null||(w=w[t.color])==null?void 0:w.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Vo=D.forwardRef(function(t,n){const r=Bo({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:w="0 0 24 24"}=r,b=Ne(r,Qp),v=D.isValidElement(o)&&o.type==="svg",m=I({},r,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:w,hasSvgAsChild:v}),h={};u||(h.viewBox=w);const k=ew(m);return a.jsxs(tw,I({as:l,className:it(k.root,s),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},h,b,v&&o.props,{ownerState:m,children:[v?o.props.children:o,f?a.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(Vo.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,fontSize:p.oneOfType([p.oneOf(["inherit","large","medium","small"]),p.string]),htmlColor:p.string,inheritViewBox:p.bool,shapeRendering:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),titleAccess:p.string,viewBox:p.string});Vo.muiName="SvgIcon";const Ha=Vo;function ki(e,t){function n(r,o){return a.jsx(Ha,I({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ha.muiName,D.memo(D.forwardRef(n))}const nw={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(` -`)),fi.configure(e)}},rw=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Ze,createChainedFunction:Pd,createSvgIcon:ki,debounce:Id,deprecatedPropType:Md,isMuiElement:$d,ownerDocument:tr,ownerWindow:Ad,requirePropFactory:Dd,setRef:nr,unstable_ClassNameGenerator:nw,unstable_useEnhancedEffect:qt,unstable_useId:di,unsupportedProp:zd,useControlled:ui,useEventCallback:eo,useForkRef:Tt,useIsFocusVisible:pi},Symbol.toStringTag,{value:"Module"})),ow=pd(rw);var Xa;function aw(){return Xa||(Xa=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ow}(Mr)),Mr}var sw=wd;Object.defineProperty(Eo,"__esModule",{value:!0});var ji=Eo.default=void 0,iw=sw(aw()),lw=a;ji=Eo.default=(0,iw.default)((0,lw.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");function cw(e){return typeof e=="string"}function bn(e,t,n){return e===void 0||cw(e)?t:I({},t,{ownerState:I({},t.ownerState,n)})}const dw={disableDefaultClasses:!1},uw=D.createContext(dw);function pw(e){const{disableDefaultClasses:t}=D.useContext(uw);return n=>t?"":e(n)}function ww(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function fw(e,t,n){return typeof e=="function"?e(t,n):e}function Ya(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function mw(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const b=it(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),v=I({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=I({},n,o,r);return b.length>0&&(m.className=b),Object.keys(v).length>0&&(m.style=v),{props:m,internalRef:void 0}}const i=ww(I({},o,r)),l=Ya(r),c=Ya(o),d=t(i),u=it(d==null?void 0:d.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),f=I({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),w=I({},d,n,c,l);return u.length>0&&(w.className=u),Object.keys(f).length>0&&(w.style=f),{props:w,internalRef:d.ref}}const hw=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function gw(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=Ne(e,hw),l=s?{}:fw(r,o),{props:c,internalRef:d}=mw(I({},i,{externalSlotProps:l})),u=Tt(d,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return bn(n,I({},c,{ref:u}),o)}const Si="base";function bw(e){return`${Si}--${e}`}function vw(e,t){return`${Si}-${e}-${t}`}function Ei(e,t){const n=mi[t];return n?bw(n):vw(e,t)}function xw(e,t){const n={};return t.forEach(r=>{n[r]=Ei(e,r)}),n}function yw(e){return typeof e=="function"?e():e}const or=D.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,l]=D.useState(null),c=Tt(D.isValidElement(r)?r.ref:null,n);if(qt(()=>{s||l(yw(o)||document.body)},[o,s]),qt(()=>{if(i&&!s)return nr(n,i),()=>{nr(n,null)}},[n,i,s]),s){if(D.isValidElement(r)){const d={ref:c};return D.cloneElement(r,d)}return a.jsx(D.Fragment,{children:r})}return a.jsx(D.Fragment,{children:i&&Il.createPortal(r,i)})});process.env.NODE_ENV!=="production"&&(or.propTypes={children:p.node,container:p.oneOfType([On,p.func]),disablePortal:p.bool});process.env.NODE_ENV!=="production"&&(or["propTypes"]=Sd(or.propTypes));var Re="top",Ge="bottom",Ue="right",Oe="left",zo="auto",zn=[Re,Ge,Ue,Oe],Ht="start",Pn="end",Nw="clippingParents",Ci="viewport",wn="popper",kw="reference",Wa=zn.reduce(function(e,t){return e.concat([t+"-"+Ht,t+"-"+Pn])},[]),Ti=[].concat(zn,[zo]).reduce(function(e,t){return e.concat([t,t+"-"+Ht,t+"-"+Pn])},[]),jw="beforeRead",Sw="read",Ew="afterRead",Cw="beforeMain",Tw="main",Rw="afterMain",Ow="beforeWrite",_w="write",Pw="afterWrite",Iw=[jw,Sw,Ew,Cw,Tw,Rw,Ow,_w,Pw];function Qe(e){return e?(e.nodeName||"").toLowerCase():null}function Ve(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ot(e){var t=Ve(e).Element;return e instanceof t||e instanceof Element}function Fe(e){var t=Ve(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Lo(e){if(typeof ShadowRoot>"u")return!1;var t=Ve(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mw(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Fe(s)||!Qe(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function $w(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(c,d){return c[d]="",c},{});!Fe(o)||!Qe(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const Aw={name:"applyStyles",enabled:!0,phase:"write",fn:Mw,effect:$w,requires:["computeStyles"]};function Ke(e){return e.split("-")[0]}var kt=Math.max,ar=Math.min,Xt=Math.round;function no(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Ri(){return!/^((?!chrome|android).)*safari/i.test(no())}function Yt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Fe(e)&&(o=e.offsetWidth>0&&Xt(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Xt(r.height)/e.offsetHeight||1);var i=Ot(e)?Ve(e):window,l=i.visualViewport,c=!Ri()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/s,f=r.width/o,w=r.height/s;return{width:f,height:w,top:u,right:d+f,bottom:u+w,left:d,x:d,y:u}}function Fo(e){var t=Yt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Oi(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Lo(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ot(e){return Ve(e).getComputedStyle(e)}function Dw(e){return["table","td","th"].indexOf(Qe(e))>=0}function wt(e){return((Ot(e)?e.ownerDocument:e.document)||window.document).documentElement}function jr(e){return Qe(e)==="html"?e:e.assignedSlot||e.parentNode||(Lo(e)?e.host:null)||wt(e)}function Ka(e){return!Fe(e)||ot(e).position==="fixed"?null:e.offsetParent}function Bw(e){var t=/firefox/i.test(no()),n=/Trident/i.test(no());if(n&&Fe(e)){var r=ot(e);if(r.position==="fixed")return null}var o=jr(e);for(Lo(o)&&(o=o.host);Fe(o)&&["html","body"].indexOf(Qe(o))<0;){var s=ot(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Ln(e){for(var t=Ve(e),n=Ka(e);n&&Dw(n)&&ot(n).position==="static";)n=Ka(n);return n&&(Qe(n)==="html"||Qe(n)==="body"&&ot(n).position==="static")?t:n||Bw(e)||t}function Go(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kn(e,t,n){return kt(e,ar(t,n))}function Vw(e,t,n){var r=kn(e,t,n);return r>n?n:r}function _i(){return{top:0,right:0,bottom:0,left:0}}function Pi(e){return Object.assign({},_i(),e)}function Ii(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var zw=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Pi(typeof t!="number"?t:Ii(t,zn))};function Lw(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Ke(n.placement),c=Go(l),d=[Oe,Ue].indexOf(l)>=0,u=d?"height":"width";if(!(!s||!i)){var f=zw(o.padding,n),w=Fo(s),b=c==="y"?Re:Oe,v=c==="y"?Ge:Ue,m=n.rects.reference[u]+n.rects.reference[c]-i[c]-n.rects.popper[u],h=i[c]-n.rects.reference[c],k=Ln(s),O=k?c==="y"?k.clientHeight||0:k.clientWidth||0:0,E=m/2-h/2,j=f[b],x=O-w[u]-f[v],_=O/2-w[u]/2+E,U=kn(j,_,x),R=c;n.modifiersData[r]=(t={},t[R]=U,t.centerOffset=U-_,t)}}function Fw(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Oi(t.elements.popper,o)&&(t.elements.arrow=o))}const Gw={name:"arrow",enabled:!0,phase:"main",fn:Lw,effect:Fw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wt(e){return e.split("-")[1]}var Uw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qw(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Xt(n*o)/o||0,y:Xt(r*o)/o||0}}function Ja(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,w=i.x,b=w===void 0?0:w,v=i.y,m=v===void 0?0:v,h=typeof u=="function"?u({x:b,y:m}):{x:b,y:m};b=h.x,m=h.y;var k=i.hasOwnProperty("x"),O=i.hasOwnProperty("y"),E=Oe,j=Re,x=window;if(d){var _=Ln(n),U="clientHeight",R="clientWidth";if(_===Ve(n)&&(_=wt(n),ot(_).position!=="static"&&l==="absolute"&&(U="scrollHeight",R="scrollWidth")),_=_,o===Re||(o===Oe||o===Ue)&&s===Pn){j=Ge;var P=f&&_===x&&x.visualViewport?x.visualViewport.height:_[U];m-=P-r.height,m*=c?1:-1}if(o===Oe||(o===Re||o===Ge)&&s===Pn){E=Ue;var F=f&&_===x&&x.visualViewport?x.visualViewport.width:_[R];b-=F-r.width,b*=c?1:-1}}var A=Object.assign({position:l},d&&Uw),M=u===!0?qw({x:b,y:m},Ve(n)):{x:b,y:m};if(b=M.x,m=M.y,c){var $;return Object.assign({},A,($={},$[j]=O?"0":"",$[E]=k?"0":"",$.transform=(x.devicePixelRatio||1)<=1?"translate("+b+"px, "+m+"px)":"translate3d("+b+"px, "+m+"px, 0)",$))}return Object.assign({},A,(t={},t[j]=O?m+"px":"",t[E]=k?b+"px":"",t.transform="",t))}function Hw(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:Ke(t.placement),variation:Wt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ja(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ja(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hw,data:{}};var Yn={passive:!0};function Yw(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,c=Ve(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",n.update,Yn)}),l&&c.addEventListener("resize",n.update,Yn),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",n.update,Yn)}),l&&c.removeEventListener("resize",n.update,Yn)}}const Ww={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Yw,data:{}};var Kw={left:"right",right:"left",bottom:"top",top:"bottom"};function Qn(e){return e.replace(/left|right|bottom|top/g,function(t){return Kw[t]})}var Jw={start:"end",end:"start"};function Za(e){return e.replace(/start|end/g,function(t){return Jw[t]})}function Uo(e){var t=Ve(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function qo(e){return Yt(wt(e)).left+Uo(e).scrollLeft}function Zw(e,t){var n=Ve(e),r=wt(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;var d=Ri();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:l+qo(e),y:c}}function Qw(e){var t,n=wt(e),r=Uo(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=kt(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=kt(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+qo(e),c=-r.scrollTop;return ot(o||n).direction==="rtl"&&(l+=kt(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:c}}function Ho(e){var t=ot(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Mi(e){return["html","body","#document"].indexOf(Qe(e))>=0?e.ownerDocument.body:Fe(e)&&Ho(e)?e:Mi(jr(e))}function jn(e,t){var n;t===void 0&&(t=[]);var r=Mi(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Ve(r),i=o?[s].concat(s.visualViewport||[],Ho(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(jn(jr(i)))}function ro(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ef(e,t){var n=Yt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Qa(e,t,n){return t===Ci?ro(Zw(e,n)):Ot(t)?ef(t,n):ro(Qw(wt(e)))}function tf(e){var t=jn(jr(e)),n=["absolute","fixed"].indexOf(ot(e).position)>=0,r=n&&Fe(e)?Ln(e):e;return Ot(r)?t.filter(function(o){return Ot(o)&&Oi(o,r)&&Qe(o)!=="body"}):[]}function nf(e,t,n,r){var o=t==="clippingParents"?tf(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(c,d){var u=Qa(e,d,r);return c.top=kt(u.top,c.top),c.right=ar(u.right,c.right),c.bottom=ar(u.bottom,c.bottom),c.left=kt(u.left,c.left),c},Qa(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function $i(e){var t=e.reference,n=e.element,r=e.placement,o=r?Ke(r):null,s=r?Wt(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Re:c={x:i,y:t.y-n.height};break;case Ge:c={x:i,y:t.y+t.height};break;case Ue:c={x:t.x+t.width,y:l};break;case Oe:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?Go(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case Ht:c[d]=c[d]-(t[u]/2-n[u]/2);break;case Pn:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function In(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?Nw:l,d=n.rootBoundary,u=d===void 0?Ci:d,f=n.elementContext,w=f===void 0?wn:f,b=n.altBoundary,v=b===void 0?!1:b,m=n.padding,h=m===void 0?0:m,k=Pi(typeof h!="number"?h:Ii(h,zn)),O=w===wn?kw:wn,E=e.rects.popper,j=e.elements[v?O:w],x=nf(Ot(j)?j:j.contextElement||wt(e.elements.popper),c,u,i),_=Yt(e.elements.reference),U=$i({reference:_,element:E,strategy:"absolute",placement:o}),R=ro(Object.assign({},E,U)),P=w===wn?R:_,F={top:x.top-P.top+k.top,bottom:P.bottom-x.bottom+k.bottom,left:x.left-P.left+k.left,right:P.right-x.right+k.right},A=e.modifiersData.offset;if(w===wn&&A){var M=A[o];Object.keys(F).forEach(function($){var W=[Ue,Ge].indexOf($)>=0?1:-1,q=[Re,Ge].indexOf($)>=0?"y":"x";F[$]+=M[q]*W})}return F}function rf(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?Ti:c,u=Wt(r),f=u?l?Wa:Wa.filter(function(v){return Wt(v)===u}):zn,w=f.filter(function(v){return d.indexOf(v)>=0});w.length===0&&(w=f);var b=w.reduce(function(v,m){return v[m]=In(e,{placement:m,boundary:o,rootBoundary:s,padding:i})[Ke(m)],v},{});return Object.keys(b).sort(function(v,m){return b[v]-b[m]})}function of(e){if(Ke(e)===zo)return[];var t=Qn(e);return[Za(e),t,Za(t)]}function af(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,w=n.altBoundary,b=n.flipVariations,v=b===void 0?!0:b,m=n.allowedAutoPlacements,h=t.options.placement,k=Ke(h),O=k===h,E=c||(O||!v?[Qn(h)]:of(h)),j=[h].concat(E).reduce(function(G,J){return G.concat(Ke(J)===zo?rf(t,{placement:J,boundary:u,rootBoundary:f,padding:d,flipVariations:v,allowedAutoPlacements:m}):J)},[]),x=t.rects.reference,_=t.rects.popper,U=new Map,R=!0,P=j[0],F=0;F=0,q=W?"width":"height",V=In(t,{placement:A,boundary:u,rootBoundary:f,altBoundary:w,padding:d}),te=W?$?Ue:Oe:$?Ge:Re;x[q]>_[q]&&(te=Qn(te));var oe=Qn(te),ae=[];if(s&&ae.push(V[M]<=0),l&&ae.push(V[te]<=0,V[oe]<=0),ae.every(function(G){return G})){P=A,R=!1;break}U.set(A,ae)}if(R)for(var y=v?3:1,T=function(J){var z=j.find(function(Z){var K=U.get(Z);if(K)return K.slice(0,J).every(function(Q){return Q})});if(z)return P=z,"break"},X=y;X>0;X--){var H=T(X);if(H==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}const sf={name:"flip",enabled:!0,phase:"main",fn:af,requiresIfExists:["offset"],data:{_skip:!1}};function es(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ts(e){return[Re,Ue,Ge,Oe].some(function(t){return e[t]>=0})}function lf(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=In(t,{elementContext:"reference"}),l=In(t,{altBoundary:!0}),c=es(i,r),d=es(l,o,s),u=ts(c),f=ts(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const cf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lf};function df(e,t,n){var r=Ke(e),o=[Oe,Re].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*o,[Oe,Ue].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function uf(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=Ti.reduce(function(u,f){return u[f]=df(f,t.rects,s),u},{}),l=i[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=i}const pf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:uf};function wf(e){var t=e.state,n=e.name;t.modifiersData[n]=$i({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ff={name:"popperOffsets",enabled:!0,phase:"read",fn:wf,data:{}};function mf(e){return e==="x"?"y":"x"}function hf(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,w=n.tether,b=w===void 0?!0:w,v=n.tetherOffset,m=v===void 0?0:v,h=In(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),k=Ke(t.placement),O=Wt(t.placement),E=!O,j=Go(k),x=mf(j),_=t.modifiersData.popperOffsets,U=t.rects.reference,R=t.rects.popper,P=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,F=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(_){if(s){var $,W=j==="y"?Re:Oe,q=j==="y"?Ge:Ue,V=j==="y"?"height":"width",te=_[j],oe=te+h[W],ae=te-h[q],y=b?-R[V]/2:0,T=O===Ht?U[V]:R[V],X=O===Ht?-R[V]:-U[V],H=t.elements.arrow,G=b&&H?Fo(H):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:_i(),z=J[W],Z=J[q],K=kn(0,U[V],G[V]),Q=E?U[V]/2-y-K-z-F.mainAxis:T-K-z-F.mainAxis,C=E?-U[V]/2+y+K+Z+F.mainAxis:X+K+Z+F.mainAxis,L=t.elements.arrow&&Ln(t.elements.arrow),S=L?j==="y"?L.clientTop||0:L.clientLeft||0:0,we=($=A==null?void 0:A[j])!=null?$:0,B=te+Q-we-S,xe=te+C-we,He=kn(b?ar(oe,B):oe,te,b?kt(ae,xe):ae);_[j]=He,M[j]=He-te}if(l){var mt,Ee=j==="x"?Re:Oe,Fn=j==="x"?Ge:Ue,Xe=_[x],_t=x==="y"?"height":"width",ht=Xe+h[Ee],Pt=Xe-h[Fn],It=[Re,Oe].indexOf(k)!==-1,Mt=(mt=A==null?void 0:A[x])!=null?mt:0,gt=It?ht:Xe-U[_t]-R[_t]-Mt+F.altAxis,on=It?Xe+U[_t]+R[_t]-Mt-F.altAxis:Pt,Gn=b&&It?Vw(gt,Xe,on):kn(b?gt:ht,Xe,b?on:Pt);_[x]=Gn,M[x]=Gn-Xe}t.modifiersData[r]=M}}const gf={name:"preventOverflow",enabled:!0,phase:"main",fn:hf,requiresIfExists:["offset"]};function bf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function vf(e){return e===Ve(e)||!Fe(e)?Uo(e):bf(e)}function xf(e){var t=e.getBoundingClientRect(),n=Xt(t.width)/e.offsetWidth||1,r=Xt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yf(e,t,n){n===void 0&&(n=!1);var r=Fe(t),o=Fe(t)&&xf(t),s=wt(t),i=Yt(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Qe(t)!=="body"||Ho(s))&&(l=vf(t)),Fe(t)?(c=Yt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=qo(s))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function Nf(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function kf(e){var t=Nf(e);return Iw.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function jf(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Sf(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var ns={placement:"bottom",modifiers:[],strategy:"absolute"};function rs(){for(var e=arguments.length,t=new Array(e),n=0;nRo({root:["root"]},pw(Rf)),$f={},Af=D.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:c,open:d,placement:u,popperOptions:f,popperRef:w,slotProps:b={},slots:v={},TransitionProps:m}=t,h=Ne(t,Of),k=D.useRef(null),O=Tt(k,n),E=D.useRef(null),j=Tt(E,w),x=D.useRef(j);qt(()=>{x.current=j},[j]),D.useImperativeHandle(w,()=>E.current,[]);const _=Pf(u,i),[U,R]=D.useState(_),[P,F]=D.useState(sr(o));D.useEffect(()=>{E.current&&E.current.forceUpdate()}),D.useEffect(()=>{o&&F(sr(o))},[o]),qt(()=>{if(!P||!d)return;const q=oe=>{R(oe.placement)};if(process.env.NODE_ENV!=="production"&&P&&Sr(P)&&P.nodeType===1){const oe=P.getBoundingClientRect();process.env.NODE_ENV!=="test"&&oe.top===0&&oe.left===0&&oe.right===0&&oe.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` -`))}let V=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:oe})=>{q(oe)}}];c!=null&&(V=V.concat(c)),f&&f.modifiers!=null&&(V=V.concat(f.modifiers));const te=Tf(P,k.current,I({placement:_},f,{modifiers:V}));return x.current(te),()=>{te.destroy(),x.current(null)}},[P,l,c,d,f,_]);const A={placement:U};m!==null&&(A.TransitionProps=m);const M=Mf(),$=(r=v.root)!=null?r:"div",W=gw({elementType:$,externalSlotProps:b.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:O},ownerState:t,className:M.root});return a.jsx($,I({},W,{children:typeof s=="function"?s(A):s}))}),Di=D.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:u,placement:f="bottom",popperOptions:w=$f,popperRef:b,style:v,transition:m=!1,slotProps:h={},slots:k={}}=t,O=Ne(t,_f),[E,j]=D.useState(!0),x=()=>{j(!1)},_=()=>{j(!0)};if(!c&&!u&&(!m||E))return null;let U;if(s)U=s;else if(r){const F=sr(r);U=F&&Sr(F)?tr(F).body:tr(null).body}const R=!u&&c&&(!m||E)?"none":void 0,P=m?{in:u,onEnter:x,onExited:_}:void 0;return a.jsx(or,{disablePortal:l,container:U,children:a.jsx(Af,I({anchorEl:r,direction:i,disablePortal:l,modifiers:d,ref:n,open:m?!E:u,placement:f,popperOptions:w,popperRef:b,slotProps:h,slots:k},O,{style:I({position:"fixed",top:0,left:0,display:R},v),TransitionProps:P,children:o}))})});process.env.NODE_ENV!=="production"&&(Di.propTypes={anchorEl:Co(p.oneOfType([On,p.object,p.func]),e=>{if(e.open){const t=sr(e.anchorEl);if(t&&Sr(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` -`))}else if(!t||typeof t.getBoundingClientRect!="function"||If(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(` -`))}return null}),children:p.oneOfType([p.node,p.func]),container:p.oneOfType([On,p.func]),direction:p.oneOf(["ltr","rtl"]),disablePortal:p.bool,keepMounted:p.bool,modifiers:p.arrayOf(p.shape({data:p.object,effect:p.func,enabled:p.bool,fn:p.func,name:p.any,options:p.object,phase:p.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:p.arrayOf(p.string),requiresIfExists:p.arrayOf(p.string)})),open:p.bool.isRequired,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:p.shape({modifiers:p.array,onFirstUpdate:p.func,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:p.oneOf(["absolute","fixed"])}),popperRef:ci,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),transition:p.bool});function Bi(){const e=yi(Ao);return process.env.NODE_ENV!=="production"&&D.useDebugValue(e),e[Do]||e}function oo(e,t){return oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},oo(e,t)}function Df(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oo(e,t)}const os={disabled:!1};var Bf=process.env.NODE_ENV!=="production"?p.oneOfType([p.number,p.shape({enter:p.number,exit:p.number,appear:p.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&p.oneOfType([p.string,p.shape({enter:p.string,exit:p.string,active:p.string}),p.shape({enter:p.string,enterDone:p.string,enterActive:p.string,exit:p.string,exitDone:p.string,exitActive:p.string})]);const Vi=g.createContext(null);var Vf=function(t){return t.scrollTop},vn="unmounted",xt="exited",yt="entering",Lt="entered",ao="exiting",at=function(e){Df(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=xt,s.appearStatus=yt):c=Lt:r.unmountOnExit||r.mountOnEnter?c=vn:c=xt,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===vn?{status:xt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==yt&&i!==Lt&&(s=yt):(i===yt||i===Lt)&&(s=ao)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,l;return s=i=l=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===yt){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);i&&Vf(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xt&&this.setState({status:vn})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[mn.findDOMNode(this),l],d=c[0],u=c[1],f=this.getTimeouts(),w=l?f.appear:f.enter;if(!o&&!i||os.disabled){this.safeSetState({status:Lt},function(){s.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:yt},function(){s.props.onEntering(d,u),s.onTransitionEnd(w,function(){s.safeSetState({status:Lt},function(){s.props.onEntered(d,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:mn.findDOMNode(this);if(!s||os.disabled){this.safeSetState({status:xt},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:ao},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:xt},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],d=c[0],u=c[1];this.props.addEndListener(d,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===vn)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=Ne(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return g.createElement(Vi.Provider,{value:null},typeof i=="function"?i(o,l):g.cloneElement(g.Children.only(i),l))},t}(g.Component);at.contextType=Vi;at.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:p.shape({current:typeof Element>"u"?p.any:function(e,t,n,r,o,s){var i=e[t];return p.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:p.oneOfType([p.func.isRequired,p.element.isRequired]).isRequired,in:p.bool,mountOnEnter:p.bool,unmountOnExit:p.bool,appear:p.bool,enter:p.bool,exit:p.bool,timeout:function(t){var n=Bf;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;se.scrollTop;function as(e,t){var n,r;const{timeout:o,easing:s,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:i.transitionDelay}}const Ff=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function so(e){return`scale(${e}, ${e**2})`}const Gf={entering:{opacity:1,transform:so(1)},entered:{opacity:1,transform:"none"}},Gr=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xo=D.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:f,onExited:w,onExiting:b,style:v,timeout:m="auto",TransitionComponent:h=zf}=t,k=Ne(t,Ff),O=gn(),E=D.useRef(),j=Bi(),x=D.useRef(null),_=Tt(x,s.ref,n),U=q=>V=>{if(q){const te=x.current;V===void 0?q(te):q(te,V)}},R=U(u),P=U((q,V)=>{Lf(q);const{duration:te,delay:oe,easing:ae}=as({style:v,timeout:m,easing:i},{mode:"enter"});let y;m==="auto"?(y=j.transitions.getAutoHeightDuration(q.clientHeight),E.current=y):y=te,q.style.transition=[j.transitions.create("opacity",{duration:y,delay:oe}),j.transitions.create("transform",{duration:Gr?y:y*.666,delay:oe,easing:ae})].join(","),c&&c(q,V)}),F=U(d),A=U(b),M=U(q=>{const{duration:V,delay:te,easing:oe}=as({style:v,timeout:m,easing:i},{mode:"exit"});let ae;m==="auto"?(ae=j.transitions.getAutoHeightDuration(q.clientHeight),E.current=ae):ae=V,q.style.transition=[j.transitions.create("opacity",{duration:ae,delay:te}),j.transitions.create("transform",{duration:Gr?ae:ae*.666,delay:Gr?te:te||ae*.333,easing:oe})].join(","),q.style.opacity=0,q.style.transform=so(.75),f&&f(q)}),$=U(w),W=q=>{m==="auto"&&O.start(E.current||0,q),r&&r(x.current,q)};return a.jsx(h,I({appear:o,in:l,nodeRef:x,onEnter:P,onEntered:F,onEntering:R,onExit:M,onExited:$,onExiting:A,addEndListener:W,timeout:m==="auto"?null:m},k,{children:(q,V)=>D.cloneElement(s,I({style:I({opacity:0,transform:so(.75),visibility:q==="exited"&&!l?"hidden":void 0},Gf[q],v,s.props.style),ref:_},V))}))});process.env.NODE_ENV!=="production"&&(Xo.propTypes={addEndListener:p.func,appear:p.bool,children:ii.isRequired,easing:p.oneOfType([p.shape({enter:p.string,exit:p.string}),p.string]),in:p.bool,onEnter:p.func,onEntered:p.func,onEntering:p.func,onExit:p.func,onExited:p.func,onExiting:p.func,style:p.object,timeout:p.oneOfType([p.oneOf(["auto"]),p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})])});Xo.muiSupportAuto=!0;const ss=Xo,Uf=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],qf=Vn(Di,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zi=D.forwardRef(function(t,n){var r;const o=xi(),s=Bo({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:c,componentsProps:d,container:u,disablePortal:f,keepMounted:w,modifiers:b,open:v,placement:m,popperOptions:h,popperRef:k,transition:O,slots:E,slotProps:j}=s,x=Ne(s,Uf),_=(r=E==null?void 0:E.root)!=null?r:c==null?void 0:c.Root,U=I({anchorEl:i,container:u,disablePortal:f,keepMounted:w,modifiers:b,open:v,placement:m,popperOptions:h,popperRef:k,transition:O},x);return a.jsx(qf,I({as:l,direction:o==null?void 0:o.direction,slots:{root:_},slotProps:j??d},U,{ref:n}))});process.env.NODE_ENV!=="production"&&(zi.propTypes={anchorEl:p.oneOfType([On,p.object,p.func]),children:p.oneOfType([p.node,p.func]),component:p.elementType,components:p.shape({Root:p.elementType}),componentsProps:p.shape({root:p.oneOfType([p.func,p.object])}),container:p.oneOfType([On,p.func]),disablePortal:p.bool,keepMounted:p.bool,modifiers:p.arrayOf(p.shape({data:p.object,effect:p.func,enabled:p.bool,fn:p.func,name:p.any,options:p.object,phase:p.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:p.arrayOf(p.string),requiresIfExists:p.arrayOf(p.string)})),open:p.bool.isRequired,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:p.shape({modifiers:p.array,onFirstUpdate:p.func,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:p.oneOf(["absolute","fixed"])}),popperRef:ci,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),transition:p.bool});const Li=zi;function Hf(e){return fr("MuiTooltip",e)}const Xf=hi("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),lt=Xf,Yf=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Wf(e){return Math.round(e*1e5)/1e5}const Kf=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ze(s.split("-")[0])}`],arrow:["arrow"]};return Ro(i,Hf,t)},Jf=Vn(Li,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>I({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${lt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${lt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${lt.arrow}`]:I({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${lt.arrow}`]:I({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Zf=Vn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ze(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>I({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ni(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Wf(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${lt.popper}[data-popper-placement*="left"] &`]:I({transformOrigin:"right center"},t.isRtl?I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):I({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${lt.popper}[data-popper-placement*="right"] &`]:I({transformOrigin:"left center"},t.isRtl?I({marginRight:"14px"},t.touch&&{marginRight:"24px"}):I({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${lt.popper}[data-popper-placement*="top"] &`]:I({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${lt.popper}[data-popper-placement*="bottom"] &`]:I({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Qf=Vn("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ni(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Wn=!1;const is=new An;let fn={x:0,y:0};function Kn(e,t){return n=>{t&&t(n),e(n)}}const Fi=D.forwardRef(function(t,n){var r,o,s,i,l,c,d,u,f,w,b,v,m,h,k,O,E,j,x;const _=Bo({props:t,name:"MuiTooltip"}),{arrow:U=!1,children:R,components:P={},componentsProps:F={},describeChild:A=!1,disableFocusListener:M=!1,disableHoverListener:$=!1,disableInteractive:W=!1,disableTouchListener:q=!1,enterDelay:V=100,enterNextDelay:te=0,enterTouchDelay:oe=700,followCursor:ae=!1,id:y,leaveDelay:T=0,leaveTouchDelay:X=1500,onClose:H,onOpen:G,open:J,placement:z="bottom",PopperComponent:Z,PopperProps:K={},slotProps:Q={},slots:C={},title:L,TransitionComponent:S=ss,TransitionProps:we}=_,B=Ne(_,Yf),xe=D.isValidElement(R)?R:a.jsx("span",{children:R}),He=Bi(),mt=He.direction==="rtl",[Ee,Fn]=D.useState(),[Xe,_t]=D.useState(null),ht=D.useRef(!1),Pt=W||ae,It=gn(),Mt=gn(),gt=gn(),on=gn(),[Gn,ea]=ui({controlled:J,default:!1,name:"Tooltip",state:"open"});let et=Gn;if(process.env.NODE_ENV!=="production"){const{current:ne}=D.useRef(J!==void 0);D.useEffect(()=>{Ee&&Ee.disabled&&!ne&&L!==""&&Ee.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(` -`))},[L,Ee,ne])}const Er=di(y),an=D.useRef(),Un=eo(()=>{an.current!==void 0&&(document.body.style.WebkitUserSelect=an.current,an.current=void 0),on.clear()});D.useEffect(()=>Un,[Un]);const ta=ne=>{is.clear(),Wn=!0,ea(!0),G&&!et&&G(ne)},qn=eo(ne=>{is.start(800+T,()=>{Wn=!1}),ea(!1),H&&et&&H(ne),It.start(He.transitions.duration.shortest,()=>{ht.current=!1})}),Cr=ne=>{ht.current&&ne.type!=="touchstart"||(Ee&&Ee.removeAttribute("title"),Mt.clear(),gt.clear(),V||Wn&&te?Mt.start(Wn?te:V,()=>{ta(ne)}):ta(ne))},na=ne=>{Mt.clear(),gt.start(T,()=>{qn(ne)})},{isFocusVisibleRef:ra,onBlur:sl,onFocus:il,ref:ll}=pi(),[,oa]=D.useState(!1),aa=ne=>{sl(ne),ra.current===!1&&(oa(!1),na(ne))},sa=ne=>{Ee||Fn(ne.currentTarget),il(ne),ra.current===!0&&(oa(!0),Cr(ne))},ia=ne=>{ht.current=!0;const Ie=xe.props;Ie.onTouchStart&&Ie.onTouchStart(ne)},la=Cr,ca=na,cl=ne=>{ia(ne),gt.clear(),It.clear(),Un(),an.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",on.start(oe,()=>{document.body.style.WebkitUserSelect=an.current,Cr(ne)})},dl=ne=>{xe.props.onTouchEnd&&xe.props.onTouchEnd(ne),Un(),gt.start(X,()=>{qn(ne)})};D.useEffect(()=>{if(!et)return;function ne(Ie){(Ie.key==="Escape"||Ie.key==="Esc")&&qn(Ie)}return document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)}},[qn,et]);const ul=Tt(xe.ref,ll,Fn,n);!L&&L!==0&&(et=!1);const Tr=D.useRef(),pl=ne=>{const Ie=xe.props;Ie.onMouseMove&&Ie.onMouseMove(ne),fn={x:ne.clientX,y:ne.clientY},Tr.current&&Tr.current.update()},sn={},Rr=typeof L=="string";A?(sn.title=!et&&Rr&&!$?L:null,sn["aria-describedby"]=et?Er:null):(sn["aria-label"]=Rr?L:null,sn["aria-labelledby"]=et&&!Rr?Er:null);const ze=I({},sn,B,xe.props,{className:it(B.className,xe.props.className),onTouchStart:ia,ref:ul},ae?{onMouseMove:pl}:{});process.env.NODE_ENV!=="production"&&(ze["data-mui-internal-clone-element"]=!0,D.useEffect(()=>{Ee&&!Ee.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(` -`))},[Ee]));const ln={};q||(ze.onTouchStart=cl,ze.onTouchEnd=dl),$||(ze.onMouseOver=Kn(la,ze.onMouseOver),ze.onMouseLeave=Kn(ca,ze.onMouseLeave),Pt||(ln.onMouseOver=la,ln.onMouseLeave=ca)),M||(ze.onFocus=Kn(sa,ze.onFocus),ze.onBlur=Kn(aa,ze.onBlur),Pt||(ln.onFocus=sa,ln.onBlur=aa)),process.env.NODE_ENV!=="production"&&xe.props.title&&console.error(["MUI: You have provided a `title` prop to the child of .",`Remove this title prop \`${xe.props.title}\` or the Tooltip component.`].join(` -`));const wl=D.useMemo(()=>{var ne;let Ie=[{name:"arrow",enabled:!!Xe,options:{element:Xe,padding:4}}];return(ne=K.popperOptions)!=null&&ne.modifiers&&(Ie=Ie.concat(K.popperOptions.modifiers)),I({},K.popperOptions,{modifiers:Ie})},[Xe,K]),cn=I({},_,{isRtl:mt,arrow:U,disableInteractive:Pt,placement:z,PopperComponentProp:Z,touch:ht.current}),Or=Kf(cn),da=(r=(o=C.popper)!=null?o:P.Popper)!=null?r:Jf,ua=(s=(i=(l=C.transition)!=null?l:P.Transition)!=null?i:S)!=null?s:ss,pa=(c=(d=C.tooltip)!=null?d:P.Tooltip)!=null?c:Zf,wa=(u=(f=C.arrow)!=null?f:P.Arrow)!=null?u:Qf,fl=bn(da,I({},K,(w=Q.popper)!=null?w:F.popper,{className:it(Or.popper,K==null?void 0:K.className,(b=(v=Q.popper)!=null?v:F.popper)==null?void 0:b.className)}),cn),ml=bn(ua,I({},we,(m=Q.transition)!=null?m:F.transition),cn),hl=bn(pa,I({},(h=Q.tooltip)!=null?h:F.tooltip,{className:it(Or.tooltip,(k=(O=Q.tooltip)!=null?O:F.tooltip)==null?void 0:k.className)}),cn),gl=bn(wa,I({},(E=Q.arrow)!=null?E:F.arrow,{className:it(Or.arrow,(j=(x=Q.arrow)!=null?x:F.arrow)==null?void 0:j.className)}),cn);return a.jsxs(D.Fragment,{children:[D.cloneElement(xe,ze),a.jsx(da,I({as:Z??Li,placement:z,anchorEl:ae?{getBoundingClientRect:()=>({top:fn.y,left:fn.x,right:fn.x,bottom:fn.y,width:0,height:0})}:Ee,popperRef:Tr,open:Ee?et:!1,id:Er,transition:!0},ln,fl,{popperOptions:wl,children:({TransitionProps:ne})=>a.jsx(ua,I({timeout:He.transitions.duration.shorter},ne,ml,{children:a.jsxs(pa,I({},hl,{children:[L,U?a.jsx(wa,I({},gl,{ref:_t})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(Fi.propTypes={arrow:p.bool,children:ii.isRequired,classes:p.object,className:p.string,components:p.shape({Arrow:p.elementType,Popper:p.elementType,Tooltip:p.elementType,Transition:p.elementType}),componentsProps:p.shape({arrow:p.object,popper:p.object,tooltip:p.object,transition:p.object}),describeChild:p.bool,disableFocusListener:p.bool,disableHoverListener:p.bool,disableInteractive:p.bool,disableTouchListener:p.bool,enterDelay:p.number,enterNextDelay:p.number,enterTouchDelay:p.number,followCursor:p.bool,id:p.string,leaveDelay:p.number,leaveTouchDelay:p.number,onClose:p.func,onOpen:p.func,open:p.bool,placement:p.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:p.elementType,PopperProps:p.object,slotProps:p.shape({arrow:p.object,popper:p.object,tooltip:p.object,transition:p.object}),slots:p.shape({arrow:p.elementType,popper:p.elementType,tooltip:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),title:p.node,TransitionComponent:p.elementType,TransitionProps:p.object});const em=Fi;function ls(e,t,n){return e?a.jsx(Be.ListItemIcon,{className:`papi-menu-icon-${n?"leading":"trailing"}`,children:a.jsx("img",{src:e,alt:`${n?"Leading":"Trailing"} icon for ${t}`})}):void 0}function Yo(e){const{onClick:t,label:n,tooltip:r,allowForLeadingIcons:o=!0,iconPathBefore:s=void 0,iconPathAfter:i=void 0,hasAutoFocus:l=!1,className:c,isDisabled:d=!1,isDense:u=!0,isSubMenuParent:f=!1,hasDisabledGutters:w=!1,hasDivider:b=!1,focusVisibleClassName:v,id:m,children:h}=e,k=a.jsx(Be.MenuItem,{sx:{lineHeight:.8},autoFocus:l,className:c,disabled:d,dense:u,disableGutters:w,divider:b,focusVisibleClassName:v,onClick:t,id:m,children:n?a.jsxs(a.Fragment,{children:[ls(s,n,!0),a.jsx(Be.ListItemText,{primary:n,inset:!s&&o}),f?a.jsx(Be.ListItemIcon,{className:"papi-menu-icon-trailing",children:a.jsx(ji,{})}):ls(i,n,!1)]}):h});return r?a.jsx(em,{title:r,placement:"right",children:a.jsx("div",{children:k})}):k}function Gi(e){return Object.entries(e.groups).map(([n,r])=>({id:n,group:r}))}function tm(e){const[t,n]=g.useState(void 0),{parentMenuItem:r,parentItemProps:o,menuDefinition:s}=e,i=d=>{n(d.currentTarget)},l=()=>{n(void 0)},c=()=>{let d=Gi(s).filter(u=>"menuItem"in u.group);if(!(r!=null&&r.id))throw new Error("A valid parent menu item is required for submenus.");return d=d.filter(u=>"menuItem"in u.group&&u.group.menuItem===r.id),a.jsx(Ui,{...e,includedGroups:d})};return a.jsxs(a.Fragment,{children:[a.jsx(Yo,{onClick:i,...o,isSubMenuParent:!0}),a.jsx(Be.Menu,{anchorEl:t,open:!!t,onClose:l,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:c()},r.id)]})}const nm=(e,t)=>t.filter(o=>o.group===e).sort((o,s)=>(o.order||0)-(s.order||0));function Ui(e){const{menuDefinition:t,onClick:n,commandHandler:r,includedGroups:o}=e,{items:s,allowForLeadingIcons:i}=g.useMemo(()=>{const u=o&&o.length>0?o:Gi(t).filter(v=>!("menuItem"in v.group)),f=Object.values(u).sort((v,m)=>(v.group.order||0)-(m.group.order||0)),w=[];f.forEach(v=>{nm(v.id,t.items).forEach(m=>w.push({item:m,isLastItemInGroup:!1})),w.length>0&&(w[w.length-1].isLastItemInGroup=!0)}),w.length>0&&(w[w.length-1].isLastItemInGroup=!1);const b=w.some(v=>"iconPathBefore"in v.item&&v.item.iconPathBefore);return{items:w,allowForLeadingIcons:b}},[o,t]),l=({item:u,isLastItemInGroup:f})=>({className:"papi-menu-item",label:u.label,tooltip:u.tooltip,iconPathBefore:"iconPathBefore"in u?u.iconPathBefore:void 0,iconPathAfter:"iconPathAfter"in u?u.iconPathAfter:void 0,hasDivider:f,allowForLeadingIcons:i}),[c]=s;if(!c)return a.jsx("div",{});const d=c.item.group;return a.jsx("div",{role:"menu","aria-label":d,children:s.map((u,f)=>{const{item:w}=u,b=l(u);if("command"in w){const v=w.group+f;return a.jsx(Yo,{onClick:m=>{n==null||n(m),r(w)},...b},v)}return a.jsx(tm,{parentMenuItem:w,parentItemProps:b,...e},d+w.id)})},d)}function rm(e){const{menuDefinition:t,columnId:n}=e;let s=Object.entries(t.groups).map(([i,l])=>({id:i,group:l})).filter(i=>"column"in i.group);return n&&"columns"in t&&t.columns[n]&&(s=s.filter(i=>"column"in i.group&&i.group.column===n)),a.jsx(Ui,{...e,includedGroups:s})}function om({commandHandler:e,menuDefinition:t,id:n,metadata:r,onClick:o,className:s}){return a.jsxs(Be.Grid,{id:n,item:!0,xs:"auto",role:"menu","aria-label":n,className:`papi-menu-column ${s??""}`,children:[a.jsx("h3",{"aria-label":r.label,className:`papi-menu-column-header ${s??""}`,children:r.label}),a.jsx(Be.List,{id:n,dense:!0,className:s??"",children:a.jsx(rm,{commandHandler:e,menuDefinition:t,columnId:n,onClick:o})})]})}function qi({commandHandler:e,className:t,multiColumnMenu:n,id:r}){const{columns:o}=n,s=g.useMemo(()=>{const i=new Map;return Object.getOwnPropertyNames(o).forEach(l=>{if(l==="isExtensible")return;const c=l,d=o[c];typeof d=="object"&&typeof d.order=="number"&&!Number.isNaN(d.order)?i.set(d.order,{id:c,metadata:d}):console.warn(`Property ${l} (${typeof d}) on menu ${r} is not a valid column and is being ignored. This might indicate data corruption`)}),Array.from(i.values()).sort((l,c)=>(l.metadata.order||0)-(c.metadata.order||0))},[o,r]);return a.jsx(Be.Grid,{container:!0,spacing:0,className:`papi-multi-column-menu ${t??""}`,columns:s.length,role:"menu","aria-label":"GridMenu",id:r,children:s.map((i,l)=>a.jsx(om,{commandHandler:e,menuDefinition:n,...i,className:t},l))})}function am(e){return{preserveValue:!0,...e}}const ir=(e,t,n={})=>{const r=g.useRef(t);r.current=t;const o=g.useRef(n);o.current=am(o.current);const[s,i]=g.useState(()=>r.current),[l,c]=g.useState(!0);return g.useEffect(()=>{let d=!0;return c(!!e),(async()=>{if(e){const u=await e();d&&(i(()=>u),c(!1))}})(),()=>{d=!1,o.current.preserveValue||i(()=>r.current)}},[e]),[s,l]},sm=ki(a.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function Hi({menuProvider:e,normalMenu:t,fullMenu:n,commandHandler:r,containerRef:o,className:s,ariaLabelPrefix:i,children:l}){const[c,d]=g.useState(!1),[u,f]=g.useState(!1),w=g.useCallback(()=>{c&&d(!1),f(!1)},[c]),b=g.useCallback(j=>{j.stopPropagation(),d(x=>{const _=!x;return _&&j.shiftKey?f(!0):_||f(!1),_})},[]),v=g.useCallback(j=>(w(),r(j)),[r,w]),[m,h]=g.useState({top:1,left:1});g.useEffect(()=>{if(c){const j=o==null?void 0:o.current;if(j){const x=j.getBoundingClientRect(),_=window.scrollY,U=window.scrollX,R=x.top+_+j.clientHeight,P=x.left+U;h({top:R,left:P})}}},[c,o]);const[k]=ir(g.useCallback(async()=>(e==null?void 0:e(!1))??t,[e,t,c]),t),[O]=ir(g.useCallback(async()=>(e==null?void 0:e(!0))??n??k,[e,n,k,c]),n??k),E=u&&O?O:k;return a.jsxs(a.Fragment,{children:[a.jsx(Be.IconButton,{sx:{paddingTop:0,paddingBottom:0},edge:"start",className:`papi-menuButton ${s??""}`,color:"inherit","aria-label":`${i??""} menu button`,onClick:b,children:l??a.jsx(sm,{})}),a.jsx(Be.Drawer,{className:`papi-menu-drawer ${s??""}`,anchor:"left",variant:"temporary",open:c,onClose:w,PaperProps:{className:"papi-menu-drawer-paper",style:{top:m.top,left:m.left}},children:E?a.jsx(qi,{className:s,id:`${i??""} main menu`,commandHandler:v,multiColumnMenu:E}):void 0})]})}function im({id:e,label:t,isDisabled:n=!1,tooltip:r,isTooltipSuppressed:o=!1,adjustMarginToAlignToEdge:s=!1,size:i="medium",className:l,onClick:c,children:d}){return a.jsx(Be.IconButton,{id:e,disabled:n,edge:s,size:i,"aria-label":t,title:o?void 0:r??t,className:`papi-icon-button ${l??""}`,onClick:c,children:d})}const ft=g.forwardRef(({className:e,...t},n)=>a.jsx(Y.LoaderCircle,{size:35,className:N("tw-animate-spin",e),...t,ref:n}));ft.displayName="Spinner";function lm({id:e,isDisabled:t=!1,hasError:n=!1,isFullWidth:r=!1,helperText:o,label:s,placeholder:i,isRequired:l=!1,className:c,defaultValue:d,value:u,onChange:f,onFocus:w,onBlur:b}){return a.jsxs("div",{className:N("tw-inline-grid tw-items-center tw-gap-1.5",{"tw-w-full":r}),children:[a.jsx(ke,{htmlFor:e,className:N({"tw-text-red-600":n,"tw-hidden":!s}),children:`${s}${l?"*":""}`}),a.jsx(ut,{id:e,disabled:t,placeholder:i,required:l,className:N(c,{"tw-border-red-600":n}),defaultValue:d,value:u,onChange:f,onFocus:w,onBlur:b}),a.jsx("p",{className:N({"tw-hidden":!o}),children:o})]})}function cm({menuProvider:e,commandHandler:t,className:n,id:r,children:o}){const s=g.useRef(void 0);return a.jsx("div",{ref:s,style:{position:"relative"},children:a.jsx(Be.AppBar,{position:"static",id:r,children:a.jsxs(Be.Toolbar,{className:N("tw-bg-muted tw-text-muted-foreground",n),variant:"dense",children:[e?a.jsx(Hi,{commandHandler:t,containerRef:s,menuProvider:e}):void 0,o?a.jsx("div",{className:"papi-toolbar-children",children:o}):void 0]})})})}const dm=Jt.cva("tw-relative tw-w-full tw-rounded-lg tw-border tw-p-4 [&>svg~*]:tw-pl-7 [&>svg+div]:tw-translate-y-[-3px] [&>svg]:tw-absolute [&>svg]:tw-left-4 [&>svg]:tw-top-4 [&>svg]:tw-text-foreground",{variants:{variant:{default:"tw-bg-background tw-text-foreground",destructive:"tw-border-destructive/50 tw-text-destructive dark:tw-border-destructive [&>svg]:tw-text-destructive"}},defaultVariants:{variant:"default"}}),Xi=g.forwardRef(({className:e,variant:t,...n},r)=>a.jsx("div",{ref:r,role:"alert",className:N(dm({variant:t}),e),...n}));Xi.displayName="Alert";const Yi=g.forwardRef(({className:e,...t},n)=>a.jsxs("h5",{ref:n,className:N("tw-mb-1 tw-font-medium tw-leading-none tw-tracking-tight",e),...t,children:[t.children," "]}));Yi.displayName="AlertTitle";const Wi=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("tw-text-sm [&_p]:tw-leading-relaxed",e),...t}));Wi.displayName="AlertDescription";const Ki=Jt.cva("tw-inline-flex tw-items-center tw-rounded-full tw-border tw-px-2.5 tw-py-0.5 tw-text-xs tw-font-semibold tw-transition-colors focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2",{variants:{variant:{default:"tw-border-transparent tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/80",secondary:"tw-border-transparent tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80",muted:"tw-border-transparent tw-bg-muted tw-text-muted-foreground hover:tw-bg-muted/80",destructive:"tw-border-transparent tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/80",outline:"tw-text-foreground"}},defaultVariants:{variant:"default"}});function um({className:e,variant:t,...n}){return a.jsx("div",{className:N("pr-twp",Ki({variant:t}),e),...n})}const Wo=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("pr-twp tw-rounded-lg tw-border tw-bg-card tw-text-card-foreground tw-shadow-sm",e),...t}));Wo.displayName="Card";const Ko=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("pr-twp tw-flex tw-flex-col tw-space-y-1.5 tw-p-6",e),...t}));Ko.displayName="CardHeader";const Jo=g.forwardRef(({className:e,...t},n)=>a.jsx("h3",{ref:n,className:N("pr-twp tw-text-2xl tw-font-semibold tw-leading-none tw-tracking-tight",e),...t,children:t.children}));Jo.displayName="CardTitle";const Zo=g.forwardRef(({className:e,...t},n)=>a.jsx("p",{ref:n,className:N("pr-twp tw-text-sm tw-text-muted-foreground",e),...t}));Zo.displayName="CardDescription";const Qo=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("pr-twp tw-p-6 tw-pt-0",e),...t}));Qo.displayName="CardContent";const Ji=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("pr-twp tw-flex tw-items-center tw-p-6 tw-pt-0",e),...t}));Ji.displayName="CardFooter";function pm({...e}){return a.jsx(us.Toaster,{className:"tw-toaster tw-group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})}const Zi=g.forwardRef(({className:e,...t},n)=>{const r=ye();return a.jsxs(hn.Root,{ref:n,className:N("pr-twp tw-relative tw-flex tw-w-full tw-touch-none tw-select-none tw-items-center",e),...t,dir:r,children:[a.jsx(hn.Track,{className:"tw-relative tw-h-2 tw-w-full tw-grow tw-overflow-hidden tw-rounded-full tw-bg-secondary",children:a.jsx(hn.Range,{className:"tw-absolute tw-h-full tw-bg-primary"})}),a.jsx(hn.Thumb,{className:"tw-block tw-h-5 tw-w-5 tw-rounded-full tw-border-2 tw-border-primary tw-bg-background tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50"})]})});Zi.displayName=hn.Root.displayName;const Qi=g.forwardRef(({className:e,...t},n)=>{const r=ye();return a.jsx(Xr.Root,{className:N("tw-peer pr-twp tw-inline-flex tw-h-6 tw-w-11 tw-shrink-0 tw-cursor-pointer tw-items-center tw-rounded-full tw-border-2 tw-border-transparent tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 focus-visible:tw-ring-offset-background disabled:tw-cursor-not-allowed disabled:tw-opacity-50 data-[state=checked]:tw-bg-primary data-[state=unchecked]:tw-bg-input",e),...t,ref:n,children:a.jsx(Xr.Thumb,{className:N("pr-twp tw-pointer-events-none tw-block tw-h-5 tw-w-5 tw-rounded-full tw-bg-background tw-shadow-lg tw-ring-0 tw-transition-transform",{"data-[state=checked]:tw-translate-x-5 data-[state=unchecked]:tw-translate-x-0":r==="ltr"},{"data-[state=checked]:tw-translate-x-[-20px] data-[state=unchecked]:tw-translate-x-0":r==="rtl"})})})});Qi.displayName=Xr.Root.displayName;const wm=Pe.Root,el=g.forwardRef(({className:e,...t},n)=>{const r=ye();return a.jsx(Pe.List,{ref:n,className:N("tw-inline-flex tw-h-10 tw-items-center tw-justify-center tw-rounded-md tw-bg-muted tw-p-1 tw-text-muted-foreground",e),...t,dir:r})});el.displayName=Pe.List.displayName;const tl=g.forwardRef(({className:e,...t},n)=>a.jsx(Pe.Trigger,{ref:n,className:N("tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-sm tw-px-3 tw-py-1.5 tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-all hover:tw-text-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=active]:tw-bg-background data-[state=active]:tw-text-foreground data-[state=active]:tw-shadow-sm",e),...t}));tl.displayName=Pe.Trigger.displayName;const nl=g.forwardRef(({className:e,...t},n)=>a.jsx(Pe.Content,{ref:n,className:N("tw-mt-2 tw-ring-offset-background focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2",e),...t}));nl.displayName=Pe.Content.displayName;function fm({isInstalling:e,handleClick:t,buttonText:n,className:r,...o}){return a.jsx(pe,{className:N("tw-h-8 tw-rounded-md tw-text-white tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-blue-700",{"tw-cursor-not-allowed tw-bg-blue-700":e,"tw-bg-blue-600":!e,"tw-bg-white tw-text-blue-600 hover:tw-text-white":!n,"tw-w-20":n},r),onClick:t,...o,children:e?a.jsx(ft,{size:15}):a.jsxs(a.Fragment,{children:[a.jsx(Y.Download,{size:25,className:N("tw-h-4 tw-w-4",{"tw-mr-1":n})}),n]})})}function mm({isEnabling:e,handleClick:t,className:n,...r}){return a.jsx(pe,{className:N("tw-h-8 tw-rounded-md tw-bg-blue-600 tw-px-4 tw-text-white tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-blue-700",{"tw-cursor-not-allowed tw-bg-blue-700":e},n),onClick:t,...r,children:e?a.jsxs(a.Fragment,{children:[a.jsx(ft,{size:15,className:"tw-mr-1 tw-text-white"}),"Enabling..."]}):"Enable"})}function hm({isDisabling:e,handleClick:t,className:n,...r}){return a.jsx(pe,{className:N("tw-h-8 tw-rounded-md tw-bg-gray-300 tw-text-black tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-gray-400",{"tw-cursor-not-allowed tw-bg-gray-400":e},n),onClick:t,...r,children:e?a.jsxs(a.Fragment,{children:[a.jsx(ft,{size:15,className:"tw-mr-1 tw-text-black"}),"Disabling..."]}):"Disable"})}function gm({isUpdating:e,handleClick:t,className:n,...r}){return a.jsx(pe,{className:N("tw-h-8 tw-rounded-md tw-bg-blue-600 tw-px-4 tw-text-white tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-blue-700 hover:tw-text-white",{"tw-cursor-not-allowed tw-bg-blue-700":e},n),onClick:t,...r,children:e?a.jsxs(a.Fragment,{children:[a.jsx(ft,{size:15,className:"tw-mr-1 tw-text-white"}),"Updating..."]}):"Update"})}function bm({id:e,markdown:t,className:n,anchorTarget:r}){const o=g.useMemo(()=>({overrides:{a:{props:{target:r}}}}),[r]);return a.jsx("div",{id:e,className:N("pr-twp tw-prose",n),children:a.jsx(Pl,{options:o,children:t})})}const rl=g.forwardRef((e,t)=>a.jsxs(pe,{ref:t,className:"tw-rounded-md tw-border tw-border-dashed tw-border-gray-400 tw-bg-white tw-px-4 tw-py-2 tw-text-black tw-transition tw-duration-300 tw-ease-in-out hover:tw-border-blue-600 hover:tw-bg-white hover:tw-text-blue-600",...e,children:[a.jsx(Y.Filter,{size:16,className:"tw-mr-2 tw-h-4 tw-w-4 tw-text-gray-700 hover:tw-text-blue-600"}),"Filter",a.jsx(Y.ChevronDown,{size:16,className:"tw-ml-2 tw-h-4 tw-w-4 tw-text-gray-700 hover:tw-text-blue-600"})]}));var ol=(e=>(e[e.Check=0]="Check",e[e.Radio=1]="Radio",e))(ol||{});function vm({id:e,groups:t}){return a.jsx("div",{id:e,children:a.jsxs(Gt,{children:[a.jsx(Cn,{asChild:!0,children:a.jsx(rl,{})}),a.jsx(jt,{children:t.map(n=>a.jsxs("div",{children:[a.jsx(Zt,{children:n.label}),a.jsx(ms,{children:n.items.map(r=>a.jsx("div",{children:r.itemType===0?a.jsx($n,{onClick:r.onClick,children:r.label}):a.jsx(io,{onClick:r.onClick,value:r.label,children:r.label})},r.label))}),a.jsx(Qt,{})]},n.label))})]})})}function xm({id:e,message:t}){return a.jsx("div",{id:e,className:"tw-mb-20 tw-mt-20 tw-flex tw-items-center tw-justify-center",children:a.jsx("div",{className:"tw-w-3/4 tw-rounded-lg tw-bg-gray-100 tw-p-8 tw-text-center",children:a.jsx("p",{className:"tw-text-lg tw-text-gray-800",children:t})})})}function ym({id:e,category:t,downloads:n,languages:r,moreInfoUrl:o}){const s=new ee.NumberFormat("en",{notation:"compact",compactDisplay:"short"}).format(Object.values(n).reduce((l,c)=>l+c,0)),i=()=>{window.scrollTo(0,document.body.scrollHeight)};return a.jsxs("div",{id:e,className:"tw-flex tw-flex-wrap tw-items-start tw-space-x-4 tw-border-b tw-border-t tw-bg-white tw-pb-4 tw-pt-4",children:[a.jsxs("div",{className:"tw-flex tw-flex-col tw-items-center",children:[a.jsx("div",{className:"tw-flex tw-items-center tw-rounded-md tw-bg-gray-100 tw-px-2 tw-py-1",children:a.jsx("span",{className:"tw-text-xs tw-font-semibold tw-text-gray-700",children:t})}),a.jsx("span",{className:"tw-text-xs tw-text-gray-500",children:"CATEGORY"})]}),a.jsx("div",{className:"tw-mx-2 tw-h-10 tw-border-l tw-border-gray-300"}),a.jsxs("div",{className:"tw-flex tw-flex-col tw-items-center",children:[a.jsxs("div",{className:"tw-flex tw-items-center tw-rounded-md tw-bg-gray-100 tw-px-2 tw-py-1",children:[a.jsx(Y.User,{className:"tw-mr-1 tw-h-4 tw-w-4"}),a.jsx("span",{className:"tw-text-xs tw-font-semibold tw-text-gray-700",children:s})]}),a.jsx("span",{className:"tw-text-xs tw-text-gray-500",children:"USERS"})]}),a.jsx("div",{className:"tw-mx-2 tw-h-10 tw-border-l tw-border-gray-300"}),a.jsxs("div",{className:"tw-flex tw-flex-col tw-items-center",children:[a.jsx("div",{className:"tw-flex tw-items-center",children:r.slice(0,3).map(l=>a.jsx("span",{className:"tw-ml-1 tw-rounded-md tw-bg-gray-100 tw-px-2 tw-py-1 tw-text-xs tw-font-semibold tw-text-gray-700",children:l.toUpperCase()},l))}),r.length>3&&a.jsxs("button",{type:"button",onClick:()=>i(),className:"tw-text-xs tw-text-gray-500 tw-underline",children:["+",r.length-3," more languages"]})]}),a.jsx("div",{className:"tw-mx-2 tw-h-10 tw-border-l tw-border-gray-300"}),a.jsxs("div",{className:"tw-ml-auto tw-flex tw-flex-col tw-space-y-2",children:[a.jsxs("a",{href:o,target:"_blank",rel:"noreferrer",className:"tw-flex tw-items-center tw-text-xs tw-font-semibold tw-text-gray-500 tw-underline",children:["Website",a.jsx(Y.Link,{className:"tw-ml-1 tw-inline tw-h-4 tw-w-4"})]}),a.jsxs("a",{href:"https://example.com",target:"_blank",rel:"noreferrer",className:"tw-flex tw-items-center tw-text-xs tw-font-semibold tw-text-gray-500 tw-underline",children:["Support",a.jsx(Y.CircleHelp,{className:"tw-ml-1 tw-inline tw-h-4 tw-w-4"})]})]})]})}function al({id:e,versionHistory:t}){const[n,r]=g.useState(!1),o=new Date;function s(l){const c=new Date(l),d=new Date(o.getTime()-c.getTime()),u=d.getUTCFullYear()-1970,f=d.getUTCMonth(),w=d.getUTCDate()-1;let b="";return u>0?b=`${u.toString()} year${u===1?"":"s"} ago`:f>0?b=`${f.toString()} month${f===1?"":"s"} ago`:w===0?b="today":b=`${w.toString()} day${w===1?"":"s"} ago`,b}const i=Object.entries(t).sort((l,c)=>c[0].localeCompare(l[0]));return a.jsxs("div",{id:e,children:[a.jsx("h3",{className:"tw-text-md tw-font-semibold",children:"What`s New"}),a.jsx("ul",{className:"tw-list-disc tw-pl-5 tw-pr-4 tw-text-xs tw-text-gray-600",children:(n?i:i.slice(0,5)).map(l=>a.jsxs("div",{className:"tw-mt-3 tw-flex tw-justify-between",children:[a.jsx("div",{className:"tw-text-gray-600",children:a.jsx("li",{className:"tw-prose tw-text-xs",children:a.jsx("span",{children:l[1].description})})}),a.jsxs("div",{className:"tw-justify-end tw-text-right",children:[a.jsxs("div",{children:["Version ",l[0]]}),a.jsx("div",{children:s(l[1].date)})]})]},l[0]))}),i.length>5&&a.jsx("button",{type:"button",onClick:()=>r(!n),className:"tw-text-xs tw-text-gray-500 tw-underline",children:n?"Show Less Version History":"Show All Version History"})]})}function Nm({id:e,publisherDisplayName:t,fileSize:n,locales:r,versionHistory:o}){const s=g.useMemo(()=>ee.formatBytes(n),[n]),l=(c=>{const d=new Intl.DisplayNames(navigator.language,{type:"language"});return c.map(u=>d.of(u))})(r);return a.jsx("div",{id:e,className:"tw-border-t tw-pb-4 tw-pt-4",children:a.jsxs("div",{className:"tw-md:flex-row tw-md:space-x-8 tw-flex tw-flex-col tw-space-x-0",children:[a.jsx(al,{versionHistory:o}),a.jsx("div",{className:"tw-md:border-t-0 tw-md:border-l tw-md-h-auto tw-md-ml-8 tw-mt-4 tw-border-t tw-border-gray-300"}),a.jsxs("div",{className:"tw-md:mt-0 tw-mt-4 tw-flex-1 tw-space-y-3",children:[a.jsx("h2",{className:"tw-text-md tw-font-semibold",children:"Information"}),a.jsxs("div",{className:"tw-flex tw-items-start tw-justify-between tw-pr-4 tw-text-xs tw-text-gray-600",children:[a.jsxs("p",{className:"tw-flex tw-flex-col tw-justify-start",children:[a.jsx("span",{className:"tw-mb-2",children:"Publisher"}),a.jsx("span",{className:"tw-font-semibold",children:t}),a.jsx("span",{className:"tw-mb-2 tw-mt-4",children:"Size"}),a.jsx("span",{className:"tw-font-semibold",children:s})]}),a.jsx("div",{className:"tw-flex tw-w-3/4 tw-items-center tw-justify-between tw-text-xs tw-text-gray-600",children:a.jsxs("p",{className:"tw-flex tw-flex-col tw-justify-start",children:[a.jsx("span",{className:"tw-mb-2",children:"Languages"}),a.jsx("span",{className:"tw-font-semibold",children:l.join(", ")})]})})]})]})]})})}const km=["%resources_action%","%resources_dialog_subtitle%","%resources_dialog_title%","%resources_filterInput%","%resources_fullName%","%resources_get%","%resources_installed%","%resources_language%","%resources_languageFilter%","%resources_loadingResources%","%resources_noResults%","%resources_open%","%resources_remove%","%resources_size%","%resources_type%","%resources_type_DBL%","%resources_type_ER%","%resources_type_SLR%","%resources_type_XR%","%resources_type_unknown%","%resources_update%"],jm=(e,t)=>{const n=Array.from(new Set(e.map(o=>o.bestLanguageName))),r=new Set(t.concat(e.filter(o=>o.installed).map(o=>o.bestLanguageName)));return n.sort((o,s)=>{const i=r.has(o),l=r.has(s);return i&&l?o.localeCompare(s):i?-1:l?1:o.localeCompare(s)})},cs=(e,t,n)=>a.jsx(pe,{variant:"outline",onClick:()=>n(e.dblEntryUid,"install"),children:t}),Sm=(e,t,n,r,o,s)=>t.includes(e.dblEntryUid)?a.jsx(pe,{variant:"outline",children:a.jsx(ft,{className:"tw-h-5 tw-py-[1px]"})}):e.installed?e.updateAvailable?cs(e,r,s):a.jsx(ke,{className:"tw-my-2 tw-flex tw-h-6 tw-items-center",children:o}):cs(e,n,s);function Em({localizedStrings:e,dblResources:t,isLoadingDblResources:n,typeFilter:r,setTypeFilter:o,languageFilter:s,setLanguageFilter:i,openResource:l,installResource:c,uninstallResource:d}){const u=e["%resources_action%"],f=e["%resources_dialog_subtitle%"],w=e["%resources_dialog_title%"],b=e["%resources_filterInput%"],v=e["%resources_fullName%"],m=e["%resources_get%"],h=e["%resources_installed%"],k=e["%resources_language%"],O=e["%resources_languageFilter%"],E=e["%resources_loadingResources%"],j=e["%resources_noResults%"],x=e["%resources_open%"],_=e["%resources_remove%"],U=e["%resources_size%"],R=e["%resources_type%"],P=e["%resources_type_DBL%"],F=e["%resources_type_ER%"],A=e["%resources_type_SLR%"],M=e["%resources_type_XR%"],$=e["%resources_type_unknown%"],W=e["%resources_update%"],[q,V]=g.useState([]),te=(C,L)=>{if(!c||!d)return;const S={dblEntryUid:C,action:L==="install"?"installing":"removing"};V(B=>[...B,S]),(L==="install"?c:d)(C).catch(B=>{console.debug(ee.getErrorMessage(B))})};g.useEffect(()=>{V(C=>C.filter(L=>{const S=t.find(we=>we.dblEntryUid===L.dblEntryUid);return S?!(L.action==="installing"&&S.installed||L.action==="removing"&&!S.installed):!0}))},[t]);const[oe,ae]=g.useState(""),y=g.useMemo(()=>t.filter(C=>{const L=oe.toLowerCase();return C.displayName.toLowerCase().includes(L)||C.fullName.toLowerCase().includes(L)||C.bestLanguageName.toLowerCase().includes(L)}),[t,oe]),T=g.useMemo(()=>[{type:"DBLResource",localizedValue:P},{type:"EnhancedResource",localizedValue:F},{type:"SourceLanguageResource",localizedValue:A},{type:"XmlResource",localizedValue:M}],[P,F,A,M]),X=C=>{const L=[...r];let S=[];!L||L.length===0?S=[C]:S=L.includes(C)?L.filter(we=>we!==C):[...L,C],o(S)},H=g.useMemo(()=>y.filter(C=>r.includes(C.type)),[y,r]);g.useEffect(()=>{s.length===0&&i(t.filter(C=>C.installed===!0).map(C=>C.bestLanguageName))},[t,s.length,i]);const G=C=>{const L=[...s];let S=[];!L||L.length===0?S=[C]:S=L.includes(C)?L.filter(we=>we!==C):[...L,C],i(S)},J=g.useMemo(()=>H.filter(C=>s.includes(C.bestLanguageName)),[s,H]),[z,Z]=g.useState({key:"bestLanguageName",direction:"ascending"}),K=g.useMemo(()=>[...J].sort((C,L)=>{const S=C[z.key],we=L[z.key];return Swe?z.direction==="ascending"?1:-1:0}),[z.direction,z.key,J]),Q=C=>{const L={key:C,direction:"ascending"};z.key===C&&z.direction==="ascending"&&(L.direction="descending"),Z(L)};return a.jsxs(Wo,{className:"tw-rounded-none tw-border-0",children:[a.jsx(Ko,{children:a.jsxs("div",{className:"tw-flex tw-items-center",children:[a.jsx(Y.BookOpen,{size:36,className:"tw-mr-2"}),a.jsxs("div",{children:[a.jsx(Jo,{children:w}),a.jsx(Zo,{className:"tw-mt-1",children:f})]})]})}),a.jsx(Qo,{children:n||!t?a.jsxs("div",{className:"tw-flex tw-flex-col tw-items-center tw-gap-2",children:[a.jsx(ke,{children:E}),a.jsx(ft,{})]}):a.jsxs("div",{children:[a.jsxs("div",{className:"tw-mb-1 tw-flex tw-gap-1",children:[a.jsxs("div",{className:"tw-relative",children:[a.jsx(ut,{type:"text",className:"tw-box-border tw-min-w-72 tw-gap-2.5 tw-rounded-lg tw-border tw-border-solid tw-bg-background tw-py-2 tw-pl-4 tw-pr-3 tw-shadow-none tw-outline-none",onChange:C=>ae(C.target.value),value:oe,placeholder:b}),a.jsx(Y.Search,{className:"tw-absolute tw-right-3 tw-top-1/2 tw-h-4 tw-w-4 tw--translate-y-1/2 tw-transform tw-text-muted-foreground"})]}),a.jsxs(Gt,{children:[a.jsx(Cn,{asChild:!0,children:a.jsxs(pe,{variant:"outline",children:[a.jsx(Y.Loader,{className:"tw-mr-2 tw-w-4"}),R]})}),a.jsx(jt,{align:"start",children:T.map(C=>a.jsx($n,{checked:r.includes(C.type),onClick:L=>{L.preventDefault(),X(C.type)},children:a.jsx("span",{children:C.localizedValue})}))})]}),a.jsx(Rn,{className:"tw-w-auto tw-min-w-10 tw-flex-shrink",buttonPlaceholder:k,textPlaceholder:O,value:s[0],options:jm(t,s),onChange:G})]}),K.length===0?a.jsx("div",{className:"tw-m-4 tw-flex tw-w-full tw-justify-center",children:a.jsx(ke,{children:j})}):a.jsxs(tn,{stickyHeader:!0,children:[a.jsx(nn,{className:"tw-bg-none",stickyHeader:!0,children:a.jsxs(Ye,{children:[a.jsx(Ae,{}),a.jsx(Ae,{}),a.jsx(Ae,{onClick:()=>Q("fullName"),children:a.jsxs("div",{className:"tw-flex tw-items-center",children:[v,z.key!=="fullName"&&a.jsx(Y.ChevronsUpDown,{className:"tw-pl-1",size:16}),z.key==="fullName"&&(z.direction==="ascending"?a.jsx(Y.ChevronUp,{className:"tw-pl-1",size:16}):a.jsx(Y.ChevronDown,{className:"tw-pl-1",size:16}))]})}),a.jsx(Ae,{onClick:()=>Q("bestLanguageName"),children:a.jsxs("div",{className:"tw-flex tw-items-center",children:[k,z.key!=="bestLanguageName"&&a.jsx(Y.ChevronsUpDown,{className:"tw-pl-1",size:16}),z.key==="bestLanguageName"&&(z.direction==="ascending"?a.jsx(Y.ChevronUp,{className:"tw-pl-1",size:16}):a.jsx(Y.ChevronDown,{className:"tw-pl-1",size:16}))]})}),a.jsx(Ae,{children:R}),a.jsx(Ae,{children:U}),a.jsx(Ae,{children:u})]})}),a.jsx(rn,{children:K.map(C=>{var L;return a.jsxs(Ye,{children:[a.jsx(Te,{children:a.jsx(Y.BookOpen,{className:"tw-pr-0",size:18})}),a.jsx(Te,{children:C.displayName}),a.jsx(Te,{className:"tw-font-medium",children:C.fullName}),a.jsx(Te,{children:C.bestLanguageName}),a.jsx(Te,{children:((L=T.find(S=>S.type===C.type))==null?void 0:L.localizedValue)??$}),a.jsx(Te,{children:C.size}),a.jsx(Te,{children:a.jsxs("div",{className:"tw-flex tw-justify-between",children:[Sm(C,q.map(S=>S.dblEntryUid),m,W,h,te),C.installed&&a.jsxs(Gt,{children:[a.jsx(Cn,{asChild:!0,children:a.jsx(pe,{variant:"ghost",children:a.jsx(Y.Ellipsis,{className:"tw-w-4"})})}),a.jsxs(jt,{align:"start",children:[a.jsx(Tn,{onClick:()=>l(C.projectId),children:a.jsx("span",{children:x})}),a.jsx(Qt,{}),a.jsx(Tn,{onClick:()=>te(C.dblEntryUid,"remove"),children:a.jsx("span",{children:_})})]})]})]})})]},C.displayName+C.fullName)})})]})]})})]})}const Cm=(e,t)=>e[t]??t;function Tm({knownUiLanguages:e,primaryLanguage:t="en",fallbackLanguages:n=[],onLanguagesChange:r,onPrimaryLanguageChange:o,onFallbackLanguagesChange:s,localizedStrings:i,className:l}){const c=Cm(i,"%settings_uiLanguageSelector_selectFallbackLanguages%"),[d,u]=g.useState(!1),f=b=>{o&&o(b),r&&r([b,...n.filter(v=>v!==b)]),s&&n.find(v=>v===b)&&s([...n.filter(v=>v!==b)]),u(!1)},w=(b,v)=>{var h,k,O,E,j,x;const m=v!==b?((k=(h=e[b])==null?void 0:h.uiNames)==null?void 0:k[v])??((E=(O=e[b])==null?void 0:O.uiNames)==null?void 0:E.en):void 0;return m?`${(j=e[b])==null?void 0:j.autonym} (${m})`:(x=e[b])==null?void 0:x.autonym};return a.jsxs("div",{className:N("pr-twp tw-max-w-sm",l),children:[a.jsxs(Et,{name:"uiLanguage",value:t,onValueChange:f,open:d,onOpenChange:b=>u(b),children:[a.jsx(ct,{children:a.jsx(Ct,{})}),a.jsx(dt,{className:"tw-z-[250]",children:Object.keys(e).map(b=>a.jsx($e,{value:b,children:w(b,t)},b))})]}),t!=="en"&&a.jsxs(a.Fragment,{children:[a.jsx(ke,{className:"tw-ms-3",children:c}),a.jsx("div",{className:"tw-ms-3",children:a.jsxs(ke,{children:["Currently:"," ",(n==null?void 0:n.length)>0?`${n.map(b=>w(b,t)).join(", ")}`:`default (${e.en.autonym})`]})})]})]})}const Rm=(e,t)=>{g.useEffect(()=>{if(!e)return()=>{};const n=e(t);return()=>{n()}},[e,t])},Ur=()=>!1,Om=(e,t)=>{const[n]=ir(g.useCallback(async()=>{if(!e)return Ur;const r=await Promise.resolve(e(t));return async()=>r()},[t,e]),Ur,{preserveValue:!1});g.useEffect(()=>()=>{n!==Ur&&n()},[n])};Object.defineProperty(exports,"sonner",{enumerable:!0,get:()=>us.toast});exports.Alert=Xi;exports.AlertDescription=Wi;exports.AlertTitle=Yi;exports.BOOK_SELECTOR_STRING_KEYS=hc;exports.Badge=um;exports.BookChapterControl=lc;exports.BookSelectionMode=_s;exports.BookSelector=gc;exports.Button=pe;exports.Card=Wo;exports.CardContent=Qo;exports.CardDescription=Zo;exports.CardFooter=Ji;exports.CardHeader=Ko;exports.CardTitle=Jo;exports.ChapterRangeSelector=Os;exports.Checkbox=cr;exports.Checklist=dd;exports.ComboBox=Rn;exports.DataTable=Ds;exports.DisableButton=hm;exports.DropdownMenu=Gt;exports.DropdownMenuCheckboxItem=$n;exports.DropdownMenuContent=jt;exports.DropdownMenuGroup=ms;exports.DropdownMenuItem=Tn;exports.DropdownMenuItemType=ol;exports.DropdownMenuLabel=Zt;exports.DropdownMenuPortal=Dl;exports.DropdownMenuRadioGroup=Vl;exports.DropdownMenuRadioItem=io;exports.DropdownMenuSeparator=Qt;exports.DropdownMenuShortcut=bs;exports.DropdownMenuSub=Bl;exports.DropdownMenuSubContent=gs;exports.DropdownMenuSubTrigger=hs;exports.DropdownMenuTrigger=Cn;exports.EnableButton=mm;exports.FILTERABLE_RESOURCE_LIST_STRING_KEYS=km;exports.FilterButton=rl;exports.FilterDropdown=vm;exports.FilterableResourceList=Em;exports.Footer=Nm;exports.GridMenu=qi;exports.HamburgerMenuButton=Hi;exports.INVENTORY_STRING_KEYS=Ec;exports.IconButton=im;exports.Input=ut;exports.InstallButton=fm;exports.Inventory=Rc;exports.Label=ke;exports.MarkdownRenderer=bm;exports.MenuItem=Yo;exports.MoreInfo=ym;exports.MultiSelectComboBox=Oc;exports.NavigationContentSearch=_c;exports.NoExtensionsFound=xm;exports.RadioGroup=po;exports.RadioGroupItem=er;exports.ScriptureResultsViewer=ad;exports.ScrollGroupSelector=sd;exports.SearchBar=No;exports.Select=Et;exports.SelectContent=dt;exports.SelectGroup=Ps;exports.SelectItem=$e;exports.SelectLabel=Is;exports.SelectScrollDownButton=xo;exports.SelectScrollUpButton=vo;exports.SelectSeparator=Ms;exports.SelectTrigger=ct;exports.SelectValue=Ct;exports.Separator=ur;exports.SettingsList=id;exports.SettingsListHeader=cd;exports.SettingsListItem=ld;exports.SettingsSidebar=Qs;exports.SettingsSidebarContentSearch=Jc;exports.Slider=Zi;exports.Sonner=pm;exports.Spinner=ft;exports.Switch=Qi;exports.Table=tn;exports.TableBody=rn;exports.TableCaption=As;exports.TableCell=Te;exports.TableFooter=$s;exports.TableHead=Ae;exports.TableHeader=nn;exports.TableRow=Ye;exports.Tabs=wm;exports.TabsContent=nl;exports.TabsList=el;exports.TabsTrigger=tl;exports.TextField=lm;exports.ToggleGroup=yo;exports.ToggleGroupItem=yn;exports.Toolbar=cm;exports.UiLanguageSelector=Tm;exports.UpdateButton=gm;exports.VersionHistory=al;exports.VerticalTabs=ko;exports.VerticalTabsContent=So;exports.VerticalTabsList=jo;exports.VerticalTabsTrigger=Gs;exports.badgeVariants=Ki;exports.buttonVariants=Ss;exports.cn=N;exports.getBookNumFromId=Vs;exports.getLinesFromUSFM=Bs;exports.getNumberFromUSFM=Yr;exports.getStatusForItem=zs;exports.inventoryCountColumn=jc;exports.inventoryItemColumn=Nc;exports.inventoryStatusColumn=Sc;exports.useEvent=Rm;exports.useEventAsync=Om;exports.usePromise=ir;function _m(e,t="top"){if(!e||typeof document>"u")return;const n=document.head||document.querySelector("head"),r=n.querySelector(":first-child"),o=document.createElement("style");o.appendChild(document.createTextNode(e)),t==="top"&&r?n.insertBefore(o,r):n.appendChild(o)}_m(`*, ::before, ::after { +} });`:Gt(12,h?` (${h})`:"",JSON.stringify(m.main)));return Ua(m,"light",S,r),Ua(m,"dark",E,r),m.contrastText||(m.contrastText=f(m.main)),m},b={dark:Gr,light:Ga};return process.env.NODE_ENV!=="production"&&(b[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),it(P({common:P({},Rn),mode:t,primary:w({color:s,name:"primary"}),secondary:w({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:l,name:"error"}),warning:w({color:u,name:"warning"}),info:w({color:c,name:"info"}),success:w({color:d,name:"success"}),grey:vp,contrastThreshold:n,getContrastText:f,augmentColor:w,tonalOffset:r},b[t]),o)}const Mp=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function $p(e){return Math.round(e*1e5)/1e5}const qa={textTransform:"uppercase"},Ha='"Roboto", "Helvetica", "Arial", sans-serif';function Ap(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Ha,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:u,pxToRem:f}=n,w=Ce(n,Mp);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=o/14,x=f||(k=>`${k/d*b}rem`),m=(k,S,E,j,v)=>P({fontFamily:r,fontWeight:k,fontSize:x(S),lineHeight:E},r===Ha?{letterSpacing:`${$p(j/S)}em`}:{},v,u),h={h1:m(s,96,1.167,-1.5),h2:m(s,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,qa),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,qa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return it(P({htmlFontSize:d,pxToRem:x,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},h),w,{clone:!1})}const Dp=.2,Bp=.14,Vp=.12;function he(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Dp})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bp})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vp})`].join(",")}const zp=["none",he(0,2,1,-1,0,1,1,0,0,1,3,0),he(0,3,1,-2,0,2,2,0,0,1,5,0),he(0,3,3,-2,0,3,4,0,0,1,8,0),he(0,2,4,-1,0,4,5,0,0,1,10,0),he(0,3,5,-1,0,5,8,0,0,1,14,0),he(0,3,5,-1,0,6,10,0,0,1,18,0),he(0,4,5,-2,0,7,10,1,0,2,16,1),he(0,5,5,-3,0,8,10,1,0,3,14,2),he(0,5,6,-3,0,9,12,1,0,3,16,2),he(0,6,6,-3,0,10,14,1,0,4,18,3),he(0,6,7,-4,0,11,15,1,0,4,20,3),he(0,7,8,-4,0,12,17,2,0,5,22,4),he(0,7,8,-4,0,13,19,2,0,5,24,4),he(0,7,9,-4,0,14,21,2,0,5,26,4),he(0,8,9,-5,0,15,22,2,0,6,28,5),he(0,8,10,-5,0,16,24,2,0,6,30,5),he(0,8,11,-5,0,17,26,2,0,6,32,5),he(0,9,11,-5,0,18,28,2,0,7,34,6),he(0,9,12,-6,0,19,29,2,0,7,36,6),he(0,10,13,-6,0,20,31,3,0,8,38,7),he(0,10,13,-6,0,21,33,3,0,8,40,7),he(0,10,14,-6,0,22,35,3,0,8,42,7),he(0,11,14,-7,0,23,36,3,0,9,44,8),he(0,11,15,-7,0,24,38,3,0,9,46,8)],Lp=zp,Fp=["duration","easing","delay"],Gp={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Up={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xa(e){return`${Math.round(e)}ms`}function qp(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Hp(e){const t=P({},Gp,e.easing),n=P({},Up,e.duration);return P({getAutoHeightDuration:qp,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0}=s,d=Ce(s,Fp);if(process.env.NODE_ENV!=="production"){const u=w=>typeof w=="string",f=w=>!isNaN(parseFloat(w));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!u(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` +`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:Xa(i)} ${l} ${typeof c=="string"?c:Xa(c)}`).join(",")}},e,{easing:t,duration:n})}const Xp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Yp=Xp,Wp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Kp(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=Ce(e,Wp);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Gt(18));const l=Ip(r),c=$o(e);let d=it(c,{mixins:hp(c.breakpoints,n),palette:l,shadows:Lp.slice(),typography:Ap(l,s),transitions:Hp(o),zIndex:P({},Yp)});if(d=it(d,i),d=t.reduce((u,f)=>it(u,f),d),process.env.NODE_ENV!=="production"){const u=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(w,b)=>{let x;for(x in w){const m=w[x];if(u.indexOf(x)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){const h=mr("",x);console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${x}\` internal state.`,"You can not override it like this: ",JSON.stringify(w,null,2),"",`Instead, you need to use the '&.${h}' syntax:`,JSON.stringify({root:{[`&.${h}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(` +`))}w[x]={}}}};Object.keys(d.components).forEach(w=>{const b=d.components[w].styleOverrides;b&&w.indexOf("Mui")===0&&f(b,w)})}return d.unstable_sxConfig=P({},Io,i==null?void 0:i.unstable_sxConfig),d.unstable_sx=function(f){return Mo({sx:f,theme:this})},d}const Jp=Kp(),Do=Jp,Bo="$$material";function Vo({props:e,name:t}){return up({props:e,name:t,defaultTheme:Do,themeId:Bo})}const Zp=e=>Yn(e)&&e!=="classes",Qp=cp({themeId:Bo,defaultTheme:Do,rootShouldForwardProp:Zp}),Dn=Qp;function ew(e){return mr("MuiSvgIcon",e)}vi("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tw=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nw=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${tt(t)}`,`fontSize${tt(n)}`]};return Oo(o,ew,r)},rw=Dn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${tt(n.color)}`],t[`fontSize${tt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,s,i,l,c,d,u,f,w,b,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((s=e.typography)==null||(i=s.pxToRem)==null?void 0:i.call(s,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((d=e.typography)==null||(u=d.pxToRem)==null?void 0:u.call(d,35))||"2.1875rem"}[t.fontSize],color:(f=(w=(e.vars||e).palette)==null||(w=w[t.color])==null?void 0:w.main)!=null?f:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(x=(e.vars||e).palette)==null||(x=x.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),zo=A.forwardRef(function(t,n){const r=Vo({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:i="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:w="0 0 24 24"}=r,b=Ce(r,tw),x=A.isValidElement(o)&&o.type==="svg",m=P({},r,{color:i,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:w,hasSvgAsChild:x}),h={};u||(h.viewBox=w);const k=nw(m);return a.jsxs(rw,P({as:l,className:pt(k.root,s),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},h,b,x&&o.props,{ownerState:m,children:[x?o.props.children:o,f?a.jsx("title",{children:f}):null]}))});process.env.NODE_ENV!=="production"&&(zo.propTypes={children:p.node,classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),p.string]),component:p.elementType,fontSize:p.oneOfType([p.oneOf(["inherit","large","medium","small"]),p.string]),htmlColor:p.string,inheritViewBox:p.bool,shapeRendering:p.string,sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),titleAccess:p.string,viewBox:p.string});zo.muiName="SvgIcon";const Ya=zo;function Ei(e,t){function n(r,o){return a.jsx(Ya,P({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Ya.muiName,A.memo(A.forwardRef(n))}const ow={configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(` +`)),gi.configure(e)}},aw=Object.freeze(Object.defineProperty({__proto__:null,capitalize:tt,createChainedFunction:Md,createSvgIcon:Ei,debounce:$d,deprecatedPropType:Ad,isMuiElement:Dd,ownerDocument:Qn,ownerWindow:Bd,requirePropFactory:Vd,setRef:er,unstable_ClassNameGenerator:ow,unstable_useEnhancedEffect:Ut,unstable_useId:wi,unsupportedProp:Fd,useControlled:fi,useEventCallback:to,useForkRef:Rt,useIsFocusVisible:mi},Symbol.toStringTag,{value:"Module"})),sw=fd(aw);var Wa;function iw(){return Wa||(Wa=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=sw}($r)),$r}var lw=md;Object.defineProperty(Co,"__esModule",{value:!0});var Ci=Co.default=void 0,cw=lw(iw()),dw=a;Ci=Co.default=(0,cw.default)((0,dw.jsx)("path",{d:"m10 17 5-5-5-5z"}),"ArrowRight");function uw(e){return typeof e=="string"}function bn(e,t,n){return e===void 0||uw(e)?t:P({},t,{ownerState:P({},t.ownerState,n)})}const pw={disableDefaultClasses:!1},ww=A.createContext(pw);function fw(e){const{disableDefaultClasses:t}=A.useContext(ww);return n=>t?"":e(n)}function mw(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function hw(e,t,n){return typeof e=="function"?e(t,n):e}function Ka(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function gw(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const b=pt(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),x=P({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),m=P({},n,o,r);return b.length>0&&(m.className=b),Object.keys(x).length>0&&(m.style=x),{props:m,internalRef:void 0}}const i=mw(P({},o,r)),l=Ka(r),c=Ka(o),d=t(i),u=pt(d==null?void 0:d.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),f=P({},d==null?void 0:d.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),w=P({},d,n,c,l);return u.length>0&&(w.className=u),Object.keys(f).length>0&&(w.style=f),{props:w,internalRef:d.ref}}const bw=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vw(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=Ce(e,bw),l=s?{}:hw(r,o),{props:c,internalRef:d}=gw(P({},i,{externalSlotProps:l})),u=Rt(d,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return bn(n,P({},c,{ref:u}),o)}const Ti="base";function xw(e){return`${Ti}--${e}`}function yw(e,t){return`${Ti}-${e}-${t}`}function Ri(e,t){const n=bi[t];return n?xw(n):yw(e,t)}function Nw(e,t){const n={};return t.forEach(r=>{n[r]=Ri(e,r)}),n}function kw(e){return typeof e=="function"?e():e}const nr=A.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[i,l]=A.useState(null),c=Rt(A.isValidElement(r)?r.ref:null,n);if(Ut(()=>{s||l(kw(o)||document.body)},[o,s]),Ut(()=>{if(i&&!s)return er(n,i),()=>{er(n,null)}},[n,i,s]),s){if(A.isValidElement(r)){const d={ref:c};return A.cloneElement(r,d)}return a.jsx(A.Fragment,{children:r})}return a.jsx(A.Fragment,{children:i&&Al.createPortal(r,i)})});process.env.NODE_ENV!=="production"&&(nr.propTypes={children:p.node,container:p.oneOfType([Tn,p.func]),disablePortal:p.bool});process.env.NODE_ENV!=="production"&&(nr["propTypes"]=Cd(nr.propTypes));var Me="top",Xe="bottom",Ye="right",$e="left",Lo="auto",Bn=[Me,Xe,Ye,$e],qt="start",On="end",jw="clippingParents",Oi="viewport",wn="popper",Sw="reference",Ja=Bn.reduce(function(e,t){return e.concat([t+"-"+qt,t+"-"+On])},[]),_i=[].concat(Bn,[Lo]).reduce(function(e,t){return e.concat([t,t+"-"+qt,t+"-"+On])},[]),Ew="beforeRead",Cw="read",Tw="afterRead",Rw="beforeMain",Ow="main",_w="afterMain",Pw="beforeWrite",Iw="write",Mw="afterWrite",$w=[Ew,Cw,Tw,Rw,Ow,_w,Pw,Iw,Mw];function nt(e){return e?(e.nodeName||"").toLowerCase():null}function Ge(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _t(e){var t=Ge(e).Element;return e instanceof t||e instanceof Element}function He(e){var t=Ge(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fo(e){if(typeof ShadowRoot>"u")return!1;var t=Ge(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Aw(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!He(s)||!nt(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?s.removeAttribute(i):s.setAttribute(i,l===!0?"":l)}))})}function Dw(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(c,d){return c[d]="",c},{});!He(o)||!nt(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const Bw={name:"applyStyles",enabled:!0,phase:"write",fn:Aw,effect:Dw,requires:["computeStyles"]};function Qe(e){return e.split("-")[0]}var St=Math.max,rr=Math.min,Ht=Math.round;function ro(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Pi(){return!/^((?!chrome|android).)*safari/i.test(ro())}function Xt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&He(e)&&(o=e.offsetWidth>0&&Ht(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Ht(r.height)/e.offsetHeight||1);var i=_t(e)?Ge(e):window,l=i.visualViewport,c=!Pi()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/s,f=r.width/o,w=r.height/s;return{width:f,height:w,top:u,right:d+f,bottom:u+w,left:d,x:d,y:u}}function Go(e){var t=Xt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ii(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fo(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ct(e){return Ge(e).getComputedStyle(e)}function Vw(e){return["table","td","th"].indexOf(nt(e))>=0}function gt(e){return((_t(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sr(e){return nt(e)==="html"?e:e.assignedSlot||e.parentNode||(Fo(e)?e.host:null)||gt(e)}function Za(e){return!He(e)||ct(e).position==="fixed"?null:e.offsetParent}function zw(e){var t=/firefox/i.test(ro()),n=/Trident/i.test(ro());if(n&&He(e)){var r=ct(e);if(r.position==="fixed")return null}var o=Sr(e);for(Fo(o)&&(o=o.host);He(o)&&["html","body"].indexOf(nt(o))<0;){var s=ct(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Vn(e){for(var t=Ge(e),n=Za(e);n&&Vw(n)&&ct(n).position==="static";)n=Za(n);return n&&(nt(n)==="html"||nt(n)==="body"&&ct(n).position==="static")?t:n||zw(e)||t}function Uo(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kn(e,t,n){return St(e,rr(t,n))}function Lw(e,t,n){var r=kn(e,t,n);return r>n?n:r}function Mi(){return{top:0,right:0,bottom:0,left:0}}function $i(e){return Object.assign({},Mi(),e)}function Ai(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Fw=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,$i(typeof t!="number"?t:Ai(t,Bn))};function Gw(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,l=Qe(n.placement),c=Uo(l),d=[$e,Ye].indexOf(l)>=0,u=d?"height":"width";if(!(!s||!i)){var f=Fw(o.padding,n),w=Go(s),b=c==="y"?Me:$e,x=c==="y"?Xe:Ye,m=n.rects.reference[u]+n.rects.reference[c]-i[c]-n.rects.popper[u],h=i[c]-n.rects.reference[c],k=Vn(s),S=k?c==="y"?k.clientHeight||0:k.clientWidth||0:0,E=m/2-h/2,j=f[b],v=S-w[u]-f[x],O=S/2-w[u]/2+E,z=kn(j,O,v),R=c;n.modifiersData[r]=(t={},t[R]=z,t.centerOffset=z-O,t)}}function Uw(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Ii(t.elements.popper,o)&&(t.elements.arrow=o))}const qw={name:"arrow",enabled:!0,phase:"main",fn:Gw,effect:Uw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Yt(e){return e.split("-")[1]}var Hw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xw(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ht(n*o)/o||0,y:Ht(r*o)/o||0}}function Qa(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,f=e.isFixed,w=i.x,b=w===void 0?0:w,x=i.y,m=x===void 0?0:x,h=typeof u=="function"?u({x:b,y:m}):{x:b,y:m};b=h.x,m=h.y;var k=i.hasOwnProperty("x"),S=i.hasOwnProperty("y"),E=$e,j=Me,v=window;if(d){var O=Vn(n),z="clientHeight",R="clientWidth";if(O===Ge(n)&&(O=gt(n),ct(O).position!=="static"&&l==="absolute"&&(z="scrollHeight",R="scrollWidth")),O=O,o===Me||(o===$e||o===Ye)&&s===On){j=Xe;var _=f&&O===v&&v.visualViewport?v.visualViewport.height:O[z];m-=_-r.height,m*=c?1:-1}if(o===$e||(o===Me||o===Xe)&&s===On){E=Ye;var L=f&&O===v&&v.visualViewport?v.visualViewport.width:O[R];b-=L-r.width,b*=c?1:-1}}var $=Object.assign({position:l},d&&Hw),I=u===!0?Xw({x:b,y:m},Ge(n)):{x:b,y:m};if(b=I.x,m=I.y,c){var M;return Object.assign({},$,(M={},M[j]=S?"0":"",M[E]=k?"0":"",M.transform=(v.devicePixelRatio||1)<=1?"translate("+b+"px, "+m+"px)":"translate3d("+b+"px, "+m+"px, 0)",M))}return Object.assign({},$,(t={},t[j]=S?m+"px":"",t[E]=k?b+"px":"",t.transform="",t))}function Yw(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:Qe(t.placement),variation:Yt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Qa(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Qa(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ww={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Yw,data:{}};var qn={passive:!0};function Kw(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,c=Ge(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(u){u.addEventListener("scroll",n.update,qn)}),l&&c.addEventListener("resize",n.update,qn),function(){s&&d.forEach(function(u){u.removeEventListener("scroll",n.update,qn)}),l&&c.removeEventListener("resize",n.update,qn)}}const Jw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kw,data:{}};var Zw={left:"right",right:"left",bottom:"top",top:"bottom"};function Kn(e){return e.replace(/left|right|bottom|top/g,function(t){return Zw[t]})}var Qw={start:"end",end:"start"};function es(e){return e.replace(/start|end/g,function(t){return Qw[t]})}function qo(e){var t=Ge(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ho(e){return Xt(gt(e)).left+qo(e).scrollLeft}function ef(e,t){var n=Ge(e),r=gt(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,l=0,c=0;if(o){s=o.width,i=o.height;var d=Pi();(d||!d&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:l+Ho(e),y:c}}function tf(e){var t,n=gt(e),r=qo(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=St(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=St(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Ho(e),c=-r.scrollTop;return ct(o||n).direction==="rtl"&&(l+=St(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:l,y:c}}function Xo(e){var t=ct(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Di(e){return["html","body","#document"].indexOf(nt(e))>=0?e.ownerDocument.body:He(e)&&Xo(e)?e:Di(Sr(e))}function jn(e,t){var n;t===void 0&&(t=[]);var r=Di(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Ge(r),i=o?[s].concat(s.visualViewport||[],Xo(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(jn(Sr(i)))}function oo(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nf(e,t){var n=Xt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function ts(e,t,n){return t===Oi?oo(ef(e,n)):_t(t)?nf(t,n):oo(tf(gt(e)))}function rf(e){var t=jn(Sr(e)),n=["absolute","fixed"].indexOf(ct(e).position)>=0,r=n&&He(e)?Vn(e):e;return _t(r)?t.filter(function(o){return _t(o)&&Ii(o,r)&&nt(o)!=="body"}):[]}function of(e,t,n,r){var o=t==="clippingParents"?rf(e):[].concat(t),s=[].concat(o,[n]),i=s[0],l=s.reduce(function(c,d){var u=ts(e,d,r);return c.top=St(u.top,c.top),c.right=rr(u.right,c.right),c.bottom=rr(u.bottom,c.bottom),c.left=St(u.left,c.left),c},ts(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Bi(e){var t=e.reference,n=e.element,r=e.placement,o=r?Qe(r):null,s=r?Yt(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Me:c={x:i,y:t.y-n.height};break;case Xe:c={x:i,y:t.y+t.height};break;case Ye:c={x:t.x+t.width,y:l};break;case $e:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=o?Uo(o):null;if(d!=null){var u=d==="y"?"height":"width";switch(s){case qt:c[d]=c[d]-(t[u]/2-n[u]/2);break;case On:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function _n(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?jw:l,d=n.rootBoundary,u=d===void 0?Oi:d,f=n.elementContext,w=f===void 0?wn:f,b=n.altBoundary,x=b===void 0?!1:b,m=n.padding,h=m===void 0?0:m,k=$i(typeof h!="number"?h:Ai(h,Bn)),S=w===wn?Sw:wn,E=e.rects.popper,j=e.elements[x?S:w],v=of(_t(j)?j:j.contextElement||gt(e.elements.popper),c,u,i),O=Xt(e.elements.reference),z=Bi({reference:O,element:E,strategy:"absolute",placement:o}),R=oo(Object.assign({},E,z)),_=w===wn?R:O,L={top:v.top-_.top+k.top,bottom:_.bottom-v.bottom+k.bottom,left:v.left-_.left+k.left,right:_.right-v.right+k.right},$=e.modifiersData.offset;if(w===wn&&$){var I=$[o];Object.keys(L).forEach(function(M){var X=[Ye,Xe].indexOf(M)>=0?1:-1,F=[Me,Xe].indexOf(M)>=0?"y":"x";L[M]+=I[F]*X})}return L}function af(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?_i:c,u=Yt(r),f=u?l?Ja:Ja.filter(function(x){return Yt(x)===u}):Bn,w=f.filter(function(x){return d.indexOf(x)>=0});w.length===0&&(w=f);var b=w.reduce(function(x,m){return x[m]=_n(e,{placement:m,boundary:o,rootBoundary:s,padding:i})[Qe(m)],x},{});return Object.keys(b).sort(function(x,m){return b[x]-b[m]})}function sf(e){if(Qe(e)===Lo)return[];var t=Kn(e);return[es(e),t,es(t)]}function lf(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,c=n.fallbackPlacements,d=n.padding,u=n.boundary,f=n.rootBoundary,w=n.altBoundary,b=n.flipVariations,x=b===void 0?!0:b,m=n.allowedAutoPlacements,h=t.options.placement,k=Qe(h),S=k===h,E=c||(S||!x?[Kn(h)]:sf(h)),j=[h].concat(E).reduce(function(V,W){return V.concat(Qe(W)===Lo?af(t,{placement:W,boundary:u,rootBoundary:f,padding:d,flipVariations:x,allowedAutoPlacements:m}):W)},[]),v=t.rects.reference,O=t.rects.popper,z=new Map,R=!0,_=j[0],L=0;L=0,F=X?"width":"height",B=_n(t,{placement:$,boundary:u,rootBoundary:f,altBoundary:w,padding:d}),te=X?M?Ye:$e:M?Xe:Me;v[F]>O[F]&&(te=Kn(te));var ae=Kn(te),se=[];if(s&&se.push(B[I]<=0),l&&se.push(B[te]<=0,B[ae]<=0),se.every(function(V){return V})){_=$,R=!1;break}z.set($,se)}if(R)for(var y=x?3:1,C=function(W){var Y=j.find(function(K){var q=z.get(K);if(q)return q.slice(0,W).every(function(Z){return Z})});if(Y)return _=Y,"break"},G=y;G>0;G--){var U=C(G);if(U==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const cf={name:"flip",enabled:!0,phase:"main",fn:lf,requiresIfExists:["offset"],data:{_skip:!1}};function ns(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function rs(e){return[Me,Ye,Xe,$e].some(function(t){return e[t]>=0})}function df(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=_n(t,{elementContext:"reference"}),l=_n(t,{altBoundary:!0}),c=ns(i,r),d=ns(l,o,s),u=rs(c),f=rs(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const uf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:df};function pf(e,t,n){var r=Qe(e),o=[$e,Me].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],l=s[1];return i=i||0,l=(l||0)*o,[$e,Ye].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function wf(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=_i.reduce(function(u,f){return u[f]=pf(f,t.rects,s),u},{}),l=i[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=i}const ff={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wf};function mf(e){var t=e.state,n=e.name;t.modifiersData[n]=Bi({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const hf={name:"popperOffsets",enabled:!0,phase:"read",fn:mf,data:{}};function gf(e){return e==="x"?"y":"x"}function bf(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,f=n.padding,w=n.tether,b=w===void 0?!0:w,x=n.tetherOffset,m=x===void 0?0:x,h=_n(t,{boundary:c,rootBoundary:d,padding:f,altBoundary:u}),k=Qe(t.placement),S=Yt(t.placement),E=!S,j=Uo(k),v=gf(j),O=t.modifiersData.popperOffsets,z=t.rects.reference,R=t.rects.popper,_=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,L=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(O){if(s){var M,X=j==="y"?Me:$e,F=j==="y"?Xe:Ye,B=j==="y"?"height":"width",te=O[j],ae=te+h[X],se=te-h[F],y=b?-R[B]/2:0,C=S===qt?z[B]:R[B],G=S===qt?-R[B]:-z[B],U=t.elements.arrow,V=b&&U?Go(U):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mi(),Y=W[X],K=W[F],q=kn(0,z[B],V[B]),Z=E?z[B]/2-y-q-Y-L.mainAxis:C-q-Y-L.mainAxis,ee=E?-z[B]/2+y+q+K+L.mainAxis:G+q+K+L.mainAxis,le=t.elements.arrow&&Vn(t.elements.arrow),T=le?j==="y"?le.clientTop||0:le.clientLeft||0:0,ke=(M=$==null?void 0:$[j])!=null?M:0,D=te+Z-ke-T,xe=te+ee-ke,Ee=kn(b?rr(ae,D):ae,te,b?St(se,xe):se);O[j]=Ee,I[j]=Ee-te}if(l){var rt,Te=j==="x"?Me:$e,J=j==="x"?Xe:Ye,re=O[v],ye=v==="y"?"height":"width",Oe=re+h[Te],Je=re-h[J],It=[Me,$e].indexOf(k)!==-1,Mt=(rt=$==null?void 0:$[v])!=null?rt:0,vt=It?Oe:re-z[ye]-R[ye]-Mt+L.altAxis,on=It?re+z[ye]+R[ye]-Mt-L.altAxis:Je,zn=b&&It?Lw(vt,re,on):kn(b?vt:Oe,re,b?on:Je);O[v]=zn,I[v]=zn-re}t.modifiersData[r]=I}}const vf={name:"preventOverflow",enabled:!0,phase:"main",fn:bf,requiresIfExists:["offset"]};function xf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function yf(e){return e===Ge(e)||!He(e)?qo(e):xf(e)}function Nf(e){var t=e.getBoundingClientRect(),n=Ht(t.width)/e.offsetWidth||1,r=Ht(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kf(e,t,n){n===void 0&&(n=!1);var r=He(t),o=He(t)&&Nf(t),s=gt(t),i=Xt(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((nt(t)!=="body"||Xo(s))&&(l=yf(t)),He(t)?(c=Xt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Ho(s))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function jf(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Sf(e){var t=jf(e);return $w.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Ef(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Cf(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var os={placement:"bottom",modifiers:[],strategy:"absolute"};function as(){for(var e=arguments.length,t=new Array(e),n=0;nOo({root:["root"]},fw(_f)),Df={},Bf=A.forwardRef(function(t,n){var r;const{anchorEl:o,children:s,direction:i,disablePortal:l,modifiers:c,open:d,placement:u,popperOptions:f,popperRef:w,slotProps:b={},slots:x={},TransitionProps:m}=t,h=Ce(t,Pf),k=A.useRef(null),S=Rt(k,n),E=A.useRef(null),j=Rt(E,w),v=A.useRef(j);Ut(()=>{v.current=j},[j]),A.useImperativeHandle(w,()=>E.current,[]);const O=Mf(u,i),[z,R]=A.useState(O),[_,L]=A.useState(or(o));A.useEffect(()=>{E.current&&E.current.forceUpdate()}),A.useEffect(()=>{o&&L(or(o))},[o]),Ut(()=>{if(!_||!d)return;const F=ae=>{R(ae.placement)};if(process.env.NODE_ENV!=="production"&&_&&Er(_)&&_.nodeType===1){const ae=_.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ae.top===0&&ae.left===0&&ae.right===0&&ae.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +`))}let B=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ae})=>{F(ae)}}];c!=null&&(B=B.concat(c)),f&&f.modifiers!=null&&(B=B.concat(f.modifiers));const te=Of(_,k.current,P({placement:O},f,{modifiers:B}));return v.current(te),()=>{te.destroy(),v.current(null)}},[_,l,c,d,f,O]);const $={placement:z};m!==null&&($.TransitionProps=m);const I=Af(),M=(r=x.root)!=null?r:"div",X=vw({elementType:M,externalSlotProps:b.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:I.root});return a.jsx(M,P({},X,{children:typeof s=="function"?s($):s}))}),zi=A.forwardRef(function(t,n){const{anchorEl:r,children:o,container:s,direction:i="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:u,placement:f="bottom",popperOptions:w=Df,popperRef:b,style:x,transition:m=!1,slotProps:h={},slots:k={}}=t,S=Ce(t,If),[E,j]=A.useState(!0),v=()=>{j(!1)},O=()=>{j(!0)};if(!c&&!u&&(!m||E))return null;let z;if(s)z=s;else if(r){const L=or(r);z=L&&Er(L)?Qn(L).body:Qn(null).body}const R=!u&&c&&(!m||E)?"none":void 0,_=m?{in:u,onEnter:v,onExited:O}:void 0;return a.jsx(nr,{disablePortal:l,container:z,children:a.jsx(Bf,P({anchorEl:r,direction:i,disablePortal:l,modifiers:d,ref:n,open:m?!E:u,placement:f,popperOptions:w,popperRef:b,slotProps:h,slots:k},S,{style:P({position:"fixed",top:0,left:0,display:R},x),TransitionProps:_,children:o}))})});process.env.NODE_ENV!=="production"&&(zi.propTypes={anchorEl:To(p.oneOfType([Tn,p.object,p.func]),e=>{if(e.open){const t=or(e.anchorEl);if(t&&Er(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(` +`))}else if(!t||typeof t.getBoundingClientRect!="function"||$f(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(` +`))}return null}),children:p.oneOfType([p.node,p.func]),container:p.oneOfType([Tn,p.func]),direction:p.oneOf(["ltr","rtl"]),disablePortal:p.bool,keepMounted:p.bool,modifiers:p.arrayOf(p.shape({data:p.object,effect:p.func,enabled:p.bool,fn:p.func,name:p.any,options:p.object,phase:p.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:p.arrayOf(p.string),requiresIfExists:p.arrayOf(p.string)})),open:p.bool.isRequired,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:p.shape({modifiers:p.array,onFirstUpdate:p.func,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:p.oneOf(["absolute","fixed"])}),popperRef:pi,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),transition:p.bool});function Li(){const e=ji(Do);return process.env.NODE_ENV!=="production"&&A.useDebugValue(e),e[Bo]||e}function ao(e,t){return ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ao(e,t)}function Vf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ao(e,t)}const ss={disabled:!1};var zf=process.env.NODE_ENV!=="production"?p.oneOfType([p.number,p.shape({enter:p.number,exit:p.number,appear:p.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&p.oneOfType([p.string,p.shape({enter:p.string,exit:p.string,active:p.string}),p.shape({enter:p.string,enterDone:p.string,enterActive:p.string,exit:p.string,exitDone:p.string,exitActive:p.string})]);const Fi=g.createContext(null);var Lf=function(t){return t.scrollTop},vn="unmounted",Nt="exited",kt="entering",Lt="entered",so="exiting",dt=function(e){Vf(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=Nt,s.appearStatus=kt):c=Lt:r.unmountOnExit||r.mountOnEnter?c=vn:c=Nt,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var i=o.in;return i&&s.status===vn?{status:Nt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==kt&&i!==Lt&&(s=kt):(i===kt||i===Lt)&&(s=so)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,i,l;return s=i=l=o,o!=null&&typeof o!="number"&&(s=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:s,enter:i,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===kt){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this);i&&Lf(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nt&&this.setState({status:vn})},n.performEnter=function(o){var s=this,i=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[mn.findDOMNode(this),l],d=c[0],u=c[1],f=this.getTimeouts(),w=l?f.appear:f.enter;if(!o&&!i||ss.disabled){this.safeSetState({status:Lt},function(){s.props.onEntered(d)});return}this.props.onEnter(d,u),this.safeSetState({status:kt},function(){s.props.onEntering(d,u),s.onTransitionEnd(w,function(){s.safeSetState({status:Lt},function(){s.props.onEntered(d,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:mn.findDOMNode(this);if(!s||ss.disabled){this.safeSetState({status:Nt},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:so},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Nt},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:mn.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],d=c[0],u=c[1];this.props.addEndListener(d,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===vn)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=Ce(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return g.createElement(Fi.Provider,{value:null},typeof i=="function"?i(o,l):g.cloneElement(g.Children.only(i),l))},t}(g.Component);dt.contextType=Fi;dt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:p.shape({current:typeof Element>"u"?p.any:function(e,t,n,r,o,s){var i=e[t];return p.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:p.oneOfType([p.func.isRequired,p.element.isRequired]).isRequired,in:p.bool,mountOnEnter:p.bool,unmountOnExit:p.bool,appear:p.bool,enter:p.bool,exit:p.bool,timeout:function(t){var n=zf;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;se.scrollTop;function is(e,t){var n,r;const{timeout:o,easing:s,style:i={}}=e;return{duration:(n=i.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=i.transitionTimingFunction)!=null?r:typeof s=="object"?s[t.mode]:s,delay:i.transitionDelay}}const Uf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function io(e){return`scale(${e}, ${e**2})`}const qf={entering:{opacity:1,transform:io(1)},entered:{opacity:1,transform:"none"}},Ur=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yo=A.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:i,in:l,onEnter:c,onEntered:d,onEntering:u,onExit:f,onExited:w,onExiting:b,style:x,timeout:m="auto",TransitionComponent:h=Ff}=t,k=Ce(t,Uf),S=gn(),E=A.useRef(),j=Li(),v=A.useRef(null),O=Rt(v,s.ref,n),z=F=>B=>{if(F){const te=v.current;B===void 0?F(te):F(te,B)}},R=z(u),_=z((F,B)=>{Gf(F);const{duration:te,delay:ae,easing:se}=is({style:x,timeout:m,easing:i},{mode:"enter"});let y;m==="auto"?(y=j.transitions.getAutoHeightDuration(F.clientHeight),E.current=y):y=te,F.style.transition=[j.transitions.create("opacity",{duration:y,delay:ae}),j.transitions.create("transform",{duration:Ur?y:y*.666,delay:ae,easing:se})].join(","),c&&c(F,B)}),L=z(d),$=z(b),I=z(F=>{const{duration:B,delay:te,easing:ae}=is({style:x,timeout:m,easing:i},{mode:"exit"});let se;m==="auto"?(se=j.transitions.getAutoHeightDuration(F.clientHeight),E.current=se):se=B,F.style.transition=[j.transitions.create("opacity",{duration:se,delay:te}),j.transitions.create("transform",{duration:Ur?se:se*.666,delay:Ur?te:te||se*.333,easing:ae})].join(","),F.style.opacity=0,F.style.transform=io(.75),f&&f(F)}),M=z(w),X=F=>{m==="auto"&&S.start(E.current||0,F),r&&r(v.current,F)};return a.jsx(h,P({appear:o,in:l,nodeRef:v,onEnter:_,onEntered:L,onEntering:R,onExit:I,onExited:M,onExiting:$,addEndListener:X,timeout:m==="auto"?null:m},k,{children:(F,B)=>A.cloneElement(s,P({style:P({opacity:0,transform:io(.75),visibility:F==="exited"&&!l?"hidden":void 0},qf[F],x,s.props.style),ref:O},B))}))});process.env.NODE_ENV!=="production"&&(Yo.propTypes={addEndListener:p.func,appear:p.bool,children:di.isRequired,easing:p.oneOfType([p.shape({enter:p.string,exit:p.string}),p.string]),in:p.bool,onEnter:p.func,onEntered:p.func,onEntering:p.func,onExit:p.func,onExited:p.func,onExiting:p.func,style:p.object,timeout:p.oneOfType([p.oneOf(["auto"]),p.number,p.shape({appear:p.number,enter:p.number,exit:p.number})])});Yo.muiSupportAuto=!0;const ls=Yo,Hf=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Xf=Dn(zi,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gi=A.forwardRef(function(t,n){var r;const o=ki(),s=Vo({props:t,name:"MuiPopper"}),{anchorEl:i,component:l,components:c,componentsProps:d,container:u,disablePortal:f,keepMounted:w,modifiers:b,open:x,placement:m,popperOptions:h,popperRef:k,transition:S,slots:E,slotProps:j}=s,v=Ce(s,Hf),O=(r=E==null?void 0:E.root)!=null?r:c==null?void 0:c.Root,z=P({anchorEl:i,container:u,disablePortal:f,keepMounted:w,modifiers:b,open:x,placement:m,popperOptions:h,popperRef:k,transition:S},v);return a.jsx(Xf,P({as:l,direction:o==null?void 0:o.direction,slots:{root:O},slotProps:j??d},z,{ref:n}))});process.env.NODE_ENV!=="production"&&(Gi.propTypes={anchorEl:p.oneOfType([Tn,p.object,p.func]),children:p.oneOfType([p.node,p.func]),component:p.elementType,components:p.shape({Root:p.elementType}),componentsProps:p.shape({root:p.oneOfType([p.func,p.object])}),container:p.oneOfType([Tn,p.func]),disablePortal:p.bool,keepMounted:p.bool,modifiers:p.arrayOf(p.shape({data:p.object,effect:p.func,enabled:p.bool,fn:p.func,name:p.any,options:p.object,phase:p.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:p.arrayOf(p.string),requiresIfExists:p.arrayOf(p.string)})),open:p.bool.isRequired,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:p.shape({modifiers:p.array,onFirstUpdate:p.func,placement:p.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:p.oneOf(["absolute","fixed"])}),popperRef:pi,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),transition:p.bool});const Ui=Gi;function Yf(e){return mr("MuiTooltip",e)}const Wf=vi("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),wt=Wf,Kf=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Jf(e){return Math.round(e*1e5)/1e5}const Zf=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${tt(s.split("-")[0])}`],arrow:["arrow"]};return Oo(i,Yf,t)},Qf=Dn(Ui,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>P({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${wt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${wt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${wt.arrow}`]:P({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${wt.arrow}`]:P({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),em=Dn("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${tt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>P({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Si(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Jf(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${wt.popper}[data-popper-placement*="left"] &`]:P({transformOrigin:"right center"},t.isRtl?P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):P({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${wt.popper}[data-popper-placement*="right"] &`]:P({transformOrigin:"left center"},t.isRtl?P({marginRight:"14px"},t.touch&&{marginRight:"24px"}):P({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${wt.popper}[data-popper-placement*="top"] &`]:P({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${wt.popper}[data-popper-placement*="bottom"] &`]:P({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),tm=Dn("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Si(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Hn=!1;const cs=new Mn;let fn={x:0,y:0};function Xn(e,t){return n=>{t&&t(n),e(n)}}const qi=A.forwardRef(function(t,n){var r,o,s,i,l,c,d,u,f,w,b,x,m,h,k,S,E,j,v;const O=Vo({props:t,name:"MuiTooltip"}),{arrow:z=!1,children:R,components:_={},componentsProps:L={},describeChild:$=!1,disableFocusListener:I=!1,disableHoverListener:M=!1,disableInteractive:X=!1,disableTouchListener:F=!1,enterDelay:B=100,enterNextDelay:te=0,enterTouchDelay:ae=700,followCursor:se=!1,id:y,leaveDelay:C=0,leaveTouchDelay:G=1500,onClose:U,onOpen:V,open:W,placement:Y="bottom",PopperComponent:K,PopperProps:q={},slotProps:Z={},slots:ee={},title:le,TransitionComponent:T=ls,TransitionProps:ke}=O,D=Ce(O,Kf),xe=A.isValidElement(R)?R:a.jsx("span",{children:R}),Ee=Li(),rt=Ee.direction==="rtl",[Te,J]=A.useState(),[re,ye]=A.useState(null),Oe=A.useRef(!1),Je=X||se,It=gn(),Mt=gn(),vt=gn(),on=gn(),[zn,na]=fi({controlled:W,default:!1,name:"Tooltip",state:"open"});let ot=zn;if(process.env.NODE_ENV!=="production"){const{current:ne}=A.useRef(W!==void 0);A.useEffect(()=>{Te&&Te.disabled&&!ne&&le!==""&&Te.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(` +`))},[le,Te,ne])}const Cr=wi(y),an=A.useRef(),Ln=to(()=>{an.current!==void 0&&(document.body.style.WebkitUserSelect=an.current,an.current=void 0),on.clear()});A.useEffect(()=>Ln,[Ln]);const ra=ne=>{cs.clear(),Hn=!0,na(!0),V&&!ot&&V(ne)},Fn=to(ne=>{cs.start(800+C,()=>{Hn=!1}),na(!1),U&&ot&&U(ne),It.start(Ee.transitions.duration.shortest,()=>{Oe.current=!1})}),Tr=ne=>{Oe.current&&ne.type!=="touchstart"||(Te&&Te.removeAttribute("title"),Mt.clear(),vt.clear(),B||Hn&&te?Mt.start(Hn?te:B,()=>{ra(ne)}):ra(ne))},oa=ne=>{Mt.clear(),vt.start(C,()=>{Fn(ne)})},{isFocusVisibleRef:aa,onBlur:cl,onFocus:dl,ref:ul}=mi(),[,sa]=A.useState(!1),ia=ne=>{cl(ne),aa.current===!1&&(sa(!1),oa(ne))},la=ne=>{Te||J(ne.currentTarget),dl(ne),aa.current===!0&&(sa(!0),Tr(ne))},ca=ne=>{Oe.current=!0;const Be=xe.props;Be.onTouchStart&&Be.onTouchStart(ne)},da=Tr,ua=oa,pl=ne=>{ca(ne),vt.clear(),It.clear(),Ln(),an.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",on.start(ae,()=>{document.body.style.WebkitUserSelect=an.current,Tr(ne)})},wl=ne=>{xe.props.onTouchEnd&&xe.props.onTouchEnd(ne),Ln(),vt.start(G,()=>{Fn(ne)})};A.useEffect(()=>{if(!ot)return;function ne(Be){(Be.key==="Escape"||Be.key==="Esc")&&Fn(Be)}return document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)}},[Fn,ot]);const fl=Rt(xe.ref,ul,J,n);!le&&le!==0&&(ot=!1);const Rr=A.useRef(),ml=ne=>{const Be=xe.props;Be.onMouseMove&&Be.onMouseMove(ne),fn={x:ne.clientX,y:ne.clientY},Rr.current&&Rr.current.update()},sn={},Or=typeof le=="string";$?(sn.title=!ot&&Or&&!M?le:null,sn["aria-describedby"]=ot?Cr:null):(sn["aria-label"]=Or?le:null,sn["aria-labelledby"]=ot&&!Or?Cr:null);const Ue=P({},sn,D,xe.props,{className:pt(D.className,xe.props.className),onTouchStart:ca,ref:fl},se?{onMouseMove:ml}:{});process.env.NODE_ENV!=="production"&&(Ue["data-mui-internal-clone-element"]=!0,A.useEffect(()=>{Te&&!Te.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(` +`))},[Te]));const ln={};F||(Ue.onTouchStart=pl,Ue.onTouchEnd=wl),M||(Ue.onMouseOver=Xn(da,Ue.onMouseOver),Ue.onMouseLeave=Xn(ua,Ue.onMouseLeave),Je||(ln.onMouseOver=da,ln.onMouseLeave=ua)),I||(Ue.onFocus=Xn(la,Ue.onFocus),Ue.onBlur=Xn(ia,Ue.onBlur),Je||(ln.onFocus=la,ln.onBlur=ia)),process.env.NODE_ENV!=="production"&&xe.props.title&&console.error(["MUI: You have provided a `title` prop to the child of .",`Remove this title prop \`${xe.props.title}\` or the Tooltip component.`].join(` +`));const hl=A.useMemo(()=>{var ne;let Be=[{name:"arrow",enabled:!!re,options:{element:re,padding:4}}];return(ne=q.popperOptions)!=null&&ne.modifiers&&(Be=Be.concat(q.popperOptions.modifiers)),P({},q.popperOptions,{modifiers:Be})},[re,q]),cn=P({},O,{isRtl:rt,arrow:z,disableInteractive:Je,placement:Y,PopperComponentProp:K,touch:Oe.current}),_r=Zf(cn),pa=(r=(o=ee.popper)!=null?o:_.Popper)!=null?r:Qf,wa=(s=(i=(l=ee.transition)!=null?l:_.Transition)!=null?i:T)!=null?s:ls,fa=(c=(d=ee.tooltip)!=null?d:_.Tooltip)!=null?c:em,ma=(u=(f=ee.arrow)!=null?f:_.Arrow)!=null?u:tm,gl=bn(pa,P({},q,(w=Z.popper)!=null?w:L.popper,{className:pt(_r.popper,q==null?void 0:q.className,(b=(x=Z.popper)!=null?x:L.popper)==null?void 0:b.className)}),cn),bl=bn(wa,P({},ke,(m=Z.transition)!=null?m:L.transition),cn),vl=bn(fa,P({},(h=Z.tooltip)!=null?h:L.tooltip,{className:pt(_r.tooltip,(k=(S=Z.tooltip)!=null?S:L.tooltip)==null?void 0:k.className)}),cn),xl=bn(ma,P({},(E=Z.arrow)!=null?E:L.arrow,{className:pt(_r.arrow,(j=(v=Z.arrow)!=null?v:L.arrow)==null?void 0:j.className)}),cn);return a.jsxs(A.Fragment,{children:[A.cloneElement(xe,Ue),a.jsx(pa,P({as:K??Ui,placement:Y,anchorEl:se?{getBoundingClientRect:()=>({top:fn.y,left:fn.x,right:fn.x,bottom:fn.y,width:0,height:0})}:Te,popperRef:Rr,open:Te?ot:!1,id:Cr,transition:!0},ln,gl,{popperOptions:hl,children:({TransitionProps:ne})=>a.jsx(wa,P({timeout:Ee.transitions.duration.shorter},ne,bl,{children:a.jsxs(fa,P({},vl,{children:[le,z?a.jsx(ma,P({},xl,{ref:ye})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(qi.propTypes={arrow:p.bool,children:di.isRequired,classes:p.object,className:p.string,components:p.shape({Arrow:p.elementType,Popper:p.elementType,Tooltip:p.elementType,Transition:p.elementType}),componentsProps:p.shape({arrow:p.object,popper:p.object,tooltip:p.object,transition:p.object}),describeChild:p.bool,disableFocusListener:p.bool,disableHoverListener:p.bool,disableInteractive:p.bool,disableTouchListener:p.bool,enterDelay:p.number,enterNextDelay:p.number,enterTouchDelay:p.number,followCursor:p.bool,id:p.string,leaveDelay:p.number,leaveTouchDelay:p.number,onClose:p.func,onOpen:p.func,open:p.bool,placement:p.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:p.elementType,PopperProps:p.object,slotProps:p.shape({arrow:p.object,popper:p.object,tooltip:p.object,transition:p.object}),slots:p.shape({arrow:p.elementType,popper:p.elementType,tooltip:p.elementType,transition:p.elementType}),sx:p.oneOfType([p.arrayOf(p.oneOfType([p.func,p.object,p.bool])),p.func,p.object]),title:p.node,TransitionComponent:p.elementType,TransitionProps:p.object});const nm=qi;function ds(e,t,n){return e?a.jsx(Fe.ListItemIcon,{className:`papi-menu-icon-${n?"leading":"trailing"}`,children:a.jsx("img",{src:e,alt:`${n?"Leading":"Trailing"} icon for ${t}`})}):void 0}function Wo(e){const{onClick:t,label:n,tooltip:r,allowForLeadingIcons:o=!0,iconPathBefore:s=void 0,iconPathAfter:i=void 0,hasAutoFocus:l=!1,className:c,isDisabled:d=!1,isDense:u=!0,isSubMenuParent:f=!1,hasDisabledGutters:w=!1,hasDivider:b=!1,focusVisibleClassName:x,id:m,children:h}=e,k=a.jsx(Fe.MenuItem,{sx:{lineHeight:.8},autoFocus:l,className:c,disabled:d,dense:u,disableGutters:w,divider:b,focusVisibleClassName:x,onClick:t,id:m,children:n?a.jsxs(a.Fragment,{children:[ds(s,n,!0),a.jsx(Fe.ListItemText,{primary:n,inset:!s&&o}),f?a.jsx(Fe.ListItemIcon,{className:"papi-menu-icon-trailing",children:a.jsx(Ci,{})}):ds(i,n,!1)]}):h});return r?a.jsx(nm,{title:r,placement:"right",children:a.jsx("div",{children:k})}):k}function Hi(e){return Object.entries(e.groups).map(([n,r])=>({id:n,group:r}))}function rm(e){const[t,n]=g.useState(void 0),{parentMenuItem:r,parentItemProps:o,menuDefinition:s}=e,i=d=>{n(d.currentTarget)},l=()=>{n(void 0)},c=()=>{let d=Hi(s).filter(u=>"menuItem"in u.group);if(!(r!=null&&r.id))throw new Error("A valid parent menu item is required for submenus.");return d=d.filter(u=>"menuItem"in u.group&&u.group.menuItem===r.id),a.jsx(Xi,{...e,includedGroups:d})};return a.jsxs(a.Fragment,{children:[a.jsx(Wo,{onClick:i,...o,isSubMenuParent:!0}),a.jsx(Fe.Menu,{anchorEl:t,open:!!t,onClose:l,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},children:c()},r.id)]})}const om=(e,t)=>t.filter(o=>o.group===e).sort((o,s)=>(o.order||0)-(s.order||0));function Xi(e){const{menuDefinition:t,onClick:n,commandHandler:r,includedGroups:o}=e,{items:s,allowForLeadingIcons:i}=g.useMemo(()=>{const u=o&&o.length>0?o:Hi(t).filter(x=>!("menuItem"in x.group)),f=Object.values(u).sort((x,m)=>(x.group.order||0)-(m.group.order||0)),w=[];f.forEach(x=>{om(x.id,t.items).forEach(m=>w.push({item:m,isLastItemInGroup:!1})),w.length>0&&(w[w.length-1].isLastItemInGroup=!0)}),w.length>0&&(w[w.length-1].isLastItemInGroup=!1);const b=w.some(x=>"iconPathBefore"in x.item&&x.item.iconPathBefore);return{items:w,allowForLeadingIcons:b}},[o,t]),l=({item:u,isLastItemInGroup:f})=>({className:"papi-menu-item",label:u.label,tooltip:u.tooltip,iconPathBefore:"iconPathBefore"in u?u.iconPathBefore:void 0,iconPathAfter:"iconPathAfter"in u?u.iconPathAfter:void 0,hasDivider:f,allowForLeadingIcons:i}),[c]=s;if(!c)return a.jsx("div",{});const d=c.item.group;return a.jsx("div",{role:"menu","aria-label":d,children:s.map((u,f)=>{const{item:w}=u,b=l(u);if("command"in w){const x=w.group+f;return a.jsx(Wo,{onClick:m=>{n==null||n(m),r(w)},...b},x)}return a.jsx(rm,{parentMenuItem:w,parentItemProps:b,...e},d+w.id)})},d)}function am(e){const{menuDefinition:t,columnId:n}=e;let s=Object.entries(t.groups).map(([i,l])=>({id:i,group:l})).filter(i=>"column"in i.group);return n&&"columns"in t&&t.columns[n]&&(s=s.filter(i=>"column"in i.group&&i.group.column===n)),a.jsx(Xi,{...e,includedGroups:s})}function sm({commandHandler:e,menuDefinition:t,id:n,metadata:r,onClick:o,className:s}){return a.jsxs(Fe.Grid,{id:n,item:!0,xs:"auto",role:"menu","aria-label":n,className:`papi-menu-column ${s??""}`,children:[a.jsx("h3",{"aria-label":r.label,className:`papi-menu-column-header ${s??""}`,children:r.label}),a.jsx(Fe.List,{id:n,dense:!0,className:s??"",children:a.jsx(am,{commandHandler:e,menuDefinition:t,columnId:n,onClick:o})})]})}function Yi({commandHandler:e,className:t,multiColumnMenu:n,id:r}){const{columns:o}=n,s=g.useMemo(()=>{const i=new Map;return Object.getOwnPropertyNames(o).forEach(l=>{if(l==="isExtensible")return;const c=l,d=o[c];typeof d=="object"&&typeof d.order=="number"&&!Number.isNaN(d.order)?i.set(d.order,{id:c,metadata:d}):console.warn(`Property ${l} (${typeof d}) on menu ${r} is not a valid column and is being ignored. This might indicate data corruption`)}),Array.from(i.values()).sort((l,c)=>(l.metadata.order||0)-(c.metadata.order||0))},[o,r]);return a.jsx(Fe.Grid,{container:!0,spacing:0,className:`papi-multi-column-menu ${t??""}`,columns:s.length,role:"menu","aria-label":"GridMenu",id:r,children:s.map((i,l)=>a.jsx(sm,{commandHandler:e,menuDefinition:n,...i,className:t},l))})}function im(e){return{preserveValue:!0,...e}}const ar=(e,t,n={})=>{const r=g.useRef(t);r.current=t;const o=g.useRef(n);o.current=im(o.current);const[s,i]=g.useState(()=>r.current),[l,c]=g.useState(!0);return g.useEffect(()=>{let d=!0;return c(!!e),(async()=>{if(e){const u=await e();d&&(i(()=>u),c(!1))}})(),()=>{d=!1,o.current.preserveValue||i(()=>r.current)}},[e]),[s,l]},lm=Ei(a.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");function Wi({menuProvider:e,normalMenu:t,fullMenu:n,commandHandler:r,containerRef:o,className:s,ariaLabelPrefix:i,children:l}){const[c,d]=g.useState(!1),[u,f]=g.useState(!1),w=g.useCallback(()=>{c&&d(!1),f(!1)},[c]),b=g.useCallback(j=>{j.stopPropagation(),d(v=>{const O=!v;return O&&j.shiftKey?f(!0):O||f(!1),O})},[]),x=g.useCallback(j=>(w(),r(j)),[r,w]),[m,h]=g.useState({top:1,left:1});g.useEffect(()=>{if(c){const j=o==null?void 0:o.current;if(j){const v=j.getBoundingClientRect(),O=window.scrollY,z=window.scrollX,R=v.top+O+j.clientHeight,_=v.left+z;h({top:R,left:_})}}},[c,o]);const[k]=ar(g.useCallback(async()=>(e==null?void 0:e(!1))??t,[e,t,c]),t),[S]=ar(g.useCallback(async()=>(e==null?void 0:e(!0))??n??k,[e,n,k,c]),n??k),E=u&&S?S:k;return a.jsxs(a.Fragment,{children:[a.jsx(Fe.IconButton,{sx:{paddingTop:0,paddingBottom:0},edge:"start",className:`papi-menuButton ${s??""}`,color:"inherit","aria-label":`${i??""} menu button`,onClick:b,children:l??a.jsx(lm,{})}),a.jsx(Fe.Drawer,{className:`papi-menu-drawer ${s??""}`,anchor:"left",variant:"temporary",open:c,onClose:w,PaperProps:{className:"papi-menu-drawer-paper",style:{top:m.top,left:m.left}},children:E?a.jsx(Yi,{className:s,id:`${i??""} main menu`,commandHandler:x,multiColumnMenu:E}):void 0})]})}function cm({id:e,label:t,isDisabled:n=!1,tooltip:r,isTooltipSuppressed:o=!1,adjustMarginToAlignToEdge:s=!1,size:i="medium",className:l,onClick:c,children:d}){return a.jsx(Fe.IconButton,{id:e,disabled:n,edge:s,size:i,"aria-label":t,title:o?void 0:r??t,className:`papi-icon-button ${l??""}`,onClick:c,children:d})}const bt=g.forwardRef(({className:e,...t},n)=>a.jsx(H.LoaderCircle,{size:35,className:N("tw-animate-spin",e),...t,ref:n}));bt.displayName="Spinner";function dm({id:e,isDisabled:t=!1,hasError:n=!1,isFullWidth:r=!1,helperText:o,label:s,placeholder:i,isRequired:l=!1,className:c,defaultValue:d,value:u,onChange:f,onFocus:w,onBlur:b}){return a.jsxs("div",{className:N("tw-inline-grid tw-items-center tw-gap-1.5",{"tw-w-full":r}),children:[a.jsx(je,{htmlFor:e,className:N({"tw-text-red-600":n,"tw-hidden":!s}),children:`${s}${l?"*":""}`}),a.jsx(Pt,{id:e,disabled:t,placeholder:i,required:l,className:N(c,{"tw-border-red-600":n}),defaultValue:d,value:u,onChange:f,onFocus:w,onBlur:b}),a.jsx("p",{className:N({"tw-hidden":!o}),children:o})]})}function um({menuProvider:e,commandHandler:t,className:n,id:r,children:o}){const s=g.useRef(void 0);return a.jsx("div",{ref:s,style:{position:"relative"},children:a.jsx(Fe.AppBar,{position:"static",id:r,children:a.jsxs(Fe.Toolbar,{className:N("tw-bg-muted tw-text-muted-foreground",n),variant:"dense",children:[e?a.jsx(Wi,{commandHandler:t,containerRef:s,menuProvider:e}):void 0,o?a.jsx("div",{className:"papi-toolbar-children",children:o}):void 0]})})})}const pm=Kt.cva("tw-relative tw-w-full tw-rounded-lg tw-border tw-p-4 [&>svg~*]:tw-pl-7 [&>svg+div]:tw-translate-y-[-3px] [&>svg]:tw-absolute [&>svg]:tw-left-4 [&>svg]:tw-top-4 [&>svg]:tw-text-foreground",{variants:{variant:{default:"tw-bg-background tw-text-foreground",destructive:"tw-border-destructive/50 tw-text-destructive dark:tw-border-destructive [&>svg]:tw-text-destructive"}},defaultVariants:{variant:"default"}}),Ki=g.forwardRef(({className:e,variant:t,...n},r)=>a.jsx("div",{ref:r,role:"alert",className:N(pm({variant:t}),e),...n}));Ki.displayName="Alert";const Ji=g.forwardRef(({className:e,...t},n)=>a.jsxs("h5",{ref:n,className:N("tw-mb-1 tw-font-medium tw-leading-none tw-tracking-tight",e),...t,children:[t.children," "]}));Ji.displayName="AlertTitle";const Zi=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("tw-text-sm [&_p]:tw-leading-relaxed",e),...t}));Zi.displayName="AlertDescription";const Qi=Kt.cva("tw-inline-flex tw-items-center tw-rounded-full tw-border tw-px-2.5 tw-py-0.5 tw-text-xs tw-font-semibold tw-transition-colors focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2",{variants:{variant:{default:"tw-border-transparent tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/80",secondary:"tw-border-transparent tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80",muted:"tw-border-transparent tw-bg-muted tw-text-muted-foreground hover:tw-bg-muted/80",destructive:"tw-border-transparent tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/80",outline:"tw-text-foreground"}},defaultVariants:{variant:"default"}});function el({className:e,variant:t,...n}){return a.jsx("div",{className:N("pr-twp",Qi({variant:t}),e),...n})}const Ko=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("pr-twp tw-rounded-lg tw-border tw-bg-card tw-text-card-foreground tw-shadow-sm",e),...t}));Ko.displayName="Card";const Jo=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("pr-twp tw-flex tw-flex-col tw-space-y-1.5 tw-p-6",e),...t}));Jo.displayName="CardHeader";const Zo=g.forwardRef(({className:e,...t},n)=>a.jsx("h3",{ref:n,className:N("pr-twp tw-text-2xl tw-font-semibold tw-leading-none tw-tracking-tight",e),...t,children:t.children}));Zo.displayName="CardTitle";const Qo=g.forwardRef(({className:e,...t},n)=>a.jsx("p",{ref:n,className:N("pr-twp tw-text-sm tw-text-muted-foreground",e),...t}));Qo.displayName="CardDescription";const ea=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("pr-twp tw-p-6 tw-pt-0",e),...t}));ea.displayName="CardContent";const ta=g.forwardRef(({className:e,...t},n)=>a.jsx("div",{ref:n,className:N("pr-twp tw-flex tw-items-center tw-p-6 tw-pt-0",e),...t}));ta.displayName="CardFooter";function wm({...e}){return a.jsx(ws.Toaster,{className:"tw-toaster tw-group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})}const tl=g.forwardRef(({className:e,...t},n)=>{const r=Se();return a.jsxs(hn.Root,{ref:n,className:N("pr-twp tw-relative tw-flex tw-w-full tw-touch-none tw-select-none tw-items-center",e),...t,dir:r,children:[a.jsx(hn.Track,{className:"tw-relative tw-h-2 tw-w-full tw-grow tw-overflow-hidden tw-rounded-full tw-bg-secondary",children:a.jsx(hn.Range,{className:"tw-absolute tw-h-full tw-bg-primary"})}),a.jsx(hn.Thumb,{className:"tw-block tw-h-5 tw-w-5 tw-rounded-full tw-border-2 tw-border-primary tw-bg-background tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50"})]})});tl.displayName=hn.Root.displayName;const nl=g.forwardRef(({className:e,...t},n)=>{const r=Se();return a.jsx(Yr.Root,{className:N("tw-peer pr-twp tw-inline-flex tw-h-6 tw-w-11 tw-shrink-0 tw-cursor-pointer tw-items-center tw-rounded-full tw-border-2 tw-border-transparent tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 focus-visible:tw-ring-offset-background disabled:tw-cursor-not-allowed disabled:tw-opacity-50 data-[state=checked]:tw-bg-primary data-[state=unchecked]:tw-bg-input",e),...t,ref:n,children:a.jsx(Yr.Thumb,{className:N("pr-twp tw-pointer-events-none tw-block tw-h-5 tw-w-5 tw-rounded-full tw-bg-background tw-shadow-lg tw-ring-0 tw-transition-transform",{"data-[state=checked]:tw-translate-x-5 data-[state=unchecked]:tw-translate-x-0":r==="ltr"},{"data-[state=checked]:tw-translate-x-[-20px] data-[state=unchecked]:tw-translate-x-0":r==="rtl"})})})});nl.displayName=Yr.Root.displayName;const fm=De.Root,rl=g.forwardRef(({className:e,...t},n)=>{const r=Se();return a.jsx(De.List,{ref:n,className:N("tw-inline-flex tw-h-10 tw-items-center tw-justify-center tw-rounded-md tw-bg-muted tw-p-1 tw-text-muted-foreground",e),...t,dir:r})});rl.displayName=De.List.displayName;const ol=g.forwardRef(({className:e,...t},n)=>a.jsx(De.Trigger,{ref:n,className:N("tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-sm tw-px-3 tw-py-1.5 tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-all hover:tw-text-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=active]:tw-bg-background data-[state=active]:tw-text-foreground data-[state=active]:tw-shadow-sm",e),...t}));ol.displayName=De.Trigger.displayName;const al=g.forwardRef(({className:e,...t},n)=>a.jsx(De.Content,{ref:n,className:N("tw-mt-2 tw-ring-offset-background focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2",e),...t}));al.displayName=De.Content.displayName;function mm({isInstalling:e,handleClick:t,buttonText:n,className:r,...o}){return a.jsx(fe,{className:N("tw-h-8 tw-rounded-md tw-text-white tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-blue-700",{"tw-cursor-not-allowed tw-bg-blue-700":e,"tw-bg-blue-600":!e,"tw-bg-white tw-text-blue-600 hover:tw-text-white":!n,"tw-w-20":n},r),onClick:t,...o,children:e?a.jsx(bt,{size:15}):a.jsxs(a.Fragment,{children:[a.jsx(H.Download,{size:25,className:N("tw-h-4 tw-w-4",{"tw-mr-1":n})}),n]})})}function hm({isEnabling:e,handleClick:t,className:n,...r}){return a.jsx(fe,{className:N("tw-h-8 tw-rounded-md tw-bg-blue-600 tw-px-4 tw-text-white tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-blue-700",{"tw-cursor-not-allowed tw-bg-blue-700":e},n),onClick:t,...r,children:e?a.jsxs(a.Fragment,{children:[a.jsx(bt,{size:15,className:"tw-mr-1 tw-text-white"}),"Enabling..."]}):"Enable"})}function gm({isDisabling:e,handleClick:t,className:n,...r}){return a.jsx(fe,{className:N("tw-h-8 tw-rounded-md tw-bg-gray-300 tw-text-black tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-gray-400",{"tw-cursor-not-allowed tw-bg-gray-400":e},n),onClick:t,...r,children:e?a.jsxs(a.Fragment,{children:[a.jsx(bt,{size:15,className:"tw-mr-1 tw-text-black"}),"Disabling..."]}):"Disable"})}function bm({isUpdating:e,handleClick:t,className:n,...r}){return a.jsx(fe,{className:N("tw-h-8 tw-rounded-md tw-bg-blue-600 tw-px-4 tw-text-white tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-blue-700 hover:tw-text-white",{"tw-cursor-not-allowed tw-bg-blue-700":e},n),onClick:t,...r,children:e?a.jsxs(a.Fragment,{children:[a.jsx(bt,{size:15,className:"tw-mr-1 tw-text-white"}),"Updating..."]}):"Update"})}function vm({id:e,markdown:t,className:n,anchorTarget:r}){const o=g.useMemo(()=>({overrides:{a:{props:{target:r}}}}),[r]);return a.jsx("div",{id:e,className:N("pr-twp tw-prose",n),children:a.jsx($l,{options:o,children:t})})}const sl=g.forwardRef((e,t)=>a.jsxs(fe,{ref:t,className:"tw-rounded-md tw-border tw-border-dashed tw-border-gray-400 tw-bg-white tw-px-4 tw-py-2 tw-text-black tw-transition tw-duration-300 tw-ease-in-out hover:tw-border-blue-600 hover:tw-bg-white hover:tw-text-blue-600",...e,children:[a.jsx(H.Filter,{size:16,className:"tw-mr-2 tw-h-4 tw-w-4 tw-text-gray-700 hover:tw-text-blue-600"}),"Filter",a.jsx(H.ChevronDown,{size:16,className:"tw-ml-2 tw-h-4 tw-w-4 tw-text-gray-700 hover:tw-text-blue-600"})]}));var il=(e=>(e[e.Check=0]="Check",e[e.Radio=1]="Radio",e))(il||{});function xm({id:e,groups:t}){return a.jsx("div",{id:e,children:a.jsxs(In,{children:[a.jsx(ir,{asChild:!0,children:a.jsx(sl,{})}),a.jsx(Jt,{children:t.map(n=>a.jsxs("div",{children:[a.jsx(Zt,{children:n.label}),a.jsx(gs,{children:n.items.map(r=>a.jsx("div",{children:r.itemType===0?a.jsx(lr,{onClick:r.onClick,children:r.label}):a.jsx(co,{onClick:r.onClick,value:r.label,children:r.label})},r.label))}),a.jsx(Qt,{})]},n.label))})]})})}function ym({id:e,message:t}){return a.jsx("div",{id:e,className:"tw-mb-20 tw-mt-20 tw-flex tw-items-center tw-justify-center",children:a.jsx("div",{className:"tw-w-3/4 tw-rounded-lg tw-bg-gray-100 tw-p-8 tw-text-center",children:a.jsx("p",{className:"tw-text-lg tw-text-gray-800",children:t})})})}function Nm({id:e,category:t,downloads:n,languages:r,moreInfoUrl:o}){const s=new Q.NumberFormat("en",{notation:"compact",compactDisplay:"short"}).format(Object.values(n).reduce((l,c)=>l+c,0)),i=()=>{window.scrollTo(0,document.body.scrollHeight)};return a.jsxs("div",{id:e,className:"tw-flex tw-flex-wrap tw-items-start tw-space-x-4 tw-border-b tw-border-t tw-bg-white tw-pb-4 tw-pt-4",children:[a.jsxs("div",{className:"tw-flex tw-flex-col tw-items-center",children:[a.jsx("div",{className:"tw-flex tw-items-center tw-rounded-md tw-bg-gray-100 tw-px-2 tw-py-1",children:a.jsx("span",{className:"tw-text-xs tw-font-semibold tw-text-gray-700",children:t})}),a.jsx("span",{className:"tw-text-xs tw-text-gray-500",children:"CATEGORY"})]}),a.jsx("div",{className:"tw-mx-2 tw-h-10 tw-border-l tw-border-gray-300"}),a.jsxs("div",{className:"tw-flex tw-flex-col tw-items-center",children:[a.jsxs("div",{className:"tw-flex tw-items-center tw-rounded-md tw-bg-gray-100 tw-px-2 tw-py-1",children:[a.jsx(H.User,{className:"tw-mr-1 tw-h-4 tw-w-4"}),a.jsx("span",{className:"tw-text-xs tw-font-semibold tw-text-gray-700",children:s})]}),a.jsx("span",{className:"tw-text-xs tw-text-gray-500",children:"USERS"})]}),a.jsx("div",{className:"tw-mx-2 tw-h-10 tw-border-l tw-border-gray-300"}),a.jsxs("div",{className:"tw-flex tw-flex-col tw-items-center",children:[a.jsx("div",{className:"tw-flex tw-items-center",children:r.slice(0,3).map(l=>a.jsx("span",{className:"tw-ml-1 tw-rounded-md tw-bg-gray-100 tw-px-2 tw-py-1 tw-text-xs tw-font-semibold tw-text-gray-700",children:l.toUpperCase()},l))}),r.length>3&&a.jsxs("button",{type:"button",onClick:()=>i(),className:"tw-text-xs tw-text-gray-500 tw-underline",children:["+",r.length-3," more languages"]})]}),a.jsx("div",{className:"tw-mx-2 tw-h-10 tw-border-l tw-border-gray-300"}),a.jsxs("div",{className:"tw-ml-auto tw-flex tw-flex-col tw-space-y-2",children:[a.jsxs("a",{href:o,target:"_blank",rel:"noreferrer",className:"tw-flex tw-items-center tw-text-xs tw-font-semibold tw-text-gray-500 tw-underline",children:["Website",a.jsx(H.Link,{className:"tw-ml-1 tw-inline tw-h-4 tw-w-4"})]}),a.jsxs("a",{href:"https://example.com",target:"_blank",rel:"noreferrer",className:"tw-flex tw-items-center tw-text-xs tw-font-semibold tw-text-gray-500 tw-underline",children:["Support",a.jsx(H.CircleHelp,{className:"tw-ml-1 tw-inline tw-h-4 tw-w-4"})]})]})]})}function ll({id:e,versionHistory:t}){const[n,r]=g.useState(!1),o=new Date;function s(l){const c=new Date(l),d=new Date(o.getTime()-c.getTime()),u=d.getUTCFullYear()-1970,f=d.getUTCMonth(),w=d.getUTCDate()-1;let b="";return u>0?b=`${u.toString()} year${u===1?"":"s"} ago`:f>0?b=`${f.toString()} month${f===1?"":"s"} ago`:w===0?b="today":b=`${w.toString()} day${w===1?"":"s"} ago`,b}const i=Object.entries(t).sort((l,c)=>c[0].localeCompare(l[0]));return a.jsxs("div",{id:e,children:[a.jsx("h3",{className:"tw-text-md tw-font-semibold",children:"What`s New"}),a.jsx("ul",{className:"tw-list-disc tw-pl-5 tw-pr-4 tw-text-xs tw-text-gray-600",children:(n?i:i.slice(0,5)).map(l=>a.jsxs("div",{className:"tw-mt-3 tw-flex tw-justify-between",children:[a.jsx("div",{className:"tw-text-gray-600",children:a.jsx("li",{className:"tw-prose tw-text-xs",children:a.jsx("span",{children:l[1].description})})}),a.jsxs("div",{className:"tw-justify-end tw-text-right",children:[a.jsxs("div",{children:["Version ",l[0]]}),a.jsx("div",{children:s(l[1].date)})]})]},l[0]))}),i.length>5&&a.jsx("button",{type:"button",onClick:()=>r(!n),className:"tw-text-xs tw-text-gray-500 tw-underline",children:n?"Show Less Version History":"Show All Version History"})]})}function km({id:e,publisherDisplayName:t,fileSize:n,locales:r,versionHistory:o}){const s=g.useMemo(()=>Q.formatBytes(n),[n]),l=(c=>{const d=new Intl.DisplayNames(navigator.language,{type:"language"});return c.map(u=>d.of(u))})(r);return a.jsx("div",{id:e,className:"tw-border-t tw-pb-4 tw-pt-4",children:a.jsxs("div",{className:"tw-md:flex-row tw-md:space-x-8 tw-flex tw-flex-col tw-space-x-0",children:[a.jsx(ll,{versionHistory:o}),a.jsx("div",{className:"tw-md:border-t-0 tw-md:border-l tw-md-h-auto tw-md-ml-8 tw-mt-4 tw-border-t tw-border-gray-300"}),a.jsxs("div",{className:"tw-md:mt-0 tw-mt-4 tw-flex-1 tw-space-y-3",children:[a.jsx("h2",{className:"tw-text-md tw-font-semibold",children:"Information"}),a.jsxs("div",{className:"tw-flex tw-items-start tw-justify-between tw-pr-4 tw-text-xs tw-text-gray-600",children:[a.jsxs("p",{className:"tw-flex tw-flex-col tw-justify-start",children:[a.jsx("span",{className:"tw-mb-2",children:"Publisher"}),a.jsx("span",{className:"tw-font-semibold",children:t}),a.jsx("span",{className:"tw-mb-2 tw-mt-4",children:"Size"}),a.jsx("span",{className:"tw-font-semibold",children:s})]}),a.jsx("div",{className:"tw-flex tw-w-3/4 tw-items-center tw-justify-between tw-text-xs tw-text-gray-600",children:a.jsxs("p",{className:"tw-flex tw-flex-col tw-justify-start",children:[a.jsx("span",{className:"tw-mb-2",children:"Languages"}),a.jsx("span",{className:"tw-font-semibold",children:l.join(", ")})]})})]})]})]})})}function lo({entries:e,getEntriesCount:t,selected:n,onChange:r,placeholder:o,commandEmptyMessage:s,customSelectedText:i,sortSelected:l,icon:c,className:d,badgesPlaceholder:u}){return a.jsxs("div",{className:"tw-flex tw-items-center tw-gap-2",children:[a.jsx(qs,{entries:e,getEntriesCount:t,selected:n,onChange:r,placeholder:o,commandEmptyMessage:s,customSelectedText:i,sortSelected:l,icon:c,className:d}),n.length>0?a.jsx("div",{className:"tw-flex tw-flex-wrap tw-items-center tw-gap-2",children:n.map(f=>{var w;return a.jsxs(el,{variant:"muted",className:"tw-flex tw-items-center tw-gap-1",children:[a.jsx(fe,{variant:"ghost",size:"icon",className:"tw-h-4 tw-w-4 tw-p-0 hover:tw-bg-transparent",onClick:()=>r(n.filter(b=>b!==f)),children:a.jsx(H.X,{className:"tw-h-3 tw-w-3"})}),(w=e.find(b=>b.value===f))==null?void 0:w.label]},f)})}):a.jsx(je,{children:u})]})}const jm=["%resources_action%","%resources_any%","%resources_dialog_subtitle%","%resources_dialog_title%","%resources_filterBy%","%resources_filterInput%","%resources_fullName%","%resources_get%","%resources_installed%","%resources_language%","%resources_languages%","%resources_loadingResources%","%resources_noResults%","%resources_open%","%resources_remove%","%resources_results%","%resources_showing%","%resources_size%","%resources_type%","%resources_types%","%resources_type_DBL%","%resources_type_ER%","%resources_type_SLR%","%resources_type_XR%","%resources_type_unknown%","%resources_update%"],Sm=(e,t)=>{const n=Array.from(new Set(e.map(i=>i.bestLanguageName))),r=new Set(e.filter(i=>i.installed).map(i=>i.bestLanguageName)),o=new Set(t.concat(Array.from(r)));return n.sort((i,l)=>{const c=o.has(i),d=o.has(l);return c&&d?i.localeCompare(l):c?-1:d?1:i.localeCompare(l)}).map(i=>({label:i,value:i,starred:r.has(i)}))},us=(e,t,n)=>a.jsx(fe,{className:"tw-bg-muted",variant:"ghost",onClick:()=>n(e.dblEntryUid,"install"),children:t}),Em=(e,t,n,r,o,s)=>t.includes(e.dblEntryUid)?a.jsx(fe,{className:"tw-bg-muted",variant:"ghost",children:a.jsx(bt,{className:"tw-h-5 tw-py-[1px]"})}):e.installed?e.updateAvailable?us(e,r,s):a.jsx(je,{className:"tw-my-2 tw-flex tw-h-6 tw-items-center",children:o}):us(e,n,s);function Cm({localizedStrings:e,resources:t,isLoadingResources:n,selectedTypes:r,setSelectedTypes:o,selectedLanguages:s,setSelectedLanguages:i,openResource:l,installResource:c,uninstallResource:d,className:u}){const f=e["%resources_action%"],w=e["%resources_any%"],b=e["%resources_dialog_subtitle%"],x=e["%resources_dialog_title%"],m=e["%resources_filterInput%"],h=e["%resources_filterBy%"],k=e["%resources_fullName%"],S=e["%resources_get%"],E=e["%resources_installed%"],j=e["%resources_language%"],v=e["%resources_languages%"],O=e["%resources_loadingResources%"],z=e["%resources_noResults%"],R=e["%resources_open%"],_=e["%resources_remove%"],L=e["%resources_results%"],$=e["%resources_showing%"],I=e["%resources_size%"],M=e["%resources_type%"],X=e["%resources_types%"],F=e["%resources_type_DBL%"],B=e["%resources_type_ER%"],te=e["%resources_type_SLR%"],ae=e["%resources_type_XR%"],se=e["%resources_type_unknown%"],y=e["%resources_update%"],[C,G]=g.useState(!1);g.useEffect(()=>{if(!C){if(s.length>0){G(!0);return}t.length>0&&s.length===0&&(i(Array.from(new Set(t.filter(J=>J.installed===!0).map(J=>J.bestLanguageName)))),G(!0))}},[t,s.length,i,C,G]);const[U,V]=g.useState([]),W=(J,re)=>{if(!c||!d)return;const ye={dblEntryUid:J,action:re==="install"?"installing":"removing"};V(Je=>[...Je,ye]),(re==="install"?c:d)(J).catch(Je=>{console.debug(Q.getErrorMessage(Je))})};g.useEffect(()=>{V(J=>J.filter(re=>{const ye=t.find(Oe=>Oe.dblEntryUid===re.dblEntryUid);return ye?!(re.action==="installing"&&ye.installed||re.action==="removing"&&!ye.installed):!0}))},[t]);const[Y,K]=g.useState(""),q=g.useMemo(()=>t.filter(J=>{const re=Y.toLowerCase();return J.displayName.toLowerCase().includes(re)||J.fullName.toLowerCase().includes(re)||J.bestLanguageName.toLowerCase().includes(re)}),[t,Y]),Z=g.useMemo(()=>[{value:"DBLResource",label:F},{value:"EnhancedResource",label:B},{value:"SourceLanguageResource",label:te},{value:"XmlResource",label:ae}],[F,B,te,ae]),ee=g.useMemo(()=>r.length===0?q:q.filter(J=>r.includes(J.type)),[q,r]),le=g.useMemo(()=>s.length===0?ee:ee.filter(J=>s.includes(J.bestLanguageName)),[s,ee]),[T,ke]=g.useState({key:"bestLanguageName",direction:"ascending"}),D=g.useMemo(()=>[...le].sort((J,re)=>{let ye,Oe;return T.key==="action"?(ye=(J.installed?10:0)+(J.updateAvailable?1:0),Oe=(re.installed?10:0)+(re.updateAvailable?1:0)):(ye=J[T.key],Oe=re[T.key]),yeOe?T.direction==="ascending"?1:-1:0}),[T.direction,T.key,le]),xe=J=>{const re={key:J,direction:"ascending"};T.key===J&&T.direction==="ascending"&&(re.direction="descending"),ke(re)},Ee=(J,re)=>a.jsx(st,{onClick:()=>xe(J),children:a.jsxs("div",{className:"tw-flex tw-items-center",children:[a.jsx("div",{className:"tw-font-normal",children:re}),T.key!==J&&a.jsx(H.ChevronsUpDown,{className:"tw-pl-1",size:16}),T.key===J&&(T.direction==="ascending"?a.jsx(H.ChevronUp,{className:"tw-pl-1",size:16}):a.jsx(H.ChevronDown,{className:"tw-pl-1",size:16}))]})}),rt=J=>t.filter(re=>re.type===J.value).length??0,Te=J=>t.filter(re=>re.bestLanguageName===J.value).length??0;return a.jsx("div",{className:u,children:a.jsxs(Ko,{className:"tw-flex tw-h-screen tw-flex-col tw-rounded-none tw-border-0",children:[a.jsx(Jo,{className:"tw-flex-shrink-0",children:a.jsxs("div",{className:"tw-flex",children:[a.jsxs("div",{className:"tw-flex tw-items-center tw-pr-4",children:[a.jsx(H.BookOpen,{size:36,className:"tw-me-4"}),a.jsxs("div",{className:"tw-flex tw-flex-col tw-gap-2",children:[a.jsx(Zo,{children:x}),a.jsx(Qo,{className:"tw-mt-1",children:b}),a.jsx(ur,{className:"tw-min-w-72",onSearch:K,placeholder:m})]})]}),a.jsxs("div",{className:"tw-flex tw-flex-col tw-gap-1",children:[a.jsx(je,{className:"tw-mb-2 tw-text-muted-foreground",children:h}),a.jsx(lo,{entries:Z,getEntriesCount:rt,selected:r,onChange:o,placeholder:X,icon:a.jsx(H.Shapes,{}),badgesPlaceholder:w}),a.jsx(lo,{entries:Sm(t,s),getEntriesCount:Te,selected:s,onChange:i,placeholder:v,sortSelected:!0,icon:a.jsx(H.Globe,{}),badgesPlaceholder:w})]})]})}),a.jsx(ea,{className:"tw-flex-grow tw-overflow-auto",children:n||!t?a.jsxs("div",{className:"tw-flex tw-flex-col tw-items-center tw-gap-2",children:[a.jsx(je,{children:O}),a.jsx(bt,{})]}):a.jsx("div",{children:D.length===0?a.jsx("div",{className:"tw-m-4 tw-flex tw-justify-center",children:a.jsx(je,{children:z})}):a.jsxs(tn,{stickyHeader:!0,children:[a.jsx(nn,{className:"tw-bg-none",stickyHeader:!0,children:a.jsxs(Ke,{children:[a.jsx(st,{}),a.jsx(st,{}),Ee("fullName",k),Ee("bestLanguageName",j),Ee("type",M),Ee("size",I),Ee("action",f)]})}),a.jsx(rn,{children:D.map(J=>{var re;return a.jsxs(Ke,{children:[a.jsx(Ie,{children:a.jsx(H.BookOpen,{className:"tw-pr-0",size:18})}),a.jsx(Ie,{children:J.displayName}),a.jsx(Ie,{className:"tw-font-medium",children:J.fullName}),a.jsx(Ie,{children:J.bestLanguageName}),a.jsx(Ie,{children:((re=Z.find(ye=>ye.value===J.type))==null?void 0:re.label)??se}),a.jsx(Ie,{children:J.size}),a.jsx(Ie,{children:a.jsxs("div",{className:"tw-flex tw-justify-between",children:[Em(J,U.map(ye=>ye.dblEntryUid),S,y,E,W),J.installed&&a.jsxs(In,{children:[a.jsx(ir,{asChild:!0,children:a.jsx(fe,{variant:"ghost",children:a.jsx(H.Ellipsis,{className:"tw-w-4"})})}),a.jsxs(Jt,{align:"start",children:[a.jsx(Cn,{onClick:()=>l(J.projectId),children:a.jsx("span",{children:R})}),a.jsx(Qt,{}),a.jsx(Cn,{onClick:()=>W(J.dblEntryUid,"remove"),children:a.jsx("span",{children:_})})]})]})]})})]},J.displayName+J.fullName)})})]})})}),a.jsx(ta,{className:"tw-flex-shrink-0 tw-justify-center tw-border-t tw-p-4",children:D.length>0&&a.jsx(je,{className:"tw-font-normal",children:`${$} ${D.length} ${L}`})})]})})}const Tm=(e,t)=>e[t]??t;function Rm({knownUiLanguages:e,primaryLanguage:t="en",fallbackLanguages:n=[],onLanguagesChange:r,onPrimaryLanguageChange:o,onFallbackLanguagesChange:s,localizedStrings:i,className:l}){const c=Tm(i,"%settings_uiLanguageSelector_selectFallbackLanguages%"),[d,u]=g.useState(!1),f=b=>{o&&o(b),r&&r([b,...n.filter(x=>x!==b)]),s&&n.find(x=>x===b)&&s([...n.filter(x=>x!==b)]),u(!1)},w=(b,x)=>{var h,k,S,E,j,v;const m=x!==b?((k=(h=e[b])==null?void 0:h.uiNames)==null?void 0:k[x])??((E=(S=e[b])==null?void 0:S.uiNames)==null?void 0:E.en):void 0;return m?`${(j=e[b])==null?void 0:j.autonym} (${m})`:(v=e[b])==null?void 0:v.autonym};return a.jsxs("div",{className:N("pr-twp tw-max-w-sm",l),children:[a.jsxs(Ct,{name:"uiLanguage",value:t,onValueChange:f,open:d,onOpenChange:b=>u(b),children:[a.jsx(ft,{children:a.jsx(Tt,{})}),a.jsx(mt,{className:"tw-z-[250]",children:Object.keys(e).map(b=>a.jsx(ze,{value:b,children:w(b,t)},b))})]}),t!=="en"&&a.jsxs(a.Fragment,{children:[a.jsx(je,{className:"tw-ms-3",children:c}),a.jsx("div",{className:"tw-ms-3",children:a.jsxs(je,{children:["Currently:"," ",(n==null?void 0:n.length)>0?`${n.map(b=>w(b,t)).join(", ")}`:`default (${e.en.autonym})`]})})]})]})}const Om=(e,t)=>{g.useEffect(()=>{if(!e)return()=>{};const n=e(t);return()=>{n()}},[e,t])},qr=()=>!1,_m=(e,t)=>{const[n]=ar(g.useCallback(async()=>{if(!e)return qr;const r=await Promise.resolve(e(t));return async()=>r()},[t,e]),qr,{preserveValue:!1});g.useEffect(()=>()=>{n!==qr&&n()},[n])};Object.defineProperty(exports,"sonner",{enumerable:!0,get:()=>ws.toast});exports.Alert=Ki;exports.AlertDescription=Zi;exports.AlertTitle=Ji;exports.BOOK_SELECTOR_STRING_KEYS=vc;exports.Badge=el;exports.BookChapterControl=uc;exports.BookSelectionMode=Is;exports.BookSelector=xc;exports.Button=fe;exports.Card=Ko;exports.CardContent=ea;exports.CardDescription=Qo;exports.CardFooter=ta;exports.CardHeader=Jo;exports.CardTitle=Zo;exports.ChapterRangeSelector=Ps;exports.Checkbox=cr;exports.Checklist=pd;exports.ComboBox=Zn;exports.DataTable=Vs;exports.DisableButton=gm;exports.DropdownMenu=In;exports.DropdownMenuCheckboxItem=lr;exports.DropdownMenuContent=Jt;exports.DropdownMenuGroup=gs;exports.DropdownMenuItem=Cn;exports.DropdownMenuItemType=il;exports.DropdownMenuLabel=Zt;exports.DropdownMenuPortal=zl;exports.DropdownMenuRadioGroup=Fl;exports.DropdownMenuRadioItem=co;exports.DropdownMenuSeparator=Qt;exports.DropdownMenuShortcut=xs;exports.DropdownMenuSub=Ll;exports.DropdownMenuSubContent=vs;exports.DropdownMenuSubTrigger=bs;exports.DropdownMenuTrigger=ir;exports.EnableButton=hm;exports.FILTERABLE_RESOURCE_LIST_STRING_KEYS=jm;exports.Filter=lo;exports.FilterButton=sl;exports.FilterDropdown=xm;exports.FilterableResourceList=Cm;exports.Footer=km;exports.GridMenu=Yi;exports.HamburgerMenuButton=Wi;exports.INVENTORY_STRING_KEYS=Rc;exports.IconButton=cm;exports.Input=Pt;exports.InstallButton=mm;exports.Inventory=Pc;exports.Label=je;exports.MarkdownRenderer=vm;exports.MenuItem=Wo;exports.MoreInfo=Nm;exports.MultiSelectComboBox=qs;exports.NavigationContentSearch=Ic;exports.NoExtensionsFound=ym;exports.RadioGroup=fo;exports.RadioGroupItem=Jn;exports.ScriptureResultsViewer=id;exports.ScrollGroupSelector=ld;exports.SearchBar=ur;exports.Select=Ct;exports.SelectContent=mt;exports.SelectGroup=Ms;exports.SelectItem=ze;exports.SelectLabel=$s;exports.SelectScrollDownButton=No;exports.SelectScrollUpButton=yo;exports.SelectSeparator=As;exports.SelectTrigger=ft;exports.SelectValue=Tt;exports.Separator=pr;exports.SettingsList=cd;exports.SettingsListHeader=ud;exports.SettingsListItem=dd;exports.SettingsSidebar=ni;exports.SettingsSidebarContentSearch=Qc;exports.Slider=tl;exports.Sonner=wm;exports.Spinner=bt;exports.Switch=nl;exports.Table=tn;exports.TableBody=rn;exports.TableCaption=Bs;exports.TableCell=Ie;exports.TableFooter=Ds;exports.TableHead=st;exports.TableHeader=nn;exports.TableRow=Ke;exports.Tabs=fm;exports.TabsContent=al;exports.TabsList=rl;exports.TabsTrigger=ol;exports.TextField=dm;exports.ToggleGroup=ko;exports.ToggleGroupItem=yn;exports.Toolbar=um;exports.UiLanguageSelector=Rm;exports.UpdateButton=bm;exports.VersionHistory=ll;exports.VerticalTabs=jo;exports.VerticalTabsContent=Eo;exports.VerticalTabsList=So;exports.VerticalTabsTrigger=Hs;exports.badgeVariants=Qi;exports.buttonVariants=Cs;exports.cn=N;exports.getBookNumFromId=Ls;exports.getLinesFromUSFM=zs;exports.getNumberFromUSFM=Wr;exports.getStatusForItem=Fs;exports.inventoryCountColumn=Cc;exports.inventoryItemColumn=Sc;exports.inventoryStatusColumn=Tc;exports.useEvent=Om;exports.useEventAsync=_m;exports.usePromise=ar;function Pm(e,t="top"){if(!e||typeof document>"u")return;const n=document.head||document.querySelector("head"),r=n.querySelector(":first-child"),o=document.createElement("style");o.appendChild(document.createTextNode(e)),t==="top"&&r?n.insertBefore(o,r):n.appendChild(o)}Pm(`*, ::before, ::after { --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; @@ -552,7 +552,7 @@ video:where(.pr-twp,.pr-twp *) { } /* Make elements with the HTML hidden attribute stay hidden by default */ -[hidden]:where(.pr-twp,.pr-twp *) { +[hidden]:where(:not([hidden="until-found"])):where(.pr-twp,.pr-twp *) { display: none; } /* Adding the preflight selector (pr-twp) to components was not changing the font as desired. @@ -1144,9 +1144,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-left-0 { left: 0px; } -.tw-left-1\\/2 { - left: 50%; -} .tw-left-3 { left: 0.75rem; } @@ -1192,9 +1189,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-top-4 { top: 1rem; } -.tw-top-48 { - top: 12rem; -} .tw-top-\\[-1px\\] { top: -1px; } @@ -1247,10 +1241,6 @@ video:where(.pr-twp,.pr-twp *) { margin-left: 0.875rem; margin-right: 0.875rem; } -.tw-mx-auto { - margin-left: auto; - margin-right: auto; -} .tw-my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; @@ -1272,12 +1262,12 @@ video:where(.pr-twp,.pr-twp *) { .tw-mb-20 { margin-bottom: 5rem; } -.tw-mb-6 { - margin-bottom: 1.5rem; -} .tw-me-2 { margin-inline-end: 0.5rem; } +.tw-me-4 { + margin-inline-end: 1rem; +} .tw-ml-1 { margin-left: 0.25rem; } @@ -1435,15 +1425,15 @@ video:where(.pr-twp,.pr-twp *) { .tw-h-\\[var\\(--radix-select-trigger-height\\)\\] { height: var(--radix-select-trigger-height); } -.tw-h-auto { - height: auto; -} .tw-h-full { height: 100%; } .tw-h-px { height: 1px; } +.tw-h-screen { + height: 100vh; +} .tw-h-svh { height: 100svh; } @@ -1552,9 +1542,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-w-\\[300px\\] { width: 300px; } -.tw-w-\\[30px\\] { - width: 30px; -} .tw-w-\\[350px\\] { width: 350px; } @@ -1573,9 +1560,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-min-w-0 { min-width: 0px; } -.tw-min-w-10 { - min-width: 2.5rem; -} .tw-min-w-5 { min-width: 1.25rem; } @@ -1588,9 +1572,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-min-w-\\[var\\(--radix-select-trigger-width\\)\\] { min-width: var(--radix-select-trigger-width); } -.tw-max-w-4xl { - max-width: 56rem; -} .tw-max-w-64 { max-width: 16rem; } @@ -1606,9 +1587,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-flex-1 { flex: 1 1 0%; } -.tw-flex-shrink { - flex-shrink: 1; -} .tw-flex-shrink-0 { flex-shrink: 0; } @@ -1718,9 +1696,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-auto-rows-max { grid-auto-rows: max-content; } -.tw-grid-cols-1 { - grid-template-columns: repeat(1, minmax(0, 1fr)); -} .tw-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } @@ -1946,22 +1921,22 @@ video:where(.pr-twp,.pr-twp *) { } .tw-border-black { --tw-border-opacity: 1; - border-color: rgb(0 0 0 / var(--tw-border-opacity)); + border-color: rgb(0 0 0 / var(--tw-border-opacity, 1)); } .tw-border-blue-500 { --tw-border-opacity: 1; - border-color: rgb(59 130 246 / var(--tw-border-opacity)); + border-color: rgb(59 130 246 / var(--tw-border-opacity, 1)); } .tw-border-destructive\\/50 { border-color: hsl(var(--destructive) / 0.5); } .tw-border-gray-300 { --tw-border-opacity: 1; - border-color: rgb(209 213 219 / var(--tw-border-opacity)); + border-color: rgb(209 213 219 / var(--tw-border-opacity, 1)); } .tw-border-gray-400 { --tw-border-opacity: 1; - border-color: rgb(156 163 175 / var(--tw-border-opacity)); + border-color: rgb(156 163 175 / var(--tw-border-opacity, 1)); } .tw-border-input { border-color: hsl(var(--input)); @@ -1971,7 +1946,7 @@ video:where(.pr-twp,.pr-twp *) { } .tw-border-red-600 { --tw-border-opacity: 1; - border-color: rgb(220 38 38 / var(--tw-border-opacity)); + border-color: rgb(220 38 38 / var(--tw-border-opacity, 1)); } .tw-border-sidebar-border { border-color: hsl(var(--sidebar-border)); @@ -1981,15 +1956,15 @@ video:where(.pr-twp,.pr-twp *) { } .tw-border-s-indigo-200 { --tw-border-opacity: 1; - border-inline-start-color: rgb(199 210 254 / var(--tw-border-opacity)); + border-inline-start-color: rgb(199 210 254 / var(--tw-border-opacity, 1)); } .tw-border-s-purple-200 { --tw-border-opacity: 1; - border-inline-start-color: rgb(233 213 255 / var(--tw-border-opacity)); + border-inline-start-color: rgb(233 213 255 / var(--tw-border-opacity, 1)); } .tw-border-s-red-200 { --tw-border-opacity: 1; - border-inline-start-color: rgb(254 202 202 / var(--tw-border-opacity)); + border-inline-start-color: rgb(254 202 202 / var(--tw-border-opacity, 1)); } .tw-bg-accent { background-color: hsl(var(--accent)); @@ -1999,15 +1974,15 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-amber-100 { --tw-bg-opacity: 1; - background-color: rgb(254 243 199 / var(--tw-bg-opacity)); + background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1)); } .tw-bg-amber-200 { --tw-bg-opacity: 1; - background-color: rgb(253 230 138 / var(--tw-bg-opacity)); + background-color: rgb(253 230 138 / var(--tw-bg-opacity, 1)); } .tw-bg-amber-50 { --tw-bg-opacity: 1; - background-color: rgb(255 251 235 / var(--tw-bg-opacity)); + background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1)); } .tw-bg-background { background-color: hsl(var(--background)); @@ -2017,11 +1992,11 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-blue-600 { --tw-bg-opacity: 1; - background-color: rgb(37 99 235 / var(--tw-bg-opacity)); + background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1)); } .tw-bg-blue-700 { --tw-bg-opacity: 1; - background-color: rgb(29 78 216 / var(--tw-bg-opacity)); + background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1)); } .tw-bg-border { background-color: hsl(var(--border)); @@ -2043,15 +2018,15 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-gray-100 { --tw-bg-opacity: 1; - background-color: rgb(243 244 246 / var(--tw-bg-opacity)); + background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1)); } .tw-bg-gray-300 { --tw-bg-opacity: 1; - background-color: rgb(209 213 219 / var(--tw-bg-opacity)); + background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1)); } .tw-bg-gray-400 { --tw-bg-opacity: 1; - background-color: rgb(156 163 175 / var(--tw-bg-opacity)); + background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1)); } .tw-bg-input { background-color: hsl(var(--input)); @@ -2070,7 +2045,7 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-neutral-300 { --tw-bg-opacity: 1; - background-color: rgb(212 212 212 / var(--tw-bg-opacity)); + background-color: rgb(212 212 212 / var(--tw-bg-opacity, 1)); } .tw-bg-popover { background-color: hsl(var(--popover)); @@ -2101,14 +2076,14 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-slate-100 { --tw-bg-opacity: 1; - background-color: rgb(241 245 249 / var(--tw-bg-opacity)); + background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1)); } .tw-bg-transparent { background-color: transparent; } .tw-bg-white { --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); + background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); } .tw-bg-none { background-image: none; @@ -2362,19 +2337,19 @@ video:where(.pr-twp,.pr-twp *) { } .tw-text-amber-800 { --tw-text-opacity: 1; - color: rgb(146 64 14 / var(--tw-text-opacity)); + color: rgb(146 64 14 / var(--tw-text-opacity, 1)); } .tw-text-amber-900 { --tw-text-opacity: 1; - color: rgb(120 53 15 / var(--tw-text-opacity)); + color: rgb(120 53 15 / var(--tw-text-opacity, 1)); } .tw-text-black { --tw-text-opacity: 1; - color: rgb(0 0 0 / var(--tw-text-opacity)); + color: rgb(0 0 0 / var(--tw-text-opacity, 1)); } .tw-text-blue-600 { --tw-text-opacity: 1; - color: rgb(37 99 235 / var(--tw-text-opacity)); + color: rgb(37 99 235 / var(--tw-text-opacity, 1)); } .tw-text-card-foreground { color: hsl(var(--card-foreground)); @@ -2396,27 +2371,27 @@ video:where(.pr-twp,.pr-twp *) { } .tw-text-gray-400 { --tw-text-opacity: 1; - color: rgb(156 163 175 / var(--tw-text-opacity)); + color: rgb(156 163 175 / var(--tw-text-opacity, 1)); } .tw-text-gray-500 { --tw-text-opacity: 1; - color: rgb(107 114 128 / var(--tw-text-opacity)); + color: rgb(107 114 128 / var(--tw-text-opacity, 1)); } .tw-text-gray-600 { --tw-text-opacity: 1; - color: rgb(75 85 99 / var(--tw-text-opacity)); + color: rgb(75 85 99 / var(--tw-text-opacity, 1)); } .tw-text-gray-700 { --tw-text-opacity: 1; - color: rgb(55 65 81 / var(--tw-text-opacity)); + color: rgb(55 65 81 / var(--tw-text-opacity, 1)); } .tw-text-gray-800 { --tw-text-opacity: 1; - color: rgb(31 41 55 / var(--tw-text-opacity)); + color: rgb(31 41 55 / var(--tw-text-opacity, 1)); } .tw-text-gray-900 { --tw-text-opacity: 1; - color: rgb(17 24 39 / var(--tw-text-opacity)); + color: rgb(17 24 39 / var(--tw-text-opacity, 1)); } .tw-text-inherit { color: inherit; @@ -2435,11 +2410,11 @@ video:where(.pr-twp,.pr-twp *) { } .tw-text-red-500 { --tw-text-opacity: 1; - color: rgb(239 68 68 / var(--tw-text-opacity)); + color: rgb(239 68 68 / var(--tw-text-opacity, 1)); } .tw-text-red-600 { --tw-text-opacity: 1; - color: rgb(220 38 38 / var(--tw-text-opacity)); + color: rgb(220 38 38 / var(--tw-text-opacity, 1)); } .tw-text-secondary-foreground { color: hsl(var(--secondary-foreground)); @@ -2452,15 +2427,15 @@ video:where(.pr-twp,.pr-twp *) { } .tw-text-slate-900 { --tw-text-opacity: 1; - color: rgb(15 23 42 / var(--tw-text-opacity)); + color: rgb(15 23 42 / var(--tw-text-opacity, 1)); } .tw-text-white { --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); + color: rgb(255 255 255 / var(--tw-text-opacity, 1)); } .tw-text-yellow-900 { --tw-text-opacity: 1; - color: rgb(113 63 18 / var(--tw-text-opacity)); + color: rgb(113 63 18 / var(--tw-text-opacity, 1)); } .tw-underline { text-decoration-line: underline; @@ -2610,18 +2585,12 @@ video:where(.pr-twp,.pr-twp *) { --tw-enter-translate-x: initial; --tw-enter-translate-y: initial; } -.tw-fade-in { - --tw-enter-opacity: 0; -} .tw-fade-in-0 { --tw-enter-opacity: 0; } .tw-zoom-in-95 { --tw-enter-scale: .95; } -.tw-slide-in-from-bottom-4 { - --tw-enter-translate-y: 1rem; -} .tw-duration-200 { animation-duration: 200ms; } @@ -2699,7 +2668,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-border-blue-600:hover { --tw-border-opacity: 1; - border-color: rgb(37 99 235 / var(--tw-border-opacity)); + border-color: rgb(37 99 235 / var(--tw-border-opacity, 1)); } .hover\\:tw-bg-accent:hover { @@ -2708,7 +2677,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-bg-blue-700:hover { --tw-bg-opacity: 1; - background-color: rgb(29 78 216 / var(--tw-bg-opacity)); + background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1)); } .hover\\:tw-bg-destructive\\/80:hover { @@ -2721,7 +2690,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-bg-gray-400:hover { --tw-bg-opacity: 1; - background-color: rgb(156 163 175 / var(--tw-bg-opacity)); + background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1)); } .hover\\:tw-bg-muted:hover { @@ -2758,7 +2727,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-bg-white:hover { --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); + background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); } .hover\\:tw-text-accent-foreground:hover { @@ -2767,7 +2736,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-text-blue-600:hover { --tw-text-opacity: 1; - color: rgb(37 99 235 / var(--tw-text-opacity)); + color: rgb(37 99 235 / var(--tw-text-opacity, 1)); } .hover\\:tw-text-foreground:hover { @@ -2776,24 +2745,20 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-text-gray-900:hover { --tw-text-opacity: 1; - color: rgb(17 24 39 / var(--tw-text-opacity)); + color: rgb(17 24 39 / var(--tw-text-opacity, 1)); } .hover\\:tw-text-muted-foreground:hover { color: hsl(var(--muted-foreground)); } -.hover\\:tw-text-primary:hover { - color: hsl(var(--primary)); -} - .hover\\:tw-text-sidebar-accent-foreground:hover { color: hsl(var(--sidebar-accent-foreground)); } .hover\\:tw-text-white:hover { --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); + color: rgb(255 255 255 / var(--tw-text-opacity, 1)); } .hover\\:tw-underline:hover { @@ -2861,7 +2826,7 @@ video:where(.pr-twp,.pr-twp *) { .focus-visible\\:tw-ring-\\[color\\:hsl\\(2400o2c 5\\%0o2c 64\\.9\\%\\)\\]:focus-visible { --tw-ring-opacity: 1; - --tw-ring-color: hsl(240 5% 64.9% / var(--tw-ring-opacity)); + --tw-ring-color: hsl(240 5% 64.9% / var(--tw-ring-opacity, 1)); } .focus-visible\\:tw-ring-ring:focus-visible { @@ -2886,7 +2851,7 @@ video:where(.pr-twp,.pr-twp *) { .active\\:tw-bg-white:active { --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); + background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); } .active\\:tw-text-sidebar-accent-foreground:active { @@ -2982,7 +2947,7 @@ video:where(.pr-twp,.pr-twp *) { .data-\\[highlighted\\]\\:tw-bg-amber-100[data-highlighted] { --tw-bg-opacity: 1; - background-color: rgb(254 243 199 / var(--tw-bg-opacity)); + background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1)); } .data-\\[selected\\=true\\]\\:tw-bg-accent[data-selected="true"] { @@ -3362,10 +3327,6 @@ video:where(.pr-twp,.pr-twp *) { flex-grow: 0; } - .md\\:tw-grid-cols-3 { - grid-template-columns: repeat(3, minmax(0, 1fr)); - } - .md\\:tw-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @@ -3713,36 +3674,6 @@ video:where(.pr-twp,.pr-twp *) { background-color: greenyellow; color: darkgreen; } -.papi-menu-item { - background-color: transparent; -} - -.papi-menu-icon-trailing { - margin-left: 10px; - place-content: flex-end; -} - -.papi-menu-item img { - max-width: 24px; - max-height: 24px; -} -.banded-row:hover { - cursor: pointer; -} - -.banded-row[data-state='selected']:hover { - cursor: default; -} -.papi-menu-drawer-paper { - height: fit-content !important; - position: absolute !important; -} - -.papi-toolbar-children { - padding: 10px; - display: flex; - gap: 8px; -} .papi-multi-column-menu { background-color: rgb(222, 222, 222); display: flex; @@ -3777,5 +3708,35 @@ video:where(.pr-twp,.pr-twp *) { color: rgb(76, 106, 76); background-color: rgb(214, 255, 152); } +.papi-menu-item { + background-color: transparent; +} + +.papi-menu-icon-trailing { + margin-left: 10px; + place-content: flex-end; +} + +.papi-menu-item img { + max-width: 24px; + max-height: 24px; +} +.banded-row:hover { + cursor: pointer; +} + +.banded-row[data-state='selected']:hover { + cursor: default; +} +.papi-menu-drawer-paper { + height: fit-content !important; + position: absolute !important; +} + +.papi-toolbar-children { + padding: 10px; + display: flex; + gap: 8px; +} `,"top"); //# sourceMappingURL=index.cjs.map diff --git a/lib/platform-bible-react/dist/index.cjs.map b/lib/platform-bible-react/dist/index.cjs.map index f386fd4c9c..fd465eab18 100644 --- a/lib/platform-bible-react/dist/index.cjs.map +++ b/lib/platform-bible-react/dist/index.cjs.map @@ -1 +1 @@ -{"version":3,"file":"index.cjs","sources":["../src/utils/shadcn-ui.util.ts","../src/components/shadcn-ui/input.tsx","../src/utils/dir-helper.util.ts","../src/components/advanced/book-chapter-control/book-chapter-input.component.tsx","../src/components/shadcn-ui/dropdown-menu.tsx","../../../node_modules/@sillsdev/scripture/dist/index.es.js","../src/components/advanced/book-chapter-control/book-menu-item.component.tsx","../src/components/advanced/book-chapter-control/chapter-select.component.tsx","../src/components/advanced/book-chapter-control/go-to-menu-item.component.tsx","../src/components/advanced/book-chapter-control/book-chapter-control.component.tsx","../src/components/shadcn-ui/button.tsx","../src/components/shadcn-ui/label.tsx","../src/components/shadcn-ui/radio-group.tsx","../src/components/shadcn-ui/popover.tsx","../src/components/shadcn-ui/dialog.tsx","../src/components/shadcn-ui/command.tsx","../src/components/basics/combo-box.component.tsx","../src/components/basics/chapter-range-selector.component.tsx","../src/components/advanced/book-selector.component.tsx","../src/components/advanced/data-table/data-table-column-toggle.component.tsx","../src/components/shadcn-ui/select.tsx","../src/components/advanced/data-table/data-table-pagination.component.tsx","../src/components/shadcn-ui/table.tsx","../src/components/advanced/data-table/data-table.component.tsx","../src/components/advanced/inventory/occurrences-table.component.tsx","../src/components/shadcn-ui/checkbox.tsx","../src/components/advanced/inventory/inventory-utils.ts","../src/components/shadcn-ui/toggle.tsx","../src/components/shadcn-ui/toggle-group.tsx","../src/components/advanced/inventory/inventory-columns.tsx","../src/components/advanced/inventory/inventory.component.tsx","../src/components/advanced/multi-select-combo-box.tsx","../src/components/basics/search-bar.component.tsx","../src/components/basics/tabs-vertical.tsx","../src/components/advanced/tab-navigation-content-search.component.tsx","../src/components/shadcn-ui/separator.tsx","../src/components/shadcn-ui/skeleton.tsx","../src/components/shadcn-ui/tooltip.tsx","../src/components/shadcn-ui/sidebar.tsx","../src/components/advanced/settings-components/settings-sidebar.component.tsx","../src/components/advanced/settings-components/settings-sidebar-content-search.component.tsx","../src/components/advanced/scripture-results-viewer/scripture-results-viewer.component.tsx","../src/components/advanced/scroll-group-selector.component.tsx","../src/components/advanced/settings-components/settings-list.component.tsx","../src/components/basics/checklist.component.tsx","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/index.js","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/esm/createTheme/shape.js","../../../node_modules/@mui/system/esm/responsivePropType.js","../../../node_modules/@mui/system/esm/merge.js","../../../node_modules/@mui/system/esm/breakpoints.js","../../../node_modules/@mui/system/esm/style.js","../../../node_modules/@mui/system/esm/memoize.js","../../../node_modules/@mui/system/esm/spacing.js","../../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../../node_modules/@mui/system/esm/compose.js","../../../node_modules/@mui/system/esm/borders.js","../../../node_modules/@mui/system/esm/cssGrid.js","../../../node_modules/@mui/system/esm/palette.js","../../../node_modules/@mui/system/esm/sizing.js","../../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../../node_modules/@mui/system/esm/useTheme.js","../../../node_modules/@mui/system/esm/createStyled.js","../../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/esm/colorManipulator.js","../../../node_modules/@mui/material/styles/createMixins.js","../../../node_modules/@mui/material/colors/common.js","../../../node_modules/@mui/material/colors/grey.js","../../../node_modules/@mui/material/colors/purple.js","../../../node_modules/@mui/material/colors/red.js","../../../node_modules/@mui/material/colors/orange.js","../../../node_modules/@mui/material/colors/blue.js","../../../node_modules/@mui/material/colors/lightBlue.js","../../../node_modules/@mui/material/colors/green.js","../../../node_modules/@mui/material/styles/createPalette.js","../../../node_modules/@mui/material/styles/createTypography.js","../../../node_modules/@mui/material/styles/shadows.js","../../../node_modules/@mui/material/styles/createTransitions.js","../../../node_modules/@mui/material/styles/zIndex.js","../../../node_modules/@mui/material/styles/createTheme.js","../../../node_modules/@mui/material/styles/defaultTheme.js","../../../node_modules/@mui/material/styles/identifier.js","../../../node_modules/@mui/material/styles/useThemeProps.js","../../../node_modules/@mui/material/styles/styled.js","../../../node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/utils/createSvgIcon.js","../../../node_modules/@mui/material/utils/index.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/@mui/icons-material/ArrowRight.js","../../../node_modules/@mui/base/utils/isHostComponent.js","../../../node_modules/@mui/base/utils/appendOwnerState.js","../../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/utils/extractEventHandlers.js","../../../node_modules/@mui/base/utils/resolveComponentProps.js","../../../node_modules/@mui/base/utils/omitEventHandlers.js","../../../node_modules/@mui/base/utils/mergeSlotProps.js","../../../node_modules/@mui/base/utils/useSlotProps.js","../../../node_modules/@mui/base/generateUtilityClass/index.js","../../../node_modules/@mui/base/generateUtilityClasses/index.js","../../../node_modules/@mui/base/Portal/Portal.js","../../../node_modules/@popperjs/core/lib/enums.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../node_modules/@popperjs/core/lib/utils/math.js","../../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../node_modules/@popperjs/core/lib/utils/within.js","../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../node_modules/@popperjs/core/lib/utils/debounce.js","../../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../node_modules/@popperjs/core/lib/createPopper.js","../../../node_modules/@popperjs/core/lib/popper.js","../../../node_modules/@mui/base/Popper/popperClasses.js","../../../node_modules/@mui/base/Popper/Popper.js","../../../node_modules/@mui/material/styles/useTheme.js","../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../node_modules/react-transition-group/esm/config.js","../../../node_modules/react-transition-group/esm/utils/PropTypes.js","../../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../node_modules/react-transition-group/esm/utils/reflow.js","../../../node_modules/react-transition-group/esm/Transition.js","../../../node_modules/@mui/material/transitions/utils.js","../../../node_modules/@mui/material/Grow/Grow.js","../../../node_modules/@mui/material/Popper/Popper.js","../../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../node_modules/@mui/material/Tooltip/Tooltip.js","../src/components/mui/menu-item.component.tsx","../src/components/mui/grouped-menu-item-list.component.tsx","../src/components/mui/top-level-menu.component.tsx","../src/components/mui/grid-menu.component.tsx","../src/hooks/use-promise.hook.ts","../../../node_modules/@mui/icons-material/esm/Menu.js","../src/components/mui/hamburger-menu-button.component.tsx","../src/components/mui/icon-button.component.tsx","../src/components/basics/spinner.component.tsx","../src/components/basics/text-field.component.tsx","../src/components/mui/toolbar.component.tsx","../src/components/shadcn-ui/alert.tsx","../src/components/shadcn-ui/badge.tsx","../src/components/shadcn-ui/card.tsx","../src/components/shadcn-ui/sonner.tsx","../src/components/shadcn-ui/slider.tsx","../src/components/shadcn-ui/switch.tsx","../src/components/shadcn-ui/tabs.tsx","../src/components/advanced/extension-marketplace/buttons/install-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/enable-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/disable-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/update-button.component.tsx","../src/components/advanced/extension-marketplace/markdown-renderer.component.tsx","../src/components/advanced/extension-marketplace/buttons/filter-button.component.tsx","../src/components/advanced/extension-marketplace/filter-dropdown.component.tsx","../src/components/advanced/extension-marketplace/no-extensions-found.component.tsx","../src/components/advanced/extension-marketplace/more-info.component.tsx","../src/components/advanced/extension-marketplace/version-history.component.tsx","../src/components/advanced/extension-marketplace/footer.component.tsx","../src/components/advanced/filterable-resource-list/filterable-resource-list.component.tsx","../src/components/advanced/ui-language-selector.component.tsx","../src/hooks/use-event.hook.ts","../src/hooks/use-event-async.hook.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\nconst twMergeCustom = extendTailwindMerge({ prefix: 'tw-' });\n\n/**\n * Tailwind and CSS class application helper function. Uses\n * [`clsx`](https://www.npmjs.com/package/clsx) to make it easy to apply classes conditionally using\n * object syntax, and uses [`tailwind-merge`](https://www.npmjs.com/package/tailwind-merge) to make\n * it easy to merge/overwrite Tailwind classes in a programmer-logic-friendly way.\n *\n * Note: `tailwind-merge` is configured to use the prefix `tw-`, so you must use the same prefix\n * with any Tailwind classes you use with this function to successfully overwrite other Tailwind\n * classes. `platform-bible-react` is configured to use `tw-` as its Tailwind prefix, so any\n * Tailwind classes you pass into `platform-bible-react` components will be compared using the `tw-`\n * prefix.\n *\n * This function was popularized by\n * [shadcn/ui](https://ui.shadcn.com/docs/installation/manual#add-a-cn-helper). See [ByteGrad's\n * explanation video](https://www.youtube.com/watch?v=re2JFITR7TI) for more information.\n *\n * @example\n *\n * ```typescript\n * const borderShouldBeBlue = true;\n * const textShouldBeRed = true;\n * const heightShouldBe20 = false;\n * const classString = cn(\n * 'tw-bg-primary tw-h-10 tw-text-primary-foreground',\n * 'tw-bg-secondary',\n * {\n * 'tw-border-blue-500': borderShouldBeBlue,\n * 'tw-text-red-500': textShouldBeRed,\n * 'tw-h-20': heightShouldBe20,\n * },\n * 'some-class',\n * );\n * ```\n *\n * The resulting `classString` is `'tw-h-10 tw-bg-secondary tw-border-blue-500 tw-text-red-500\n * some-class'`\n *\n * - Notice that `'tw-bg-secondary'`, specified later, overwrote `'tw-bg-primary'`, specified earlier,\n * because they are Tailwind classes that affect the same css property\n * - Notice that `'tw-text-red-500'`, specified later, overwrote `'tw-text-primary-foreground'`,\n * specified earlier, because they are Tailwind classes that affect the same css property\n * - Notice that `'tw-h-20'`, specified later, did not overwrite `'tw-h-10'`, specified earlier,\n * because `'tw-h-20'` is part of a conditional class object and its value evaluated to `false`;\n * therefore it was not applied\n * - Notice that `'some-class'` was applied. This function is not limited only to Tailwind classes.\n *\n *\n * @param inputs Class strings or `clsx` conditional class objects to merge. Tailwind classes\n * specified later in the arguments overwrite similar Tailwind classes specified earlier in the\n * arguments\n * @returns Class string containing all applicable classes from the arguments based on the rules\n * described above\n */\n// shadcn/ui uses this export in its boilerplate code\n// eslint-disable-next-line import/prefer-default-export\nexport function cn(...inputs: ClassValue[]) {\n return twMergeCustom(clsx(inputs));\n}\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport interface InputProps extends React.InputHTMLAttributes {}\n\nexport const Input = React.forwardRef(\n ({ className, type, ...props }, ref) => {\n return (\n \n );\n },\n);\nInput.displayName = 'Input';\n","/** Text and layout direction */\nexport type Direction = 'rtl' | 'ltr';\n\nconst STORAGE_KEY: string = 'layoutDirection';\n\n/** Read layout direction from localStorage or return 'ltr' */\nexport function readDirection(): Direction {\n const retrieved = localStorage.getItem(STORAGE_KEY);\n if (retrieved === 'rtl') {\n return retrieved;\n }\n return 'ltr';\n}\n\n/** Write layout direction to localStorage */\nexport function persistDirection(dir: Direction): void {\n localStorage.setItem(STORAGE_KEY, dir);\n}\n","import { FocusEventHandler, forwardRef, KeyboardEvent, MouseEventHandler } from 'react';\nimport { History } from 'lucide-react';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport type BookChapterInputProps = {\n handleSearch: (searchString: string) => void;\n handleKeyDown: (event: KeyboardEvent) => void;\n handleOnClick: MouseEventHandler;\n handleSubmit: () => void;\n onFocus?: FocusEventHandler;\n value: string;\n placeholder: string;\n};\n\n// Shadcn Input sets type to \"button\"- HAVE to prop spread before setting type\nconst BookChapterInput = forwardRef(\n (\n { handleSearch, handleKeyDown, handleOnClick, handleSubmit, ...props }: BookChapterInputProps,\n ref,\n ) => {\n const dir: Direction = readDirection();\n return (\n
\n handleSearch(event.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n handleSubmit();\n }\n handleKeyDown(e);\n }}\n onClick={handleOnClick}\n ref={ref}\n />\n {\n // eslint-disable-next-line no-console\n console.log('back in history');\n }}\n />\n
\n );\n },\n);\n\nexport default BookChapterInput;\n","import React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nexport const DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nexport type DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n className?: string;\n};\n\nexport type DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n className?: string;\n sideOffset?: number;\n};\n\nexport type DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n className?: string;\n checked?: boolean;\n};\n\nexport type DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.RadioItem\n> & {\n className?: string;\n};\n\nexport type DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n className?: string;\n};\n\nexport type DropdownMenuShortcutProps = React.HTMLAttributes & {\n className?: string;\n};\n\nexport const DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubTriggerProps\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nexport const DropdownMenuSubContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubContentProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* TODO: bug in shadcn component: DropdownMenuContent does not support a dir prop.\nFor the content we can work around this by adding a div with dir, but that would not cause\nthe scrollbar to appear left in an rtl layout (e.g. see book-chapter-control.component) */\nexport const DropdownMenuContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuContentProps\n>(({ className, sideOffset = 4, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n
{children}
\n \n
\n );\n});\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport const DropdownMenuItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuItemProps\n>(({ className, inset, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nexport const DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuCheckboxItemProps\n>(({ className, children, checked, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nexport const DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuRadioItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nexport const DropdownMenuLabel = React.forwardRef<\n React.ElementRef,\n DropdownMenuLabelProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nexport const DropdownMenuSeparator = React.forwardRef<\n React.ElementRef,\n DropdownMenuSeparatorProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nexport function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps) {\n return (\n \n );\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n","var P = Object.defineProperty;\nvar R = (t, e, s) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;\nvar n = (t, e, s) => R(t, typeof e != \"symbol\" ? e + \"\" : e, s);\nclass _ {\n constructor() {\n n(this, \"books\");\n n(this, \"firstSelectedBookNum\");\n n(this, \"lastSelectedBookNum\");\n n(this, \"count\");\n n(this, \"selectedBookNumbers\");\n n(this, \"selectedBookIds\");\n }\n}\nconst N = [\n \"GEN\",\n \"EXO\",\n \"LEV\",\n \"NUM\",\n \"DEU\",\n \"JOS\",\n \"JDG\",\n \"RUT\",\n \"1SA\",\n \"2SA\",\n // 10\n \"1KI\",\n \"2KI\",\n \"1CH\",\n \"2CH\",\n \"EZR\",\n \"NEH\",\n \"EST\",\n \"JOB\",\n \"PSA\",\n \"PRO\",\n // 20\n \"ECC\",\n \"SNG\",\n \"ISA\",\n \"JER\",\n \"LAM\",\n \"EZK\",\n \"DAN\",\n \"HOS\",\n \"JOL\",\n \"AMO\",\n // 30\n \"OBA\",\n \"JON\",\n \"MIC\",\n \"NAM\",\n \"HAB\",\n \"ZEP\",\n \"HAG\",\n \"ZEC\",\n \"MAL\",\n \"MAT\",\n // 40\n \"MRK\",\n \"LUK\",\n \"JHN\",\n \"ACT\",\n \"ROM\",\n \"1CO\",\n \"2CO\",\n \"GAL\",\n \"EPH\",\n \"PHP\",\n // 50\n \"COL\",\n \"1TH\",\n \"2TH\",\n \"1TI\",\n \"2TI\",\n \"TIT\",\n \"PHM\",\n \"HEB\",\n \"JAS\",\n \"1PE\",\n // 60\n \"2PE\",\n \"1JN\",\n \"2JN\",\n \"3JN\",\n \"JUD\",\n \"REV\",\n \"TOB\",\n \"JDT\",\n \"ESG\",\n \"WIS\",\n // 70\n \"SIR\",\n \"BAR\",\n \"LJE\",\n \"S3Y\",\n \"SUS\",\n \"BEL\",\n \"1MA\",\n \"2MA\",\n \"3MA\",\n \"4MA\",\n // 80\n \"1ES\",\n \"2ES\",\n \"MAN\",\n \"PS2\",\n \"ODA\",\n \"PSS\",\n \"JSA\",\n // actual variant text for JOS, now in LXA text\n \"JDB\",\n // actual variant text for JDG, now in LXA text\n \"TBS\",\n // actual variant text for TOB, now in LXA text\n \"SST\",\n // actual variant text for SUS, now in LXA text // 90\n \"DNT\",\n // actual variant text for DAN, now in LXA text\n \"BLT\",\n // actual variant text for BEL, now in LXA text\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n // 100\n \"BAK\",\n \"OTH\",\n \"3ES\",\n // Used previously but really should be 2ES\n \"EZA\",\n // Used to be called 4ES, but not actually in any known project\n \"5EZ\",\n // Used to be called 5ES, but not actually in any known project\n \"6EZ\",\n // Used to be called 6ES, but not actually in any known project\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n // 110\n \"NDX\",\n \"DAG\",\n \"PS3\",\n \"2BA\",\n \"LBA\",\n \"JUB\",\n \"ENO\",\n \"1MQ\",\n \"2MQ\",\n \"3MQ\",\n // 120\n \"REP\",\n \"4BA\",\n \"LAO\"\n], B = [\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n \"BAK\",\n \"OTH\",\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n \"NDX\"\n], O = [\n \"Genesis\",\n \"Exodus\",\n \"Leviticus\",\n \"Numbers\",\n \"Deuteronomy\",\n \"Joshua\",\n \"Judges\",\n \"Ruth\",\n \"1 Samuel\",\n \"2 Samuel\",\n \"1 Kings\",\n \"2 Kings\",\n \"1 Chronicles\",\n \"2 Chronicles\",\n \"Ezra\",\n \"Nehemiah\",\n \"Esther (Hebrew)\",\n \"Job\",\n \"Psalms\",\n \"Proverbs\",\n \"Ecclesiastes\",\n \"Song of Songs\",\n \"Isaiah\",\n \"Jeremiah\",\n \"Lamentations\",\n \"Ezekiel\",\n \"Daniel (Hebrew)\",\n \"Hosea\",\n \"Joel\",\n \"Amos\",\n \"Obadiah\",\n \"Jonah\",\n \"Micah\",\n \"Nahum\",\n \"Habakkuk\",\n \"Zephaniah\",\n \"Haggai\",\n \"Zechariah\",\n \"Malachi\",\n \"Matthew\",\n \"Mark\",\n \"Luke\",\n \"John\",\n \"Acts\",\n \"Romans\",\n \"1 Corinthians\",\n \"2 Corinthians\",\n \"Galatians\",\n \"Ephesians\",\n \"Philippians\",\n \"Colossians\",\n \"1 Thessalonians\",\n \"2 Thessalonians\",\n \"1 Timothy\",\n \"2 Timothy\",\n \"Titus\",\n \"Philemon\",\n \"Hebrews\",\n \"James\",\n \"1 Peter\",\n \"2 Peter\",\n \"1 John\",\n \"2 John\",\n \"3 John\",\n \"Jude\",\n \"Revelation\",\n \"Tobit\",\n \"Judith\",\n \"Esther Greek\",\n \"Wisdom of Solomon\",\n \"Sirach (Ecclesiasticus)\",\n \"Baruch\",\n \"Letter of Jeremiah\",\n \"Song of 3 Young Men\",\n \"Susanna\",\n \"Bel and the Dragon\",\n \"1 Maccabees\",\n \"2 Maccabees\",\n \"3 Maccabees\",\n \"4 Maccabees\",\n \"1 Esdras (Greek)\",\n \"2 Esdras (Latin)\",\n \"Prayer of Manasseh\",\n \"Psalm 151\",\n \"Odes\",\n \"Psalms of Solomon\",\n // WARNING, if you change the spelling of the *obsolete* tag be sure to update\n // IsObsolete routine\n \"Joshua A. *obsolete*\",\n \"Judges B. *obsolete*\",\n \"Tobit S. *obsolete*\",\n \"Susanna Th. *obsolete*\",\n \"Daniel Th. *obsolete*\",\n \"Bel Th. *obsolete*\",\n \"Extra A\",\n \"Extra B\",\n \"Extra C\",\n \"Extra D\",\n \"Extra E\",\n \"Extra F\",\n \"Extra G\",\n \"Front Matter\",\n \"Back Matter\",\n \"Other Matter\",\n \"3 Ezra *obsolete*\",\n \"Apocalypse of Ezra\",\n \"5 Ezra (Latin Prologue)\",\n \"6 Ezra (Latin Epilogue)\",\n \"Introduction\",\n \"Concordance \",\n \"Glossary \",\n \"Topical Index\",\n \"Names Index\",\n \"Daniel Greek\",\n \"Psalms 152-155\",\n \"2 Baruch (Apocalypse)\",\n \"Letter of Baruch\",\n \"Jubilees\",\n \"Enoch\",\n \"1 Meqabyan\",\n \"2 Meqabyan\",\n \"3 Meqabyan\",\n \"Reproof (Proverbs 25-31)\",\n \"4 Baruch (Rest of Baruch)\",\n \"Laodiceans\"\n], S = K();\nfunction g(t, e = !0) {\n return e && (t = t.toUpperCase()), t in S ? S[t] : 0;\n}\nfunction k(t) {\n return g(t) > 0;\n}\nfunction x(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return e >= 40 && e <= 66;\n}\nfunction T(t) {\n return (typeof t == \"string\" ? g(t) : t) <= 39;\n}\nfunction X(t) {\n return t <= 66;\n}\nfunction V(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return w(e) && !X(e);\n}\nfunction* L() {\n for (let t = 1; t <= N.length; t++) yield t;\n}\nconst G = 1, A = N.length;\nfunction H() {\n return [\"XXA\", \"XXB\", \"XXC\", \"XXD\", \"XXE\", \"XXF\", \"XXG\"];\n}\nfunction C(t, e = \"***\") {\n const s = t - 1;\n return s < 0 || s >= N.length ? e : N[s];\n}\nfunction I(t) {\n return t <= 0 || t > A ? \"******\" : O[t - 1];\n}\nfunction y(t) {\n return I(g(t));\n}\nfunction w(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && !B.includes(e);\n}\nfunction q(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && B.includes(e);\n}\nfunction U(t) {\n return O[t - 1].includes(\"*obsolete*\");\n}\nfunction K() {\n const t = {};\n for (let e = 0; e < N.length; e++)\n t[N[e]] = e + 1;\n return t;\n}\nconst m = {\n allBookIds: N,\n nonCanonicalIds: B,\n bookIdToNumber: g,\n isBookIdValid: k,\n isBookNT: x,\n isBookOT: T,\n isBookOTNT: X,\n isBookDC: V,\n allBookNumbers: L,\n firstBook: G,\n lastBook: A,\n extraBooks: H,\n bookNumberToId: C,\n bookNumberToEnglishName: I,\n bookIdToEnglishName: y,\n isCanonical: w,\n isExtraMaterial: q,\n isObsolete: U\n};\nvar l = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = \"Unknown\", t[t.Original = 1] = \"Original\", t[t.Septuagint = 2] = \"Septuagint\", t[t.Vulgate = 3] = \"Vulgate\", t[t.English = 4] = \"English\", t[t.RussianProtestant = 5] = \"RussianProtestant\", t[t.RussianOrthodox = 6] = \"RussianOrthodox\", t))(l || {});\nconst h = class h {\n // private versInfo: Versification;\n constructor(e) {\n n(this, \"name\");\n n(this, \"fullPath\");\n n(this, \"isPresent\");\n n(this, \"hasVerseSegments\");\n n(this, \"isCustomized\");\n n(this, \"baseVersification\");\n n(this, \"scriptureBooks\");\n n(this, \"_type\");\n if (e == null)\n throw new Error(\"Argument undefined\");\n typeof e == \"string\" ? (this.name = e, this._type = l[e]) : (this._type = e, this.name = l[e]);\n }\n get type() {\n return this._type;\n }\n equals(e) {\n return !e.type || !this.type ? !1 : e.type === this.type;\n }\n};\nn(h, \"Original\", new h(l.Original)), n(h, \"Septuagint\", new h(l.Septuagint)), n(h, \"Vulgate\", new h(l.Vulgate)), n(h, \"English\", new h(l.English)), n(h, \"RussianProtestant\", new h(l.RussianProtestant)), n(h, \"RussianOrthodox\", new h(l.RussianOrthodox));\nlet c = h;\nfunction E(t, e) {\n const s = e[0];\n for (let r = 1; r < e.length; r++)\n t = t.split(e[r]).join(s);\n return t.split(s);\n}\nvar D = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = \"Valid\", t[t.UnknownVersification = 1] = \"UnknownVersification\", t[t.OutOfRange = 2] = \"OutOfRange\", t[t.VerseOutOfOrder = 3] = \"VerseOutOfOrder\", t[t.VerseRepeated = 4] = \"VerseRepeated\", t))(D || {});\nconst i = class i {\n constructor(e, s, r, a) {\n /** Not yet implemented. */\n n(this, \"firstChapter\");\n /** Not yet implemented. */\n n(this, \"lastChapter\");\n /** Not yet implemented. */\n n(this, \"lastVerse\");\n /** Not yet implemented. */\n n(this, \"hasSegmentsDefined\");\n /** Not yet implemented. */\n n(this, \"text\");\n /** Not yet implemented. */\n n(this, \"BBBCCCVVVS\");\n /** Not yet implemented. */\n n(this, \"longHashCode\");\n /** The versification of the reference. */\n n(this, \"versification\");\n n(this, \"rtlMark\", \"‏\");\n n(this, \"_bookNum\", 0);\n n(this, \"_chapterNum\", 0);\n n(this, \"_verseNum\", 0);\n n(this, \"_verse\");\n if (r == null && a == null)\n if (e != null && typeof e == \"string\") {\n const o = e, u = s != null && s instanceof c ? s : void 0;\n this.setEmpty(u), this.parse(o);\n } else if (e != null && typeof e == \"number\") {\n const o = s != null && s instanceof c ? s : void 0;\n this.setEmpty(o), this._verseNum = e % i.chapterDigitShifter, this._chapterNum = Math.floor(\n e % i.bookDigitShifter / i.chapterDigitShifter\n ), this._bookNum = Math.floor(e / i.bookDigitShifter);\n } else if (s == null)\n if (e != null && e instanceof i) {\n const o = e;\n this._bookNum = o.bookNum, this._chapterNum = o.chapterNum, this._verseNum = o.verseNum, this._verse = o.verse, this.versification = o.versification;\n } else {\n if (e == null) return;\n const o = e instanceof c ? e : i.defaultVersification;\n this.setEmpty(o);\n }\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else if (e != null && s != null && r != null)\n if (typeof e == \"string\" && typeof s == \"string\" && typeof r == \"string\")\n this.setEmpty(a), this.updateInternal(e, s, r);\n else if (typeof e == \"number\" && typeof s == \"number\" && typeof r == \"number\")\n this._bookNum = e, this._chapterNum = s, this._verseNum = r, this.versification = a ?? i.defaultVersification;\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else\n throw new Error(\"VerseRef constructor not supported.\");\n }\n /**\n * Determines if the verse string is in a valid format (does not consider versification).\n */\n static isVerseParseable(e) {\n return e.length > 0 && \"0123456789\".includes(e[0]) && !e.endsWith(this.verseRangeSeparator) && !e.endsWith(this.verseSequenceIndicator);\n }\n /**\n * Tries to parse the specified string into a verse reference.\n * @param str - The string to attempt to parse.\n * @returns success: `true` if the specified string was successfully parsed, `false` otherwise.\n * @returns verseRef: The result of the parse if successful, or empty VerseRef if it failed\n */\n static tryParse(e) {\n let s;\n try {\n return s = new i(e), { success: !0, verseRef: s };\n } catch (r) {\n if (r instanceof v)\n return s = new i(), { success: !1, verseRef: s };\n throw r;\n }\n }\n /**\n * Gets the reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n * @param bookNum - Book number (this is 1-based, not an index).\n * @param chapterNum - Chapter number.\n * @param verseNum - Verse number.\n * @returns The reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n */\n static getBBBCCCVVV(e, s, r) {\n return e % i.bcvMaxValue * i.bookDigitShifter + (s >= 0 ? s % i.bcvMaxValue * i.chapterDigitShifter : 0) + (r >= 0 ? r % i.bcvMaxValue : 0);\n }\n /**\n * Deserializes a serialized VerseRef.\n * @param serializedVerseRef - Serialized VerseRef to create from.\n * @returns the deserialized VerseRef.\n */\n static fromJSON(e) {\n const { book: s, chapterNum: r, verseNum: a, verse: o, versificationStr: u } = e, f = o || a.toString();\n let d;\n return u && (d = new c(u)), s ? new i(s, r.toString(), f, d) : new i();\n }\n /**\n * Parses a verse string and gets the leading numeric portion as a number.\n * @param verseStr - verse string to parse\n * @returns true if the entire string could be parsed as a single, simple verse number (1-999);\n * false if the verse string represented a verse bridge, contained segment letters, or was invalid\n */\n static tryGetVerseNum(e) {\n let s;\n if (!e)\n return s = -1, { success: !0, vNum: s };\n s = 0;\n let r;\n for (let a = 0; a < e.length; a++) {\n if (r = e[a], r < \"0\" || r > \"9\")\n return a === 0 && (s = -1), { success: !1, vNum: s };\n if (s = s * 10 + +r - 0, s > i.bcvMaxValue)\n return s = -1, { success: !1, vNum: s };\n }\n return { success: !0, vNum: s };\n }\n /**\n * Checks to see if a VerseRef hasn't been set - all values are the default.\n */\n get isDefault() {\n return this.bookNum === 0 && this.chapterNum === 0 && this.verseNum === 0 && this.versification == null;\n }\n /**\n * Gets whether the verse contains multiple verses.\n */\n get hasMultiple() {\n return this._verse != null && (this._verse.includes(i.verseRangeSeparator) || this._verse.includes(i.verseSequenceIndicator));\n }\n /**\n * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters,\n * e.g. `'MAT'`.\n */\n get book() {\n return m.bookNumberToId(this.bookNum, \"\");\n }\n set book(e) {\n this.bookNum = m.bookIdToNumber(e);\n }\n /**\n * Gets or sets the chapter of the reference,. e.g. `'3'`.\n */\n get chapter() {\n return this.isDefault || this._chapterNum < 0 ? \"\" : this._chapterNum.toString();\n }\n set chapter(e) {\n const s = +e;\n this._chapterNum = Number.isInteger(s) ? s : -1;\n }\n /**\n * Gets or sets the verse of the reference, including range, segments, and sequences, e.g. `'4'`,\n * or `'4b-5a, 7'`.\n */\n get verse() {\n return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? \"\" : this._verseNum.toString();\n }\n set verse(e) {\n const { success: s, vNum: r } = i.tryGetVerseNum(e);\n this._verse = s ? void 0 : e.replace(this.rtlMark, \"\"), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = i.tryGetVerseNum(this._verse));\n }\n /**\n * Get or set Book based on book number, e.g. `42`.\n */\n get bookNum() {\n return this._bookNum;\n }\n set bookNum(e) {\n if (e <= 0 || e > m.lastBook)\n throw new v(\n \"BookNum must be greater than zero and less than or equal to last book\"\n );\n this._bookNum = e;\n }\n /**\n * Gets or sets the chapter number, e.g. `3`. `-1` if not valid.\n */\n get chapterNum() {\n return this._chapterNum;\n }\n set chapterNum(e) {\n this.chapterNum = e;\n }\n /**\n * Gets or sets verse start number, e.g. `4`. `-1` if not valid.\n */\n get verseNum() {\n return this._verseNum;\n }\n set verseNum(e) {\n this._verseNum = e;\n }\n /**\n * String representing the versification (should ONLY be used for serialization/deserialization).\n *\n * @remarks This is for backwards compatibility when ScrVers was an enumeration.\n */\n get versificationStr() {\n var e;\n return (e = this.versification) == null ? void 0 : e.name;\n }\n set versificationStr(e) {\n this.versification = this.versification != null ? new c(e) : void 0;\n }\n /**\n * Determines if the reference is valid.\n */\n get valid() {\n return this.validStatus === 0;\n }\n /**\n * Get the valid status for this reference.\n */\n get validStatus() {\n return this.validateVerse(i.verseRangeSeparators, i.verseSequenceIndicators);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits and the verse is 0.\n */\n get BBBCCC() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, 0);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits. If verse is not null\n * (i.e., this reference represents a complex reference with verse\n * segments or bridge) this cannot be used for an exact comparison.\n */\n get BBBCCCVVV() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum);\n }\n /**\n * Gets whether the verse is defined as an excluded verse in the versification.\n * Does not handle verse ranges.\n */\n // eslint-disable-next-line @typescript-eslint/class-literal-property-style\n get isExcluded() {\n return !1;\n }\n /**\n * Parses the reference in the specified string.\n * Optionally versification can follow reference as in GEN 3:11/4\n * Throw an exception if\n * - invalid book name\n * - chapter number is missing or not a number\n * - verse number is missing or does not start with a number\n * - versification is invalid\n * @param verseStr - string to parse e.g. 'MAT 3:11'\n */\n parse(e) {\n if (e = e.replace(this.rtlMark, \"\"), e.includes(\"/\")) {\n const o = e.split(\"/\");\n if (e = o[0], o.length > 1)\n try {\n const u = +o[1].trim();\n this.versification = new c(l[u]);\n } catch {\n throw new v(\"Invalid reference : \" + e);\n }\n }\n const s = e.trim().split(\" \");\n if (s.length !== 2)\n throw new v(\"Invalid reference : \" + e);\n const r = s[1].split(\":\"), a = +r[0];\n if (r.length !== 2 || m.bookIdToNumber(s[0]) === 0 || !Number.isInteger(a) || a < 0 || !i.isVerseParseable(r[1]))\n throw new v(\"Invalid reference : \" + e);\n this.updateInternal(s[0], r[0], r[1]);\n }\n /**\n * Simplifies this verse ref so that it has no bridging of verses or\n * verse segments like `'1a'`.\n */\n simplify() {\n this._verse = void 0;\n }\n /**\n * Makes a clone of the reference.\n *\n * @returns The cloned VerseRef.\n */\n clone() {\n return new i(this);\n }\n toString() {\n const e = this.book;\n return e === \"\" ? \"\" : `${e} ${this.chapter}:${this.verse}`;\n }\n toJSON() {\n let e = this.verse;\n (e === \"\" || e === this.verseNum.toString()) && (e = void 0);\n const s = {\n book: this.book,\n chapterNum: this.chapterNum,\n verseNum: this.verseNum,\n verse: e,\n versificationStr: this.versificationStr\n };\n return e || delete s.verse, s;\n }\n /**\n * Compares this `VerseRef` with supplied one.\n * @param verseRef - object to compare this one to.\n * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise.\n */\n equals(e) {\n return e instanceof i ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1;\n }\n /**\n * Enumerate all individual verses contained in a VerseRef.\n * Verse ranges are indicated by \"-\" and consecutive verses by \",\"s.\n * Examples:\n * GEN 1:2 returns GEN 1:2\n * GEN 1:1a-3b,5 returns GEN 1:1a, GEN 1:2, GEN 1:3b, GEN 1:5\n * GEN 1:2a-2c returns //! ??????\n *\n * @param specifiedVersesOnly - if set to true return only verses that are\n * explicitly specified only, not verses within a range. Defaults to `false`.\n * @param verseRangeSeparators - Verse range separators.\n * Defaults to `VerseRef.verseRangeSeparators`.\n * @param verseSequenceSeparators - Verse sequence separators.\n * Defaults to `VerseRef.verseSequenceIndicators`.\n * @returns An array of all single verse references in this VerseRef.\n */\n allVerses(e = !1, s = i.verseRangeSeparators, r = i.verseSequenceIndicators) {\n if (this._verse == null || this.chapterNum <= 0)\n return [this.clone()];\n const a = [], o = E(this._verse, r);\n for (const u of o.map((f) => E(f, s))) {\n const f = this.clone();\n f.verse = u[0];\n const d = f.verseNum;\n if (a.push(f), u.length > 1) {\n const b = this.clone();\n if (b.verse = u[1], !e)\n for (let p = d + 1; p < b.verseNum; p++) {\n const J = new i(\n this._bookNum,\n this._chapterNum,\n p,\n this.versification\n );\n this.isExcluded || a.push(J);\n }\n a.push(b);\n }\n }\n return a;\n }\n /**\n * Validates a verse number using the supplied separators rather than the defaults.\n */\n validateVerse(e, s) {\n if (!this.verse)\n return this.internalValid;\n let r = 0;\n for (const a of this.allVerses(!0, e, s)) {\n const o = a.internalValid;\n if (o !== 0)\n return o;\n const u = a.BBBCCCVVV;\n if (r > u)\n return 3;\n if (r === u)\n return 4;\n r = u;\n }\n return 0;\n }\n /**\n * Gets whether a single verse reference is valid.\n */\n get internalValid() {\n return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > m.lastBook ? 2 : (m.isCanonical(this._bookNum), 0);\n }\n setEmpty(e = i.defaultVersification) {\n this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = e;\n }\n updateInternal(e, s, r) {\n this.bookNum = m.bookIdToNumber(e), this.chapter = s, this.verse = r;\n }\n};\nn(i, \"defaultVersification\", c.English), n(i, \"verseRangeSeparator\", \"-\"), n(i, \"verseSequenceIndicator\", \",\"), n(i, \"verseRangeSeparators\", [i.verseRangeSeparator]), n(i, \"verseSequenceIndicators\", [i.verseSequenceIndicator]), n(i, \"chapterDigitShifter\", 1e3), n(i, \"bookDigitShifter\", i.chapterDigitShifter * i.chapterDigitShifter), n(i, \"bcvMaxValue\", i.chapterDigitShifter - 1), /**\n * The valid status of the VerseRef.\n */\nn(i, \"ValidStatusType\", D);\nlet M = i;\nclass v extends Error {\n}\nexport {\n _ as BookSet,\n m as Canon,\n c as ScrVers,\n l as ScrVersType,\n M as VerseRef,\n v as VerseRefException\n};\n//# sourceMappingURL=index.es.js.map\n","import { DropdownMenuItem } from '@/components/shadcn-ui/dropdown-menu';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Canon } from '@sillsdev/scripture';\nimport { KeyboardEvent, PropsWithChildren, forwardRef } from 'react';\n\nexport type BookType = 'OT' | 'NT' | 'DC';\n\ntype BookMenuItemProps = PropsWithChildren<{\n /** String id of book */\n bookId: string;\n /** Callback to run when a book menu item is selected */\n handleSelectBook: () => void;\n /** Indicates if this menu item is currently selected */\n isSelected: boolean;\n /** Function that is called upon highlighting a book in the dropdown menu */\n handleHighlightBook: () => void;\n /**\n * Function that is called on pressing a key\n *\n * @param event Event that contains information about the key stroke\n */\n handleKeyDown: (event: KeyboardEvent) => void;\n /**\n * Type of book associated with this menu item, coordinates color labels ? Mock up has the labels\n * coordinated to genre\n */\n bookType: BookType;\n}>;\n\nconst BookMenuItem = forwardRef(\n (\n {\n bookId,\n handleSelectBook,\n isSelected,\n handleHighlightBook,\n handleKeyDown,\n bookType,\n children,\n }: BookMenuItemProps,\n ref,\n ) => {\n return (\n {\n // preventDefault() here prevents the entire dropdown menu from closing when selecting this item\n event.preventDefault();\n handleSelectBook();\n }}\n onKeyDown={(event: KeyboardEvent) => {\n handleKeyDown(event);\n }}\n onFocus={handleHighlightBook}\n onMouseMove={handleHighlightBook}\n >\n \n {Canon.bookIdToEnglishName(bookId)}\n \n {isSelected &&
{children}
}\n \n );\n },\n);\n\nexport default BookMenuItem;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type ChapterSelectProps = {\n /**\n * Callback to run when a chapter div is selected\n *\n * @param chapterNumber Number of the chapter that has been selected\n */\n handleSelectChapter: (chapterNumber: number) => void;\n /** The highest chapter number in the book (of course equal to number of chapters in the book) */\n endChapter: number;\n /** The chapter number that is currently selected */\n activeChapter: number;\n /** The chapter number that is currently highlighted using keyboard or mouse navigation */\n highlightedChapter: number;\n /**\n * Callback to run when a chapter is highlighted by the user\n *\n * @param chapterNumber The chapter that is highlighted\n */\n handleHighlightedChapter: (chapterNumber: number) => void;\n};\n\nfunction ChapterSelect({\n handleSelectChapter,\n endChapter,\n activeChapter,\n highlightedChapter,\n handleHighlightedChapter,\n}: ChapterSelectProps) {\n const chapters = Array.from({ length: endChapter }, (_, i) => i + 1);\n\n const handleMouse = useCallback(\n (chapterNumber: number) => {\n handleHighlightedChapter(chapterNumber);\n },\n [handleHighlightedChapter],\n );\n\n return (\n
\n {chapters.map((chapter) => (\n {\n event.preventDefault();\n event.stopPropagation();\n handleSelectChapter(chapter);\n }}\n role=\"button\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n handleSelectChapter(chapter);\n }\n }}\n tabIndex={0}\n onMouseMove={() => handleMouse(chapter)}\n >\n {chapter}\n
\n ))}\n \n );\n}\n\nexport default ChapterSelect;\n","import { DropdownMenuLabel } from '@/components/shadcn-ui/dropdown-menu';\nimport { Bookmark, Clock, ArrowDownWideNarrow } from 'lucide-react';\n\nexport type GoToMenuItemProps = {\n handleSort: () => void;\n handleLocationHistory: () => void;\n handleBookmarks: () => void;\n};\n\nfunction GoToMenuItem({ handleSort, handleLocationHistory, handleBookmarks }: GoToMenuItemProps) {\n return (\n \n

Go To

\n
\n \n \n \n
\n
\n );\n}\n\nexport default GoToMenuItem;\n","import BookChapterInput from '@/components/advanced/book-chapter-control/book-chapter-input.component';\nimport BookMenuItem, {\n BookType,\n} from '@/components/advanced/book-chapter-control/book-menu-item.component';\nimport ChapterSelect from '@/components/advanced/book-chapter-control/chapter-select.component';\nimport GoToMenuItem from '@/components/advanced/book-chapter-control/go-to-menu-item.component';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference, getChaptersForBook } from 'platform-bible-utils';\nimport {\n KeyboardEvent as ReactKeyboardEvent,\n useCallback,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\n\ntype BookTypeLabels = {\n [bookType in BookType]: string;\n};\ntype BookChapterControlProps = {\n scrRef: ScriptureReference;\n handleSubmit: (scrRef: ScriptureReference) => void;\n};\n\nconst ALL_BOOK_IDS = Canon.allBookIds;\nconst BOOK_TYPE_LABELS: BookTypeLabels = {\n OT: 'Old Testament',\n NT: 'New Testament',\n DC: 'Deuterocanon',\n};\nconst BOOK_TYPE_ARRAY: BookType[] = ['OT', 'NT', 'DC'];\n// This is the height of three menu items to offset scrolling to the selected menu item\n// If you use menuItemRef.clientHeight- includes height of chapter div which is too big\nconst SCROLL_OFFSET = 32 + 32 + 32;\nconst SEARCH_QUERY_FORMATS = [\n /^(\\w+)$/i, // Matches a single word (book name or id)\n /^(\\w+)(?:\\s(\\d+))$/i, // Matches a word followed by a chapter number\n /^(\\w+)(?:\\s(\\d+):(\\d+))$/i, // Matches a word followed by a chapter and verse number\n];\nconst fetchGroupedBooks = (bookType: BookType) => {\n const groupedBooks = {\n OT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookOT(bookId)),\n NT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookNT(bookId)),\n DC: ALL_BOOK_IDS.filter((bookId) => Canon.isBookDC(bookId)),\n };\n return groupedBooks[bookType];\n};\nconst fetchEndChapter = (bookId: string) => {\n // getChaptersForBook returns -1 if not found in scrBookData\n // scrBookData only includes OT and NT, so all DC will return -1\n return getChaptersForBook(Canon.bookIdToNumber(bookId));\n};\n\n/**\n * Gets all of the English names from book ids\n *\n * @returns String[]\n */\nfunction getAllEnglishNames(): string[] {\n const allEnglishNames = ALL_BOOK_IDS.map((bookId) => {\n return Canon.bookIdToEnglishName(bookId);\n });\n return allEnglishNames;\n}\n\n/**\n * Determines if bookName is in allEnglishNames\n *\n * @param bookName Book English name\n * @returns True if bookName is included, false otherwise\n */\nfunction isValidBookEnglishName(bookName: string): boolean {\n return getAllEnglishNames().includes(bookName);\n}\n\n/**\n * Gets a bookId from given English name\n *\n * @param bookName Book English name\n * @returns BookId of provided bookName, undefined otherwise\n */\nfunction getBookIdFromEnglishName(bookName: string): string | undefined {\n // Convert bookName to lowercase and then capitalize the first letter\n const formattedBookName = bookName.toLowerCase().replace(/^\\w/, (c) => c.toUpperCase());\n\n if (isValidBookEnglishName(formattedBookName)) {\n const matchingBookId = ALL_BOOK_IDS.find((bookId) => {\n return Canon.bookIdToEnglishName(bookId) === formattedBookName;\n });\n return matchingBookId;\n }\n\n return undefined;\n}\n\nfunction BookChapterControl({ scrRef, handleSubmit }: BookChapterControlProps) {\n const dir: Direction = readDirection();\n const [searchQuery, setSearchQuery] = useState('');\n const [selectedBookId, setSelectedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [highlightedChapter, setHighlightedChapter] = useState(scrRef.chapterNum ?? 0);\n const [highlightedBookId, setHighlightedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [isContentOpen, setIsContentOpen] = useState(false);\n const [isContentOpenDelayed, setIsContentOpenDelayed] = useState(isContentOpen);\n\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const inputRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const contentRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const menuItemRef = useRef(undefined!);\n\n const fetchFilteredBooks = useCallback(\n (bookType: BookType) => {\n return fetchGroupedBooks(bookType).filter((bookId: string) => {\n const englishNameLowerCase = Canon.bookIdToEnglishName(bookId).toLowerCase();\n const normalizedQuery = searchQuery.replace(/[^a-zA-Z]/g, '').toLowerCase();\n return (\n englishNameLowerCase.includes(normalizedQuery) || // Match book name\n bookId.toLowerCase().includes(normalizedQuery) // Match book ID\n );\n });\n },\n [searchQuery],\n );\n\n const handleSearchInput = (searchString: string) => {\n setSearchQuery(searchString);\n };\n\n /**\n * Whether to prevent radix's logic from closing the dropdown. This is important because radix\n * tries to close the dropdown when the input first focuses, and we don't want it to do that. But\n * we don't want to prevent the dropdown from closing when we click away from the input, so we\n * don't want to just keep it open if the input is focused\n */\n const shouldPreventAutoClosing = useRef(false);\n\n const controlMenuState = useCallback((open: boolean) => {\n if (shouldPreventAutoClosing.current) {\n shouldPreventAutoClosing.current = false;\n return;\n }\n setIsContentOpen(open);\n }, []);\n\n const updateReference = useCallback(\n (bookId: string, shouldClose: boolean, chapter?: number, verse?: number) => {\n setHighlightedChapter(\n Canon.bookNumberToId(scrRef.bookNum) !== bookId ? 1 : scrRef.chapterNum,\n );\n\n if (shouldClose || fetchEndChapter(bookId) === -1) {\n handleSubmit({\n bookNum: Canon.bookIdToNumber(bookId),\n chapterNum: chapter || 1,\n verseNum: verse || 1,\n });\n\n setIsContentOpen(false);\n setSearchQuery('');\n return;\n }\n\n setSelectedBookId(selectedBookId !== bookId ? bookId : '');\n setIsContentOpen(!shouldClose);\n },\n [handleSubmit, scrRef.bookNum, scrRef.chapterNum, selectedBookId],\n );\n\n const handleSelectChapter = (chapterNumber: number) => {\n if (chapterNumber <= 0 || chapterNumber > fetchEndChapter(selectedBookId)) {\n return;\n }\n updateReference(selectedBookId, true, chapterNumber);\n };\n\n const handleInputSubmit = useCallback(() => {\n SEARCH_QUERY_FORMATS.forEach((format) => {\n const matches = searchQuery.match(format);\n if (matches) {\n // Book should be a bookId or an english name\n const [book, chapter = undefined, verse = undefined] = matches.slice(1);\n const englishName = getBookIdFromEnglishName(book);\n\n if (Canon.isBookIdValid(book) || englishName) {\n updateReference(\n englishName ?? book,\n true,\n chapter ? parseInt(chapter, 10) : 1,\n verse ? parseInt(verse, 10) : 1,\n );\n }\n }\n });\n }, [updateReference, searchQuery]);\n\n const handleKeyDownInput = useCallback(\n (event: ReactKeyboardEvent) => {\n if (!isContentOpen) {\n setIsContentOpen(true);\n } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (\n typeof menuItemRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n menuItemRef.current !== null\n ) {\n menuItemRef.current.focus();\n } else if (\n typeof contentRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n contentRef.current !== null\n ) {\n contentRef.current.focus();\n }\n event.preventDefault();\n }\n },\n [isContentOpen],\n );\n\n const handleKeyDownContent = (event: ReactKeyboardEvent) => {\n // When the dropdown menu has focus, key strokes should give focus to the input component,\n // unless they're navigation keys (arrows and enter)\n const { key } = event;\n if (\n key === 'ArrowRight' ||\n key === 'ArrowLeft' ||\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter'\n ) {\n return;\n }\n\n inputRef.current.dispatchEvent(new KeyboardEvent('keydown', { key }));\n inputRef.current.focus();\n };\n\n const handleKeyDownMenuItem = (event: ReactKeyboardEvent) => {\n const { key } = event;\n if (highlightedBookId === selectedBookId) {\n if (key === 'Enter') {\n event.preventDefault();\n updateReference(selectedBookId, true, highlightedChapter);\n return;\n }\n\n const upOneChapter =\n (key === 'ArrowRight' && !dir) ||\n (key === 'ArrowRight' && dir === 'ltr') ||\n (key === 'ArrowLeft' && dir === 'rtl');\n const downOneChapter =\n (key === 'ArrowLeft' && !dir) ||\n (key === 'ArrowLeft' && dir === 'ltr') ||\n (key === 'ArrowRight' && dir === 'rtl');\n let chapterOffSet = 0;\n if (upOneChapter) {\n if (highlightedChapter < fetchEndChapter(highlightedBookId)) {\n chapterOffSet = 1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (downOneChapter) {\n if (highlightedChapter > 1) {\n chapterOffSet = -1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowDown') {\n chapterOffSet = 6;\n } else if (key === 'ArrowUp') {\n chapterOffSet = -6;\n }\n if (\n highlightedChapter + chapterOffSet <= 0 ||\n highlightedChapter + chapterOffSet > fetchEndChapter(highlightedBookId)\n ) {\n setHighlightedChapter(0);\n } else if (chapterOffSet !== 0) {\n setHighlightedChapter(highlightedChapter + chapterOffSet);\n event.preventDefault();\n }\n }\n };\n\n useEffect(() => {\n if (selectedBookId === highlightedBookId) {\n if (selectedBookId === Canon.bookNumberToId(scrRef.bookNum)) {\n setHighlightedChapter(scrRef.chapterNum);\n } else {\n setHighlightedChapter(1);\n }\n } else {\n setHighlightedChapter(0);\n }\n }, [highlightedBookId, scrRef.bookNum, scrRef.chapterNum, selectedBookId]);\n\n // The purpose of these useLayoutEffects and timeout is to delay the scroll just\n // enough so that the refs are defined and available when they are used after the timeout\n useLayoutEffect(() => {\n setIsContentOpenDelayed(isContentOpen);\n }, [isContentOpen]);\n\n useLayoutEffect(() => {\n const scrollTimeout = setTimeout(() => {\n if (isContentOpenDelayed && contentRef.current && menuItemRef.current) {\n const menuItemOffsetTop = menuItemRef.current.offsetTop;\n const scrollPosition = menuItemOffsetTop - SCROLL_OFFSET;\n contentRef.current.scrollTo({ top: scrollPosition, behavior: 'instant' });\n }\n }, 10);\n return () => {\n clearTimeout(scrollTimeout);\n };\n }, [isContentOpenDelayed]);\n\n return (\n
\n \n \n {\n setSelectedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedChapter(scrRef.chapterNum > 0 ? scrRef.chapterNum : 0);\n setIsContentOpen(true);\n inputRef.current.focus();\n }}\n onFocus={() => {\n // Radix thinks we want to close because the input is being focused. Prevent that\n shouldPreventAutoClosing.current = true;\n }}\n handleSubmit={handleInputSubmit}\n placeholder={`${Canon.bookNumberToEnglishName(scrRef.bookNum)} ${scrRef.chapterNum}:${scrRef.verseNum}`}\n />\n \n \n {/* work around until DropdownMenuContent supports a dir prop */}\n
\n console.log('sorting')}\n handleLocationHistory={() => console.log('location history')}\n handleBookmarks={() => console.log('bookmarks')}\n />\n {BOOK_TYPE_ARRAY.map(\n (bookType, bookTypeIndex) =>\n fetchFilteredBooks(bookType).length > 0 && (\n
\n \n {BOOK_TYPE_LABELS[bookType]}\n \n\n {fetchFilteredBooks(bookType).map((bookId) => (\n
\n updateReference(bookId, false)}\n isSelected={selectedBookId === bookId}\n handleHighlightBook={() => setHighlightedBookId(bookId)}\n handleKeyDown={handleKeyDownMenuItem}\n bookType={bookType}\n ref={(element: HTMLDivElement) => {\n if (selectedBookId === bookId) menuItemRef.current = element;\n }}\n >\n {\n setHighlightedChapter(chapterNumber);\n }}\n />\n \n
\n ))}\n {BOOK_TYPE_ARRAY.length - 1 !== bookTypeIndex ? (\n \n ) : undefined}\n
\n ),\n )}\n
\n \n
\n
\n );\n}\n\nexport default BookChapterControl;\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const buttonVariants = cva(\n 'pr-twp tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50',\n {\n variants: {\n variant: {\n default: 'tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/90',\n destructive: 'tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/90',\n outline:\n 'tw-border tw-border-input tw-bg-background hover:tw-bg-accent hover:tw-text-accent-foreground',\n secondary: 'tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80',\n ghost: 'hover:tw-bg-accent hover:tw-text-accent-foreground',\n link: 'tw-text-primary tw-underline-offset-4 hover:tw-underline',\n },\n size: {\n default: 'tw-h-10 tw-px-4 tw-py-2',\n sm: 'tw-h-9 tw-rounded-md tw-px-3',\n lg: 'tw-h-11 tw-rounded-md tw-px-8',\n icon: 'tw-h-10 tw-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n return (\n \n );\n },\n);\nButton.displayName = 'Button';\n","import React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst labelVariants = cva(\n 'tw-text-sm tw-font-medium tw-leading-none peer-disabled:tw-cursor-not-allowed peer-disabled:tw-opacity-70',\n);\n\nexport const Label = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, ...props }, ref) => (\n \n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n","import React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n return (\n \n \n \n \n \n );\n});\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n","import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport React from 'react';\n\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n );\n});\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverContent, PopoverTrigger };\n","import React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { readDirection } from '@/utils/dir-helper.util';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => {\n const dir = readDirection();\n return (\n \n \n \n {children}\n \n \n Close\n \n \n \n );\n});\nDialogContent.displayName = DialogPrimitive.Content.displayName;\nfunction DialogHeader({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nDialogHeader.displayName = 'DialogHeader';\n\nfunction DialogFooter({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n};\n","import React from 'react';\nimport { type DialogProps } from '@radix-ui/react-dialog';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Search } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Dialog, DialogContent } from '@/components/shadcn-ui/dialog';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Command = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nCommand.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {}\n\nfunction CommandDialog({ children, ...props }: CommandDialogProps) {\n return (\n \n \n \n {children}\n \n \n \n );\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n
\n \n \n
\n );\n});\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst CommandList = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>((props, ref) => (\n \n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst CommandItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nfunction CommandShortcut({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n};\n","import { ReactNode, useState } from 'react';\nimport { Check, ChevronsUpDown } from 'lucide-react';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover';\nimport {\n Command,\n CommandEmpty,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/components/shadcn-ui/command';\nimport { PopoverProps } from '@radix-ui/react-popover';\n\nexport type ComboBoxLabelOption = { label: string };\nexport type ComboBoxOption = string | number | ComboBoxLabelOption;\n\nexport type ComboBoxProps = {\n /** Optional unique identifier */\n id?: string;\n /** Text label title for combobox */\n /** List of available options for the dropdown menu */\n options?: readonly T[];\n /** @deprecated 3 December 2024. Renamed to {@link buttonClassName} */\n className?: string;\n /** Additional css classes to help with unique styling of the combo box button */\n buttonClassName?: string;\n /** Additional css classes to help with unique styling of the combo box popover */\n popoverContentClassName?: string;\n /**\n * The selected value that the combo box currently holds. Must be shallow equal to one of the\n * options entries.\n */\n value?: T;\n /** Triggers when content of textfield is changed */\n onChange?: (newValue: T) => void;\n /** Used to determine the string value for a given option. */\n getOptionLabel?: (option: ComboBoxOption) => string;\n /** Icon to be displayed on the trigger */\n icon?: ReactNode;\n /** Text displayed on button if `value` is undefined */\n buttonPlaceholder?: string;\n /** Placeholder text for text field */\n textPlaceholder?: string;\n /** Text to display when no options match input */\n commandEmptyMessage?: string;\n /** Variant of button */\n buttonVariant?: ButtonProps['variant'];\n /** Control how the popover menu should be aligned. Defaults to start */\n alignDropDown?: 'start' | 'center' | 'end';\n /** Optional boolean to set if trigger should be disabled */\n isDisabled?: boolean;\n} & PopoverProps;\n\nfunction getOptionLabelDefault(option: ComboBoxOption): string {\n if (typeof option === 'string') {\n return option;\n }\n if (typeof option === 'number') {\n return option.toString();\n }\n return option.label;\n}\n\n/**\n * Autocomplete input and command palette with a list of suggestions.\n *\n * Thanks to Shadcn for heavy inspiration and documentation\n * https://ui.shadcn.com/docs/components/combobox\n */\nfunction ComboBox({\n id,\n options = [],\n className,\n buttonClassName,\n popoverContentClassName,\n value,\n onChange = () => {},\n getOptionLabel = getOptionLabelDefault,\n icon = undefined,\n buttonPlaceholder = '',\n textPlaceholder = '',\n commandEmptyMessage = 'No option found',\n buttonVariant = 'outline',\n alignDropDown = 'start',\n isDisabled = false,\n ...props\n}: ComboBoxProps) {\n const [open, setOpen] = useState(false);\n\n return (\n \n \n \n
\n {icon &&
{icon}
}\n \n {value ? getOptionLabel(value) : buttonPlaceholder}\n \n
\n\n \n \n
\n \n \n \n {commandEmptyMessage}\n \n {options.map((option) => (\n {\n onChange(option);\n setOpen(false);\n }}\n >\n \n {getOptionLabel(option)}\n \n ))}\n \n \n \n
\n );\n}\n\nexport default ComboBox;\n","import ComboBox from '@/components/basics/combo-box.component';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { useMemo } from 'react';\n\nexport type ChapterRangeSelectorProps = {\n startChapter: number;\n endChapter: number;\n handleSelectStartChapter: (chapter: number) => void;\n handleSelectEndChapter: (chapter: number) => void;\n isDisabled?: boolean;\n chapterCount: number;\n};\n\nexport default function ChapterRangeSelector({\n startChapter,\n endChapter,\n handleSelectStartChapter,\n handleSelectEndChapter,\n isDisabled = false,\n chapterCount,\n}: ChapterRangeSelectorProps) {\n const chapterOptions = useMemo(\n () => Array.from({ length: chapterCount }, (_, index) => index + 1),\n [chapterCount],\n );\n\n const onChangeStartChapter = (value: number) => {\n handleSelectStartChapter(value);\n if (value > endChapter) {\n handleSelectEndChapter(value);\n }\n };\n\n const onChangeEndChapter = (value: number) => {\n handleSelectEndChapter(value);\n if (value < startChapter) {\n handleSelectStartChapter(value);\n }\n };\n\n return (\n <>\n \n option.toString()}\n value={startChapter}\n />\n\n \n option.toString()}\n value={endChapter}\n />\n \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { RadioGroup, RadioGroupItem } from '@/components/shadcn-ui/radio-group';\nimport { Canon } from '@sillsdev/scripture';\nimport { LocalizedStringValue } from 'platform-bible-utils';\nimport { useState } from 'react';\nimport ChapterRangeSelector, {\n ChapterRangeSelectorProps,\n} from '../basics/chapter-range-selector.component';\n\nexport enum BookSelectionMode {\n CURRENT_BOOK = 'current book',\n CHOOSE_BOOKS = 'choose books',\n}\n\n/**\n * Object containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const BOOK_SELECTOR_STRING_KEYS = Object.freeze([\n '%webView_bookSelector_currentBook%',\n '%webView_bookSelector_choose%',\n '%webView_bookSelector_chooseBooks%',\n] as const);\n\nexport type BookSelectorLocalizedStrings = {\n [localizedBookSelectorKey in (typeof BOOK_SELECTOR_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: BookSelectorLocalizedStrings,\n key: keyof BookSelectorLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\ntype BookSelectorProps = ChapterRangeSelectorProps & {\n handleBookSelectionModeChange: (newMode: BookSelectionMode) => void;\n currentBookName: string;\n onSelectBooks: () => void;\n selectedBookIds: string[];\n localizedStrings: BookSelectorLocalizedStrings;\n};\n\nexport default function BookSelector({\n handleBookSelectionModeChange,\n currentBookName,\n onSelectBooks,\n selectedBookIds,\n chapterCount,\n endChapter,\n handleSelectEndChapter,\n startChapter,\n handleSelectStartChapter,\n localizedStrings,\n}: BookSelectorProps) {\n const currentBookText = localizeString(localizedStrings, '%webView_bookSelector_currentBook%');\n const chooseText = localizeString(localizedStrings, '%webView_bookSelector_choose%');\n const chooseBooksText = localizeString(localizedStrings, '%webView_bookSelector_chooseBooks%');\n\n const [bookSelectionMode, setBookSelectionMode] = useState(\n BookSelectionMode.CURRENT_BOOK,\n );\n\n const onSelectionModeChange = (newMode: BookSelectionMode) => {\n setBookSelectionMode(newMode);\n handleBookSelectionModeChange(newMode);\n };\n\n return (\n onSelectionModeChange(value as BookSelectionMode)}\n >\n
\n
\n
\n \n \n
\n \n
\n \n
\n
\n
\n
\n \n \n
\n \n onSelectBooks()}\n >\n {chooseText}\n \n
\n
\n \n );\n}\n","import { DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';\nimport { FilterIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\n\ninterface DataTableViewOptionsProps {\n table: Table;\n}\n\nfunction DataTableViewOptions({ table }: DataTableViewOptionsProps) {\n return (\n \n \n \n \n \n Toggle columns\n \n {table\n .getAllColumns()\n .filter((column) => column.getCanHide())\n .map((column) => {\n return (\n column.toggleVisibility(!!value)}\n >\n {column.id}\n \n );\n })}\n \n \n );\n}\n\nexport default DataTableViewOptions;\n","import React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n span]:tw-line-clamp-1',\n className,\n )}\n {...props}\n dir={dir}\n >\n {children}\n \n \n \n \n );\n});\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = 'popper', ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n \n
{children}
\n \n \n \n
\n );\n});\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n\n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { ChevronLeftIcon, ChevronRightIcon, ArrowLeftIcon, ArrowRightIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\n\ninterface DataTablePaginationProps {\n table: Table;\n}\n\nfunction DataTablePagination({ table }: DataTablePaginationProps) {\n return (\n
\n
\n
\n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected\n
\n
\n

Rows per page

\n {\n table.setPageSize(Number(value));\n }}\n >\n \n \n \n \n {[10, 20, 30, 40, 50].map((pageSize) => (\n \n {pageSize}\n \n ))}\n \n \n
\n
\n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n
\n
\n table.setPageIndex(0)}\n disabled={!table.getCanPreviousPage()}\n >\n Go to first page\n \n \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Go to previous page\n \n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Go to next page\n \n \n table.setPageIndex(table.getPageCount() - 1)}\n disabled={!table.getCanNextPage()}\n >\n Go to last page\n \n \n
\n
\n
\n );\n}\n\nexport default DataTablePagination;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Table = React.forwardRef<\n HTMLTableElement,\n React.HTMLAttributes & { stickyHeader?: boolean }\n>(({ className, stickyHeader, ...props }, ref) => (\n
\n \n
\n));\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes & { stickyHeader?: boolean }\n>(({ className, stickyHeader, ...props }, ref) => (\n \n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n tr]:last:tw-border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","import { useState } from 'react';\n\nimport {\n ColumnFiltersState,\n flexRender,\n getCoreRowModel,\n getFilteredRowModel,\n getPaginationRowModel,\n getSortedRowModel,\n SortingState,\n ColumnDef as TSColumnDef,\n Row as TSRow,\n RowSelectionState as TSRowSelectionState,\n SortDirection as TSSortDirection,\n Table as TSTable,\n useReactTable,\n VisibilityState,\n} from '@tanstack/react-table';\n\nimport DataTableViewOptions from '@/components/advanced/data-table/data-table-column-toggle.component';\nimport DataTablePagination from '@/components/advanced/data-table/data-table-pagination.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\n\nexport type ColumnDef = TSColumnDef;\nexport type RowContents = TSRow;\nexport type TableContents = TSTable;\nexport type SortDirection = TSSortDirection;\nexport type RowSelectionState = TSRowSelectionState;\n\ninterface DataTableProps {\n columns: ColumnDef[];\n data: TData[];\n enablePagination?: boolean;\n showPaginationControls?: boolean;\n showColumnVisibilityControls?: boolean;\n stickyHeader?: boolean;\n onRowClickHandler?: (row: RowContents, table: TableContents) => void;\n}\n\n/**\n * Feature-rich table component that infuses our basic shadcn-based Table component with features\n * from TanStack's React Table library\n */\nfunction DataTable({\n columns,\n data,\n enablePagination = false,\n showPaginationControls = false,\n showColumnVisibilityControls = false,\n stickyHeader = false,\n onRowClickHandler = () => {},\n}: DataTableProps) {\n const [sorting, setSorting] = useState([]);\n const [columnFilters, setColumnFilters] = useState([]);\n const [columnVisibility, setColumnVisibility] = useState({});\n const [rowSelection, setRowSelection] = useState({});\n\n const table = useReactTable({\n data,\n columns,\n getCoreRowModel: getCoreRowModel(),\n ...(enablePagination && { getPaginationRowModel: getPaginationRowModel() }),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n onColumnFiltersChange: setColumnFilters,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnVisibilityChange: setColumnVisibility,\n onRowSelectionChange: setRowSelection,\n state: {\n sorting,\n columnFilters,\n columnVisibility,\n rowSelection,\n },\n });\n\n return (\n
\n {showColumnVisibilityControls && }\n \n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers.map((header) => {\n return (\n \n {header.isPlaceholder\n ? undefined\n : flexRender(header.column.columnDef.header, header.getContext())}\n \n );\n })}\n \n ))}\n \n \n {table.getRowModel().rows?.length ? (\n table.getRowModel().rows.map((row) => (\n onRowClickHandler(row, table)}\n key={row.id}\n data-state={row.getIsSelected() && 'selected'}\n >\n {row.getVisibleCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n ) : (\n \n \n No results.\n \n \n )}\n \n
\n {enablePagination && (\n
\n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Previous\n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Next\n \n
\n )}\n {enablePagination && showPaginationControls && }\n
\n );\n}\n\nexport default DataTable;\n","import {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { Canon } from '@sillsdev/scripture';\nimport { deepEqual, LanguageStrings, ScriptureReference } from 'platform-bible-utils';\nimport { useMemo } from 'react';\nimport { InventoryItemOccurrence } from './inventory-utils';\n\n/** Props for the OccurrencesTable component */\ntype OccurrencesTableProps = {\n /** Data that contains scriptures references and snippets of scripture */\n occurrenceData: InventoryItemOccurrence[];\n /** Callback function that is executed when the scripture reference is changed */\n setScriptureReference: (scriptureReference: ScriptureReference) => void;\n /**\n * Object with all localized strings that the OccurrencesTable needs to work well across multiple\n * languages\n */\n localizedStrings: LanguageStrings;\n};\n\n/**\n * Table that shows occurrences of specified inventory item(s). The first column shows the related\n * scripture reference. The second column shows the snippet of scripture that contains the specified\n * inventory item\n */\nfunction OccurrencesTable({\n occurrenceData,\n setScriptureReference,\n localizedStrings,\n}: OccurrencesTableProps) {\n const referenceHeaderText =\n localizedStrings['%webView_inventory_occurrences_table_header_reference%'];\n const occurrenceHeaderText =\n localizedStrings['%webView_inventory_occurrences_table_header_occurrence%'];\n\n const occurrences: InventoryItemOccurrence[] = useMemo(() => {\n const uniqueOccurrences: InventoryItemOccurrence[] = [];\n\n occurrenceData.forEach((occurrence) => {\n if (!uniqueOccurrences.some((uniqueOccurrence) => deepEqual(uniqueOccurrence, occurrence))) {\n uniqueOccurrences.push(occurrence);\n }\n });\n\n return uniqueOccurrences;\n }, [occurrenceData]);\n\n return (\n \n \n \n {referenceHeaderText}\n {occurrenceHeaderText}\n \n \n \n {occurrences.length > 0 &&\n occurrences.map((occurrence) => (\n {\n setScriptureReference(occurrence.reference);\n }}\n >\n {`${Canon.bookNumberToEnglishName(occurrence.reference.bookNum)} ${occurrence.reference.chapterNum}:${occurrence.reference.verseNum}`}\n {occurrence.text}\n \n ))}\n \n
\n );\n}\n\nexport default OccurrencesTable;\n","import React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Checkbox = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport default Checkbox;\n","import { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference } from 'platform-bible-utils';\n\n/* #region Types */\n\n/**\n * Status of items that appear in inventories. 'approved' and 'unapproved' items are defined in the\n * project's `Settings.xml`. All other items are defined as 'unknown'\n */\nexport type Status = 'approved' | 'unapproved' | 'unknown';\n\n/** Occurrence of item in inventory. Primarily used by table that shows occurrences */\nexport type InventoryItemOccurrence = {\n /** Reference to scripture where the item appears */\n reference: ScriptureReference;\n /** Snippet of scripture that contains the occurrence */\n text: string;\n};\n\n/** Data structure that contains all information on an item that is shown in an inventory */\nexport type InventoryTableData = {\n /**\n * The item (e.g. a character in the characters inventory, a marker in the marker inventory) In\n * most cases the array will only have one element. In case of additional items (e.g. the\n * preceding marker in the markers check), the primary item should be stored in the first index.\n * To show additional items in the inventory, make sure to configure the `additionalItemsLabels`\n * prop for the Inventory component\n */\n items: string[];\n /** The number of times this item occurs in the selected scope */\n count: number;\n /** The status of this item (see documentation for `Status` type for more information) */\n status: Status;\n /** Occurrences of this item in the scripture text for the selected scope */\n occurrences: InventoryItemOccurrence[];\n};\n\n/* #endregion */\n\n/* #region Functions */\n\n/**\n * Splits USFM string into shorter line-like segments\n *\n * @param text A single (likely very large) USFM string\n * @returns An array containing the input text, split into shorter segments\n */\nexport const getLinesFromUSFM = (text: string) => {\n // Splits on (CR)LF, CR, \\v, \\c and \\id\n return text.split(/(?:\\r?\\n|\\r)|(?=(?:\\\\(?:v|c|id)))/g);\n};\n\n/**\n * Extracts chapter or verse number from USFM strings that start with a \\c or \\v marker\n *\n * @param text USFM string that is expected to start with \\c or \\v marker\n * @returns Chapter or verse number if one is found. Else returns 0.\n */\nexport const getNumberFromUSFM = (text: string): number | undefined => {\n // Captures all digits that follow \\v or \\c markers followed by whitespace located at the start of a string\n const regex = /^\\\\[vc]\\s+(\\d+)/;\n const match = text.match(regex);\n\n if (match) {\n return +match[1];\n }\n return undefined;\n};\n\n/**\n * Gets book ID from USFM string that starts with the \\id marker, and returns book number for it\n *\n * @param text USFM string that is expected to start with \\id marker\n * @returns Book number corresponding to the \\id marker in the input text. Returns 0 if no marker is\n * found or the marker is not valid\n */\nexport const getBookNumFromId = (text: string): number => {\n // Captures all digits that follow an \\id marker followed by whitespace located at the start of a string\n const match = text.match(/^\\\\id\\s+([A-Za-z]+)/);\n if (match) {\n return Canon.bookIdToNumber(match[1]);\n }\n return 0;\n};\n\n/**\n * Gets the status for an item, typically used in the Inventory component\n *\n * @param item The item for which the status is being requested\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @returns The status for the specified item\n */\nexport const getStatusForItem = (\n item: string,\n approvedItems: string[],\n unapprovedItems: string[],\n): Status => {\n if (unapprovedItems.includes(item)) return 'unapproved';\n if (approvedItems.includes(item)) return 'approved';\n return 'unknown';\n};\n\n/* #endregion */\n","import React from 'react';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst toggleVariants = cva(\n 'pr-twp tw-inline-flex tw-items-center tw-justify-center tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors hover:tw-bg-muted hover:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=on]:tw-bg-accent data-[state=on]:tw-text-accent-foreground',\n {\n variants: {\n variant: {\n default: 'tw-bg-transparent',\n outline:\n 'tw-border tw-border-input tw-bg-transparent hover:tw-bg-accent hover:tw-text-accent-foreground',\n },\n size: {\n default: 'tw-h-10 tw-px-3',\n sm: 'tw-h-9 tw-px-2.5',\n lg: 'tw-h-11 tw-px-5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nconst Toggle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, variant, size, ...props }, ref) => (\n \n));\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\nexport { Toggle, toggleVariants };\n","import React from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { toggleVariants } from '@/components/shadcn-ui/toggle';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst ToggleGroupContext = React.createContext>({\n size: 'default',\n variant: 'default',\n});\n\nconst ToggleGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef &\n VariantProps\n>(({ className, variant, size, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n {children}\n \n \n );\n});\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;\n\nconst ToggleGroupItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef &\n VariantProps\n>(({ className, children, variant, size, ...props }, ref) => {\n const context = React.useContext(ToggleGroupContext);\n\n return (\n \n {children}\n \n );\n});\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;\n\nexport { ToggleGroup, ToggleGroupItem };\n","import { ColumnDef, SortDirection } from '@/components/advanced/data-table/data-table.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport { ToggleGroup, ToggleGroupItem } from '@/components/shadcn-ui/toggle-group';\nimport {\n ArrowDownIcon,\n ArrowUpDownIcon,\n ArrowUpIcon,\n CircleCheckIcon,\n CircleHelpIcon,\n CircleXIcon,\n} from 'lucide-react';\nimport { ReactNode } from 'react';\nimport { InventoryTableData, Status } from './inventory-utils';\n\n/**\n * Gets an icon that indicates the current sorting direction based on the provided input\n *\n * @param sortDirection Sorting direction. Can be ascending ('asc'), descending ('desc') or false (\n * i.e. not sorted)\n * @returns The appropriate sorting icon for the provided sorting direction\n */\nconst getSortingIcon = (sortDirection: false | SortDirection): ReactNode => {\n if (sortDirection === 'asc') {\n return ;\n }\n if (sortDirection === 'desc') {\n return ;\n }\n return ;\n};\n\n/**\n * Function that creates the item column for inventories\n *\n * @param itemLabel Localized label for the item column (e.g. 'Character', 'Repeated Word', etc.)\n * @returns Column that shows the inventory items. Should be used with the DataTable component\n */\nexport const inventoryItemColumn = (itemLabel: string): ColumnDef => {\n return {\n accessorKey: 'item',\n accessorFn: (row: InventoryTableData) => row.items[0],\n header: ({ column }) => (\n \n ),\n };\n};\n\n/**\n * Function that creates the additional item columns for inventories\n *\n * @param additionalItemLabel Localized label for the additional item column (e.g. 'Preceding\n * Marker')\n * @param additionalItemIndex Index that locates the desired item in the items array of the\n * inventory\n * @returns Column that shows additional inventory items. Should be used with the DataTable\n * component\n */\nexport const inventoryAdditionalItemColumn = (\n additionalItemLabel: string,\n additionalItemIndex: number,\n): ColumnDef => {\n return {\n accessorKey: `item${additionalItemIndex}`,\n accessorFn: (row: InventoryTableData) => row.items[additionalItemIndex],\n header: ({ column }) => (\n \n ),\n };\n};\n\n/**\n * Function that creates the count column for inventories. Should be used with the DataTable\n * component.\n *\n * @param itemLabel Localized label for the count column\n * @returns Column that shows the number of occurrences of the related inventory items\n */\nexport const inventoryCountColumn = (countLabel: string): ColumnDef => {\n return {\n accessorKey: 'count',\n header: ({ column }) => (\n
\n \n
\n ),\n cell: ({ row }) =>
{row.getValue('count')}
,\n };\n};\n\n/**\n * Function that updates project settings when status for item(s) changes\n *\n * @param changedItems Array of items for which the status is being updated\n * @param newStatus The status that the items are being given\n * @param approvedItems Array of currently approved items\n * @param onApprovedItemsChange Callback function that stores the updated list of approved items\n * @param unapprovedItems Array of currently unapproved items\n * @param onUnapprovedItemsChange Callback function that stores the updated list of unapproved items\n */\nconst statusChangeHandler = (\n changedItems: string[],\n newStatus: Status,\n approvedItems: string[],\n onApprovedItemsChange: (items: string[]) => void,\n unapprovedItems: string[],\n onUnapprovedItemsChange: (items: string[]) => void,\n) => {\n let newApprovedItems: string[] = [...approvedItems];\n changedItems.forEach((item) => {\n if (newStatus === 'approved') {\n if (!newApprovedItems.includes(item)) {\n newApprovedItems.push(item);\n }\n } else {\n newApprovedItems = newApprovedItems.filter((validItem) => validItem !== item);\n }\n });\n onApprovedItemsChange(newApprovedItems);\n\n let newUnapprovedItems: string[] = [...unapprovedItems];\n changedItems.forEach((item) => {\n if (newStatus === 'unapproved') {\n if (!newUnapprovedItems.includes(item)) {\n newUnapprovedItems.push(item);\n }\n } else {\n newUnapprovedItems = newUnapprovedItems.filter((unapprovedItem) => unapprovedItem !== item);\n }\n });\n onUnapprovedItemsChange(newUnapprovedItems);\n};\n\n/**\n * Function that creates the status column for inventories. Should be used with the DataTable\n * component.\n *\n * @param statusLabel Localized label for the status column\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param onApprovedItemsChange Callback function that stores the updated list of approved items\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @param onUnapprovedItemsChange Callback function that stores the updated list of unapproved items\n * @returns Column that shows the status buttons for the related inventory item. The button for the\n * current status of the item is selected\n */\nexport const inventoryStatusColumn = (\n statusLabel: string,\n approvedItems: string[],\n onApprovedItemsChange: (items: string[]) => void,\n unapprovedItems: string[],\n onUnapprovedItemsChange: (items: string[]) => void,\n): ColumnDef => {\n return {\n accessorKey: 'status',\n header: ({ column }) => {\n return (\n
\n \n
\n );\n },\n cell: ({ row }) => {\n const status: Status = row.getValue('status');\n const item: string = row.getValue('item');\n return (\n \n \n statusChangeHandler(\n [item],\n 'approved',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"approved\"\n >\n \n \n \n statusChangeHandler(\n [item],\n 'unapproved',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"unapproved\"\n >\n \n \n \n statusChangeHandler(\n [item],\n 'unknown',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"unknown\"\n >\n \n \n \n );\n },\n };\n};\n","import DataTable, {\n ColumnDef,\n RowContents,\n RowSelectionState,\n TableContents,\n} from '@/components/advanced/data-table/data-table.component';\nimport OccurrencesTable from '@/components/advanced/inventory/occurrences-table.component';\nimport Checkbox from '@/components/shadcn-ui/checkbox';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Label } from '@/components/shadcn-ui/label';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport {\n deepEqual,\n LocalizedStringValue,\n ScriptureReference,\n substring,\n} from 'platform-bible-utils';\nimport { useEffect, useMemo, useState } from 'react';\nimport {\n getBookNumFromId,\n getLinesFromUSFM,\n getNumberFromUSFM,\n getStatusForItem,\n InventoryItemOccurrence,\n InventoryTableData,\n Status,\n} from './inventory-utils';\nimport { inventoryAdditionalItemColumn } from './inventory-columns';\n\n/**\n * Object containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const INVENTORY_STRING_KEYS = Object.freeze([\n '%webView_inventory_all%',\n '%webView_inventory_approved%',\n '%webView_inventory_unapproved%',\n '%webView_inventory_unknown%',\n '%webView_inventory_scope_currentBook%',\n '%webView_inventory_scope_chapter%',\n '%webView_inventory_scope_verse%',\n '%webView_inventory_filter_text%',\n '%webView_inventory_show_additional_items%',\n '%webView_inventory_occurrences_table_header_reference%',\n '%webView_inventory_occurrences_table_header_occurrence%',\n] as const);\n\nexport type InventoryLocalizedStrings = {\n [localizedInventoryKey in (typeof INVENTORY_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/** Scope of scripture that the inventory can operate on */\nexport type Scope = 'book' | 'chapter' | 'verse';\n\n/** Status values that the status filter can select from */\ntype StatusFilter = Status | 'all';\n\n/** Text labels for the inventory columns and the control components of additional inventory items */\ntype AdditionalItemsLabels = {\n checkboxText?: string;\n tableHeaders?: string[];\n};\n\n/**\n * Filters data that is shown in the DataTable section of the Inventory\n *\n * @param itemData All inventory items and their related information\n * @param statusFilter Allows filtering by status (i.e. show all items, or only items that are\n * 'approved', 'unapproved' or 'unknown')\n * @param textFilter Allows filtering by text. All items that include the filter text will be\n * selected.\n * @returns Array of items and their related information that are matched by the specified filters\n */\nconst filterItemData = (\n itemData: InventoryTableData[],\n statusFilter: StatusFilter,\n textFilter: string,\n): InventoryTableData[] => {\n let filteredItemData: InventoryTableData[] = itemData;\n\n if (statusFilter !== 'all') {\n filteredItemData = filteredItemData.filter(\n (item) =>\n (statusFilter === 'approved' && item.status === 'approved') ||\n (statusFilter === 'unapproved' && item.status === 'unapproved') ||\n (statusFilter === 'unknown' && item.status === 'unknown'),\n );\n }\n\n if (textFilter !== '')\n filteredItemData = filteredItemData.filter((item) => item.items[0].includes(textFilter));\n\n return filteredItemData;\n};\n\n/**\n * Turns array of strings into array of inventory items, along with their count and status\n *\n * @param text The source scripture text that is searched for inventory items\n * @param scriptureRef The scripture reference that the application is currently set to\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @param itemRegex Regular expression that describes what items this Inventory should extract from\n * the provided scripture text\n * @returns Array of inventory items, along with their count and status\n */\nconst createTableData = (\n text: string | undefined,\n scriptureRef: ScriptureReference,\n approvedItems: string[],\n unapprovedItems: string[],\n itemRegex: RegExp,\n): InventoryTableData[] => {\n if (!text) return [];\n\n const tableData: InventoryTableData[] = [];\n\n let currentBook: number | undefined = scriptureRef.bookNum;\n let currentChapter: number | undefined = scriptureRef.chapterNum;\n let currentVerse: number | undefined = scriptureRef.verseNum;\n\n const lines = getLinesFromUSFM(text);\n\n lines.forEach((line: string) => {\n if (line.startsWith('\\\\id')) {\n currentBook = getBookNumFromId(line);\n currentChapter = 0;\n currentVerse = 0;\n }\n if (line.startsWith('\\\\c')) {\n currentChapter = getNumberFromUSFM(line);\n currentVerse = 0;\n }\n if (line.startsWith('\\\\v')) {\n currentVerse = getNumberFromUSFM(line);\n if (currentChapter === 0) {\n currentChapter = scriptureRef.chapterNum;\n }\n }\n\n let match: RegExpExecArray | undefined = itemRegex.exec(line) ?? undefined;\n while (match) {\n const items: string[] = [];\n match.forEach((item) => items.push(item));\n const itemIndex = match.index;\n const existingItem = tableData.find((tableEntry) => deepEqual(tableEntry.items, items));\n const newReference: InventoryItemOccurrence = {\n reference: {\n bookNum: currentBook !== undefined ? currentBook : -1,\n chapterNum: currentChapter !== undefined ? currentChapter : -1,\n verseNum: currentVerse !== undefined ? currentVerse : -1,\n },\n text: substring(line, Math.max(0, itemIndex - 25), Math.min(itemIndex + 25, line.length)),\n };\n if (existingItem) {\n existingItem.count += 1;\n existingItem.occurrences.push(newReference);\n } else {\n const newItem: InventoryTableData = {\n items,\n count: 1,\n status: getStatusForItem(items[0], approvedItems, unapprovedItems),\n occurrences: [newReference],\n };\n tableData.push(newItem);\n }\n\n match = itemRegex.exec(line) ?? undefined;\n }\n });\n\n return tableData;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: InventoryLocalizedStrings,\n key: keyof InventoryLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\n/** Props for the Inventory component */\ntype InventoryProps = {\n /** The scripture reference that the application is currently set to */\n scriptureReference: ScriptureReference;\n /** Callback function that is executed when the scripture reference is changed */\n setScriptureReference: (scriptureReference: ScriptureReference) => void;\n /**\n * Object with all localized strings that the Inventory needs to work well across multiple\n * languages. When using this component with Platform.Bible, you can import\n * `INVENTORY_STRING_KEYS` from this library, pass it in to the Platform's localization hook, and\n * pass the localized keys that are returned by the hook into this prop.\n */\n localizedStrings: InventoryLocalizedStrings;\n /**\n * The logic that finds the desired items in the source text. This can either be a Regular\n * expression that captures one or multiple items (preferred), or a custom function that builds\n * and return an InventoryDataTable[] manually. Note: In case the logic captures more than one\n * item (i.e. InventoryTableData.items has a length greater than 1), you must provide text labels\n * for the related columns and control elements to show by setting the `additionalItemsLabels`\n * prop\n */\n extractItems:\n | RegExp\n | ((\n text: string | undefined,\n scriptureRef: ScriptureReference,\n approvedItems: string[],\n unapprovedItems: string[],\n ) => InventoryTableData[]);\n /**\n * Text labels for control elements and additional column headers in case your Inventory has more\n * than one item to show (e.g. The 'Preceding Marker' in the Markers Inventory)\n */\n additionalItemsLabels?: AdditionalItemsLabels;\n /** Array of approved items, typically as defined in `Settings.xml` */\n approvedItems: string[];\n /** Array of unapproved items, typically as defined in `Settings.xml` */\n unapprovedItems: string[];\n /** The source scripture text that is searched for in inventory items */\n text: string | undefined;\n /** Scope of scripture that the inventory will operate on */\n scope: Scope;\n /** Callback function that is executed when the scope is changed from the Inventory */\n onScopeChange: (scope: Scope) => void;\n /**\n * Column definitions for the Inventory data table. The most commonly used column definitions are\n * pre-configured for your convenience and can be imported (e.g. inventoryItemColumn,\n * inventoryAdditionalItemColumn inventoryCountColumn, and inventoryStatusColumn). If you need any\n * other columns you can add these yourself\n */\n columns: ColumnDef[];\n};\n\n/** Inventory component that is used to view and control the status of provided project settings */\nexport default function Inventory({\n scriptureReference,\n setScriptureReference,\n localizedStrings,\n extractItems,\n additionalItemsLabels,\n approvedItems,\n unapprovedItems,\n text,\n scope,\n onScopeChange,\n columns,\n}: InventoryProps) {\n const allItemsText = localizeString(localizedStrings, '%webView_inventory_all%');\n const approvedItemsText = localizeString(localizedStrings, '%webView_inventory_approved%');\n const unapprovedItemsText = localizeString(localizedStrings, '%webView_inventory_unapproved%');\n const unknownItemsText = localizeString(localizedStrings, '%webView_inventory_unknown%');\n const scopeBookText = localizeString(localizedStrings, '%webView_inventory_scope_currentBook%');\n const scopeChapterText = localizeString(localizedStrings, '%webView_inventory_scope_chapter%');\n const scopeVerseText = localizeString(localizedStrings, '%webView_inventory_scope_verse%');\n const filterText = localizeString(localizedStrings, '%webView_inventory_filter_text%');\n const showAdditionalItemsText = localizeString(\n localizedStrings,\n '%webView_inventory_show_additional_items%',\n );\n\n const [showAdditionalItems, setShowAdditionalItems] = useState(false);\n const [statusFilter, setStatusFilter] = useState('all');\n const [textFilter, setTextFilter] = useState('');\n const [selectedItem, setSelectedItem] = useState([]);\n\n const tableData: InventoryTableData[] = useMemo(() => {\n if (!text) return [];\n if (extractItems instanceof RegExp)\n return createTableData(\n text,\n scriptureReference,\n approvedItems,\n unapprovedItems,\n extractItems,\n );\n return extractItems(text, scriptureReference, approvedItems, unapprovedItems);\n }, [text, extractItems, scriptureReference, approvedItems, unapprovedItems]);\n\n const reducedTableData: InventoryTableData[] = useMemo(() => {\n if (showAdditionalItems) return tableData;\n\n const newTableData: InventoryTableData[] = [];\n\n tableData.forEach((tableEntry) => {\n const firstItem = tableEntry.items[0];\n\n const existingEntry = newTableData.find(\n (newTableEntry) => newTableEntry.items[0] === firstItem,\n );\n\n if (existingEntry) {\n existingEntry.count += tableEntry.count;\n existingEntry.occurrences = existingEntry.occurrences.concat(tableEntry.occurrences);\n } else {\n newTableData.push({\n items: [firstItem],\n count: tableEntry.count,\n occurrences: tableEntry.occurrences,\n status: tableEntry.status,\n });\n }\n });\n\n return newTableData;\n }, [showAdditionalItems, tableData]);\n\n const filteredTableData: InventoryTableData[] = useMemo(() => {\n return filterItemData(reducedTableData, statusFilter, textFilter);\n }, [reducedTableData, statusFilter, textFilter]);\n\n const allColumns: ColumnDef[] = useMemo(() => {\n if (!showAdditionalItems) return columns;\n\n const numberOfAdditionalItems = additionalItemsLabels?.tableHeaders?.length;\n if (!numberOfAdditionalItems) return columns;\n\n const additionalColumns: ColumnDef[] = [];\n\n for (let index = 0; index < numberOfAdditionalItems; index++) {\n additionalColumns.push(\n inventoryAdditionalItemColumn(\n additionalItemsLabels?.tableHeaders?.[index] || 'Additional Item',\n index + 1,\n ),\n );\n }\n\n return [...additionalColumns, ...columns];\n }, [additionalItemsLabels?.tableHeaders, columns, showAdditionalItems]);\n\n useEffect(() => {\n setSelectedItem([]);\n }, [filteredTableData]);\n\n const rowClickHandler = (\n row: RowContents,\n table: TableContents,\n ) => {\n table.setRowSelection(() => {\n const newSelection: RowSelectionState = {};\n newSelection[row.index] = true;\n return newSelection;\n });\n\n setSelectedItem(row.original.items);\n };\n\n const handleScopeChange = (value: string) => {\n if (value === 'book' || value === 'chapter' || value === 'verse') {\n onScopeChange(value);\n } else {\n throw new Error(`Invalid scope value: ${value}`);\n }\n };\n\n const handleStatusFilterChange = (value: string) => {\n if (value === 'all' || value === 'approved' || value === 'unapproved' || value === 'unknown') {\n setStatusFilter(value);\n } else {\n throw new Error(`Invalid status filter value: ${value}`);\n }\n };\n\n const occurrenceData: InventoryItemOccurrence[] = useMemo(() => {\n if (reducedTableData.length === 0 || selectedItem.length === 0) return [];\n const occurrence = reducedTableData.filter((tableEntry: InventoryTableData) => {\n return deepEqual(\n showAdditionalItems ? tableEntry.items : [tableEntry.items[0]],\n selectedItem,\n );\n });\n if (occurrence.length > 1) throw new Error('Selected item is not unique');\n return occurrence[0].occurrences;\n }, [selectedItem, showAdditionalItems, reducedTableData]);\n\n return (\n
\n
\n handleStatusFilterChange(value)}\n defaultValue={statusFilter}\n >\n \n \n \n \n {allItemsText}\n {approvedItemsText}\n {unapprovedItemsText}\n {unknownItemsText}\n \n \n \n {\n setTextFilter(event.target.value);\n }}\n />\n {additionalItemsLabels && (\n
\n {\n setSelectedItem([]);\n setShowAdditionalItems(checked);\n }}\n />\n \n
\n )}\n
\n
\n \n
\n {occurrenceData.length > 0 && (\n
\n \n
\n )}\n
\n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/components/shadcn-ui/command';\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Check, ChevronsUpDown, Star } from 'lucide-react';\nimport { ReactNode, useCallback, useMemo, useState } from 'react';\n\ntype MultiSelectComboBoxEntry = {\n value: string;\n label: string;\n starred?: boolean;\n};\n\ninterface MultiSelectComboBoxProps {\n entries: MultiSelectComboBoxEntry[];\n getEntriesCount?: (option: MultiSelectComboBoxEntry) => number;\n selected: string[];\n onChange: (values: string[]) => void;\n placeholder: string;\n commandEmptyMessage?: string;\n customSelectedText?: string;\n sortSelected?: boolean;\n icon?: ReactNode;\n}\n\nfunction MultiSelectComboBox({\n entries,\n getEntriesCount = undefined,\n selected,\n onChange,\n placeholder,\n commandEmptyMessage = 'No entries found',\n customSelectedText,\n sortSelected = false,\n icon = undefined,\n}: MultiSelectComboBoxProps) {\n const [open, setOpen] = useState(false);\n\n const handleSelect = useCallback(\n (value: string) => {\n onChange(\n selected.includes(value) ? selected.filter((item) => item !== value) : [...selected, value],\n );\n },\n [selected, onChange],\n );\n\n const getPlaceholderText = () => {\n if (selected.length === 1)\n return entries.find((option) => option.value === selected[0])?.label ?? placeholder;\n if (customSelectedText) return customSelectedText;\n return placeholder;\n };\n\n const sortedOptions = useMemo(() => {\n if (!sortSelected) return entries;\n\n const starredItems = entries\n .filter((opt) => opt.starred)\n .sort((a, b) => a.label.localeCompare(b.label));\n const nonStarredItems = entries\n .filter((opt) => !opt.starred)\n .sort((a, b) => {\n const aSelected = selected.includes(a.value);\n const bSelected = selected.includes(b.value);\n if (aSelected && !bSelected) return -1;\n if (!aSelected && bSelected) return 1;\n return a.label.localeCompare(b.label);\n });\n\n return [...starredItems, ...nonStarredItems];\n }, [entries, selected, sortSelected]);\n\n return (\n \n \n 0 && selected.length < entries.length && 'tw-border-primary',\n 'tw-group',\n )}\n >\n
\n
\n \n {icon}\n \n
\n \n {getPlaceholderText()}\n
\n \n \n \n
\n \n \n \n \n {commandEmptyMessage}\n \n {sortedOptions.map((option) => {\n const count: number | undefined = getEntriesCount\n ? getEntriesCount(option)\n : undefined;\n return (\n \n
\n \n
\n
\n {option.starred && }\n
\n
{option.label}
\n {getEntriesCount && (\n
{count}
\n )}\n \n );\n })}\n
\n
\n
\n
\n
\n );\n}\n\nexport default MultiSelectComboBox;\n","import { Button } from '@/components/shadcn-ui/button';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Search, X } from 'lucide-react';\nimport { useState } from 'react';\n\n/** Props for the SearchBar component. */\nexport type SearchBarProps = {\n /**\n * Callback fired to handle the search query when button pressed\n *\n * @param searchQuery\n */\n onSearch: (searchQuery: string) => void;\n\n /** Optional string that appears in the search bar without a search string */\n placeholder?: string;\n\n /** Optional boolean to set the input base to full width */\n isFullWidth?: boolean;\n\n /** Additional css classes to help with unique styling of the search bar */\n className?: string;\n};\n\nexport default function SearchBar({\n onSearch,\n placeholder,\n isFullWidth,\n className,\n}: SearchBarProps) {\n const [searchQuery, setSearchQuery] = useState('');\n\n const handleInputChange = (searchString: string) => {\n setSearchQuery(searchString);\n onSearch(searchString);\n };\n\n const dir: Direction = readDirection();\n\n return (\n
\n \n handleInputChange(e.target.value)}\n />\n {searchQuery && (\n {\n handleInputChange('');\n }}\n >\n \n Clear\n \n )}\n
\n );\n}\n","// adapted from: https://github.com/shadcn-ui/ui/discussions/752\n\n'use client';\n\nimport { TabsContentProps, TabsListProps, TabsTriggerProps } from '@/components/shadcn-ui/tabs';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport React from 'react';\n\nexport type VerticalTabsProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type LeftTabsTriggerProps = TabsTriggerProps & {\n value: string;\n ref?: React.Ref;\n};\n\nexport const VerticalTabs = React.forwardRef<\n React.ElementRef,\n VerticalTabsProps\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\n\nVerticalTabs.displayName = TabsPrimitive.List.displayName;\n\nexport const VerticalTabsList = React.forwardRef<\n React.ElementRef,\n TabsListProps\n>(({ className, ...props }, ref) => (\n \n));\nVerticalTabsList.displayName = TabsPrimitive.List.displayName;\n\nexport const VerticalTabsTrigger = React.forwardRef<\n React.ElementRef,\n LeftTabsTriggerProps\n>(({ className, ...props }, ref) => (\n \n));\n\nexport const VerticalTabsContent = React.forwardRef<\n React.ElementRef,\n TabsContentProps\n>(({ className, ...props }, ref) => (\n \n));\nVerticalTabsContent.displayName = TabsPrimitive.Content.displayName;\n","import SearchBar from '@/components/basics/search-bar.component';\nimport {\n VerticalTabs,\n VerticalTabsContent,\n VerticalTabsList,\n VerticalTabsTrigger,\n} from '@/components/basics/tabs-vertical';\nimport { ReactNode } from 'react';\n\nexport type TabKeyValueContent = {\n key: string;\n value: string;\n content: ReactNode;\n};\n\nexport type TabNavigationContentSearchProps = {\n /** List of values and keys for each tab this component should provide */\n tabList: TabKeyValueContent[];\n\n /** Handler to run when the value of the search bar changes */\n onSearch: (searchQuery: string) => void;\n\n /** Optional placeholder for the search bar */\n searchPlaceholder?: string;\n\n /** Optional title to include in the header */\n headerTitle?: string;\n\n /** Optional className to modify the search input */\n searchClassName?: string;\n};\n\nexport default function TabNavigationContentSearch({\n tabList,\n onSearch,\n searchPlaceholder,\n headerTitle,\n searchClassName,\n}: TabNavigationContentSearchProps) {\n return (\n
\n
\n {headerTitle ?

{headerTitle}

: ''}\n \n
\n \n \n {tabList.map((tab) => (\n \n {tab.value}\n \n ))}\n \n {tabList.map((tab) => (\n \n {tab.content}\n \n ))}\n \n
\n );\n}\n","import React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Separator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n \n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nfunction Skeleton({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\n\nexport { Skeleton };\n","import React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst TooltipProvider = TooltipPrimitive.Provider;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { VariantProps, cva } from 'class-variance-authority';\nimport { PanelLeft, PanelRight } from 'lucide-react';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Separator } from '@/components/shadcn-ui/separator';\nimport { Skeleton } from '@/components/shadcn-ui/skeleton';\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '@/components/shadcn-ui/tooltip';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\n/**\n * CUSTOM: Changes from the original code from Shadcn- Removed uses of useIsMobile, Sheet, and\n * SheetContent. Also removed the parts setting COOKIES.\n */\n\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_ICON = '3rem';\n// CUSTOM: Commented this out pending a discussion with UX about keyboard shortcuts\n// const SIDEBAR_KEYBOARD_SHORTCUT = 'b';\n\ntype Side = 'primary' | 'secondary';\n\ntype SidebarContextProps = {\n state: 'expanded' | 'collapsed';\n open: boolean;\n setOpen: (open: boolean) => void;\n toggleSidebar: () => void;\n // CUSTOM: this was moved from Sidebar to SidebarProvider to also be able to flip the icon based on the side\n side: Side;\n};\n\nconst SidebarContext = React.createContext(undefined);\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext);\n if (!context) {\n throw new Error('useSidebar must be used within a SidebarProvider.');\n }\n\n return context;\n}\n\nconst SidebarProvider = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n defaultOpen?: boolean;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n side?: Side;\n }\n>(\n (\n {\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n children,\n side = 'primary',\n ...props\n },\n ref,\n ) => {\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = React.useState(defaultOpen);\n const isOpen = openProp ?? _open;\n const setOpen = React.useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === 'function' ? value(isOpen) : value;\n if (setOpenProp) {\n setOpenProp(openState);\n } else {\n _setOpen(openState);\n }\n },\n [setOpenProp, isOpen],\n );\n\n // Helper to toggle the sidebar.\n const toggleSidebar = React.useCallback(() => {\n return setOpen((open) => !open);\n }, [setOpen]);\n\n // CUSTOM: Commented this out pending a discussion with UX about keyboard shortcuts\n // Adds a keyboard shortcut to toggle the sidebar.\n // React.useEffect(() => {\n // const handleKeyDown = (event: KeyboardEvent) => {\n // if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n // event.preventDefault();\n // toggleSidebar();\n // }\n // };\n\n // window.addEventListener('keydown', handleKeyDown);\n // return () => window.removeEventListener('keydown', handleKeyDown);\n // }, [toggleSidebar]);\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = isOpen ? 'expanded' : 'collapsed';\n\n const dir: Direction = readDirection();\n const oppositeSide: Side = side === 'primary' ? 'secondary' : 'primary';\n const directionAwareSide = dir === 'ltr' ? side : oppositeSide;\n\n const contextValue = React.useMemo(\n () => ({\n state,\n open: isOpen,\n setOpen,\n toggleSidebar,\n side: directionAwareSide,\n }),\n [state, isOpen, setOpen, toggleSidebar, directionAwareSide],\n );\n\n return (\n \n \n \n {children}\n \n \n \n );\n },\n);\nSidebarProvider.displayName = 'SidebarProvider';\n\nconst Sidebar = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n variant?: 'sidebar' | 'floating' | 'inset';\n collapsible?: 'offcanvas' | 'icon' | 'none';\n }\n>(({ variant = 'sidebar', collapsible = 'offcanvas', className, children, ...props }, ref) => {\n const context = useSidebar();\n\n if (collapsible === 'none') {\n return (\n \n {children}\n \n );\n }\n\n return (\n \n {/* This is what handles the sidebar gap on desktop */}\n \n \n \n {children}\n \n \n \n );\n});\nSidebar.displayName = 'Sidebar';\n\nconst SidebarTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, onClick, ...props }, ref) => {\n const context = useSidebar();\n\n return (\n {\n onClick?.(event);\n context.toggleSidebar();\n }}\n {...props}\n >\n {context.side === 'primary' ? : }\n Toggle Sidebar\n \n );\n});\nSidebarTrigger.displayName = 'SidebarTrigger';\n\nconst SidebarRail = React.forwardRef>(\n ({ className, ...props }, ref) => {\n const { toggleSidebar } = useSidebar();\n\n return (\n \n );\n },\n);\nSidebarRail.displayName = 'SidebarRail';\n\nconst SidebarInset = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarInset.displayName = 'SidebarInset';\n\nconst SidebarInput = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, ...props }, ref) => {\n return (\n \n );\n});\nSidebarInput.displayName = 'SidebarInput';\n\nconst SidebarHeader = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarHeader.displayName = 'SidebarHeader';\n\nconst SidebarFooter = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarFooter.displayName = 'SidebarFooter';\n\nconst SidebarSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, ...props }, ref) => {\n return (\n \n );\n});\nSidebarSeparator.displayName = 'SidebarSeparator';\n\nconst SidebarContent = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarContent.displayName = 'SidebarContent';\n\nconst SidebarGroup = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarGroup.displayName = 'SidebarGroup';\n\nconst SidebarGroupLabel = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'div';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n 'group-data-[collapsible=icon]:tw--mt-8 group-data-[collapsible=icon]:tw-opacity-0',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupLabel.displayName = 'SidebarGroupLabel';\n\nconst SidebarGroupAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:tw-absolute after:tw--inset-2 after:md:tw-hidden',\n 'group-data-[collapsible=icon]:tw-hidden',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupAction.displayName = 'SidebarGroupAction';\n\nconst SidebarGroupContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarGroupContent.displayName = 'SidebarGroupContent';\n\nconst SidebarMenu = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenu.displayName = 'SidebarMenu';\n\nconst SidebarMenuItem = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuItem.displayName = 'SidebarMenuItem';\n\nconst sidebarMenuButtonVariants = cva(\n // CUSTOM: Removed data-[active=true]:tw-bg-sidebar-accent\n 'tw-peer/menu-button tw-flex tw-w-full tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-p-2 tw-text-left tw-text-sm tw-outline-none tw-ring-sidebar-ring tw-transition-[width,height,padding] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 tw-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 data-[active=true]:tw-font-medium data-[active=true]:tw-text-sidebar-accent-foreground data-[state=open]:hover:tw-bg-sidebar-accent data-[state=open]:hover:tw-text-sidebar-accent-foreground group-data-[collapsible=icon]:tw-!size-8 group-data-[collapsible=icon]:tw-!p-2 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0',\n {\n variants: {\n variant: {\n default: 'hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground',\n outline:\n 'tw-bg-background tw-shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground hover:tw-shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n default: 'tw-h-8 tw-text-sm',\n sm: 'tw-h-7 tw-text-xs',\n lg: 'tw-h-12 tw-text-sm group-data-[collapsible=icon]:tw-!p-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nconst SidebarMenuButton = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & {\n asChild?: boolean;\n isActive?: boolean;\n tooltip?: string | React.ComponentProps;\n } & VariantProps\n>(\n (\n {\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'default',\n tooltip,\n className,\n ...props\n },\n ref,\n ) => {\n const Comp = asChild ? Slot : 'button';\n const { state } = useSidebar();\n\n const button = (\n \n );\n\n if (!tooltip) {\n return button;\n }\n\n if (typeof tooltip === 'string') {\n // eslint-disable-next-line no-param-reassign\n tooltip = {\n children: tooltip,\n };\n }\n\n return (\n \n {button}\n \n );\n },\n);\nSidebarMenuButton.displayName = 'SidebarMenuButton';\n\nconst SidebarMenuAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & {\n asChild?: boolean;\n showOnHover?: boolean;\n }\n>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:tw-absolute after:tw--inset-2 after:md:tw-hidden',\n 'tw-peer-data-[size=sm]/menu-button:top-1',\n 'tw-peer-data-[size=default]/menu-button:top-1.5',\n 'tw-peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:tw-hidden',\n showOnHover &&\n 'tw-group-focus-within/menu-item:opacity-100 tw-group-hover/menu-item:opacity-100 tw-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:tw-opacity-100 md:tw-opacity-0',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuAction.displayName = 'SidebarMenuAction';\n\nconst SidebarMenuBadge = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuBadge.displayName = 'SidebarMenuBadge';\n\nconst SidebarMenuSkeleton = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n showIcon?: boolean;\n }\n>(({ className, showIcon = false, ...props }, ref) => {\n // Random width between 50 to 90%.\n const width = React.useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`;\n }, []);\n\n return (\n \n {showIcon && (\n \n )}\n \n \n );\n});\nSidebarMenuSkeleton.displayName = 'SidebarMenuSkeleton';\n\nconst SidebarMenuSub = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuSub.displayName = 'SidebarMenuSub';\n\nconst SidebarMenuSubItem = React.forwardRef>(\n ({ ...props }, ref) =>
  • ,\n);\nSidebarMenuSubItem.displayName = 'SidebarMenuSubItem';\n\nconst SidebarMenuSubButton = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentProps<'a'> & {\n asChild?: boolean;\n size?: 'sm' | 'md';\n isActive?: boolean;\n }\n>(({ asChild = false, size = 'md', isActive, className, ...props }, ref) => {\n const Comp = asChild ? Slot : 'a';\n\n return (\n span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0 [&>svg]:tw-text-sidebar-accent-foreground',\n 'data-[active=true]:tw-bg-sidebar-accent data-[active=true]:tw-text-sidebar-accent-foreground',\n size === 'sm' && 'tw-text-xs',\n size === 'md' && 'tw-text-sm',\n 'group-data-[collapsible=icon]:tw-hidden',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuSubButton.displayName = 'SidebarMenuSubButton';\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n};\n","import ComboBox, { ComboBoxOption } from '@/components/basics/combo-box.component';\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuItem,\n SidebarMenuButton,\n} from '@/components/shadcn-ui/sidebar';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type SelectedSettingsSidebarItem = {\n label: string;\n projectId?: string;\n};\n\nexport type ProjectInfo = { projectId: string; projectName: string };\n\nexport type SettingsSidebarProps = {\n /** Optional id for testing */\n id?: string;\n\n /** Extension labels from contribution */\n extensionLabels: string[];\n\n /** Project names and ids */\n projectInfo: ProjectInfo[];\n\n /** Handler for selecting a sidebar item */\n handleSelectSidebarItem: (key: string, projectId?: string) => void;\n\n /** The current selected value in the sidebar */\n selectedSidebarItem: SelectedSettingsSidebarItem;\n\n /** Label for the group of extensions setting groups */\n extensionsSidebarGroupLabel: string;\n\n /** Label for the group of projects settings */\n projectsSidebarGroupLabel: string;\n\n /** Placeholder text for the button */\n buttonPlaceholderText: string;\n};\n\nexport default function SettingsSidebar({\n id,\n extensionLabels,\n projectInfo,\n handleSelectSidebarItem,\n selectedSidebarItem,\n extensionsSidebarGroupLabel,\n projectsSidebarGroupLabel,\n buttonPlaceholderText,\n}: SettingsSidebarProps) {\n const handleSelectItem = useCallback(\n (item: string, projectId?: string) => {\n handleSelectSidebarItem(item, projectId);\n },\n [handleSelectSidebarItem],\n );\n\n const getProjectNameFromProjectId = useCallback(\n (projectId: string) => {\n const project = projectInfo.find((info) => info.projectId === projectId);\n return project ? project.projectName : projectId;\n },\n [projectInfo],\n );\n\n const getIsActive: (label: string) => boolean = useCallback(\n (label: string) => !selectedSidebarItem.projectId && label === selectedSidebarItem.label,\n [selectedSidebarItem],\n );\n\n return (\n \n \n \n \n {extensionsSidebarGroupLabel}\n \n \n \n {extensionLabels.map((label) => (\n \n handleSelectItem(label)}\n isActive={getIsActive(label)}\n >\n {label}\n \n \n ))}\n \n \n \n \n \n {projectsSidebarGroupLabel}\n \n \n info.projectId)}\n getOptionLabel={(projectId: ComboBoxOption) => {\n // This function expects a ComboBoxOption, but we know it is a string\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n return getProjectNameFromProjectId(projectId as string);\n }}\n buttonPlaceholder={buttonPlaceholderText}\n onChange={(projectId: string) => {\n const selectedProjectName = getProjectNameFromProjectId(projectId);\n handleSelectItem(selectedProjectName, projectId);\n }}\n value={selectedSidebarItem?.projectId ?? undefined}\n />\n \n \n \n \n );\n}\n","import { SidebarInset, SidebarProvider } from '@/components/shadcn-ui/sidebar';\nimport { PropsWithChildren } from 'react';\nimport SearchBar from '@/components/basics/search-bar.component';\nimport SettingsSidebar, { SettingsSidebarProps } from './settings-sidebar.component';\n\nexport type SettingsSidebarContentSearchProps = SettingsSidebarProps &\n PropsWithChildren & {\n /** Optional id for testing */\n id?: string;\n\n /** Handler to run when the value of the search bar changes */\n onSearch: (searchQuery: string) => void;\n };\n\nexport default function SettingsSidebarContentSearch({\n id,\n extensionLabels,\n projectInfo,\n children,\n handleSelectSidebarItem,\n selectedSidebarItem,\n onSearch,\n extensionsSidebarGroupLabel,\n projectsSidebarGroupLabel,\n buttonPlaceholderText,\n}: SettingsSidebarContentSearchProps) {\n return (\n
    \n
    \n \n
    \n \n \n {children}\n \n
    \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Canon } from '@sillsdev/scripture';\nimport {\n Cell,\n ColumnDef,\n flexRender,\n getCoreRowModel,\n getExpandedRowModel,\n getGroupedRowModel,\n getSortedRowModel,\n GroupingState,\n Row,\n RowSelectionState,\n SortingState,\n useReactTable,\n} from '@tanstack/react-table';\nimport '@/components/advanced/scripture-results-viewer/scripture-results-viewer.component.css';\nimport {\n compareScrRefs,\n formatScrRef,\n ScriptureSelection,\n scrRefToBBBCCCVVV,\n} from 'platform-bible-utils';\nimport { MouseEvent, useEffect, useMemo, useState } from 'react';\nimport { ChevronDown, ChevronLeft, ChevronRight } from 'lucide-react';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\n/**\n * Information (e.g., a checking error or some other type of \"transient\" annotation) about something\n * noteworthy at a specific place in an instance of the Scriptures.\n */\nexport type ScriptureItemDetail = ScriptureSelection & {\n /**\n * Text of the error, note, etc. In the future, we might want to support something more than just\n * text so that a JSX element could be provided with a link or some other controls related to the\n * issue being reported.\n */\n detail: string;\n};\n\n/**\n * A uniquely identifiable source of results that can be displayed in the ScriptureResultsViewer.\n * Generally, the source will be a particular Scripture check, but there may be other types of\n * sources.\n */\nexport type ResultsSource = {\n /**\n * Uniquely identifies the source.\n *\n * @type {string}\n */\n id: string;\n\n /**\n * Name (potentially localized) of the source, suitable for display in the UI.\n *\n * @type {string}\n */\n displayName: string;\n};\n\nexport type ScriptureSrcItemDetail = ScriptureItemDetail & {\n /** Source/type of detail. Can be used for grouping. */\n source: ResultsSource;\n};\n\n/**\n * Represents a set of results keyed by Scripture reference. Generally, the source will be a\n * particular Scripture check, but this type also allows for other types of uniquely identifiable\n * sources.\n */\nexport type ResultsSet = {\n /**\n * The backing source associated with this set of results.\n *\n * @type {ResultsSource}\n */\n source: ResultsSource;\n\n /**\n * Array of Scripture item details (messages keyed by Scripture reference).\n *\n * @type {ScriptureItemDetail[]}\n */\n data: ScriptureItemDetail[];\n};\n\nconst scrBookColId = 'scrBook';\nconst scrRefColId = 'scrRef';\nconst typeColId = 'source';\nconst detailsColId = 'details';\n\nconst defaultScrRefColumnName = 'Scripture Reference';\nconst defaultScrBookGroupName = 'Scripture Book';\nconst defaultTypeColumnName = 'Type';\nconst defaultDetailsColumnName = 'Details';\n\nexport type ScriptureResultsViewerColumnInfo = {\n /** Optional header to display for the Reference column. Default value: 'Scripture Reference'. */\n scriptureReferenceColumnName?: string;\n\n /** Optional text to display to refer to the Scripture book group. Default value: 'Scripture Book'. */\n scriptureBookGroupName?: string;\n\n /** Optional header to display for the Type column. Default value: 'Type'. */\n typeColumnName?: string;\n\n /** Optional header to display for the Details column. Default value: 'Details' */\n detailsColumnName?: string;\n};\n\nexport type ScriptureResultsViewerProps = ScriptureResultsViewerColumnInfo & {\n /** Groups of ScriptureItemDetail objects from particular sources (e.g., Scripture checks) */\n sources: ResultsSet[];\n\n /** Flag indicating whether to display column headers. Default is false. */\n showColumnHeaders?: boolean;\n\n /** Flag indicating whether to display source column. Default is false. */\n showSourceColumn?: boolean;\n\n /** Callback function to notify when a row is selected */\n onRowSelected?: (selectedRow: ScriptureSrcItemDetail | undefined) => void;\n};\n\nfunction getColumns(\n colInfo?: ScriptureResultsViewerColumnInfo,\n showSourceColumn?: boolean,\n): ColumnDef[] {\n const showSrcCol = showSourceColumn ?? false;\n return [\n {\n accessorFn: (row) =>\n `${Canon.bookNumberToId(row.start.bookNum)} ${row.start.chapterNum}:${row.start.verseNum}`,\n id: scrBookColId,\n header: colInfo?.scriptureReferenceColumnName ?? defaultScrRefColumnName,\n cell: (info) => {\n const row = info.row.original;\n if (info.row.getIsGrouped()) {\n return Canon.bookNumberToEnglishName(row.start.bookNum);\n }\n return info.row.groupingColumnId === scrBookColId ? formatScrRef(row.start) : undefined;\n },\n getGroupingValue: (row) => row.start.bookNum,\n sortingFn: (a, b) => {\n return compareScrRefs(a.original.start, b.original.start);\n },\n enableGrouping: true,\n },\n {\n accessorFn: (row) => formatScrRef(row.start),\n id: scrRefColId,\n header: undefined,\n cell: (info) => {\n const row = info.row.original;\n return info.row.getIsGrouped() ? undefined : formatScrRef(row.start);\n },\n sortingFn: (a, b) => {\n return compareScrRefs(a.original.start, b.original.start);\n },\n enableGrouping: false,\n },\n {\n accessorFn: (row) => row.source.displayName,\n id: typeColId,\n header: showSrcCol ? (colInfo?.typeColumnName ?? defaultTypeColumnName) : undefined,\n cell: (info) => (showSrcCol || info.row.getIsGrouped() ? info.getValue() : undefined),\n getGroupingValue: (row) => row.source.id,\n sortingFn: (a, b) =>\n a.original.source.displayName.localeCompare(b.original.source.displayName),\n enableGrouping: true,\n },\n {\n accessorFn: (row) => row.detail,\n id: detailsColId,\n header: colInfo?.detailsColumnName ?? defaultDetailsColumnName,\n cell: (info) => info.getValue(),\n enableGrouping: false,\n },\n ];\n}\n\nconst toRefOrRange = (scriptureSelection: ScriptureSelection) => {\n if (!('offset' in scriptureSelection.start))\n throw new Error('No offset available in range start');\n if (scriptureSelection.end && !('offset' in scriptureSelection.end))\n throw new Error('No offset available in range end');\n const { offset: offsetStart } = scriptureSelection.start;\n let offsetEnd: number = 0;\n if (scriptureSelection.end) ({ offset: offsetEnd } = scriptureSelection.end);\n if (\n !scriptureSelection.end ||\n compareScrRefs(scriptureSelection.start, scriptureSelection.end) === 0\n )\n return `${scrRefToBBBCCCVVV(scriptureSelection.start)}+${offsetStart}`;\n return `${scrRefToBBBCCCVVV(scriptureSelection.start)}+${offsetStart}-${scrRefToBBBCCCVVV(scriptureSelection.end)}+${offsetEnd}`;\n};\n\nconst getRowKey = (row: ScriptureSrcItemDetail) =>\n `${toRefOrRange({ start: row.start, end: row.end })} ${row.source.displayName} ${row.detail}`;\n\n/**\n * Component to display a combined list of detailed items from one or more sources, where the items\n * are keyed primarily by Scripture reference. This is particularly useful for displaying a list of\n * results from Scripture checks, but more generally could be used to display any \"results\" from any\n * source(s). The component allows for grouping by Scripture book, source, or both. By default, it\n * displays somewhat \"tree-like\" which allows it to be more horizontally compact and intuitive. But\n * it also has the option of displaying as a traditional table with column headings (with or without\n * the source column showing).\n */\nexport default function ScriptureResultsViewer({\n sources,\n showColumnHeaders = false,\n showSourceColumn = false,\n scriptureReferenceColumnName,\n scriptureBookGroupName,\n typeColumnName,\n detailsColumnName,\n onRowSelected,\n}: ScriptureResultsViewerProps) {\n const [grouping, setGrouping] = useState([]);\n const [sorting, setSorting] = useState([{ id: scrBookColId, desc: false }]);\n const [rowSelection, setRowSelection] = useState({});\n\n const scriptureResults = useMemo(\n () =>\n sources.flatMap((source) => {\n return source.data.map((item) => ({\n ...item,\n source: source.source,\n }));\n }),\n [sources],\n );\n\n const columns = useMemo(\n () =>\n getColumns(\n {\n scriptureReferenceColumnName,\n typeColumnName,\n detailsColumnName,\n },\n showSourceColumn,\n ),\n [scriptureReferenceColumnName, typeColumnName, detailsColumnName, showSourceColumn],\n );\n\n useEffect(() => {\n // Ensure sorting is applied correctly when grouped by type\n if (grouping.includes(typeColId)) {\n setSorting([\n { id: typeColId, desc: false },\n { id: scrBookColId, desc: false },\n ]);\n } else {\n setSorting([{ id: scrBookColId, desc: false }]);\n }\n }, [grouping]);\n\n const table = useReactTable({\n data: scriptureResults,\n columns,\n state: {\n grouping,\n sorting,\n rowSelection,\n },\n onGroupingChange: setGrouping,\n onSortingChange: setSorting,\n onRowSelectionChange: setRowSelection,\n getExpandedRowModel: getExpandedRowModel(),\n getGroupedRowModel: getGroupedRowModel(),\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n getRowId: getRowKey,\n autoResetExpanded: false,\n enableMultiRowSelection: false,\n enableSubRowSelection: false,\n });\n\n useEffect(() => {\n if (onRowSelected) {\n const selectedRows = table.getSelectedRowModel().rowsById;\n const keys = Object.keys(selectedRows);\n if (keys.length === 1) {\n const selectedRow = scriptureResults.find((row) => getRowKey(row) === keys[0]) || undefined;\n if (selectedRow) onRowSelected(selectedRow);\n }\n }\n }, [rowSelection, scriptureResults, onRowSelected, table]);\n\n // Define possible grouping options\n const scrBookGroupName = scriptureBookGroupName ?? defaultScrBookGroupName;\n const typeGroupName = typeColumnName ?? defaultTypeColumnName;\n\n const groupingOptions = [\n { label: 'No Grouping', value: [] },\n { label: `Group by ${scrBookGroupName}`, value: [scrBookColId] },\n { label: `Group by ${typeGroupName}`, value: [typeColId] },\n {\n label: `Group by ${scrBookGroupName} and ${typeGroupName}`,\n value: [scrBookColId, typeColId],\n },\n {\n label: `Group by ${typeGroupName} and ${scrBookGroupName}`,\n value: [typeColId, scrBookColId],\n },\n ];\n\n const handleSelectChange = (selectedGrouping: string) => {\n setGrouping(JSON.parse(selectedGrouping));\n };\n\n const handleRowClick = (row: Row, event: MouseEvent) => {\n if (!row.getIsGrouped() && !row.getIsSelected()) {\n row.getToggleSelectedHandler()(event);\n }\n };\n\n const getEvenOrOddBandingStyle = (row: Row, index: number) => {\n if (row.getIsGrouped()) return '';\n // UX has now said they don't think they want banding. I'm leaving in the code to\n // set even and odd styles, but there's nothing in the CSS to style them differently.\n // The \"even\" style used to also have tw-bg-neutral-300 (along with even) to create\n // a visual banding effect. That could be added back in if UX changes the decision.\n return cn('banded-row', index % 2 === 0 ? 'even' : 'odd');\n };\n\n const getIndent = (\n groupingState: GroupingState,\n row: Row,\n cell: Cell,\n ) => {\n if (groupingState?.length === 0 || row.depth < cell.column.getGroupedIndex()) return undefined;\n if (row.getIsGrouped()) {\n switch (row.depth) {\n case 1:\n return 'tw-ps-4';\n default:\n return undefined;\n }\n }\n switch (row.depth) {\n case 1:\n return 'tw-ps-8';\n case 2:\n return 'tw-ps-12';\n default:\n return undefined;\n }\n };\n\n return (\n
    \n {!showColumnHeaders && (\n {\n handleSelectChange(value);\n }}\n >\n \n \n \n \n \n {groupingOptions.map((option) => (\n \n {option.label}\n \n ))}\n \n \n \n )}\n \n {showColumnHeaders && (\n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers\n .filter((h) => h.column.columnDef.header)\n .map((header) => (\n /* For sticky column headers to work, we probably need to change the default definition of the shadcn Table component. See https://github.com/shadcn-ui/ui/issues/1151 */\n \n {header.isPlaceholder ? undefined : (\n
    \n {header.column.getCanGroup() ? (\n \n {header.column.getIsGrouped() ? `🛑` : `👊 `}\n \n ) : undefined}{' '}\n {flexRender(header.column.columnDef.header, header.getContext())}\n
    \n )}\n
    \n ))}\n
    \n ))}\n
    \n )}\n \n {table.getRowModel().rows.map((row, rowIndex) => {\n const dir: Direction = readDirection();\n return (\n handleRowClick(row, event)}\n >\n {row.getVisibleCells().map((cell) => {\n if (\n cell.getIsPlaceholder() ||\n (cell.column.columnDef.enableGrouping &&\n !cell.getIsGrouped() &&\n (cell.column.columnDef.id !== typeColId || !showSourceColumn))\n )\n return undefined;\n return (\n \n {(() => {\n if (cell.getIsGrouped()) {\n return (\n \n {row.getIsExpanded() && }\n {!row.getIsExpanded() &&\n (dir === 'ltr' ? : )}{' '}\n {flexRender(cell.column.columnDef.cell, cell.getContext())} (\n {row.subRows.length})\n \n );\n }\n\n // if (cell.getIsAggregated()) {\n // flexRender(\n // cell.column.columnDef.aggregatedCell ?? cell.column.columnDef.cell,\n // cell.getContext(),\n // );\n // }\n\n return flexRender(cell.column.columnDef.cell, cell.getContext());\n })()}\n \n );\n })}\n \n );\n })}\n \n
    \n
    \n );\n}\n","import {\n getLocalizeKeyForScrollGroupId,\n LanguageStrings,\n ScrollGroupId,\n} from 'platform-bible-utils';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS = {\n [getLocalizeKeyForScrollGroupId('undefined')]: 'Ø',\n [getLocalizeKeyForScrollGroupId(0)]: 'A',\n [getLocalizeKeyForScrollGroupId(1)]: 'B',\n [getLocalizeKeyForScrollGroupId(2)]: 'C',\n [getLocalizeKeyForScrollGroupId(3)]: 'D',\n [getLocalizeKeyForScrollGroupId(4)]: 'E',\n [getLocalizeKeyForScrollGroupId(5)]: 'F',\n [getLocalizeKeyForScrollGroupId(6)]: 'G',\n [getLocalizeKeyForScrollGroupId(7)]: 'H',\n [getLocalizeKeyForScrollGroupId(8)]: 'I',\n [getLocalizeKeyForScrollGroupId(9)]: 'J',\n [getLocalizeKeyForScrollGroupId(10)]: 'K',\n [getLocalizeKeyForScrollGroupId(11)]: 'L',\n [getLocalizeKeyForScrollGroupId(12)]: 'M',\n [getLocalizeKeyForScrollGroupId(13)]: 'N',\n [getLocalizeKeyForScrollGroupId(14)]: 'O',\n [getLocalizeKeyForScrollGroupId(15)]: 'P',\n [getLocalizeKeyForScrollGroupId(16)]: 'Q',\n [getLocalizeKeyForScrollGroupId(17)]: 'R',\n [getLocalizeKeyForScrollGroupId(18)]: 'S',\n [getLocalizeKeyForScrollGroupId(19)]: 'T',\n [getLocalizeKeyForScrollGroupId(20)]: 'U',\n [getLocalizeKeyForScrollGroupId(21)]: 'V',\n [getLocalizeKeyForScrollGroupId(22)]: 'W',\n [getLocalizeKeyForScrollGroupId(23)]: 'X',\n [getLocalizeKeyForScrollGroupId(24)]: 'Y',\n [getLocalizeKeyForScrollGroupId(25)]: 'Z',\n};\n\nexport type ScrollGroupSelectorProps = {\n /**\n * List of scroll group ids to show to the user. Either a {@link ScrollGroupId} or `undefined` for\n * no scroll group\n */\n availableScrollGroupIds: (ScrollGroupId | undefined)[];\n /** Currently selected scroll group id. `undefined` for no scroll group */\n scrollGroupId: ScrollGroupId | undefined;\n /** Callback function run when the user tries to change the scroll group id */\n onChangeScrollGroupId: (newScrollGroupId: ScrollGroupId | undefined) => void;\n /**\n * Localized strings to use for displaying scroll group ids. Must be an object whose keys are\n * `getLocalizeKeyForScrollGroupId(scrollGroupId)` for all scroll group ids (and `undefined` if\n * included) in {@link ScrollGroupSelectorProps.availableScrollGroupIds} and whose values are the\n * localized strings to use for those scroll group ids.\n *\n * Defaults to English localizations of English alphabet for scroll groups 0-25 (e.g. 0 is A) and\n * Ø for `undefined`. Will fill in any that are not provided with these English localizations.\n * Also, if any values match the keys, the English localization will be used. This is useful in\n * case you want to pass in a temporary version of the localized strings while your localized\n * strings load.\n *\n * @example\n *\n * ```typescript\n * const myScrollGroupIdLocalizedStrings = {\n * [getLocalizeKeyForScrollGroupId('undefined')]: 'Ø',\n * [getLocalizeKeyForScrollGroupId(0)]: 'A',\n * [getLocalizeKeyForScrollGroupId(1)]: 'B',\n * [getLocalizeKeyForScrollGroupId(2)]: 'C',\n * [getLocalizeKeyForScrollGroupId(3)]: 'D',\n * [getLocalizeKeyForScrollGroupId(4)]: 'E',\n * };\n * ```\n *\n * @example\n *\n * ```tsx\n * const availableScrollGroupIds = [undefined, 0, 1, 2, 3, 4];\n *\n * const localizeKeys = getLocalizeKeysForScrollGroupIds();\n *\n * const [localizedStrings] = useLocalizedStrings(localizeKeys);\n *\n * ...\n *\n * \n * ```\n */\n localizedStrings?: LanguageStrings;\n};\n\n/** Selector component for choosing a scroll group */\nexport default function ScrollGroupSelector({\n availableScrollGroupIds,\n scrollGroupId,\n onChangeScrollGroupId,\n localizedStrings = {},\n}: ScrollGroupSelectorProps) {\n const localizedStringsDefaulted = {\n ...DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS,\n ...Object.fromEntries(\n Object.entries(localizedStrings).map(\n ([localizedStringKey, localizedStringValue]: [string, string]) => [\n localizedStringKey,\n localizedStringKey === localizedStringValue &&\n localizedStringKey in DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS\n ? DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS[localizedStringKey]\n : localizedStringValue,\n ],\n ),\n ),\n };\n\n const dir: Direction = readDirection();\n\n return (\n \n onChangeScrollGroupId(\n newScrollGroupString === 'undefined' ? undefined : parseInt(newScrollGroupString, 10),\n )\n }\n >\n \n \n \n \n {availableScrollGroupIds.map((scrollGroupOptionId) => (\n \n {localizedStringsDefaulted[getLocalizeKeyForScrollGroupId(scrollGroupOptionId)]}\n \n ))}\n \n \n );\n}\n","import { PropsWithChildren } from 'react';\nimport { Separator } from '@/components/shadcn-ui/separator';\n\n/** Props for the SettingsList component, currently just children */\ntype SettingsListProps = PropsWithChildren;\n\n/**\n * SettingsList component is a wrapper for list items. Rendered with a formatted div\n *\n * @param children To populate the list with\n * @returns Formatted div encompassing the children\n */\nexport function SettingsList({ children }: SettingsListProps) {\n return
    {children}
    ;\n}\n\n/** Props for SettingsListItem component */\ntype SettingsListItemProps = PropsWithChildren & {\n /** Primary text of the list item */\n primary: string;\n\n /** Optional text of the list item */\n secondary?: string | undefined;\n\n /** Optional boolean to display a message if the children aren't loaded yet. Defaults to false */\n isLoading?: boolean;\n\n /** Optional message to display if isLoading */\n loadingMessage?: string;\n};\n\n/**\n * SettingsListItem component is a common list item. Rendered with a formatted div\n *\n * @param primary Primary text of the list item\n * @param secondary Optional secondary text of the list item\n * @param isLoading Optional, to display a message if the action component isn't generated yet,\n * defaults to false\n * @param children The action component(s) to provide for this item\n * @param loadingMessage Optional, message to display if isLoading\n * @returns Formatted div encompassing the list item content\n */\nexport function SettingsListItem({\n primary,\n secondary,\n children,\n isLoading = false,\n loadingMessage,\n}: SettingsListItemProps) {\n return (\n
    \n
    \n

    {primary}

    \n

    \n {secondary}\n

    \n
    \n\n {isLoading ? (\n

    {loadingMessage}

    \n ) : (\n
    {children}
    \n )}\n
    \n );\n}\n\n/** Props for SettingsListHeader component */\ntype SettingsListHeaderProps = {\n /** The primary text of the list header */\n primary: string;\n\n /** Optional secondary text of the list header */\n secondary?: string | undefined;\n\n /** Optional boolean to include a separator underneath the secondary text. Defaults to false */\n includeSeparator?: boolean;\n};\n\n/**\n * SettingsListHeader component displays text above the list\n *\n * @param primary The primary text of the list header\n * @param secondary Optional secondary text of the list header\n * @param includeSeparator Optional boolean to include a separator underneath the secondary text.\n * Defaults to false\n * @returns Formatted div with list header content\n */\nexport function SettingsListHeader({\n primary,\n secondary,\n includeSeparator = false,\n}: SettingsListHeaderProps) {\n return (\n
    \n
    \n

    {primary}

    \n

    {secondary}

    \n
    \n {includeSeparator ? : ''}\n
    \n );\n}\n","import Checkbox from '@/components/shadcn-ui/checkbox';\nimport { Label } from '@/components/shadcn-ui/label';\n\nexport type ChecklistProps = {\n /** Optional string representing the id attribute of the Checklist */\n id?: string;\n /** Optional string representing CSS class name(s) for styling */\n className?: string;\n /** Array of strings representing the checkable items */\n listItems: string[];\n /** Array of strings representing the checked items */\n selectedListItems: string[];\n /**\n * Function that is called when a checkbox item is selected or deselected\n *\n * @param item The string description for this item\n * @param selected True if selected, false if not selected\n */\n handleSelectListItem: (item: string, selected: boolean) => void;\n\n /**\n * Optional function creates a label for a provided checkable item\n *\n * @param item The item for which a label is to be created\n * @returns A string representing the label text for the checkbox associated with that item\n */\n createLabel?: (item: string) => string;\n};\n\n/** Renders a list of checkboxes. Each checkbox corresponds to an item from the `listItems` array. */\nexport default function Checklist({\n id,\n className,\n listItems,\n selectedListItems,\n handleSelectListItem,\n createLabel,\n}: ChecklistProps) {\n return (\n
    \n {listItems.map((item) => (\n
    \n handleSelectListItem(item, value)}\n />\n \n
    \n ))}\n
    \n );\n}\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return _extends({}, propTypes, {\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n });\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n const match = `${fn}`.match(fnNameMatchRegex);\n const name = match && match[1];\n return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return (props, propName, componentName, location, propFullName) => {\n const componentNameSafe = componentName || '<>';\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n }\n return null;\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n var _muiName, _element$type;\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example
    \n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n }\n return null;\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n constructor() {\n this.currentId = null;\n this.clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n this.disposeEffect = () => {\n return this.clear;\n };\n }\n static create() {\n return new Timeout();\n }\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"values\", \"unit\", \"step\"];\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return _extends({}, acc, {\n [obj.key]: obj.val\n });\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5\n } = breakpoints,\n other = _objectWithoutPropertiesLoose(breakpoints, _excluded);\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return _extends({\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit\n }, other);\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from './merge';\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n // key is breakpoint\n if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n theme\n }, props[key]));\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n var _breakpointsInput$key;\n const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nimport { getPath } from './style';\nimport merge from './merge';\nimport memoize from './memoize';\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n var _getPath;\n const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;\n if (typeof themeSpacing === 'number') {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof abs !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);\n }\n }\n return themeSpacing * abs;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n return themeSpacing[abs];\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n const abs = Math.abs(propValue);\n const transformed = transformer(abs);\n if (propValue >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n return `-${transformed}`;\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (keys.indexOf(prop) === -1) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","import { createUnarySpacing } from '../spacing';\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n\n // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n // Smaller components, such as icons, can align to a 4dp grid.\n // https://m2.material.io/design/layout/understanding-layout.html\n const transform = createUnarySpacing({\n spacing: spacingInput\n });\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import merge from './merge';\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nimport responsivePropType from './responsivePropType';\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from './style';\nimport compose from './compose';\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from './style';\nimport compose from './compose';\nimport { handleBreakpoints, values as breakpointsValues } from './breakpoints';\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n var _props$theme, _props$theme2;\n const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from '../spacing';\nimport { borderRadius, borderTransform } from '../borders';\nimport { gap, rowGap, columnGap } from '../cssGrid';\nimport { paletteTransform } from '../palette';\nimport { maxWidth, sizingTransform } from '../sizing';\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from '../merge';\nimport { getPath, getStyleValue as getValue } from '../style';\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from '../breakpoints';\nimport defaultSxConfig from './defaultSxConfig';\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n var _theme$unstable_sxCon;\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return removeUnusedBreakpoints(breakpointsKeys, css);\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n *\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars && typeof theme.getColorSchemeSelector === 'function') {\n // If CssVarsProvider is used as a provider,\n // returns '* :where([data-mui-color-scheme=\"light|dark\"]) &'\n const selector = theme.getColorSchemeSelector(key).replace(/(\\[[^\\]]+\\])/, '*:where($1)');\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"breakpoints\", \"palette\", \"spacing\", \"shape\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from './createBreakpoints';\nimport shape from './shape';\nimport createSpacing from './createSpacing';\nimport styleFunctionSx from '../styleFunctionSx/styleFunctionSx';\nimport defaultSxConfig from '../styleFunctionSx/defaultSxConfig';\nimport applyStyles from './applyStyles';\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: _extends({\n mode: 'light'\n }, paletteInput),\n spacing,\n shape: _extends({}, shape, shapeInput)\n }, other);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from './createTheme';\nimport useThemeWithoutDefault from './useThemeWithoutDefault';\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nimport styledEngineStyled, { internal_processStyles as processStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from './createTheme';\nimport styleFunctionSx from './styleFunctionSx';\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport const systemDefaultTheme = createTheme();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref) {\n let {\n ownerState\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, _extends({\n ownerState\n }, props)));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props(_extends({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n result.push(typeof variant.style === 'function' ? variant.style(_extends({\n ownerState\n }, props, ownerState)) : variant.style);\n }\n });\n return result;\n }\n return resolvedStylesArg;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return styleFunctionSx(_extends({}, props, {\n theme: resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = _objectWithoutPropertiesLoose(inputOptions, _excluded3);\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, _extends({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || isPlainObject(stylesArg)) {\n return props => processStyleArg(stylesArg, _extends({}, props, {\n theme: resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n })\n }));\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, _extends({}, props, {\n theme\n }));\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, _extends({}, props, {\n theme\n }));\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${capitalize(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${getDisplayName(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport getThemeProps from './getThemeProps';\nimport useTheme from '../useTheme';\nexport default function useThemeProps({\n props,\n name,\n defaultTheme,\n themeId\n}) {\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n const mergedProps = getThemeProps({\n theme,\n name,\n props\n });\n return mergedProps;\n}","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : _formatMuiErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : _formatMuiErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.indexOf('rgb') !== -1) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.indexOf('hsl') !== -1) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.indexOf('color') !== -1) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.indexOf('#') === 0) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function createMixins(breakpoints, mixins) {\n return _extends({\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n }\n }, mixins);\n}","const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;","const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;","const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"mode\", \"contrastThreshold\", \"tonalOffset\"];\nimport { deepmerge } from '@mui/utils';\nimport { darken, getContrastRatio, lighten } from '@mui/system';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport purple from '../colors/purple';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport lightBlue from '../colors/lightBlue';\nimport green from '../colors/green';\nexport const light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexport const dark = {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2\n } = palette,\n other = _objectWithoutPropertiesLoose(palette, _excluded);\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = _extends({}, color);\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\nThe color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from \"@mui/material/colors\";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });` : _formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n const modes = {\n dark,\n light\n };\n if (process.env.NODE_ENV !== 'production') {\n if (!modes[mode]) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge(_extends({\n // A collection of common colors.\n common: _extends({}, common),\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset\n }, modes[mode]), other);\n return paletteOutput;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"];\nimport { deepmerge } from '@mui/utils';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const _ref = typeof typography === 'function' ? typography(palette) : typography,\n {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight\n }, fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}, casing, allVariants);\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge(_extends({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold\n }, variants), other, {\n clone: false // No need to clone deep\n });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"duration\", \"easing\", \"delay\"];\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = _extends({}, easing, inputTransitions.easing);\n const mergedDuration = _extends({}, duration, inputTransitions.duration);\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n // IE11 support, replace with Number.isNaN\n // eslint-disable-next-line no-restricted-globals\n const isNumber = value => !isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return _extends({\n getAutoHeightDuration,\n create\n }, inputTransitions, {\n easing: mergedEasing,\n duration: mergedDuration\n });\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"breakpoints\", \"mixins\", \"spacing\", \"palette\", \"transitions\", \"typography\", \"shape\"];\nimport { deepmerge } from '@mui/utils';\nimport { createTheme as systemCreateTheme, unstable_defaultSxConfig as defaultSxConfig, unstable_styleFunctionSx as styleFunctionSx } from '@mui/system';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport createTransitions from './createTransitions';\nimport zIndex from './zIndex';\nfunction createTheme(options = {}, ...args) {\n const {\n mixins: mixinsInput = {},\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (options.vars) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`vars\\` is a private field used for CSS variables support.\nPlease use another name.` : _formatMuiErrorMessage(18));\n }\n const palette = createPalette(paletteInput);\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: _extends({}, zIndex)\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (key in node) {\n const child = node[key];\n if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.indexOf('Mui') === 0) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nlet warnedOnce = false;\nexport function createMuiTheme(...args) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@mui/material/styles'`\"].join('\\n'));\n }\n }\n return createTheme(...args);\n}\nexport default createTheme;","'use client';\n\nimport createTheme from './createTheme';\nconst defaultTheme = createTheme();\nexport default defaultTheme;","export default '$$material';","'use client';\n\nimport { useThemeProps as systemUseThemeProps } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useThemeProps({\n props,\n name\n}) {\n return systemUseThemeProps({\n props,\n name,\n defaultTheme,\n themeId: THEME_ID\n });\n}","'use client';\n\nimport { createStyled, shouldForwardProp } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';\nexport const slotShouldForwardProp = shouldForwardProp;\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"inheritViewBox\", \"titleAccess\", \"viewBox\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport useThemeProps from '../styles/useThemeProps';\nimport styled from '../styles/styled';\nimport { getSvgIconUtilityClass } from './svgIconClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(({\n theme,\n ownerState\n}) => {\n var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;\n return {\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n // the will define the property that has `currentColor`\n // e.g. heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',\n flexShrink: 0,\n transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {\n duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter\n }),\n fontSize: {\n inherit: 'inherit',\n small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',\n medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',\n large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'\n }[ownerState.fontSize],\n // TODO v5 deprecate, v6 remove for sx\n color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {\n action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,\n disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,\n inherit: undefined\n }[ownerState.color]\n };\n});\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = _extends({}, props, {\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n });\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, _extends({\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref\n }, more, other, hasSvgAsChild && children.props, {\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport SvgIcon from '../SvgIcon';\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, _extends({\n \"data-testid\": `${displayName}Icon`,\n ref: ref\n }, props, {\n children: path\n }));\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));\n}","'use client';\n\nimport { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/base/ClassNameGenerator';\nexport { default as capitalize } from './capitalize';\nexport { default as createChainedFunction } from './createChainedFunction';\nexport { default as createSvgIcon } from './createSvgIcon';\nexport { default as debounce } from './debounce';\nexport { default as deprecatedPropType } from './deprecatedPropType';\nexport { default as isMuiElement } from './isMuiElement';\nexport { default as ownerDocument } from './ownerDocument';\nexport { default as ownerWindow } from './ownerWindow';\nexport { default as requirePropFactory } from './requirePropFactory';\nexport { default as setRef } from './setRef';\nexport { default as unstable_useEnhancedEffect } from './useEnhancedEffect';\nexport { default as unstable_useId } from './useId';\nexport { default as unsupportedProp } from './unsupportedProp';\nexport { default as useControlled } from './useControlled';\nexport { default as useEventCallback } from './useEventCallback';\nexport { default as useForkRef } from './useForkRef';\nexport { default as useIsFocusVisible } from './useIsFocusVisible';\n// TODO: remove this export once ClassNameGenerator is stable\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const unstable_ClassNameGenerator = {\n configure: generator => {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(['MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.', '', \"You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead\", '', 'The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401', '', 'The updated documentation: https://mui.com/guides/classname-generator/'].join('\\n'));\n }\n ClassNameGenerator.configure(generator);\n }\n};","\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _utils.createSvgIcon;\n }\n});\nvar _utils = require(\"@mui/material/utils\");","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m10 17 5-5-5-5z\"\n}), 'ArrowRight');","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","import { globalStateClasses } from '@mui/utils/generateUtilityClass';\nconst GLOBAL_CLASS_PREFIX = 'base';\nfunction buildStateClass(state) {\n return `${GLOBAL_CLASS_PREFIX}--${state}`;\n}\nfunction buildSlotClass(componentName, slot) {\n return `${GLOBAL_CLASS_PREFIX}-${componentName}-${slot}`;\n}\nexport function generateUtilityClass(componentName, slot) {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? buildStateClass(globalStateClass) : buildSlotClass(componentName, slot);\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import { generateUtilityClass } from '../generateUtilityClass';\nexport function generateUtilityClasses(componentName, slots) {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot);\n });\n return result;\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { exactProp, HTMLElementType, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef, unstable_setRef as setRef } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\n\n/**\n * Portals provide a first-class way to render children into a DOM node\n * that exists outside the DOM hierarchy of the parent component.\n *\n * Demos:\n *\n * - [Portal](https://mui.com/base-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://mui.com/base-ui/react-portal/components-api/#portal)\n */\nconst Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {\n const {\n children,\n container,\n disablePortal = false\n } = props;\n const [mountNode, setMountNode] = React.useState(null);\n // @ts-expect-error TODO upstream fix\n const handleRef = useForkRef( /*#__PURE__*/React.isValidElement(children) ? children.ref : null, forwardedRef);\n useEnhancedEffect(() => {\n if (!disablePortal) {\n setMountNode(getContainer(container) || document.body);\n }\n }, [container, disablePortal]);\n useEnhancedEffect(() => {\n if (mountNode && !disablePortal) {\n setRef(forwardedRef, mountNode);\n return () => {\n setRef(forwardedRef, null);\n };\n }\n return undefined;\n }, [forwardedRef, mountNode, disablePortal]);\n if (disablePortal) {\n if ( /*#__PURE__*/React.isValidElement(children)) {\n const newProps = {\n ref: handleRef\n };\n return /*#__PURE__*/React.cloneElement(children, newProps);\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: children\n });\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Portal.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The children to render into the `container`.\n */\n children: PropTypes.node,\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n Portal['propTypes' + ''] = exactProp(Portal.propTypes);\n}\nexport { Portal };","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import { generateUtilityClass } from '../generateUtilityClass';\nimport { generateUtilityClasses } from '../generateUtilityClasses';\nconst COMPONENT_NAME = 'Popper';\nexport function getPopperUtilityClass(slot) {\n return generateUtilityClass(COMPONENT_NAME, slot);\n}\nexport const popperClasses = generateUtilityClasses(COMPONENT_NAME, ['root']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"children\", \"direction\", \"disablePortal\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"slotProps\", \"slots\", \"TransitionProps\", \"ownerState\"],\n _excluded2 = [\"anchorEl\", \"children\", \"container\", \"direction\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"style\", \"transition\", \"slotProps\", \"slots\"];\nimport * as React from 'react';\nimport { chainPropTypes, HTMLElementType, refType, unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { createPopper } from '@popperjs/core';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses } from '../composeClasses';\nimport { Portal } from '../Portal';\nimport { getPopperUtilityClass } from './popperClasses';\nimport { useSlotProps } from '../utils';\nimport { useClassNamesOverride } from '../utils/ClassNameConfigurator';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction flipPlacement(placement, direction) {\n if (direction === 'ltr') {\n return placement;\n }\n switch (placement) {\n case 'bottom-end':\n return 'bottom-start';\n case 'bottom-start':\n return 'bottom-end';\n case 'top-end':\n return 'top-start';\n case 'top-start':\n return 'top-end';\n default:\n return placement;\n }\n}\nfunction resolveAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nfunction isHTMLElement(element) {\n return element.nodeType !== undefined;\n}\nfunction isVirtualElement(element) {\n return !isHTMLElement(element);\n}\nconst useUtilityClasses = () => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));\n};\nconst defaultPopperOptions = {};\nconst PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {\n var _slots$root;\n const {\n anchorEl,\n children,\n direction,\n disablePortal,\n modifiers,\n open,\n placement: initialPlacement,\n popperOptions,\n popperRef: popperRefProp,\n slotProps = {},\n slots = {},\n TransitionProps\n // @ts-ignore internal logic\n // prevent from spreading to DOM, it can come from the parent component e.g. Select.\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const tooltipRef = React.useRef(null);\n const ownRef = useForkRef(tooltipRef, forwardedRef);\n const popperRef = React.useRef(null);\n const handlePopperRef = useForkRef(popperRef, popperRefProp);\n const handlePopperRefRef = React.useRef(handlePopperRef);\n useEnhancedEffect(() => {\n handlePopperRefRef.current = handlePopperRef;\n }, [handlePopperRef]);\n React.useImperativeHandle(popperRefProp, () => popperRef.current, []);\n const rtlPlacement = flipPlacement(initialPlacement, direction);\n /**\n * placement initialized from prop but can change during lifetime if modifiers.flip.\n * modifiers.flip is essentially a flip for controlled/uncontrolled behavior\n */\n const [placement, setPlacement] = React.useState(rtlPlacement);\n const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));\n React.useEffect(() => {\n if (popperRef.current) {\n popperRef.current.forceUpdate();\n }\n });\n React.useEffect(() => {\n if (anchorEl) {\n setResolvedAnchorElement(resolveAnchorEl(anchorEl));\n }\n }, [anchorEl]);\n useEnhancedEffect(() => {\n if (!resolvedAnchorElement || !open) {\n return undefined;\n }\n const handlePopperUpdate = data => {\n setPlacement(data.placement);\n };\n if (process.env.NODE_ENV !== 'production') {\n if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {\n const box = resolvedAnchorElement.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n }\n let popperModifiers = [{\n name: 'preventOverflow',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'flip',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'onUpdate',\n enabled: true,\n phase: 'afterWrite',\n fn: ({\n state\n }) => {\n handlePopperUpdate(state);\n }\n }];\n if (modifiers != null) {\n popperModifiers = popperModifiers.concat(modifiers);\n }\n if (popperOptions && popperOptions.modifiers != null) {\n popperModifiers = popperModifiers.concat(popperOptions.modifiers);\n }\n const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({\n placement: rtlPlacement\n }, popperOptions, {\n modifiers: popperModifiers\n }));\n handlePopperRefRef.current(popper);\n return () => {\n popper.destroy();\n handlePopperRefRef.current(null);\n };\n }, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);\n const childProps = {\n placement: placement\n };\n if (TransitionProps !== null) {\n childProps.TransitionProps = TransitionProps;\n }\n const classes = useUtilityClasses();\n const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps.root,\n externalForwardedProps: other,\n additionalProps: {\n role: 'tooltip',\n ref: ownRef\n },\n ownerState: props,\n className: classes.root\n });\n return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n children: typeof children === 'function' ? children(childProps) : children\n }));\n});\n\n/**\n * Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.\n *\n * Demos:\n *\n * - [Popper](https://mui.com/base-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/base-ui/react-popper/components-api/#popper)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {\n const {\n anchorEl,\n children,\n container: containerProp,\n direction = 'ltr',\n disablePortal = false,\n keepMounted = false,\n modifiers,\n open,\n placement = 'bottom',\n popperOptions = defaultPopperOptions,\n popperRef,\n style,\n transition = false,\n slotProps = {},\n slots = {}\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [exited, setExited] = React.useState(true);\n const handleEnter = () => {\n setExited(false);\n };\n const handleExited = () => {\n setExited(true);\n };\n if (!keepMounted && !open && (!transition || exited)) {\n return null;\n }\n\n // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n let container;\n if (containerProp) {\n container = containerProp;\n } else if (anchorEl) {\n const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;\n }\n const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;\n const transitionProps = transition ? {\n in: open,\n onEnter: handleEnter,\n onExited: handleExited\n } : undefined;\n return /*#__PURE__*/_jsx(Portal, {\n disablePortal: disablePortal,\n container: container,\n children: /*#__PURE__*/_jsx(PopperTooltip, _extends({\n anchorEl: anchorEl,\n direction: direction,\n disablePortal: disablePortal,\n modifiers: modifiers,\n ref: forwardedRef,\n open: transition ? !exited : open,\n placement: placement,\n popperOptions: popperOptions,\n popperRef: popperRef,\n slotProps: slotProps,\n slots: slots\n }, other, {\n style: _extends({\n // Prevents scroll issue, waiting for Popper.js to add this style once initiated.\n position: 'fixed',\n // Fix Popper.js display issue\n top: 0,\n left: 0,\n display\n }, style),\n TransitionProps: transitionProps,\n children: children\n }))\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {\n if (props.open) {\n const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {\n const box = resolvedAnchorEl.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * Direction of the text.\n * @default 'ltr'\n */\n direction: PropTypes.oneOf(['ltr', 'rtl']),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport { Popper };","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","export default {\n disabled: false\n};","import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n enter: PropTypes.number,\n exit: PropTypes.number,\n appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string,\n active: PropTypes.string\n}), PropTypes.shape({\n enter: PropTypes.string,\n enterDone: PropTypes.string,\n enterActive: PropTypes.string,\n exit: PropTypes.string,\n exitDone: PropTypes.string,\n exitActive: PropTypes.string\n})]) : null;","import React from 'react';\nexport default React.createContext(null);","export var forceReflow = function forceReflow(node) {\n return node.scrollTop;\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n *
    \n * I'm a fade Transition!\n *
    \n * )}\n *
    \n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
    \n * \n * {state => (\n * // ...\n * )}\n * \n * \n *
    \n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export const reflow = node => node.scrollTop;\nexport function getTransitionProps(props, options) {\n var _style$transitionDura, _style$transitionTimi;\n const {\n timeout,\n easing,\n style = {}\n } = props;\n return {\n duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,\n easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,\n delay: style.transitionDelay\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { elementAcceptingRef, unstable_useTimeout as useTimeout } from '@mui/utils';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps, reflow } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = 'auto',\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const timer = useTimeout();\n const autoTimeout = React.useRef();\n const theme = useTheme();\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, children.ref, ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay,\n easing: transitionTimingFunction\n })].join(',');\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay: isWebKit154 ? delay : delay || duration * 0.333,\n easing: transitionTimingFunction\n })].join(',');\n node.style.opacity = 0;\n node.style.transform = getScale(0.75);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.start(autoTimeout.current || 0, next);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout === 'auto' ? null : timeout\n }, other, {\n children: (state, childProps) => {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n }\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"component\", \"components\", \"componentsProps\", \"container\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"transition\", \"slots\", \"slotProps\"];\nimport { Popper as BasePopper } from '@mui/base/Popper';\nimport { useThemeWithoutDefault as useTheme } from '@mui/system';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { styled, useThemeProps } from '../styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopperRoot = styled(BasePopper, {\n name: 'MuiPopper',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\n\n/**\n *\n * Demos:\n *\n * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)\n * - [Menu](https://mui.com/material-ui/react-menu/)\n * - [Popper](https://mui.com/material-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/material-ui/api/popper/)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {\n var _slots$root;\n const theme = useTheme();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPopper'\n });\n const {\n anchorEl,\n component,\n components,\n componentsProps,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;\n const otherProps = _extends({\n anchorEl,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition\n }, other);\n return /*#__PURE__*/_jsx(PopperRoot, _extends({\n as: component,\n direction: theme == null ? void 0 : theme.direction,\n slots: {\n root: RootComponent\n },\n slotProps: slotProps != null ? slotProps : componentsProps\n }, otherProps, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport default Popper;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTooltipUtilityClass(slot) {\n return generateUtilityClass('MuiTooltip', slot);\n}\nconst tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);\nexport default tooltipClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"arrow\", \"children\", \"classes\", \"components\", \"componentsProps\", \"describeChild\", \"disableFocusListener\", \"disableHoverListener\", \"disableInteractive\", \"disableTouchListener\", \"enterDelay\", \"enterNextDelay\", \"enterTouchDelay\", \"followCursor\", \"id\", \"leaveDelay\", \"leaveTouchDelay\", \"onClose\", \"onOpen\", \"open\", \"placement\", \"PopperComponent\", \"PopperProps\", \"slotProps\", \"slots\", \"title\", \"TransitionComponent\", \"TransitionProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { elementAcceptingRef, unstable_useTimeout as useTimeout, unstable_Timeout as Timeout } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses, appendOwnerState } from '@mui/base';\nimport { alpha } from '@mui/system';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport useThemeProps from '../styles/useThemeProps';\nimport capitalize from '../utils/capitalize';\nimport Grow from '../Grow';\nimport Popper from '../Popper';\nimport useEventCallback from '../utils/useEventCallback';\nimport useForkRef from '../utils/useForkRef';\nimport useId from '../utils/useId';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport useControlled from '../utils/useControlled';\nimport tooltipClasses, { getTooltipUtilityClass } from './tooltipClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableInteractive,\n arrow,\n touch,\n placement\n } = ownerState;\n const slots = {\n popper: ['popper', !disableInteractive && 'popperInteractive', arrow && 'popperArrow'],\n tooltip: ['tooltip', arrow && 'tooltipArrow', touch && 'touch', `tooltipPlacement${capitalize(placement.split('-')[0])}`],\n arrow: ['arrow']\n };\n return composeClasses(slots, getTooltipUtilityClass, classes);\n};\nconst TooltipPopper = styled(Popper, {\n name: 'MuiTooltip',\n slot: 'Popper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];\n }\n})(({\n theme,\n ownerState,\n open\n}) => _extends({\n zIndex: (theme.vars || theme).zIndex.tooltip,\n pointerEvents: 'none'\n}, !ownerState.disableInteractive && {\n pointerEvents: 'auto'\n}, !open && {\n pointerEvents: 'none'\n}, ownerState.arrow && {\n [`&[data-popper-placement*=\"bottom\"] .${tooltipClasses.arrow}`]: {\n top: 0,\n marginTop: '-0.71em',\n '&::before': {\n transformOrigin: '0 100%'\n }\n },\n [`&[data-popper-placement*=\"top\"] .${tooltipClasses.arrow}`]: {\n bottom: 0,\n marginBottom: '-0.71em',\n '&::before': {\n transformOrigin: '100% 0'\n }\n },\n [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n left: 0,\n marginLeft: '-0.71em'\n } : {\n right: 0,\n marginRight: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '100% 100%'\n }\n }),\n [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n right: 0,\n marginRight: '-0.71em'\n } : {\n left: 0,\n marginLeft: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '0 0'\n }\n })\n}));\nconst TooltipTooltip = styled('div', {\n name: 'MuiTooltip',\n slot: 'Tooltip',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles[`tooltipPlacement${capitalize(ownerState.placement.split('-')[0])}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),\n borderRadius: (theme.vars || theme).shape.borderRadius,\n color: (theme.vars || theme).palette.common.white,\n fontFamily: theme.typography.fontFamily,\n padding: '4px 8px',\n fontSize: theme.typography.pxToRem(11),\n maxWidth: 300,\n margin: 2,\n wordWrap: 'break-word',\n fontWeight: theme.typography.fontWeightMedium\n}, ownerState.arrow && {\n position: 'relative',\n margin: 0\n}, ownerState.touch && {\n padding: '8px 16px',\n fontSize: theme.typography.pxToRem(14),\n lineHeight: `${round(16 / 14)}em`,\n fontWeight: theme.typography.fontWeightRegular\n}, {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: _extends({\n transformOrigin: 'right center'\n }, !ownerState.isRtl ? _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n }) : _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: _extends({\n transformOrigin: 'left center'\n }, !ownerState.isRtl ? _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n }) : _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: _extends({\n transformOrigin: 'center bottom',\n marginBottom: '14px'\n }, ownerState.touch && {\n marginBottom: '24px'\n }),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: _extends({\n transformOrigin: 'center top',\n marginTop: '14px'\n }, ownerState.touch && {\n marginTop: '24px'\n })\n}));\nconst TooltipArrow = styled('span', {\n name: 'MuiTooltip',\n slot: 'Arrow',\n overridesResolver: (props, styles) => styles.arrow\n})(({\n theme\n}) => ({\n overflow: 'hidden',\n position: 'absolute',\n width: '1em',\n height: '0.71em' /* = width / sqrt(2) = (length of the hypotenuse) */,\n boxSizing: 'border-box',\n color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),\n '&::before': {\n content: '\"\"',\n margin: 'auto',\n display: 'block',\n width: '100%',\n height: '100%',\n backgroundColor: 'currentColor',\n transform: 'rotate(45deg)'\n }\n}));\nlet hystersisOpen = false;\nconst hystersisTimer = new Timeout();\nlet cursorPosition = {\n x: 0,\n y: 0\n};\nexport function testReset() {\n hystersisOpen = false;\n hystersisTimer.clear();\n}\nfunction composeEventHandler(handler, eventHandler) {\n return event => {\n if (eventHandler) {\n eventHandler(event);\n }\n handler(event);\n };\n}\n\n// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.\nconst Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {\n var _ref, _slots$popper, _ref2, _ref3, _slots$transition, _ref4, _slots$tooltip, _ref5, _slots$arrow, _slotProps$popper, _ref6, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref7, _slotProps$tooltip2, _slotProps$arrow, _ref8, _slotProps$arrow2;\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTooltip'\n });\n const {\n arrow = false,\n children: childrenProp,\n components = {},\n componentsProps = {},\n describeChild = false,\n disableFocusListener = false,\n disableHoverListener = false,\n disableInteractive: disableInteractiveProp = false,\n disableTouchListener = false,\n enterDelay = 100,\n enterNextDelay = 0,\n enterTouchDelay = 700,\n followCursor = false,\n id: idProp,\n leaveDelay = 0,\n leaveTouchDelay = 1500,\n onClose,\n onOpen,\n open: openProp,\n placement = 'bottom',\n PopperComponent: PopperComponentProp,\n PopperProps = {},\n slotProps = {},\n slots = {},\n title,\n TransitionComponent: TransitionComponentProp = Grow,\n TransitionProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // to prevent runtime errors, developers will need to provide a child as a React element anyway.\n const children = /*#__PURE__*/React.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/_jsx(\"span\", {\n children: childrenProp\n });\n const theme = useTheme();\n const isRtl = theme.direction === 'rtl';\n const [childNode, setChildNode] = React.useState();\n const [arrowRef, setArrowRef] = React.useState(null);\n const ignoreNonTouchEvents = React.useRef(false);\n const disableInteractive = disableInteractiveProp || followCursor;\n const closeTimer = useTimeout();\n const enterTimer = useTimeout();\n const leaveTimer = useTimeout();\n const touchTimer = useTimeout();\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: false,\n name: 'Tooltip',\n state: 'open'\n });\n let open = openState;\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const {\n current: isControlled\n } = React.useRef(openProp !== undefined);\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {\n console.error(['MUI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', \"Tooltip needs to listen to the child element's events to display the title.\", '', 'Add a simple wrapper element, such as a `span`.'].join('\\n'));\n }\n }, [title, childNode, isControlled]);\n }\n const id = useId(idProp);\n const prevUserSelect = React.useRef();\n const stopTouchInteraction = useEventCallback(() => {\n if (prevUserSelect.current !== undefined) {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n prevUserSelect.current = undefined;\n }\n touchTimer.clear();\n });\n React.useEffect(() => stopTouchInteraction, [stopTouchInteraction]);\n const handleOpen = event => {\n hystersisTimer.clear();\n hystersisOpen = true;\n\n // The mouseover event will trigger for every nested element in the tooltip.\n // We can skip rerendering when the tooltip is already open.\n // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue.\n setOpenState(true);\n if (onOpen && !open) {\n onOpen(event);\n }\n };\n const handleClose = useEventCallback(\n /**\n * @param {React.SyntheticEvent | Event} event\n */\n event => {\n hystersisTimer.start(800 + leaveDelay, () => {\n hystersisOpen = false;\n });\n setOpenState(false);\n if (onClose && open) {\n onClose(event);\n }\n closeTimer.start(theme.transitions.duration.shortest, () => {\n ignoreNonTouchEvents.current = false;\n });\n });\n const handleEnter = event => {\n if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {\n return;\n }\n\n // Remove the title ahead of time.\n // We don't want to wait for the next render commit.\n // We would risk displaying two tooltips at the same time (native + this one).\n if (childNode) {\n childNode.removeAttribute('title');\n }\n enterTimer.clear();\n leaveTimer.clear();\n if (enterDelay || hystersisOpen && enterNextDelay) {\n enterTimer.start(hystersisOpen ? enterNextDelay : enterDelay, () => {\n handleOpen(event);\n });\n } else {\n handleOpen(event);\n }\n };\n const handleLeave = event => {\n enterTimer.clear();\n leaveTimer.start(leaveDelay, () => {\n handleClose(event);\n });\n };\n const {\n isFocusVisibleRef,\n onBlur: handleBlurVisible,\n onFocus: handleFocusVisible,\n ref: focusVisibleRef\n } = useIsFocusVisible();\n // We don't necessarily care about the focusVisible state (which is safe to access via ref anyway).\n // We just need to re-render the Tooltip if the focus-visible state changes.\n const [, setChildIsFocusVisible] = React.useState(false);\n const handleBlur = event => {\n handleBlurVisible(event);\n if (isFocusVisibleRef.current === false) {\n setChildIsFocusVisible(false);\n handleLeave(event);\n }\n };\n const handleFocus = event => {\n // Workaround for https://github.com/facebook/react/issues/7769\n // The autoFocus of React might trigger the event before the componentDidMount.\n // We need to account for this eventuality.\n if (!childNode) {\n setChildNode(event.currentTarget);\n }\n handleFocusVisible(event);\n if (isFocusVisibleRef.current === true) {\n setChildIsFocusVisible(true);\n handleEnter(event);\n }\n };\n const detectTouchStart = event => {\n ignoreNonTouchEvents.current = true;\n const childrenProps = children.props;\n if (childrenProps.onTouchStart) {\n childrenProps.onTouchStart(event);\n }\n };\n const handleMouseOver = handleEnter;\n const handleMouseLeave = handleLeave;\n const handleTouchStart = event => {\n detectTouchStart(event);\n leaveTimer.clear();\n closeTimer.clear();\n stopTouchInteraction();\n prevUserSelect.current = document.body.style.WebkitUserSelect;\n // Prevent iOS text selection on long-tap.\n document.body.style.WebkitUserSelect = 'none';\n touchTimer.start(enterTouchDelay, () => {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n handleEnter(event);\n });\n };\n const handleTouchEnd = event => {\n if (children.props.onTouchEnd) {\n children.props.onTouchEnd(event);\n }\n stopTouchInteraction();\n leaveTimer.start(leaveTouchDelay, () => {\n handleClose(event);\n });\n };\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n /**\n * @param {KeyboardEvent} nativeEvent\n */\n function handleKeyDown(nativeEvent) {\n // IE11, Edge (prior to using Bink?) use 'Esc'\n if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {\n handleClose(nativeEvent);\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [handleClose, open]);\n const handleRef = useForkRef(children.ref, focusVisibleRef, setChildNode, ref);\n\n // There is no point in displaying an empty tooltip.\n // So we exclude all falsy values, except 0, which is valid.\n if (!title && title !== 0) {\n open = false;\n }\n const popperRef = React.useRef();\n const handleMouseMove = event => {\n const childrenProps = children.props;\n if (childrenProps.onMouseMove) {\n childrenProps.onMouseMove(event);\n }\n cursorPosition = {\n x: event.clientX,\n y: event.clientY\n };\n if (popperRef.current) {\n popperRef.current.update();\n }\n };\n const nameOrDescProps = {};\n const titleIsString = typeof title === 'string';\n if (describeChild) {\n nameOrDescProps.title = !open && titleIsString && !disableHoverListener ? title : null;\n nameOrDescProps['aria-describedby'] = open ? id : null;\n } else {\n nameOrDescProps['aria-label'] = titleIsString ? title : null;\n nameOrDescProps['aria-labelledby'] = open && !titleIsString ? id : null;\n }\n const childrenProps = _extends({}, nameOrDescProps, other, children.props, {\n className: clsx(other.className, children.props.className),\n onTouchStart: detectTouchStart,\n ref: handleRef\n }, followCursor ? {\n onMouseMove: handleMouseMove\n } : {});\n if (process.env.NODE_ENV !== 'production') {\n childrenProps['data-mui-internal-clone-element'] = true;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && !childNode.getAttribute('data-mui-internal-clone-element')) {\n console.error(['MUI: The `children` component of the Tooltip is not forwarding its props correctly.', 'Please make sure that props are spread on the same element that the ref is applied to.'].join('\\n'));\n }\n }, [childNode]);\n }\n const interactiveWrapperListeners = {};\n if (!disableTouchListener) {\n childrenProps.onTouchStart = handleTouchStart;\n childrenProps.onTouchEnd = handleTouchEnd;\n }\n if (!disableHoverListener) {\n childrenProps.onMouseOver = composeEventHandler(handleMouseOver, childrenProps.onMouseOver);\n childrenProps.onMouseLeave = composeEventHandler(handleMouseLeave, childrenProps.onMouseLeave);\n if (!disableInteractive) {\n interactiveWrapperListeners.onMouseOver = handleMouseOver;\n interactiveWrapperListeners.onMouseLeave = handleMouseLeave;\n }\n }\n if (!disableFocusListener) {\n childrenProps.onFocus = composeEventHandler(handleFocus, childrenProps.onFocus);\n childrenProps.onBlur = composeEventHandler(handleBlur, childrenProps.onBlur);\n if (!disableInteractive) {\n interactiveWrapperListeners.onFocus = handleFocus;\n interactiveWrapperListeners.onBlur = handleBlur;\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (children.props.title) {\n console.error(['MUI: You have provided a `title` prop to the child of .', `Remove this title prop \\`${children.props.title}\\` or the Tooltip component.`].join('\\n'));\n }\n }\n const popperOptions = React.useMemo(() => {\n var _PopperProps$popperOp;\n let tooltipModifiers = [{\n name: 'arrow',\n enabled: Boolean(arrowRef),\n options: {\n element: arrowRef,\n padding: 4\n }\n }];\n if ((_PopperProps$popperOp = PopperProps.popperOptions) != null && _PopperProps$popperOp.modifiers) {\n tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);\n }\n return _extends({}, PopperProps.popperOptions, {\n modifiers: tooltipModifiers\n });\n }, [arrowRef, PopperProps]);\n const ownerState = _extends({}, props, {\n isRtl,\n arrow,\n disableInteractive,\n placement,\n PopperComponentProp,\n touch: ignoreNonTouchEvents.current\n });\n const classes = useUtilityClasses(ownerState);\n const PopperComponent = (_ref = (_slots$popper = slots.popper) != null ? _slots$popper : components.Popper) != null ? _ref : TooltipPopper;\n const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow;\n const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;\n const ArrowComponent = (_ref5 = (_slots$arrow = slots.arrow) != null ? _slots$arrow : components.Arrow) != null ? _ref5 : TooltipArrow;\n const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {\n className: clsx(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_ref6 = (_slotProps$popper2 = slotProps.popper) != null ? _slotProps$popper2 : componentsProps.popper) == null ? void 0 : _ref6.className)\n }), ownerState);\n const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);\n const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {\n className: clsx(classes.tooltip, (_ref7 = (_slotProps$tooltip2 = slotProps.tooltip) != null ? _slotProps$tooltip2 : componentsProps.tooltip) == null ? void 0 : _ref7.className)\n }), ownerState);\n const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {\n className: clsx(classes.arrow, (_ref8 = (_slotProps$arrow2 = slotProps.arrow) != null ? _slotProps$arrow2 : componentsProps.arrow) == null ? void 0 : _ref8.className)\n }), ownerState);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/_jsx(PopperComponent, _extends({\n as: PopperComponentProp != null ? PopperComponentProp : Popper,\n placement: placement,\n anchorEl: followCursor ? {\n getBoundingClientRect: () => ({\n top: cursorPosition.y,\n left: cursorPosition.x,\n right: cursorPosition.x,\n bottom: cursorPosition.y,\n width: 0,\n height: 0\n })\n } : childNode,\n popperRef: popperRef,\n open: childNode ? open : false,\n id: id,\n transition: true\n }, interactiveWrapperListeners, popperProps, {\n popperOptions: popperOptions,\n children: ({\n TransitionProps: TransitionPropsInner\n }) => /*#__PURE__*/_jsx(TransitionComponent, _extends({\n timeout: theme.transitions.duration.shorter\n }, TransitionPropsInner, transitionProps, {\n children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {\n children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {\n ref: setArrowRef\n })) : null]\n }))\n }))\n }))]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tooltip.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, adds an arrow to the tooltip.\n * @default false\n */\n arrow: PropTypes.bool,\n /**\n * Tooltip reference element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `slots` prop.\n * It's recommended to use the `slots` prop instead.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Arrow: PropTypes.elementType,\n Popper: PropTypes.elementType,\n Tooltip: PropTypes.elementType,\n Transition: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `slotProps` prop.\n * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * Set to `true` if the `title` acts as an accessible description.\n * By default the `title` acts as an accessible label for the child.\n * @default false\n */\n describeChild: PropTypes.bool,\n /**\n * Do not respond to focus-visible events.\n * @default false\n */\n disableFocusListener: PropTypes.bool,\n /**\n * Do not respond to hover events.\n * @default false\n */\n disableHoverListener: PropTypes.bool,\n /**\n * Makes a tooltip not interactive, i.e. it will close when the user\n * hovers over the tooltip before the `leaveDelay` is expired.\n * @default false\n */\n disableInteractive: PropTypes.bool,\n /**\n * Do not respond to long press touch events.\n * @default false\n */\n disableTouchListener: PropTypes.bool,\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This prop won't impact the enter touch delay (`enterTouchDelay`).\n * @default 100\n */\n enterDelay: PropTypes.number,\n /**\n * The number of milliseconds to wait before showing the tooltip when one was already recently opened.\n * @default 0\n */\n enterNextDelay: PropTypes.number,\n /**\n * The number of milliseconds a user must touch the element before showing the tooltip.\n * @default 700\n */\n enterTouchDelay: PropTypes.number,\n /**\n * If `true`, the tooltip follow the cursor over the wrapped element.\n * @default false\n */\n followCursor: PropTypes.bool,\n /**\n * This prop is used to help implement the accessibility logic.\n * If you don't provide this prop. It falls back to a randomly generated id.\n */\n id: PropTypes.string,\n /**\n * The number of milliseconds to wait before hiding the tooltip.\n * This prop won't impact the leave touch delay (`leaveTouchDelay`).\n * @default 0\n */\n leaveDelay: PropTypes.number,\n /**\n * The number of milliseconds after the user stops touching an element before hiding the tooltip.\n * @default 1500\n */\n leaveTouchDelay: PropTypes.number,\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the component requests to be open.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * Tooltip placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * The component used for the popper.\n * @default Popper\n */\n PopperComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Popper`](/material-ui/api/popper/) element.\n * @default {}\n */\n PopperProps: PropTypes.object,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n arrow: PropTypes.elementType,\n popper: PropTypes.elementType,\n tooltip: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.\n */\n title: PropTypes.node,\n /**\n * The component used for the transition.\n * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Grow\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Tooltip;","import '@/components/mui/menu-item.component.css';\nimport ArrowRightIcon from '@mui/icons-material/ArrowRight';\nimport {\n ListItemIcon as MuiListItemIcon,\n ListItemText as MuiListItemText,\n MenuItem as MuiMenuItem,\n} from '@mui/material';\nimport Tooltip from '@mui/material/Tooltip';\nimport { Localized, ReferencedItem, SingleColumnMenu } from 'platform-bible-utils';\nimport { MouseEvent, PropsWithChildren } from 'react';\n\ntype MenuItemInfoBase = {\n /** Text (displayable in the UI) as the name of the menu item */\n label: string;\n /** Text to display when the mouse hovers over the menu item */\n tooltip?: string;\n};\n\nexport type Command = MenuItemInfoBase & {\n /** Command to execute (string.string) */\n command: string;\n};\n\ntype SubMenu = MenuItemInfoBase & {\n /** Command to execute (string.string) */\n items: MenuItemInfo[];\n};\n\nexport interface CommandHandler {\n (command: Command): void;\n}\n\nexport type MenuPropsBase = {\n /*\n * The JSON defining the menu whose items are to be rendered. This will typically be one of the\n * menus in the \"defs\" in a Platform.Bible menu (see PlatformMenus). The schema for this is\n * menuDocumentSchema (at the end of menus.model.ts). Note that while this is a\n * \"SingleColumnMenu\", somewhat bizarrely, a MultiColumnMenu is a SingleColumnMenu, so it really\n * could be a MultiColumnMenu, in which case, column had better be defined so it can be used\n * to filter out the actual groups and items to display on the column.\n */\n menuDefinition: Localized;\n\n commandHandler: CommandHandler;\n\n /**\n * Additional action to perform when any menu item is clicked. Allows the caller to handle event\n * (e.g., to close the menu).\n */\n onClick?: (event: MouseEvent) => void;\n};\n\nexport type MenuItemListProps = MenuPropsBase & {\n /** Optional unique (column) identifier */\n columnId?: ReferencedItem;\n};\n\nexport type MenuItemProps = Omit &\n PropsWithChildren<{\n /** Optional unique identifier */\n id?: string;\n\n onClick: (event: MouseEvent) => void;\n }>;\n\ntype MenuItemInfo = (Command | SubMenu) & {\n /**\n * If specified, menu item will be inset if it does not have a leading icon.\n *\n * @default true\n */\n allowForLeadingIcons?: boolean;\n /**\n * If specified, the path to the icon image to display on the leading side of the menu text.\n *\n * @default undefined (no leading icon will be shown)\n */\n iconPathBefore?: string;\n /**\n * If specified, the path to the icon image to display on the trailing side of the menu text.\n *\n * @default undefined (no trailing icon will be shown)\n */\n iconPathAfter?: string;\n /**\n * If true, list item is focused during the first mount\n *\n * @default false\n */\n hasAutoFocus?: boolean;\n\n /** Additional css classes to help with unique styling of the menu item */\n className?: string;\n\n /**\n * If true, the menu item will appear disabled and it will not respond to clicks or mouse hovers.\n *\n * @default false\n */\n isDisabled?: boolean;\n\n /**\n * If true, compact vertical padding designed for keyboard and mouse input is used.\n *\n * @default true\n */\n isDense?: boolean;\n\n /**\n * If true, a right-arrow icon will be displayed (iconPathAfter, if specified, will be ignored).\n *\n * @default false\n */\n isSubMenuParent?: boolean;\n\n /**\n * If true, the left and right padding is removed\n *\n * @default false\n */\n hasDisabledGutters?: boolean;\n\n /**\n * If true, a 1px light border is added to bottom of menu item\n *\n * @default false\n */\n hasDivider?: boolean;\n\n /** Help identify which element has keyboard focus */\n focusVisibleClassName?: string;\n\n /** If it's a submenu, it should have the items property */\n items?: MenuItemInfo[];\n};\n\nfunction getIcon(icon: string | undefined, menuLabel: string, leading: boolean) {\n return icon ? (\n \n {`${leading\n \n ) : undefined;\n}\n\nexport default function MenuItem(props: MenuItemProps) {\n const {\n onClick,\n label,\n tooltip,\n allowForLeadingIcons = true,\n iconPathBefore = undefined,\n iconPathAfter = undefined,\n hasAutoFocus = false,\n className,\n isDisabled = false,\n isDense = true,\n isSubMenuParent = false,\n hasDisabledGutters = false,\n hasDivider = false,\n focusVisibleClassName,\n id,\n children,\n } = props;\n\n const menuItem = (\n \n {label ? (\n <>\n {getIcon(iconPathBefore, label, true)}\n \n {isSubMenuParent ? (\n \n \n \n ) : (\n getIcon(iconPathAfter, label, false)\n )}\n \n ) : (\n children\n )}\n \n );\n\n return tooltip ? (\n \n
    {menuItem}
    \n
    \n ) : (\n menuItem\n );\n}\n","import MenuItem, {\n MenuItemListProps,\n MenuItemProps,\n MenuPropsBase,\n} from '@/components/mui/menu-item.component';\nimport { Menu } from '@mui/material';\nimport {\n Localized,\n MenuGroupDetailsInSubMenu,\n MenuItemContainingCommand,\n MenuItemContainingSubmenu,\n OrderedExtensibleContainer,\n ReferencedItem,\n SingleColumnMenu,\n} from 'platform-bible-utils';\nimport { MouseEvent, useMemo, useState } from 'react';\n\n/**\n * All the exported types in this file should be regarded as \"internal\" (i.e., they should not be\n * exposed via index.ts).\n */\n\nexport type GroupedMenuPropsBase = MenuPropsBase & {\n /** Optional unique (column) identifier */\n columnId?: ReferencedItem;\n};\n\nexport type GroupedMenuItemListProps = MenuItemListProps & {\n /**\n * If the menuDefinition includes \"top-level\" groups (i.e., those that belong to a column as\n * opposed to those that belong to a submenu) that should not be included in the list, then this\n * array specifies which groups to include. Likewise, for a submenu, this list indicates which\n * groups are pertinent for that submenu. So then for a context menu this property need not be\n * specified since it is a top-level menu based on a \"true\" SingleColumnMenu (i.e., one that is\n * not a MultiColumnMenu).\n */\n includedGroups?: {\n id: string;\n group: Localized;\n }[];\n};\n\ninterface ItemInfo {\n item: Localized;\n isLastItemInGroup: boolean;\n}\n\ntype SubMenuProps = MenuPropsBase & {\n parentMenuItem: Localized;\n parentItemProps: Omit, 'iconPathAfter'>;\n};\n\nfunction getAllGroups(menuDefinition: Localized) {\n const groupEntries = Object.entries(menuDefinition.groups);\n // Convert array of entries to array of objects with id and group properties\n return groupEntries.map(([key, value]) => ({ id: key, group: value }));\n}\n\nfunction SubMenu(props: SubMenuProps) {\n const [anchorEl, setAnchorEl] = useState(undefined);\n\n const { parentMenuItem, parentItemProps, menuDefinition } = props;\n\n const handleParentMenuItemClick = (event: MouseEvent) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(undefined);\n };\n\n const renderSubMenuItems = () => {\n let includedGroups = getAllGroups(menuDefinition).filter((g) => 'menuItem' in g.group);\n\n // Ensure valid parent menu was provided. (If not, submenu will contain all groups!)\n if (!parentMenuItem?.id) throw new Error('A valid parent menu item is required for submenus.');\n\n // When laying out a submenu, only include groups associated with the provided parent menu.\n // Note: without the (annoying) redundant check that the included groups\n // have the menuItem field, TS doesn't think it exists.\n includedGroups = includedGroups.filter(\n (group) => 'menuItem' in group.group && group.group.menuItem === parentMenuItem.id,\n );\n\n return ;\n };\n\n return (\n <>\n \n \n {renderSubMenuItems()}\n \n \n );\n}\n\nconst getOrderedGroupItems = (\n groupId: string,\n allItems: Localized[],\n) => {\n // Filter items that belong to the specified group\n const itemsForGroup = allItems.filter((item) => item.group === groupId);\n // Sort items based on order\n const sortedItems = itemsForGroup.sort((a, b) => (a.order || 0) - (b.order || 0));\n return sortedItems;\n};\n\n/**\n * This component is internal; it does not need to be exposed to the outside world since it is not\n * useful on its own. It is used to generate and lay out the MenuItems that appear either on a\n * top-level menu (in a GridMenu or ContextMenu) or in a submenu.\n */\nexport default function GroupedMenuItemList(menuProps: GroupedMenuItemListProps) {\n const { menuDefinition, onClick, commandHandler, includedGroups } = menuProps;\n\n const { items, allowForLeadingIcons } = useMemo(() => {\n const groupsToInclude =\n includedGroups && includedGroups.length > 0\n ? includedGroups\n : // We're apparently laying out a single-column menu (presumably a context menu). In this\n // case, all groups should be included except ones that belong to a submenu.\n getAllGroups(menuDefinition).filter((g) => !('menuItem' in g.group));\n\n const sortedGroups = Object.values(groupsToInclude).sort(\n (a, b) => (a.group.order || 0) - (b.group.order || 0),\n );\n\n const itemArray: ItemInfo[] = [];\n\n sortedGroups.forEach((group) => {\n getOrderedGroupItems(group.id, menuDefinition.items).forEach((item) =>\n itemArray.push({ item, isLastItemInGroup: false }),\n );\n if (itemArray.length > 0) itemArray[itemArray.length - 1].isLastItemInGroup = true;\n });\n\n // No divider after last item in final group.\n if (itemArray.length > 0) itemArray[itemArray.length - 1].isLastItemInGroup = false;\n\n const allowSpaceForLeadingIcons = itemArray.some(\n (i) => 'iconPathBefore' in i.item && i.item.iconPathBefore,\n );\n\n return { items: itemArray, allowForLeadingIcons: allowSpaceForLeadingIcons };\n }, [includedGroups, menuDefinition]);\n\n // Create props for MenuItem component including setting hasDivider for the last item in a group\n const createMenuItemProps = ({ item, isLastItemInGroup }: ItemInfo) => {\n const menuItemProps = {\n className: 'papi-menu-item',\n label: item.label,\n tooltip: item.tooltip,\n iconPathBefore: 'iconPathBefore' in item ? item.iconPathBefore : undefined,\n iconPathAfter: 'iconPathAfter' in item ? item.iconPathAfter : undefined,\n hasDivider: isLastItemInGroup, // Set hasDivider to true for the last item in a group\n allowForLeadingIcons,\n };\n\n return menuItemProps;\n };\n\n const [firstItem] = items;\n\n if (!firstItem) return
    ;\n\n const divKey = firstItem.item.group;\n\n return (\n
    \n {items.map((itemInfo, index) => {\n const { item } = itemInfo;\n const menuItemProps = createMenuItemProps(itemInfo);\n if ('command' in item) {\n const key = item.group + index;\n return (\n ) => {\n onClick?.(event);\n commandHandler(item);\n }}\n {...menuItemProps}\n />\n );\n }\n return (\n \n );\n })}\n
    \n );\n}\n","import GroupedMenuItemList from '@/components/mui/grouped-menu-item-list.component';\nimport { MenuItemListProps } from '@/components/mui/menu-item.component';\nimport { MultiColumnMenu } from 'platform-bible-utils';\n\n/**\n * This component is internal; it does not need to be exposed to the outside world since it is not\n * useful on its own. Use either GridMenu or ContextMenu.\n */\nexport default function TopLevelMenu(props: MenuItemListProps) {\n const { menuDefinition, columnId } = props;\n\n const groupEntries = Object.entries(menuDefinition.groups);\n // Convert array of entries to array of objects with id and group properties\n const groups = groupEntries.map(([key, value]) => ({ id: key, group: value }));\n let includedGroups = groups.filter((g) => 'column' in g.group);\n\n // Check if column is provided and menuDefinition is a MultiColumnMenu\n if (\n columnId &&\n 'columns' in menuDefinition &&\n // Without this type assertion, TS doesn't know what columns is.\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n (menuDefinition as MultiColumnMenu).columns[columnId]\n ) {\n // When laying out a single column in a MultiColumnMenu, only include groups associated with\n // the provided column. Note: without the (annoying) redundant check that the included groups\n // have the colum field, TS doesn't think it exists.\n includedGroups = includedGroups.filter(\n (g) => 'column' in g.group && g.group.column === columnId,\n );\n }\n\n return ;\n}\n","import '@/components/mui/grid-menu.component.css';\nimport { GroupedMenuPropsBase } from '@/components/mui/grouped-menu-item-list.component';\nimport { CommandHandler } from '@/components/mui/menu-item.component';\nimport TopLevelMenu from '@/components/mui/top-level-menu.component';\nimport { Grid, List } from '@mui/material';\nimport {\n Localized,\n MenuColumnWithHeader,\n MultiColumnMenu,\n ReferencedItem,\n} from 'platform-bible-utils';\nimport { useMemo } from 'react';\n\ntype ColumnInfo = {\n /*\n * The ID (`${string}.${string}`) of a specific menu column.\n */\n id: ReferencedItem;\n\n /*\n * Metadata (label, order, etc.) for a specific menu column.\n */\n metadata: Localized;\n};\n\ntype MenuColumnProps = ColumnInfo &\n GroupedMenuPropsBase & {\n /** Additional css classes to help with unique styling of the menu column */\n className?: string;\n };\n\nexport type GridMenuInfo = {\n /** The menu object containing information about the columns, groups, and items to display. */\n multiColumnMenu: Localized;\n};\n\nexport type GridMenuProps = GridMenuInfo & {\n /** Optional unique identifier */\n id?: string;\n\n commandHandler: CommandHandler;\n\n /** Additional css classes to help with unique styling of the grid menu */\n className?: string;\n};\n\nfunction MenuColumn({\n commandHandler,\n menuDefinition,\n id,\n metadata,\n onClick,\n className,\n}: MenuColumnProps) {\n return (\n \n

    \n {metadata.label}\n

    \n {/* It would seem as though this List component were unnecessary, since it only contains one\n thing, but the \"dense\" property does affect the layout of the items (in a way I don't fully\n understand). There might be a better way. */}\n \n \n \n \n );\n}\n\nexport default function GridMenu({\n commandHandler,\n className,\n multiColumnMenu,\n id,\n}: GridMenuProps) {\n const { columns } = multiColumnMenu;\n\n const sortedColumns = useMemo(() => {\n const columnNumbers = new Map();\n Object.getOwnPropertyNames(columns).forEach((columnName: string) => {\n // We know for sure there is a (boolean) property 'isExtensible' that we are not interested in.\n if (columnName === 'isExtensible') return;\n // TS doesn't allow `columnName` above to be a ReferencedItem even though the type says it is\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const columnId = columnName as ReferencedItem;\n const column = columns[columnId];\n // As of right now (and hopefully forever after), all remaining properties of the\n // ColumnsWithHeaders object are columns whose property names are the IDs of the columns.\n // This is an additional (redundant) sanity check. Specifically we're interested in\n // MenuColumnWithHeader objects, which TypeScript now \"knows\" we have, but at runtime all we\n // can check for is that it's an object with a valid numeric order field. That's likely good\n // enough.\n if (\n typeof column === 'object' &&\n typeof column.order === 'number' &&\n !Number.isNaN(column.order)\n )\n columnNumbers.set(column.order, { id: columnId, metadata: column });\n else\n console.warn(\n `Property ${columnName} (${typeof column}) on menu ${id} is not a valid column and is being ignored. This might indicate data corruption`,\n );\n });\n\n // Extract values and sort them based on the 'order' property\n return Array.from(columnNumbers.values()).sort((a, b) => {\n return (a.metadata.order || 0) - (b.metadata.order || 0);\n });\n }, [columns, id]);\n\n // We might need something like this if we need to be able to prevent empty columns\n // sortedColumns.filter((c) => multiColumnMenu.groups.some((g) => 'column' in g && (g as .column)...\n\n return (\n \n {sortedColumns.map((col, index) => (\n \n ))}\n \n );\n}\n","import { useEffect, useRef, useState } from 'react';\n\nexport type UsePromiseOptions = {\n /**\n * Whether to leave the value as the most recent resolved promise value or set it back to\n * defaultValue while running the promise again. Defaults to true\n */\n preserveValue?: boolean;\n};\n\n/** Set up defaults for options for usePromise hook */\nfunction getUsePromiseOptionsDefaults(options: UsePromiseOptions): UsePromiseOptions {\n return {\n preserveValue: true,\n ...options,\n };\n}\n\n/**\n * Awaits a promise and returns a loading value while the promise is unresolved\n *\n * @param promiseFactoryCallback A function that returns the promise to await. If this callback is\n * undefined, the current value will be returned (defaultValue unless it was previously changed\n * and `options.preserveValue` is true), and there will be no loading.\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n * @param defaultValue The initial value to return while first awaiting the promise. If\n * `options.preserveValue` is false, this value is also shown while awaiting the promise on\n * subsequent calls.\n *\n * Note: this parameter is internally assigned to a `ref`, so changing it will not cause any hooks\n * to re-run with its new value. This means that, if the `promiseFactoryCallback` changes and\n * `options.preserveValue` is `false`, the returned value will be set to the current\n * `defaultValue`. However, the returned value will not be updated if`defaultValue` changes.\n * @param options Various options for adjusting how this hook runs the `promiseFactoryCallback`\n *\n * Note: this parameter is internally assigned to a `ref`, so changing it will not cause any hooks\n * to re-run with its new value. However, the latest `options.preserveValue` will always be used\n * appropriately to determine whether to preserve the returned value when changing the\n * `promiseFactoryCallback`\n * @returns `[value, isLoading]`\n *\n * - `value`: the current value for the promise, either the defaultValue or the resolved promise value\n * - `isLoading`: whether the promise is waiting to be resolved\n */\nconst usePromise = (\n promiseFactoryCallback: (() => Promise) | undefined,\n defaultValue: T,\n options: UsePromiseOptions = {},\n): [value: T, isLoading: boolean] => {\n // Use defaultValue as a ref so it doesn't update dependency arrays\n const defaultValueRef = useRef(defaultValue);\n defaultValueRef.current = defaultValue;\n // Use options as a ref so it doesn't update dependency arrays\n const optionsDefaultedRef = useRef(options);\n optionsDefaultedRef.current = getUsePromiseOptionsDefaults(optionsDefaultedRef.current);\n\n const [value, setValue] = useState(() => defaultValueRef.current);\n const [isLoading, setIsLoading] = useState(true);\n useEffect(() => {\n let promiseIsCurrent = true;\n // If a promiseFactoryCallback was provided, we are loading. Otherwise, there is no loading to do\n setIsLoading(!!promiseFactoryCallback);\n (async () => {\n // If there is a callback to run, run it\n if (promiseFactoryCallback) {\n const result = await promiseFactoryCallback();\n // If the promise was not already replaced, update the value\n if (promiseIsCurrent) {\n setValue(() => result);\n setIsLoading(false);\n }\n }\n })();\n\n return () => {\n // Mark this promise as old and not to be used\n promiseIsCurrent = false;\n if (!optionsDefaultedRef.current.preserveValue) setValue(() => defaultValueRef.current);\n };\n }, [promiseFactoryCallback]);\n\n return [value, isLoading];\n};\nexport default usePromise;\n","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z\"\n}), 'Menu');","import GridMenu from '@/components/mui/grid-menu.component';\nimport { Command, CommandHandler } from '@/components/mui/menu-item.component';\nimport usePromise from '@/hooks/use-promise.hook';\nimport { Menu as MenuIcon } from '@mui/icons-material';\nimport { Drawer, IconButton } from '@mui/material';\nimport { Localized, MultiColumnMenu } from 'platform-bible-utils';\nimport {\n MouseEvent,\n MutableRefObject,\n PropsWithChildren,\n useCallback,\n useEffect,\n useState,\n} from 'react';\n\nexport interface MultiColumnMenuProvider {\n (isSupportAndDevelopment: boolean): Promise>;\n}\n\nexport type HamburgerMenuButtonProps = PropsWithChildren & {\n /** The handler to use for menu commands (and eventually toolbar commands). */\n commandHandler: CommandHandler;\n\n /**\n * Optional reference to the \"div\" container that determines the where the menu should appear. If\n * not defined, then (1,1) used.\n */\n containerRef?: MutableRefObject;\n\n /**\n * The delegate to use to get the menu data. If not specified or if it returns undefined, the data\n * in normalMenu or fullMenu property will be used.\n */\n menuProvider?: MultiColumnMenuProvider;\n\n /**\n * The menu data to show when the menu is opened if the menuProvider property is not defined.\n * (This allows for a default or test-only static menu to be used.)\n */\n normalMenu?: Localized;\n\n /**\n * The menu data to show for \"full\" menu (when opened with the SHIFT key pressed) if the\n * menuProvider property is not defined. (This allows for a default or test-only static menu to be\n * used.)\n */\n fullMenu?: Localized;\n\n /** Additional css class(es) to help with unique styling of the sub-components */\n className?: string;\n\n /** Value to use as prefix for ARIA labels on interactive sub-components */\n ariaLabelPrefix?: string;\n};\n\nexport default function HamburgerMenuButton({\n menuProvider,\n normalMenu,\n fullMenu,\n commandHandler,\n containerRef,\n className,\n ariaLabelPrefix,\n children,\n}: HamburgerMenuButtonProps) {\n const [isMenuOpen, setMenuOpen] = useState(false);\n const [showFullMenu, setShowFullMenu] = useState(false);\n\n const handleMenuItemClick = useCallback(() => {\n if (isMenuOpen) setMenuOpen(false);\n setShowFullMenu(false);\n }, [isMenuOpen]);\n\n const handleMenuButtonClick = useCallback((e: MouseEvent) => {\n e.stopPropagation();\n setMenuOpen((prevIsOpen) => {\n const isOpening = !prevIsOpen;\n if (isOpening && e.shiftKey) setShowFullMenu(true);\n else if (!isOpening) setShowFullMenu(false);\n return isOpening;\n });\n }, []);\n\n const menuCommandHandler = useCallback(\n (command: Command) => {\n handleMenuItemClick();\n return commandHandler(command);\n },\n [commandHandler, handleMenuItemClick],\n );\n\n const [offset, setOffset] = useState({ top: 1, left: 1 });\n\n useEffect(() => {\n if (isMenuOpen) {\n const node = containerRef?.current;\n if (node) {\n const rect = node.getBoundingClientRect();\n const scrollTop = window.scrollY;\n const scrollLeft = window.scrollX;\n const top = rect.top + scrollTop + node.clientHeight;\n const left = rect.left + scrollLeft;\n setOffset({ top, left });\n }\n }\n }, [isMenuOpen, containerRef]);\n\n const [normalMenuData] = usePromise(\n useCallback(async () => {\n return menuProvider?.(false) ?? normalMenu;\n // isMenuOpen needs to be included for the menu contents to reevaluate when reopened\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [menuProvider, normalMenu, isMenuOpen]),\n normalMenu,\n );\n\n const [fullMenuData] = usePromise(\n useCallback(async () => {\n return menuProvider?.(true) ?? fullMenu ?? normalMenuData;\n // isMenuOpen needs to be included for the menu contents to reevaluate when reopened\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [menuProvider, fullMenu, normalMenuData, isMenuOpen]),\n fullMenu ?? normalMenuData,\n );\n\n const menu = showFullMenu && fullMenuData ? fullMenuData : normalMenuData;\n\n return (\n <>\n \n {children ?? }\n \n \n {menu ? (\n \n ) : undefined}\n \n \n );\n}\n","import '@/components/mui/icon-button.component.css';\nimport { IconButton as MuiIconButton } from '@mui/material';\nimport { MouseEventHandler, PropsWithChildren } from 'react';\n\nexport type IconButtonProps = PropsWithChildren<{\n /** Optional unique identifier */\n id?: string;\n /**\n * Required. Used as both the tooltip (aka, title) and the aria-label (used for accessibility,\n * testing, etc.), unless a distinct tooltip is supplied.\n */\n label: string;\n /**\n * Enabled status of button\n *\n * @default false\n */\n isDisabled?: boolean;\n /** Optional tooltip to display if different from the aria-label. */\n tooltip?: string;\n /** If true, no tooltip will be displayed. */\n isTooltipSuppressed?: boolean;\n /**\n * If given, uses a negative margin to counteract the padding on one side (this is often helpful\n * for aligning the left or right side of the icon with content above or below, without ruining\n * the border size and shape).\n *\n * @default false\n */\n adjustMarginToAlignToEdge?: 'end' | 'start' | false;\n /**\n * The size of the component. small is equivalent to the dense button styling.\n *\n * @default false\n */\n size: 'small' | 'medium' | 'large';\n /** Additional css classes to help with unique styling of the button */\n className?: string;\n /** Optional click handler */\n onClick?: MouseEventHandler;\n}>;\n\n/**\n * Iconic button a user can click to do something\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction IconButton({\n id,\n label,\n isDisabled = false,\n tooltip,\n isTooltipSuppressed = false,\n adjustMarginToAlignToEdge = false,\n size = 'medium',\n className,\n onClick,\n children,\n}: IconButtonProps) {\n return (\n \n {children /* the icon to display */}\n \n );\n}\n\nexport default IconButton;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { LoaderCircle, LucideProps } from 'lucide-react';\nimport { forwardRef } from 'react';\n\nexport type SpinnerProps = LucideProps;\n\nconst Spinner = forwardRef(({ className, ...props }, ref) => {\n return (\n \n );\n});\n\nSpinner.displayName = 'Spinner';\n\nexport default Spinner;\n","import { Input as ShadInput } from '@/components/shadcn-ui/input';\nimport { Label as ShadLabel } from '@/components/shadcn-ui/label';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { ChangeEventHandler, FocusEventHandler } from 'react';\n\nexport type TextFieldProps = {\n /** Optional unique identifier */\n id?: string;\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * If `true`, the label is displayed in an error state.\n *\n * @default false\n */\n hasError?: boolean;\n /**\n * If `true`, the input will take up the full width of its container.\n *\n * @default false\n */\n isFullWidth?: boolean;\n /** Text that gives the user instructions on what contents the TextField expects */\n helperText?: string;\n /** The title of the TextField */\n label?: string;\n /** The short hint displayed in the `input` before the user enters a value. */\n placeholder?: string;\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n *\n * @default false\n */\n isRequired?: boolean;\n /** Additional css classes to help with unique styling of the text field */\n className?: string;\n /** Starting value for the text field if it is not controlled */\n defaultValue?: string | number;\n /** Value of the text field if controlled */\n value?: string | number;\n /** Triggers when content of textfield is changed */\n onChange?: ChangeEventHandler;\n /** Triggers when textfield gets focus */\n onFocus?: FocusEventHandler;\n /** Triggers when textfield loses focus */\n onBlur?: FocusEventHandler;\n};\n\n/**\n * Text input field\n *\n * Thanks to Shadcn for heavy inspiration and documentation\n * https://ui.shadcn.com/docs/components/input#with-label\n */\nfunction TextField({\n id,\n isDisabled = false,\n hasError = false,\n isFullWidth = false,\n helperText,\n label,\n placeholder,\n isRequired = false,\n className,\n defaultValue,\n value,\n onChange,\n onFocus,\n onBlur,\n}: TextFieldProps) {\n return (\n
    \n {`${label}${isRequired ? '*' : ''}`}\n \n

    {helperText}

    \n
    \n );\n}\n\nexport default TextField;\n","import HamburgerMenuButton, {\n MultiColumnMenuProvider,\n} from '@/components/mui/hamburger-menu-button.component';\nimport { CommandHandler } from '@/components/mui/menu-item.component';\nimport '@/components/mui/toolbar.component.css';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { AppBar, Toolbar as MuiToolbar } from '@mui/material';\nimport { PropsWithChildren, useRef } from 'react';\n\nexport type ToolbarProps = PropsWithChildren<{\n /** The handler to use for menu commands (and eventually toolbar commands). */\n commandHandler: CommandHandler;\n\n /**\n * The optional delegate to use to get the menu data. If not specified, the \"hamburger\" menu will\n * not display.\n */\n menuProvider?: MultiColumnMenuProvider;\n\n /** Optional unique identifier */\n id?: string;\n\n /** Additional css classes to help with unique styling of the toolbar */\n className?: string;\n}>;\n\nexport default function Toolbar({\n menuProvider,\n commandHandler,\n className,\n id,\n children,\n}: ToolbarProps) {\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const containerRef = useRef(undefined!);\n\n return (\n
    \n \n \n {menuProvider ? (\n \n ) : undefined}\n {children ?
    {children}
    : undefined}\n \n
    \n
    \n );\n}\n","import React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst alertVariants = cva(\n 'tw-relative tw-w-full tw-rounded-lg tw-border tw-p-4 [&>svg~*]:tw-pl-7 [&>svg+div]:tw-translate-y-[-3px] [&>svg]:tw-absolute [&>svg]:tw-left-4 [&>svg]:tw-top-4 [&>svg]:tw-text-foreground',\n {\n variants: {\n variant: {\n default: 'tw-bg-background tw-text-foreground',\n destructive:\n 'tw-border-destructive/50 tw-text-destructive dark:tw-border-destructive [&>svg]:tw-text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes & VariantProps\n>(({ className, variant, ...props }, ref) => (\n
    \n));\nAlert.displayName = 'Alert';\n\nconst AlertTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}{' '}\n \n ),\n);\nAlertTitle.displayName = 'AlertTitle';\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
    \n));\nAlertDescription.displayName = 'AlertDescription';\n\nexport { Alert, AlertTitle, AlertDescription };\n","import { cva, type VariantProps } from 'class-variance-authority';\nimport React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst badgeVariants = cva(\n 'tw-inline-flex tw-items-center tw-rounded-full tw-border tw-px-2.5 tw-py-0.5 tw-text-xs tw-font-semibold tw-transition-colors focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2',\n {\n variants: {\n variant: {\n default:\n 'tw-border-transparent tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/80',\n secondary:\n 'tw-border-transparent tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80',\n muted: 'tw-border-transparent tw-bg-muted tw-text-muted-foreground hover:tw-bg-muted/80',\n destructive:\n 'tw-border-transparent tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/80',\n outline: 'tw-text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nexport interface BadgeProps\n extends React.HTMLAttributes,\n VariantProps {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return
    ;\n}\n\nexport { Badge, badgeVariants };\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Card = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCard.displayName = 'Card';\n\nconst CardHeader = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}\n \n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n

    \n));\nCardDescription.displayName = 'CardDescription';\n\nconst CardContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n

    \n ),\n);\nCardContent.displayName = 'CardContent';\n\nconst CardFooter = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardFooter.displayName = 'CardFooter';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n","import { ComponentProps } from 'react';\nimport { toast as sonner, Toaster } from 'sonner';\n\ntype SonnerProps = ComponentProps;\n\nfunction Sonner({ ...props }: SonnerProps) {\n return (\n \n );\n}\n\n// The re-export of the sonner function was added manually\nexport { Sonner, sonner };\n","import React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Slider = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n \n \n \n );\n});\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider };\n","import * as SwitchPrimitives from '@radix-ui/react-switch';\nimport React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Switch = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n );\n});\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n","import React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport const Tabs = TabsPrimitive.Root;\n\nexport type TabsListProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type TabsTriggerProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type TabsContentProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport const TabsList = React.forwardRef<\n React.ElementRef,\n TabsListProps\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nexport const TabsTrigger = React.forwardRef<\n React.ElementRef,\n TabsTriggerProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nexport const TabsContent = React.forwardRef<\n React.ElementRef,\n TabsContentProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Download } from 'lucide-react';\n\ntype InstallButtonProps = {\n /** The installing boolean value determines the state of the button. */\n isInstalling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n /** Optional text for the button. */\n buttonText?: string;\n} & ButtonProps;\n\n/**\n * The InstallButton component is a button designed for initiating installs. It includes visuals for\n * active installing and idle states.\n *\n * @param isInstalling The installing boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @param buttonText Optional text for the button.\n * @returns A install button.\n */\nexport default function InstallButton({\n isInstalling,\n handleClick,\n buttonText,\n className,\n ...props\n}: InstallButtonProps) {\n return (\n \n {isInstalling ? (\n \n ) : (\n <>\n \n {buttonText}\n \n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype EnableButtonProps = {\n /** The enabling boolean value determines the state of the button. */\n isEnabling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The EnableButton component is a button designed for initiating enabling of downloads. It includes\n * visuals for active enabling and idle states.\n *\n * @param isEnabling The enabling boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to enable.\n */\nexport default function EnableButton({\n isEnabling,\n handleClick,\n className,\n ...props\n}: EnableButtonProps) {\n return (\n \n {isEnabling ? (\n <>\n \n Enabling...\n \n ) : (\n 'Enable'\n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype DisableButtonProps = {\n /** The disabling boolean value determines the state of the button. */\n isDisabling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The DisableButton component is a button designed for initiating disabling of downloads. It\n * includes visuals for active disabling and idle states.\n *\n * @param isDisabling The disabling boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to disable.\n */\nexport default function DisableButton({\n isDisabling,\n handleClick,\n className,\n ...props\n}: DisableButtonProps) {\n return (\n \n {isDisabling ? (\n <>\n \n Disabling...\n \n ) : (\n 'Disable'\n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype UpdateButtonProps = {\n /** The updating boolean value determines the state of the button. */\n isUpdating: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The UpdateButton component is a button designed for initiating updates for downloaded extensions.\n * It includes visuals for active updating and idle states.\n *\n * @param isUpdating The updating boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to update.\n */\nexport default function UpdateButton({\n isUpdating,\n handleClick,\n className,\n ...props\n}: UpdateButtonProps) {\n return (\n \n {isUpdating ? (\n <>\n \n Updating...\n \n ) : (\n 'Update'\n )}\n \n );\n}\n","import { cn } from '@/utils/shadcn-ui.util';\nimport Markdown, { MarkdownToJSX } from 'markdown-to-jsx';\nimport { useMemo } from 'react';\n\ninterface MarkdownRendererProps {\n /** Optional unique identifier */\n id?: string;\n /** The markdown string to render */\n markdown: string;\n className?: string;\n /**\n * The [`target` attribute for `a` html\n * tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target). Defaults to not\n * adding a `target` to `a` tags\n */\n anchorTarget?: string;\n}\n\n/**\n * This component renders markdown content given a markdown string. It uses typography styles from\n * the platform.\n *\n * @param markdown The markdown string to render.\n * @param id Optional unique identifier\n * @returns A div containing the rendered markdown content.\n */\nexport default function MarkdownRenderer({\n id,\n markdown,\n className,\n anchorTarget,\n}: MarkdownRendererProps) {\n const options: MarkdownToJSX.Options = useMemo(\n () => ({\n overrides: {\n a: {\n props: {\n target: anchorTarget,\n },\n },\n },\n }),\n [anchorTarget],\n );\n return (\n
    \n {markdown}\n
    \n );\n}\n","import { Filter, ChevronDown } from 'lucide-react';\nimport { forwardRef } from 'react';\nimport { Button } from '@/components/shadcn-ui/button';\n\n/**\n * The FilterButton component is a button designed for initiating filtering of data. It is designed\n * to be used with the dropdown menu. It uses forwardRef to pass the button to the dropdown trigger\n * asChild.\n *\n * @returns A button that can be used to filter.\n */\nconst FilterButton = forwardRef((props, ref) => {\n return (\n \n \n Filter\n \n \n );\n});\n\nexport default FilterButton;\n","import {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuGroup,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport FilterButton from './buttons/filter-button.component';\n\nexport enum DropdownMenuItemType {\n Check,\n Radio,\n}\n\nexport type DropdownItem = {\n /** The label is the text that will be displayed on the dropdown item. */\n label: string;\n /** The itemType determines the DropdownMenuItemType type as either Check or Radio. */\n itemType: DropdownMenuItemType;\n /** The onClick function is called when the item is clicked. */\n onClick: () => void;\n};\n\nexport type DropdownGroup = {\n /**\n * The label is the text that will be displayed on the dropdown group. It is used to categorize\n * the items in the group.\n */\n label: string;\n /** The items array contains the items that will be displayed in the dropdown group */\n items: DropdownItem[];\n};\n\nexport type FilterDropdownProps = {\n /** Object unique identifier */\n id?: string;\n /** The groups array contains the groups that will be displayed in the dropdown */\n groups: DropdownGroup[];\n}; // TODO: extend the props later\n\n/**\n * The FilterDropdown component is a dropdown designed for filtering content. It includes groups of\n * items that can be checkboxes or radio items.\n *\n * @param id Optional unique identifier\n * @param groups The groups array contains the groups that will be displayed in the dropdown\n * @returns A filter dropdown.\n */\nexport default function FilterDropdown({ id, groups }: FilterDropdownProps) {\n return (\n
    \n {/* TODO: remove this once the DropDown Menu shadcn has an id prop */}\n \n \n \n \n \n {groups.map((group) => (\n
    \n {group.label}\n \n {group.items.map((item) => (\n
    \n {item.itemType === DropdownMenuItemType.Check ? (\n \n {item.label}\n \n ) : (\n \n {item.label}\n \n )}\n
    \n ))}\n
    \n \n
    \n ))}\n
    \n
    \n
    \n );\n}\n","interface NoExtensionsFoundProps {\n /** Optional unique identifier */\n id?: string;\n /** The message to display */\n message: string;\n}\n/**\n * This component displays a message to the user when no extensions are found in the marketplace.\n *\n * @param id Optional unique identifier\n * @param message The message to display.\n * @returns {JSX.Element} - Returns the message component that displays the message to the user.\n */\nexport default function NoExtensionsFound({ id, message }: NoExtensionsFoundProps) {\n return (\n
    \n
    \n

    {message}

    \n
    \n
    \n );\n}\n","import { CircleHelp, Link as LucideLink, User } from 'lucide-react';\nimport { NumberFormat } from 'platform-bible-utils';\n\n/** Interface that stores the parameters passed to the More Info component */\ninterface MoreInfoProps {\n /** Optional unique identifier */\n id?: string;\n /** The category of the extension */\n category: string;\n /** The number of downloads for the extension */\n downloads: Record;\n /** The languages supported by the extension */\n languages: string[];\n /** The URL to the more info page of the extension */\n moreInfoUrl: string;\n}\n/**\n * This component displays the more info section of the extension which includes the category,\n * number of downloads, languages, and links to the website and support\n *\n * @param id Optional unique identifier\n * @param category The category of the extension\n * @param downloads The number of downloads for the extension\n * @param languages The languages supported by the extension\n * @param moreInfoUrl The URL to the more info page of the extension\n * @returns {JSX.Element} - Returns the more info component that displays the category, number of\n * downloads, languages, and links to the website and support\n */\nexport default function MoreInfo({\n id,\n category,\n downloads,\n languages,\n moreInfoUrl,\n}: MoreInfoProps) {\n /**\n * This constant formats the number of downloads into a more readable format.\n *\n * @example 1000 -> 1K\n *\n * @example 1000000 -> 1M\n *\n * @returns The formatted number of downloads\n */\n const numberFormatted = new NumberFormat('en', {\n notation: 'compact',\n compactDisplay: 'short',\n }).format(Object.values(downloads).reduce((a: number, b: number) => a + b, 0));\n\n /** This function scrolls the window to the bottom of the page. */\n const handleScrollToBottom = () => {\n window.scrollTo(0, document.body.scrollHeight);\n };\n\n return (\n \n
    \n
    \n {category}\n
    \n CATEGORY\n
    \n
    \n
    \n
    \n \n {numberFormatted}\n
    \n USERS\n
    \n
    \n
    \n
    \n {languages.slice(0, 3).map((locale) => (\n \n {locale.toUpperCase()}\n \n ))}\n
    \n {languages.length > 3 && (\n handleScrollToBottom()}\n className=\"tw-text-xs tw-text-gray-500 tw-underline\"\n >\n +{languages.length - 3} more languages\n \n )}\n
    \n
    \n
    \n \n Website\n \n \n \n Support\n \n \n
    \n
    \n );\n}\n","import { useState } from 'react';\n\nexport type VersionInformation = {\n /** Date the version was published */\n date: string;\n /** Description of the changes in the version */\n description: string;\n};\n\n/** Type to store the version history information */\nexport type VersionHistoryType = Record;\n\n/** Interface that stores the parameters passed to the Version History component */\ninterface VersionHistoryProps {\n /** Optional unique identifier */\n id?: string;\n /** Object containing the versions mapped with their information */\n versionHistory: VersionHistoryType;\n}\n\n/**\n * Component to render the version history information shown in the footer component. Lists the 5\n * most recent versions, with the options to show all versions by pressing a button.\n *\n * @param versionHistory Object containing the versions mapped with their information\n * @param id Optional unique identifier\n * @returns Rendered version history for the Footer component\n */\nexport default function VersionHistory({ id, versionHistory }: VersionHistoryProps) {\n const [showAllVersions, setShowAllVersions] = useState(false);\n const currentDate = new Date();\n\n /**\n * Function to format the time string for the version history in the form of 'X year(s) ago'.\n *\n * @param dateString ISO Date string to determine the time string from\n * @returns Formatted time string\n */\n function formatTimeString(dateString: string) {\n const date = new Date(dateString);\n const dateDiff = new Date(currentDate.getTime() - date.getTime());\n const yearDiff = dateDiff.getUTCFullYear() - 1970;\n const monthDiff = dateDiff.getUTCMonth();\n const dayDiff = dateDiff.getUTCDate() - 1;\n\n // Determines how long ago the version was published\n let timeString = '';\n if (yearDiff > 0) {\n timeString = `${yearDiff.toString()} year${yearDiff === 1 ? '' : 's'} ago`;\n } else if (monthDiff > 0) {\n timeString = `${monthDiff.toString()} month${monthDiff === 1 ? '' : 's'} ago`;\n } else if (dayDiff === 0) {\n timeString = 'today';\n } else {\n timeString = `${dayDiff.toString()} day${dayDiff === 1 ? '' : 's'} ago`;\n }\n\n return timeString;\n }\n\n // Sorts the version history by version number\n const sortedEntries = Object.entries(versionHistory).sort((a, b) => b[0].localeCompare(a[0]));\n\n return (\n
    \n

    What`s New

    \n
      \n {(showAllVersions ? sortedEntries : sortedEntries.slice(0, 5)).map((entry) => (\n
      \n
      \n
    • \n {entry[1].description}\n
    • \n
      \n
      \n
      Version {entry[0]}
      \n
      {formatTimeString(entry[1].date)}
      \n
      \n
      \n ))}\n
    \n {sortedEntries.length > 5 && (\n setShowAllVersions(!showAllVersions)}\n className=\"tw-text-xs tw-text-gray-500 tw-underline\"\n >\n {showAllVersions ? 'Show Less Version History' : 'Show All Version History'}\n \n )}\n
    \n );\n}\n","import { useMemo } from 'react';\nimport { formatBytes } from 'platform-bible-utils';\nimport VersionHistory, { VersionHistoryType } from './version-history.component';\n\n/** Interface to store the parameters passed to the Footer component */\ninterface FooterProps {\n /** Optional unique identifier */\n id?: string;\n /** Name of the publisher */\n publisherDisplayName: string;\n /** Size of the extension file in bytes */\n fileSize: number;\n /** List of language codes supported by the extension */\n locales: string[];\n /** Object containing the version history mapped with their information */\n versionHistory: VersionHistoryType;\n}\n\n/**\n * Component to render the footer for the extension details which contains information on the\n * publisher, version history, languages, and file size.\n *\n * @param id Optional unique identifier\n * @param publisherDisplayName Name of the publisher\n * @param fileSize Size of the extension file in bytes\n * @param locales List of language codes supported by the extension\n * @param versionHistory Object containing the version history mapped with their information\n * @returns The rendered Footer component\n */\nexport default function Footer({\n id,\n publisherDisplayName,\n fileSize,\n locales,\n versionHistory,\n}: FooterProps) {\n /** Formats the file size into a human-readable format */\n const formattedFileSize = useMemo(() => formatBytes(fileSize), [fileSize]);\n\n /**\n * This function gets the display names of the languages based on the language codes.\n *\n * @param codes The list of language codes\n * @returns The list of language names\n */\n const getLanguageNames = (codes: string[]) => {\n const displayNames = new Intl.DisplayNames(navigator.language, { type: 'language' });\n return codes.map((code) => displayNames.of(code));\n };\n\n const languageNames = getLanguageNames(locales);\n\n return (\n
    \n
    \n \n
    \n
    \n

    Information

    \n
    \n

    \n Publisher\n {publisherDisplayName}\n Size\n {formattedFileSize}\n

    \n
    \n

    \n Languages\n {languageNames.join(', ')}\n

    \n
    \n
    \n
    \n
    \n
    \n );\n}\n","import ComboBox from '@/components/basics/combo-box.component';\nimport Spinner from '@/components/basics/spinner.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from '@/components/shadcn-ui/card';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Label } from '@/components/shadcn-ui/label';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport {\n BookOpen,\n ChevronDown,\n ChevronsUpDown,\n ChevronUp,\n Ellipsis,\n Loader,\n Search,\n} from 'lucide-react';\n\nimport {\n DblResourceData,\n getErrorMessage,\n LanguageStrings,\n LocalizeKey,\n ResourceType,\n} from 'platform-bible-utils';\nimport { useEffect, useMemo, useState } from 'react';\n\nexport const FILTERABLE_RESOURCE_LIST_STRING_KEYS: LocalizeKey[] = [\n '%resources_action%',\n '%resources_dialog_subtitle%',\n '%resources_dialog_title%',\n '%resources_filterInput%',\n '%resources_fullName%',\n '%resources_get%',\n '%resources_installed%',\n '%resources_language%',\n '%resources_languageFilter%',\n '%resources_loadingResources%',\n '%resources_noResults%',\n '%resources_open%',\n '%resources_remove%',\n '%resources_size%',\n '%resources_type%',\n '%resources_type_DBL%',\n '%resources_type_ER%',\n '%resources_type_SLR%',\n '%resources_type_XR%',\n '%resources_type_unknown%',\n '%resources_update%',\n];\n\ntype InstallInfo = {\n dblEntryUid: string;\n action: 'installing' | 'removing';\n};\n\ntype SortConfig = {\n key: 'fullName' | 'bestLanguageName';\n direction: 'ascending' | 'descending';\n};\n\ntype TypeOptions = {\n type: ResourceType;\n localizedValue: string;\n};\n\nconst getLanguageOptions = (\n dblResources: DblResourceData[],\n languageFilter: string[],\n): string[] => {\n const sortedLanguages = Array.from(\n new Set(dblResources.map((resource) => resource.bestLanguageName)),\n );\n\n const prioritizedLanguages = new Set(\n languageFilter.concat(\n dblResources\n .filter((resource) => resource.installed)\n .map((resource) => resource.bestLanguageName),\n ),\n );\n\n return sortedLanguages.sort((a, b) => {\n const aIsPrioritized = prioritizedLanguages.has(a);\n const bIsPrioritized = prioritizedLanguages.has(b);\n\n if (aIsPrioritized && bIsPrioritized) {\n return a.localeCompare(b);\n }\n if (aIsPrioritized) return -1;\n if (bIsPrioritized) return 1;\n\n return a.localeCompare(b);\n });\n};\n\nconst getActionButtonContent = (\n resource: DblResourceData,\n buttonText: string,\n installResource: (dblEntryUid: string, action: 'install' | 'remove') => void,\n) => {\n return (\n \n );\n};\n\nconst getActionContent = (\n resource: DblResourceData,\n idsBeingHandled: string[],\n getText: string,\n updateText: string,\n installedText: string,\n installResource: (dblEntryUid: string, action: 'install' | 'remove') => void,\n) => {\n const isBeingHandled = idsBeingHandled.includes(resource.dblEntryUid);\n if (isBeingHandled) {\n return (\n \n );\n }\n if (!resource.installed) {\n return getActionButtonContent(resource, getText, installResource);\n }\n if (resource.updateAvailable) {\n return getActionButtonContent(resource, updateText, installResource);\n }\n return ;\n};\n\ntype FilterableResourceListProps = {\n localizedStrings: LanguageStrings;\n dblResources: DblResourceData[];\n isLoadingDblResources: boolean;\n typeFilter: ResourceType[];\n setTypeFilter: (stateValue: ResourceType[]) => void;\n languageFilter: string[];\n setLanguageFilter: (stateValue: string[]) => void;\n openResource: (projectId: string) => void;\n installResource: ((uid: string) => Promise) | undefined;\n uninstallResource: ((uid: string) => Promise) | undefined;\n};\n\nfunction FilterableResourceList({\n localizedStrings,\n dblResources,\n isLoadingDblResources,\n typeFilter,\n setTypeFilter,\n languageFilter,\n setLanguageFilter,\n openResource,\n installResource,\n uninstallResource,\n}: FilterableResourceListProps) {\n const actionText: string = localizedStrings['%resources_action%'];\n const dialogSubtitleText: string = localizedStrings['%resources_dialog_subtitle%'];\n const dialogTitleText: string = localizedStrings['%resources_dialog_title%'];\n const filterInputText: string = localizedStrings['%resources_filterInput%'];\n const fullNameText: string = localizedStrings['%resources_fullName%'];\n const getText: string = localizedStrings['%resources_get%'];\n const installedText: string = localizedStrings['%resources_installed%'];\n const languageText: string = localizedStrings['%resources_language%'];\n const languageFilterText: string = localizedStrings['%resources_languageFilter%'];\n const loadingResourcesText: string = localizedStrings['%resources_loadingResources%'];\n const noResultsText: string = localizedStrings['%resources_noResults%'];\n const openText: string = localizedStrings['%resources_open%'];\n const removeText: string = localizedStrings['%resources_remove%'];\n const sizeText: string = localizedStrings['%resources_size%'];\n const typeText: string = localizedStrings['%resources_type%'];\n const typeDblText: string = localizedStrings['%resources_type_DBL%'];\n const typeErText: string = localizedStrings['%resources_type_ER%'];\n const typeSlrText: string = localizedStrings['%resources_type_SLR%'];\n const typeXrText: string = localizedStrings['%resources_type_XR%'];\n const typeUnknownText: string = localizedStrings['%resources_type_unknown%'];\n const updateText: string = localizedStrings['%resources_update%'];\n\n const [installInfo, setInstallInfo] = useState([]);\n\n const installOrRemoveResource = (dblEntryUid: string, action: 'install' | 'remove'): void => {\n if (!installResource || !uninstallResource) return;\n const newInstallInfo: InstallInfo = {\n dblEntryUid,\n action: action === 'install' ? 'installing' : 'removing',\n };\n\n setInstallInfo((prevInfo) => [...prevInfo, newInstallInfo]);\n\n const actionFunction = action === 'install' ? installResource : uninstallResource;\n\n actionFunction(dblEntryUid).catch((error) => {\n console.debug(getErrorMessage(error));\n });\n };\n\n /** Removes resources from array of resources that are currently being handled */\n useEffect(() => {\n setInstallInfo((currentInstallInfo) =>\n currentInstallInfo.filter((info) => {\n const resource = dblResources.find((res) => res.dblEntryUid === info.dblEntryUid);\n\n if (!resource) return true;\n\n if (info.action === 'installing' && resource.installed) return false;\n if (info.action === 'removing' && !resource.installed) return false;\n\n return true;\n }),\n );\n }, [dblResources]);\n\n const [textFilter, setTextFilter] = useState('');\n\n const textFilteredResources = useMemo(() => {\n return dblResources.filter((resource) => {\n const filter = textFilter.toLowerCase();\n return (\n resource.displayName.toLowerCase().includes(filter) ||\n resource.fullName.toLowerCase().includes(filter) ||\n resource.bestLanguageName.toLowerCase().includes(filter)\n );\n });\n }, [dblResources, textFilter]);\n\n const typeOptions: TypeOptions[] = useMemo(() => {\n return [\n { type: 'DBLResource', localizedValue: typeDblText },\n { type: 'EnhancedResource', localizedValue: typeErText },\n { type: 'SourceLanguageResource', localizedValue: typeSlrText },\n { type: 'XmlResource', localizedValue: typeXrText },\n ];\n }, [typeDblText, typeErText, typeSlrText, typeXrText]);\n\n const typeFilterChangeHandler = (newType: ResourceType): void => {\n const prevTypeFilter: ResourceType[] = [...typeFilter];\n let newTypeFilter: ResourceType[] = [];\n\n if (!prevTypeFilter || prevTypeFilter.length === 0) {\n newTypeFilter = [newType];\n } else {\n newTypeFilter = prevTypeFilter.includes(newType)\n ? prevTypeFilter.filter((value) => value !== newType)\n : [...prevTypeFilter, newType];\n }\n setTypeFilter(newTypeFilter);\n };\n\n const textAndTypeFilteredResources = useMemo(() => {\n return textFilteredResources.filter((resource) => {\n return typeFilter.includes(resource.type);\n });\n }, [textFilteredResources, typeFilter]);\n\n useEffect(() => {\n if (languageFilter.length === 0) {\n setLanguageFilter(\n dblResources\n .filter((resource) => resource.installed === true)\n .map((resource) => resource.bestLanguageName),\n );\n }\n }, [dblResources, languageFilter.length, setLanguageFilter]);\n\n const languageFilterChangeHandler = (newLanguage: string): void => {\n const prevLanguageFilter: string[] = [...languageFilter];\n let newLanguageFilter: string[] = [];\n\n if (!prevLanguageFilter || prevLanguageFilter.length === 0) {\n newLanguageFilter = [newLanguage];\n } else {\n newLanguageFilter = prevLanguageFilter.includes(newLanguage)\n ? prevLanguageFilter.filter((value) => value !== newLanguage)\n : [...prevLanguageFilter, newLanguage];\n }\n setLanguageFilter(newLanguageFilter);\n };\n\n const textAndTypeAndLanguageFilteredResources = useMemo(() => {\n return textAndTypeFilteredResources.filter((resource) => {\n return languageFilter.includes(resource.bestLanguageName);\n });\n }, [languageFilter, textAndTypeFilteredResources]);\n\n const [sortConfig, setSortConfig] = useState({\n key: 'bestLanguageName',\n direction: 'ascending',\n });\n\n const sortedResources = useMemo(() => {\n return [...textAndTypeAndLanguageFilteredResources].sort((a, b) => {\n const aValue = a[sortConfig.key];\n const bValue = b[sortConfig.key];\n\n if (aValue < bValue) {\n return sortConfig.direction === 'ascending' ? -1 : 1;\n }\n if (aValue > bValue) {\n return sortConfig.direction === 'ascending' ? 1 : -1;\n }\n return 0;\n });\n }, [sortConfig.direction, sortConfig.key, textAndTypeAndLanguageFilteredResources]);\n\n const handleSort = (key: SortConfig['key']) => {\n const newSortConfig: SortConfig = { key, direction: 'ascending' };\n if (sortConfig.key === key && sortConfig.direction === 'ascending') {\n newSortConfig.direction = 'descending';\n }\n setSortConfig(newSortConfig);\n };\n\n return (\n \n \n
    \n \n
    \n {dialogTitleText}\n {dialogSubtitleText}\n
    \n
    \n
    \n \n {isLoadingDblResources || !dblResources ? (\n
    \n \n \n
    \n ) : (\n
    \n
    \n
    \n setTextFilter(event.target.value)}\n value={textFilter}\n placeholder={filterInputText}\n />\n \n
    \n \n \n \n \n \n {typeOptions.map((option) => (\n {\n e.preventDefault();\n typeFilterChangeHandler(option.type);\n }}\n >\n {option.localizedValue}\n \n ))}\n \n \n \n
    \n\n {sortedResources.length === 0 ? (\n
    \n \n
    \n ) : (\n \n \n \n \n \n handleSort('fullName')}>\n
    \n {fullNameText}\n {sortConfig.key !== 'fullName' && (\n \n )}\n {sortConfig.key === 'fullName' &&\n (sortConfig.direction === 'ascending' ? (\n \n ) : (\n \n ))}\n
    \n
    \n handleSort('bestLanguageName')}>\n
    \n {languageText}\n {sortConfig.key !== 'bestLanguageName' && (\n \n )}\n {sortConfig.key === 'bestLanguageName' &&\n (sortConfig.direction === 'ascending' ? (\n \n ) : (\n \n ))}\n
    \n
    \n {typeText}\n {sizeText}\n {actionText}\n
    \n
    \n \n {sortedResources.map((resource) => (\n \n \n \n \n {resource.displayName}\n {resource.fullName}\n {resource.bestLanguageName}\n \n {typeOptions.find((type) => type.type === resource.type)?.localizedValue ??\n typeUnknownText}\n \n {resource.size}\n \n
    \n {getActionContent(\n resource,\n installInfo.map((info) => info.dblEntryUid),\n getText,\n updateText,\n installedText,\n installOrRemoveResource,\n )}\n {resource.installed && (\n \n \n \n \n \n openResource(resource.projectId)}>\n {openText}\n \n\n \n \n installOrRemoveResource(resource.dblEntryUid, 'remove')\n }\n >\n {removeText}\n \n \n \n )}\n
    \n
    \n
    \n ))}\n
    \n
    \n )}\n
    \n )}\n
    \n
    \n );\n}\n\nexport default FilterableResourceList;\n","import { useState } from 'react';\nimport { LocalizedStringValue } from 'platform-bible-utils';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../shadcn-ui/select';\nimport { Label } from '../shadcn-ui/label';\n\n/**\n * Immutable array containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const UI_LANGUAGE_SELECTOR_STRING_KEYS = Object.freeze([\n '%settings_uiLanguageSelector_selectFallbackLanguages%',\n] as const);\n\nexport type UiLanguageSelectorLocalizedStrings = {\n [localizedUiLanguageSelectorKey in (typeof UI_LANGUAGE_SELECTOR_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: UiLanguageSelectorLocalizedStrings,\n key: keyof UiLanguageSelectorLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\nexport type LanguageInfo = {\n /** The name of the language to be displayed (in its native script) */\n autonym: string;\n /**\n * The name of the language in other languages, so that the language can also be displayed in the\n * current UI language, if known.\n */\n uiNames?: Record;\n /**\n * Other known names of the language (for searching). This can include pejorative names and should\n * never be displayed unless typed by the user.\n */\n otherNames?: string[];\n};\n\nexport type UiLanguageSelectorProps = {\n /** Full set of known languages to display. The keys are valid BCP-47 tags. */\n knownUiLanguages: Record;\n /** IETF BCP-47 language tag of the current primary UI language. `undefined` => 'en' */\n primaryLanguage: string;\n /**\n * Ordered list of fallback language tags to use if the localization key can't be found in the\n * current primary UI language. This list never contains English ('en') because it is the ultimate\n * fallback.\n */\n fallbackLanguages: string[] | undefined;\n /**\n * Handler for when either the primary or the fallback languages change (or both). For this\n * handler, the primary UI language is the first one in the array, followed by the fallback\n * languages in order of decreasing preference.\n */\n onLanguagesChange?: (newUiLanguages: string[]) => void;\n /** Handler for the primary language changes. */\n onPrimaryLanguageChange?: (newPrimaryUiLanguage: string) => void;\n /**\n * Handler for when the fallback languages change. The array contains the fallback languages in\n * order of decreasing preference.\n */\n onFallbackLanguagesChange?: (newFallbackLanguages: string[]) => void;\n /**\n * Map whose keys are localized string keys as contained in UI_LANGUAGE_SELECTOR_STRING_KEYS and\n * whose values are the localized strings (in the current UI language).\n */\n localizedStrings: UiLanguageSelectorLocalizedStrings;\n /** Additional css classes to help with unique styling of the control */\n className?: string;\n};\n\nexport default function UiLanguageSelector({\n knownUiLanguages,\n primaryLanguage = 'en',\n fallbackLanguages = [],\n onLanguagesChange,\n onPrimaryLanguageChange,\n onFallbackLanguagesChange,\n localizedStrings,\n className,\n}: UiLanguageSelectorProps) {\n const selectFallbackLanguagesText = localizeString(\n localizedStrings,\n '%settings_uiLanguageSelector_selectFallbackLanguages%',\n );\n const [isOpen, setIsOpen] = useState(false);\n\n const handleLanguageChange = (code: string) => {\n if (onPrimaryLanguageChange) onPrimaryLanguageChange(code);\n // REVIEW: Should fallback languages be preserved when primary language changes?\n if (onLanguagesChange)\n onLanguagesChange([code, ...fallbackLanguages.filter((lang) => lang !== code)]);\n if (onFallbackLanguagesChange && fallbackLanguages.find((l) => l === code))\n onFallbackLanguagesChange([...fallbackLanguages.filter((lang) => lang !== code)]);\n setIsOpen(false); // Close the dropdown when a selection is made\n };\n\n /**\n * Gets the display name for the given language. This will typically include the autonym (in the\n * native script), along with the name of the language in the current UI locale if known, with a\n * fallback to the English name (if known).\n *\n * @param {string} lang - The BCP-47 code of the language whose display name is being requested.\n * @param {string} uiLang - The BCP-47 code of the current user-interface language used used to\n * try to look up the name of the language in a form that is likely to be helpful to the user if\n * they do not recognize the autonym.\n * @returns {string} The display name of the language.\n */\n const getLanguageDisplayName = (lang: string, uiLang: string) => {\n const altName =\n uiLang !== lang\n ? (knownUiLanguages[lang]?.uiNames?.[uiLang] ?? knownUiLanguages[lang]?.uiNames?.en)\n : undefined;\n\n return altName\n ? `${knownUiLanguages[lang]?.autonym} (${altName})`\n : knownUiLanguages[lang]?.autonym;\n };\n\n return (\n
    \n {/* Language Selector */}\n setIsOpen(open)}\n >\n \n \n \n \n {Object.keys(knownUiLanguages).map((key) => {\n return (\n \n {getLanguageDisplayName(key, primaryLanguage)}\n \n );\n })}\n \n \n\n {/* Fallback Language Button */}\n {primaryLanguage !== 'en' && (\n <>\n \n
    \n {/* Do not localize or \"improve\". This label is temporary. */}\n \n {/* \n Something like this will be added once UX decides exactly what they want.\n */}\n
    \n \n )}\n
    \n );\n}\n","import { PlatformEvent, PlatformEventHandler } from 'platform-bible-utils';\nimport { useEffect } from 'react';\n\n/**\n * Adds an event handler to an event so the event handler runs when the event is emitted. Use\n * `papi.network.getNetworkEvent` to use a networked event with this hook.\n *\n * @param event The event to subscribe to.\n *\n * - If event is a `PlatformEvent`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEvent = (\n event: PlatformEvent | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n useEffect(() => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return () => {};\n\n const unsubscriber = event(eventHandler);\n return () => {\n unsubscriber();\n };\n }, [event, eventHandler]);\n};\nexport default useEvent;\n","import { useCallback, useEffect } from 'react';\nimport { PlatformEvent, PlatformEventAsync, PlatformEventHandler } from 'platform-bible-utils';\nimport usePromise from './use-promise.hook';\n\nconst noopUnsubscriber = () => false;\n\n/**\n * Adds an event handler to an asynchronously subscribing/unsubscribing event so the event handler\n * runs when the event is emitted. Use `papi.network.getNetworkEvent` to use a networked event with\n * this hook.\n *\n * @param event The asynchronously (un)subscribing event to subscribe to.\n *\n * - If event is a `PlatformEvent` or `PlatformEventAsync`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEventAsync = (\n event: PlatformEvent | PlatformEventAsync | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n // Subscribe to the event asynchronously\n const [unsubscribe] = usePromise(\n useCallback(async () => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return noopUnsubscriber;\n\n // Wrap subscribe and unsubscribe in promises to allow normal events to be used as well\n const unsub = await Promise.resolve(event(eventHandler));\n return async () => unsub();\n }, [eventHandler, event]),\n noopUnsubscriber,\n // We want the unsubscriber to return to default value immediately upon changing subscription\n // So the useEffect below will unsubscribe asap\n { preserveValue: false },\n );\n\n // Unsubscribe from the event asynchronously (but we aren't awaiting the unsub)\n useEffect(() => {\n return () => {\n if (unsubscribe !== noopUnsubscriber) {\n unsubscribe();\n }\n };\n }, [unsubscribe]);\n};\n\nexport default useEventAsync;\n"],"names":["twMergeCustom","extendTailwindMerge","cn","inputs","clsx","Input","React","className","type","props","ref","jsx","STORAGE_KEY","readDirection","retrieved","BookChapterInput","forwardRef","handleSearch","handleKeyDown","handleOnClick","handleSubmit","dir","jsxs","event","e","History","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","inset","children","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","P","R","t","s","n","N","B","O","S","K","g","k","x","T","X","V","w","L","G","A","H","C","I","y","q","U","m","l","h","c","E","D","i","a","o","u","v","f","d","b","p","J","BookMenuItem","bookId","handleSelectBook","isSelected","handleHighlightBook","bookType","Canon","ChapterSelect","handleSelectChapter","endChapter","activeChapter","highlightedChapter","handleHighlightedChapter","chapters","_","handleMouse","useCallback","chapterNumber","chapter","GoToMenuItem","handleSort","handleLocationHistory","handleBookmarks","ArrowDownWideNarrow","Clock","Bookmark","ALL_BOOK_IDS","BOOK_TYPE_LABELS","BOOK_TYPE_ARRAY","SCROLL_OFFSET","SEARCH_QUERY_FORMATS","fetchGroupedBooks","fetchEndChapter","getChaptersForBook","getAllEnglishNames","isValidBookEnglishName","bookName","getBookIdFromEnglishName","formattedBookName","BookChapterControl","scrRef","searchQuery","setSearchQuery","useState","selectedBookId","setSelectedBookId","setHighlightedChapter","highlightedBookId","setHighlightedBookId","isContentOpen","setIsContentOpen","isContentOpenDelayed","setIsContentOpenDelayed","inputRef","useRef","contentRef","menuItemRef","fetchFilteredBooks","englishNameLowerCase","normalizedQuery","handleSearchInput","searchString","shouldPreventAutoClosing","controlMenuState","open","updateReference","shouldClose","verse","handleInputSubmit","format","matches","book","englishName","handleKeyDownInput","handleKeyDownContent","key","handleKeyDownMenuItem","upOneChapter","downOneChapter","chapterOffSet","useEffect","useLayoutEffect","scrollTimeout","scrollPosition","bookTypeIndex","element","buttonVariants","cva","Button","variant","size","asChild","Comp","Slot","labelVariants","Label","LabelPrimitive","RadioGroup","RadioGroupPrimitive","RadioGroupItem","Popover","PopoverPrimitive","PopoverTrigger","PopoverContent","align","DialogPortal","DialogPrimitive","DialogOverlay","DialogContent","DialogTitle","DialogDescription","Command","CommandPrimitive","CommandInput","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","getOptionLabelDefault","option","ComboBox","id","options","buttonClassName","popoverContentClassName","value","onChange","getOptionLabel","icon","buttonPlaceholder","textPlaceholder","commandEmptyMessage","buttonVariant","alignDropDown","isDisabled","setOpen","ChevronsUpDown","ChapterRangeSelector","startChapter","handleSelectStartChapter","handleSelectEndChapter","chapterCount","chapterOptions","useMemo","index","onChangeStartChapter","onChangeEndChapter","Fragment","BookSelectionMode","BOOK_SELECTOR_STRING_KEYS","localizeString","strings","BookSelector","handleBookSelectionModeChange","currentBookName","onSelectBooks","selectedBookIds","localizedStrings","currentBookText","chooseText","chooseBooksText","bookSelectionMode","setBookSelectionMode","onSelectionModeChange","newMode","DataTableViewOptions","table","FilterIcon","column","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator","DataTablePagination","pageSize","ArrowLeftIcon","ChevronLeftIcon","ChevronRightIcon","ArrowRightIcon","Table","stickyHeader","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","DataTable","columns","data","enablePagination","showPaginationControls","showColumnVisibilityControls","onRowClickHandler","sorting","setSorting","columnFilters","setColumnFilters","columnVisibility","setColumnVisibility","rowSelection","setRowSelection","useReactTable","getCoreRowModel","getPaginationRowModel","getSortedRowModel","getFilteredRowModel","headerGroup","header","flexRender","_a","row","cell","OccurrencesTable","occurrenceData","setScriptureReference","referenceHeaderText","occurrenceHeaderText","occurrences","uniqueOccurrences","occurrence","uniqueOccurrence","deepEqual","Checkbox","CheckboxPrimitive","getLinesFromUSFM","text","getNumberFromUSFM","regex","match","getBookNumFromId","getStatusForItem","item","approvedItems","unapprovedItems","toggleVariants","Toggle","TogglePrimitive","ToggleGroupContext","ToggleGroup","ToggleGroupPrimitive","ToggleGroupItem","context","getSortingIcon","sortDirection","ArrowUpIcon","ArrowDownIcon","ArrowUpDownIcon","inventoryItemColumn","itemLabel","inventoryAdditionalItemColumn","additionalItemLabel","additionalItemIndex","inventoryCountColumn","countLabel","statusChangeHandler","changedItems","newStatus","onApprovedItemsChange","onUnapprovedItemsChange","newApprovedItems","validItem","newUnapprovedItems","unapprovedItem","inventoryStatusColumn","statusLabel","status","CircleCheckIcon","CircleXIcon","CircleHelpIcon","INVENTORY_STRING_KEYS","filterItemData","itemData","statusFilter","textFilter","filteredItemData","createTableData","scriptureRef","itemRegex","tableData","currentBook","currentChapter","currentVerse","line","items","itemIndex","existingItem","tableEntry","newReference","substring","newItem","Inventory","scriptureReference","extractItems","additionalItemsLabels","scope","onScopeChange","allItemsText","approvedItemsText","unapprovedItemsText","unknownItemsText","scopeBookText","scopeChapterText","scopeVerseText","filterText","showAdditionalItemsText","showAdditionalItems","setShowAdditionalItems","setStatusFilter","setTextFilter","selectedItem","setSelectedItem","reducedTableData","newTableData","firstItem","existingEntry","newTableEntry","filteredTableData","allColumns","numberOfAdditionalItems","additionalColumns","_b","rowClickHandler","newSelection","handleScopeChange","handleStatusFilterChange","MultiSelectComboBox","entries","getEntriesCount","selected","placeholder","customSelectedText","sortSelected","handleSelect","getPlaceholderText","sortedOptions","starredItems","opt","nonStarredItems","aSelected","bSelected","count","Star","SearchBar","onSearch","isFullWidth","handleInputChange","VerticalTabs","TabsPrimitive","VerticalTabsList","VerticalTabsTrigger","VerticalTabsContent","TabNavigationContentSearch","tabList","searchPlaceholder","headerTitle","searchClassName","tab","Separator","orientation","decorative","SeparatorPrimitive","Skeleton","TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","SIDEBAR_WIDTH","SIDEBAR_WIDTH_ICON","SidebarContext","useSidebar","SidebarProvider","defaultOpen","openProp","setOpenProp","style","side","_open","_setOpen","isOpen","openState","toggleSidebar","state","directionAwareSide","contextValue","Sidebar","collapsible","SidebarTrigger","onClick","PanelLeft","PanelRight","SidebarRail","SidebarInset","SidebarInput","SidebarHeader","SidebarFooter","SidebarSeparator","SidebarContent","SidebarGroup","SidebarGroupLabel","SidebarGroupAction","SidebarGroupContent","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","SidebarMenuButton","isActive","tooltip","button","SidebarMenuAction","showOnHover","SidebarMenuBadge","SidebarMenuSkeleton","showIcon","width","SidebarMenuSub","SidebarMenuSubItem","SidebarMenuSubButton","SettingsSidebar","extensionLabels","projectInfo","handleSelectSidebarItem","selectedSidebarItem","extensionsSidebarGroupLabel","projectsSidebarGroupLabel","buttonPlaceholderText","handleSelectItem","projectId","getProjectNameFromProjectId","project","info","getIsActive","label","selectedProjectName","SettingsSidebarContentSearch","scrBookColId","scrRefColId","typeColId","detailsColId","defaultScrRefColumnName","defaultScrBookGroupName","defaultTypeColumnName","defaultDetailsColumnName","getColumns","colInfo","showSourceColumn","showSrcCol","formatScrRef","compareScrRefs","toRefOrRange","scriptureSelection","offsetStart","offsetEnd","scrRefToBBBCCCVVV","getRowKey","ScriptureResultsViewer","sources","showColumnHeaders","scriptureReferenceColumnName","scriptureBookGroupName","typeColumnName","detailsColumnName","onRowSelected","grouping","setGrouping","scriptureResults","source","getExpandedRowModel","getGroupedRowModel","selectedRows","keys","selectedRow","scrBookGroupName","typeGroupName","groupingOptions","handleSelectChange","selectedGrouping","handleRowClick","getEvenOrOddBandingStyle","getIndent","groupingState","rowIndex","ChevronLeft","DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS","getLocalizeKeyForScrollGroupId","ScrollGroupSelector","availableScrollGroupIds","scrollGroupId","onChangeScrollGroupId","localizedStringsDefaulted","localizedStringKey","localizedStringValue","newScrollGroupString","scrollGroupOptionId","SettingsList","SettingsListItem","primary","secondary","isLoading","loadingMessage","SettingsListHeader","includeSeparator","Checklist","listItems","selectedListItems","handleSelectListItem","createLabel","_interopRequireDefault","obj","module","chainPropTypes","propType1","propType2","args","_extends","target","isPlainObject","prototype","deepClone","output","deepmerge","r","z","reactIs_production_min","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","require$$0","require$$1","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","order2","test3","letter","objectAssign","from","to","symbols","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","entry","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","isClassComponent","elementType","acceptingRef","safePropName","warningHint","elementAcceptingRef","PropTypes","elementAcceptingRef$1","specialProperty","exactProp","propTypes","unsupportedProps","prop","formatMuiErrorMessage","code","url","REACT_SERVER_CONTEXT_TYPE","REACT_OFFSCREEN_TYPE","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","SuspenseList","hasWarnedAboutDeprecatedIsConcurrentMode","isSuspenseList","fnNameMatchRegex","getFunctionName","fn","getFunctionComponentName","Component","fallback","getWrappedName","outerType","innerType","wrapperName","functionName","getDisplayName","HTMLElementType","refType","refType$1","capitalize","string","_formatMuiErrorMessage","createChainedFunction","funcs","acc","func","debounce","wait","timeout","debounced","later","deprecatedPropType","validator","reason","componentNameSafe","propFullNameSafe","isMuiElement","muiNames","_muiName","_element$type","ownerDocument","node","ownerWindow","requirePropFactory","componentNameInError","prevPropTypes","requiredProp","defaultTypeChecker","typeCheckerResult","setRef","useEnhancedEffect","useEnhancedEffect$1","globalId","useGlobalId","idOverride","defaultId","setDefaultId","maybeReactUseId","useId","reactId","unsupportedProp","useControlled","controlled","defaultProp","name","isControlled","valueState","setValue","defaultValue","setValueIfUncontrolled","newValue","useEventCallback","useForkRef","refs","instance","UNINITIALIZED","useLazyRef","init","initArg","EMPTY","useOnMount","Timeout","delay","useTimeout","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","focusTriggersKeyboardModality","tagName","handlePointerDown","handleVisibilityChange","prepare","doc","isFocusVisible","useIsFocusVisible","isFocusVisibleRef","handleBlurVisible","handleFocusVisible","resolveProps","defaultProps","defaultSlotProps","slotProps","slotPropName","composeClasses","slots","getUtilityClass","classes","slot","utilityClass","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","ClassNameGenerator$1","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","result","clamp","min","max","_objectWithoutPropertiesLoose","excluded","sourceKeys","_excluded","sortBreakpointsValues","breakpointsAsArray","breakpoint1","breakpoint2","createBreakpoints","breakpoints","unit","other","sortedValues","up","down","between","start","end","endIndex","only","not","keyIndex","shape","shape$1","responsivePropType","responsivePropType$1","merge","defaultBreakpoints","handleBreakpoints","styleFromPropValue","theme","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","getStyleValue","themeMapping","transform","propValueFinal","userValue","cssProperty","themeKey","memoize","cache","arg","properties","directions","aliases","getCssProperties","property","direction","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","_getPath","themeSpacing","abs","createUnarySpacing","getValue","transformer","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","padding","createSpacing","spacingInput","spacing","argsInput","argument","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","maxWidth","_props$theme","_props$theme2","breakpointsValues","minWidth","height","maxHeight","minHeight","boxSizing","defaultSxConfig","defaultSxConfig$1","objectsHaveSameKeys","objects","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","sx","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","css","styleKey","styleFunctionSx$1","applyStyles","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","defaultTheme","contextTheme","ThemeContext","systemDefaultTheme","useThemeWithoutDefault","_excluded2","_excluded3","isEmpty","isStringTag","tag","shouldForwardProp","lowercaseFirstLetter","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","_ref","ownerState","resolvedStylesArg","resolvedStyle","variants","isMatch","createStyled","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","inputOptions","processStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","skipVariantsResolver","skipSx","shouldForwardPropOption","defaultStyledResolver","styledEngineStyled","transformStyleArg","stylesArg","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","displayName","getThemeProps","params","useThemeProps","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","recomposeColor","hslToRgb","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","mixins","common","common$1","grey","grey$1","purple","purple$1","red","red$1","orange","orange$1","blue","blue$1","lightBlue","lightBlue$1","green","green$1","light","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","getDefaultPrimary","mode","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","palette","contrastThreshold","success","warning","getContrastText","contrastText","contrast","augmentColor","mainShade","lightShade","darkShade","modes","round","caseAllCaps","defaultFontFamily","createTypography","typography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","shadows$1","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","isString","isNumber","animatedProp","zIndex","zIndex$1","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","stateClasses","component","child","stateClass","defaultTheme$1","THEME_ID","systemUseThemeProps","styled","styled$1","getSvgIconUtilityClass","useUtilityClasses","SvgIconRoot","_theme$transitions","_theme$transitions$cr","_theme$transitions2","_theme$typography","_theme$typography$pxT","_theme$typography2","_theme$typography2$px","_theme$typography3","_theme$typography3$px","_palette$ownerState$c","_palette","_palette2","_palette3","SvgIcon","inProps","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","_jsxs","_jsx","SvgIcon$1","createSvgIcon","unstable_ClassNameGenerator","exports","_utils","ArrowRight","default_1","_createSvgIcon","_jsxRuntime","isHostComponent","appendOwnerState","otherProps","defaultContextValue","ClassNameConfiguratorContext","useClassNamesOverride","disableDefaultClasses","extractEventHandlers","excludeKeys","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","mergedProps","internalRef","GLOBAL_CLASS_PREFIX","buildStateClass","buildSlotClass","getContainer","container","forwardedRef","disablePortal","mountNode","setMountNode","handleRef","newProps","ReactDOM","top","bottom","right","left","auto","basePlacements","clippingParents","viewport","popper","reference","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","getWindow","OwnElement","isHTMLElement","isShadowRoot","attributes","effect","_ref2","initialStyles","styleProperties","attribute","applyStyles$1","getBasePlacement","getUAString","uaData","isLayoutViewport","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","visualViewport","addVisualOffsets","getLayoutRect","contains","parent","rootNode","next","getComputedStyle","isTableElement","getDocumentElement","getParentNode","getTrueOffsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","getOffsetParent","window","offsetParent","getMainAxisFromPlacement","within","mathMax","mathMin","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","hashMap","toPaddingObject","arrow","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","axis","isVertical","len","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","center","offset","axisProp","_options$element","arrow$1","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles$1","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","eventListeners","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","getViewportRect","strategy","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","rect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","_i","fittingPlacement","_ret","flip$1","getSideOffsets","preventedOffsets","isAnySideFullyClipped","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide$1","distanceAndSkiddingToXY","rects","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset$1","popperOffsets$1","getAltAxis","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","altAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow$1","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","documentElement","order","modifiers","map","visited","modifier","sort","requires","dep","depModifier","orderModifiers","orderedModifiers","phase","pending","resolve","mergeByName","merged","current","existing","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptionsAction","cleanupModifierEffects","runModifierEffects","_state$elements","_state$orderedModifie","_state$orderedModifie2","_ref$options","cleanupFn","noopFn","createPopper","COMPONENT_NAME","getPopperUtilityClass","flipPlacement","resolveAnchorEl","anchorEl","isVirtualElement","defaultPopperOptions","PopperTooltip","_slots$root","initialPlacement","popperOptions","popperRefProp","TransitionProps","tooltipRef","ownRef","popperRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","box","popperModifiers","childProps","Root","rootProps","Popper","containerProp","keepMounted","transition","exited","setExited","handleEnter","handleExited","resolvedAnchorEl","display","transitionProps","useThemeSystem","_setPrototypeOf","_inheritsLoose","subClass","superClass","setPrototypeOf","timeoutsShape","TransitionGroupContext","forceReflow","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","_this","parentGroup","appear","initialStatus","prevState","nextIn","_proto","prevProps","nextStatus","exit","enter","mounting","_this2","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","_this3","nextState","callback","_this4","active","handler","doesNotHaveTimeoutOrListener","maybeNextCallback","_this$props","pt","noop","Transition$1","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","getScale","isWebKit154","Grow","addEndListener","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","TransitionComponent","timer","autoTimeout","nodeRef","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","transitionDuration","transitionTimingFunction","handleEntered","handleExiting","handleExit","handleAddEndListener","Grow$1","PopperRoot","BasePopper","components","componentsProps","RootComponent","Popper$1","getTooltipUtilityClass","tooltipClasses","tooltipClasses$1","disableInteractive","touch","TooltipPopper","TooltipTooltip","TooltipArrow","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onClose","onOpen","PopperComponentProp","PopperProps","title","TransitionComponentProp","isRtl","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","setOpenState","prevUserSelect","stopTouchInteraction","handleOpen","handleClose","handleLeave","focusVisibleRef","setChildIsFocusVisible","handleBlur","handleFocus","detectTouchStart","childrenProps","handleMouseOver","handleMouseLeave","handleTouchStart","handleTouchEnd","nativeEvent","handleMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","_PopperProps$popperOp","tooltipModifiers","PopperComponent","TooltipComponent","ArrowComponent","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip$1","getIcon","menuLabel","leading","MuiListItemIcon","MenuItem","allowForLeadingIcons","iconPathBefore","iconPathAfter","hasAutoFocus","isDense","isSubMenuParent","hasDisabledGutters","hasDivider","focusVisibleClassName","menuItem","MuiMenuItem","MuiListItemText","getAllGroups","menuDefinition","SubMenu","setAnchorEl","parentMenuItem","parentItemProps","handleParentMenuItemClick","renderSubMenuItems","includedGroups","group","GroupedMenuItemList","Menu","getOrderedGroupItems","groupId","allItems","menuProps","commandHandler","groupsToInclude","sortedGroups","itemArray","allowSpaceForLeadingIcons","createMenuItemProps","isLastItemInGroup","divKey","itemInfo","menuItemProps","TopLevelMenu","columnId","MenuColumn","metadata","Grid","List","GridMenu","multiColumnMenu","sortedColumns","columnNumbers","columnName","col","getUsePromiseOptionsDefaults","usePromise","promiseFactoryCallback","defaultValueRef","optionsDefaultedRef","setIsLoading","promiseIsCurrent","MenuIcon","HamburgerMenuButton","menuProvider","normalMenu","fullMenu","containerRef","ariaLabelPrefix","isMenuOpen","setMenuOpen","showFullMenu","setShowFullMenu","handleMenuItemClick","handleMenuButtonClick","prevIsOpen","isOpening","menuCommandHandler","command","setOffset","normalMenuData","fullMenuData","menu","IconButton","Drawer","isTooltipSuppressed","adjustMarginToAlignToEdge","MuiIconButton","Spinner","LoaderCircle","TextField","hasError","helperText","onFocus","onBlur","ShadLabel","ShadInput","Toolbar","AppBar","MuiToolbar","alertVariants","Alert","AlertTitle","AlertDescription","badgeVariants","Badge","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","Sonner","Toaster","Slider","SliderPrimitive","Switch","SwitchPrimitives","Tabs","TabsList","TabsTrigger","TabsContent","InstallButton","isInstalling","handleClick","buttonText","Download","EnableButton","isEnabling","DisableButton","isDisabling","UpdateButton","isUpdating","MarkdownRenderer","markdown","anchorTarget","Markdown","FilterButton","Filter","DropdownMenuItemType","DropdownMenuItemType2","FilterDropdown","groups","NoExtensionsFound","MoreInfo","category","downloads","languages","moreInfoUrl","numberFormatted","NumberFormat","handleScrollToBottom","User","locale","LucideLink","CircleHelp","VersionHistory","versionHistory","showAllVersions","setShowAllVersions","currentDate","formatTimeString","dateString","date","dateDiff","yearDiff","monthDiff","dayDiff","timeString","sortedEntries","Footer","publisherDisplayName","fileSize","locales","formattedFileSize","formatBytes","languageNames","codes","displayNames","FILTERABLE_RESOURCE_LIST_STRING_KEYS","getLanguageOptions","dblResources","languageFilter","sortedLanguages","resource","prioritizedLanguages","aIsPrioritized","bIsPrioritized","getActionButtonContent","installResource","getActionContent","idsBeingHandled","getText","updateText","installedText","FilterableResourceList","isLoadingDblResources","typeFilter","setTypeFilter","setLanguageFilter","openResource","uninstallResource","actionText","dialogSubtitleText","dialogTitleText","filterInputText","fullNameText","languageText","languageFilterText","loadingResourcesText","noResultsText","openText","removeText","sizeText","typeText","typeDblText","typeErText","typeSlrText","typeXrText","typeUnknownText","installInfo","setInstallInfo","installOrRemoveResource","dblEntryUid","action","newInstallInfo","prevInfo","getErrorMessage","currentInstallInfo","res","textFilteredResources","filter","typeOptions","typeFilterChangeHandler","newType","prevTypeFilter","newTypeFilter","textAndTypeFilteredResources","languageFilterChangeHandler","newLanguage","prevLanguageFilter","newLanguageFilter","textAndTypeAndLanguageFilteredResources","sortConfig","setSortConfig","sortedResources","aValue","bValue","newSortConfig","BookOpen","Loader","Ellipsis","UiLanguageSelector","knownUiLanguages","primaryLanguage","fallbackLanguages","onLanguagesChange","onPrimaryLanguageChange","onFallbackLanguagesChange","selectFallbackLanguagesText","setIsOpen","handleLanguageChange","lang","getLanguageDisplayName","uiLang","altName","_d","_c","_e","_f","useEvent","unsubscriber","noopUnsubscriber","useEventAsync","unsubscribe","unsub"],"mappings":"48CAGA,MAAMA,GAAgBC,GAAAA,oBAAoB,CAAE,OAAQ,KAAO,CAAA,EAyDpD,SAASC,KAAMC,EAAsB,CACnC,OAAAH,GAAcI,GAAAA,KAAKD,CAAM,CAAC,CACnC,CCzDO,MAAME,GAAQC,EAAM,WACzB,CAAC,CAAE,UAAAC,EAAW,KAAAC,EAAM,GAAGC,CAAA,EAASC,IAE5BC,EAAA,IAAC,QAAA,CACC,KAAAH,EACA,UAAWN,EACT,sbACAK,CACF,EACA,IAAAG,EAEC,GAAGD,CAAA,CAAA,CAIZ,EACAJ,GAAM,YAAc,QClBpB,MAAMO,GAAsB,kBAGrB,SAASC,IAA2B,CACnC,MAAAC,EAAY,aAAa,QAAQF,EAAW,EAClD,OAAIE,IAAc,MACTA,EAEF,KACT,CCKA,MAAMC,GAAmBC,EAAA,WACvB,CACE,CAAE,aAAAC,EAAc,cAAAC,EAAe,cAAAC,EAAe,a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AID,EAAE3B,CAAC,EAAI4B,EACzGC,GAAI,CAACF,EAAG3B,EAAG4B,IAAMF,GAAEC,EAAG,OAAO3B,GAAK,SAAWA,EAAI,GAAKA,EAAG4B,CAAC,EAW9D,MAAME,GAAI,CACR,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MAEA,MAEA,MAEA,MAEA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MAEA,MAEA,MAEA,MAEA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,KACF,EAAGC,GAAI,CACL,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,KACF,EAAGC,GAAI,CACL,UACA,SACA,YACA,UACA,cACA,SACA,SACA,OACA,WACA,WACA,UACA,UACA,eACA,eACA,OACA,WACA,kBACA,MACA,SACA,WACA,eACA,gBACA,SACA,WACA,eACA,UACA,kBACA,QACA,OACA,OACA,UACA,QACA,QACA,QACA,WACA,YACA,SACA,YACA,UACA,UACA,OACA,OACA,OACA,OACA,SACA,gBACA,gBACA,YACA,YACA,cACA,aACA,kBACA,kBACA,YACA,YACA,QACA,WACA,UACA,QACA,UACA,UACA,SACA,SACA,SACA,OACA,aACA,QACA,SACA,eACA,oBACA,0BAC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Ae,CACb,MAAOA,EACR,EACD,YAAa,CACX,MAAOA,EACR,EACD,SAAU,CACR,MAAOA,EACR,EACD,SAAU,CACR,MAAOA,EACR,EACD,cAAe,CACb,MAAOA,EACR,EACD,mBAAoB,CAClB,MAAOA,EACR,EACD,iBAAkB,CAChB,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,kBAAmB,CACjB,MAAOA,EACR,EACD,gBAAiB,CACf,MAAOA,EACR,EACD,EAAG,CACD,MAAOD,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,OAAQ,CACN,MAAOA,EACR,EACD,UAAW,CACT,MAAOA,EACR,EACD,YAAa,CACX,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,WAAY,CACV,MAAOA,EACR,EACD,QAAS,CACP,MAAOA,EACR,EACD,QAAS,CACP,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,kBAAmB,CACjB,MAAOA,EACR,EACD,gBAAiB,CACf,MAAOA,EACR,EACD,YAAa,CACX,MAAOA,EACR,EACD,iBAAkB,CAChB,MAAOA,EACR,EACD,eAAgB,CACd,MAAOA,EACR,EAED,aAAc,CACZ,YAAa,GACb,UAAW3xB,IAAU,CACnB,eAAgB,CACd,QAASA,CACV,CACP,EACG,EACD,QAAS,CAAE,EACX,SAAU,CAAE,EACZ,aAAc,CAAE,EAChB,WAAY,CAAE,EACd,WAAY,CAAE,EAEd,UAAW,CAAE,EACb,cAAe,CAAE,EACjB,SAAU,CAAE,EACZ,eAAgB,CAAE,EAClB,WAAY,CAAE,EACd,aAAc,CAAE,EAChB,MAAO,CAAE,EACT,KAAM,CAAE,EACR,SAAU,CAAE,EACZ,WAAY,CAAE,EACd,UAAW,CAAE,EACb,aAAc,CAAE,E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116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,228]} \ No newline at end of file +{"version":3,"file":"index.cjs","sources":["../src/utils/shadcn-ui.util.ts","../src/components/shadcn-ui/input.tsx","../src/utils/dir-helper.util.ts","../src/components/advanced/book-chapter-control/book-chapter-input.component.tsx","../src/components/shadcn-ui/dropdown-menu.tsx","../../../node_modules/@sillsdev/scripture/dist/index.es.js","../src/components/advanced/book-chapter-control/book-menu-item.component.tsx","../src/components/advanced/book-chapter-control/chapter-select.component.tsx","../src/components/advanced/book-chapter-control/go-to-menu-item.component.tsx","../src/components/advanced/book-chapter-control/book-chapter-control.component.tsx","../src/components/shadcn-ui/button.tsx","../src/components/shadcn-ui/label.tsx","../src/components/shadcn-ui/radio-group.tsx","../src/components/shadcn-ui/popover.tsx","../src/components/shadcn-ui/dialog.tsx","../src/components/shadcn-ui/command.tsx","../src/components/basics/combo-box.component.tsx","../src/components/basics/chapter-range-selector.component.tsx","../src/components/advanced/book-selector.component.tsx","../src/components/advanced/data-table/data-table-column-toggle.component.tsx","../src/components/shadcn-ui/select.tsx","../src/components/advanced/data-table/data-table-pagination.component.tsx","../src/components/shadcn-ui/table.tsx","../src/components/advanced/data-table/data-table.component.tsx","../src/components/advanced/inventory/occurrences-table.component.tsx","../src/components/shadcn-ui/checkbox.tsx","../src/components/advanced/inventory/inventory-utils.ts","../src/components/shadcn-ui/toggle.tsx","../src/components/shadcn-ui/toggle-group.tsx","../src/components/advanced/inventory/inventory-columns.tsx","../src/components/advanced/inventory/inventory.component.tsx","../src/components/advanced/multi-select-combo-box.component.tsx","../src/components/basics/search-bar.component.tsx","../src/components/basics/tabs-vertical.tsx","../src/components/advanced/tab-navigation-content-search.component.tsx","../src/components/shadcn-ui/separator.tsx","../src/components/shadcn-ui/skeleton.tsx","../src/components/shadcn-ui/tooltip.tsx","../src/components/shadcn-ui/sidebar.tsx","../src/components/advanced/settings-components/settings-sidebar.component.tsx","../src/components/advanced/settings-components/settings-sidebar-content-search.component.tsx","../src/components/advanced/scripture-results-viewer/scripture-results-viewer.component.tsx","../src/components/advanced/scroll-group-selector.component.tsx","../src/components/advanced/settings-components/settings-list.component.tsx","../src/components/basics/checklist.component.tsx","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/index.js","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/esm/createTheme/shape.js","../../../node_modules/@mui/system/esm/responsivePropType.js","../../../node_modules/@mui/system/esm/merge.js","../../../node_modules/@mui/system/esm/breakpoints.js","../../../node_modules/@mui/system/esm/style.js","../../../node_modules/@mui/system/esm/memoize.js","../../../node_modules/@mui/system/esm/spacing.js","../../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../../node_modules/@mui/system/esm/compose.js","../../../node_modules/@mui/system/esm/borders.js","../../../node_modules/@mui/system/esm/cssGrid.js","../../../node_modules/@mui/system/esm/palette.js","../../../node_modules/@mui/system/esm/sizing.js","../../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../../node_modules/@mui/system/esm/useTheme.js","../../../node_modules/@mui/system/esm/createStyled.js","../../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/esm/colorManipulator.js","../../../node_modules/@mui/material/styles/createMixins.js","../../../node_modules/@mui/material/colors/common.js","../../../node_modules/@mui/material/colors/grey.js","../../../node_modules/@mui/material/colors/purple.js","../../../node_modules/@mui/material/colors/red.js","../../../node_modules/@mui/material/colors/orange.js","../../../node_modules/@mui/material/colors/blue.js","../../../node_modules/@mui/material/colors/lightBlue.js","../../../node_modules/@mui/material/colors/green.js","../../../node_modules/@mui/material/styles/createPalette.js","../../../node_modules/@mui/material/styles/createTypography.js","../../../node_modules/@mui/material/styles/shadows.js","../../../node_modules/@mui/material/styles/createTransitions.js","../../../node_modules/@mui/material/styles/zIndex.js","../../../node_modules/@mui/material/styles/createTheme.js","../../../node_modules/@mui/material/styles/defaultTheme.js","../../../node_modules/@mui/material/styles/identifier.js","../../../node_modules/@mui/material/styles/useThemeProps.js","../../../node_modules/@mui/material/styles/styled.js","../../../node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/utils/createSvgIcon.js","../../../node_modules/@mui/material/utils/index.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/@mui/icons-material/ArrowRight.js","../../../node_modules/@mui/base/utils/isHostComponent.js","../../../node_modules/@mui/base/utils/appendOwnerState.js","../../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/utils/extractEventHandlers.js","../../../node_modules/@mui/base/utils/resolveComponentProps.js","../../../node_modules/@mui/base/utils/omitEventHandlers.js","../../../node_modules/@mui/base/utils/mergeSlotProps.js","../../../node_modules/@mui/base/utils/useSlotProps.js","../../../node_modules/@mui/base/generateUtilityClass/index.js","../../../node_modules/@mui/base/generateUtilityClasses/index.js","../../../node_modules/@mui/base/Portal/Portal.js","../../../node_modules/@popperjs/core/lib/enums.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../node_modules/@popperjs/core/lib/utils/math.js","../../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../node_modules/@popperjs/core/lib/utils/within.js","../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../node_modules/@popperjs/core/lib/utils/debounce.js","../../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../node_modules/@popperjs/core/lib/createPopper.js","../../../node_modules/@popperjs/core/lib/popper.js","../../../node_modules/@mui/base/Popper/popperClasses.js","../../../node_modules/@mui/base/Popper/Popper.js","../../../node_modules/@mui/material/styles/useTheme.js","../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../node_modules/react-transition-group/esm/config.js","../../../node_modules/react-transition-group/esm/utils/PropTypes.js","../../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../node_modules/react-transition-group/esm/utils/reflow.js","../../../node_modules/react-transition-group/esm/Transition.js","../../../node_modules/@mui/material/transitions/utils.js","../../../node_modules/@mui/material/Grow/Grow.js","../../../node_modules/@mui/material/Popper/Popper.js","../../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../node_modules/@mui/material/Tooltip/Tooltip.js","../src/components/mui/menu-item.component.tsx","../src/components/mui/grouped-menu-item-list.component.tsx","../src/components/mui/top-level-menu.component.tsx","../src/components/mui/grid-menu.component.tsx","../src/hooks/use-promise.hook.ts","../../../node_modules/@mui/icons-material/esm/Menu.js","../src/components/mui/hamburger-menu-button.component.tsx","../src/components/mui/icon-button.component.tsx","../src/components/basics/spinner.component.tsx","../src/components/basics/text-field.component.tsx","../src/components/mui/toolbar.component.tsx","../src/components/shadcn-ui/alert.tsx","../src/components/shadcn-ui/badge.tsx","../src/components/shadcn-ui/card.tsx","../src/components/shadcn-ui/sonner.tsx","../src/components/shadcn-ui/slider.tsx","../src/components/shadcn-ui/switch.tsx","../src/components/shadcn-ui/tabs.tsx","../src/components/advanced/extension-marketplace/buttons/install-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/enable-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/disable-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/update-button.component.tsx","../src/components/advanced/extension-marketplace/markdown-renderer.component.tsx","../src/components/advanced/extension-marketplace/buttons/filter-button.component.tsx","../src/components/advanced/extension-marketplace/filter-dropdown.component.tsx","../src/components/advanced/extension-marketplace/no-extensions-found.component.tsx","../src/components/advanced/extension-marketplace/more-info.component.tsx","../src/components/advanced/extension-marketplace/version-history.component.tsx","../src/components/advanced/extension-marketplace/footer.component.tsx","../src/components/advanced/filterable-resource-list/filter.component.tsx","../src/components/advanced/filterable-resource-list/filterable-resource-list.component.tsx","../src/components/advanced/ui-language-selector.component.tsx","../src/hooks/use-event.hook.ts","../src/hooks/use-event-async.hook.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\nconst twMergeCustom = extendTailwindMerge({ prefix: 'tw-' });\n\n/**\n * Tailwind and CSS class application helper function. Uses\n * [`clsx`](https://www.npmjs.com/package/clsx) to make it easy to apply classes conditionally using\n * object syntax, and uses [`tailwind-merge`](https://www.npmjs.com/package/tailwind-merge) to make\n * it easy to merge/overwrite Tailwind classes in a programmer-logic-friendly way.\n *\n * Note: `tailwind-merge` is configured to use the prefix `tw-`, so you must use the same prefix\n * with any Tailwind classes you use with this function to successfully overwrite other Tailwind\n * classes. `platform-bible-react` is configured to use `tw-` as its Tailwind prefix, so any\n * Tailwind classes you pass into `platform-bible-react` components will be compared using the `tw-`\n * prefix.\n *\n * This function was popularized by\n * [shadcn/ui](https://ui.shadcn.com/docs/installation/manual#add-a-cn-helper). See [ByteGrad's\n * explanation video](https://www.youtube.com/watch?v=re2JFITR7TI) for more information.\n *\n * @example\n *\n * ```typescript\n * const borderShouldBeBlue = true;\n * const textShouldBeRed = true;\n * const heightShouldBe20 = false;\n * const classString = cn(\n * 'tw-bg-primary tw-h-10 tw-text-primary-foreground',\n * 'tw-bg-secondary',\n * {\n * 'tw-border-blue-500': borderShouldBeBlue,\n * 'tw-text-red-500': textShouldBeRed,\n * 'tw-h-20': heightShouldBe20,\n * },\n * 'some-class',\n * );\n * ```\n *\n * The resulting `classString` is `'tw-h-10 tw-bg-secondary tw-border-blue-500 tw-text-red-500\n * some-class'`\n *\n * - Notice that `'tw-bg-secondary'`, specified later, overwrote `'tw-bg-primary'`, specified earlier,\n * because they are Tailwind classes that affect the same css property\n * - Notice that `'tw-text-red-500'`, specified later, overwrote `'tw-text-primary-foreground'`,\n * specified earlier, because they are Tailwind classes that affect the same css property\n * - Notice that `'tw-h-20'`, specified later, did not overwrite `'tw-h-10'`, specified earlier,\n * because `'tw-h-20'` is part of a conditional class object and its value evaluated to `false`;\n * therefore it was not applied\n * - Notice that `'some-class'` was applied. This function is not limited only to Tailwind classes.\n *\n *\n * @param inputs Class strings or `clsx` conditional class objects to merge. Tailwind classes\n * specified later in the arguments overwrite similar Tailwind classes specified earlier in the\n * arguments\n * @returns Class string containing all applicable classes from the arguments based on the rules\n * described above\n */\n// shadcn/ui uses this export in its boilerplate code\n// eslint-disable-next-line import/prefer-default-export\nexport function cn(...inputs: ClassValue[]) {\n return twMergeCustom(clsx(inputs));\n}\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport interface InputProps extends React.InputHTMLAttributes {}\n\nexport const Input = React.forwardRef(\n ({ className, type, ...props }, ref) => {\n return (\n \n );\n },\n);\nInput.displayName = 'Input';\n","/** Text and layout direction */\nexport type Direction = 'rtl' | 'ltr';\n\nconst STORAGE_KEY: string = 'layoutDirection';\n\n/** Read layout direction from localStorage or return 'ltr' */\nexport function readDirection(): Direction {\n const retrieved = localStorage.getItem(STORAGE_KEY);\n if (retrieved === 'rtl') {\n return retrieved;\n }\n return 'ltr';\n}\n\n/** Write layout direction to localStorage */\nexport function persistDirection(dir: Direction): void {\n localStorage.setItem(STORAGE_KEY, dir);\n}\n","import { FocusEventHandler, forwardRef, KeyboardEvent, MouseEventHandler } from 'react';\nimport { History } from 'lucide-react';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport type BookChapterInputProps = {\n handleSearch: (searchString: string) => void;\n handleKeyDown: (event: KeyboardEvent) => void;\n handleOnClick: MouseEventHandler;\n handleSubmit: () => void;\n onFocus?: FocusEventHandler;\n value: string;\n placeholder: string;\n};\n\n// Shadcn Input sets type to \"button\"- HAVE to prop spread before setting type\nconst BookChapterInput = forwardRef(\n (\n { handleSearch, handleKeyDown, handleOnClick, handleSubmit, ...props }: BookChapterInputProps,\n ref,\n ) => {\n const dir: Direction = readDirection();\n return (\n
    \n handleSearch(event.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n handleSubmit();\n }\n handleKeyDown(e);\n }}\n onClick={handleOnClick}\n ref={ref}\n />\n {\n // eslint-disable-next-line no-console\n console.log('back in history');\n }}\n />\n
    \n );\n },\n);\n\nexport default BookChapterInput;\n","import React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nexport const DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nexport type DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n className?: string;\n};\n\nexport type DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n className?: string;\n sideOffset?: number;\n};\n\nexport type DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n className?: string;\n checked?: boolean;\n};\n\nexport type DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.RadioItem\n> & {\n className?: string;\n};\n\nexport type DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n className?: string;\n};\n\nexport type DropdownMenuShortcutProps = React.HTMLAttributes & {\n className?: string;\n};\n\nexport const DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubTriggerProps\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nexport const DropdownMenuSubContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubContentProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* TODO: bug in shadcn component: DropdownMenuContent does not support a dir prop.\nFor the content we can work around this by adding a div with dir, but that would not cause\nthe scrollbar to appear left in an rtl layout (e.g. see book-chapter-control.component) */\nexport const DropdownMenuContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuContentProps\n>(({ className, sideOffset = 4, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n
    {children}
    \n \n
    \n );\n});\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport const DropdownMenuItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuItemProps\n>(({ className, inset, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nexport const DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuCheckboxItemProps\n>(({ className, children, checked, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nexport const DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuRadioItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nexport const DropdownMenuLabel = React.forwardRef<\n React.ElementRef,\n DropdownMenuLabelProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nexport const DropdownMenuSeparator = React.forwardRef<\n React.ElementRef,\n DropdownMenuSeparatorProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nexport function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps) {\n return (\n \n );\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n","var P = Object.defineProperty;\nvar R = (t, e, s) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;\nvar n = (t, e, s) => R(t, typeof e != \"symbol\" ? e + \"\" : e, s);\nclass _ {\n constructor() {\n n(this, \"books\");\n n(this, \"firstSelectedBookNum\");\n n(this, \"lastSelectedBookNum\");\n n(this, \"count\");\n n(this, \"selectedBookNumbers\");\n n(this, \"selectedBookIds\");\n }\n}\nconst N = [\n \"GEN\",\n \"EXO\",\n \"LEV\",\n \"NUM\",\n \"DEU\",\n \"JOS\",\n \"JDG\",\n \"RUT\",\n \"1SA\",\n \"2SA\",\n // 10\n \"1KI\",\n \"2KI\",\n \"1CH\",\n \"2CH\",\n \"EZR\",\n \"NEH\",\n \"EST\",\n \"JOB\",\n \"PSA\",\n \"PRO\",\n // 20\n \"ECC\",\n \"SNG\",\n \"ISA\",\n \"JER\",\n \"LAM\",\n \"EZK\",\n \"DAN\",\n \"HOS\",\n \"JOL\",\n \"AMO\",\n // 30\n \"OBA\",\n \"JON\",\n \"MIC\",\n \"NAM\",\n \"HAB\",\n \"ZEP\",\n \"HAG\",\n \"ZEC\",\n \"MAL\",\n \"MAT\",\n // 40\n \"MRK\",\n \"LUK\",\n \"JHN\",\n \"ACT\",\n \"ROM\",\n \"1CO\",\n \"2CO\",\n \"GAL\",\n \"EPH\",\n \"PHP\",\n // 50\n \"COL\",\n \"1TH\",\n \"2TH\",\n \"1TI\",\n \"2TI\",\n \"TIT\",\n \"PHM\",\n \"HEB\",\n \"JAS\",\n \"1PE\",\n // 60\n \"2PE\",\n \"1JN\",\n \"2JN\",\n \"3JN\",\n \"JUD\",\n \"REV\",\n \"TOB\",\n \"JDT\",\n \"ESG\",\n \"WIS\",\n // 70\n \"SIR\",\n \"BAR\",\n \"LJE\",\n \"S3Y\",\n \"SUS\",\n \"BEL\",\n \"1MA\",\n \"2MA\",\n \"3MA\",\n \"4MA\",\n // 80\n \"1ES\",\n \"2ES\",\n \"MAN\",\n \"PS2\",\n \"ODA\",\n \"PSS\",\n \"JSA\",\n // actual variant text for JOS, now in LXA text\n \"JDB\",\n // actual variant text for JDG, now in LXA text\n \"TBS\",\n // actual variant text for TOB, now in LXA text\n \"SST\",\n // actual variant text for SUS, now in LXA text // 90\n \"DNT\",\n // actual variant text for DAN, now in LXA text\n \"BLT\",\n // actual variant text for BEL, now in LXA text\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n // 100\n \"BAK\",\n \"OTH\",\n \"3ES\",\n // Used previously but really should be 2ES\n \"EZA\",\n // Used to be called 4ES, but not actually in any known project\n \"5EZ\",\n // Used to be called 5ES, but not actually in any known project\n \"6EZ\",\n // Used to be called 6ES, but not actually in any known project\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n // 110\n \"NDX\",\n \"DAG\",\n \"PS3\",\n \"2BA\",\n \"LBA\",\n \"JUB\",\n \"ENO\",\n \"1MQ\",\n \"2MQ\",\n \"3MQ\",\n // 120\n \"REP\",\n \"4BA\",\n \"LAO\"\n], B = [\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n \"BAK\",\n \"OTH\",\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n \"NDX\"\n], O = [\n \"Genesis\",\n \"Exodus\",\n \"Leviticus\",\n \"Numbers\",\n \"Deuteronomy\",\n \"Joshua\",\n \"Judges\",\n \"Ruth\",\n \"1 Samuel\",\n \"2 Samuel\",\n \"1 Kings\",\n \"2 Kings\",\n \"1 Chronicles\",\n \"2 Chronicles\",\n \"Ezra\",\n \"Nehemiah\",\n \"Esther (Hebrew)\",\n \"Job\",\n \"Psalms\",\n \"Proverbs\",\n \"Ecclesiastes\",\n \"Song of Songs\",\n \"Isaiah\",\n \"Jeremiah\",\n \"Lamentations\",\n \"Ezekiel\",\n \"Daniel (Hebrew)\",\n \"Hosea\",\n \"Joel\",\n \"Amos\",\n \"Obadiah\",\n \"Jonah\",\n \"Micah\",\n \"Nahum\",\n \"Habakkuk\",\n \"Zephaniah\",\n \"Haggai\",\n \"Zechariah\",\n \"Malachi\",\n \"Matthew\",\n \"Mark\",\n \"Luke\",\n \"John\",\n \"Acts\",\n \"Romans\",\n \"1 Corinthians\",\n \"2 Corinthians\",\n \"Galatians\",\n \"Ephesians\",\n \"Philippians\",\n \"Colossians\",\n \"1 Thessalonians\",\n \"2 Thessalonians\",\n \"1 Timothy\",\n \"2 Timothy\",\n \"Titus\",\n \"Philemon\",\n \"Hebrews\",\n \"James\",\n \"1 Peter\",\n \"2 Peter\",\n \"1 John\",\n \"2 John\",\n \"3 John\",\n \"Jude\",\n \"Revelation\",\n \"Tobit\",\n \"Judith\",\n \"Esther Greek\",\n \"Wisdom of Solomon\",\n \"Sirach (Ecclesiasticus)\",\n \"Baruch\",\n \"Letter of Jeremiah\",\n \"Song of 3 Young Men\",\n \"Susanna\",\n \"Bel and the Dragon\",\n \"1 Maccabees\",\n \"2 Maccabees\",\n \"3 Maccabees\",\n \"4 Maccabees\",\n \"1 Esdras (Greek)\",\n \"2 Esdras (Latin)\",\n \"Prayer of Manasseh\",\n \"Psalm 151\",\n \"Odes\",\n \"Psalms of Solomon\",\n // WARNING, if you change the spelling of the *obsolete* tag be sure to update\n // IsObsolete routine\n \"Joshua A. *obsolete*\",\n \"Judges B. *obsolete*\",\n \"Tobit S. *obsolete*\",\n \"Susanna Th. *obsolete*\",\n \"Daniel Th. *obsolete*\",\n \"Bel Th. *obsolete*\",\n \"Extra A\",\n \"Extra B\",\n \"Extra C\",\n \"Extra D\",\n \"Extra E\",\n \"Extra F\",\n \"Extra G\",\n \"Front Matter\",\n \"Back Matter\",\n \"Other Matter\",\n \"3 Ezra *obsolete*\",\n \"Apocalypse of Ezra\",\n \"5 Ezra (Latin Prologue)\",\n \"6 Ezra (Latin Epilogue)\",\n \"Introduction\",\n \"Concordance \",\n \"Glossary \",\n \"Topical Index\",\n \"Names Index\",\n \"Daniel Greek\",\n \"Psalms 152-155\",\n \"2 Baruch (Apocalypse)\",\n \"Letter of Baruch\",\n \"Jubilees\",\n \"Enoch\",\n \"1 Meqabyan\",\n \"2 Meqabyan\",\n \"3 Meqabyan\",\n \"Reproof (Proverbs 25-31)\",\n \"4 Baruch (Rest of Baruch)\",\n \"Laodiceans\"\n], S = K();\nfunction g(t, e = !0) {\n return e && (t = t.toUpperCase()), t in S ? S[t] : 0;\n}\nfunction k(t) {\n return g(t) > 0;\n}\nfunction x(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return e >= 40 && e <= 66;\n}\nfunction T(t) {\n return (typeof t == \"string\" ? g(t) : t) <= 39;\n}\nfunction X(t) {\n return t <= 66;\n}\nfunction V(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return w(e) && !X(e);\n}\nfunction* L() {\n for (let t = 1; t <= N.length; t++) yield t;\n}\nconst G = 1, A = N.length;\nfunction H() {\n return [\"XXA\", \"XXB\", \"XXC\", \"XXD\", \"XXE\", \"XXF\", \"XXG\"];\n}\nfunction C(t, e = \"***\") {\n const s = t - 1;\n return s < 0 || s >= N.length ? e : N[s];\n}\nfunction I(t) {\n return t <= 0 || t > A ? \"******\" : O[t - 1];\n}\nfunction y(t) {\n return I(g(t));\n}\nfunction w(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && !B.includes(e);\n}\nfunction q(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && B.includes(e);\n}\nfunction U(t) {\n return O[t - 1].includes(\"*obsolete*\");\n}\nfunction K() {\n const t = {};\n for (let e = 0; e < N.length; e++)\n t[N[e]] = e + 1;\n return t;\n}\nconst m = {\n allBookIds: N,\n nonCanonicalIds: B,\n bookIdToNumber: g,\n isBookIdValid: k,\n isBookNT: x,\n isBookOT: T,\n isBookOTNT: X,\n isBookDC: V,\n allBookNumbers: L,\n firstBook: G,\n lastBook: A,\n extraBooks: H,\n bookNumberToId: C,\n bookNumberToEnglishName: I,\n bookIdToEnglishName: y,\n isCanonical: w,\n isExtraMaterial: q,\n isObsolete: U\n};\nvar l = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = \"Unknown\", t[t.Original = 1] = \"Original\", t[t.Septuagint = 2] = \"Septuagint\", t[t.Vulgate = 3] = \"Vulgate\", t[t.English = 4] = \"English\", t[t.RussianProtestant = 5] = \"RussianProtestant\", t[t.RussianOrthodox = 6] = \"RussianOrthodox\", t))(l || {});\nconst h = class h {\n // private versInfo: Versification;\n constructor(e) {\n n(this, \"name\");\n n(this, \"fullPath\");\n n(this, \"isPresent\");\n n(this, \"hasVerseSegments\");\n n(this, \"isCustomized\");\n n(this, \"baseVersification\");\n n(this, \"scriptureBooks\");\n n(this, \"_type\");\n if (e == null)\n throw new Error(\"Argument undefined\");\n typeof e == \"string\" ? (this.name = e, this._type = l[e]) : (this._type = e, this.name = l[e]);\n }\n get type() {\n return this._type;\n }\n equals(e) {\n return !e.type || !this.type ? !1 : e.type === this.type;\n }\n};\nn(h, \"Original\", new h(l.Original)), n(h, \"Septuagint\", new h(l.Septuagint)), n(h, \"Vulgate\", new h(l.Vulgate)), n(h, \"English\", new h(l.English)), n(h, \"RussianProtestant\", new h(l.RussianProtestant)), n(h, \"RussianOrthodox\", new h(l.RussianOrthodox));\nlet c = h;\nfunction E(t, e) {\n const s = e[0];\n for (let r = 1; r < e.length; r++)\n t = t.split(e[r]).join(s);\n return t.split(s);\n}\nvar D = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = \"Valid\", t[t.UnknownVersification = 1] = \"UnknownVersification\", t[t.OutOfRange = 2] = \"OutOfRange\", t[t.VerseOutOfOrder = 3] = \"VerseOutOfOrder\", t[t.VerseRepeated = 4] = \"VerseRepeated\", t))(D || {});\nconst i = class i {\n constructor(e, s, r, a) {\n /** Not yet implemented. */\n n(this, \"firstChapter\");\n /** Not yet implemented. */\n n(this, \"lastChapter\");\n /** Not yet implemented. */\n n(this, \"lastVerse\");\n /** Not yet implemented. */\n n(this, \"hasSegmentsDefined\");\n /** Not yet implemented. */\n n(this, \"text\");\n /** Not yet implemented. */\n n(this, \"BBBCCCVVVS\");\n /** Not yet implemented. */\n n(this, \"longHashCode\");\n /** The versification of the reference. */\n n(this, \"versification\");\n n(this, \"rtlMark\", \"‏\");\n n(this, \"_bookNum\", 0);\n n(this, \"_chapterNum\", 0);\n n(this, \"_verseNum\", 0);\n n(this, \"_verse\");\n if (r == null && a == null)\n if (e != null && typeof e == \"string\") {\n const o = e, u = s != null && s instanceof c ? s : void 0;\n this.setEmpty(u), this.parse(o);\n } else if (e != null && typeof e == \"number\") {\n const o = s != null && s instanceof c ? s : void 0;\n this.setEmpty(o), this._verseNum = e % i.chapterDigitShifter, this._chapterNum = Math.floor(\n e % i.bookDigitShifter / i.chapterDigitShifter\n ), this._bookNum = Math.floor(e / i.bookDigitShifter);\n } else if (s == null)\n if (e != null && e instanceof i) {\n const o = e;\n this._bookNum = o.bookNum, this._chapterNum = o.chapterNum, this._verseNum = o.verseNum, this._verse = o.verse, this.versification = o.versification;\n } else {\n if (e == null) return;\n const o = e instanceof c ? e : i.defaultVersification;\n this.setEmpty(o);\n }\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else if (e != null && s != null && r != null)\n if (typeof e == \"string\" && typeof s == \"string\" && typeof r == \"string\")\n this.setEmpty(a), this.updateInternal(e, s, r);\n else if (typeof e == \"number\" && typeof s == \"number\" && typeof r == \"number\")\n this._bookNum = e, this._chapterNum = s, this._verseNum = r, this.versification = a ?? i.defaultVersification;\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else\n throw new Error(\"VerseRef constructor not supported.\");\n }\n /**\n * Determines if the verse string is in a valid format (does not consider versification).\n */\n static isVerseParseable(e) {\n return e.length > 0 && \"0123456789\".includes(e[0]) && !e.endsWith(this.verseRangeSeparator) && !e.endsWith(this.verseSequenceIndicator);\n }\n /**\n * Tries to parse the specified string into a verse reference.\n * @param str - The string to attempt to parse.\n * @returns success: `true` if the specified string was successfully parsed, `false` otherwise.\n * @returns verseRef: The result of the parse if successful, or empty VerseRef if it failed\n */\n static tryParse(e) {\n let s;\n try {\n return s = new i(e), { success: !0, verseRef: s };\n } catch (r) {\n if (r instanceof v)\n return s = new i(), { success: !1, verseRef: s };\n throw r;\n }\n }\n /**\n * Gets the reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n * @param bookNum - Book number (this is 1-based, not an index).\n * @param chapterNum - Chapter number.\n * @param verseNum - Verse number.\n * @returns The reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n */\n static getBBBCCCVVV(e, s, r) {\n return e % i.bcvMaxValue * i.bookDigitShifter + (s >= 0 ? s % i.bcvMaxValue * i.chapterDigitShifter : 0) + (r >= 0 ? r % i.bcvMaxValue : 0);\n }\n /**\n * Deserializes a serialized VerseRef.\n * @param serializedVerseRef - Serialized VerseRef to create from.\n * @returns the deserialized VerseRef.\n */\n static fromJSON(e) {\n const { book: s, chapterNum: r, verseNum: a, verse: o, versificationStr: u } = e, f = o || a.toString();\n let d;\n return u && (d = new c(u)), s ? new i(s, r.toString(), f, d) : new i();\n }\n /**\n * Parses a verse string and gets the leading numeric portion as a number.\n * @param verseStr - verse string to parse\n * @returns true if the entire string could be parsed as a single, simple verse number (1-999);\n * false if the verse string represented a verse bridge, contained segment letters, or was invalid\n */\n static tryGetVerseNum(e) {\n let s;\n if (!e)\n return s = -1, { success: !0, vNum: s };\n s = 0;\n let r;\n for (let a = 0; a < e.length; a++) {\n if (r = e[a], r < \"0\" || r > \"9\")\n return a === 0 && (s = -1), { success: !1, vNum: s };\n if (s = s * 10 + +r - 0, s > i.bcvMaxValue)\n return s = -1, { success: !1, vNum: s };\n }\n return { success: !0, vNum: s };\n }\n /**\n * Checks to see if a VerseRef hasn't been set - all values are the default.\n */\n get isDefault() {\n return this.bookNum === 0 && this.chapterNum === 0 && this.verseNum === 0 && this.versification == null;\n }\n /**\n * Gets whether the verse contains multiple verses.\n */\n get hasMultiple() {\n return this._verse != null && (this._verse.includes(i.verseRangeSeparator) || this._verse.includes(i.verseSequenceIndicator));\n }\n /**\n * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters,\n * e.g. `'MAT'`.\n */\n get book() {\n return m.bookNumberToId(this.bookNum, \"\");\n }\n set book(e) {\n this.bookNum = m.bookIdToNumber(e);\n }\n /**\n * Gets or sets the chapter of the reference,. e.g. `'3'`.\n */\n get chapter() {\n return this.isDefault || this._chapterNum < 0 ? \"\" : this._chapterNum.toString();\n }\n set chapter(e) {\n const s = +e;\n this._chapterNum = Number.isInteger(s) ? s : -1;\n }\n /**\n * Gets or sets the verse of the reference, including range, segments, and sequences, e.g. `'4'`,\n * or `'4b-5a, 7'`.\n */\n get verse() {\n return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? \"\" : this._verseNum.toString();\n }\n set verse(e) {\n const { success: s, vNum: r } = i.tryGetVerseNum(e);\n this._verse = s ? void 0 : e.replace(this.rtlMark, \"\"), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = i.tryGetVerseNum(this._verse));\n }\n /**\n * Get or set Book based on book number, e.g. `42`.\n */\n get bookNum() {\n return this._bookNum;\n }\n set bookNum(e) {\n if (e <= 0 || e > m.lastBook)\n throw new v(\n \"BookNum must be greater than zero and less than or equal to last book\"\n );\n this._bookNum = e;\n }\n /**\n * Gets or sets the chapter number, e.g. `3`. `-1` if not valid.\n */\n get chapterNum() {\n return this._chapterNum;\n }\n set chapterNum(e) {\n this.chapterNum = e;\n }\n /**\n * Gets or sets verse start number, e.g. `4`. `-1` if not valid.\n */\n get verseNum() {\n return this._verseNum;\n }\n set verseNum(e) {\n this._verseNum = e;\n }\n /**\n * String representing the versification (should ONLY be used for serialization/deserialization).\n *\n * @remarks This is for backwards compatibility when ScrVers was an enumeration.\n */\n get versificationStr() {\n var e;\n return (e = this.versification) == null ? void 0 : e.name;\n }\n set versificationStr(e) {\n this.versification = this.versification != null ? new c(e) : void 0;\n }\n /**\n * Determines if the reference is valid.\n */\n get valid() {\n return this.validStatus === 0;\n }\n /**\n * Get the valid status for this reference.\n */\n get validStatus() {\n return this.validateVerse(i.verseRangeSeparators, i.verseSequenceIndicators);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits and the verse is 0.\n */\n get BBBCCC() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, 0);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits. If verse is not null\n * (i.e., this reference represents a complex reference with verse\n * segments or bridge) this cannot be used for an exact comparison.\n */\n get BBBCCCVVV() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum);\n }\n /**\n * Gets whether the verse is defined as an excluded verse in the versification.\n * Does not handle verse ranges.\n */\n // eslint-disable-next-line @typescript-eslint/class-literal-property-style\n get isExcluded() {\n return !1;\n }\n /**\n * Parses the reference in the specified string.\n * Optionally versification can follow reference as in GEN 3:11/4\n * Throw an exception if\n * - invalid book name\n * - chapter number is missing or not a number\n * - verse number is missing or does not start with a number\n * - versification is invalid\n * @param verseStr - string to parse e.g. 'MAT 3:11'\n */\n parse(e) {\n if (e = e.replace(this.rtlMark, \"\"), e.includes(\"/\")) {\n const o = e.split(\"/\");\n if (e = o[0], o.length > 1)\n try {\n const u = +o[1].trim();\n this.versification = new c(l[u]);\n } catch {\n throw new v(\"Invalid reference : \" + e);\n }\n }\n const s = e.trim().split(\" \");\n if (s.length !== 2)\n throw new v(\"Invalid reference : \" + e);\n const r = s[1].split(\":\"), a = +r[0];\n if (r.length !== 2 || m.bookIdToNumber(s[0]) === 0 || !Number.isInteger(a) || a < 0 || !i.isVerseParseable(r[1]))\n throw new v(\"Invalid reference : \" + e);\n this.updateInternal(s[0], r[0], r[1]);\n }\n /**\n * Simplifies this verse ref so that it has no bridging of verses or\n * verse segments like `'1a'`.\n */\n simplify() {\n this._verse = void 0;\n }\n /**\n * Makes a clone of the reference.\n *\n * @returns The cloned VerseRef.\n */\n clone() {\n return new i(this);\n }\n toString() {\n const e = this.book;\n return e === \"\" ? \"\" : `${e} ${this.chapter}:${this.verse}`;\n }\n toJSON() {\n let e = this.verse;\n (e === \"\" || e === this.verseNum.toString()) && (e = void 0);\n const s = {\n book: this.book,\n chapterNum: this.chapterNum,\n verseNum: this.verseNum,\n verse: e,\n versificationStr: this.versificationStr\n };\n return e || delete s.verse, s;\n }\n /**\n * Compares this `VerseRef` with supplied one.\n * @param verseRef - object to compare this one to.\n * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise.\n */\n equals(e) {\n return e instanceof i ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1;\n }\n /**\n * Enumerate all individual verses contained in a VerseRef.\n * Verse ranges are indicated by \"-\" and consecutive verses by \",\"s.\n * Examples:\n * GEN 1:2 returns GEN 1:2\n * GEN 1:1a-3b,5 returns GEN 1:1a, GEN 1:2, GEN 1:3b, GEN 1:5\n * GEN 1:2a-2c returns //! ??????\n *\n * @param specifiedVersesOnly - if set to true return only verses that are\n * explicitly specified only, not verses within a range. Defaults to `false`.\n * @param verseRangeSeparators - Verse range separators.\n * Defaults to `VerseRef.verseRangeSeparators`.\n * @param verseSequenceSeparators - Verse sequence separators.\n * Defaults to `VerseRef.verseSequenceIndicators`.\n * @returns An array of all single verse references in this VerseRef.\n */\n allVerses(e = !1, s = i.verseRangeSeparators, r = i.verseSequenceIndicators) {\n if (this._verse == null || this.chapterNum <= 0)\n return [this.clone()];\n const a = [], o = E(this._verse, r);\n for (const u of o.map((f) => E(f, s))) {\n const f = this.clone();\n f.verse = u[0];\n const d = f.verseNum;\n if (a.push(f), u.length > 1) {\n const b = this.clone();\n if (b.verse = u[1], !e)\n for (let p = d + 1; p < b.verseNum; p++) {\n const J = new i(\n this._bookNum,\n this._chapterNum,\n p,\n this.versification\n );\n this.isExcluded || a.push(J);\n }\n a.push(b);\n }\n }\n return a;\n }\n /**\n * Validates a verse number using the supplied separators rather than the defaults.\n */\n validateVerse(e, s) {\n if (!this.verse)\n return this.internalValid;\n let r = 0;\n for (const a of this.allVerses(!0, e, s)) {\n const o = a.internalValid;\n if (o !== 0)\n return o;\n const u = a.BBBCCCVVV;\n if (r > u)\n return 3;\n if (r === u)\n return 4;\n r = u;\n }\n return 0;\n }\n /**\n * Gets whether a single verse reference is valid.\n */\n get internalValid() {\n return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > m.lastBook ? 2 : (m.isCanonical(this._bookNum), 0);\n }\n setEmpty(e = i.defaultVersification) {\n this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = e;\n }\n updateInternal(e, s, r) {\n this.bookNum = m.bookIdToNumber(e), this.chapter = s, this.verse = r;\n }\n};\nn(i, \"defaultVersification\", c.English), n(i, \"verseRangeSeparator\", \"-\"), n(i, \"verseSequenceIndicator\", \",\"), n(i, \"verseRangeSeparators\", [i.verseRangeSeparator]), n(i, \"verseSequenceIndicators\", [i.verseSequenceIndicator]), n(i, \"chapterDigitShifter\", 1e3), n(i, \"bookDigitShifter\", i.chapterDigitShifter * i.chapterDigitShifter), n(i, \"bcvMaxValue\", i.chapterDigitShifter - 1), /**\n * The valid status of the VerseRef.\n */\nn(i, \"ValidStatusType\", D);\nlet M = i;\nclass v extends Error {\n}\nexport {\n _ as BookSet,\n m as Canon,\n c as ScrVers,\n l as ScrVersType,\n M as VerseRef,\n v as VerseRefException\n};\n//# sourceMappingURL=index.es.js.map\n","import { DropdownMenuItem } from '@/components/shadcn-ui/dropdown-menu';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Canon } from '@sillsdev/scripture';\nimport { KeyboardEvent, PropsWithChildren, forwardRef } from 'react';\n\nexport type BookType = 'OT' | 'NT' | 'DC';\n\ntype BookMenuItemProps = PropsWithChildren<{\n /** String id of book */\n bookId: string;\n /** Callback to run when a book menu item is selected */\n handleSelectBook: () => void;\n /** Indicates if this menu item is currently selected */\n isSelected: boolean;\n /** Function that is called upon highlighting a book in the dropdown menu */\n handleHighlightBook: () => void;\n /**\n * Function that is called on pressing a key\n *\n * @param event Event that contains information about the key stroke\n */\n handleKeyDown: (event: KeyboardEvent) => void;\n /**\n * Type of book associated with this menu item, coordinates color labels ? Mock up has the labels\n * coordinated to genre\n */\n bookType: BookType;\n}>;\n\nconst BookMenuItem = forwardRef(\n (\n {\n bookId,\n handleSelectBook,\n isSelected,\n handleHighlightBook,\n handleKeyDown,\n bookType,\n children,\n }: BookMenuItemProps,\n ref,\n ) => {\n return (\n {\n // preventDefault() here prevents the entire dropdown menu from closing when selecting this item\n event.preventDefault();\n handleSelectBook();\n }}\n onKeyDown={(event: KeyboardEvent) => {\n handleKeyDown(event);\n }}\n onFocus={handleHighlightBook}\n onMouseMove={handleHighlightBook}\n >\n \n {Canon.bookIdToEnglishName(bookId)}\n \n {isSelected &&
    {children}
    }\n \n );\n },\n);\n\nexport default BookMenuItem;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type ChapterSelectProps = {\n /**\n * Callback to run when a chapter div is selected\n *\n * @param chapterNumber Number of the chapter that has been selected\n */\n handleSelectChapter: (chapterNumber: number) => void;\n /** The highest chapter number in the book (of course equal to number of chapters in the book) */\n endChapter: number;\n /** The chapter number that is currently selected */\n activeChapter: number;\n /** The chapter number that is currently highlighted using keyboard or mouse navigation */\n highlightedChapter: number;\n /**\n * Callback to run when a chapter is highlighted by the user\n *\n * @param chapterNumber The chapter that is highlighted\n */\n handleHighlightedChapter: (chapterNumber: number) => void;\n};\n\nfunction ChapterSelect({\n handleSelectChapter,\n endChapter,\n activeChapter,\n highlightedChapter,\n handleHighlightedChapter,\n}: ChapterSelectProps) {\n const chapters = Array.from({ length: endChapter }, (_, i) => i + 1);\n\n const handleMouse = useCallback(\n (chapterNumber: number) => {\n handleHighlightedChapter(chapterNumber);\n },\n [handleHighlightedChapter],\n );\n\n return (\n
    \n {chapters.map((chapter) => (\n {\n event.preventDefault();\n event.stopPropagation();\n handleSelectChapter(chapter);\n }}\n role=\"button\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n handleSelectChapter(chapter);\n }\n }}\n tabIndex={0}\n onMouseMove={() => handleMouse(chapter)}\n >\n {chapter}\n
    \n ))}\n
    \n );\n}\n\nexport default ChapterSelect;\n","import { DropdownMenuLabel } from '@/components/shadcn-ui/dropdown-menu';\nimport { Bookmark, Clock, ArrowDownWideNarrow } from 'lucide-react';\n\nexport type GoToMenuItemProps = {\n handleSort: () => void;\n handleLocationHistory: () => void;\n handleBookmarks: () => void;\n};\n\nfunction GoToMenuItem({ handleSort, handleLocationHistory, handleBookmarks }: GoToMenuItemProps) {\n return (\n \n

    Go To

    \n
    \n \n \n \n
    \n
    \n );\n}\n\nexport default GoToMenuItem;\n","import BookChapterInput from '@/components/advanced/book-chapter-control/book-chapter-input.component';\nimport BookMenuItem, {\n BookType,\n} from '@/components/advanced/book-chapter-control/book-menu-item.component';\nimport ChapterSelect from '@/components/advanced/book-chapter-control/chapter-select.component';\nimport GoToMenuItem from '@/components/advanced/book-chapter-control/go-to-menu-item.component';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference, getChaptersForBook } from 'platform-bible-utils';\nimport {\n KeyboardEvent as ReactKeyboardEvent,\n useCallback,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\n\ntype BookTypeLabels = {\n [bookType in BookType]: string;\n};\ntype BookChapterControlProps = {\n scrRef: ScriptureReference;\n handleSubmit: (scrRef: ScriptureReference) => void;\n};\n\nconst ALL_BOOK_IDS = Canon.allBookIds;\nconst BOOK_TYPE_LABELS: BookTypeLabels = {\n OT: 'Old Testament',\n NT: 'New Testament',\n DC: 'Deuterocanon',\n};\nconst BOOK_TYPE_ARRAY: BookType[] = ['OT', 'NT', 'DC'];\n// This is the height of three menu items to offset scrolling to the selected menu item\n// If you use menuItemRef.clientHeight- includes height of chapter div which is too big\nconst SCROLL_OFFSET = 32 + 32 + 32;\nconst SEARCH_QUERY_FORMATS = [\n /^(\\w+)$/i, // Matches a single word (book name or id)\n /^(\\w+)(?:\\s(\\d+))$/i, // Matches a word followed by a chapter number\n /^(\\w+)(?:\\s(\\d+):(\\d+))$/i, // Matches a word followed by a chapter and verse number\n];\nconst fetchGroupedBooks = (bookType: BookType) => {\n const groupedBooks = {\n OT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookOT(bookId)),\n NT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookNT(bookId)),\n DC: ALL_BOOK_IDS.filter((bookId) => Canon.isBookDC(bookId)),\n };\n return groupedBooks[bookType];\n};\nconst fetchEndChapter = (bookId: string) => {\n // getChaptersForBook returns -1 if not found in scrBookData\n // scrBookData only includes OT and NT, so all DC will return -1\n return getChaptersForBook(Canon.bookIdToNumber(bookId));\n};\n\n/**\n * Gets all of the English names from book ids\n *\n * @returns String[]\n */\nfunction getAllEnglishNames(): string[] {\n const allEnglishNames = ALL_BOOK_IDS.map((bookId) => {\n return Canon.bookIdToEnglishName(bookId);\n });\n return allEnglishNames;\n}\n\n/**\n * Determines if bookName is in allEnglishNames\n *\n * @param bookName Book English name\n * @returns True if bookName is included, false otherwise\n */\nfunction isValidBookEnglishName(bookName: string): boolean {\n return getAllEnglishNames().includes(bookName);\n}\n\n/**\n * Gets a bookId from given English name\n *\n * @param bookName Book English name\n * @returns BookId of provided bookName, undefined otherwise\n */\nfunction getBookIdFromEnglishName(bookName: string): string | undefined {\n // Convert bookName to lowercase and then capitalize the first letter\n const formattedBookName = bookName.toLowerCase().replace(/^\\w/, (c) => c.toUpperCase());\n\n if (isValidBookEnglishName(formattedBookName)) {\n const matchingBookId = ALL_BOOK_IDS.find((bookId) => {\n return Canon.bookIdToEnglishName(bookId) === formattedBookName;\n });\n return matchingBookId;\n }\n\n return undefined;\n}\n\nfunction BookChapterControl({ scrRef, handleSubmit }: BookChapterControlProps) {\n const dir: Direction = readDirection();\n const [searchQuery, setSearchQuery] = useState('');\n const [selectedBookId, setSelectedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [highlightedChapter, setHighlightedChapter] = useState(scrRef.chapterNum ?? 0);\n const [highlightedBookId, setHighlightedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [isContentOpen, setIsContentOpen] = useState(false);\n const [isContentOpenDelayed, setIsContentOpenDelayed] = useState(isContentOpen);\n\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const inputRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const contentRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const menuItemRef = useRef(undefined!);\n\n const fetchFilteredBooks = useCallback(\n (bookType: BookType) => {\n return fetchGroupedBooks(bookType).filter((bookId: string) => {\n const englishNameLowerCase = Canon.bookIdToEnglishName(bookId).toLowerCase();\n const normalizedQuery = searchQuery.replace(/[^a-zA-Z]/g, '').toLowerCase();\n return (\n englishNameLowerCase.includes(normalizedQuery) || // Match book name\n bookId.toLowerCase().includes(normalizedQuery) // Match book ID\n );\n });\n },\n [searchQuery],\n );\n\n const handleSearchInput = (searchString: string) => {\n setSearchQuery(searchString);\n };\n\n /**\n * Whether to prevent radix's logic from closing the dropdown. This is important because radix\n * tries to close the dropdown when the input first focuses, and we don't want it to do that. But\n * we don't want to prevent the dropdown from closing when we click away from the input, so we\n * don't want to just keep it open if the input is focused\n */\n const shouldPreventAutoClosing = useRef(false);\n\n const controlMenuState = useCallback((open: boolean) => {\n if (shouldPreventAutoClosing.current) {\n shouldPreventAutoClosing.current = false;\n return;\n }\n setIsContentOpen(open);\n }, []);\n\n const updateReference = useCallback(\n (bookId: string, shouldClose: boolean, chapter?: number, verse?: number) => {\n setHighlightedChapter(\n Canon.bookNumberToId(scrRef.bookNum) !== bookId ? 1 : scrRef.chapterNum,\n );\n\n if (shouldClose || fetchEndChapter(bookId) === -1) {\n handleSubmit({\n bookNum: Canon.bookIdToNumber(bookId),\n chapterNum: chapter || 1,\n verseNum: verse || 1,\n });\n\n setIsContentOpen(false);\n setSearchQuery('');\n return;\n }\n\n setSelectedBookId(selectedBookId !== bookId ? bookId : '');\n setIsContentOpen(!shouldClose);\n },\n [handleSubmit, scrRef.bookNum, scrRef.chapterNum, selectedBookId],\n );\n\n const handleSelectChapter = (chapterNumber: number) => {\n if (chapterNumber <= 0 || chapterNumber > fetchEndChapter(selectedBookId)) {\n return;\n }\n updateReference(selectedBookId, true, chapterNumber);\n };\n\n const handleInputSubmit = useCallback(() => {\n SEARCH_QUERY_FORMATS.forEach((format) => {\n const matches = searchQuery.match(format);\n if (matches) {\n // Book should be a bookId or an english name\n const [book, chapter = undefined, verse = undefined] = matches.slice(1);\n const englishName = getBookIdFromEnglishName(book);\n\n if (Canon.isBookIdValid(book) || englishName) {\n updateReference(\n englishName ?? book,\n true,\n chapter ? parseInt(chapter, 10) : 1,\n verse ? parseInt(verse, 10) : 1,\n );\n }\n }\n });\n }, [updateReference, searchQuery]);\n\n const handleKeyDownInput = useCallback(\n (event: ReactKeyboardEvent) => {\n if (!isContentOpen) {\n setIsContentOpen(true);\n } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (\n typeof menuItemRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n menuItemRef.current !== null\n ) {\n menuItemRef.current.focus();\n } else if (\n typeof contentRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n contentRef.current !== null\n ) {\n contentRef.current.focus();\n }\n event.preventDefault();\n }\n },\n [isContentOpen],\n );\n\n const handleKeyDownContent = (event: ReactKeyboardEvent) => {\n // When the dropdown menu has focus, key strokes should give focus to the input component,\n // unless they're navigation keys (arrows and enter)\n const { key } = event;\n if (\n key === 'ArrowRight' ||\n key === 'ArrowLeft' ||\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter'\n ) {\n return;\n }\n\n inputRef.current.dispatchEvent(new KeyboardEvent('keydown', { key }));\n inputRef.current.focus();\n };\n\n const handleKeyDownMenuItem = (event: ReactKeyboardEvent) => {\n const { key } = event;\n if (highlightedBookId === selectedBookId) {\n if (key === 'Enter') {\n event.preventDefault();\n updateReference(selectedBookId, true, highlightedChapter);\n return;\n }\n\n const upOneChapter =\n (key === 'ArrowRight' && !dir) ||\n (key === 'ArrowRight' && dir === 'ltr') ||\n (key === 'ArrowLeft' && dir === 'rtl');\n const downOneChapter =\n (key === 'ArrowLeft' && !dir) ||\n (key === 'ArrowLeft' && dir === 'ltr') ||\n (key === 'ArrowRight' && dir === 'rtl');\n let chapterOffSet = 0;\n if (upOneChapter) {\n if (highlightedChapter < fetchEndChapter(highlightedBookId)) {\n chapterOffSet = 1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (downOneChapter) {\n if (highlightedChapter > 1) {\n chapterOffSet = -1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowDown') {\n chapterOffSet = 6;\n } else if (key === 'ArrowUp') {\n chapterOffSet = -6;\n }\n if (\n highlightedChapter + chapterOffSet <= 0 ||\n highlightedChapter + chapterOffSet > fetchEndChapter(highlightedBookId)\n ) {\n setHighlightedChapter(0);\n } else if (chapterOffSet !== 0) {\n setHighlightedChapter(highlightedChapter + chapterOffSet);\n event.preventDefault();\n }\n }\n };\n\n useEffect(() => {\n if (selectedBookId === highlightedBookId) {\n if (selectedBookId === Canon.bookNumberToId(scrRef.bookNum)) {\n setHighlightedChapter(scrRef.chapterNum);\n } else {\n setHighlightedChapter(1);\n }\n } else {\n setHighlightedChapter(0);\n }\n }, [highlightedBookId, scrRef.bookNum, scrRef.chapterNum, selectedBookId]);\n\n // The purpose of these useLayoutEffects and timeout is to delay the scroll just\n // enough so that the refs are defined and available when they are used after the timeout\n useLayoutEffect(() => {\n setIsContentOpenDelayed(isContentOpen);\n }, [isContentOpen]);\n\n useLayoutEffect(() => {\n const scrollTimeout = setTimeout(() => {\n if (isContentOpenDelayed && contentRef.current && menuItemRef.current) {\n const menuItemOffsetTop = menuItemRef.current.offsetTop;\n const scrollPosition = menuItemOffsetTop - SCROLL_OFFSET;\n contentRef.current.scrollTo({ top: scrollPosition, behavior: 'instant' });\n }\n }, 10);\n return () => {\n clearTimeout(scrollTimeout);\n };\n }, [isContentOpenDelayed]);\n\n return (\n
    \n \n \n {\n setSelectedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedChapter(scrRef.chapterNum > 0 ? scrRef.chapterNum : 0);\n setIsContentOpen(true);\n inputRef.current.focus();\n }}\n onFocus={() => {\n // Radix thinks we want to close because the input is being focused. Prevent that\n shouldPreventAutoClosing.current = true;\n }}\n handleSubmit={handleInputSubmit}\n placeholder={`${Canon.bookNumberToEnglishName(scrRef.bookNum)} ${scrRef.chapterNum}:${scrRef.verseNum}`}\n />\n \n \n {/* work around until DropdownMenuContent supports a dir prop */}\n
    \n console.log('sorting')}\n handleLocationHistory={() => console.log('location history')}\n handleBookmarks={() => console.log('bookmarks')}\n />\n {BOOK_TYPE_ARRAY.map(\n (bookType, bookTypeIndex) =>\n fetchFilteredBooks(bookType).length > 0 && (\n
    \n \n {BOOK_TYPE_LABELS[bookType]}\n \n\n {fetchFilteredBooks(bookType).map((bookId) => (\n
    \n updateReference(bookId, false)}\n isSelected={selectedBookId === bookId}\n handleHighlightBook={() => setHighlightedBookId(bookId)}\n handleKeyDown={handleKeyDownMenuItem}\n bookType={bookType}\n ref={(element: HTMLDivElement) => {\n if (selectedBookId === bookId) menuItemRef.current = element;\n }}\n >\n {\n setHighlightedChapter(chapterNumber);\n }}\n />\n \n
    \n ))}\n {BOOK_TYPE_ARRAY.length - 1 !== bookTypeIndex ? (\n \n ) : undefined}\n
    \n ),\n )}\n
    \n \n
    \n
    \n );\n}\n\nexport default BookChapterControl;\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const buttonVariants = cva(\n 'pr-twp tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50',\n {\n variants: {\n variant: {\n default: 'tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/90',\n destructive: 'tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/90',\n outline:\n 'tw-border tw-border-input tw-bg-background hover:tw-bg-accent hover:tw-text-accent-foreground',\n secondary: 'tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80',\n ghost: 'hover:tw-bg-accent hover:tw-text-accent-foreground',\n link: 'tw-text-primary tw-underline-offset-4 hover:tw-underline',\n },\n size: {\n default: 'tw-h-10 tw-px-4 tw-py-2',\n sm: 'tw-h-9 tw-rounded-md tw-px-3',\n lg: 'tw-h-11 tw-rounded-md tw-px-8',\n icon: 'tw-h-10 tw-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n return (\n \n );\n },\n);\nButton.displayName = 'Button';\n","import React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst labelVariants = cva(\n 'tw-text-sm tw-font-medium tw-leading-none peer-disabled:tw-cursor-not-allowed peer-disabled:tw-opacity-70',\n);\n\nexport const Label = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, ...props }, ref) => (\n \n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n","import React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n return (\n \n \n \n \n \n );\n});\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n","import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport React from 'react';\n\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n );\n});\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverContent, PopoverTrigger };\n","import React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { readDirection } from '@/utils/dir-helper.util';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => {\n const dir = readDirection();\n return (\n \n \n \n {children}\n \n \n Close\n \n \n \n );\n});\nDialogContent.displayName = DialogPrimitive.Content.displayName;\nfunction DialogHeader({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nDialogHeader.displayName = 'DialogHeader';\n\nfunction DialogFooter({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n};\n","import React from 'react';\nimport { type DialogProps } from '@radix-ui/react-dialog';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Search } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Dialog, DialogContent } from '@/components/shadcn-ui/dialog';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Command = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nCommand.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {}\n\nfunction CommandDialog({ children, ...props }: CommandDialogProps) {\n return (\n \n \n \n {children}\n \n \n \n );\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n
    \n \n \n
    \n );\n});\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst CommandList = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>((props, ref) => (\n \n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst CommandItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nfunction CommandShortcut({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n};\n","import { ReactNode, useState } from 'react';\nimport { Check, ChevronsUpDown } from 'lucide-react';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover';\nimport {\n Command,\n CommandEmpty,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/components/shadcn-ui/command';\nimport { PopoverProps } from '@radix-ui/react-popover';\n\nexport type ComboBoxLabelOption = { label: string };\nexport type ComboBoxOption = string | number | ComboBoxLabelOption;\n\nexport type ComboBoxProps = {\n /** Optional unique identifier */\n id?: string;\n /** Text label title for combobox */\n /** List of available options for the dropdown menu */\n options?: readonly T[];\n /** @deprecated 3 December 2024. Renamed to {@link buttonClassName} */\n className?: string;\n /** Additional css classes to help with unique styling of the combo box button */\n buttonClassName?: string;\n /** Additional css classes to help with unique styling of the combo box popover */\n popoverContentClassName?: string;\n /**\n * The selected value that the combo box currently holds. Must be shallow equal to one of the\n * options entries.\n */\n value?: T;\n /** Triggers when content of textfield is changed */\n onChange?: (newValue: T) => void;\n /** Used to determine the string value for a given option. */\n getOptionLabel?: (option: ComboBoxOption) => string;\n /** Icon to be displayed on the trigger */\n icon?: ReactNode;\n /** Text displayed on button if `value` is undefined */\n buttonPlaceholder?: string;\n /** Placeholder text for text field */\n textPlaceholder?: string;\n /** Text to display when no options match input */\n commandEmptyMessage?: string;\n /** Variant of button */\n buttonVariant?: ButtonProps['variant'];\n /** Control how the popover menu should be aligned. Defaults to start */\n alignDropDown?: 'start' | 'center' | 'end';\n /** Optional boolean to set if trigger should be disabled */\n isDisabled?: boolean;\n} & PopoverProps;\n\nfunction getOptionLabelDefault(option: ComboBoxOption): string {\n if (typeof option === 'string') {\n return option;\n }\n if (typeof option === 'number') {\n return option.toString();\n }\n return option.label;\n}\n\n/**\n * Autocomplete input and command palette with a list of suggestions.\n *\n * Thanks to Shadcn for heavy inspiration and documentation\n * https://ui.shadcn.com/docs/components/combobox\n */\nfunction ComboBox({\n id,\n options = [],\n className,\n buttonClassName,\n popoverContentClassName,\n value,\n onChange = () => {},\n getOptionLabel = getOptionLabelDefault,\n icon = undefined,\n buttonPlaceholder = '',\n textPlaceholder = '',\n commandEmptyMessage = 'No option found',\n buttonVariant = 'outline',\n alignDropDown = 'start',\n isDisabled = false,\n ...props\n}: ComboBoxProps) {\n const [open, setOpen] = useState(false);\n\n return (\n \n \n \n
    \n {icon &&
    {icon}
    }\n \n {value ? getOptionLabel(value) : buttonPlaceholder}\n \n
    \n\n \n \n
    \n \n \n \n {commandEmptyMessage}\n \n {options.map((option) => (\n {\n onChange(option);\n setOpen(false);\n }}\n >\n \n {getOptionLabel(option)}\n \n ))}\n \n \n \n
    \n );\n}\n\nexport default ComboBox;\n","import ComboBox from '@/components/basics/combo-box.component';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { useMemo } from 'react';\n\nexport type ChapterRangeSelectorProps = {\n startChapter: number;\n endChapter: number;\n handleSelectStartChapter: (chapter: number) => void;\n handleSelectEndChapter: (chapter: number) => void;\n isDisabled?: boolean;\n chapterCount: number;\n};\n\nexport default function ChapterRangeSelector({\n startChapter,\n endChapter,\n handleSelectStartChapter,\n handleSelectEndChapter,\n isDisabled = false,\n chapterCount,\n}: ChapterRangeSelectorProps) {\n const chapterOptions = useMemo(\n () => Array.from({ length: chapterCount }, (_, index) => index + 1),\n [chapterCount],\n );\n\n const onChangeStartChapter = (value: number) => {\n handleSelectStartChapter(value);\n if (value > endChapter) {\n handleSelectEndChapter(value);\n }\n };\n\n const onChangeEndChapter = (value: number) => {\n handleSelectEndChapter(value);\n if (value < startChapter) {\n handleSelectStartChapter(value);\n }\n };\n\n return (\n <>\n \n option.toString()}\n value={startChapter}\n />\n\n \n option.toString()}\n value={endChapter}\n />\n \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { RadioGroup, RadioGroupItem } from '@/components/shadcn-ui/radio-group';\nimport { Canon } from '@sillsdev/scripture';\nimport { LocalizedStringValue } from 'platform-bible-utils';\nimport { useState } from 'react';\nimport ChapterRangeSelector, {\n ChapterRangeSelectorProps,\n} from '../basics/chapter-range-selector.component';\n\nexport enum BookSelectionMode {\n CURRENT_BOOK = 'current book',\n CHOOSE_BOOKS = 'choose books',\n}\n\n/**\n * Object containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const BOOK_SELECTOR_STRING_KEYS = Object.freeze([\n '%webView_bookSelector_currentBook%',\n '%webView_bookSelector_choose%',\n '%webView_bookSelector_chooseBooks%',\n] as const);\n\nexport type BookSelectorLocalizedStrings = {\n [localizedBookSelectorKey in (typeof BOOK_SELECTOR_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: BookSelectorLocalizedStrings,\n key: keyof BookSelectorLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\ntype BookSelectorProps = ChapterRangeSelectorProps & {\n handleBookSelectionModeChange: (newMode: BookSelectionMode) => void;\n currentBookName: string;\n onSelectBooks: () => void;\n selectedBookIds: string[];\n localizedStrings: BookSelectorLocalizedStrings;\n};\n\nexport default function BookSelector({\n handleBookSelectionModeChange,\n currentBookName,\n onSelectBooks,\n selectedBookIds,\n chapterCount,\n endChapter,\n handleSelectEndChapter,\n startChapter,\n handleSelectStartChapter,\n localizedStrings,\n}: BookSelectorProps) {\n const currentBookText = localizeString(localizedStrings, '%webView_bookSelector_currentBook%');\n const chooseText = localizeString(localizedStrings, '%webView_bookSelector_choose%');\n const chooseBooksText = localizeString(localizedStrings, '%webView_bookSelector_chooseBooks%');\n\n const [bookSelectionMode, setBookSelectionMode] = useState(\n BookSelectionMode.CURRENT_BOOK,\n );\n\n const onSelectionModeChange = (newMode: BookSelectionMode) => {\n setBookSelectionMode(newMode);\n handleBookSelectionModeChange(newMode);\n };\n\n return (\n onSelectionModeChange(value as BookSelectionMode)}\n >\n
    \n
    \n
    \n \n \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n \n \n
    \n \n onSelectBooks()}\n >\n {chooseText}\n \n
    \n
    \n \n );\n}\n","import { DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';\nimport { FilterIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\n\ninterface DataTableViewOptionsProps {\n table: Table;\n}\n\nfunction DataTableViewOptions({ table }: DataTableViewOptionsProps) {\n return (\n \n \n \n \n \n Toggle columns\n \n {table\n .getAllColumns()\n .filter((column) => column.getCanHide())\n .map((column) => {\n return (\n column.toggleVisibility(!!value)}\n >\n {column.id}\n \n );\n })}\n \n \n );\n}\n\nexport default DataTableViewOptions;\n","import React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n span]:tw-line-clamp-1',\n className,\n )}\n {...props}\n dir={dir}\n >\n {children}\n \n \n \n \n );\n});\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = 'popper', ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n \n
    {children}
    \n \n \n \n
    \n );\n});\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n\n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { ChevronLeftIcon, ChevronRightIcon, ArrowLeftIcon, ArrowRightIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\n\ninterface DataTablePaginationProps {\n table: Table;\n}\n\nfunction DataTablePagination({ table }: DataTablePaginationProps) {\n return (\n
    \n
    \n
    \n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected\n
    \n
    \n

    Rows per page

    \n {\n table.setPageSize(Number(value));\n }}\n >\n \n \n \n \n {[10, 20, 30, 40, 50].map((pageSize) => (\n \n {pageSize}\n \n ))}\n \n \n
    \n
    \n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n
    \n
    \n table.setPageIndex(0)}\n disabled={!table.getCanPreviousPage()}\n >\n Go to first page\n \n \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Go to previous page\n \n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Go to next page\n \n \n table.setPageIndex(table.getPageCount() - 1)}\n disabled={!table.getCanNextPage()}\n >\n Go to last page\n \n \n
    \n
    \n
    \n );\n}\n\nexport default DataTablePagination;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Table = React.forwardRef<\n HTMLTableElement,\n React.HTMLAttributes & { stickyHeader?: boolean }\n>(({ className, stickyHeader, ...props }, ref) => (\n
    \n \n
    \n));\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes & { stickyHeader?: boolean }\n>(({ className, stickyHeader, ...props }, ref) => (\n \n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n tr]:last:tw-border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","import { useState } from 'react';\n\nimport {\n ColumnFiltersState,\n flexRender,\n getCoreRowModel,\n getFilteredRowModel,\n getPaginationRowModel,\n getSortedRowModel,\n SortingState,\n ColumnDef as TSColumnDef,\n Row as TSRow,\n RowSelectionState as TSRowSelectionState,\n SortDirection as TSSortDirection,\n Table as TSTable,\n useReactTable,\n VisibilityState,\n} from '@tanstack/react-table';\n\nimport DataTableViewOptions from '@/components/advanced/data-table/data-table-column-toggle.component';\nimport DataTablePagination from '@/components/advanced/data-table/data-table-pagination.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\n\nexport type ColumnDef = TSColumnDef;\nexport type RowContents = TSRow;\nexport type TableContents = TSTable;\nexport type SortDirection = TSSortDirection;\nexport type RowSelectionState = TSRowSelectionState;\n\ninterface DataTableProps {\n columns: ColumnDef[];\n data: TData[];\n enablePagination?: boolean;\n showPaginationControls?: boolean;\n showColumnVisibilityControls?: boolean;\n stickyHeader?: boolean;\n onRowClickHandler?: (row: RowContents, table: TableContents) => void;\n}\n\n/**\n * Feature-rich table component that infuses our basic shadcn-based Table component with features\n * from TanStack's React Table library\n */\nfunction DataTable({\n columns,\n data,\n enablePagination = false,\n showPaginationControls = false,\n showColumnVisibilityControls = false,\n stickyHeader = false,\n onRowClickHandler = () => {},\n}: DataTableProps) {\n const [sorting, setSorting] = useState([]);\n const [columnFilters, setColumnFilters] = useState([]);\n const [columnVisibility, setColumnVisibility] = useState({});\n const [rowSelection, setRowSelection] = useState({});\n\n const table = useReactTable({\n data,\n columns,\n getCoreRowModel: getCoreRowModel(),\n ...(enablePagination && { getPaginationRowModel: getPaginationRowModel() }),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n onColumnFiltersChange: setColumnFilters,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnVisibilityChange: setColumnVisibility,\n onRowSelectionChange: setRowSelection,\n state: {\n sorting,\n columnFilters,\n columnVisibility,\n rowSelection,\n },\n });\n\n return (\n
    \n {showColumnVisibilityControls && }\n \n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers.map((header) => {\n return (\n \n {header.isPlaceholder\n ? undefined\n : flexRender(header.column.columnDef.header, header.getContext())}\n \n );\n })}\n \n ))}\n \n \n {table.getRowModel().rows?.length ? (\n table.getRowModel().rows.map((row) => (\n onRowClickHandler(row, table)}\n key={row.id}\n data-state={row.getIsSelected() && 'selected'}\n >\n {row.getVisibleCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n ) : (\n \n \n No results.\n \n \n )}\n \n
    \n {enablePagination && (\n
    \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Previous\n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Next\n \n
    \n )}\n {enablePagination && showPaginationControls && }\n
    \n );\n}\n\nexport default DataTable;\n","import {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { Canon } from '@sillsdev/scripture';\nimport { deepEqual, LanguageStrings, ScriptureReference } from 'platform-bible-utils';\nimport { useMemo } from 'react';\nimport { InventoryItemOccurrence } from './inventory-utils';\n\n/** Props for the OccurrencesTable component */\ntype OccurrencesTableProps = {\n /** Data that contains scriptures references and snippets of scripture */\n occurrenceData: InventoryItemOccurrence[];\n /** Callback function that is executed when the scripture reference is changed */\n setScriptureReference: (scriptureReference: ScriptureReference) => void;\n /**\n * Object with all localized strings that the OccurrencesTable needs to work well across multiple\n * languages\n */\n localizedStrings: LanguageStrings;\n};\n\n/**\n * Table that shows occurrences of specified inventory item(s). The first column shows the related\n * scripture reference. The second column shows the snippet of scripture that contains the specified\n * inventory item\n */\nfunction OccurrencesTable({\n occurrenceData,\n setScriptureReference,\n localizedStrings,\n}: OccurrencesTableProps) {\n const referenceHeaderText =\n localizedStrings['%webView_inventory_occurrences_table_header_reference%'];\n const occurrenceHeaderText =\n localizedStrings['%webView_inventory_occurrences_table_header_occurrence%'];\n\n const occurrences: InventoryItemOccurrence[] = useMemo(() => {\n const uniqueOccurrences: InventoryItemOccurrence[] = [];\n\n occurrenceData.forEach((occurrence) => {\n if (!uniqueOccurrences.some((uniqueOccurrence) => deepEqual(uniqueOccurrence, occurrence))) {\n uniqueOccurrences.push(occurrence);\n }\n });\n\n return uniqueOccurrences;\n }, [occurrenceData]);\n\n return (\n \n \n \n {referenceHeaderText}\n {occurrenceHeaderText}\n \n \n \n {occurrences.length > 0 &&\n occurrences.map((occurrence) => (\n {\n setScriptureReference(occurrence.reference);\n }}\n >\n {`${Canon.bookNumberToEnglishName(occurrence.reference.bookNum)} ${occurrence.reference.chapterNum}:${occurrence.reference.verseNum}`}\n {occurrence.text}\n \n ))}\n \n
    \n );\n}\n\nexport default OccurrencesTable;\n","import React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Checkbox = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport default Checkbox;\n","import { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference } from 'platform-bible-utils';\n\n/* #region Types */\n\n/**\n * Status of items that appear in inventories. 'approved' and 'unapproved' items are defined in the\n * project's `Settings.xml`. All other items are defined as 'unknown'\n */\nexport type Status = 'approved' | 'unapproved' | 'unknown';\n\n/** Occurrence of item in inventory. Primarily used by table that shows occurrences */\nexport type InventoryItemOccurrence = {\n /** Reference to scripture where the item appears */\n reference: ScriptureReference;\n /** Snippet of scripture that contains the occurrence */\n text: string;\n};\n\n/** Data structure that contains all information on an item that is shown in an inventory */\nexport type InventoryTableData = {\n /**\n * The item (e.g. a character in the characters inventory, a marker in the marker inventory) In\n * most cases the array will only have one element. In case of additional items (e.g. the\n * preceding marker in the markers check), the primary item should be stored in the first index.\n * To show additional items in the inventory, make sure to configure the `additionalItemsLabels`\n * prop for the Inventory component\n */\n items: string[];\n /** The number of times this item occurs in the selected scope */\n count: number;\n /** The status of this item (see documentation for `Status` type for more information) */\n status: Status;\n /** Occurrences of this item in the scripture text for the selected scope */\n occurrences: InventoryItemOccurrence[];\n};\n\n/* #endregion */\n\n/* #region Functions */\n\n/**\n * Splits USFM string into shorter line-like segments\n *\n * @param text A single (likely very large) USFM string\n * @returns An array containing the input text, split into shorter segments\n */\nexport const getLinesFromUSFM = (text: string) => {\n // Splits on (CR)LF, CR, \\v, \\c and \\id\n return text.split(/(?:\\r?\\n|\\r)|(?=(?:\\\\(?:v|c|id)))/g);\n};\n\n/**\n * Extracts chapter or verse number from USFM strings that start with a \\c or \\v marker\n *\n * @param text USFM string that is expected to start with \\c or \\v marker\n * @returns Chapter or verse number if one is found. Else returns 0.\n */\nexport const getNumberFromUSFM = (text: string): number | undefined => {\n // Captures all digits that follow \\v or \\c markers followed by whitespace located at the start of a string\n const regex = /^\\\\[vc]\\s+(\\d+)/;\n const match = text.match(regex);\n\n if (match) {\n return +match[1];\n }\n return undefined;\n};\n\n/**\n * Gets book ID from USFM string that starts with the \\id marker, and returns book number for it\n *\n * @param text USFM string that is expected to start with \\id marker\n * @returns Book number corresponding to the \\id marker in the input text. Returns 0 if no marker is\n * found or the marker is not valid\n */\nexport const getBookNumFromId = (text: string): number => {\n // Captures all digits that follow an \\id marker followed by whitespace located at the start of a string\n const match = text.match(/^\\\\id\\s+([A-Za-z]+)/);\n if (match) {\n return Canon.bookIdToNumber(match[1]);\n }\n return 0;\n};\n\n/**\n * Gets the status for an item, typically used in the Inventory component\n *\n * @param item The item for which the status is being requested\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @returns The status for the specified item\n */\nexport const getStatusForItem = (\n item: string,\n approvedItems: string[],\n unapprovedItems: string[],\n): Status => {\n if (unapprovedItems.includes(item)) return 'unapproved';\n if (approvedItems.includes(item)) return 'approved';\n return 'unknown';\n};\n\n/* #endregion */\n","import React from 'react';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst toggleVariants = cva(\n 'pr-twp tw-inline-flex tw-items-center tw-justify-center tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors hover:tw-bg-muted hover:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=on]:tw-bg-accent data-[state=on]:tw-text-accent-foreground',\n {\n variants: {\n variant: {\n default: 'tw-bg-transparent',\n outline:\n 'tw-border tw-border-input tw-bg-transparent hover:tw-bg-accent hover:tw-text-accent-foreground',\n },\n size: {\n default: 'tw-h-10 tw-px-3',\n sm: 'tw-h-9 tw-px-2.5',\n lg: 'tw-h-11 tw-px-5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nconst Toggle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, variant, size, ...props }, ref) => (\n \n));\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\nexport { Toggle, toggleVariants };\n","import React from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { toggleVariants } from '@/components/shadcn-ui/toggle';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst ToggleGroupContext = React.createContext>({\n size: 'default',\n variant: 'default',\n});\n\nconst ToggleGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef &\n VariantProps\n>(({ className, variant, size, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n {children}\n \n \n );\n});\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;\n\nconst ToggleGroupItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef &\n VariantProps\n>(({ className, children, variant, size, ...props }, ref) => {\n const context = React.useContext(ToggleGroupContext);\n\n return (\n \n {children}\n \n );\n});\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;\n\nexport { ToggleGroup, ToggleGroupItem };\n","import { ColumnDef, SortDirection } from '@/components/advanced/data-table/data-table.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport { ToggleGroup, ToggleGroupItem } from '@/components/shadcn-ui/toggle-group';\nimport {\n ArrowDownIcon,\n ArrowUpDownIcon,\n ArrowUpIcon,\n CircleCheckIcon,\n CircleHelpIcon,\n CircleXIcon,\n} from 'lucide-react';\nimport { ReactNode } from 'react';\nimport { InventoryTableData, Status } from './inventory-utils';\n\n/**\n * Gets an icon that indicates the current sorting direction based on the provided input\n *\n * @param sortDirection Sorting direction. Can be ascending ('asc'), descending ('desc') or false (\n * i.e. not sorted)\n * @returns The appropriate sorting icon for the provided sorting direction\n */\nconst getSortingIcon = (sortDirection: false | SortDirection): ReactNode => {\n if (sortDirection === 'asc') {\n return ;\n }\n if (sortDirection === 'desc') {\n return ;\n }\n return ;\n};\n\n/**\n * Function that creates the item column for inventories\n *\n * @param itemLabel Localized label for the item column (e.g. 'Character', 'Repeated Word', etc.)\n * @returns Column that shows the inventory items. Should be used with the DataTable component\n */\nexport const inventoryItemColumn = (itemLabel: string): ColumnDef => {\n return {\n accessorKey: 'item',\n accessorFn: (row: InventoryTableData) => row.items[0],\n header: ({ column }) => (\n \n ),\n };\n};\n\n/**\n * Function that creates the additional item columns for inventories\n *\n * @param additionalItemLabel Localized label for the additional item column (e.g. 'Preceding\n * Marker')\n * @param additionalItemIndex Index that locates the desired item in the items array of the\n * inventory\n * @returns Column that shows additional inventory items. Should be used with the DataTable\n * component\n */\nexport const inventoryAdditionalItemColumn = (\n additionalItemLabel: string,\n additionalItemIndex: number,\n): ColumnDef => {\n return {\n accessorKey: `item${additionalItemIndex}`,\n accessorFn: (row: InventoryTableData) => row.items[additionalItemIndex],\n header: ({ column }) => (\n \n ),\n };\n};\n\n/**\n * Function that creates the count column for inventories. Should be used with the DataTable\n * component.\n *\n * @param itemLabel Localized label for the count column\n * @returns Column that shows the number of occurrences of the related inventory items\n */\nexport const inventoryCountColumn = (countLabel: string): ColumnDef => {\n return {\n accessorKey: 'count',\n header: ({ column }) => (\n
    \n \n
    \n ),\n cell: ({ row }) =>
    {row.getValue('count')}
    ,\n };\n};\n\n/**\n * Function that updates project settings when status for item(s) changes\n *\n * @param changedItems Array of items for which the status is being updated\n * @param newStatus The status that the items are being given\n * @param approvedItems Array of currently approved items\n * @param onApprovedItemsChange Callback function that stores the updated list of approved items\n * @param unapprovedItems Array of currently unapproved items\n * @param onUnapprovedItemsChange Callback function that stores the updated list of unapproved items\n */\nconst statusChangeHandler = (\n changedItems: string[],\n newStatus: Status,\n approvedItems: string[],\n onApprovedItemsChange: (items: string[]) => void,\n unapprovedItems: string[],\n onUnapprovedItemsChange: (items: string[]) => void,\n) => {\n let newApprovedItems: string[] = [...approvedItems];\n changedItems.forEach((item) => {\n if (newStatus === 'approved') {\n if (!newApprovedItems.includes(item)) {\n newApprovedItems.push(item);\n }\n } else {\n newApprovedItems = newApprovedItems.filter((validItem) => validItem !== item);\n }\n });\n onApprovedItemsChange(newApprovedItems);\n\n let newUnapprovedItems: string[] = [...unapprovedItems];\n changedItems.forEach((item) => {\n if (newStatus === 'unapproved') {\n if (!newUnapprovedItems.includes(item)) {\n newUnapprovedItems.push(item);\n }\n } else {\n newUnapprovedItems = newUnapprovedItems.filter((unapprovedItem) => unapprovedItem !== item);\n }\n });\n onUnapprovedItemsChange(newUnapprovedItems);\n};\n\n/**\n * Function that creates the status column for inventories. Should be used with the DataTable\n * component.\n *\n * @param statusLabel Localized label for the status column\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param onApprovedItemsChange Callback function that stores the updated list of approved items\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @param onUnapprovedItemsChange Callback function that stores the updated list of unapproved items\n * @returns Column that shows the status buttons for the related inventory item. The button for the\n * current status of the item is selected\n */\nexport const inventoryStatusColumn = (\n statusLabel: string,\n approvedItems: string[],\n onApprovedItemsChange: (items: string[]) => void,\n unapprovedItems: string[],\n onUnapprovedItemsChange: (items: string[]) => void,\n): ColumnDef => {\n return {\n accessorKey: 'status',\n header: ({ column }) => {\n return (\n
    \n \n
    \n );\n },\n cell: ({ row }) => {\n const status: Status = row.getValue('status');\n const item: string = row.getValue('item');\n return (\n \n \n statusChangeHandler(\n [item],\n 'approved',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"approved\"\n >\n \n \n \n statusChangeHandler(\n [item],\n 'unapproved',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"unapproved\"\n >\n \n \n \n statusChangeHandler(\n [item],\n 'unknown',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"unknown\"\n >\n \n \n \n );\n },\n };\n};\n","import DataTable, {\n ColumnDef,\n RowContents,\n RowSelectionState,\n TableContents,\n} from '@/components/advanced/data-table/data-table.component';\nimport OccurrencesTable from '@/components/advanced/inventory/occurrences-table.component';\nimport Checkbox from '@/components/shadcn-ui/checkbox';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Label } from '@/components/shadcn-ui/label';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport {\n deepEqual,\n LocalizedStringValue,\n ScriptureReference,\n substring,\n} from 'platform-bible-utils';\nimport { useEffect, useMemo, useState } from 'react';\nimport {\n getBookNumFromId,\n getLinesFromUSFM,\n getNumberFromUSFM,\n getStatusForItem,\n InventoryItemOccurrence,\n InventoryTableData,\n Status,\n} from './inventory-utils';\nimport { inventoryAdditionalItemColumn } from './inventory-columns';\n\n/**\n * Object containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const INVENTORY_STRING_KEYS = Object.freeze([\n '%webView_inventory_all%',\n '%webView_inventory_approved%',\n '%webView_inventory_unapproved%',\n '%webView_inventory_unknown%',\n '%webView_inventory_scope_currentBook%',\n '%webView_inventory_scope_chapter%',\n '%webView_inventory_scope_verse%',\n '%webView_inventory_filter_text%',\n '%webView_inventory_show_additional_items%',\n '%webView_inventory_occurrences_table_header_reference%',\n '%webView_inventory_occurrences_table_header_occurrence%',\n] as const);\n\nexport type InventoryLocalizedStrings = {\n [localizedInventoryKey in (typeof INVENTORY_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/** Scope of scripture that the inventory can operate on */\nexport type Scope = 'book' | 'chapter' | 'verse';\n\n/** Status values that the status filter can select from */\ntype StatusFilter = Status | 'all';\n\n/** Text labels for the inventory columns and the control components of additional inventory items */\ntype AdditionalItemsLabels = {\n checkboxText?: string;\n tableHeaders?: string[];\n};\n\n/**\n * Filters data that is shown in the DataTable section of the Inventory\n *\n * @param itemData All inventory items and their related information\n * @param statusFilter Allows filtering by status (i.e. show all items, or only items that are\n * 'approved', 'unapproved' or 'unknown')\n * @param textFilter Allows filtering by text. All items that include the filter text will be\n * selected.\n * @returns Array of items and their related information that are matched by the specified filters\n */\nconst filterItemData = (\n itemData: InventoryTableData[],\n statusFilter: StatusFilter,\n textFilter: string,\n): InventoryTableData[] => {\n let filteredItemData: InventoryTableData[] = itemData;\n\n if (statusFilter !== 'all') {\n filteredItemData = filteredItemData.filter(\n (item) =>\n (statusFilter === 'approved' && item.status === 'approved') ||\n (statusFilter === 'unapproved' && item.status === 'unapproved') ||\n (statusFilter === 'unknown' && item.status === 'unknown'),\n );\n }\n\n if (textFilter !== '')\n filteredItemData = filteredItemData.filter((item) => item.items[0].includes(textFilter));\n\n return filteredItemData;\n};\n\n/**\n * Turns array of strings into array of inventory items, along with their count and status\n *\n * @param text The source scripture text that is searched for inventory items\n * @param scriptureRef The scripture reference that the application is currently set to\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @param itemRegex Regular expression that describes what items this Inventory should extract from\n * the provided scripture text\n * @returns Array of inventory items, along with their count and status\n */\nconst createTableData = (\n text: string | undefined,\n scriptureRef: ScriptureReference,\n approvedItems: string[],\n unapprovedItems: string[],\n itemRegex: RegExp,\n): InventoryTableData[] => {\n if (!text) return [];\n\n const tableData: InventoryTableData[] = [];\n\n let currentBook: number | undefined = scriptureRef.bookNum;\n let currentChapter: number | undefined = scriptureRef.chapterNum;\n let currentVerse: number | undefined = scriptureRef.verseNum;\n\n const lines = getLinesFromUSFM(text);\n\n lines.forEach((line: string) => {\n if (line.startsWith('\\\\id')) {\n currentBook = getBookNumFromId(line);\n currentChapter = 0;\n currentVerse = 0;\n }\n if (line.startsWith('\\\\c')) {\n currentChapter = getNumberFromUSFM(line);\n currentVerse = 0;\n }\n if (line.startsWith('\\\\v')) {\n currentVerse = getNumberFromUSFM(line);\n if (currentChapter === 0) {\n currentChapter = scriptureRef.chapterNum;\n }\n }\n\n let match: RegExpExecArray | undefined = itemRegex.exec(line) ?? undefined;\n while (match) {\n const items: string[] = [];\n match.forEach((item) => items.push(item));\n const itemIndex = match.index;\n const existingItem = tableData.find((tableEntry) => deepEqual(tableEntry.items, items));\n const newReference: InventoryItemOccurrence = {\n reference: {\n bookNum: currentBook !== undefined ? currentBook : -1,\n chapterNum: currentChapter !== undefined ? currentChapter : -1,\n verseNum: currentVerse !== undefined ? currentVerse : -1,\n },\n text: substring(line, Math.max(0, itemIndex - 25), Math.min(itemIndex + 25, line.length)),\n };\n if (existingItem) {\n existingItem.count += 1;\n existingItem.occurrences.push(newReference);\n } else {\n const newItem: InventoryTableData = {\n items,\n count: 1,\n status: getStatusForItem(items[0], approvedItems, unapprovedItems),\n occurrences: [newReference],\n };\n tableData.push(newItem);\n }\n\n match = itemRegex.exec(line) ?? undefined;\n }\n });\n\n return tableData;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: InventoryLocalizedStrings,\n key: keyof InventoryLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\n/** Props for the Inventory component */\ntype InventoryProps = {\n /** The scripture reference that the application is currently set to */\n scriptureReference: ScriptureReference;\n /** Callback function that is executed when the scripture reference is changed */\n setScriptureReference: (scriptureReference: ScriptureReference) => void;\n /**\n * Object with all localized strings that the Inventory needs to work well across multiple\n * languages. When using this component with Platform.Bible, you can import\n * `INVENTORY_STRING_KEYS` from this library, pass it in to the Platform's localization hook, and\n * pass the localized keys that are returned by the hook into this prop.\n */\n localizedStrings: InventoryLocalizedStrings;\n /**\n * The logic that finds the desired items in the source text. This can either be a Regular\n * expression that captures one or multiple items (preferred), or a custom function that builds\n * and return an InventoryDataTable[] manually. Note: In case the logic captures more than one\n * item (i.e. InventoryTableData.items has a length greater than 1), you must provide text labels\n * for the related columns and control elements to show by setting the `additionalItemsLabels`\n * prop\n */\n extractItems:\n | RegExp\n | ((\n text: string | undefined,\n scriptureRef: ScriptureReference,\n approvedItems: string[],\n unapprovedItems: string[],\n ) => InventoryTableData[]);\n /**\n * Text labels for control elements and additional column headers in case your Inventory has more\n * than one item to show (e.g. The 'Preceding Marker' in the Markers Inventory)\n */\n additionalItemsLabels?: AdditionalItemsLabels;\n /** Array of approved items, typically as defined in `Settings.xml` */\n approvedItems: string[];\n /** Array of unapproved items, typically as defined in `Settings.xml` */\n unapprovedItems: string[];\n /** The source scripture text that is searched for in inventory items */\n text: string | undefined;\n /** Scope of scripture that the inventory will operate on */\n scope: Scope;\n /** Callback function that is executed when the scope is changed from the Inventory */\n onScopeChange: (scope: Scope) => void;\n /**\n * Column definitions for the Inventory data table. The most commonly used column definitions are\n * pre-configured for your convenience and can be imported (e.g. inventoryItemColumn,\n * inventoryAdditionalItemColumn inventoryCountColumn, and inventoryStatusColumn). If you need any\n * other columns you can add these yourself\n */\n columns: ColumnDef[];\n};\n\n/** Inventory component that is used to view and control the status of provided project settings */\nexport default function Inventory({\n scriptureReference,\n setScriptureReference,\n localizedStrings,\n extractItems,\n additionalItemsLabels,\n approvedItems,\n unapprovedItems,\n text,\n scope,\n onScopeChange,\n columns,\n}: InventoryProps) {\n const allItemsText = localizeString(localizedStrings, '%webView_inventory_all%');\n const approvedItemsText = localizeString(localizedStrings, '%webView_inventory_approved%');\n const unapprovedItemsText = localizeString(localizedStrings, '%webView_inventory_unapproved%');\n const unknownItemsText = localizeString(localizedStrings, '%webView_inventory_unknown%');\n const scopeBookText = localizeString(localizedStrings, '%webView_inventory_scope_currentBook%');\n const scopeChapterText = localizeString(localizedStrings, '%webView_inventory_scope_chapter%');\n const scopeVerseText = localizeString(localizedStrings, '%webView_inventory_scope_verse%');\n const filterText = localizeString(localizedStrings, '%webView_inventory_filter_text%');\n const showAdditionalItemsText = localizeString(\n localizedStrings,\n '%webView_inventory_show_additional_items%',\n );\n\n const [showAdditionalItems, setShowAdditionalItems] = useState(false);\n const [statusFilter, setStatusFilter] = useState('all');\n const [textFilter, setTextFilter] = useState('');\n const [selectedItem, setSelectedItem] = useState([]);\n\n const tableData: InventoryTableData[] = useMemo(() => {\n if (!text) return [];\n if (extractItems instanceof RegExp)\n return createTableData(\n text,\n scriptureReference,\n approvedItems,\n unapprovedItems,\n extractItems,\n );\n return extractItems(text, scriptureReference, approvedItems, unapprovedItems);\n }, [text, extractItems, scriptureReference, approvedItems, unapprovedItems]);\n\n const reducedTableData: InventoryTableData[] = useMemo(() => {\n if (showAdditionalItems) return tableData;\n\n const newTableData: InventoryTableData[] = [];\n\n tableData.forEach((tableEntry) => {\n const firstItem = tableEntry.items[0];\n\n const existingEntry = newTableData.find(\n (newTableEntry) => newTableEntry.items[0] === firstItem,\n );\n\n if (existingEntry) {\n existingEntry.count += tableEntry.count;\n existingEntry.occurrences = existingEntry.occurrences.concat(tableEntry.occurrences);\n } else {\n newTableData.push({\n items: [firstItem],\n count: tableEntry.count,\n occurrences: tableEntry.occurrences,\n status: tableEntry.status,\n });\n }\n });\n\n return newTableData;\n }, [showAdditionalItems, tableData]);\n\n const filteredTableData: InventoryTableData[] = useMemo(() => {\n return filterItemData(reducedTableData, statusFilter, textFilter);\n }, [reducedTableData, statusFilter, textFilter]);\n\n const allColumns: ColumnDef[] = useMemo(() => {\n if (!showAdditionalItems) return columns;\n\n const numberOfAdditionalItems = additionalItemsLabels?.tableHeaders?.length;\n if (!numberOfAdditionalItems) return columns;\n\n const additionalColumns: ColumnDef[] = [];\n\n for (let index = 0; index < numberOfAdditionalItems; index++) {\n additionalColumns.push(\n inventoryAdditionalItemColumn(\n additionalItemsLabels?.tableHeaders?.[index] || 'Additional Item',\n index + 1,\n ),\n );\n }\n\n return [...additionalColumns, ...columns];\n }, [additionalItemsLabels?.tableHeaders, columns, showAdditionalItems]);\n\n useEffect(() => {\n setSelectedItem([]);\n }, [filteredTableData]);\n\n const rowClickHandler = (\n row: RowContents,\n table: TableContents,\n ) => {\n table.setRowSelection(() => {\n const newSelection: RowSelectionState = {};\n newSelection[row.index] = true;\n return newSelection;\n });\n\n setSelectedItem(row.original.items);\n };\n\n const handleScopeChange = (value: string) => {\n if (value === 'book' || value === 'chapter' || value === 'verse') {\n onScopeChange(value);\n } else {\n throw new Error(`Invalid scope value: ${value}`);\n }\n };\n\n const handleStatusFilterChange = (value: string) => {\n if (value === 'all' || value === 'approved' || value === 'unapproved' || value === 'unknown') {\n setStatusFilter(value);\n } else {\n throw new Error(`Invalid status filter value: ${value}`);\n }\n };\n\n const occurrenceData: InventoryItemOccurrence[] = useMemo(() => {\n if (reducedTableData.length === 0 || selectedItem.length === 0) return [];\n const occurrence = reducedTableData.filter((tableEntry: InventoryTableData) => {\n return deepEqual(\n showAdditionalItems ? tableEntry.items : [tableEntry.items[0]],\n selectedItem,\n );\n });\n if (occurrence.length > 1) throw new Error('Selected item is not unique');\n return occurrence[0].occurrences;\n }, [selectedItem, showAdditionalItems, reducedTableData]);\n\n return (\n
    \n
    \n handleStatusFilterChange(value)}\n defaultValue={statusFilter}\n >\n \n \n \n \n {allItemsText}\n {approvedItemsText}\n {unapprovedItemsText}\n {unknownItemsText}\n \n \n \n {\n setTextFilter(event.target.value);\n }}\n />\n {additionalItemsLabels && (\n
    \n {\n setSelectedItem([]);\n setShowAdditionalItems(checked);\n }}\n />\n \n
    \n )}\n
    \n
    \n \n
    \n {occurrenceData.length > 0 && (\n
    \n \n
    \n )}\n
    \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/components/shadcn-ui/command';\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Check, ChevronsUpDown, Star } from 'lucide-react';\nimport { ReactNode, useCallback, useMemo, useState } from 'react';\n\nexport type MultiSelectComboBoxEntry = {\n value: string;\n label: string;\n starred?: boolean;\n};\n\nexport interface MultiSelectComboBoxProps {\n entries: MultiSelectComboBoxEntry[];\n getEntriesCount?: (option: MultiSelectComboBoxEntry) => number;\n selected: string[];\n onChange: (values: string[]) => void;\n placeholder: string;\n commandEmptyMessage?: string;\n customSelectedText?: string;\n sortSelected?: boolean;\n icon?: ReactNode;\n className?: string;\n}\n\nfunction MultiSelectComboBox({\n entries,\n getEntriesCount = undefined,\n selected,\n onChange,\n placeholder,\n commandEmptyMessage = 'No entries found',\n customSelectedText,\n sortSelected = false,\n icon = undefined,\n className = undefined,\n}: MultiSelectComboBoxProps) {\n const [open, setOpen] = useState(false);\n\n const handleSelect = useCallback(\n (label: string) => {\n const value = entries.find((entry) => entry.label === label)?.value;\n if (!value) return;\n onChange(\n selected.includes(value) ? selected.filter((item) => item !== value) : [...selected, value],\n );\n },\n [entries, selected, onChange],\n );\n\n const getPlaceholderText = () => {\n if (customSelectedText) return customSelectedText;\n return placeholder;\n };\n\n const sortedOptions = useMemo(() => {\n if (!sortSelected) return entries;\n\n const starredItems = entries\n .filter((opt) => opt.starred)\n .sort((a, b) => a.label.localeCompare(b.label));\n const nonStarredItems = entries\n .filter((opt) => !opt.starred)\n .sort((a, b) => {\n const aSelected = selected.includes(a.value);\n const bSelected = selected.includes(b.value);\n if (aSelected && !bSelected) return -1;\n if (!aSelected && bSelected) return 1;\n return a.label.localeCompare(b.label);\n });\n\n return [...starredItems, ...nonStarredItems];\n }, [entries, selected, sortSelected]);\n\n return (\n
    \n \n \n 0 && selected.length < entries.length && 'tw-border-primary',\n 'tw-group',\n )}\n >\n
    \n
    \n \n {icon}\n \n
    \n \n
    {getPlaceholderText()}
    \n
    \n
    \n \n \n \n \n \n \n \n {commandEmptyMessage}\n \n {sortedOptions.map((option) => {\n const count: number | undefined = getEntriesCount\n ? getEntriesCount(option)\n : undefined;\n return (\n \n
    \n \n
    \n
    \n {option.starred && }\n
    \n
    {option.label}
    \n {getEntriesCount && (\n
    {count}
    \n )}\n \n );\n })}\n
    \n
    \n
    \n
    \n \n
    \n );\n}\n\nexport default MultiSelectComboBox;\n","import { Button } from '@/components/shadcn-ui/button';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Search, X } from 'lucide-react';\nimport { useState } from 'react';\n\n/** Props for the SearchBar component. */\nexport type SearchBarProps = {\n /**\n * Callback fired to handle the search query when button pressed\n *\n * @param searchQuery\n */\n onSearch: (searchQuery: string) => void;\n\n /** Optional string that appears in the search bar without a search string */\n placeholder?: string;\n\n /** Optional boolean to set the input base to full width */\n isFullWidth?: boolean;\n\n /** Additional css classes to help with unique styling of the search bar */\n className?: string;\n};\n\nexport default function SearchBar({\n onSearch,\n placeholder,\n isFullWidth,\n className,\n}: SearchBarProps) {\n const [searchQuery, setSearchQuery] = useState('');\n\n const handleInputChange = (searchString: string) => {\n setSearchQuery(searchString);\n onSearch(searchString);\n };\n\n const dir: Direction = readDirection();\n\n return (\n
    \n \n handleInputChange(e.target.value)}\n />\n {searchQuery && (\n {\n handleInputChange('');\n }}\n >\n \n Clear\n \n )}\n
    \n );\n}\n","// adapted from: https://github.com/shadcn-ui/ui/discussions/752\n\n'use client';\n\nimport { TabsContentProps, TabsListProps, TabsTriggerProps } from '@/components/shadcn-ui/tabs';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport React from 'react';\n\nexport type VerticalTabsProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type LeftTabsTriggerProps = TabsTriggerProps & {\n value: string;\n ref?: React.Ref;\n};\n\nexport const VerticalTabs = React.forwardRef<\n React.ElementRef,\n VerticalTabsProps\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\n\nVerticalTabs.displayName = TabsPrimitive.List.displayName;\n\nexport const VerticalTabsList = React.forwardRef<\n React.ElementRef,\n TabsListProps\n>(({ className, ...props }, ref) => (\n \n));\nVerticalTabsList.displayName = TabsPrimitive.List.displayName;\n\nexport const VerticalTabsTrigger = React.forwardRef<\n React.ElementRef,\n LeftTabsTriggerProps\n>(({ className, ...props }, ref) => (\n \n));\n\nexport const VerticalTabsContent = React.forwardRef<\n React.ElementRef,\n TabsContentProps\n>(({ className, ...props }, ref) => (\n \n));\nVerticalTabsContent.displayName = TabsPrimitive.Content.displayName;\n","import SearchBar from '@/components/basics/search-bar.component';\nimport {\n VerticalTabs,\n VerticalTabsContent,\n VerticalTabsList,\n VerticalTabsTrigger,\n} from '@/components/basics/tabs-vertical';\nimport { ReactNode } from 'react';\n\nexport type TabKeyValueContent = {\n key: string;\n value: string;\n content: ReactNode;\n};\n\nexport type TabNavigationContentSearchProps = {\n /** List of values and keys for each tab this component should provide */\n tabList: TabKeyValueContent[];\n\n /** Handler to run when the value of the search bar changes */\n onSearch: (searchQuery: string) => void;\n\n /** Optional placeholder for the search bar */\n searchPlaceholder?: string;\n\n /** Optional title to include in the header */\n headerTitle?: string;\n\n /** Optional className to modify the search input */\n searchClassName?: string;\n};\n\nexport default function TabNavigationContentSearch({\n tabList,\n onSearch,\n searchPlaceholder,\n headerTitle,\n searchClassName,\n}: TabNavigationContentSearchProps) {\n return (\n
    \n
    \n {headerTitle ?

    {headerTitle}

    : ''}\n \n
    \n \n \n {tabList.map((tab) => (\n \n {tab.value}\n \n ))}\n \n {tabList.map((tab) => (\n \n {tab.content}\n \n ))}\n \n
    \n );\n}\n","import React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Separator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n \n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nfunction Skeleton({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\n\nexport { Skeleton };\n","import React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst TooltipProvider = TooltipPrimitive.Provider;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { VariantProps, cva } from 'class-variance-authority';\nimport { PanelLeft, PanelRight } from 'lucide-react';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Separator } from '@/components/shadcn-ui/separator';\nimport { Skeleton } from '@/components/shadcn-ui/skeleton';\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '@/components/shadcn-ui/tooltip';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\n/**\n * CUSTOM: Changes from the original code from Shadcn- Removed uses of useIsMobile, Sheet, and\n * SheetContent. Also removed the parts setting COOKIES.\n */\n\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_ICON = '3rem';\n// CUSTOM: Commented this out pending a discussion with UX about keyboard shortcuts\n// const SIDEBAR_KEYBOARD_SHORTCUT = 'b';\n\ntype Side = 'primary' | 'secondary';\n\ntype SidebarContextProps = {\n state: 'expanded' | 'collapsed';\n open: boolean;\n setOpen: (open: boolean) => void;\n toggleSidebar: () => void;\n // CUSTOM: this was moved from Sidebar to SidebarProvider to also be able to flip the icon based on the side\n side: Side;\n};\n\nconst SidebarContext = React.createContext(undefined);\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext);\n if (!context) {\n throw new Error('useSidebar must be used within a SidebarProvider.');\n }\n\n return context;\n}\n\nconst SidebarProvider = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n defaultOpen?: boolean;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n side?: Side;\n }\n>(\n (\n {\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n children,\n side = 'primary',\n ...props\n },\n ref,\n ) => {\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = React.useState(defaultOpen);\n const isOpen = openProp ?? _open;\n const setOpen = React.useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === 'function' ? value(isOpen) : value;\n if (setOpenProp) {\n setOpenProp(openState);\n } else {\n _setOpen(openState);\n }\n },\n [setOpenProp, isOpen],\n );\n\n // Helper to toggle the sidebar.\n const toggleSidebar = React.useCallback(() => {\n return setOpen((open) => !open);\n }, [setOpen]);\n\n // CUSTOM: Commented this out pending a discussion with UX about keyboard shortcuts\n // Adds a keyboard shortcut to toggle the sidebar.\n // React.useEffect(() => {\n // const handleKeyDown = (event: KeyboardEvent) => {\n // if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n // event.preventDefault();\n // toggleSidebar();\n // }\n // };\n\n // window.addEventListener('keydown', handleKeyDown);\n // return () => window.removeEventListener('keydown', handleKeyDown);\n // }, [toggleSidebar]);\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = isOpen ? 'expanded' : 'collapsed';\n\n const dir: Direction = readDirection();\n const oppositeSide: Side = side === 'primary' ? 'secondary' : 'primary';\n const directionAwareSide = dir === 'ltr' ? side : oppositeSide;\n\n const contextValue = React.useMemo(\n () => ({\n state,\n open: isOpen,\n setOpen,\n toggleSidebar,\n side: directionAwareSide,\n }),\n [state, isOpen, setOpen, toggleSidebar, directionAwareSide],\n );\n\n return (\n \n \n \n {children}\n
    \n \n \n );\n },\n);\nSidebarProvider.displayName = 'SidebarProvider';\n\nconst Sidebar = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n variant?: 'sidebar' | 'floating' | 'inset';\n collapsible?: 'offcanvas' | 'icon' | 'none';\n }\n>(({ variant = 'sidebar', collapsible = 'offcanvas', className, children, ...props }, ref) => {\n const context = useSidebar();\n\n if (collapsible === 'none') {\n return (\n \n {children}\n
    \n );\n }\n\n return (\n \n {/* This is what handles the sidebar gap on desktop */}\n \n \n \n {children}\n
    \n
    \n
    \n );\n});\nSidebar.displayName = 'Sidebar';\n\nconst SidebarTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, onClick, ...props }, ref) => {\n const context = useSidebar();\n\n return (\n {\n onClick?.(event);\n context.toggleSidebar();\n }}\n {...props}\n >\n {context.side === 'primary' ? : }\n Toggle Sidebar\n \n );\n});\nSidebarTrigger.displayName = 'SidebarTrigger';\n\nconst SidebarRail = React.forwardRef>(\n ({ className, ...props }, ref) => {\n const { toggleSidebar } = useSidebar();\n\n return (\n \n );\n },\n);\nSidebarRail.displayName = 'SidebarRail';\n\nconst SidebarInset = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarInset.displayName = 'SidebarInset';\n\nconst SidebarInput = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, ...props }, ref) => {\n return (\n \n );\n});\nSidebarInput.displayName = 'SidebarInput';\n\nconst SidebarHeader = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarHeader.displayName = 'SidebarHeader';\n\nconst SidebarFooter = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarFooter.displayName = 'SidebarFooter';\n\nconst SidebarSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, ...props }, ref) => {\n return (\n \n );\n});\nSidebarSeparator.displayName = 'SidebarSeparator';\n\nconst SidebarContent = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarContent.displayName = 'SidebarContent';\n\nconst SidebarGroup = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarGroup.displayName = 'SidebarGroup';\n\nconst SidebarGroupLabel = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'div';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n 'group-data-[collapsible=icon]:tw--mt-8 group-data-[collapsible=icon]:tw-opacity-0',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupLabel.displayName = 'SidebarGroupLabel';\n\nconst SidebarGroupAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:tw-absolute after:tw--inset-2 after:md:tw-hidden',\n 'group-data-[collapsible=icon]:tw-hidden',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupAction.displayName = 'SidebarGroupAction';\n\nconst SidebarGroupContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarGroupContent.displayName = 'SidebarGroupContent';\n\nconst SidebarMenu = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenu.displayName = 'SidebarMenu';\n\nconst SidebarMenuItem = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuItem.displayName = 'SidebarMenuItem';\n\nconst sidebarMenuButtonVariants = cva(\n // CUSTOM: Removed data-[active=true]:tw-bg-sidebar-accent\n 'tw-peer/menu-button tw-flex tw-w-full tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-p-2 tw-text-left tw-text-sm tw-outline-none tw-ring-sidebar-ring tw-transition-[width,height,padding] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 tw-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 data-[active=true]:tw-font-medium data-[active=true]:tw-text-sidebar-accent-foreground data-[state=open]:hover:tw-bg-sidebar-accent data-[state=open]:hover:tw-text-sidebar-accent-foreground group-data-[collapsible=icon]:tw-!size-8 group-data-[collapsible=icon]:tw-!p-2 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0',\n {\n variants: {\n variant: {\n default: 'hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground',\n outline:\n 'tw-bg-background tw-shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground hover:tw-shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n default: 'tw-h-8 tw-text-sm',\n sm: 'tw-h-7 tw-text-xs',\n lg: 'tw-h-12 tw-text-sm group-data-[collapsible=icon]:tw-!p-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nconst SidebarMenuButton = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & {\n asChild?: boolean;\n isActive?: boolean;\n tooltip?: string | React.ComponentProps;\n } & VariantProps\n>(\n (\n {\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'default',\n tooltip,\n className,\n ...props\n },\n ref,\n ) => {\n const Comp = asChild ? Slot : 'button';\n const { state } = useSidebar();\n\n const button = (\n \n );\n\n if (!tooltip) {\n return button;\n }\n\n if (typeof tooltip === 'string') {\n // eslint-disable-next-line no-param-reassign\n tooltip = {\n children: tooltip,\n };\n }\n\n return (\n \n {button}\n \n );\n },\n);\nSidebarMenuButton.displayName = 'SidebarMenuButton';\n\nconst SidebarMenuAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & {\n asChild?: boolean;\n showOnHover?: boolean;\n }\n>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:tw-absolute after:tw--inset-2 after:md:tw-hidden',\n 'tw-peer-data-[size=sm]/menu-button:top-1',\n 'tw-peer-data-[size=default]/menu-button:top-1.5',\n 'tw-peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:tw-hidden',\n showOnHover &&\n 'tw-group-focus-within/menu-item:opacity-100 tw-group-hover/menu-item:opacity-100 tw-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:tw-opacity-100 md:tw-opacity-0',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuAction.displayName = 'SidebarMenuAction';\n\nconst SidebarMenuBadge = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuBadge.displayName = 'SidebarMenuBadge';\n\nconst SidebarMenuSkeleton = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n showIcon?: boolean;\n }\n>(({ className, showIcon = false, ...props }, ref) => {\n // Random width between 50 to 90%.\n const width = React.useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`;\n }, []);\n\n return (\n \n {showIcon && (\n \n )}\n \n
    \n );\n});\nSidebarMenuSkeleton.displayName = 'SidebarMenuSkeleton';\n\nconst SidebarMenuSub = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuSub.displayName = 'SidebarMenuSub';\n\nconst SidebarMenuSubItem = React.forwardRef>(\n ({ ...props }, ref) =>
  • ,\n);\nSidebarMenuSubItem.displayName = 'SidebarMenuSubItem';\n\nconst SidebarMenuSubButton = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentProps<'a'> & {\n asChild?: boolean;\n size?: 'sm' | 'md';\n isActive?: boolean;\n }\n>(({ asChild = false, size = 'md', isActive, className, ...props }, ref) => {\n const Comp = asChild ? Slot : 'a';\n\n return (\n span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0 [&>svg]:tw-text-sidebar-accent-foreground',\n 'data-[active=true]:tw-bg-sidebar-accent data-[active=true]:tw-text-sidebar-accent-foreground',\n size === 'sm' && 'tw-text-xs',\n size === 'md' && 'tw-text-sm',\n 'group-data-[collapsible=icon]:tw-hidden',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuSubButton.displayName = 'SidebarMenuSubButton';\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n};\n","import ComboBox, { ComboBoxOption } from '@/components/basics/combo-box.component';\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuItem,\n SidebarMenuButton,\n} from '@/components/shadcn-ui/sidebar';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type SelectedSettingsSidebarItem = {\n label: string;\n projectId?: string;\n};\n\nexport type ProjectInfo = { projectId: string; projectName: string };\n\nexport type SettingsSidebarProps = {\n /** Optional id for testing */\n id?: string;\n\n /** Extension labels from contribution */\n extensionLabels: string[];\n\n /** Project names and ids */\n projectInfo: ProjectInfo[];\n\n /** Handler for selecting a sidebar item */\n handleSelectSidebarItem: (key: string, projectId?: string) => void;\n\n /** The current selected value in the sidebar */\n selectedSidebarItem: SelectedSettingsSidebarItem;\n\n /** Label for the group of extensions setting groups */\n extensionsSidebarGroupLabel: string;\n\n /** Label for the group of projects settings */\n projectsSidebarGroupLabel: string;\n\n /** Placeholder text for the button */\n buttonPlaceholderText: string;\n};\n\nexport default function SettingsSidebar({\n id,\n extensionLabels,\n projectInfo,\n handleSelectSidebarItem,\n selectedSidebarItem,\n extensionsSidebarGroupLabel,\n projectsSidebarGroupLabel,\n buttonPlaceholderText,\n}: SettingsSidebarProps) {\n const handleSelectItem = useCallback(\n (item: string, projectId?: string) => {\n handleSelectSidebarItem(item, projectId);\n },\n [handleSelectSidebarItem],\n );\n\n const getProjectNameFromProjectId = useCallback(\n (projectId: string) => {\n const project = projectInfo.find((info) => info.projectId === projectId);\n return project ? project.projectName : projectId;\n },\n [projectInfo],\n );\n\n const getIsActive: (label: string) => boolean = useCallback(\n (label: string) => !selectedSidebarItem.projectId && label === selectedSidebarItem.label,\n [selectedSidebarItem],\n );\n\n return (\n \n \n \n \n {extensionsSidebarGroupLabel}\n \n \n \n {extensionLabels.map((label) => (\n \n handleSelectItem(label)}\n isActive={getIsActive(label)}\n >\n {label}\n \n \n ))}\n \n \n \n \n \n {projectsSidebarGroupLabel}\n \n \n info.projectId)}\n getOptionLabel={(projectId: ComboBoxOption) => {\n // This function expects a ComboBoxOption, but we know it is a string\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n return getProjectNameFromProjectId(projectId as string);\n }}\n buttonPlaceholder={buttonPlaceholderText}\n onChange={(projectId: string) => {\n const selectedProjectName = getProjectNameFromProjectId(projectId);\n handleSelectItem(selectedProjectName, projectId);\n }}\n value={selectedSidebarItem?.projectId ?? undefined}\n />\n \n \n \n \n );\n}\n","import { SidebarInset, SidebarProvider } from '@/components/shadcn-ui/sidebar';\nimport { PropsWithChildren } from 'react';\nimport SearchBar from '@/components/basics/search-bar.component';\nimport SettingsSidebar, { SettingsSidebarProps } from './settings-sidebar.component';\n\nexport type SettingsSidebarContentSearchProps = SettingsSidebarProps &\n PropsWithChildren & {\n /** Optional id for testing */\n id?: string;\n\n /** Handler to run when the value of the search bar changes */\n onSearch: (searchQuery: string) => void;\n };\n\nexport default function SettingsSidebarContentSearch({\n id,\n extensionLabels,\n projectInfo,\n children,\n handleSelectSidebarItem,\n selectedSidebarItem,\n onSearch,\n extensionsSidebarGroupLabel,\n projectsSidebarGroupLabel,\n buttonPlaceholderText,\n}: SettingsSidebarContentSearchProps) {\n return (\n
    \n
    \n \n
    \n \n \n {children}\n \n
    \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Canon } from '@sillsdev/scripture';\nimport {\n Cell,\n ColumnDef,\n flexRender,\n getCoreRowModel,\n getExpandedRowModel,\n getGroupedRowModel,\n getSortedRowModel,\n GroupingState,\n Row,\n RowSelectionState,\n SortingState,\n useReactTable,\n} from '@tanstack/react-table';\nimport '@/components/advanced/scripture-results-viewer/scripture-results-viewer.component.css';\nimport {\n compareScrRefs,\n formatScrRef,\n ScriptureSelection,\n scrRefToBBBCCCVVV,\n} from 'platform-bible-utils';\nimport { MouseEvent, useEffect, useMemo, useState } from 'react';\nimport { ChevronDown, ChevronLeft, ChevronRight } from 'lucide-react';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\n/**\n * Information (e.g., a checking error or some other type of \"transient\" annotation) about something\n * noteworthy at a specific place in an instance of the Scriptures.\n */\nexport type ScriptureItemDetail = ScriptureSelection & {\n /**\n * Text of the error, note, etc. In the future, we might want to support something more than just\n * text so that a JSX element could be provided with a link or some other controls related to the\n * issue being reported.\n */\n detail: string;\n};\n\n/**\n * A uniquely identifiable source of results that can be displayed in the ScriptureResultsViewer.\n * Generally, the source will be a particular Scripture check, but there may be other types of\n * sources.\n */\nexport type ResultsSource = {\n /**\n * Uniquely identifies the source.\n *\n * @type {string}\n */\n id: string;\n\n /**\n * Name (potentially localized) of the source, suitable for display in the UI.\n *\n * @type {string}\n */\n displayName: string;\n};\n\nexport type ScriptureSrcItemDetail = ScriptureItemDetail & {\n /** Source/type of detail. Can be used for grouping. */\n source: ResultsSource;\n};\n\n/**\n * Represents a set of results keyed by Scripture reference. Generally, the source will be a\n * particular Scripture check, but this type also allows for other types of uniquely identifiable\n * sources.\n */\nexport type ResultsSet = {\n /**\n * The backing source associated with this set of results.\n *\n * @type {ResultsSource}\n */\n source: ResultsSource;\n\n /**\n * Array of Scripture item details (messages keyed by Scripture reference).\n *\n * @type {ScriptureItemDetail[]}\n */\n data: ScriptureItemDetail[];\n};\n\nconst scrBookColId = 'scrBook';\nconst scrRefColId = 'scrRef';\nconst typeColId = 'source';\nconst detailsColId = 'details';\n\nconst defaultScrRefColumnName = 'Scripture Reference';\nconst defaultScrBookGroupName = 'Scripture Book';\nconst defaultTypeColumnName = 'Type';\nconst defaultDetailsColumnName = 'Details';\n\nexport type ScriptureResultsViewerColumnInfo = {\n /** Optional header to display for the Reference column. Default value: 'Scripture Reference'. */\n scriptureReferenceColumnName?: string;\n\n /** Optional text to display to refer to the Scripture book group. Default value: 'Scripture Book'. */\n scriptureBookGroupName?: string;\n\n /** Optional header to display for the Type column. Default value: 'Type'. */\n typeColumnName?: string;\n\n /** Optional header to display for the Details column. Default value: 'Details' */\n detailsColumnName?: string;\n};\n\nexport type ScriptureResultsViewerProps = ScriptureResultsViewerColumnInfo & {\n /** Groups of ScriptureItemDetail objects from particular sources (e.g., Scripture checks) */\n sources: ResultsSet[];\n\n /** Flag indicating whether to display column headers. Default is false. */\n showColumnHeaders?: boolean;\n\n /** Flag indicating whether to display source column. Default is false. */\n showSourceColumn?: boolean;\n\n /** Callback function to notify when a row is selected */\n onRowSelected?: (selectedRow: ScriptureSrcItemDetail | undefined) => void;\n};\n\nfunction getColumns(\n colInfo?: ScriptureResultsViewerColumnInfo,\n showSourceColumn?: boolean,\n): ColumnDef[] {\n const showSrcCol = showSourceColumn ?? false;\n return [\n {\n accessorFn: (row) =>\n `${Canon.bookNumberToId(row.start.bookNum)} ${row.start.chapterNum}:${row.start.verseNum}`,\n id: scrBookColId,\n header: colInfo?.scriptureReferenceColumnName ?? defaultScrRefColumnName,\n cell: (info) => {\n const row = info.row.original;\n if (info.row.getIsGrouped()) {\n return Canon.bookNumberToEnglishName(row.start.bookNum);\n }\n return info.row.groupingColumnId === scrBookColId ? formatScrRef(row.start) : undefined;\n },\n getGroupingValue: (row) => row.start.bookNum,\n sortingFn: (a, b) => {\n return compareScrRefs(a.original.start, b.original.start);\n },\n enableGrouping: true,\n },\n {\n accessorFn: (row) => formatScrRef(row.start),\n id: scrRefColId,\n header: undefined,\n cell: (info) => {\n const row = info.row.original;\n return info.row.getIsGrouped() ? undefined : formatScrRef(row.start);\n },\n sortingFn: (a, b) => {\n return compareScrRefs(a.original.start, b.original.start);\n },\n enableGrouping: false,\n },\n {\n accessorFn: (row) => row.source.displayName,\n id: typeColId,\n header: showSrcCol ? (colInfo?.typeColumnName ?? defaultTypeColumnName) : undefined,\n cell: (info) => (showSrcCol || info.row.getIsGrouped() ? info.getValue() : undefined),\n getGroupingValue: (row) => row.source.id,\n sortingFn: (a, b) =>\n a.original.source.displayName.localeCompare(b.original.source.displayName),\n enableGrouping: true,\n },\n {\n accessorFn: (row) => row.detail,\n id: detailsColId,\n header: colInfo?.detailsColumnName ?? defaultDetailsColumnName,\n cell: (info) => info.getValue(),\n enableGrouping: false,\n },\n ];\n}\n\nconst toRefOrRange = (scriptureSelection: ScriptureSelection) => {\n if (!('offset' in scriptureSelection.start))\n throw new Error('No offset available in range start');\n if (scriptureSelection.end && !('offset' in scriptureSelection.end))\n throw new Error('No offset available in range end');\n const { offset: offsetStart } = scriptureSelection.start;\n let offsetEnd: number = 0;\n if (scriptureSelection.end) ({ offset: offsetEnd } = scriptureSelection.end);\n if (\n !scriptureSelection.end ||\n compareScrRefs(scriptureSelection.start, scriptureSelection.end) === 0\n )\n return `${scrRefToBBBCCCVVV(scriptureSelection.start)}+${offsetStart}`;\n return `${scrRefToBBBCCCVVV(scriptureSelection.start)}+${offsetStart}-${scrRefToBBBCCCVVV(scriptureSelection.end)}+${offsetEnd}`;\n};\n\nconst getRowKey = (row: ScriptureSrcItemDetail) =>\n `${toRefOrRange({ start: row.start, end: row.end })} ${row.source.displayName} ${row.detail}`;\n\n/**\n * Component to display a combined list of detailed items from one or more sources, where the items\n * are keyed primarily by Scripture reference. This is particularly useful for displaying a list of\n * results from Scripture checks, but more generally could be used to display any \"results\" from any\n * source(s). The component allows for grouping by Scripture book, source, or both. By default, it\n * displays somewhat \"tree-like\" which allows it to be more horizontally compact and intuitive. But\n * it also has the option of displaying as a traditional table with column headings (with or without\n * the source column showing).\n */\nexport default function ScriptureResultsViewer({\n sources,\n showColumnHeaders = false,\n showSourceColumn = false,\n scriptureReferenceColumnName,\n scriptureBookGroupName,\n typeColumnName,\n detailsColumnName,\n onRowSelected,\n}: ScriptureResultsViewerProps) {\n const [grouping, setGrouping] = useState([]);\n const [sorting, setSorting] = useState([{ id: scrBookColId, desc: false }]);\n const [rowSelection, setRowSelection] = useState({});\n\n const scriptureResults = useMemo(\n () =>\n sources.flatMap((source) => {\n return source.data.map((item) => ({\n ...item,\n source: source.source,\n }));\n }),\n [sources],\n );\n\n const columns = useMemo(\n () =>\n getColumns(\n {\n scriptureReferenceColumnName,\n typeColumnName,\n detailsColumnName,\n },\n showSourceColumn,\n ),\n [scriptureReferenceColumnName, typeColumnName, detailsColumnName, showSourceColumn],\n );\n\n useEffect(() => {\n // Ensure sorting is applied correctly when grouped by type\n if (grouping.includes(typeColId)) {\n setSorting([\n { id: typeColId, desc: false },\n { id: scrBookColId, desc: false },\n ]);\n } else {\n setSorting([{ id: scrBookColId, desc: false }]);\n }\n }, [grouping]);\n\n const table = useReactTable({\n data: scriptureResults,\n columns,\n state: {\n grouping,\n sorting,\n rowSelection,\n },\n onGroupingChange: setGrouping,\n onSortingChange: setSorting,\n onRowSelectionChange: setRowSelection,\n getExpandedRowModel: getExpandedRowModel(),\n getGroupedRowModel: getGroupedRowModel(),\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n getRowId: getRowKey,\n autoResetExpanded: false,\n enableMultiRowSelection: false,\n enableSubRowSelection: false,\n });\n\n useEffect(() => {\n if (onRowSelected) {\n const selectedRows = table.getSelectedRowModel().rowsById;\n const keys = Object.keys(selectedRows);\n if (keys.length === 1) {\n const selectedRow = scriptureResults.find((row) => getRowKey(row) === keys[0]) || undefined;\n if (selectedRow) onRowSelected(selectedRow);\n }\n }\n }, [rowSelection, scriptureResults, onRowSelected, table]);\n\n // Define possible grouping options\n const scrBookGroupName = scriptureBookGroupName ?? defaultScrBookGroupName;\n const typeGroupName = typeColumnName ?? defaultTypeColumnName;\n\n const groupingOptions = [\n { label: 'No Grouping', value: [] },\n { label: `Group by ${scrBookGroupName}`, value: [scrBookColId] },\n { label: `Group by ${typeGroupName}`, value: [typeColId] },\n {\n label: `Group by ${scrBookGroupName} and ${typeGroupName}`,\n value: [scrBookColId, typeColId],\n },\n {\n label: `Group by ${typeGroupName} and ${scrBookGroupName}`,\n value: [typeColId, scrBookColId],\n },\n ];\n\n const handleSelectChange = (selectedGrouping: string) => {\n setGrouping(JSON.parse(selectedGrouping));\n };\n\n const handleRowClick = (row: Row, event: MouseEvent) => {\n if (!row.getIsGrouped() && !row.getIsSelected()) {\n row.getToggleSelectedHandler()(event);\n }\n };\n\n const getEvenOrOddBandingStyle = (row: Row, index: number) => {\n if (row.getIsGrouped()) return '';\n // UX has now said they don't think they want banding. I'm leaving in the code to\n // set even and odd styles, but there's nothing in the CSS to style them differently.\n // The \"even\" style used to also have tw-bg-neutral-300 (along with even) to create\n // a visual banding effect. That could be added back in if UX changes the decision.\n return cn('banded-row', index % 2 === 0 ? 'even' : 'odd');\n };\n\n const getIndent = (\n groupingState: GroupingState,\n row: Row,\n cell: Cell,\n ) => {\n if (groupingState?.length === 0 || row.depth < cell.column.getGroupedIndex()) return undefined;\n if (row.getIsGrouped()) {\n switch (row.depth) {\n case 1:\n return 'tw-ps-4';\n default:\n return undefined;\n }\n }\n switch (row.depth) {\n case 1:\n return 'tw-ps-8';\n case 2:\n return 'tw-ps-12';\n default:\n return undefined;\n }\n };\n\n return (\n
    \n {!showColumnHeaders && (\n {\n handleSelectChange(value);\n }}\n >\n \n \n \n \n \n {groupingOptions.map((option) => (\n \n {option.label}\n \n ))}\n \n \n \n )}\n \n {showColumnHeaders && (\n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers\n .filter((h) => h.column.columnDef.header)\n .map((header) => (\n /* For sticky column headers to work, we probably need to change the default definition of the shadcn Table component. See https://github.com/shadcn-ui/ui/issues/1151 */\n \n {header.isPlaceholder ? undefined : (\n
    \n {header.column.getCanGroup() ? (\n \n {header.column.getIsGrouped() ? `🛑` : `👊 `}\n \n ) : undefined}{' '}\n {flexRender(header.column.columnDef.header, header.getContext())}\n
    \n )}\n
    \n ))}\n
    \n ))}\n
    \n )}\n \n {table.getRowModel().rows.map((row, rowIndex) => {\n const dir: Direction = readDirection();\n return (\n handleRowClick(row, event)}\n >\n {row.getVisibleCells().map((cell) => {\n if (\n cell.getIsPlaceholder() ||\n (cell.column.columnDef.enableGrouping &&\n !cell.getIsGrouped() &&\n (cell.column.columnDef.id !== typeColId || !showSourceColumn))\n )\n return undefined;\n return (\n \n {(() => {\n if (cell.getIsGrouped()) {\n return (\n \n {row.getIsExpanded() && }\n {!row.getIsExpanded() &&\n (dir === 'ltr' ? : )}{' '}\n {flexRender(cell.column.columnDef.cell, cell.getContext())} (\n {row.subRows.length})\n \n );\n }\n\n // if (cell.getIsAggregated()) {\n // flexRender(\n // cell.column.columnDef.aggregatedCell ?? cell.column.columnDef.cell,\n // cell.getContext(),\n // );\n // }\n\n return flexRender(cell.column.columnDef.cell, cell.getContext());\n })()}\n \n );\n })}\n \n );\n })}\n \n
    \n
    \n );\n}\n","import {\n getLocalizeKeyForScrollGroupId,\n LanguageStrings,\n ScrollGroupId,\n} from 'platform-bible-utils';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS = {\n [getLocalizeKeyForScrollGroupId('undefined')]: 'Ø',\n [getLocalizeKeyForScrollGroupId(0)]: 'A',\n [getLocalizeKeyForScrollGroupId(1)]: 'B',\n [getLocalizeKeyForScrollGroupId(2)]: 'C',\n [getLocalizeKeyForScrollGroupId(3)]: 'D',\n [getLocalizeKeyForScrollGroupId(4)]: 'E',\n [getLocalizeKeyForScrollGroupId(5)]: 'F',\n [getLocalizeKeyForScrollGroupId(6)]: 'G',\n [getLocalizeKeyForScrollGroupId(7)]: 'H',\n [getLocalizeKeyForScrollGroupId(8)]: 'I',\n [getLocalizeKeyForScrollGroupId(9)]: 'J',\n [getLocalizeKeyForScrollGroupId(10)]: 'K',\n [getLocalizeKeyForScrollGroupId(11)]: 'L',\n [getLocalizeKeyForScrollGroupId(12)]: 'M',\n [getLocalizeKeyForScrollGroupId(13)]: 'N',\n [getLocalizeKeyForScrollGroupId(14)]: 'O',\n [getLocalizeKeyForScrollGroupId(15)]: 'P',\n [getLocalizeKeyForScrollGroupId(16)]: 'Q',\n [getLocalizeKeyForScrollGroupId(17)]: 'R',\n [getLocalizeKeyForScrollGroupId(18)]: 'S',\n [getLocalizeKeyForScrollGroupId(19)]: 'T',\n [getLocalizeKeyForScrollGroupId(20)]: 'U',\n [getLocalizeKeyForScrollGroupId(21)]: 'V',\n [getLocalizeKeyForScrollGroupId(22)]: 'W',\n [getLocalizeKeyForScrollGroupId(23)]: 'X',\n [getLocalizeKeyForScrollGroupId(24)]: 'Y',\n [getLocalizeKeyForScrollGroupId(25)]: 'Z',\n};\n\nexport type ScrollGroupSelectorProps = {\n /**\n * List of scroll group ids to show to the user. Either a {@link ScrollGroupId} or `undefined` for\n * no scroll group\n */\n availableScrollGroupIds: (ScrollGroupId | undefined)[];\n /** Currently selected scroll group id. `undefined` for no scroll group */\n scrollGroupId: ScrollGroupId | undefined;\n /** Callback function run when the user tries to change the scroll group id */\n onChangeScrollGroupId: (newScrollGroupId: ScrollGroupId | undefined) => void;\n /**\n * Localized strings to use for displaying scroll group ids. Must be an object whose keys are\n * `getLocalizeKeyForScrollGroupId(scrollGroupId)` for all scroll group ids (and `undefined` if\n * included) in {@link ScrollGroupSelectorProps.availableScrollGroupIds} and whose values are the\n * localized strings to use for those scroll group ids.\n *\n * Defaults to English localizations of English alphabet for scroll groups 0-25 (e.g. 0 is A) and\n * Ø for `undefined`. Will fill in any that are not provided with these English localizations.\n * Also, if any values match the keys, the English localization will be used. This is useful in\n * case you want to pass in a temporary version of the localized strings while your localized\n * strings load.\n *\n * @example\n *\n * ```typescript\n * const myScrollGroupIdLocalizedStrings = {\n * [getLocalizeKeyForScrollGroupId('undefined')]: 'Ø',\n * [getLocalizeKeyForScrollGroupId(0)]: 'A',\n * [getLocalizeKeyForScrollGroupId(1)]: 'B',\n * [getLocalizeKeyForScrollGroupId(2)]: 'C',\n * [getLocalizeKeyForScrollGroupId(3)]: 'D',\n * [getLocalizeKeyForScrollGroupId(4)]: 'E',\n * };\n * ```\n *\n * @example\n *\n * ```tsx\n * const availableScrollGroupIds = [undefined, 0, 1, 2, 3, 4];\n *\n * const localizeKeys = getLocalizeKeysForScrollGroupIds();\n *\n * const [localizedStrings] = useLocalizedStrings(localizeKeys);\n *\n * ...\n *\n * \n * ```\n */\n localizedStrings?: LanguageStrings;\n};\n\n/** Selector component for choosing a scroll group */\nexport default function ScrollGroupSelector({\n availableScrollGroupIds,\n scrollGroupId,\n onChangeScrollGroupId,\n localizedStrings = {},\n}: ScrollGroupSelectorProps) {\n const localizedStringsDefaulted = {\n ...DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS,\n ...Object.fromEntries(\n Object.entries(localizedStrings).map(\n ([localizedStringKey, localizedStringValue]: [string, string]) => [\n localizedStringKey,\n localizedStringKey === localizedStringValue &&\n localizedStringKey in DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS\n ? DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS[localizedStringKey]\n : localizedStringValue,\n ],\n ),\n ),\n };\n\n const dir: Direction = readDirection();\n\n return (\n \n onChangeScrollGroupId(\n newScrollGroupString === 'undefined' ? undefined : parseInt(newScrollGroupString, 10),\n )\n }\n >\n \n \n \n \n {availableScrollGroupIds.map((scrollGroupOptionId) => (\n \n {localizedStringsDefaulted[getLocalizeKeyForScrollGroupId(scrollGroupOptionId)]}\n \n ))}\n \n \n );\n}\n","import { PropsWithChildren } from 'react';\nimport { Separator } from '@/components/shadcn-ui/separator';\n\n/** Props for the SettingsList component, currently just children */\ntype SettingsListProps = PropsWithChildren;\n\n/**\n * SettingsList component is a wrapper for list items. Rendered with a formatted div\n *\n * @param children To populate the list with\n * @returns Formatted div encompassing the children\n */\nexport function SettingsList({ children }: SettingsListProps) {\n return
    {children}
    ;\n}\n\n/** Props for SettingsListItem component */\ntype SettingsListItemProps = PropsWithChildren & {\n /** Primary text of the list item */\n primary: string;\n\n /** Optional text of the list item */\n secondary?: string | undefined;\n\n /** Optional boolean to display a message if the children aren't loaded yet. Defaults to false */\n isLoading?: boolean;\n\n /** Optional message to display if isLoading */\n loadingMessage?: string;\n};\n\n/**\n * SettingsListItem component is a common list item. Rendered with a formatted div\n *\n * @param primary Primary text of the list item\n * @param secondary Optional secondary text of the list item\n * @param isLoading Optional, to display a message if the action component isn't generated yet,\n * defaults to false\n * @param children The action component(s) to provide for this item\n * @param loadingMessage Optional, message to display if isLoading\n * @returns Formatted div encompassing the list item content\n */\nexport function SettingsListItem({\n primary,\n secondary,\n children,\n isLoading = false,\n loadingMessage,\n}: SettingsListItemProps) {\n return (\n
    \n
    \n

    {primary}

    \n

    \n {secondary}\n

    \n
    \n\n {isLoading ? (\n

    {loadingMessage}

    \n ) : (\n
    {children}
    \n )}\n
    \n );\n}\n\n/** Props for SettingsListHeader component */\ntype SettingsListHeaderProps = {\n /** The primary text of the list header */\n primary: string;\n\n /** Optional secondary text of the list header */\n secondary?: string | undefined;\n\n /** Optional boolean to include a separator underneath the secondary text. Defaults to false */\n includeSeparator?: boolean;\n};\n\n/**\n * SettingsListHeader component displays text above the list\n *\n * @param primary The primary text of the list header\n * @param secondary Optional secondary text of the list header\n * @param includeSeparator Optional boolean to include a separator underneath the secondary text.\n * Defaults to false\n * @returns Formatted div with list header content\n */\nexport function SettingsListHeader({\n primary,\n secondary,\n includeSeparator = false,\n}: SettingsListHeaderProps) {\n return (\n
    \n
    \n

    {primary}

    \n

    {secondary}

    \n
    \n {includeSeparator ? : ''}\n
    \n );\n}\n","import Checkbox from '@/components/shadcn-ui/checkbox';\nimport { Label } from '@/components/shadcn-ui/label';\n\nexport type ChecklistProps = {\n /** Optional string representing the id attribute of the Checklist */\n id?: string;\n /** Optional string representing CSS class name(s) for styling */\n className?: string;\n /** Array of strings representing the checkable items */\n listItems: string[];\n /** Array of strings representing the checked items */\n selectedListItems: string[];\n /**\n * Function that is called when a checkbox item is selected or deselected\n *\n * @param item The string description for this item\n * @param selected True if selected, false if not selected\n */\n handleSelectListItem: (item: string, selected: boolean) => void;\n\n /**\n * Optional function creates a label for a provided checkable item\n *\n * @param item The item for which a label is to be created\n * @returns A string representing the label text for the checkbox associated with that item\n */\n createLabel?: (item: string) => string;\n};\n\n/** Renders a list of checkboxes. Each checkbox corresponds to an item from the `listItems` array. */\nexport default function Checklist({\n id,\n className,\n listItems,\n selectedListItems,\n handleSelectListItem,\n createLabel,\n}: ChecklistProps) {\n return (\n
    \n {listItems.map((item) => (\n
    \n handleSelectListItem(item, value)}\n />\n \n
    \n ))}\n
    \n );\n}\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return _extends({}, propTypes, {\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n });\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n const match = `${fn}`.match(fnNameMatchRegex);\n const name = match && match[1];\n return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return (props, propName, componentName, location, propFullName) => {\n const componentNameSafe = componentName || '<>';\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n }\n return null;\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n var _muiName, _element$type;\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example
    \n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n }\n return null;\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n constructor() {\n this.currentId = null;\n this.clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n this.disposeEffect = () => {\n return this.clear;\n };\n }\n static create() {\n return new Timeout();\n }\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"values\", \"unit\", \"step\"];\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return _extends({}, acc, {\n [obj.key]: obj.val\n });\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5\n } = breakpoints,\n other = _objectWithoutPropertiesLoose(breakpoints, _excluded);\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return _extends({\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit\n }, other);\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from './merge';\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n // key is breakpoint\n if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n theme\n }, props[key]));\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n var _breakpointsInput$key;\n const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nimport { getPath } from './style';\nimport merge from './merge';\nimport memoize from './memoize';\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n var _getPath;\n const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;\n if (typeof themeSpacing === 'number') {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof abs !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);\n }\n }\n return themeSpacing * abs;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n return themeSpacing[abs];\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n const abs = Math.abs(propValue);\n const transformed = transformer(abs);\n if (propValue >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n return `-${transformed}`;\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (keys.indexOf(prop) === -1) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","import { createUnarySpacing } from '../spacing';\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n\n // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n // Smaller components, such as icons, can align to a 4dp grid.\n // https://m2.material.io/design/layout/understanding-layout.html\n const transform = createUnarySpacing({\n spacing: spacingInput\n });\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import merge from './merge';\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nimport responsivePropType from './responsivePropType';\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from './style';\nimport compose from './compose';\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from './style';\nimport compose from './compose';\nimport { handleBreakpoints, values as breakpointsValues } from './breakpoints';\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n var _props$theme, _props$theme2;\n const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from '../spacing';\nimport { borderRadius, borderTransform } from '../borders';\nimport { gap, rowGap, columnGap } from '../cssGrid';\nimport { paletteTransform } from '../palette';\nimport { maxWidth, sizingTransform } from '../sizing';\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from '../merge';\nimport { getPath, getStyleValue as getValue } from '../style';\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from '../breakpoints';\nimport defaultSxConfig from './defaultSxConfig';\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n var _theme$unstable_sxCon;\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return removeUnusedBreakpoints(breakpointsKeys, css);\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n *\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars && typeof theme.getColorSchemeSelector === 'function') {\n // If CssVarsProvider is used as a provider,\n // returns '* :where([data-mui-color-scheme=\"light|dark\"]) &'\n const selector = theme.getColorSchemeSelector(key).replace(/(\\[[^\\]]+\\])/, '*:where($1)');\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"breakpoints\", \"palette\", \"spacing\", \"shape\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from './createBreakpoints';\nimport shape from './shape';\nimport createSpacing from './createSpacing';\nimport styleFunctionSx from '../styleFunctionSx/styleFunctionSx';\nimport defaultSxConfig from '../styleFunctionSx/defaultSxConfig';\nimport applyStyles from './applyStyles';\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: _extends({\n mode: 'light'\n }, paletteInput),\n spacing,\n shape: _extends({}, shape, shapeInput)\n }, other);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from './createTheme';\nimport useThemeWithoutDefault from './useThemeWithoutDefault';\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nimport styledEngineStyled, { internal_processStyles as processStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from './createTheme';\nimport styleFunctionSx from './styleFunctionSx';\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport const systemDefaultTheme = createTheme();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref) {\n let {\n ownerState\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, _extends({\n ownerState\n }, props)));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props(_extends({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n result.push(typeof variant.style === 'function' ? variant.style(_extends({\n ownerState\n }, props, ownerState)) : variant.style);\n }\n });\n return result;\n }\n return resolvedStylesArg;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return styleFunctionSx(_extends({}, props, {\n theme: resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = _objectWithoutPropertiesLoose(inputOptions, _excluded3);\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, _extends({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || isPlainObject(stylesArg)) {\n return props => processStyleArg(stylesArg, _extends({}, props, {\n theme: resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n })\n }));\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, _extends({}, props, {\n theme\n }));\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, _extends({}, props, {\n theme\n }));\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${capitalize(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${getDisplayName(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport getThemeProps from './getThemeProps';\nimport useTheme from '../useTheme';\nexport default function useThemeProps({\n props,\n name,\n defaultTheme,\n themeId\n}) {\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n const mergedProps = getThemeProps({\n theme,\n name,\n props\n });\n return mergedProps;\n}","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : _formatMuiErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : _formatMuiErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.indexOf('rgb') !== -1) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.indexOf('hsl') !== -1) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.indexOf('color') !== -1) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.indexOf('#') === 0) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function createMixins(breakpoints, mixins) {\n return _extends({\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n }\n }, mixins);\n}","const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;","const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;","const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"mode\", \"contrastThreshold\", \"tonalOffset\"];\nimport { deepmerge } from '@mui/utils';\nimport { darken, getContrastRatio, lighten } from '@mui/system';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport purple from '../colors/purple';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport lightBlue from '../colors/lightBlue';\nimport green from '../colors/green';\nexport const light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexport const dark = {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2\n } = palette,\n other = _objectWithoutPropertiesLoose(palette, _excluded);\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = _extends({}, color);\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\nThe color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from \"@mui/material/colors\";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });` : _formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n const modes = {\n dark,\n light\n };\n if (process.env.NODE_ENV !== 'production') {\n if (!modes[mode]) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge(_extends({\n // A collection of common colors.\n common: _extends({}, common),\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset\n }, modes[mode]), other);\n return paletteOutput;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"];\nimport { deepmerge } from '@mui/utils';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const _ref = typeof typography === 'function' ? typography(palette) : typography,\n {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight\n }, fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}, casing, allVariants);\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge(_extends({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold\n }, variants), other, {\n clone: false // No need to clone deep\n });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"duration\", \"easing\", \"delay\"];\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = _extends({}, easing, inputTransitions.easing);\n const mergedDuration = _extends({}, duration, inputTransitions.duration);\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n // IE11 support, replace with Number.isNaN\n // eslint-disable-next-line no-restricted-globals\n const isNumber = value => !isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return _extends({\n getAutoHeightDuration,\n create\n }, inputTransitions, {\n easing: mergedEasing,\n duration: mergedDuration\n });\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"breakpoints\", \"mixins\", \"spacing\", \"palette\", \"transitions\", \"typography\", \"shape\"];\nimport { deepmerge } from '@mui/utils';\nimport { createTheme as systemCreateTheme, unstable_defaultSxConfig as defaultSxConfig, unstable_styleFunctionSx as styleFunctionSx } from '@mui/system';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport createTransitions from './createTransitions';\nimport zIndex from './zIndex';\nfunction createTheme(options = {}, ...args) {\n const {\n mixins: mixinsInput = {},\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (options.vars) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`vars\\` is a private field used for CSS variables support.\nPlease use another name.` : _formatMuiErrorMessage(18));\n }\n const palette = createPalette(paletteInput);\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: _extends({}, zIndex)\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (key in node) {\n const child = node[key];\n if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.indexOf('Mui') === 0) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nlet warnedOnce = false;\nexport function createMuiTheme(...args) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@mui/material/styles'`\"].join('\\n'));\n }\n }\n return createTheme(...args);\n}\nexport default createTheme;","'use client';\n\nimport createTheme from './createTheme';\nconst defaultTheme = createTheme();\nexport default defaultTheme;","export default '$$material';","'use client';\n\nimport { useThemeProps as systemUseThemeProps } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useThemeProps({\n props,\n name\n}) {\n return systemUseThemeProps({\n props,\n name,\n defaultTheme,\n themeId: THEME_ID\n });\n}","'use client';\n\nimport { createStyled, shouldForwardProp } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';\nexport const slotShouldForwardProp = shouldForwardProp;\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"inheritViewBox\", \"titleAccess\", \"viewBox\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport useThemeProps from '../styles/useThemeProps';\nimport styled from '../styles/styled';\nimport { getSvgIconUtilityClass } from './svgIconClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(({\n theme,\n ownerState\n}) => {\n var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;\n return {\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n // the will define the property that has `currentColor`\n // e.g. heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',\n flexShrink: 0,\n transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {\n duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter\n }),\n fontSize: {\n inherit: 'inherit',\n small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',\n medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',\n large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'\n }[ownerState.fontSize],\n // TODO v5 deprecate, v6 remove for sx\n color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {\n action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,\n disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,\n inherit: undefined\n }[ownerState.color]\n };\n});\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = _extends({}, props, {\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n });\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, _extends({\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref\n }, more, other, hasSvgAsChild && children.props, {\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport SvgIcon from '../SvgIcon';\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, _extends({\n \"data-testid\": `${displayName}Icon`,\n ref: ref\n }, props, {\n children: path\n }));\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));\n}","'use client';\n\nimport { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/base/ClassNameGenerator';\nexport { default as capitalize } from './capitalize';\nexport { default as createChainedFunction } from './createChainedFunction';\nexport { default as createSvgIcon } from './createSvgIcon';\nexport { default as debounce } from './debounce';\nexport { default as deprecatedPropType } from './deprecatedPropType';\nexport { default as isMuiElement } from './isMuiElement';\nexport { default as ownerDocument } from './ownerDocument';\nexport { default as ownerWindow } from './ownerWindow';\nexport { default as requirePropFactory } from './requirePropFactory';\nexport { default as setRef } from './setRef';\nexport { default as unstable_useEnhancedEffect } from './useEnhancedEffect';\nexport { default as unstable_useId } from './useId';\nexport { default as unsupportedProp } from './unsupportedProp';\nexport { default as useControlled } from './useControlled';\nexport { default as useEventCallback } from './useEventCallback';\nexport { default as useForkRef } from './useForkRef';\nexport { default as useIsFocusVisible } from './useIsFocusVisible';\n// TODO: remove this export once ClassNameGenerator is stable\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const unstable_ClassNameGenerator = {\n configure: generator => {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(['MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.', '', \"You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead\", '', 'The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401', '', 'The updated documentation: https://mui.com/guides/classname-generator/'].join('\\n'));\n }\n ClassNameGenerator.configure(generator);\n }\n};","\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _utils.createSvgIcon;\n }\n});\nvar _utils = require(\"@mui/material/utils\");","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m10 17 5-5-5-5z\"\n}), 'ArrowRight');","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","import { globalStateClasses } from '@mui/utils/generateUtilityClass';\nconst GLOBAL_CLASS_PREFIX = 'base';\nfunction buildStateClass(state) {\n return `${GLOBAL_CLASS_PREFIX}--${state}`;\n}\nfunction buildSlotClass(componentName, slot) {\n return `${GLOBAL_CLASS_PREFIX}-${componentName}-${slot}`;\n}\nexport function generateUtilityClass(componentName, slot) {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? buildStateClass(globalStateClass) : buildSlotClass(componentName, slot);\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import { generateUtilityClass } from '../generateUtilityClass';\nexport function generateUtilityClasses(componentName, slots) {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot);\n });\n return result;\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { exactProp, HTMLElementType, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef, unstable_setRef as setRef } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\n\n/**\n * Portals provide a first-class way to render children into a DOM node\n * that exists outside the DOM hierarchy of the parent component.\n *\n * Demos:\n *\n * - [Portal](https://mui.com/base-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://mui.com/base-ui/react-portal/components-api/#portal)\n */\nconst Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {\n const {\n children,\n container,\n disablePortal = false\n } = props;\n const [mountNode, setMountNode] = React.useState(null);\n // @ts-expect-error TODO upstream fix\n const handleRef = useForkRef( /*#__PURE__*/React.isValidElement(children) ? children.ref : null, forwardedRef);\n useEnhancedEffect(() => {\n if (!disablePortal) {\n setMountNode(getContainer(container) || document.body);\n }\n }, [container, disablePortal]);\n useEnhancedEffect(() => {\n if (mountNode && !disablePortal) {\n setRef(forwardedRef, mountNode);\n return () => {\n setRef(forwardedRef, null);\n };\n }\n return undefined;\n }, [forwardedRef, mountNode, disablePortal]);\n if (disablePortal) {\n if ( /*#__PURE__*/React.isValidElement(children)) {\n const newProps = {\n ref: handleRef\n };\n return /*#__PURE__*/React.cloneElement(children, newProps);\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: children\n });\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Portal.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The children to render into the `container`.\n */\n children: PropTypes.node,\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n Portal['propTypes' + ''] = exactProp(Portal.propTypes);\n}\nexport { Portal };","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import { generateUtilityClass } from '../generateUtilityClass';\nimport { generateUtilityClasses } from '../generateUtilityClasses';\nconst COMPONENT_NAME = 'Popper';\nexport function getPopperUtilityClass(slot) {\n return generateUtilityClass(COMPONENT_NAME, slot);\n}\nexport const popperClasses = generateUtilityClasses(COMPONENT_NAME, ['root']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"children\", \"direction\", \"disablePortal\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"slotProps\", \"slots\", \"TransitionProps\", \"ownerState\"],\n _excluded2 = [\"anchorEl\", \"children\", \"container\", \"direction\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"style\", \"transition\", \"slotProps\", \"slots\"];\nimport * as React from 'react';\nimport { chainPropTypes, HTMLElementType, refType, unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { createPopper } from '@popperjs/core';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses } from '../composeClasses';\nimport { Portal } from '../Portal';\nimport { getPopperUtilityClass } from './popperClasses';\nimport { useSlotProps } from '../utils';\nimport { useClassNamesOverride } from '../utils/ClassNameConfigurator';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction flipPlacement(placement, direction) {\n if (direction === 'ltr') {\n return placement;\n }\n switch (placement) {\n case 'bottom-end':\n return 'bottom-start';\n case 'bottom-start':\n return 'bottom-end';\n case 'top-end':\n return 'top-start';\n case 'top-start':\n return 'top-end';\n default:\n return placement;\n }\n}\nfunction resolveAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nfunction isHTMLElement(element) {\n return element.nodeType !== undefined;\n}\nfunction isVirtualElement(element) {\n return !isHTMLElement(element);\n}\nconst useUtilityClasses = () => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));\n};\nconst defaultPopperOptions = {};\nconst PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {\n var _slots$root;\n const {\n anchorEl,\n children,\n direction,\n disablePortal,\n modifiers,\n open,\n placement: initialPlacement,\n popperOptions,\n popperRef: popperRefProp,\n slotProps = {},\n slots = {},\n TransitionProps\n // @ts-ignore internal logic\n // prevent from spreading to DOM, it can come from the parent component e.g. Select.\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const tooltipRef = React.useRef(null);\n const ownRef = useForkRef(tooltipRef, forwardedRef);\n const popperRef = React.useRef(null);\n const handlePopperRef = useForkRef(popperRef, popperRefProp);\n const handlePopperRefRef = React.useRef(handlePopperRef);\n useEnhancedEffect(() => {\n handlePopperRefRef.current = handlePopperRef;\n }, [handlePopperRef]);\n React.useImperativeHandle(popperRefProp, () => popperRef.current, []);\n const rtlPlacement = flipPlacement(initialPlacement, direction);\n /**\n * placement initialized from prop but can change during lifetime if modifiers.flip.\n * modifiers.flip is essentially a flip for controlled/uncontrolled behavior\n */\n const [placement, setPlacement] = React.useState(rtlPlacement);\n const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));\n React.useEffect(() => {\n if (popperRef.current) {\n popperRef.current.forceUpdate();\n }\n });\n React.useEffect(() => {\n if (anchorEl) {\n setResolvedAnchorElement(resolveAnchorEl(anchorEl));\n }\n }, [anchorEl]);\n useEnhancedEffect(() => {\n if (!resolvedAnchorElement || !open) {\n return undefined;\n }\n const handlePopperUpdate = data => {\n setPlacement(data.placement);\n };\n if (process.env.NODE_ENV !== 'production') {\n if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {\n const box = resolvedAnchorElement.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n }\n let popperModifiers = [{\n name: 'preventOverflow',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'flip',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'onUpdate',\n enabled: true,\n phase: 'afterWrite',\n fn: ({\n state\n }) => {\n handlePopperUpdate(state);\n }\n }];\n if (modifiers != null) {\n popperModifiers = popperModifiers.concat(modifiers);\n }\n if (popperOptions && popperOptions.modifiers != null) {\n popperModifiers = popperModifiers.concat(popperOptions.modifiers);\n }\n const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({\n placement: rtlPlacement\n }, popperOptions, {\n modifiers: popperModifiers\n }));\n handlePopperRefRef.current(popper);\n return () => {\n popper.destroy();\n handlePopperRefRef.current(null);\n };\n }, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);\n const childProps = {\n placement: placement\n };\n if (TransitionProps !== null) {\n childProps.TransitionProps = TransitionProps;\n }\n const classes = useUtilityClasses();\n const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps.root,\n externalForwardedProps: other,\n additionalProps: {\n role: 'tooltip',\n ref: ownRef\n },\n ownerState: props,\n className: classes.root\n });\n return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n children: typeof children === 'function' ? children(childProps) : children\n }));\n});\n\n/**\n * Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.\n *\n * Demos:\n *\n * - [Popper](https://mui.com/base-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/base-ui/react-popper/components-api/#popper)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {\n const {\n anchorEl,\n children,\n container: containerProp,\n direction = 'ltr',\n disablePortal = false,\n keepMounted = false,\n modifiers,\n open,\n placement = 'bottom',\n popperOptions = defaultPopperOptions,\n popperRef,\n style,\n transition = false,\n slotProps = {},\n slots = {}\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [exited, setExited] = React.useState(true);\n const handleEnter = () => {\n setExited(false);\n };\n const handleExited = () => {\n setExited(true);\n };\n if (!keepMounted && !open && (!transition || exited)) {\n return null;\n }\n\n // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n let container;\n if (containerProp) {\n container = containerProp;\n } else if (anchorEl) {\n const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;\n }\n const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;\n const transitionProps = transition ? {\n in: open,\n onEnter: handleEnter,\n onExited: handleExited\n } : undefined;\n return /*#__PURE__*/_jsx(Portal, {\n disablePortal: disablePortal,\n container: container,\n children: /*#__PURE__*/_jsx(PopperTooltip, _extends({\n anchorEl: anchorEl,\n direction: direction,\n disablePortal: disablePortal,\n modifiers: modifiers,\n ref: forwardedRef,\n open: transition ? !exited : open,\n placement: placement,\n popperOptions: popperOptions,\n popperRef: popperRef,\n slotProps: slotProps,\n slots: slots\n }, other, {\n style: _extends({\n // Prevents scroll issue, waiting for Popper.js to add this style once initiated.\n position: 'fixed',\n // Fix Popper.js display issue\n top: 0,\n left: 0,\n display\n }, style),\n TransitionProps: transitionProps,\n children: children\n }))\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {\n if (props.open) {\n const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {\n const box = resolvedAnchorEl.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * Direction of the text.\n * @default 'ltr'\n */\n direction: PropTypes.oneOf(['ltr', 'rtl']),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport { Popper };","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","export default {\n disabled: false\n};","import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n enter: PropTypes.number,\n exit: PropTypes.number,\n appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string,\n active: PropTypes.string\n}), PropTypes.shape({\n enter: PropTypes.string,\n enterDone: PropTypes.string,\n enterActive: PropTypes.string,\n exit: PropTypes.string,\n exitDone: PropTypes.string,\n exitActive: PropTypes.string\n})]) : null;","import React from 'react';\nexport default React.createContext(null);","export var forceReflow = function forceReflow(node) {\n return node.scrollTop;\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n *
    \n * I'm a fade Transition!\n *
    \n * )}\n *
    \n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
    \n * \n * {state => (\n * // ...\n * )}\n * \n * \n *
    \n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export const reflow = node => node.scrollTop;\nexport function getTransitionProps(props, options) {\n var _style$transitionDura, _style$transitionTimi;\n const {\n timeout,\n easing,\n style = {}\n } = props;\n return {\n duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,\n easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,\n delay: style.transitionDelay\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { elementAcceptingRef, unstable_useTimeout as useTimeout } from '@mui/utils';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps, reflow } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = 'auto',\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const timer = useTimeout();\n const autoTimeout = React.useRef();\n const theme = useTheme();\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, children.ref, ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay,\n easing: transitionTimingFunction\n })].join(',');\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay: isWebKit154 ? delay : delay || duration * 0.333,\n easing: transitionTimingFunction\n })].join(',');\n node.style.opacity = 0;\n node.style.transform = getScale(0.75);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.start(autoTimeout.current || 0, next);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout === 'auto' ? null : timeout\n }, other, {\n children: (state, childProps) => {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n }\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"component\", \"components\", \"componentsProps\", \"container\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"transition\", \"slots\", \"slotProps\"];\nimport { Popper as BasePopper } from '@mui/base/Popper';\nimport { useThemeWithoutDefault as useTheme } from '@mui/system';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { styled, useThemeProps } from '../styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopperRoot = styled(BasePopper, {\n name: 'MuiPopper',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\n\n/**\n *\n * Demos:\n *\n * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)\n * - [Menu](https://mui.com/material-ui/react-menu/)\n * - [Popper](https://mui.com/material-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/material-ui/api/popper/)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {\n var _slots$root;\n const theme = useTheme();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPopper'\n });\n const {\n anchorEl,\n component,\n components,\n componentsProps,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;\n const otherProps = _extends({\n anchorEl,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition\n }, other);\n return /*#__PURE__*/_jsx(PopperRoot, _extends({\n as: component,\n direction: theme == null ? void 0 : theme.direction,\n slots: {\n root: RootComponent\n },\n slotProps: slotProps != null ? slotProps : componentsProps\n }, otherProps, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport default Popper;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTooltipUtilityClass(slot) {\n return generateUtilityClass('MuiTooltip', slot);\n}\nconst tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);\nexport default tooltipClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"arrow\", \"children\", \"classes\", \"components\", \"componentsProps\", \"describeChild\", \"disableFocusListener\", \"disableHoverListener\", \"disableInteractive\", \"disableTouchListener\", \"enterDelay\", \"enterNextDelay\", \"enterTouchDelay\", \"followCursor\", \"id\", \"leaveDelay\", \"leaveTouchDelay\", \"onClose\", \"onOpen\", \"open\", \"placement\", \"PopperComponent\", \"PopperProps\", \"slotProps\", \"slots\", \"title\", \"TransitionComponent\", \"TransitionProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { elementAcceptingRef, unstable_useTimeout as useTimeout, unstable_Timeout as Timeout } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses, appendOwnerState } from '@mui/base';\nimport { alpha } from '@mui/system';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport useThemeProps from '../styles/useThemeProps';\nimport capitalize from '../utils/capitalize';\nimport Grow from '../Grow';\nimport Popper from '../Popper';\nimport useEventCallback from '../utils/useEventCallback';\nimport useForkRef from '../utils/useForkRef';\nimport useId from '../utils/useId';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport useControlled from '../utils/useControlled';\nimport tooltipClasses, { getTooltipUtilityClass } from './tooltipClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableInteractive,\n arrow,\n touch,\n placement\n } = ownerState;\n const slots = {\n popper: ['popper', !disableInteractive && 'popperInteractive', arrow && 'popperArrow'],\n tooltip: ['tooltip', arrow && 'tooltipArrow', touch && 'touch', `tooltipPlacement${capitalize(placement.split('-')[0])}`],\n arrow: ['arrow']\n };\n return composeClasses(slots, getTooltipUtilityClass, classes);\n};\nconst TooltipPopper = styled(Popper, {\n name: 'MuiTooltip',\n slot: 'Popper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];\n }\n})(({\n theme,\n ownerState,\n open\n}) => _extends({\n zIndex: (theme.vars || theme).zIndex.tooltip,\n pointerEvents: 'none'\n}, !ownerState.disableInteractive && {\n pointerEvents: 'auto'\n}, !open && {\n pointerEvents: 'none'\n}, ownerState.arrow && {\n [`&[data-popper-placement*=\"bottom\"] .${tooltipClasses.arrow}`]: {\n top: 0,\n marginTop: '-0.71em',\n '&::before': {\n transformOrigin: '0 100%'\n }\n },\n [`&[data-popper-placement*=\"top\"] .${tooltipClasses.arrow}`]: {\n bottom: 0,\n marginBottom: '-0.71em',\n '&::before': {\n transformOrigin: '100% 0'\n }\n },\n [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n left: 0,\n marginLeft: '-0.71em'\n } : {\n right: 0,\n marginRight: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '100% 100%'\n }\n }),\n [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n right: 0,\n marginRight: '-0.71em'\n } : {\n left: 0,\n marginLeft: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '0 0'\n }\n })\n}));\nconst TooltipTooltip = styled('div', {\n name: 'MuiTooltip',\n slot: 'Tooltip',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles[`tooltipPlacement${capitalize(ownerState.placement.split('-')[0])}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),\n borderRadius: (theme.vars || theme).shape.borderRadius,\n color: (theme.vars || theme).palette.common.white,\n fontFamily: theme.typography.fontFamily,\n padding: '4px 8px',\n fontSize: theme.typography.pxToRem(11),\n maxWidth: 300,\n margin: 2,\n wordWrap: 'break-word',\n fontWeight: theme.typography.fontWeightMedium\n}, ownerState.arrow && {\n position: 'relative',\n margin: 0\n}, ownerState.touch && {\n padding: '8px 16px',\n fontSize: theme.typography.pxToRem(14),\n lineHeight: `${round(16 / 14)}em`,\n fontWeight: theme.typography.fontWeightRegular\n}, {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: _extends({\n transformOrigin: 'right center'\n }, !ownerState.isRtl ? _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n }) : _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: _extends({\n transformOrigin: 'left center'\n }, !ownerState.isRtl ? _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n }) : _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: _extends({\n transformOrigin: 'center bottom',\n marginBottom: '14px'\n }, ownerState.touch && {\n marginBottom: '24px'\n }),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: _extends({\n transformOrigin: 'center top',\n marginTop: '14px'\n }, ownerState.touch && {\n marginTop: '24px'\n })\n}));\nconst TooltipArrow = styled('span', {\n name: 'MuiTooltip',\n slot: 'Arrow',\n overridesResolver: (props, styles) => styles.arrow\n})(({\n theme\n}) => ({\n overflow: 'hidden',\n position: 'absolute',\n width: '1em',\n height: '0.71em' /* = width / sqrt(2) = (length of the hypotenuse) */,\n boxSizing: 'border-box',\n color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),\n '&::before': {\n content: '\"\"',\n margin: 'auto',\n display: 'block',\n width: '100%',\n height: '100%',\n backgroundColor: 'currentColor',\n transform: 'rotate(45deg)'\n }\n}));\nlet hystersisOpen = false;\nconst hystersisTimer = new Timeout();\nlet cursorPosition = {\n x: 0,\n y: 0\n};\nexport function testReset() {\n hystersisOpen = false;\n hystersisTimer.clear();\n}\nfunction composeEventHandler(handler, eventHandler) {\n return event => {\n if (eventHandler) {\n eventHandler(event);\n }\n handler(event);\n };\n}\n\n// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.\nconst Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {\n var _ref, _slots$popper, _ref2, _ref3, _slots$transition, _ref4, _slots$tooltip, _ref5, _slots$arrow, _slotProps$popper, _ref6, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref7, _slotProps$tooltip2, _slotProps$arrow, _ref8, _slotProps$arrow2;\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTooltip'\n });\n const {\n arrow = false,\n children: childrenProp,\n components = {},\n componentsProps = {},\n describeChild = false,\n disableFocusListener = false,\n disableHoverListener = false,\n disableInteractive: disableInteractiveProp = false,\n disableTouchListener = false,\n enterDelay = 100,\n enterNextDelay = 0,\n enterTouchDelay = 700,\n followCursor = false,\n id: idProp,\n leaveDelay = 0,\n leaveTouchDelay = 1500,\n onClose,\n onOpen,\n open: openProp,\n placement = 'bottom',\n PopperComponent: PopperComponentProp,\n PopperProps = {},\n slotProps = {},\n slots = {},\n title,\n TransitionComponent: TransitionComponentProp = Grow,\n TransitionProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // to prevent runtime errors, developers will need to provide a child as a React element anyway.\n const children = /*#__PURE__*/React.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/_jsx(\"span\", {\n children: childrenProp\n });\n const theme = useTheme();\n const isRtl = theme.direction === 'rtl';\n const [childNode, setChildNode] = React.useState();\n const [arrowRef, setArrowRef] = React.useState(null);\n const ignoreNonTouchEvents = React.useRef(false);\n const disableInteractive = disableInteractiveProp || followCursor;\n const closeTimer = useTimeout();\n const enterTimer = useTimeout();\n const leaveTimer = useTimeout();\n const touchTimer = useTimeout();\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: false,\n name: 'Tooltip',\n state: 'open'\n });\n let open = openState;\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const {\n current: isControlled\n } = React.useRef(openProp !== undefined);\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {\n console.error(['MUI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', \"Tooltip needs to listen to the child element's events to display the title.\", '', 'Add a simple wrapper element, such as a `span`.'].join('\\n'));\n }\n }, [title, childNode, isControlled]);\n }\n const id = useId(idProp);\n const prevUserSelect = React.useRef();\n const stopTouchInteraction = useEventCallback(() => {\n if (prevUserSelect.current !== undefined) {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n prevUserSelect.current = undefined;\n }\n touchTimer.clear();\n });\n React.useEffect(() => stopTouchInteraction, [stopTouchInteraction]);\n const handleOpen = event => {\n hystersisTimer.clear();\n hystersisOpen = true;\n\n // The mouseover event will trigger for every nested element in the tooltip.\n // We can skip rerendering when the tooltip is already open.\n // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue.\n setOpenState(true);\n if (onOpen && !open) {\n onOpen(event);\n }\n };\n const handleClose = useEventCallback(\n /**\n * @param {React.SyntheticEvent | Event} event\n */\n event => {\n hystersisTimer.start(800 + leaveDelay, () => {\n hystersisOpen = false;\n });\n setOpenState(false);\n if (onClose && open) {\n onClose(event);\n }\n closeTimer.start(theme.transitions.duration.shortest, () => {\n ignoreNonTouchEvents.current = false;\n });\n });\n const handleEnter = event => {\n if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {\n return;\n }\n\n // Remove the title ahead of time.\n // We don't want to wait for the next render commit.\n // We would risk displaying two tooltips at the same time (native + this one).\n if (childNode) {\n childNode.removeAttribute('title');\n }\n enterTimer.clear();\n leaveTimer.clear();\n if (enterDelay || hystersisOpen && enterNextDelay) {\n enterTimer.start(hystersisOpen ? enterNextDelay : enterDelay, () => {\n handleOpen(event);\n });\n } else {\n handleOpen(event);\n }\n };\n const handleLeave = event => {\n enterTimer.clear();\n leaveTimer.start(leaveDelay, () => {\n handleClose(event);\n });\n };\n const {\n isFocusVisibleRef,\n onBlur: handleBlurVisible,\n onFocus: handleFocusVisible,\n ref: focusVisibleRef\n } = useIsFocusVisible();\n // We don't necessarily care about the focusVisible state (which is safe to access via ref anyway).\n // We just need to re-render the Tooltip if the focus-visible state changes.\n const [, setChildIsFocusVisible] = React.useState(false);\n const handleBlur = event => {\n handleBlurVisible(event);\n if (isFocusVisibleRef.current === false) {\n setChildIsFocusVisible(false);\n handleLeave(event);\n }\n };\n const handleFocus = event => {\n // Workaround for https://github.com/facebook/react/issues/7769\n // The autoFocus of React might trigger the event before the componentDidMount.\n // We need to account for this eventuality.\n if (!childNode) {\n setChildNode(event.currentTarget);\n }\n handleFocusVisible(event);\n if (isFocusVisibleRef.current === true) {\n setChildIsFocusVisible(true);\n handleEnter(event);\n }\n };\n const detectTouchStart = event => {\n ignoreNonTouchEvents.current = true;\n const childrenProps = children.props;\n if (childrenProps.onTouchStart) {\n childrenProps.onTouchStart(event);\n }\n };\n const handleMouseOver = handleEnter;\n const handleMouseLeave = handleLeave;\n const handleTouchStart = event => {\n detectTouchStart(event);\n leaveTimer.clear();\n closeTimer.clear();\n stopTouchInteraction();\n prevUserSelect.current = document.body.style.WebkitUserSelect;\n // Prevent iOS text selection on long-tap.\n document.body.style.WebkitUserSelect = 'none';\n touchTimer.start(enterTouchDelay, () => {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n handleEnter(event);\n });\n };\n const handleTouchEnd = event => {\n if (children.props.onTouchEnd) {\n children.props.onTouchEnd(event);\n }\n stopTouchInteraction();\n leaveTimer.start(leaveTouchDelay, () => {\n handleClose(event);\n });\n };\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n /**\n * @param {KeyboardEvent} nativeEvent\n */\n function handleKeyDown(nativeEvent) {\n // IE11, Edge (prior to using Bink?) use 'Esc'\n if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {\n handleClose(nativeEvent);\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [handleClose, open]);\n const handleRef = useForkRef(children.ref, focusVisibleRef, setChildNode, ref);\n\n // There is no point in displaying an empty tooltip.\n // So we exclude all falsy values, except 0, which is valid.\n if (!title && title !== 0) {\n open = false;\n }\n const popperRef = React.useRef();\n const handleMouseMove = event => {\n const childrenProps = children.props;\n if (childrenProps.onMouseMove) {\n childrenProps.onMouseMove(event);\n }\n cursorPosition = {\n x: event.clientX,\n y: event.clientY\n };\n if (popperRef.current) {\n popperRef.current.update();\n }\n };\n const nameOrDescProps = {};\n const titleIsString = typeof title === 'string';\n if (describeChild) {\n nameOrDescProps.title = !open && titleIsString && !disableHoverListener ? title : null;\n nameOrDescProps['aria-describedby'] = open ? id : null;\n } else {\n nameOrDescProps['aria-label'] = titleIsString ? title : null;\n nameOrDescProps['aria-labelledby'] = open && !titleIsString ? id : null;\n }\n const childrenProps = _extends({}, nameOrDescProps, other, children.props, {\n className: clsx(other.className, children.props.className),\n onTouchStart: detectTouchStart,\n ref: handleRef\n }, followCursor ? {\n onMouseMove: handleMouseMove\n } : {});\n if (process.env.NODE_ENV !== 'production') {\n childrenProps['data-mui-internal-clone-element'] = true;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && !childNode.getAttribute('data-mui-internal-clone-element')) {\n console.error(['MUI: The `children` component of the Tooltip is not forwarding its props correctly.', 'Please make sure that props are spread on the same element that the ref is applied to.'].join('\\n'));\n }\n }, [childNode]);\n }\n const interactiveWrapperListeners = {};\n if (!disableTouchListener) {\n childrenProps.onTouchStart = handleTouchStart;\n childrenProps.onTouchEnd = handleTouchEnd;\n }\n if (!disableHoverListener) {\n childrenProps.onMouseOver = composeEventHandler(handleMouseOver, childrenProps.onMouseOver);\n childrenProps.onMouseLeave = composeEventHandler(handleMouseLeave, childrenProps.onMouseLeave);\n if (!disableInteractive) {\n interactiveWrapperListeners.onMouseOver = handleMouseOver;\n interactiveWrapperListeners.onMouseLeave = handleMouseLeave;\n }\n }\n if (!disableFocusListener) {\n childrenProps.onFocus = composeEventHandler(handleFocus, childrenProps.onFocus);\n childrenProps.onBlur = composeEventHandler(handleBlur, childrenProps.onBlur);\n if (!disableInteractive) {\n interactiveWrapperListeners.onFocus = handleFocus;\n interactiveWrapperListeners.onBlur = handleBlur;\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (children.props.title) {\n console.error(['MUI: You have provided a `title` prop to the child of .', `Remove this title prop \\`${children.props.title}\\` or the Tooltip component.`].join('\\n'));\n }\n }\n const popperOptions = React.useMemo(() => {\n var _PopperProps$popperOp;\n let tooltipModifiers = [{\n name: 'arrow',\n enabled: Boolean(arrowRef),\n options: {\n element: arrowRef,\n padding: 4\n }\n }];\n if ((_PopperProps$popperOp = PopperProps.popperOptions) != null && _PopperProps$popperOp.modifiers) {\n tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);\n }\n return _extends({}, PopperProps.popperOptions, {\n modifiers: tooltipModifiers\n });\n }, [arrowRef, PopperProps]);\n const ownerState = _extends({}, props, {\n isRtl,\n arrow,\n disableInteractive,\n placement,\n PopperComponentProp,\n touch: ignoreNonTouchEvents.current\n });\n const classes = useUtilityClasses(ownerState);\n const PopperComponent = (_ref = (_slots$popper = slots.popper) != null ? _slots$popper : components.Popper) != null ? _ref : TooltipPopper;\n const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow;\n const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;\n const ArrowComponent = (_ref5 = (_slots$arrow = slots.arrow) != null ? _slots$arrow : components.Arrow) != null ? _ref5 : TooltipArrow;\n const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {\n className: clsx(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_ref6 = (_slotProps$popper2 = slotProps.popper) != null ? _slotProps$popper2 : componentsProps.popper) == null ? void 0 : _ref6.className)\n }), ownerState);\n const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);\n const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {\n className: clsx(classes.tooltip, (_ref7 = (_slotProps$tooltip2 = slotProps.tooltip) != null ? _slotProps$tooltip2 : componentsProps.tooltip) == null ? void 0 : _ref7.className)\n }), ownerState);\n const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {\n className: clsx(classes.arrow, (_ref8 = (_slotProps$arrow2 = slotProps.arrow) != null ? _slotProps$arrow2 : componentsProps.arrow) == null ? void 0 : _ref8.className)\n }), ownerState);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/_jsx(PopperComponent, _extends({\n as: PopperComponentProp != null ? PopperComponentProp : Popper,\n placement: placement,\n anchorEl: followCursor ? {\n getBoundingClientRect: () => ({\n top: cursorPosition.y,\n left: cursorPosition.x,\n right: cursorPosition.x,\n bottom: cursorPosition.y,\n width: 0,\n height: 0\n })\n } : childNode,\n popperRef: popperRef,\n open: childNode ? open : false,\n id: id,\n transition: true\n }, interactiveWrapperListeners, popperProps, {\n popperOptions: popperOptions,\n children: ({\n TransitionProps: TransitionPropsInner\n }) => /*#__PURE__*/_jsx(TransitionComponent, _extends({\n timeout: theme.transitions.duration.shorter\n }, TransitionPropsInner, transitionProps, {\n children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {\n children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {\n ref: setArrowRef\n })) : null]\n }))\n }))\n }))]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tooltip.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, adds an arrow to the tooltip.\n * @default false\n */\n arrow: PropTypes.bool,\n /**\n * Tooltip reference element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `slots` prop.\n * It's recommended to use the `slots` prop instead.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Arrow: PropTypes.elementType,\n Popper: PropTypes.elementType,\n Tooltip: PropTypes.elementType,\n Transition: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `slotProps` prop.\n * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * Set to `true` if the `title` acts as an accessible description.\n * By default the `title` acts as an accessible label for the child.\n * @default false\n */\n describeChild: PropTypes.bool,\n /**\n * Do not respond to focus-visible events.\n * @default false\n */\n disableFocusListener: PropTypes.bool,\n /**\n * Do not respond to hover events.\n * @default false\n */\n disableHoverListener: PropTypes.bool,\n /**\n * Makes a tooltip not interactive, i.e. it will close when the user\n * hovers over the tooltip before the `leaveDelay` is expired.\n * @default false\n */\n disableInteractive: PropTypes.bool,\n /**\n * Do not respond to long press touch events.\n * @default false\n */\n disableTouchListener: PropTypes.bool,\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This prop won't impact the enter touch delay (`enterTouchDelay`).\n * @default 100\n */\n enterDelay: PropTypes.number,\n /**\n * The number of milliseconds to wait before showing the tooltip when one was already recently opened.\n * @default 0\n */\n enterNextDelay: PropTypes.number,\n /**\n * The number of milliseconds a user must touch the element before showing the tooltip.\n * @default 700\n */\n enterTouchDelay: PropTypes.number,\n /**\n * If `true`, the tooltip follow the cursor over the wrapped element.\n * @default false\n */\n followCursor: PropTypes.bool,\n /**\n * This prop is used to help implement the accessibility logic.\n * If you don't provide this prop. It falls back to a randomly generated id.\n */\n id: PropTypes.string,\n /**\n * The number of milliseconds to wait before hiding the tooltip.\n * This prop won't impact the leave touch delay (`leaveTouchDelay`).\n * @default 0\n */\n leaveDelay: PropTypes.number,\n /**\n * The number of milliseconds after the user stops touching an element before hiding the tooltip.\n * @default 1500\n */\n leaveTouchDelay: PropTypes.number,\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the component requests to be open.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * Tooltip placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * The component used for the popper.\n * @default Popper\n */\n PopperComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Popper`](/material-ui/api/popper/) element.\n * @default {}\n */\n PopperProps: PropTypes.object,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n arrow: PropTypes.elementType,\n popper: PropTypes.elementType,\n tooltip: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.\n */\n title: PropTypes.node,\n /**\n * The component used for the transition.\n * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Grow\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Tooltip;","import '@/components/mui/menu-item.component.css';\nimport ArrowRightIcon from '@mui/icons-material/ArrowRight';\nimport {\n ListItemIcon as MuiListItemIcon,\n ListItemText as MuiListItemText,\n MenuItem as MuiMenuItem,\n} from '@mui/material';\nimport Tooltip from '@mui/material/Tooltip';\nimport { Localized, ReferencedItem, SingleColumnMenu } from 'platform-bible-utils';\nimport { MouseEvent, PropsWithChildren } from 'react';\n\ntype MenuItemInfoBase = {\n /** Text (displayable in the UI) as the name of the menu item */\n label: string;\n /** Text to display when the mouse hovers over the menu item */\n tooltip?: string;\n};\n\nexport type Command = MenuItemInfoBase & {\n /** Command to execute (string.string) */\n command: string;\n};\n\ntype SubMenu = MenuItemInfoBase & {\n /** Command to execute (string.string) */\n items: MenuItemInfo[];\n};\n\nexport interface CommandHandler {\n (command: Command): void;\n}\n\nexport type MenuPropsBase = {\n /*\n * The JSON defining the menu whose items are to be rendered. This will typically be one of the\n * menus in the \"defs\" in a Platform.Bible menu (see PlatformMenus). The schema for this is\n * menuDocumentSchema (at the end of menus.model.ts). Note that while this is a\n * \"SingleColumnMenu\", somewhat bizarrely, a MultiColumnMenu is a SingleColumnMenu, so it really\n * could be a MultiColumnMenu, in which case, column had better be defined so it can be used\n * to filter out the actual groups and items to display on the column.\n */\n menuDefinition: Localized;\n\n commandHandler: CommandHandler;\n\n /**\n * Additional action to perform when any menu item is clicked. Allows the caller to handle event\n * (e.g., to close the menu).\n */\n onClick?: (event: MouseEvent) => void;\n};\n\nexport type MenuItemListProps = MenuPropsBase & {\n /** Optional unique (column) identifier */\n columnId?: ReferencedItem;\n};\n\nexport type MenuItemProps = Omit &\n PropsWithChildren<{\n /** Optional unique identifier */\n id?: string;\n\n onClick: (event: MouseEvent) => void;\n }>;\n\ntype MenuItemInfo = (Command | SubMenu) & {\n /**\n * If specified, menu item will be inset if it does not have a leading icon.\n *\n * @default true\n */\n allowForLeadingIcons?: boolean;\n /**\n * If specified, the path to the icon image to display on the leading side of the menu text.\n *\n * @default undefined (no leading icon will be shown)\n */\n iconPathBefore?: string;\n /**\n * If specified, the path to the icon image to display on the trailing side of the menu text.\n *\n * @default undefined (no trailing icon will be shown)\n */\n iconPathAfter?: string;\n /**\n * If true, list item is focused during the first mount\n *\n * @default false\n */\n hasAutoFocus?: boolean;\n\n /** Additional css classes to help with unique styling of the menu item */\n className?: string;\n\n /**\n * If true, the menu item will appear disabled and it will not respond to clicks or mouse hovers.\n *\n * @default false\n */\n isDisabled?: boolean;\n\n /**\n * If true, compact vertical padding designed for keyboard and mouse input is used.\n *\n * @default true\n */\n isDense?: boolean;\n\n /**\n * If true, a right-arrow icon will be displayed (iconPathAfter, if specified, will be ignored).\n *\n * @default false\n */\n isSubMenuParent?: boolean;\n\n /**\n * If true, the left and right padding is removed\n *\n * @default false\n */\n hasDisabledGutters?: boolean;\n\n /**\n * If true, a 1px light border is added to bottom of menu item\n *\n * @default false\n */\n hasDivider?: boolean;\n\n /** Help identify which element has keyboard focus */\n focusVisibleClassName?: string;\n\n /** If it's a submenu, it should have the items property */\n items?: MenuItemInfo[];\n};\n\nfunction getIcon(icon: string | undefined, menuLabel: string, leading: boolean) {\n return icon ? (\n \n {`${leading\n \n ) : undefined;\n}\n\nexport default function MenuItem(props: MenuItemProps) {\n const {\n onClick,\n label,\n tooltip,\n allowForLeadingIcons = true,\n iconPathBefore = undefined,\n iconPathAfter = undefined,\n hasAutoFocus = false,\n className,\n isDisabled = false,\n isDense = true,\n isSubMenuParent = false,\n hasDisabledGutters = false,\n hasDivider = false,\n focusVisibleClassName,\n id,\n children,\n } = props;\n\n const menuItem = (\n \n {label ? (\n <>\n {getIcon(iconPathBefore, label, true)}\n \n {isSubMenuParent ? (\n \n \n \n ) : (\n getIcon(iconPathAfter, label, false)\n )}\n \n ) : (\n children\n )}\n \n );\n\n return tooltip ? (\n \n
    {menuItem}
    \n
    \n ) : (\n menuItem\n );\n}\n","import MenuItem, {\n MenuItemListProps,\n MenuItemProps,\n MenuPropsBase,\n} from '@/components/mui/menu-item.component';\nimport { Menu } from '@mui/material';\nimport {\n Localized,\n MenuGroupDetailsInSubMenu,\n MenuItemContainingCommand,\n MenuItemContainingSubmenu,\n OrderedExtensibleContainer,\n ReferencedItem,\n SingleColumnMenu,\n} from 'platform-bible-utils';\nimport { MouseEvent, useMemo, useState } from 'react';\n\n/**\n * All the exported types in this file should be regarded as \"internal\" (i.e., they should not be\n * exposed via index.ts).\n */\n\nexport type GroupedMenuPropsBase = MenuPropsBase & {\n /** Optional unique (column) identifier */\n columnId?: ReferencedItem;\n};\n\nexport type GroupedMenuItemListProps = MenuItemListProps & {\n /**\n * If the menuDefinition includes \"top-level\" groups (i.e., those that belong to a column as\n * opposed to those that belong to a submenu) that should not be included in the list, then this\n * array specifies which groups to include. Likewise, for a submenu, this list indicates which\n * groups are pertinent for that submenu. So then for a context menu this property need not be\n * specified since it is a top-level menu based on a \"true\" SingleColumnMenu (i.e., one that is\n * not a MultiColumnMenu).\n */\n includedGroups?: {\n id: string;\n group: Localized;\n }[];\n};\n\ninterface ItemInfo {\n item: Localized;\n isLastItemInGroup: boolean;\n}\n\ntype SubMenuProps = MenuPropsBase & {\n parentMenuItem: Localized;\n parentItemProps: Omit, 'iconPathAfter'>;\n};\n\nfunction getAllGroups(menuDefinition: Localized) {\n const groupEntries = Object.entries(menuDefinition.groups);\n // Convert array of entries to array of objects with id and group properties\n return groupEntries.map(([key, value]) => ({ id: key, group: value }));\n}\n\nfunction SubMenu(props: SubMenuProps) {\n const [anchorEl, setAnchorEl] = useState(undefined);\n\n const { parentMenuItem, parentItemProps, menuDefinition } = props;\n\n const handleParentMenuItemClick = (event: MouseEvent) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(undefined);\n };\n\n const renderSubMenuItems = () => {\n let includedGroups = getAllGroups(menuDefinition).filter((g) => 'menuItem' in g.group);\n\n // Ensure valid parent menu was provided. (If not, submenu will contain all groups!)\n if (!parentMenuItem?.id) throw new Error('A valid parent menu item is required for submenus.');\n\n // When laying out a submenu, only include groups associated with the provided parent menu.\n // Note: without the (annoying) redundant check that the included groups\n // have the menuItem field, TS doesn't think it exists.\n includedGroups = includedGroups.filter(\n (group) => 'menuItem' in group.group && group.group.menuItem === parentMenuItem.id,\n );\n\n return ;\n };\n\n return (\n <>\n \n \n {renderSubMenuItems()}\n \n \n );\n}\n\nconst getOrderedGroupItems = (\n groupId: string,\n allItems: Localized[],\n) => {\n // Filter items that belong to the specified group\n const itemsForGroup = allItems.filter((item) => item.group === groupId);\n // Sort items based on order\n const sortedItems = itemsForGroup.sort((a, b) => (a.order || 0) - (b.order || 0));\n return sortedItems;\n};\n\n/**\n * This component is internal; it does not need to be exposed to the outside world since it is not\n * useful on its own. It is used to generate and lay out the MenuItems that appear either on a\n * top-level menu (in a GridMenu or ContextMenu) or in a submenu.\n */\nexport default function GroupedMenuItemList(menuProps: GroupedMenuItemListProps) {\n const { menuDefinition, onClick, commandHandler, includedGroups } = menuProps;\n\n const { items, allowForLeadingIcons } = useMemo(() => {\n const groupsToInclude =\n includedGroups && includedGroups.length > 0\n ? includedGroups\n : // We're apparently laying out a single-column menu (presumably a context menu). In this\n // case, all groups should be included except ones that belong to a submenu.\n getAllGroups(menuDefinition).filter((g) => !('menuItem' in g.group));\n\n const sortedGroups = Object.values(groupsToInclude).sort(\n (a, b) => (a.group.order || 0) - (b.group.order || 0),\n );\n\n const itemArray: ItemInfo[] = [];\n\n sortedGroups.forEach((group) => {\n getOrderedGroupItems(group.id, menuDefinition.items).forEach((item) =>\n itemArray.push({ item, isLastItemInGroup: false }),\n );\n if (itemArray.length > 0) itemArray[itemArray.length - 1].isLastItemInGroup = true;\n });\n\n // No divider after last item in final group.\n if (itemArray.length > 0) itemArray[itemArray.length - 1].isLastItemInGroup = false;\n\n const allowSpaceForLeadingIcons = itemArray.some(\n (i) => 'iconPathBefore' in i.item && i.item.iconPathBefore,\n );\n\n return { items: itemArray, allowForLeadingIcons: allowSpaceForLeadingIcons };\n }, [includedGroups, menuDefinition]);\n\n // Create props for MenuItem component including setting hasDivider for the last item in a group\n const createMenuItemProps = ({ item, isLastItemInGroup }: ItemInfo) => {\n const menuItemProps = {\n className: 'papi-menu-item',\n label: item.label,\n tooltip: item.tooltip,\n iconPathBefore: 'iconPathBefore' in item ? item.iconPathBefore : undefined,\n iconPathAfter: 'iconPathAfter' in item ? item.iconPathAfter : undefined,\n hasDivider: isLastItemInGroup, // Set hasDivider to true for the last item in a group\n allowForLeadingIcons,\n };\n\n return menuItemProps;\n };\n\n const [firstItem] = items;\n\n if (!firstItem) return
    ;\n\n const divKey = firstItem.item.group;\n\n return (\n
    \n {items.map((itemInfo, index) => {\n const { item } = itemInfo;\n const menuItemProps = createMenuItemProps(itemInfo);\n if ('command' in item) {\n const key = item.group + index;\n return (\n ) => {\n onClick?.(event);\n commandHandler(item);\n }}\n {...menuItemProps}\n />\n );\n }\n return (\n \n );\n })}\n
    \n );\n}\n","import GroupedMenuItemList from '@/components/mui/grouped-menu-item-list.component';\nimport { MenuItemListProps } from '@/components/mui/menu-item.component';\nimport { MultiColumnMenu } from 'platform-bible-utils';\n\n/**\n * This component is internal; it does not need to be exposed to the outside world since it is not\n * useful on its own. Use either GridMenu or ContextMenu.\n */\nexport default function TopLevelMenu(props: MenuItemListProps) {\n const { menuDefinition, columnId } = props;\n\n const groupEntries = Object.entries(menuDefinition.groups);\n // Convert array of entries to array of objects with id and group properties\n const groups = groupEntries.map(([key, value]) => ({ id: key, group: value }));\n let includedGroups = groups.filter((g) => 'column' in g.group);\n\n // Check if column is provided and menuDefinition is a MultiColumnMenu\n if (\n columnId &&\n 'columns' in menuDefinition &&\n // Without this type assertion, TS doesn't know what columns is.\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n (menuDefinition as MultiColumnMenu).columns[columnId]\n ) {\n // When laying out a single column in a MultiColumnMenu, only include groups associated with\n // the provided column. Note: without the (annoying) redundant check that the included groups\n // have the colum field, TS doesn't think it exists.\n includedGroups = includedGroups.filter(\n (g) => 'column' in g.group && g.group.column === columnId,\n );\n }\n\n return ;\n}\n","import '@/components/mui/grid-menu.component.css';\nimport { GroupedMenuPropsBase } from '@/components/mui/grouped-menu-item-list.component';\nimport { CommandHandler } from '@/components/mui/menu-item.component';\nimport TopLevelMenu from '@/components/mui/top-level-menu.component';\nimport { Grid, List } from '@mui/material';\nimport {\n Localized,\n MenuColumnWithHeader,\n MultiColumnMenu,\n ReferencedItem,\n} from 'platform-bible-utils';\nimport { useMemo } from 'react';\n\ntype ColumnInfo = {\n /*\n * The ID (`${string}.${string}`) of a specific menu column.\n */\n id: ReferencedItem;\n\n /*\n * Metadata (label, order, etc.) for a specific menu column.\n */\n metadata: Localized;\n};\n\ntype MenuColumnProps = ColumnInfo &\n GroupedMenuPropsBase & {\n /** Additional css classes to help with unique styling of the menu column */\n className?: string;\n };\n\nexport type GridMenuInfo = {\n /** The menu object containing information about the columns, groups, and items to display. */\n multiColumnMenu: Localized;\n};\n\nexport type GridMenuProps = GridMenuInfo & {\n /** Optional unique identifier */\n id?: string;\n\n commandHandler: CommandHandler;\n\n /** Additional css classes to help with unique styling of the grid menu */\n className?: string;\n};\n\nfunction MenuColumn({\n commandHandler,\n menuDefinition,\n id,\n metadata,\n onClick,\n className,\n}: MenuColumnProps) {\n return (\n \n

    \n {metadata.label}\n

    \n {/* It would seem as though this List component were unnecessary, since it only contains one\n thing, but the \"dense\" property does affect the layout of the items (in a way I don't fully\n understand). There might be a better way. */}\n \n \n \n \n );\n}\n\nexport default function GridMenu({\n commandHandler,\n className,\n multiColumnMenu,\n id,\n}: GridMenuProps) {\n const { columns } = multiColumnMenu;\n\n const sortedColumns = useMemo(() => {\n const columnNumbers = new Map();\n Object.getOwnPropertyNames(columns).forEach((columnName: string) => {\n // We know for sure there is a (boolean) property 'isExtensible' that we are not interested in.\n if (columnName === 'isExtensible') return;\n // TS doesn't allow `columnName` above to be a ReferencedItem even though the type says it is\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const columnId = columnName as ReferencedItem;\n const column = columns[columnId];\n // As of right now (and hopefully forever after), all remaining properties of the\n // ColumnsWithHeaders object are columns whose property names are the IDs of the columns.\n // This is an additional (redundant) sanity check. Specifically we're interested in\n // MenuColumnWithHeader objects, which TypeScript now \"knows\" we have, but at runtime all we\n // can check for is that it's an object with a valid numeric order field. That's likely good\n // enough.\n if (\n typeof column === 'object' &&\n typeof column.order === 'number' &&\n !Number.isNaN(column.order)\n )\n columnNumbers.set(column.order, { id: columnId, metadata: column });\n else\n console.warn(\n `Property ${columnName} (${typeof column}) on menu ${id} is not a valid column and is being ignored. This might indicate data corruption`,\n );\n });\n\n // Extract values and sort them based on the 'order' property\n return Array.from(columnNumbers.values()).sort((a, b) => {\n return (a.metadata.order || 0) - (b.metadata.order || 0);\n });\n }, [columns, id]);\n\n // We might need something like this if we need to be able to prevent empty columns\n // sortedColumns.filter((c) => multiColumnMenu.groups.some((g) => 'column' in g && (g as .column)...\n\n return (\n \n {sortedColumns.map((col, index) => (\n \n ))}\n \n );\n}\n","import { useEffect, useRef, useState } from 'react';\n\nexport type UsePromiseOptions = {\n /**\n * Whether to leave the value as the most recent resolved promise value or set it back to\n * defaultValue while running the promise again. Defaults to true\n */\n preserveValue?: boolean;\n};\n\n/** Set up defaults for options for usePromise hook */\nfunction getUsePromiseOptionsDefaults(options: UsePromiseOptions): UsePromiseOptions {\n return {\n preserveValue: true,\n ...options,\n };\n}\n\n/**\n * Awaits a promise and returns a loading value while the promise is unresolved\n *\n * @param promiseFactoryCallback A function that returns the promise to await. If this callback is\n * undefined, the current value will be returned (defaultValue unless it was previously changed\n * and `options.preserveValue` is true), and there will be no loading.\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n * @param defaultValue The initial value to return while first awaiting the promise. If\n * `options.preserveValue` is false, this value is also shown while awaiting the promise on\n * subsequent calls.\n *\n * Note: this parameter is internally assigned to a `ref`, so changing it will not cause any hooks\n * to re-run with its new value. This means that, if the `promiseFactoryCallback` changes and\n * `options.preserveValue` is `false`, the returned value will be set to the current\n * `defaultValue`. However, the returned value will not be updated if`defaultValue` changes.\n * @param options Various options for adjusting how this hook runs the `promiseFactoryCallback`\n *\n * Note: this parameter is internally assigned to a `ref`, so changing it will not cause any hooks\n * to re-run with its new value. However, the latest `options.preserveValue` will always be used\n * appropriately to determine whether to preserve the returned value when changing the\n * `promiseFactoryCallback`\n * @returns `[value, isLoading]`\n *\n * - `value`: the current value for the promise, either the defaultValue or the resolved promise value\n * - `isLoading`: whether the promise is waiting to be resolved\n */\nconst usePromise = (\n promiseFactoryCallback: (() => Promise) | undefined,\n defaultValue: T,\n options: UsePromiseOptions = {},\n): [value: T, isLoading: boolean] => {\n // Use defaultValue as a ref so it doesn't update dependency arrays\n const defaultValueRef = useRef(defaultValue);\n defaultValueRef.current = defaultValue;\n // Use options as a ref so it doesn't update dependency arrays\n const optionsDefaultedRef = useRef(options);\n optionsDefaultedRef.current = getUsePromiseOptionsDefaults(optionsDefaultedRef.current);\n\n const [value, setValue] = useState(() => defaultValueRef.current);\n const [isLoading, setIsLoading] = useState(true);\n useEffect(() => {\n let promiseIsCurrent = true;\n // If a promiseFactoryCallback was provided, we are loading. Otherwise, there is no loading to do\n setIsLoading(!!promiseFactoryCallback);\n (async () => {\n // If there is a callback to run, run it\n if (promiseFactoryCallback) {\n const result = await promiseFactoryCallback();\n // If the promise was not already replaced, update the value\n if (promiseIsCurrent) {\n setValue(() => result);\n setIsLoading(false);\n }\n }\n })();\n\n return () => {\n // Mark this promise as old and not to be used\n promiseIsCurrent = false;\n if (!optionsDefaultedRef.current.preserveValue) setValue(() => defaultValueRef.current);\n };\n }, [promiseFactoryCallback]);\n\n return [value, isLoading];\n};\nexport default usePromise;\n","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z\"\n}), 'Menu');","import GridMenu from '@/components/mui/grid-menu.component';\nimport { Command, CommandHandler } from '@/components/mui/menu-item.component';\nimport usePromise from '@/hooks/use-promise.hook';\nimport { Menu as MenuIcon } from '@mui/icons-material';\nimport { Drawer, IconButton } from '@mui/material';\nimport { Localized, MultiColumnMenu } from 'platform-bible-utils';\nimport {\n MouseEvent,\n MutableRefObject,\n PropsWithChildren,\n useCallback,\n useEffect,\n useState,\n} from 'react';\n\nexport interface MultiColumnMenuProvider {\n (isSupportAndDevelopment: boolean): Promise>;\n}\n\nexport type HamburgerMenuButtonProps = PropsWithChildren & {\n /** The handler to use for menu commands (and eventually toolbar commands). */\n commandHandler: CommandHandler;\n\n /**\n * Optional reference to the \"div\" container that determines the where the menu should appear. If\n * not defined, then (1,1) used.\n */\n containerRef?: MutableRefObject;\n\n /**\n * The delegate to use to get the menu data. If not specified or if it returns undefined, the data\n * in normalMenu or fullMenu property will be used.\n */\n menuProvider?: MultiColumnMenuProvider;\n\n /**\n * The menu data to show when the menu is opened if the menuProvider property is not defined.\n * (This allows for a default or test-only static menu to be used.)\n */\n normalMenu?: Localized;\n\n /**\n * The menu data to show for \"full\" menu (when opened with the SHIFT key pressed) if the\n * menuProvider property is not defined. (This allows for a default or test-only static menu to be\n * used.)\n */\n fullMenu?: Localized;\n\n /** Additional css class(es) to help with unique styling of the sub-components */\n className?: string;\n\n /** Value to use as prefix for ARIA labels on interactive sub-components */\n ariaLabelPrefix?: string;\n};\n\nexport default function HamburgerMenuButton({\n menuProvider,\n normalMenu,\n fullMenu,\n commandHandler,\n containerRef,\n className,\n ariaLabelPrefix,\n children,\n}: HamburgerMenuButtonProps) {\n const [isMenuOpen, setMenuOpen] = useState(false);\n const [showFullMenu, setShowFullMenu] = useState(false);\n\n const handleMenuItemClick = useCallback(() => {\n if (isMenuOpen) setMenuOpen(false);\n setShowFullMenu(false);\n }, [isMenuOpen]);\n\n const handleMenuButtonClick = useCallback((e: MouseEvent) => {\n e.stopPropagation();\n setMenuOpen((prevIsOpen) => {\n const isOpening = !prevIsOpen;\n if (isOpening && e.shiftKey) setShowFullMenu(true);\n else if (!isOpening) setShowFullMenu(false);\n return isOpening;\n });\n }, []);\n\n const menuCommandHandler = useCallback(\n (command: Command) => {\n handleMenuItemClick();\n return commandHandler(command);\n },\n [commandHandler, handleMenuItemClick],\n );\n\n const [offset, setOffset] = useState({ top: 1, left: 1 });\n\n useEffect(() => {\n if (isMenuOpen) {\n const node = containerRef?.current;\n if (node) {\n const rect = node.getBoundingClientRect();\n const scrollTop = window.scrollY;\n const scrollLeft = window.scrollX;\n const top = rect.top + scrollTop + node.clientHeight;\n const left = rect.left + scrollLeft;\n setOffset({ top, left });\n }\n }\n }, [isMenuOpen, containerRef]);\n\n const [normalMenuData] = usePromise(\n useCallback(async () => {\n return menuProvider?.(false) ?? normalMenu;\n // isMenuOpen needs to be included for the menu contents to reevaluate when reopened\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [menuProvider, normalMenu, isMenuOpen]),\n normalMenu,\n );\n\n const [fullMenuData] = usePromise(\n useCallback(async () => {\n return menuProvider?.(true) ?? fullMenu ?? normalMenuData;\n // isMenuOpen needs to be included for the menu contents to reevaluate when reopened\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [menuProvider, fullMenu, normalMenuData, isMenuOpen]),\n fullMenu ?? normalMenuData,\n );\n\n const menu = showFullMenu && fullMenuData ? fullMenuData : normalMenuData;\n\n return (\n <>\n \n {children ?? }\n \n \n {menu ? (\n \n ) : undefined}\n \n \n );\n}\n","import '@/components/mui/icon-button.component.css';\nimport { IconButton as MuiIconButton } from '@mui/material';\nimport { MouseEventHandler, PropsWithChildren } from 'react';\n\nexport type IconButtonProps = PropsWithChildren<{\n /** Optional unique identifier */\n id?: string;\n /**\n * Required. Used as both the tooltip (aka, title) and the aria-label (used for accessibility,\n * testing, etc.), unless a distinct tooltip is supplied.\n */\n label: string;\n /**\n * Enabled status of button\n *\n * @default false\n */\n isDisabled?: boolean;\n /** Optional tooltip to display if different from the aria-label. */\n tooltip?: string;\n /** If true, no tooltip will be displayed. */\n isTooltipSuppressed?: boolean;\n /**\n * If given, uses a negative margin to counteract the padding on one side (this is often helpful\n * for aligning the left or right side of the icon with content above or below, without ruining\n * the border size and shape).\n *\n * @default false\n */\n adjustMarginToAlignToEdge?: 'end' | 'start' | false;\n /**\n * The size of the component. small is equivalent to the dense button styling.\n *\n * @default false\n */\n size: 'small' | 'medium' | 'large';\n /** Additional css classes to help with unique styling of the button */\n className?: string;\n /** Optional click handler */\n onClick?: MouseEventHandler;\n}>;\n\n/**\n * Iconic button a user can click to do something\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction IconButton({\n id,\n label,\n isDisabled = false,\n tooltip,\n isTooltipSuppressed = false,\n adjustMarginToAlignToEdge = false,\n size = 'medium',\n className,\n onClick,\n children,\n}: IconButtonProps) {\n return (\n \n {children /* the icon to display */}\n \n );\n}\n\nexport default IconButton;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { LoaderCircle, LucideProps } from 'lucide-react';\nimport { forwardRef } from 'react';\n\nexport type SpinnerProps = LucideProps;\n\nconst Spinner = forwardRef(({ className, ...props }, ref) => {\n return (\n \n );\n});\n\nSpinner.displayName = 'Spinner';\n\nexport default Spinner;\n","import { Input as ShadInput } from '@/components/shadcn-ui/input';\nimport { Label as ShadLabel } from '@/components/shadcn-ui/label';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { ChangeEventHandler, FocusEventHandler } from 'react';\n\nexport type TextFieldProps = {\n /** Optional unique identifier */\n id?: string;\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * If `true`, the label is displayed in an error state.\n *\n * @default false\n */\n hasError?: boolean;\n /**\n * If `true`, the input will take up the full width of its container.\n *\n * @default false\n */\n isFullWidth?: boolean;\n /** Text that gives the user instructions on what contents the TextField expects */\n helperText?: string;\n /** The title of the TextField */\n label?: string;\n /** The short hint displayed in the `input` before the user enters a value. */\n placeholder?: string;\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n *\n * @default false\n */\n isRequired?: boolean;\n /** Additional css classes to help with unique styling of the text field */\n className?: string;\n /** Starting value for the text field if it is not controlled */\n defaultValue?: string | number;\n /** Value of the text field if controlled */\n value?: string | number;\n /** Triggers when content of textfield is changed */\n onChange?: ChangeEventHandler;\n /** Triggers when textfield gets focus */\n onFocus?: FocusEventHandler;\n /** Triggers when textfield loses focus */\n onBlur?: FocusEventHandler;\n};\n\n/**\n * Text input field\n *\n * Thanks to Shadcn for heavy inspiration and documentation\n * https://ui.shadcn.com/docs/components/input#with-label\n */\nfunction TextField({\n id,\n isDisabled = false,\n hasError = false,\n isFullWidth = false,\n helperText,\n label,\n placeholder,\n isRequired = false,\n className,\n defaultValue,\n value,\n onChange,\n onFocus,\n onBlur,\n}: TextFieldProps) {\n return (\n
    \n {`${label}${isRequired ? '*' : ''}`}\n \n

    {helperText}

    \n
    \n );\n}\n\nexport default TextField;\n","import HamburgerMenuButton, {\n MultiColumnMenuProvider,\n} from '@/components/mui/hamburger-menu-button.component';\nimport { CommandHandler } from '@/components/mui/menu-item.component';\nimport '@/components/mui/toolbar.component.css';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { AppBar, Toolbar as MuiToolbar } from '@mui/material';\nimport { PropsWithChildren, useRef } from 'react';\n\nexport type ToolbarProps = PropsWithChildren<{\n /** The handler to use for menu commands (and eventually toolbar commands). */\n commandHandler: CommandHandler;\n\n /**\n * The optional delegate to use to get the menu data. If not specified, the \"hamburger\" menu will\n * not display.\n */\n menuProvider?: MultiColumnMenuProvider;\n\n /** Optional unique identifier */\n id?: string;\n\n /** Additional css classes to help with unique styling of the toolbar */\n className?: string;\n}>;\n\nexport default function Toolbar({\n menuProvider,\n commandHandler,\n className,\n id,\n children,\n}: ToolbarProps) {\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const containerRef = useRef(undefined!);\n\n return (\n
    \n \n \n {menuProvider ? (\n \n ) : undefined}\n {children ?
    {children}
    : undefined}\n \n
    \n
    \n );\n}\n","import React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst alertVariants = cva(\n 'tw-relative tw-w-full tw-rounded-lg tw-border tw-p-4 [&>svg~*]:tw-pl-7 [&>svg+div]:tw-translate-y-[-3px] [&>svg]:tw-absolute [&>svg]:tw-left-4 [&>svg]:tw-top-4 [&>svg]:tw-text-foreground',\n {\n variants: {\n variant: {\n default: 'tw-bg-background tw-text-foreground',\n destructive:\n 'tw-border-destructive/50 tw-text-destructive dark:tw-border-destructive [&>svg]:tw-text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes & VariantProps\n>(({ className, variant, ...props }, ref) => (\n
    \n));\nAlert.displayName = 'Alert';\n\nconst AlertTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}{' '}\n \n ),\n);\nAlertTitle.displayName = 'AlertTitle';\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
    \n));\nAlertDescription.displayName = 'AlertDescription';\n\nexport { Alert, AlertTitle, AlertDescription };\n","import { cva, type VariantProps } from 'class-variance-authority';\nimport React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst badgeVariants = cva(\n 'tw-inline-flex tw-items-center tw-rounded-full tw-border tw-px-2.5 tw-py-0.5 tw-text-xs tw-font-semibold tw-transition-colors focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2',\n {\n variants: {\n variant: {\n default:\n 'tw-border-transparent tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/80',\n secondary:\n 'tw-border-transparent tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80',\n muted: 'tw-border-transparent tw-bg-muted tw-text-muted-foreground hover:tw-bg-muted/80',\n destructive:\n 'tw-border-transparent tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/80',\n outline: 'tw-text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nexport interface BadgeProps\n extends React.HTMLAttributes,\n VariantProps {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return
    ;\n}\n\nexport { Badge, badgeVariants };\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Card = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCard.displayName = 'Card';\n\nconst CardHeader = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}\n \n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n

    \n));\nCardDescription.displayName = 'CardDescription';\n\nconst CardContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n

    \n ),\n);\nCardContent.displayName = 'CardContent';\n\nconst CardFooter = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardFooter.displayName = 'CardFooter';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n","import { ComponentProps } from 'react';\nimport { toast as sonner, Toaster } from 'sonner';\n\ntype SonnerProps = ComponentProps;\n\nfunction Sonner({ ...props }: SonnerProps) {\n return (\n \n );\n}\n\n// The re-export of the sonner function was added manually\nexport { Sonner, sonner };\n","import React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Slider = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n \n \n \n );\n});\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider };\n","import * as SwitchPrimitives from '@radix-ui/react-switch';\nimport React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Switch = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n );\n});\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n","import React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport const Tabs = TabsPrimitive.Root;\n\nexport type TabsListProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type TabsTriggerProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type TabsContentProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport const TabsList = React.forwardRef<\n React.ElementRef,\n TabsListProps\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nexport const TabsTrigger = React.forwardRef<\n React.ElementRef,\n TabsTriggerProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nexport const TabsContent = React.forwardRef<\n React.ElementRef,\n TabsContentProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Download } from 'lucide-react';\n\ntype InstallButtonProps = {\n /** The installing boolean value determines the state of the button. */\n isInstalling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n /** Optional text for the button. */\n buttonText?: string;\n} & ButtonProps;\n\n/**\n * The InstallButton component is a button designed for initiating installs. It includes visuals for\n * active installing and idle states.\n *\n * @param isInstalling The installing boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @param buttonText Optional text for the button.\n * @returns A install button.\n */\nexport default function InstallButton({\n isInstalling,\n handleClick,\n buttonText,\n className,\n ...props\n}: InstallButtonProps) {\n return (\n \n {isInstalling ? (\n \n ) : (\n <>\n \n {buttonText}\n \n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype EnableButtonProps = {\n /** The enabling boolean value determines the state of the button. */\n isEnabling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The EnableButton component is a button designed for initiating enabling of downloads. It includes\n * visuals for active enabling and idle states.\n *\n * @param isEnabling The enabling boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to enable.\n */\nexport default function EnableButton({\n isEnabling,\n handleClick,\n className,\n ...props\n}: EnableButtonProps) {\n return (\n \n {isEnabling ? (\n <>\n \n Enabling...\n \n ) : (\n 'Enable'\n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype DisableButtonProps = {\n /** The disabling boolean value determines the state of the button. */\n isDisabling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The DisableButton component is a button designed for initiating disabling of downloads. It\n * includes visuals for active disabling and idle states.\n *\n * @param isDisabling The disabling boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to disable.\n */\nexport default function DisableButton({\n isDisabling,\n handleClick,\n className,\n ...props\n}: DisableButtonProps) {\n return (\n \n {isDisabling ? (\n <>\n \n Disabling...\n \n ) : (\n 'Disable'\n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype UpdateButtonProps = {\n /** The updating boolean value determines the state of the button. */\n isUpdating: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The UpdateButton component is a button designed for initiating updates for downloaded extensions.\n * It includes visuals for active updating and idle states.\n *\n * @param isUpdating The updating boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to update.\n */\nexport default function UpdateButton({\n isUpdating,\n handleClick,\n className,\n ...props\n}: UpdateButtonProps) {\n return (\n \n {isUpdating ? (\n <>\n \n Updating...\n \n ) : (\n 'Update'\n )}\n \n );\n}\n","import { cn } from '@/utils/shadcn-ui.util';\nimport Markdown, { MarkdownToJSX } from 'markdown-to-jsx';\nimport { useMemo } from 'react';\n\ninterface MarkdownRendererProps {\n /** Optional unique identifier */\n id?: string;\n /** The markdown string to render */\n markdown: string;\n className?: string;\n /**\n * The [`target` attribute for `a` html\n * tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target). Defaults to not\n * adding a `target` to `a` tags\n */\n anchorTarget?: string;\n}\n\n/**\n * This component renders markdown content given a markdown string. It uses typography styles from\n * the platform.\n *\n * @param markdown The markdown string to render.\n * @param id Optional unique identifier\n * @returns A div containing the rendered markdown content.\n */\nexport default function MarkdownRenderer({\n id,\n markdown,\n className,\n anchorTarget,\n}: MarkdownRendererProps) {\n const options: MarkdownToJSX.Options = useMemo(\n () => ({\n overrides: {\n a: {\n props: {\n target: anchorTarget,\n },\n },\n },\n }),\n [anchorTarget],\n );\n return (\n
    \n {markdown}\n
    \n );\n}\n","import { Filter, ChevronDown } from 'lucide-react';\nimport { forwardRef } from 'react';\nimport { Button } from '@/components/shadcn-ui/button';\n\n/**\n * The FilterButton component is a button designed for initiating filtering of data. It is designed\n * to be used with the dropdown menu. It uses forwardRef to pass the button to the dropdown trigger\n * asChild.\n *\n * @returns A button that can be used to filter.\n */\nconst FilterButton = forwardRef((props, ref) => {\n return (\n \n \n Filter\n \n \n );\n});\n\nexport default FilterButton;\n","import {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuGroup,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport FilterButton from './buttons/filter-button.component';\n\nexport enum DropdownMenuItemType {\n Check,\n Radio,\n}\n\nexport type DropdownItem = {\n /** The label is the text that will be displayed on the dropdown item. */\n label: string;\n /** The itemType determines the DropdownMenuItemType type as either Check or Radio. */\n itemType: DropdownMenuItemType;\n /** The onClick function is called when the item is clicked. */\n onClick: () => void;\n};\n\nexport type DropdownGroup = {\n /**\n * The label is the text that will be displayed on the dropdown group. It is used to categorize\n * the items in the group.\n */\n label: string;\n /** The items array contains the items that will be displayed in the dropdown group */\n items: DropdownItem[];\n};\n\nexport type FilterDropdownProps = {\n /** Object unique identifier */\n id?: string;\n /** The groups array contains the groups that will be displayed in the dropdown */\n groups: DropdownGroup[];\n}; // TODO: extend the props later\n\n/**\n * The FilterDropdown component is a dropdown designed for filtering content. It includes groups of\n * items that can be checkboxes or radio items.\n *\n * @param id Optional unique identifier\n * @param groups The groups array contains the groups that will be displayed in the dropdown\n * @returns A filter dropdown.\n */\nexport default function FilterDropdown({ id, groups }: FilterDropdownProps) {\n return (\n
    \n {/* TODO: remove this once the DropDown Menu shadcn has an id prop */}\n \n \n \n \n \n {groups.map((group) => (\n
    \n {group.label}\n \n {group.items.map((item) => (\n
    \n {item.itemType === DropdownMenuItemType.Check ? (\n \n {item.label}\n \n ) : (\n \n {item.label}\n \n )}\n
    \n ))}\n
    \n \n
    \n ))}\n
    \n
    \n
    \n );\n}\n","interface NoExtensionsFoundProps {\n /** Optional unique identifier */\n id?: string;\n /** The message to display */\n message: string;\n}\n/**\n * This component displays a message to the user when no extensions are found in the marketplace.\n *\n * @param id Optional unique identifier\n * @param message The message to display.\n * @returns {JSX.Element} - Returns the message component that displays the message to the user.\n */\nexport default function NoExtensionsFound({ id, message }: NoExtensionsFoundProps) {\n return (\n
    \n
    \n

    {message}

    \n
    \n
    \n );\n}\n","import { CircleHelp, Link as LucideLink, User } from 'lucide-react';\nimport { NumberFormat } from 'platform-bible-utils';\n\n/** Interface that stores the parameters passed to the More Info component */\ninterface MoreInfoProps {\n /** Optional unique identifier */\n id?: string;\n /** The category of the extension */\n category: string;\n /** The number of downloads for the extension */\n downloads: Record;\n /** The languages supported by the extension */\n languages: string[];\n /** The URL to the more info page of the extension */\n moreInfoUrl: string;\n}\n/**\n * This component displays the more info section of the extension which includes the category,\n * number of downloads, languages, and links to the website and support\n *\n * @param id Optional unique identifier\n * @param category The category of the extension\n * @param downloads The number of downloads for the extension\n * @param languages The languages supported by the extension\n * @param moreInfoUrl The URL to the more info page of the extension\n * @returns {JSX.Element} - Returns the more info component that displays the category, number of\n * downloads, languages, and links to the website and support\n */\nexport default function MoreInfo({\n id,\n category,\n downloads,\n languages,\n moreInfoUrl,\n}: MoreInfoProps) {\n /**\n * This constant formats the number of downloads into a more readable format.\n *\n * @example 1000 -> 1K\n *\n * @example 1000000 -> 1M\n *\n * @returns The formatted number of downloads\n */\n const numberFormatted = new NumberFormat('en', {\n notation: 'compact',\n compactDisplay: 'short',\n }).format(Object.values(downloads).reduce((a: number, b: number) => a + b, 0));\n\n /** This function scrolls the window to the bottom of the page. */\n const handleScrollToBottom = () => {\n window.scrollTo(0, document.body.scrollHeight);\n };\n\n return (\n \n
    \n
    \n {category}\n
    \n CATEGORY\n
    \n
    \n
    \n
    \n \n {numberFormatted}\n
    \n USERS\n
    \n
    \n
    \n
    \n {languages.slice(0, 3).map((locale) => (\n \n {locale.toUpperCase()}\n \n ))}\n
    \n {languages.length > 3 && (\n handleScrollToBottom()}\n className=\"tw-text-xs tw-text-gray-500 tw-underline\"\n >\n +{languages.length - 3} more languages\n \n )}\n
    \n
    \n
    \n \n Website\n \n \n \n Support\n \n \n
    \n
    \n );\n}\n","import { useState } from 'react';\n\nexport type VersionInformation = {\n /** Date the version was published */\n date: string;\n /** Description of the changes in the version */\n description: string;\n};\n\n/** Type to store the version history information */\nexport type VersionHistoryType = Record;\n\n/** Interface that stores the parameters passed to the Version History component */\ninterface VersionHistoryProps {\n /** Optional unique identifier */\n id?: string;\n /** Object containing the versions mapped with their information */\n versionHistory: VersionHistoryType;\n}\n\n/**\n * Component to render the version history information shown in the footer component. Lists the 5\n * most recent versions, with the options to show all versions by pressing a button.\n *\n * @param versionHistory Object containing the versions mapped with their information\n * @param id Optional unique identifier\n * @returns Rendered version history for the Footer component\n */\nexport default function VersionHistory({ id, versionHistory }: VersionHistoryProps) {\n const [showAllVersions, setShowAllVersions] = useState(false);\n const currentDate = new Date();\n\n /**\n * Function to format the time string for the version history in the form of 'X year(s) ago'.\n *\n * @param dateString ISO Date string to determine the time string from\n * @returns Formatted time string\n */\n function formatTimeString(dateString: string) {\n const date = new Date(dateString);\n const dateDiff = new Date(currentDate.getTime() - date.getTime());\n const yearDiff = dateDiff.getUTCFullYear() - 1970;\n const monthDiff = dateDiff.getUTCMonth();\n const dayDiff = dateDiff.getUTCDate() - 1;\n\n // Determines how long ago the version was published\n let timeString = '';\n if (yearDiff > 0) {\n timeString = `${yearDiff.toString()} year${yearDiff === 1 ? '' : 's'} ago`;\n } else if (monthDiff > 0) {\n timeString = `${monthDiff.toString()} month${monthDiff === 1 ? '' : 's'} ago`;\n } else if (dayDiff === 0) {\n timeString = 'today';\n } else {\n timeString = `${dayDiff.toString()} day${dayDiff === 1 ? '' : 's'} ago`;\n }\n\n return timeString;\n }\n\n // Sorts the version history by version number\n const sortedEntries = Object.entries(versionHistory).sort((a, b) => b[0].localeCompare(a[0]));\n\n return (\n
    \n

    What`s New

    \n
      \n {(showAllVersions ? sortedEntries : sortedEntries.slice(0, 5)).map((entry) => (\n
      \n
      \n
    • \n {entry[1].description}\n
    • \n
      \n
      \n
      Version {entry[0]}
      \n
      {formatTimeString(entry[1].date)}
      \n
      \n
      \n ))}\n
    \n {sortedEntries.length > 5 && (\n setShowAllVersions(!showAllVersions)}\n className=\"tw-text-xs tw-text-gray-500 tw-underline\"\n >\n {showAllVersions ? 'Show Less Version History' : 'Show All Version History'}\n \n )}\n
    \n );\n}\n","import { useMemo } from 'react';\nimport { formatBytes } from 'platform-bible-utils';\nimport VersionHistory, { VersionHistoryType } from './version-history.component';\n\n/** Interface to store the parameters passed to the Footer component */\ninterface FooterProps {\n /** Optional unique identifier */\n id?: string;\n /** Name of the publisher */\n publisherDisplayName: string;\n /** Size of the extension file in bytes */\n fileSize: number;\n /** List of language codes supported by the extension */\n locales: string[];\n /** Object containing the version history mapped with their information */\n versionHistory: VersionHistoryType;\n}\n\n/**\n * Component to render the footer for the extension details which contains information on the\n * publisher, version history, languages, and file size.\n *\n * @param id Optional unique identifier\n * @param publisherDisplayName Name of the publisher\n * @param fileSize Size of the extension file in bytes\n * @param locales List of language codes supported by the extension\n * @param versionHistory Object containing the version history mapped with their information\n * @returns The rendered Footer component\n */\nexport default function Footer({\n id,\n publisherDisplayName,\n fileSize,\n locales,\n versionHistory,\n}: FooterProps) {\n /** Formats the file size into a human-readable format */\n const formattedFileSize = useMemo(() => formatBytes(fileSize), [fileSize]);\n\n /**\n * This function gets the display names of the languages based on the language codes.\n *\n * @param codes The list of language codes\n * @returns The list of language names\n */\n const getLanguageNames = (codes: string[]) => {\n const displayNames = new Intl.DisplayNames(navigator.language, { type: 'language' });\n return codes.map((code) => displayNames.of(code));\n };\n\n const languageNames = getLanguageNames(locales);\n\n return (\n
    \n
    \n \n
    \n
    \n

    Information

    \n
    \n

    \n Publisher\n {publisherDisplayName}\n Size\n {formattedFileSize}\n

    \n
    \n

    \n Languages\n {languageNames.join(', ')}\n

    \n
    \n
    \n
    \n
    \n
    \n );\n}\n","import { Badge } from '@/components/shadcn-ui/badge';\nimport { Button } from '@/components/shadcn-ui/button';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { X } from 'lucide-react';\nimport MultiSelectComboBox, { MultiSelectComboBoxProps } from '../multi-select-combo-box.component';\n\ninterface FilterProps extends MultiSelectComboBoxProps {\n badgesPlaceholder: string;\n}\n\nfunction Filter({\n entries,\n getEntriesCount,\n selected,\n onChange,\n placeholder,\n commandEmptyMessage,\n customSelectedText,\n sortSelected,\n icon,\n className,\n badgesPlaceholder,\n}: FilterProps) {\n return (\n
    \n \n {selected.length > 0 ? (\n
    \n {selected.map((type) => (\n \n onChange(selected.filter((selectedType) => selectedType !== type))}\n >\n \n \n {entries.find((t) => t.value === type)?.label}\n \n ))}\n
    \n ) : (\n \n )}\n
    \n );\n}\n\nexport default Filter;\n","import Spinner from '@/components/basics/spinner.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from '@/components/shadcn-ui/card';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport { Label } from '@/components/shadcn-ui/label';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport {\n BookOpen,\n ChevronDown,\n ChevronsUpDown,\n ChevronUp,\n Ellipsis,\n Globe,\n Shapes,\n} from 'lucide-react';\n\nimport Filter from '@/components/advanced/filterable-resource-list/filter.component';\nimport type { MultiSelectComboBoxEntry } from '@/components/advanced/multi-select-combo-box.component';\nimport {\n DblResourceData,\n getErrorMessage,\n LanguageStrings,\n LocalizeKey,\n} from 'platform-bible-utils';\nimport { useEffect, useMemo, useState } from 'react';\nimport SearchBar from '@/components/basics/search-bar.component';\n\nexport const FILTERABLE_RESOURCE_LIST_STRING_KEYS: LocalizeKey[] = [\n '%resources_action%',\n '%resources_any%',\n '%resources_dialog_subtitle%',\n '%resources_dialog_title%',\n '%resources_filterBy%',\n '%resources_filterInput%',\n '%resources_fullName%',\n '%resources_get%',\n '%resources_installed%',\n '%resources_language%',\n '%resources_languages%',\n '%resources_loadingResources%',\n '%resources_noResults%',\n '%resources_open%',\n '%resources_remove%',\n '%resources_results%',\n '%resources_showing%',\n '%resources_size%',\n '%resources_type%',\n '%resources_types%',\n '%resources_type_DBL%',\n '%resources_type_ER%',\n '%resources_type_SLR%',\n '%resources_type_XR%',\n '%resources_type_unknown%',\n '%resources_update%',\n];\n\ntype InstallInfo = {\n dblEntryUid: string;\n action: 'installing' | 'removing';\n};\n\ntype SortConfig = {\n key: 'fullName' | 'bestLanguageName' | 'type' | 'size' | 'action';\n direction: 'ascending' | 'descending';\n};\n\nconst getLanguageOptions = (\n resources: DblResourceData[],\n selectedLanguages: string[],\n): MultiSelectComboBoxEntry[] => {\n const allLanguages: string[] = Array.from(\n new Set(\n resources.map((resource) => {\n return resource.bestLanguageName;\n }),\n ),\n );\n\n const starredLanguages = new Set(\n resources.filter((resource) => resource.installed).map((resource) => resource.bestLanguageName),\n );\n\n const prioritizedLanguages = new Set(selectedLanguages.concat(Array.from(starredLanguages)));\n\n const sortedLanguages = allLanguages.sort((a, b) => {\n const aIsPrioritized = prioritizedLanguages.has(a);\n const bIsPrioritized = prioritizedLanguages.has(b);\n\n if (aIsPrioritized && bIsPrioritized) {\n return a.localeCompare(b);\n }\n if (aIsPrioritized) return -1;\n if (bIsPrioritized) return 1;\n\n return a.localeCompare(b);\n });\n\n return sortedLanguages.map((language) => {\n return { label: language, value: language, starred: starredLanguages.has(language) };\n });\n};\n\nconst getActionButtonContent = (\n resource: DblResourceData,\n buttonText: string,\n installResource: (dblEntryUid: string, action: 'install' | 'remove') => void,\n) => {\n return (\n installResource(resource.dblEntryUid, 'install')}\n >\n {buttonText}\n \n );\n};\n\nconst getActionContent = (\n resource: DblResourceData,\n idsBeingHandled: string[],\n getText: string,\n updateText: string,\n installedText: string,\n installResource: (dblEntryUid: string, action: 'install' | 'remove') => void,\n) => {\n const isBeingHandled = idsBeingHandled.includes(resource.dblEntryUid);\n if (isBeingHandled) {\n return (\n \n );\n }\n if (!resource.installed) {\n return getActionButtonContent(resource, getText, installResource);\n }\n if (resource.updateAvailable) {\n return getActionButtonContent(resource, updateText, installResource);\n }\n return ;\n};\n\ntype FilterableResourceListProps = {\n localizedStrings: LanguageStrings;\n resources: DblResourceData[];\n isLoadingResources: boolean;\n selectedTypes: string[];\n setSelectedTypes: (stateValue: string[]) => void;\n selectedLanguages: string[];\n setSelectedLanguages: (stateValue: string[]) => void;\n openResource: (projectId: string) => void;\n installResource: ((uid: string) => Promise) | undefined;\n uninstallResource: ((uid: string) => Promise) | undefined;\n className?: string;\n};\n\nfunction FilterableResourceList({\n localizedStrings,\n resources,\n isLoadingResources,\n selectedTypes,\n setSelectedTypes,\n selectedLanguages,\n setSelectedLanguages,\n openResource,\n installResource,\n uninstallResource,\n className,\n}: FilterableResourceListProps) {\n const actionText: string = localizedStrings['%resources_action%'];\n const anyText: string = localizedStrings['%resources_any%'];\n const dialogSubtitleText: string = localizedStrings['%resources_dialog_subtitle%'];\n const dialogTitleText: string = localizedStrings['%resources_dialog_title%'];\n const filterInputText: string = localizedStrings['%resources_filterInput%'];\n const filterByText: string = localizedStrings['%resources_filterBy%'];\n const fullNameText: string = localizedStrings['%resources_fullName%'];\n const getText: string = localizedStrings['%resources_get%'];\n const installedText: string = localizedStrings['%resources_installed%'];\n const languageText: string = localizedStrings['%resources_language%'];\n const languagesText: string = localizedStrings['%resources_languages%'];\n const loadingResourcesText: string = localizedStrings['%resources_loadingResources%'];\n const noResultsText: string = localizedStrings['%resources_noResults%'];\n const openText: string = localizedStrings['%resources_open%'];\n const removeText: string = localizedStrings['%resources_remove%'];\n const resultsText: string = localizedStrings['%resources_results%'];\n const showingText: string = localizedStrings['%resources_showing%'];\n const sizeText: string = localizedStrings['%resources_size%'];\n const typeText: string = localizedStrings['%resources_type%'];\n const typesText: string = localizedStrings['%resources_types%'];\n const typeDblText: string = localizedStrings['%resources_type_DBL%'];\n const typeErText: string = localizedStrings['%resources_type_ER%'];\n const typeSlrText: string = localizedStrings['%resources_type_SLR%'];\n const typeXrText: string = localizedStrings['%resources_type_XR%'];\n const typeUnknownText: string = localizedStrings['%resources_type_unknown%'];\n const updateText: string = localizedStrings['%resources_update%'];\n\n const [isInitialized, setIsInitialized] = useState(false);\n\n // When no languages are selected on the first render of this component, set default selection to\n // languages that have resources installed\n useEffect(() => {\n if (isInitialized) return;\n if (selectedLanguages.length > 0) {\n setIsInitialized(true);\n return;\n }\n if (resources.length > 0 && selectedLanguages.length === 0) {\n setSelectedLanguages(\n Array.from(\n new Set(\n resources\n .filter((resource) => resource.installed === true)\n .map((resource) => resource.bestLanguageName),\n ),\n ),\n );\n setIsInitialized(true);\n }\n }, [resources, selectedLanguages.length, setSelectedLanguages, isInitialized, setIsInitialized]);\n\n const [installInfo, setInstallInfo] = useState([]);\n\n const installOrRemoveResource = (dblEntryUid: string, action: 'install' | 'remove'): void => {\n if (!installResource || !uninstallResource) return;\n const newInstallInfo: InstallInfo = {\n dblEntryUid,\n action: action === 'install' ? 'installing' : 'removing',\n };\n\n setInstallInfo((prevInfo) => [...prevInfo, newInstallInfo]);\n\n const actionFunction = action === 'install' ? installResource : uninstallResource;\n\n actionFunction(dblEntryUid).catch((error) => {\n console.debug(getErrorMessage(error));\n });\n };\n\n /** Removes resources from array of resources that are currently being handled */\n useEffect(() => {\n setInstallInfo((currentInstallInfo) =>\n currentInstallInfo.filter((info) => {\n const resource = resources.find((res) => res.dblEntryUid === info.dblEntryUid);\n\n if (!resource) return true;\n\n if (info.action === 'installing' && resource.installed) return false;\n if (info.action === 'removing' && !resource.installed) return false;\n\n return true;\n }),\n );\n }, [resources]);\n\n const [textFilter, setTextFilter] = useState('');\n\n const textFilteredResources = useMemo(() => {\n return resources.filter((resource) => {\n const filter = textFilter.toLowerCase();\n return (\n resource.displayName.toLowerCase().includes(filter) ||\n resource.fullName.toLowerCase().includes(filter) ||\n resource.bestLanguageName.toLowerCase().includes(filter)\n );\n });\n }, [resources, textFilter]);\n\n const typeOptions: MultiSelectComboBoxEntry[] = useMemo(() => {\n return [\n { value: 'DBLResource', label: typeDblText },\n { value: 'EnhancedResource', label: typeErText },\n { value: 'SourceLanguageResource', label: typeSlrText },\n { value: 'XmlResource', label: typeXrText },\n ];\n }, [typeDblText, typeErText, typeSlrText, typeXrText]);\n\n const textAndTypeFilteredResources = useMemo(() => {\n if (selectedTypes.length === 0) return textFilteredResources;\n return textFilteredResources.filter((resource) => {\n return selectedTypes.includes(resource.type);\n });\n }, [textFilteredResources, selectedTypes]);\n\n const textAndTypeAndLanguageFilteredResources = useMemo(() => {\n if (selectedLanguages.length === 0) return textAndTypeFilteredResources;\n return textAndTypeFilteredResources.filter((resource) => {\n return selectedLanguages.includes(resource.bestLanguageName);\n });\n }, [selectedLanguages, textAndTypeFilteredResources]);\n\n const [sortConfig, setSortConfig] = useState({\n key: 'bestLanguageName',\n direction: 'ascending',\n });\n\n const sortedResources = useMemo(() => {\n return [...textAndTypeAndLanguageFilteredResources].sort((a, b) => {\n let aValue: string | number;\n let bValue: string | number;\n if (sortConfig.key === 'action') {\n aValue = (a.installed ? 10 : 0) + (a.updateAvailable ? 1 : 0);\n bValue = (b.installed ? 10 : 0) + (b.updateAvailable ? 1 : 0);\n } else {\n aValue = a[sortConfig.key];\n bValue = b[sortConfig.key];\n }\n\n if (aValue < bValue) {\n return sortConfig.direction === 'ascending' ? -1 : 1;\n }\n if (aValue > bValue) {\n return sortConfig.direction === 'ascending' ? 1 : -1;\n }\n return 0;\n });\n }, [sortConfig.direction, sortConfig.key, textAndTypeAndLanguageFilteredResources]);\n\n const handleSort = (key: SortConfig['key']) => {\n const newSortConfig: SortConfig = { key, direction: 'ascending' };\n if (sortConfig.key === key && sortConfig.direction === 'ascending') {\n newSortConfig.direction = 'descending';\n }\n setSortConfig(newSortConfig);\n };\n\n const buildTableHead = (key: SortConfig['key'], label: string) => (\n handleSort(key)}>\n
    \n
    {label}
    \n {sortConfig.key !== key && }\n {sortConfig.key === key &&\n (sortConfig.direction === 'ascending' ? (\n \n ) : (\n \n ))}\n
    \n
    \n );\n\n const getTypeCount = (option: MultiSelectComboBoxEntry): number => {\n return resources.filter((resource) => resource.type === option.value).length ?? 0;\n };\n\n const getLanguageCount = (option: MultiSelectComboBoxEntry): number => {\n return resources.filter((resource) => resource.bestLanguageName === option.value).length ?? 0;\n };\n\n return (\n
    \n \n \n
    \n
    \n \n
    \n {dialogTitleText}\n {dialogSubtitleText}\n \n
    \n
    \n
    \n \n }\n badgesPlaceholder={anyText}\n />\n\n }\n badgesPlaceholder={anyText}\n />\n
    \n
    \n
    \n \n {isLoadingResources || !resources ? (\n
    \n \n \n
    \n ) : (\n
    \n {sortedResources.length === 0 ? (\n
    \n \n
    \n ) : (\n \n \n \n \n \n {buildTableHead('fullName', fullNameText)}\n {buildTableHead('bestLanguageName', languageText)}\n {buildTableHead('type', typeText)}\n {buildTableHead('size', sizeText)}\n {buildTableHead('action', actionText)}\n \n \n \n {sortedResources.map((resource) => (\n \n \n \n \n {resource.displayName}\n {resource.fullName}\n {resource.bestLanguageName}\n \n {typeOptions.find((type) => type.value === resource.type)?.label ??\n typeUnknownText}\n \n {resource.size}\n \n
    \n {getActionContent(\n resource,\n installInfo.map((info) => info.dblEntryUid),\n getText,\n updateText,\n installedText,\n installOrRemoveResource,\n )}\n {resource.installed && (\n \n \n \n \n \n openResource(resource.projectId)}\n >\n {openText}\n \n\n \n \n installOrRemoveResource(resource.dblEntryUid, 'remove')\n }\n >\n {removeText}\n \n \n \n )}\n
    \n
    \n
    \n ))}\n
    \n
    \n )}\n
    \n )}\n
    \n \n {sortedResources.length > 0 && (\n \n )}\n \n
    \n
    \n );\n}\n\nexport default FilterableResourceList;\n","import { useState } from 'react';\nimport { LocalizedStringValue } from 'platform-bible-utils';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../shadcn-ui/select';\nimport { Label } from '../shadcn-ui/label';\n\n/**\n * Immutable array containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const UI_LANGUAGE_SELECTOR_STRING_KEYS = Object.freeze([\n '%settings_uiLanguageSelector_selectFallbackLanguages%',\n] as const);\n\nexport type UiLanguageSelectorLocalizedStrings = {\n [localizedUiLanguageSelectorKey in (typeof UI_LANGUAGE_SELECTOR_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: UiLanguageSelectorLocalizedStrings,\n key: keyof UiLanguageSelectorLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\nexport type LanguageInfo = {\n /** The name of the language to be displayed (in its native script) */\n autonym: string;\n /**\n * The name of the language in other languages, so that the language can also be displayed in the\n * current UI language, if known.\n */\n uiNames?: Record;\n /**\n * Other known names of the language (for searching). This can include pejorative names and should\n * never be displayed unless typed by the user.\n */\n otherNames?: string[];\n};\n\nexport type UiLanguageSelectorProps = {\n /** Full set of known languages to display. The keys are valid BCP-47 tags. */\n knownUiLanguages: Record;\n /** IETF BCP-47 language tag of the current primary UI language. `undefined` => 'en' */\n primaryLanguage: string;\n /**\n * Ordered list of fallback language tags to use if the localization key can't be found in the\n * current primary UI language. This list never contains English ('en') because it is the ultimate\n * fallback.\n */\n fallbackLanguages: string[] | undefined;\n /**\n * Handler for when either the primary or the fallback languages change (or both). For this\n * handler, the primary UI language is the first one in the array, followed by the fallback\n * languages in order of decreasing preference.\n */\n onLanguagesChange?: (newUiLanguages: string[]) => void;\n /** Handler for the primary language changes. */\n onPrimaryLanguageChange?: (newPrimaryUiLanguage: string) => void;\n /**\n * Handler for when the fallback languages change. The array contains the fallback languages in\n * order of decreasing preference.\n */\n onFallbackLanguagesChange?: (newFallbackLanguages: string[]) => void;\n /**\n * Map whose keys are localized string keys as contained in UI_LANGUAGE_SELECTOR_STRING_KEYS and\n * whose values are the localized strings (in the current UI language).\n */\n localizedStrings: UiLanguageSelectorLocalizedStrings;\n /** Additional css classes to help with unique styling of the control */\n className?: string;\n};\n\nexport default function UiLanguageSelector({\n knownUiLanguages,\n primaryLanguage = 'en',\n fallbackLanguages = [],\n onLanguagesChange,\n onPrimaryLanguageChange,\n onFallbackLanguagesChange,\n localizedStrings,\n className,\n}: UiLanguageSelectorProps) {\n const selectFallbackLanguagesText = localizeString(\n localizedStrings,\n '%settings_uiLanguageSelector_selectFallbackLanguages%',\n );\n const [isOpen, setIsOpen] = useState(false);\n\n const handleLanguageChange = (code: string) => {\n if (onPrimaryLanguageChange) onPrimaryLanguageChange(code);\n // REVIEW: Should fallback languages be preserved when primary language changes?\n if (onLanguagesChange)\n onLanguagesChange([code, ...fallbackLanguages.filter((lang) => lang !== code)]);\n if (onFallbackLanguagesChange && fallbackLanguages.find((l) => l === code))\n onFallbackLanguagesChange([...fallbackLanguages.filter((lang) => lang !== code)]);\n setIsOpen(false); // Close the dropdown when a selection is made\n };\n\n /**\n * Gets the display name for the given language. This will typically include the autonym (in the\n * native script), along with the name of the language in the current UI locale if known, with a\n * fallback to the English name (if known).\n *\n * @param {string} lang - The BCP-47 code of the language whose display name is being requested.\n * @param {string} uiLang - The BCP-47 code of the current user-interface language used used to\n * try to look up the name of the language in a form that is likely to be helpful to the user if\n * they do not recognize the autonym.\n * @returns {string} The display name of the language.\n */\n const getLanguageDisplayName = (lang: string, uiLang: string) => {\n const altName =\n uiLang !== lang\n ? (knownUiLanguages[lang]?.uiNames?.[uiLang] ?? knownUiLanguages[lang]?.uiNames?.en)\n : undefined;\n\n return altName\n ? `${knownUiLanguages[lang]?.autonym} (${altName})`\n : knownUiLanguages[lang]?.autonym;\n };\n\n return (\n
    \n {/* Language Selector */}\n setIsOpen(open)}\n >\n \n \n \n \n {Object.keys(knownUiLanguages).map((key) => {\n return (\n \n {getLanguageDisplayName(key, primaryLanguage)}\n \n );\n })}\n \n \n\n {/* Fallback Language Button */}\n {primaryLanguage !== 'en' && (\n <>\n \n
    \n {/* Do not localize or \"improve\". This label is temporary. */}\n \n {/* \n Something like this will be added once UX decides exactly what they want.\n */}\n
    \n \n )}\n
    \n );\n}\n","import { PlatformEvent, PlatformEventHandler } from 'platform-bible-utils';\nimport { useEffect } from 'react';\n\n/**\n * Adds an event handler to an event so the event handler runs when the event is emitted. Use\n * `papi.network.getNetworkEvent` to use a networked event with this hook.\n *\n * @param event The event to subscribe to.\n *\n * - If event is a `PlatformEvent`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEvent = (\n event: PlatformEvent | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n useEffect(() => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return () => {};\n\n const unsubscriber = event(eventHandler);\n return () => {\n unsubscriber();\n };\n }, [event, eventHandler]);\n};\nexport default useEvent;\n","import { useCallback, useEffect } from 'react';\nimport { PlatformEvent, PlatformEventAsync, PlatformEventHandler } from 'platform-bible-utils';\nimport usePromise from './use-promise.hook';\n\nconst noopUnsubscriber = () => false;\n\n/**\n * Adds an event handler to an asynchronously subscribing/unsubscribing event so the event handler\n * runs when the event is emitted. Use `papi.network.getNetworkEvent` to use a networked event with\n * this hook.\n *\n * @param event The asynchronously (un)subscribing event to subscribe to.\n *\n * - If event is a `PlatformEvent` or `PlatformEventAsync`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEventAsync = (\n event: PlatformEvent | PlatformEventAsync | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n // Subscribe to the event asynchronously\n const [unsubscribe] = usePromise(\n useCallback(async () => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return noopUnsubscriber;\n\n // Wrap subscribe and unsubscribe in promises to allow normal events to be used as well\n const unsub = await Promise.resolve(event(eventHandler));\n return async () => unsub();\n }, [eventHandler, event]),\n noopUnsubscriber,\n // We want the unsubscriber to return to default value immediately upon changing subscription\n // So the useEffect below will unsubscribe asap\n { preserveValue: false },\n );\n\n // Unsubscribe from the event asynchronously (but we aren't awaiting the unsub)\n useEffect(() => {\n return () => {\n if (unsubscribe !== noopUnsubscriber) {\n unsubscribe();\n }\n };\n }, [unsubscribe]);\n};\n\nexport default useEventAsync;\n"],"names":["twMergeCustom","extendTailwindMerge","cn","inputs","clsx","Input","React","className","type","props","ref","jsx","STORAGE_KEY","readDirection","retrieved","BookChapterInput","forwardRef","handleSearch","handleKeyDown","handleOnClick","handleSubmit","dir","jsxs","event","e","History","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","inset","children","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","P","R","t","s","n","N","B","O","S","K","g","k","x","T","X","V","w","L","G","A","H","C","I","y","q","U","m","l","h","c","E","D","i","a","o","u","v","f","d","b","p","J","BookMenuItem","bookId","handleSelectBook","isSelected","handleHighlightBook","bookType","Canon","ChapterSelect","handleSelectChapter","endChapter","activeChapter","highlightedChapter","handleHighlightedChapter","chapters","_","handleMouse","useCallback","chapterNumber","chapter","GoToMenuItem","handleSort","handleLocationHistory","handleBookmarks","ArrowDownWideNarrow","Clock","Bookmark","ALL_BOOK_IDS","BOOK_TYPE_LABELS","BOOK_TYPE_ARRAY","SCROLL_OFFSET","SEARCH_QUERY_FORMATS","fetchGroupedBooks","fetchEndChapter","getChaptersForBook","getAllEnglishNames","isValidBookEnglishName","bookName","getBookIdFromEnglishName","formattedBookName","BookChapterControl","scrRef","searchQuery","setSearchQuery","useState","selectedBookId","setSelectedBookId","setHighlightedChapter","highlightedBookId","setHighlightedBookId","isContentOpen","setIsContentOpen","isContentOpenDelayed","setIsContentOpenDelayed","inputRef","useRef","contentRef","menuItemRef","fetchFilteredBooks","englishNameLowerCase","normalizedQuery","handleSearchInput","searchString","shouldPreventAutoClosing","controlMenuState","open","updateReference","shouldClose","verse","handleInputSubmit","format","matches","book","englishName","handleKeyDownInput","handleKeyDownContent","key","handleKeyDownMenuItem","upOneChapter","downOneChapter","chapterOffSet","useEffect","useLayoutEffect","scrollTimeout","scrollPosition","bookTypeIndex","element","buttonVariants","cva","Button","variant","size","asChild","Comp","Slot","labelVariants","Label","LabelPrimitive","RadioGroup","RadioGroupPrimitive","RadioGroupItem","Popover","PopoverPrimitive","PopoverTrigger","PopoverContent","align","DialogPortal","DialogPrimitive","DialogOverlay","DialogContent","DialogTitle","DialogDescription","Command","CommandPrimitive","CommandInput","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","getOptionLabelDefault","option","ComboBox","id","options","buttonClassName","popoverContentClassName","value","onChange","getOptionLabel","icon","buttonPlaceholder","textPlaceholder","commandEmptyMessage","buttonVariant","alignDropDown","isDisabled","setOpen","ChevronsUpDown","ChapterRangeSelector","startChapter","handleSelectStartChapter","handleSelectEndChapter","chapterCount","chapterOptions","useMemo","index","onChangeStartChapter","onChangeEndChapter","Fragment","BookSelectionMode","BOOK_SELECTOR_STRING_KEYS","localizeString","strings","BookSelector","handleBookSelectionModeChange","currentBookName","onSelectBooks","selectedBookIds","localizedStrings","currentBookText","chooseText","chooseBooksText","bookSelectionMode","setBookSelectionMode","onSelectionModeChange","newMode","DataTableViewOptions","table","FilterIcon","column","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator","DataTablePagination","pageSize","ArrowLeftIcon","ChevronLeftIcon","ChevronRightIcon","ArrowRightIcon","Table","stickyHeader","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","DataTable","columns","data","enablePagination","showPaginationControls","showColumnVisibilityControls","onRowClickHandler","sorting","setSorting","columnFilters","setColumnFilters","columnVisibility","setColumnVisibility","rowSelection","setRowSelection","useReactTable","getCoreRowModel","getPaginationRowModel","getSortedRowModel","getFilteredRowModel","headerGroup","header","flexRender","_a","row","cell","OccurrencesTable","occurrenceData","setScriptureReference","referenceHeaderText","occurrenceHeaderText","occurrences","uniqueOccurrences","occurrence","uniqueOccurrence","deepEqual","Checkbox","CheckboxPrimitive","getLinesFromUSFM","text","getNumberFromUSFM","regex","match","getBookNumFromId","getStatusForItem","item","approvedItems","unapprovedItems","toggleVariants","Toggle","TogglePrimitive","ToggleGroupContext","ToggleGroup","ToggleGroupPrimitive","ToggleGroupItem","context","getSortingIcon","sortDirection","ArrowUpIcon","ArrowDownIcon","ArrowUpDownIcon","inventoryItemColumn","itemLabel","inventoryAdditionalItemColumn","additionalItemLabel","additionalItemIndex","inventoryCountColumn","countLabel","statusChangeHandler","changedItems","newStatus","onApprovedItemsChange","onUnapprovedItemsChange","newApprovedItems","validItem","newUnapprovedItems","unapprovedItem","inventoryStatusColumn","statusLabel","status","CircleCheckIcon","CircleXIcon","CircleHelpIcon","INVENTORY_STRING_KEYS","filterItemData","itemData","statusFilter","textFilter","filteredItemData","createTableData","scriptureRef","itemRegex","tableData","currentBook","currentChapter","currentVerse","line","items","itemIndex","existingItem","tableEntry","newReference","substring","newItem","Inventory","scriptureReference","extractItems","additionalItemsLabels","scope","onScopeChange","allItemsText","approvedItemsText","unapprovedItemsText","unknownItemsText","scopeBookText","scopeChapterText","scopeVerseText","filterText","showAdditionalItemsText","showAdditionalItems","setShowAdditionalItems","setStatusFilter","setTextFilter","selectedItem","setSelectedItem","reducedTableData","newTableData","firstItem","existingEntry","newTableEntry","filteredTableData","allColumns","numberOfAdditionalItems","additionalColumns","_b","rowClickHandler","newSelection","handleScopeChange","handleStatusFilterChange","MultiSelectComboBox","entries","getEntriesCount","selected","placeholder","customSelectedText","sortSelected","handleSelect","label","entry","getPlaceholderText","sortedOptions","starredItems","opt","nonStarredItems","aSelected","bSelected","count","Star","SearchBar","onSearch","isFullWidth","handleInputChange","VerticalTabs","TabsPrimitive","VerticalTabsList","VerticalTabsTrigger","VerticalTabsContent","TabNavigationContentSearch","tabList","searchPlaceholder","headerTitle","searchClassName","tab","Separator","orientation","decorative","SeparatorPrimitive","Skeleton","TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","SIDEBAR_WIDTH","SIDEBAR_WIDTH_ICON","SidebarContext","useSidebar","SidebarProvider","defaultOpen","openProp","setOpenProp","style","side","_open","_setOpen","isOpen","openState","toggleSidebar","state","directionAwareSide","contextValue","Sidebar","collapsible","SidebarTrigger","onClick","PanelLeft","PanelRight","SidebarRail","SidebarInset","SidebarInput","SidebarHeader","SidebarFooter","SidebarSeparator","SidebarContent","SidebarGroup","SidebarGroupLabel","SidebarGroupAction","SidebarGroupContent","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","SidebarMenuButton","isActive","tooltip","button","SidebarMenuAction","showOnHover","SidebarMenuBadge","SidebarMenuSkeleton","showIcon","width","SidebarMenuSub","SidebarMenuSubItem","SidebarMenuSubButton","SettingsSidebar","extensionLabels","projectInfo","handleSelectSidebarItem","selectedSidebarItem","extensionsSidebarGroupLabel","projectsSidebarGroupLabel","buttonPlaceholderText","handleSelectItem","projectId","getProjectNameFromProjectId","project","info","getIsActive","selectedProjectName","SettingsSidebarContentSearch","scrBookColId","scrRefColId","typeColId","detailsColId","defaultScrRefColumnName","defaultScrBookGroupName","defaultTypeColumnName","defaultDetailsColumnName","getColumns","colInfo","showSourceColumn","showSrcCol","formatScrRef","compareScrRefs","toRefOrRange","scriptureSelection","offsetStart","offsetEnd","scrRefToBBBCCCVVV","getRowKey","ScriptureResultsViewer","sources","showColumnHeaders","scriptureReferenceColumnName","scriptureBookGroupName","typeColumnName","detailsColumnName","onRowSelected","grouping","setGrouping","scriptureResults","source","getExpandedRowModel","getGroupedRowModel","selectedRows","keys","selectedRow","scrBookGroupName","typeGroupName","groupingOptions","handleSelectChange","selectedGrouping","handleRowClick","getEvenOrOddBandingStyle","getIndent","groupingState","rowIndex","ChevronLeft","DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS","getLocalizeKeyForScrollGroupId","ScrollGroupSelector","availableScrollGroupIds","scrollGroupId","onChangeScrollGroupId","localizedStringsDefaulted","localizedStringKey","localizedStringValue","newScrollGroupString","scrollGroupOptionId","SettingsList","SettingsListItem","primary","secondary","isLoading","loadingMessage","SettingsListHeader","includeSeparator","Checklist","listItems","selectedListItems","handleSelectListItem","createLabel","_interopRequireDefault","obj","module","chainPropTypes","propType1","propType2","args","_extends","target","isPlainObject","prototype","deepClone","output","deepmerge","r","z","reactIs_production_min","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","require$$0","require$$1","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","order2","test3","letter","objectAssign","from","to","symbols","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","isClassComponent","elementType","acceptingRef","safePropName","warningHint","elementAcceptingRef","PropTypes","elementAcceptingRef$1","specialProperty","exactProp","propTypes","unsupportedProps","prop","formatMuiErrorMessage","code","url","REACT_SERVER_CONTEXT_TYPE","REACT_OFFSCREEN_TYPE","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","SuspenseList","hasWarnedAboutDeprecatedIsConcurrentMode","isSuspenseList","fnNameMatchRegex","getFunctionName","fn","getFunctionComponentName","Component","fallback","getWrappedName","outerType","innerType","wrapperName","functionName","getDisplayName","HTMLElementType","refType","refType$1","capitalize","string","_formatMuiErrorMessage","createChainedFunction","funcs","acc","func","debounce","wait","timeout","debounced","later","deprecatedPropType","validator","reason","componentNameSafe","propFullNameSafe","isMuiElement","muiNames","_muiName","_element$type","ownerDocument","node","ownerWindow","requirePropFactory","componentNameInError","prevPropTypes","requiredProp","defaultTypeChecker","typeCheckerResult","setRef","useEnhancedEffect","useEnhancedEffect$1","globalId","useGlobalId","idOverride","defaultId","setDefaultId","maybeReactUseId","useId","reactId","unsupportedProp","useControlled","controlled","defaultProp","name","isControlled","valueState","setValue","defaultValue","setValueIfUncontrolled","newValue","useEventCallback","useForkRef","refs","instance","UNINITIALIZED","useLazyRef","init","initArg","EMPTY","useOnMount","Timeout","delay","useTimeout","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","focusTriggersKeyboardModality","tagName","handlePointerDown","handleVisibilityChange","prepare","doc","isFocusVisible","useIsFocusVisible","isFocusVisibleRef","handleBlurVisible","handleFocusVisible","resolveProps","defaultProps","defaultSlotProps","slotProps","slotPropName","composeClasses","slots","getUtilityClass","classes","slot","utilityClass","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","ClassNameGenerator$1","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","result","clamp","min","max","_objectWithoutPropertiesLoose","excluded","sourceKeys","_excluded","sortBreakpointsValues","breakpointsAsArray","breakpoint1","breakpoint2","createBreakpoints","breakpoints","unit","other","sortedValues","up","down","between","start","end","endIndex","only","not","keyIndex","shape","shape$1","responsivePropType","responsivePropType$1","merge","defaultBreakpoints","handleBreakpoints","styleFromPropValue","theme","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","getStyleValue","themeMapping","transform","propValueFinal","userValue","cssProperty","themeKey","memoize","cache","arg","properties","directions","aliases","getCssProperties","property","direction","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","_getPath","themeSpacing","abs","createUnarySpacing","getValue","transformer","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","padding","createSpacing","spacingInput","spacing","argsInput","argument","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","maxWidth","_props$theme","_props$theme2","breakpointsValues","minWidth","height","maxHeight","minHeight","boxSizing","defaultSxConfig","defaultSxConfig$1","objectsHaveSameKeys","objects","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","sx","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","css","styleKey","styleFunctionSx$1","applyStyles","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","defaultTheme","contextTheme","ThemeContext","systemDefaultTheme","useThemeWithoutDefault","_excluded2","_excluded3","isEmpty","isStringTag","tag","shouldForwardProp","lowercaseFirstLetter","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","_ref","ownerState","resolvedStylesArg","resolvedStyle","variants","isMatch","createStyled","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","inputOptions","processStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","skipVariantsResolver","skipSx","shouldForwardPropOption","defaultStyledResolver","styledEngineStyled","transformStyleArg","stylesArg","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","displayName","getThemeProps","params","useThemeProps","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","recomposeColor","hslToRgb","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","mixins","common","common$1","grey","grey$1","purple","purple$1","red","red$1","orange","orange$1","blue","blue$1","lightBlue","lightBlue$1","green","green$1","light","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","getDefaultPrimary","mode","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","palette","contrastThreshold","success","warning","getContrastText","contrastText","contrast","augmentColor","mainShade","lightShade","darkShade","modes","round","caseAllCaps","defaultFontFamily","createTypography","typography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","shadows$1","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","isString","isNumber","animatedProp","zIndex","zIndex$1","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","stateClasses","component","child","stateClass","defaultTheme$1","THEME_ID","systemUseThemeProps","styled","styled$1","getSvgIconUtilityClass","useUtilityClasses","SvgIconRoot","_theme$transitions","_theme$transitions$cr","_theme$transitions2","_theme$typography","_theme$typography$pxT","_theme$typography2","_theme$typography2$px","_theme$typography3","_theme$typography3$px","_palette$ownerState$c","_palette","_palette2","_palette3","SvgIcon","inProps","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","_jsxs","_jsx","SvgIcon$1","createSvgIcon","unstable_ClassNameGenerator","exports","_utils","ArrowRight","default_1","_createSvgIcon","_jsxRuntime","isHostComponent","appendOwnerState","otherProps","defaultContextValue","ClassNameConfiguratorContext","useClassNamesOverride","disableDefaultClasses","extractEventHandlers","excludeKeys","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","mergedProps","internalRef","GLOBAL_CLASS_PREFIX","buildStateClass","buildSlotClass","getContainer","container","forwardedRef","disablePortal","mountNode","setMountNode","handleRef","newProps","ReactDOM","top","bottom","right","left","auto","basePlacements","clippingParents","viewport","popper","reference","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","getWindow","OwnElement","isHTMLElement","isShadowRoot","attributes","effect","_ref2","initialStyles","styleProperties","attribute","applyStyles$1","getBasePlacement","getUAString","uaData","isLayoutViewport","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","visualViewport","addVisualOffsets","getLayoutRect","contains","parent","rootNode","next","getComputedStyle","isTableElement","getDocumentElement","getParentNode","getTrueOffsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","getOffsetParent","window","offsetParent","getMainAxisFromPlacement","within","mathMax","mathMin","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","hashMap","toPaddingObject","arrow","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","axis","isVertical","len","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","center","offset","axisProp","_options$element","arrow$1","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles$1","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","eventListeners","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","getViewportRect","strategy","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","rect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","_i","fittingPlacement","_ret","flip$1","getSideOffsets","preventedOffsets","isAnySideFullyClipped","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide$1","distanceAndSkiddingToXY","rects","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset$1","popperOffsets$1","getAltAxis","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","altAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow$1","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","documentElement","order","modifiers","map","visited","modifier","sort","requires","dep","depModifier","orderModifiers","orderedModifiers","phase","pending","resolve","mergeByName","merged","current","existing","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptionsAction","cleanupModifierEffects","runModifierEffects","_state$elements","_state$orderedModifie","_state$orderedModifie2","_ref$options","cleanupFn","noopFn","createPopper","COMPONENT_NAME","getPopperUtilityClass","flipPlacement","resolveAnchorEl","anchorEl","isVirtualElement","defaultPopperOptions","PopperTooltip","_slots$root","initialPlacement","popperOptions","popperRefProp","TransitionProps","tooltipRef","ownRef","popperRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","box","popperModifiers","childProps","Root","rootProps","Popper","containerProp","keepMounted","transition","exited","setExited","handleEnter","handleExited","resolvedAnchorEl","display","transitionProps","useThemeSystem","_setPrototypeOf","_inheritsLoose","subClass","superClass","setPrototypeOf","timeoutsShape","TransitionGroupContext","forceReflow","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","_this","parentGroup","appear","initialStatus","prevState","nextIn","_proto","prevProps","nextStatus","exit","enter","mounting","_this2","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","_this3","nextState","callback","_this4","active","handler","doesNotHaveTimeoutOrListener","maybeNextCallback","_this$props","pt","noop","Transition$1","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","getScale","isWebKit154","Grow","addEndListener","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","TransitionComponent","timer","autoTimeout","nodeRef","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","transitionDuration","transitionTimingFunction","handleEntered","handleExiting","handleExit","handleAddEndListener","Grow$1","PopperRoot","BasePopper","components","componentsProps","RootComponent","Popper$1","getTooltipUtilityClass","tooltipClasses","tooltipClasses$1","disableInteractive","touch","TooltipPopper","TooltipTooltip","TooltipArrow","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onClose","onOpen","PopperComponentProp","PopperProps","title","TransitionComponentProp","isRtl","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","setOpenState","prevUserSelect","stopTouchInteraction","handleOpen","handleClose","handleLeave","focusVisibleRef","setChildIsFocusVisible","handleBlur","handleFocus","detectTouchStart","childrenProps","handleMouseOver","handleMouseLeave","handleTouchStart","handleTouchEnd","nativeEvent","handleMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","_PopperProps$popperOp","tooltipModifiers","PopperComponent","TooltipComponent","ArrowComponent","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip$1","getIcon","menuLabel","leading","MuiListItemIcon","MenuItem","allowForLeadingIcons","iconPathBefore","iconPathAfter","hasAutoFocus","isDense","isSubMenuParent","hasDisabledGutters","hasDivider","focusVisibleClassName","menuItem","MuiMenuItem","MuiListItemText","getAllGroups","menuDefinition","SubMenu","setAnchorEl","parentMenuItem","parentItemProps","handleParentMenuItemClick","renderSubMenuItems","includedGroups","group","GroupedMenuItemList","Menu","getOrderedGroupItems","groupId","allItems","menuProps","commandHandler","groupsToInclude","sortedGroups","itemArray","allowSpaceForLeadingIcons","createMenuItemProps","isLastItemInGroup","divKey","itemInfo","menuItemProps","TopLevelMenu","columnId","MenuColumn","metadata","Grid","List","GridMenu","multiColumnMenu","sortedColumns","columnNumbers","columnName","col","getUsePromiseOptionsDefaults","usePromise","promiseFactoryCallback","defaultValueRef","optionsDefaultedRef","setIsLoading","promiseIsCurrent","MenuIcon","HamburgerMenuButton","menuProvider","normalMenu","fullMenu","containerRef","ariaLabelPrefix","isMenuOpen","setMenuOpen","showFullMenu","setShowFullMenu","handleMenuItemClick","handleMenuButtonClick","prevIsOpen","isOpening","menuCommandHandler","command","setOffset","normalMenuData","fullMenuData","menu","IconButton","Drawer","isTooltipSuppressed","adjustMarginToAlignToEdge","MuiIconButton","Spinner","LoaderCircle","TextField","hasError","helperText","onFocus","onBlur","ShadLabel","ShadInput","Toolbar","AppBar","MuiToolbar","alertVariants","Alert","AlertTitle","AlertDescription","badgeVariants","Badge","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","Sonner","Toaster","Slider","SliderPrimitive","Switch","SwitchPrimitives","Tabs","TabsList","TabsTrigger","TabsContent","InstallButton","isInstalling","handleClick","buttonText","Download","EnableButton","isEnabling","DisableButton","isDisabling","UpdateButton","isUpdating","MarkdownRenderer","markdown","anchorTarget","Markdown","FilterButton","Filter","DropdownMenuItemType","DropdownMenuItemType2","FilterDropdown","groups","NoExtensionsFound","MoreInfo","category","downloads","languages","moreInfoUrl","numberFormatted","NumberFormat","handleScrollToBottom","User","locale","LucideLink","CircleHelp","VersionHistory","versionHistory","showAllVersions","setShowAllVersions","currentDate","formatTimeString","dateString","date","dateDiff","yearDiff","monthDiff","dayDiff","timeString","sortedEntries","Footer","publisherDisplayName","fileSize","locales","formattedFileSize","formatBytes","languageNames","codes","displayNames","badgesPlaceholder","selectedType","FILTERABLE_RESOURCE_LIST_STRING_KEYS","getLanguageOptions","resources","selectedLanguages","allLanguages","resource","starredLanguages","prioritizedLanguages","aIsPrioritized","bIsPrioritized","language","getActionButtonContent","installResource","getActionContent","idsBeingHandled","getText","updateText","installedText","FilterableResourceList","isLoadingResources","selectedTypes","setSelectedTypes","setSelectedLanguages","openResource","uninstallResource","actionText","anyText","dialogSubtitleText","dialogTitleText","filterInputText","filterByText","fullNameText","languageText","languagesText","loadingResourcesText","noResultsText","openText","removeText","resultsText","showingText","sizeText","typeText","typesText","typeDblText","typeErText","typeSlrText","typeXrText","typeUnknownText","isInitialized","setIsInitialized","installInfo","setInstallInfo","installOrRemoveResource","dblEntryUid","action","newInstallInfo","prevInfo","getErrorMessage","currentInstallInfo","res","textFilteredResources","filter","typeOptions","textAndTypeFilteredResources","textAndTypeAndLanguageFilteredResources","sortConfig","setSortConfig","sortedResources","aValue","bValue","newSortConfig","buildTableHead","getTypeCount","getLanguageCount","BookOpen","Shapes","Globe","Ellipsis","UiLanguageSelector","knownUiLanguages","primaryLanguage","fallbackLanguages","onLanguagesChange","onPrimaryLanguageChange","onFallbackLanguagesChange","selectFallbackLanguagesText","setIsOpen","handleLanguageChange","lang","getLanguageDisplayName","uiLang","altName","_d","_c","_e","_f","useEvent","unsubscriber","noopUnsubscriber","useEventAsync","unsubscribe","unsub"],"mappings":"28CAGA,MAAMA,GAAgBC,GAAAA,oBAAoB,CAAE,OAAQ,KAAO,CAAA,EAyDpD,SAASC,KAAMC,EAAsB,CACnC,OAAAH,GAAcI,GAAAA,KAAKD,CAAM,CAAC,CACnC,CCzDO,MAAME,GAAQC,EAAM,WACzB,CAAC,CAAE,UAAAC,EAAW,KAAAC,EA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B,UAAU,YAE7D,SAASqB,GAAqB,CAAE,UAAAzC,EAAW,GAAGE,GAAoC,CAErF,OAAAE,EAAA,IAAC,OAAA,CACC,UAAWT,EAAG,yDAA0DK,CAAS,EAEhF,GAAGE,CAAA,CAAA,CAGV,CACAuC,GAAqB,YAAc,uBC5OnC,IAAIC,GAAI,OAAO,eACXC,GAAI,CAACC,EAAG3B,EAAG4B,IAAM5B,KAAK2B,EAAIF,GAAEE,EAAG3B,EAAG,CAAE,WAAY,GAAI,aAAc,GAAI,SAAU,GAAI,MAAO4B,CAAC,CAAE,EAAID,EAAE3B,CAAC,EAAI4B,EACzGC,GAAI,CAACF,EAAG3B,EAAG4B,IAAMF,GAAEC,EAAG,OAAO3B,GAAK,SAAWA,EAAI,GAAKA,EAAG4B,CAAC,EAW9D,MAAME,GAAI,CACR,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MAEA,MAEA,MAEA,MAEA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,MAEA,MAEA,MAEA,MAEA,MACA,MACA,MACA,MAEA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MAEA,MACA,MACA,KACF,EAAGC,GAAI,CACL,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,KACF,EAAGC,GAAI,CACL,UACA,SACA,YACA,UACA,cACA,SACA,SACA,OACA,WACA,WACA,UACA,UACA,eACA,eACA,OACA,WACA,kBACA,MACA,SACA,WACA,eACA,gBACA,SACA,WACA,eACA,UACA,kBACA,QACA,OACA,OACA,UACA,QACA,QACA,QACA,WACA,YACA,SACA,YACA,UACA,UACA,OACA,OACA,OACA,OACA,SACA,gBACA,gBACA,YACA,YACA,cACA,aACA,kBACA,kBACA,YACA,YACA,QACA,WACA,UACA,QACA,UACA,UACA,SACA,SACA,SACA,OACA,aACA,QACA,SACA,eACA,oBACA,0BACA,SACA,qBACA,sBACA,UACA,qBACA,cACA,cACA,cACA,cACA,mBACA,mBACA,qBACA,YACA,OACA,oBAGA,uBACA,uBACA,sBACA,yBACA,wBACA,qBACA,UACA,UACA,UACA,UACA,UACA,UACA,UACA,eACA,cACA,eACA,oBACA,qBACA,0BACA,0BACA,eACA,eACA,YACA,gBACA,cACA,eACA,iBACA,wBACA,mBACA,WACA,QACA,aACA,aACA,aACA,2BACA,4BACA,YACF,EAAGC,GAAIC,KACP,SAASC,GAAER,EAAG3B,EAAI,GAAI,CACpB,OAAOA,IAAM2B,EAAIA,EAAE,YAAa,GAAGA,KAAKM,GAAIA,GAAEN,CAAC,EAAI,CACrD,CACA,SAASS,GAAET,EAAG,CACZ,OAAOQ,GAAER,CAAC,EAAI,CAChB,CACA,SAASU,GAAEV,EAAG,CACZ,MAAM3B,EAAI,OAAO2B,GAAK,SAAWQ,GAAER,CAAC,EAAIA,EACxC,OAAO3B,GAAK,IAAMA,GAAK,EACzB,CACA,SAASsC,GAAEX,EAAG,CACZ,OAAQ,OAAOA,GAAK,SAAWQ,GAAER,CAAC,EAAIA,IAAM,EAC9C,CACA,SAASY,GAAEZ,EAAG,CACZ,OAAOA,GAAK,EACd,CACA,SAASa,GAAEb,EAAG,CACZ,MAAM3B,EAAI,OAAO2B,GAAK,SAAWQ,GAAER,CAAC,EAAIA,EACxC,OAAOc,GAAEzC,CAAC,GAAK,CAAC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Z,SAAU,SACX,EACD,aAAc,CACZ,SAAU,qBACV,MAAOc,EACR,EAED,MAAO,CACL,SAAU,UACV,UAAWa,EACZ,EACD,QAAS,CACP,SAAU,UACV,YAAa,kBACb,UAAWA,EACZ,EACD,gBAAiB,CACf,SAAU,UACV,UAAWA,EACZ,EAED,EAAG,CACD,MAAOpC,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,QAAS,CACP,MAAOA,EACR,EACD,WAAY,CACV,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,cAAe,CACb,MAAOA,EACR,EACD,YAAa,CACX,MAAOA,EACR,EACD,SAAU,CACR,MAAOA,EACR,EACD,SAAU,CACR,MAAOA,EACR,EACD,cAAe,CACb,MAAOA,EACR,EACD,mBAAoB,CAClB,MAAOA,EACR,EACD,iBAAkB,CAChB,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,kBAAmB,CACjB,MAAOA,EACR,EACD,gBAAiB,CACf,MAAOA,EACR,EACD,EAAG,CACD,MAAOD,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,GAAI,CACF,MAAOA,EACR,EACD,OAAQ,CACN,MAAOA,EACR,EACD,UAAW,CACT,MAAOA,EACR,EACD,YAAa,CACX,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,WAAY,CACV,MAAOA,EACR,EACD,QAAS,CACP,MAAOA,EACR,EACD,QAAS,CACP,MAAOA,EACR,EACD,aAAc,CACZ,MAAOA,EACR,EACD,kBAAmB,CACjB,MAAOA,EACR,EACD,gBAAiB,CACf,MAAO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EACZ,CACF,EACD,CAACA,EAAY,GAAG,IAAI,CAAC,EAAG,CACtB,UAAW,EACZ,CACF,CACF,EAAEgO,CAAM,CACX,CCfA,MAAMC,GAAS,CACb,MAAO,OACP,MAAO,MACT,EACAC,GAAeD,GCJTE,GAAO,CACX,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,KAAM,UACN,KAAM,UACN,KAAM,UACN,KAAM,SACR,EACAC,GAAeD,GChBTE,GAAS,CACb,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,KAAM,UACN,KAAM,UACN,KAAM,UACN,KAAM,SACR,EACAC,GAAeD,GChBTE,GAAM,CACV,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,KAAM,UACN,KAAM,UACN,KAAM,UACN,KAAM,SACR,EACAC,GAAeD,GChBTE,GAAS,CACb,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,KAAM,UACN,KAAM,UACN,KAAM,UACN,KAAM,SACR,EACAC,GAAeD,GChBTE,GAAO,CACX,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,KAAM,UACN,KAAM,UACN,KAAM,UACN,KAAM,SACR,EACAC,GAAeD,GChBTE,GAAY,CAChB,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,KAAM,UACN,KAAM,UACN,KAA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,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,228]} \ No newline at end of file diff --git a/lib/platform-bible-react/dist/index.d.ts b/lib/platform-bible-react/dist/index.d.ts index 6cf5e3c9de..cd627a43a6 100644 --- a/lib/platform-bible-react/dist/index.d.ts +++ b/lib/platform-bible-react/dist/index.d.ts @@ -439,8 +439,9 @@ export interface MultiSelectComboBoxProps { customSelectedText?: string; sortSelected?: boolean; icon?: React$1.ReactNode; + className?: string; } -export declare function MultiSelectComboBox({ entries, getEntriesCount, selected, onChange, placeholder, commandEmptyMessage, customSelectedText, sortSelected, icon, }: MultiSelectComboBoxProps): import("react/jsx-runtime").JSX.Element; +export declare function MultiSelectComboBox({ entries, getEntriesCount, selected, onChange, placeholder, commandEmptyMessage, customSelectedText, sortSelected, icon, className, }: MultiSelectComboBoxProps): import("react/jsx-runtime").JSX.Element; export type TabKeyValueContent = { key: string; value: string; @@ -1409,20 +1410,25 @@ export interface FooterProps { * @returns The rendered Footer component */ export function Footer({ id, publisherDisplayName, fileSize, locales, versionHistory, }: FooterProps): import("react/jsx-runtime").JSX.Element; +export interface FilterProps extends MultiSelectComboBoxProps { + badgesPlaceholder: string; +} +export declare function Filter({ entries, getEntriesCount, selected, onChange, placeholder, commandEmptyMessage, customSelectedText, sortSelected, icon, className, badgesPlaceholder, }: FilterProps): import("react/jsx-runtime").JSX.Element; export declare const FILTERABLE_RESOURCE_LIST_STRING_KEYS: LocalizeKey[]; export type FilterableResourceListProps = { localizedStrings: LanguageStrings; - dblResources: DblResourceData[]; - isLoadingDblResources: boolean; - typeFilter: ResourceType[]; - setTypeFilter: (stateValue: ResourceType[]) => void; - languageFilter: string[]; - setLanguageFilter: (stateValue: string[]) => void; + resources: DblResourceData[]; + isLoadingResources: boolean; + selectedTypes: string[]; + setSelectedTypes: (stateValue: string[]) => void; + selectedLanguages: string[]; + setSelectedLanguages: (stateValue: string[]) => void; openResource: (projectId: string) => void; installResource: ((uid: string) => Promise) | undefined; uninstallResource: ((uid: string) => Promise) | undefined; + className?: string; }; -export declare function FilterableResourceList({ localizedStrings, dblResources, isLoadingDblResources, typeFilter, setTypeFilter, languageFilter, setLanguageFilter, openResource, installResource, uninstallResource, }: FilterableResourceListProps): import("react/jsx-runtime").JSX.Element; +export declare function FilterableResourceList({ localizedStrings, resources, isLoadingResources, selectedTypes, setSelectedTypes, selectedLanguages, setSelectedLanguages, openResource, installResource, uninstallResource, className, }: FilterableResourceListProps): import("react/jsx-runtime").JSX.Element; declare const UI_LANGUAGE_SELECTOR_STRING_KEYS: readonly [ "%settings_uiLanguageSelector_selectFallbackLanguages%" ]; diff --git a/lib/platform-bible-react/dist/index.js b/lib/platform-bible-react/dist/index.js index 8f40c4480c..84de0c617b 100644 --- a/lib/platform-bible-react/dist/index.js +++ b/lib/platform-bible-react/dist/index.js @@ -1,46 +1,46 @@ -import sl, { jsx as i, jsxs as y, Fragment as ie } from "react/jsx-runtime"; -import * as j from "react"; -import T, { forwardRef as pr, useCallback as Tt, useState as it, useRef as ye, useEffect as Jt, useLayoutEffect as ua, useMemo as Nt } from "react"; -import { History as ll, ChevronRight as di, Check as Rn, Circle as ui, ArrowDownWideNarrow as cl, Clock as dl, Bookmark as ul, X as pi, Search as ho, ChevronsUpDown as nr, FilterIcon as pl, ChevronDown as Ue, ChevronUp as Jr, ArrowLeftIcon as wl, ChevronLeftIcon as fl, ChevronRightIcon as ml, ArrowRightIcon as hl, CircleCheckIcon as gl, CircleXIcon as bl, CircleHelpIcon as vl, ArrowUpIcon as yl, ArrowDownIcon as xl, ArrowUpDownIcon as Nl, Star as kl, PanelLeft as El, PanelRight as Tl, ChevronLeft as Sl, LoaderCircle as Cl, Download as Ol, Filter as Rl, User as _l, Link as Pl, CircleHelp as $l, BookOpen as pa, Loader as Il, Ellipsis as Al } from "lucide-react"; -import xe, { clsx as Ml } from "clsx"; -import { extendTailwindMerge as Dl } from "tailwind-merge"; -import * as mt from "@radix-ui/react-dropdown-menu"; -import { DropdownMenuTrigger as Bl } from "@radix-ui/react-dropdown-menu"; -import { getChaptersForBook as jl, deepEqual as go, substring as Vl, formatScrRef as Mr, compareScrRefs as Zr, scrRefToBBBCCCVVV as Dr, getLocalizeKeyForScrollGroupId as pt, NumberFormat as zl, formatBytes as Ll, getErrorMessage as Fl } from "platform-bible-utils"; -import { Slot as Qe } from "@radix-ui/react-slot"; -import { cva as tn } from "class-variance-authority"; -import * as wi from "@radix-ui/react-label"; -import * as Nn from "@radix-ui/react-radio-group"; -import * as kn from "@radix-ui/react-popover"; -import { Command as Pt } from "cmdk"; -import * as Zt from "@radix-ui/react-dialog"; -import { useReactTable as fi, getCoreRowModel as mi, getPaginationRowModel as Ul, getSortedRowModel as hi, getFilteredRowModel as Gl, flexRender as gn, getExpandedRowModel as Xl, getGroupedRowModel as Hl } from "@tanstack/react-table"; -import * as vt from "@radix-ui/react-select"; -import * as Qr from "@radix-ui/react-checkbox"; -import * as wr from "@radix-ui/react-toggle-group"; -import * as gi from "@radix-ui/react-toggle"; -import * as $t from "@radix-ui/react-tabs"; -import * as bi from "@radix-ui/react-separator"; -import * as _n from "@radix-ui/react-tooltip"; -import Yl, { ThemeContext as Wl, internal_processStyles as ql } from "@mui/styled-engine"; -import { MenuItem as Kl, ListItemText as Jl, ListItemIcon as vi, Menu as Zl, Grid as yi, List as Ql, IconButton as xi, Drawer as tc, AppBar as ec, Toolbar as nc } from "@mui/material"; -import * as rc from "react-dom"; -import Hn from "react-dom"; -import { Toaster as oc } from "sonner"; -import { toast as ng } from "sonner"; -import * as wn from "@radix-ui/react-slider"; -import * as to from "@radix-ui/react-switch"; -import ac from "markdown-to-jsx"; -const ic = Dl({ prefix: "tw-" }); -function N(...t) { - return ic(Ml(t)); -} -const Re = T.forwardRef( +import cl, { jsx as i, jsxs as y, Fragment as de } from "react/jsx-runtime"; +import * as B from "react"; +import T, { forwardRef as lr, useCallback as Pt, useState as st, useRef as ke, useEffect as te, useLayoutEffect as ua, useMemo as Tt } from "react"; +import { History as dl, ChevronRight as ui, Check as Cn, Circle as pi, ArrowDownWideNarrow as ul, Clock as pl, Bookmark as wl, X as po, Search as wi, ChevronsUpDown as wo, FilterIcon as fl, ChevronDown as On, ChevronUp as fi, ArrowLeftIcon as ml, ChevronLeftIcon as hl, ChevronRightIcon as gl, ArrowRightIcon as bl, CircleCheckIcon as vl, CircleXIcon as yl, CircleHelpIcon as xl, ArrowUpIcon as Nl, ArrowDownIcon as kl, ArrowUpDownIcon as El, Star as Tl, PanelLeft as Sl, PanelRight as Cl, ChevronLeft as Ol, LoaderCircle as Rl, Download as _l, Filter as Pl, User as $l, Link as Il, CircleHelp as Al, BookOpen as pa, Shapes as Ml, Globe as Dl, Ellipsis as Bl } from "lucide-react"; +import Ee, { clsx as jl } from "clsx"; +import { extendTailwindMerge as Vl } from "tailwind-merge"; +import * as ht from "@radix-ui/react-dropdown-menu"; +import { DropdownMenuTrigger as zl } from "@radix-ui/react-dropdown-menu"; +import { getChaptersForBook as Ll, deepEqual as fo, substring as Fl, formatScrRef as Pr, compareScrRefs as Yr, scrRefToBBBCCCVVV as $r, getLocalizeKeyForScrollGroupId as ft, NumberFormat as Ul, formatBytes as Gl, getErrorMessage as Xl } from "platform-bible-utils"; +import { Slot as Je } from "@radix-ui/react-slot"; +import { cva as Ze } from "class-variance-authority"; +import * as mi from "@radix-ui/react-label"; +import * as xn from "@radix-ui/react-radio-group"; +import * as Nn from "@radix-ui/react-popover"; +import { Command as Dt } from "cmdk"; +import * as ee from "@radix-ui/react-dialog"; +import { useReactTable as hi, getCoreRowModel as gi, getPaginationRowModel as Hl, getSortedRowModel as bi, getFilteredRowModel as Yl, flexRender as hn, getExpandedRowModel as Wl, getGroupedRowModel as ql } from "@tanstack/react-table"; +import * as yt from "@radix-ui/react-select"; +import * as Wr from "@radix-ui/react-checkbox"; +import * as cr from "@radix-ui/react-toggle-group"; +import * as vi from "@radix-ui/react-toggle"; +import * as Bt from "@radix-ui/react-tabs"; +import * as yi from "@radix-ui/react-separator"; +import * as Rn from "@radix-ui/react-tooltip"; +import Kl, { ThemeContext as Jl, internal_processStyles as Zl } from "@mui/styled-engine"; +import { MenuItem as Ql, ListItemText as tc, ListItemIcon as xi, Menu as ec, Grid as Ni, List as nc, IconButton as ki, Drawer as rc, AppBar as oc, Toolbar as ac } from "@mui/material"; +import * as ic from "react-dom"; +import Xn from "react-dom"; +import { Toaster as sc } from "sonner"; +import { toast as og } from "sonner"; +import * as pn from "@radix-ui/react-slider"; +import * as qr from "@radix-ui/react-switch"; +import lc from "markdown-to-jsx"; +const cc = Vl({ prefix: "tw-" }); +function k(...t) { + return cc(jl(t)); +} +const Qe = T.forwardRef( ({ className: t, type: e, ...n }, r) => /* @__PURE__ */ i( "input", { type: e, - className: N( + className: k( "pr-twp tw-flex tw-h-10 tw-rounded-md tw-border tw-border-input tw-bg-background tw-px-3 tw-py-2 tw-text-sm tw-ring-offset-background file:tw-border-0 file:tw-bg-transparent file:tw-text-sm file:tw-font-medium file:tw-text-foreground placeholder:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50", t ), @@ -49,22 +49,22 @@ const Re = T.forwardRef( } ) ); -Re.displayName = "Input"; -const sc = "layoutDirection"; -function kt() { - const t = localStorage.getItem(sc); +Qe.displayName = "Input"; +const dc = "layoutDirection"; +function St() { + const t = localStorage.getItem(dc); return t === "rtl" ? t : "ltr"; } -const lc = pr( +const uc = lr( ({ handleSearch: t, handleKeyDown: e, handleOnClick: n, handleSubmit: r, ...o }, a) => { - const s = kt(); + const s = St(); return /* @__PURE__ */ y("div", { className: "tw-relative", children: [ /* @__PURE__ */ i( - Re, + Qe, { ...o, type: "text", - className: N( + className: k( "tw-box-border tw-w-[200px] tw-gap-2.5 tw-rounded-lg tw-border tw-border-solid tw-bg-background tw-py-2 tw-pe-9 tw-ps-4 tw-font-medium tw-shadow-none tw-outline-none" ), onChange: (l) => t(l.target.value), @@ -76,9 +76,9 @@ const lc = pr( } ), /* @__PURE__ */ i( - ll, + dl, { - className: N( + className: k( "tw-absolute tw-top-1/2 tw-h-4 tw-w-4 tw--translate-y-1/2 tw-transform tw-cursor-pointer tw-text-muted-foreground", { "tw-right-3": s === "ltr" }, { "tw-left-3 tw-right-auto": s === "rtl" } @@ -90,11 +90,11 @@ const lc = pr( ) ] }); } -), En = mt.Root, rr = mt.Trigger, cc = mt.Group, wh = mt.Portal, fh = mt.Sub, mh = mt.RadioGroup, dc = T.forwardRef(({ className: t, inset: e, children: n, ...r }, o) => /* @__PURE__ */ y( - mt.SubTrigger, +), dr = ht.Root, mo = ht.Trigger, pc = ht.Group, gh = ht.Portal, bh = ht.Sub, vh = ht.RadioGroup, wc = T.forwardRef(({ className: t, inset: e, children: n, ...r }, o) => /* @__PURE__ */ y( + ht.SubTrigger, { ref: o, - className: N( + className: k( "tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-px-2 tw-py-1.5 tw-text-sm tw-outline-none focus:tw-bg-accent data-[state=open]:tw-bg-accent", e && "tw-pl-8", t @@ -102,31 +102,31 @@ const lc = pr( ...r, children: [ n, - /* @__PURE__ */ i(di, { className: "tw-ml-auto tw-h-4 tw-w-4" }) + /* @__PURE__ */ i(ui, { className: "tw-ml-auto tw-h-4 tw-w-4" }) ] } )); -dc.displayName = mt.SubTrigger.displayName; -const uc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - mt.SubContent, +wc.displayName = ht.SubTrigger.displayName; +const fc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + ht.SubContent, { ref: n, - className: N( + className: k( "tw-z-50 tw-min-w-[8rem] tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-p-1 tw-text-popover-foreground tw-shadow-lg data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2", t ), ...e } )); -uc.displayName = mt.SubContent.displayName; -const Ge = T.forwardRef(({ className: t, sideOffset: e = 4, children: n, ...r }, o) => { - const a = kt(); - return /* @__PURE__ */ i(mt.Portal, { children: /* @__PURE__ */ i( - mt.Content, +fc.displayName = ht.SubContent.displayName; +const _n = T.forwardRef(({ className: t, sideOffset: e = 4, children: n, ...r }, o) => { + const a = St(); + return /* @__PURE__ */ i(ht.Portal, { children: /* @__PURE__ */ i( + ht.Content, { ref: o, sideOffset: e, - className: N( + className: k( /* adding pr-twp because the dropdown content is added to the dom as a sibling to the app root */ "pr-twp tw-z-50 tw-min-w-[8rem] tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-p-1 tw-text-popover-foreground tw-shadow-md data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2", t @@ -136,14 +136,14 @@ const Ge = T.forwardRef(({ className: t, sideOffset: e = 4, children: n, ...r }, } ) }); }); -Ge.displayName = mt.Content.displayName; -const or = T.forwardRef(({ className: t, inset: e, ...n }, r) => { - const o = kt(); +_n.displayName = ht.Content.displayName; +const er = T.forwardRef(({ className: t, inset: e, ...n }, r) => { + const o = St(); return /* @__PURE__ */ i( - mt.Item, + ht.Item, { ref: r, - className: N( + className: k( // removed: tw-relative focus:tw-text-accent-foreground "tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-px-2 tw-py-1.5 tw-text-sm tw-outline-none tw-transition-colors focus:tw-bg-accent data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50", e && "tw-pl-8", @@ -154,70 +154,70 @@ const or = T.forwardRef(({ className: t, inset: e, ...n }, r) => { } ); }); -or.displayName = mt.Item.displayName; -const fr = T.forwardRef(({ className: t, children: e, checked: n, ...r }, o) => /* @__PURE__ */ y( - mt.CheckboxItem, +er.displayName = ht.Item.displayName; +const ho = T.forwardRef(({ className: t, children: e, checked: n, ...r }, o) => /* @__PURE__ */ y( + ht.CheckboxItem, { ref: o, - className: N( + className: k( "tw-relative tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-py-1.5 tw-pe-2 tw-ps-8 tw-text-sm tw-outline-none tw-transition-colors focus:tw-bg-accent focus:tw-text-accent-foreground data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50", t ), checked: n, ...r, children: [ - /* @__PURE__ */ i("span", { className: "tw-absolute tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center ltr:tw-left-2 rtl:tw-right-2", children: /* @__PURE__ */ i(mt.ItemIndicator, { children: /* @__PURE__ */ i(Rn, { className: "tw-h-4 tw-w-4" }) }) }), + /* @__PURE__ */ i("span", { className: "tw-absolute tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center ltr:tw-left-2 rtl:tw-right-2", children: /* @__PURE__ */ i(ht.ItemIndicator, { children: /* @__PURE__ */ i(Cn, { className: "tw-h-4 tw-w-4" }) }) }), e ] } )); -fr.displayName = mt.CheckboxItem.displayName; -const Ni = T.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ y( - mt.RadioItem, +ho.displayName = ht.CheckboxItem.displayName; +const Ei = T.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ y( + ht.RadioItem, { ref: r, - className: N( + className: k( "tw-relative tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-py-1.5 tw-pe-2 tw-ps-8 tw-text-sm tw-outline-none tw-transition-colors focus:tw-bg-accent focus:tw-text-accent-foreground data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50", t ), ...n, children: [ - /* @__PURE__ */ i("span", { className: "tw-absolute tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center ltr:tw-left-2 rtl:tw-right-2", children: /* @__PURE__ */ i(mt.ItemIndicator, { children: /* @__PURE__ */ i(ui, { className: "tw-h-2 tw-w-2 tw-fill-current" }) }) }), + /* @__PURE__ */ i("span", { className: "tw-absolute tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center ltr:tw-left-2 rtl:tw-right-2", children: /* @__PURE__ */ i(ht.ItemIndicator, { children: /* @__PURE__ */ i(pi, { className: "tw-h-2 tw-w-2 tw-fill-current" }) }) }), e ] } )); -Ni.displayName = mt.RadioItem.displayName; +Ei.displayName = ht.RadioItem.displayName; const Pn = T.forwardRef(({ className: t, inset: e, ...n }, r) => /* @__PURE__ */ i( - mt.Label, + ht.Label, { ref: r, - className: N("tw-px-2 tw-py-1.5 tw-text-sm tw-font-semibold", e && "tw-pl-8", t), + className: k("tw-px-2 tw-py-1.5 tw-text-sm tw-font-semibold", e && "tw-pl-8", t), ...n } )); -Pn.displayName = mt.Label.displayName; +Pn.displayName = ht.Label.displayName; const $n = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - mt.Separator, + ht.Separator, { ref: n, - className: N("tw--mx-1 tw-my-1 tw-h-px tw-bg-muted", t), + className: k("tw--mx-1 tw-my-1 tw-h-px tw-bg-muted", t), ...e } )); -$n.displayName = mt.Separator.displayName; -function pc({ className: t, ...e }) { +$n.displayName = ht.Separator.displayName; +function mc({ className: t, ...e }) { return /* @__PURE__ */ i( "span", { - className: N("tw-ms-auto tw-text-xs tw-tracking-widest tw-opacity-60", t), + className: k("tw-ms-auto tw-text-xs tw-tracking-widest tw-opacity-60", t), ...e } ); } -pc.displayName = "DropdownMenuShortcut"; -var wc = Object.defineProperty, fc = (t, e, n) => e in t ? wc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, nt = (t, e, n) => fc(t, typeof e != "symbol" ? e + "" : e, n); -const ke = [ +mc.displayName = "DropdownMenuShortcut"; +var hc = Object.defineProperty, gc = (t, e, n) => e in t ? hc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, rt = (t, e, n) => gc(t, typeof e != "symbol" ? e + "" : e, n); +const Se = [ "GEN", "EXO", "LEV", @@ -362,7 +362,7 @@ const ke = [ "REP", "4BA", "LAO" -], bo = [ +], go = [ "XXA", "XXB", "XXC", @@ -378,7 +378,7 @@ const ke = [ "GLO", "TDX", "NDX" -], ki = [ +], Ti = [ "Genesis", "Exodus", "Leviticus", @@ -504,89 +504,89 @@ const ke = [ "Reproof (Proverbs 25-31)", "4 Baruch (Rest of Baruch)", "Laodiceans" -], wa = Ec(); -function en(t, e = !0) { +], wa = Cc(); +function tn(t, e = !0) { return e && (t = t.toUpperCase()), t in wa ? wa[t] : 0; } -function vo(t) { - return en(t) > 0; +function bo(t) { + return tn(t) > 0; } -function mc(t) { - const e = typeof t == "string" ? en(t) : t; +function bc(t) { + const e = typeof t == "string" ? tn(t) : t; return e >= 40 && e <= 66; } -function hc(t) { - return (typeof t == "string" ? en(t) : t) <= 39; +function vc(t) { + return (typeof t == "string" ? tn(t) : t) <= 39; } -function Ei(t) { +function Si(t) { return t <= 66; } -function gc(t) { - const e = typeof t == "string" ? en(t) : t; - return Ci(e) && !Ei(e); +function yc(t) { + const e = typeof t == "string" ? tn(t) : t; + return Ri(e) && !Si(e); } -function* bc() { - for (let t = 1; t <= ke.length; t++) +function* xc() { + for (let t = 1; t <= Se.length; t++) yield t; } -const vc = 1, Ti = ke.length; -function yc() { +const Nc = 1, Ci = Se.length; +function kc() { return ["XXA", "XXB", "XXC", "XXD", "XXE", "XXF", "XXG"]; } -function yo(t, e = "***") { +function vo(t, e = "***") { const n = t - 1; - return n < 0 || n >= ke.length ? e : ke[n]; + return n < 0 || n >= Se.length ? e : Se[n]; } -function Si(t) { - return t <= 0 || t > Ti ? "******" : ki[t - 1]; +function Oi(t) { + return t <= 0 || t > Ci ? "******" : Ti[t - 1]; } -function xc(t) { - return Si(en(t)); +function Ec(t) { + return Oi(tn(t)); } -function Ci(t) { - const e = typeof t == "number" ? yo(t) : t; - return vo(e) && !bo.includes(e); +function Ri(t) { + const e = typeof t == "number" ? vo(t) : t; + return bo(e) && !go.includes(e); } -function Nc(t) { - const e = typeof t == "number" ? yo(t) : t; - return vo(e) && bo.includes(e); +function Tc(t) { + const e = typeof t == "number" ? vo(t) : t; + return bo(e) && go.includes(e); } -function kc(t) { - return ki[t - 1].includes("*obsolete*"); +function Sc(t) { + return Ti[t - 1].includes("*obsolete*"); } -function Ec() { +function Cc() { const t = {}; - for (let e = 0; e < ke.length; e++) - t[ke[e]] = e + 1; + for (let e = 0; e < Se.length; e++) + t[Se[e]] = e + 1; return t; } -const st = { - allBookIds: ke, - nonCanonicalIds: bo, - bookIdToNumber: en, - isBookIdValid: vo, - isBookNT: mc, - isBookOT: hc, - isBookOTNT: Ei, - isBookDC: gc, - allBookNumbers: bc, - firstBook: vc, - lastBook: Ti, - extraBooks: yc, - bookNumberToId: yo, - bookNumberToEnglishName: Si, - bookIdToEnglishName: xc, - isCanonical: Ci, - isExtraMaterial: Nc, - isObsolete: kc +const ct = { + allBookIds: Se, + nonCanonicalIds: go, + bookIdToNumber: tn, + isBookIdValid: bo, + isBookNT: bc, + isBookOT: vc, + isBookOTNT: Si, + isBookDC: yc, + allBookNumbers: xc, + firstBook: Nc, + lastBook: Ci, + extraBooks: kc, + bookNumberToId: vo, + bookNumberToEnglishName: Oi, + bookIdToEnglishName: Ec, + isCanonical: Ri, + isExtraMaterial: Tc, + isObsolete: Sc }; -var Wt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Original = 1] = "Original", t[t.Septuagint = 2] = "Septuagint", t[t.Vulgate = 3] = "Vulgate", t[t.English = 4] = "English", t[t.RussianProtestant = 5] = "RussianProtestant", t[t.RussianOrthodox = 6] = "RussianOrthodox", t))(Wt || {}); -const At = class { +var Jt = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = "Unknown", t[t.Original = 1] = "Original", t[t.Septuagint = 2] = "Septuagint", t[t.Vulgate = 3] = "Vulgate", t[t.English = 4] = "English", t[t.RussianProtestant = 5] = "RussianProtestant", t[t.RussianOrthodox = 6] = "RussianOrthodox", t))(Jt || {}); +const Vt = class { // private versInfo: Versification; constructor(e) { - if (nt(this, "name"), nt(this, "fullPath"), nt(this, "isPresent"), nt(this, "hasVerseSegments"), nt(this, "isCustomized"), nt(this, "baseVersification"), nt(this, "scriptureBooks"), nt(this, "_type"), e == null) + if (rt(this, "name"), rt(this, "fullPath"), rt(this, "isPresent"), rt(this, "hasVerseSegments"), rt(this, "isCustomized"), rt(this, "baseVersification"), rt(this, "scriptureBooks"), rt(this, "_type"), e == null) throw new Error("Argument undefined"); - typeof e == "string" ? (this.name = e, this._type = Wt[e]) : (this._type = e, this.name = Wt[e]); + typeof e == "string" ? (this.name = e, this._type = Jt[e]) : (this._type = e, this.name = Jt[e]); } get type() { return this._type; @@ -595,34 +595,34 @@ const At = class { return !e.type || !this.type ? !1 : e.type === this.type; } }; -nt(At, "Original", new At(Wt.Original)), nt(At, "Septuagint", new At(Wt.Septuagint)), nt(At, "Vulgate", new At(Wt.Vulgate)), nt(At, "English", new At(Wt.English)), nt(At, "RussianProtestant", new At(Wt.RussianProtestant)), nt(At, "RussianOrthodox", new At(Wt.RussianOrthodox)); -let me = At; +rt(Vt, "Original", new Vt(Jt.Original)), rt(Vt, "Septuagint", new Vt(Jt.Septuagint)), rt(Vt, "Vulgate", new Vt(Jt.Vulgate)), rt(Vt, "English", new Vt(Jt.English)), rt(Vt, "RussianProtestant", new Vt(Jt.RussianProtestant)), rt(Vt, "RussianOrthodox", new Vt(Jt.RussianOrthodox)); +let be = Vt; function fa(t, e) { const n = e[0]; for (let r = 1; r < e.length; r++) t = t.split(e[r]).join(n); return t.split(n); } -var Oi = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = "Valid", t[t.UnknownVersification = 1] = "UnknownVersification", t[t.OutOfRange = 2] = "OutOfRange", t[t.VerseOutOfOrder = 3] = "VerseOutOfOrder", t[t.VerseRepeated = 4] = "VerseRepeated", t))(Oi || {}); -const Ot = class at { +var _i = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = "Valid", t[t.UnknownVersification = 1] = "UnknownVersification", t[t.OutOfRange = 2] = "OutOfRange", t[t.VerseOutOfOrder = 3] = "VerseOutOfOrder", t[t.VerseRepeated = 4] = "VerseRepeated", t))(_i || {}); +const It = class it { constructor(e, n, r, o) { - if (nt(this, "firstChapter"), nt(this, "lastChapter"), nt(this, "lastVerse"), nt(this, "hasSegmentsDefined"), nt(this, "text"), nt(this, "BBBCCCVVVS"), nt(this, "longHashCode"), nt(this, "versification"), nt(this, "rtlMark", "‏"), nt(this, "_bookNum", 0), nt(this, "_chapterNum", 0), nt(this, "_verseNum", 0), nt(this, "_verse"), r == null && o == null) + if (rt(this, "firstChapter"), rt(this, "lastChapter"), rt(this, "lastVerse"), rt(this, "hasSegmentsDefined"), rt(this, "text"), rt(this, "BBBCCCVVVS"), rt(this, "longHashCode"), rt(this, "versification"), rt(this, "rtlMark", "‏"), rt(this, "_bookNum", 0), rt(this, "_chapterNum", 0), rt(this, "_verseNum", 0), rt(this, "_verse"), r == null && o == null) if (e != null && typeof e == "string") { - const a = e, s = n != null && n instanceof me ? n : void 0; + const a = e, s = n != null && n instanceof be ? n : void 0; this.setEmpty(s), this.parse(a); } else if (e != null && typeof e == "number") { - const a = n != null && n instanceof me ? n : void 0; - this.setEmpty(a), this._verseNum = e % at.chapterDigitShifter, this._chapterNum = Math.floor( - e % at.bookDigitShifter / at.chapterDigitShifter - ), this._bookNum = Math.floor(e / at.bookDigitShifter); + const a = n != null && n instanceof be ? n : void 0; + this.setEmpty(a), this._verseNum = e % it.chapterDigitShifter, this._chapterNum = Math.floor( + e % it.bookDigitShifter / it.chapterDigitShifter + ), this._bookNum = Math.floor(e / it.bookDigitShifter); } else if (n == null) - if (e != null && e instanceof at) { + if (e != null && e instanceof it) { const a = e; this._bookNum = a.bookNum, this._chapterNum = a.chapterNum, this._verseNum = a.verseNum, this._verse = a.verse, this.versification = a.versification; } else { if (e == null) return; - const a = e instanceof me ? e : at.defaultVersification; + const a = e instanceof be ? e : it.defaultVersification; this.setEmpty(a); } else @@ -631,7 +631,7 @@ const Ot = class at { if (typeof e == "string" && typeof n == "string" && typeof r == "string") this.setEmpty(o), this.updateInternal(e, n, r); else if (typeof e == "number" && typeof n == "number" && typeof r == "number") - this._bookNum = e, this._chapterNum = n, this._verseNum = r, this.versification = o ?? at.defaultVersification; + this._bookNum = e, this._chapterNum = n, this._verseNum = r, this.versification = o ?? it.defaultVersification; else throw new Error("VerseRef constructor not supported."); else @@ -652,10 +652,10 @@ const Ot = class at { static tryParse(e) { let n; try { - return n = new at(e), { success: !0, verseRef: n }; + return n = new it(e), { success: !0, verseRef: n }; } catch (r) { - if (r instanceof ln) - return n = new at(), { success: !1, verseRef: n }; + if (r instanceof sn) + return n = new it(), { success: !1, verseRef: n }; throw r; } } @@ -669,7 +669,7 @@ const Ot = class at { * digits. */ static getBBBCCCVVV(e, n, r) { - return e % at.bcvMaxValue * at.bookDigitShifter + (n >= 0 ? n % at.bcvMaxValue * at.chapterDigitShifter : 0) + (r >= 0 ? r % at.bcvMaxValue : 0); + return e % it.bcvMaxValue * it.bookDigitShifter + (n >= 0 ? n % it.bcvMaxValue * it.chapterDigitShifter : 0) + (r >= 0 ? r % it.bcvMaxValue : 0); } /** * Deserializes a serialized VerseRef. @@ -679,7 +679,7 @@ const Ot = class at { static fromJSON(e) { const { book: n, chapterNum: r, verseNum: o, verse: a, versificationStr: s } = e, l = a || o.toString(); let c; - return s && (c = new me(s)), n ? new at(n, r.toString(), l, c) : new at(); + return s && (c = new be(s)), n ? new it(n, r.toString(), l, c) : new it(); } /** * Parses a verse string and gets the leading numeric portion as a number. @@ -696,7 +696,7 @@ const Ot = class at { for (let o = 0; o < e.length; o++) { if (r = e[o], r < "0" || r > "9") return o === 0 && (n = -1), { success: !1, vNum: n }; - if (n = n * 10 + +r - 0, n > at.bcvMaxValue) + if (n = n * 10 + +r - 0, n > it.bcvMaxValue) return n = -1, { success: !1, vNum: n }; } return { success: !0, vNum: n }; @@ -711,17 +711,17 @@ const Ot = class at { * Gets whether the verse contains multiple verses. */ get hasMultiple() { - return this._verse != null && (this._verse.includes(at.verseRangeSeparator) || this._verse.includes(at.verseSequenceIndicator)); + return this._verse != null && (this._verse.includes(it.verseRangeSeparator) || this._verse.includes(it.verseSequenceIndicator)); } /** * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters, * e.g. `'MAT'`. */ get book() { - return st.bookNumberToId(this.bookNum, ""); + return ct.bookNumberToId(this.bookNum, ""); } set book(e) { - this.bookNum = st.bookIdToNumber(e); + this.bookNum = ct.bookIdToNumber(e); } /** * Gets or sets the chapter of the reference,. e.g. `'3'`. @@ -741,8 +741,8 @@ const Ot = class at { return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? "" : this._verseNum.toString(); } set verse(e) { - const { success: n, vNum: r } = at.tryGetVerseNum(e); - this._verse = n ? void 0 : e.replace(this.rtlMark, ""), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = at.tryGetVerseNum(this._verse)); + const { success: n, vNum: r } = it.tryGetVerseNum(e); + this._verse = n ? void 0 : e.replace(this.rtlMark, ""), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = it.tryGetVerseNum(this._verse)); } /** * Get or set Book based on book number, e.g. `42`. @@ -751,8 +751,8 @@ const Ot = class at { return this._bookNum; } set bookNum(e) { - if (e <= 0 || e > st.lastBook) - throw new ln( + if (e <= 0 || e > ct.lastBook) + throw new sn( "BookNum must be greater than zero and less than or equal to last book" ); this._bookNum = e; @@ -785,7 +785,7 @@ const Ot = class at { return (e = this.versification) == null ? void 0 : e.name; } set versificationStr(e) { - this.versification = this.versification != null ? new me(e) : void 0; + this.versification = this.versification != null ? new be(e) : void 0; } /** * Determines if the reference is valid. @@ -797,14 +797,14 @@ const Ot = class at { * Get the valid status for this reference. */ get validStatus() { - return this.validateVerse(at.verseRangeSeparators, at.verseSequenceIndicators); + return this.validateVerse(it.verseRangeSeparators, it.verseSequenceIndicators); } /** * Gets the reference as a comparable integer where the book, * chapter, and verse each occupy three digits and the verse is 0. */ get BBBCCC() { - return at.getBBBCCCVVV(this._bookNum, this._chapterNum, 0); + return it.getBBBCCCVVV(this._bookNum, this._chapterNum, 0); } /** * Gets the reference as a comparable integer where the book, @@ -813,7 +813,7 @@ const Ot = class at { * segments or bridge) this cannot be used for an exact comparison. */ get BBBCCCVVV() { - return at.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum); + return it.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum); } /** * Gets whether the verse is defined as an excluded verse in the versification. @@ -839,17 +839,17 @@ const Ot = class at { if (e = a[0], a.length > 1) try { const s = +a[1].trim(); - this.versification = new me(Wt[s]); + this.versification = new be(Jt[s]); } catch { - throw new ln("Invalid reference : " + e); + throw new sn("Invalid reference : " + e); } } const n = e.trim().split(" "); if (n.length !== 2) - throw new ln("Invalid reference : " + e); + throw new sn("Invalid reference : " + e); const r = n[1].split(":"), o = +r[0]; - if (r.length !== 2 || st.bookIdToNumber(n[0]) === 0 || !Number.isInteger(o) || o < 0 || !at.isVerseParseable(r[1])) - throw new ln("Invalid reference : " + e); + if (r.length !== 2 || ct.bookIdToNumber(n[0]) === 0 || !Number.isInteger(o) || o < 0 || !it.isVerseParseable(r[1])) + throw new sn("Invalid reference : " + e); this.updateInternal(n[0], r[0], r[1]); } /** @@ -865,7 +865,7 @@ const Ot = class at { * @returns The cloned VerseRef. */ clone() { - return new at(this); + return new it(this); } toString() { const e = this.book; @@ -889,7 +889,7 @@ const Ot = class at { * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise. */ equals(e) { - return e instanceof at ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1; + return e instanceof it ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1; } /** * Enumerate all individual verses contained in a VerseRef. @@ -907,7 +907,7 @@ const Ot = class at { * Defaults to `VerseRef.verseSequenceIndicators`. * @returns An array of all single verse references in this VerseRef. */ - allVerses(e = !1, n = at.verseRangeSeparators, r = at.verseSequenceIndicators) { + allVerses(e = !1, n = it.verseRangeSeparators, r = it.verseSequenceIndicators) { if (this._verse == null || this.chapterNum <= 0) return [this.clone()]; const o = [], a = fa(this._verse, r); @@ -919,7 +919,7 @@ const Ot = class at { const d = this.clone(); if (d.verse = s[1], !e) for (let u = c + 1; u < d.verseNum; u++) { - const f = new at( + const f = new it( this._bookNum, this._chapterNum, u, @@ -956,22 +956,22 @@ const Ot = class at { * Gets whether a single verse reference is valid. */ get internalValid() { - return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > st.lastBook ? 2 : (st.isCanonical(this._bookNum), 0); + return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > ct.lastBook ? 2 : (ct.isCanonical(this._bookNum), 0); } - setEmpty(e = at.defaultVersification) { + setEmpty(e = it.defaultVersification) { this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = e; } updateInternal(e, n, r) { - this.bookNum = st.bookIdToNumber(e), this.chapter = n, this.verse = r; + this.bookNum = ct.bookIdToNumber(e), this.chapter = n, this.verse = r; } }; -nt(Ot, "defaultVersification", me.English), nt(Ot, "verseRangeSeparator", "-"), nt(Ot, "verseSequenceIndicator", ","), nt(Ot, "verseRangeSeparators", [Ot.verseRangeSeparator]), nt(Ot, "verseSequenceIndicators", [Ot.verseSequenceIndicator]), nt(Ot, "chapterDigitShifter", 1e3), nt(Ot, "bookDigitShifter", Ot.chapterDigitShifter * Ot.chapterDigitShifter), nt(Ot, "bcvMaxValue", Ot.chapterDigitShifter - 1), /** +rt(It, "defaultVersification", be.English), rt(It, "verseRangeSeparator", "-"), rt(It, "verseSequenceIndicator", ","), rt(It, "verseRangeSeparators", [It.verseRangeSeparator]), rt(It, "verseSequenceIndicators", [It.verseSequenceIndicator]), rt(It, "chapterDigitShifter", 1e3), rt(It, "bookDigitShifter", It.chapterDigitShifter * It.chapterDigitShifter), rt(It, "bcvMaxValue", It.chapterDigitShifter - 1), /** * The valid status of the VerseRef. */ -nt(Ot, "ValidStatusType", Oi); -class ln extends Error { +rt(It, "ValidStatusType", _i); +class sn extends Error { } -const Tc = pr( +const Oc = lr( ({ bookId: t, handleSelectBook: e, @@ -981,11 +981,11 @@ const Tc = pr( bookType: a, children: s }, l) => /* @__PURE__ */ y( - or, + er, { ref: l, textValue: t, - className: N( + className: k( "tw-mx-1 tw-flex-col tw-items-start tw-px-1 tw-font-normal tw-text-foreground/80", { // Overriding `data-[highlighted]` changes the default gray background that is normally shown on hover @@ -1004,7 +1004,7 @@ const Tc = pr( /* @__PURE__ */ i( "span", { - className: N( + className: k( "tw-border-b-0 tw-border-e-0 tw-border-s-2 tw-border-t-0 tw-border-solid tw-px-2", { "tw-font-bold": n, @@ -1013,7 +1013,7 @@ const Tc = pr( "tw-border-s-indigo-200": a.toLowerCase() === "dc" } ), - children: st.bookIdToEnglishName(t) + children: ct.bookIdToEnglishName(t) } ), n && /* @__PURE__ */ i("div", { children: s }) @@ -1022,23 +1022,23 @@ const Tc = pr( t ) ); -function Sc({ +function Rc({ handleSelectChapter: t, endChapter: e, activeChapter: n, highlightedChapter: r, handleHighlightedChapter: o }) { - const a = Array.from({ length: e }, (l, c) => c + 1), s = Tt( + const a = Array.from({ length: e }, (l, c) => c + 1), s = Pt( (l) => { o(l); }, [o] ); - return /* @__PURE__ */ i("div", { className: N("tw-flex tw-flex-wrap tw-items-start tw-justify-start tw-self-stretch"), children: a.map((l) => /* @__PURE__ */ i( + return /* @__PURE__ */ i("div", { className: k("tw-flex tw-flex-wrap tw-items-start tw-justify-start tw-self-stretch"), children: a.map((l) => /* @__PURE__ */ i( "div", { - className: N( + className: k( "tw-box-content tw-flex tw-h-4 tw-w-4 tw-cursor-pointer tw-items-center tw-justify-end tw-rounded-md tw-p-2 tw-text-amber-800", { "tw-font-semibold tw-text-amber-900": l === n, @@ -1059,26 +1059,26 @@ function Sc({ l )) }); } -function Cc({ handleSort: t, handleLocationHistory: e, handleBookmarks: n }) { +function _c({ handleSort: t, handleLocationHistory: e, handleBookmarks: n }) { return /* @__PURE__ */ y(Pn, { className: "tw-flex tw-justify-between", children: [ /* @__PURE__ */ i("p", { className: "tw-inline-block tw-align-middle", children: "Go To" }), /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center", children: [ /* @__PURE__ */ i( - cl, + ul, { onClick: t, className: "tw-m-2 tw-h-4 tw-w-4 tw-cursor-pointer tw-gap-2" } ), /* @__PURE__ */ i( - dl, + pl, { onClick: e, className: "tw-m-2 tw-h-4 tw-w-4 tw-cursor-pointer tw-gap-2" } ), /* @__PURE__ */ i( - ul, + wl, { onClick: n, className: "tw-m-2 tw-h-4 tw-w-4 tw-cursor-pointer tw-gap-2" @@ -1087,166 +1087,166 @@ function Cc({ handleSort: t, handleLocationHistory: e, handleBookmarks: n }) { ] }) ] }); } -const bn = st.allBookIds, Oc = { +const gn = ct.allBookIds, Pc = { OT: "Old Testament", NT: "New Testament", DC: "Deuterocanon" -}, ma = ["OT", "NT", "DC"], Rc = 32 + 32 + 32, _c = [ +}, ma = ["OT", "NT", "DC"], $c = 32 + 32 + 32, Ic = [ /^(\w+)$/i, // Matches a single word (book name or id) /^(\w+)(?:\s(\d+))$/i, // Matches a word followed by a chapter number /^(\w+)(?:\s(\d+):(\d+))$/i // Matches a word followed by a chapter and verse number -], Pc = (t) => ({ - OT: bn.filter((n) => st.isBookOT(n)), - NT: bn.filter((n) => st.isBookNT(n)), - DC: bn.filter((n) => st.isBookDC(n)) -})[t], cn = (t) => jl(st.bookIdToNumber(t)); -function $c() { - return bn.map((e) => st.bookIdToEnglishName(e)); -} -function Ic(t) { - return $c().includes(t); -} -function Ac(t) { +], Ac = (t) => ({ + OT: gn.filter((n) => ct.isBookOT(n)), + NT: gn.filter((n) => ct.isBookNT(n)), + DC: gn.filter((n) => ct.isBookDC(n)) +})[t], ln = (t) => Ll(ct.bookIdToNumber(t)); +function Mc() { + return gn.map((e) => ct.bookIdToEnglishName(e)); +} +function Dc(t) { + return Mc().includes(t); +} +function Bc(t) { const e = t.toLowerCase().replace(/^\w/, (n) => n.toUpperCase()); - if (Ic(e)) - return bn.find((r) => st.bookIdToEnglishName(r) === e); -} -function gh({ scrRef: t, handleSubmit: e }) { - const n = kt(), [r, o] = it(""), [a, s] = it( - st.bookNumberToId(t.bookNum) - ), [l, c] = it(t.chapterNum ?? 0), [d, u] = it( - st.bookNumberToId(t.bookNum) - ), [f, w] = it(!1), [g, b] = it(f), m = ye(void 0), h = ye(void 0), k = ye(void 0), P = Tt( - (M) => Pc(M).filter((D) => { - const K = st.bookIdToEnglishName(D).toLowerCase(), H = r.replace(/[^a-zA-Z]/g, "").toLowerCase(); - return K.includes(H) || // Match book name - D.toLowerCase().includes(H); + if (Dc(e)) + return gn.find((r) => ct.bookIdToEnglishName(r) === e); +} +function xh({ scrRef: t, handleSubmit: e }) { + const n = St(), [r, o] = st(""), [a, s] = st( + ct.bookNumberToId(t.bookNum) + ), [l, c] = st(t.chapterNum ?? 0), [d, u] = st( + ct.bookNumberToId(t.bookNum) + ), [f, w] = st(!1), [g, v] = st(f), m = ke(void 0), h = ke(void 0), N = ke(void 0), S = Pt( + (A) => Ac(A).filter((M) => { + const Y = ct.bookIdToEnglishName(M).toLowerCase(), U = r.replace(/[^a-zA-Z]/g, "").toLowerCase(); + return Y.includes(U) || // Match book name + M.toLowerCase().includes(U); }), [r] - ), C = (M) => { - o(M); - }, E = ye(!1), v = Tt((M) => { + ), C = (A) => { + o(A); + }, E = ke(!1), b = Pt((A) => { if (E.current) { E.current = !1; return; } - w(M); - }, []), $ = Tt( - (M, D, K, H) => { + w(A); + }, []), P = Pt( + (A, M, Y, U) => { if (c( - st.bookNumberToId(t.bookNum) !== M ? 1 : t.chapterNum - ), D || cn(M) === -1) { + ct.bookNumberToId(t.bookNum) !== A ? 1 : t.chapterNum + ), M || ln(A) === -1) { e({ - bookNum: st.bookIdToNumber(M), - chapterNum: K || 1, - verseNum: H || 1 + bookNum: ct.bookIdToNumber(A), + chapterNum: Y || 1, + verseNum: U || 1 }), w(!1), o(""); return; } - s(a !== M ? M : ""), w(!D); + s(a !== A ? A : ""), w(!M); }, [e, t.bookNum, t.chapterNum, a] - ), X = (M) => { - M <= 0 || M > cn(a) || $(a, !0, M); - }, _ = Tt(() => { - _c.forEach((M) => { - const D = r.match(M); - if (D) { - const [K, H = void 0, z = void 0] = D.slice(1), tt = Ac(K); - (st.isBookIdValid(K) || tt) && $( - tt ?? K, + ), L = (A) => { + A <= 0 || A > ln(a) || P(a, !0, A); + }, _ = Pt(() => { + Ic.forEach((A) => { + const M = r.match(A); + if (M) { + const [Y, U = void 0, V = void 0] = M.slice(1), tt = Bc(Y); + (ct.isBookIdValid(Y) || tt) && P( + tt ?? Y, !0, - H ? parseInt(H, 10) : 1, - z ? parseInt(z, 10) : 1 + U ? parseInt(U, 10) : 1, + V ? parseInt(V, 10) : 1 ); } }); - }, [$, r]), I = Tt( - (M) => { - f ? (M.key === "ArrowDown" || M.key === "ArrowUp") && (typeof k < "u" && // Ref uses null + }, [P, r]), $ = Pt( + (A) => { + f ? (A.key === "ArrowDown" || A.key === "ArrowUp") && (typeof N < "u" && // Ref uses null // eslint-disable-next-line no-null/no-null - k.current !== null ? k.current.focus() : typeof h < "u" && // Ref uses null + N.current !== null ? N.current.focus() : typeof h < "u" && // Ref uses null // eslint-disable-next-line no-null/no-null - h.current !== null && h.current.focus(), M.preventDefault()) : w(!0); + h.current !== null && h.current.focus(), A.preventDefault()) : w(!0); }, [f] - ), U = (M) => { - const { key: D } = M; - D === "ArrowRight" || D === "ArrowLeft" || D === "ArrowDown" || D === "ArrowUp" || D === "Enter" || (m.current.dispatchEvent(new KeyboardEvent("keydown", { key: D })), m.current.focus()); - }, B = (M) => { - const { key: D } = M; + ), F = (A) => { + const { key: M } = A; + M === "ArrowRight" || M === "ArrowLeft" || M === "ArrowDown" || M === "ArrowUp" || M === "Enter" || (m.current.dispatchEvent(new KeyboardEvent("keydown", { key: M })), m.current.focus()); + }, D = (A) => { + const { key: M } = A; if (d === a) { - if (D === "Enter") { - M.preventDefault(), $(a, !0, l); + if (M === "Enter") { + A.preventDefault(), P(a, !0, l); return; } - const K = D === "ArrowRight" && !n || D === "ArrowRight" && n === "ltr" || D === "ArrowLeft" && n === "rtl", H = D === "ArrowLeft" && !n || D === "ArrowLeft" && n === "ltr" || D === "ArrowRight" && n === "rtl"; - let z = 0; - if (K) - if (l < cn(d)) - z = 1; + const Y = M === "ArrowRight" && !n || M === "ArrowRight" && n === "ltr" || M === "ArrowLeft" && n === "rtl", U = M === "ArrowLeft" && !n || M === "ArrowLeft" && n === "ltr" || M === "ArrowRight" && n === "rtl"; + let V = 0; + if (Y) + if (l < ln(d)) + V = 1; else { - M.preventDefault(); + A.preventDefault(); return; } - else if (H) + else if (U) if (l > 1) - z = -1; + V = -1; else { - M.preventDefault(); + A.preventDefault(); return; } else - D === "ArrowDown" ? z = 6 : D === "ArrowUp" && (z = -6); - l + z <= 0 || l + z > cn(d) ? c(0) : z !== 0 && (c(l + z), M.preventDefault()); + M === "ArrowDown" ? V = 6 : M === "ArrowUp" && (V = -6); + l + V <= 0 || l + V > ln(d) ? c(0) : V !== 0 && (c(l + V), A.preventDefault()); } }; - return Jt(() => { - a === d ? a === st.bookNumberToId(t.bookNum) ? c(t.chapterNum) : c(1) : c(0); + return te(() => { + a === d ? a === ct.bookNumberToId(t.bookNum) ? c(t.chapterNum) : c(1) : c(0); }, [d, t.bookNum, t.chapterNum, a]), ua(() => { - b(f); + v(f); }, [f]), ua(() => { - const M = setTimeout(() => { - if (g && h.current && k.current) { - const K = k.current.offsetTop - Rc; - h.current.scrollTo({ top: K, behavior: "instant" }); + const A = setTimeout(() => { + if (g && h.current && N.current) { + const Y = N.current.offsetTop - $c; + h.current.scrollTo({ top: Y, behavior: "instant" }); } }, 10); return () => { - clearTimeout(M); + clearTimeout(A); }; - }, [g]), /* @__PURE__ */ i("div", { className: "pr-twp tw-flex", children: /* @__PURE__ */ y(En, { modal: !1, open: f, onOpenChange: v, children: [ - /* @__PURE__ */ i(rr, { asChild: !0, children: /* @__PURE__ */ i( - lc, + }, [g]), /* @__PURE__ */ i("div", { className: "pr-twp tw-flex", children: /* @__PURE__ */ y(dr, { modal: !1, open: f, onOpenChange: b, children: [ + /* @__PURE__ */ i(mo, { asChild: !0, children: /* @__PURE__ */ i( + uc, { ref: m, value: r, handleSearch: C, - handleKeyDown: I, + handleKeyDown: $, handleOnClick: () => { - s(st.bookNumberToId(t.bookNum)), u(st.bookNumberToId(t.bookNum)), c(t.chapterNum > 0 ? t.chapterNum : 0), w(!0), m.current.focus(); + s(ct.bookNumberToId(t.bookNum)), u(ct.bookNumberToId(t.bookNum)), c(t.chapterNum > 0 ? t.chapterNum : 0), w(!0), m.current.focus(); }, onFocus: () => { E.current = !0; }, handleSubmit: _, - placeholder: `${st.bookNumberToEnglishName(t.bookNum)} ${t.chapterNum}:${t.verseNum}` + placeholder: `${ct.bookNumberToEnglishName(t.bookNum)} ${t.chapterNum}:${t.verseNum}` } ) }), /* @__PURE__ */ i( - Ge, + _n, { className: "tw-m-1 tw-overflow-y-auto tw-p-0 tw-font-normal tw-text-foreground/80", style: { width: "233px", maxHeight: "500px", zIndex: "250" }, - onKeyDown: U, + onKeyDown: F, align: n === "ltr" ? "start" : "end", ref: h, children: /* @__PURE__ */ y("div", { className: "rtl:tw-ps-2", children: [ /* @__PURE__ */ i( - Cc, + _c, { handleSort: () => console.log("sorting"), handleLocationHistory: () => console.log("location history"), @@ -1254,43 +1254,43 @@ function gh({ scrRef: t, handleSubmit: e }) { } ), ma.map( - (M, D) => P(M).length > 0 && /* @__PURE__ */ y("div", { children: [ - /* @__PURE__ */ i(Pn, { className: "tw-font-semibold tw-text-foreground/80", children: Oc[M] }), - P(M).map((K) => /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i( - Tc, + (A, M) => S(A).length > 0 && /* @__PURE__ */ y("div", { children: [ + /* @__PURE__ */ i(Pn, { className: "tw-font-semibold tw-text-foreground/80", children: Pc[A] }), + S(A).map((Y) => /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i( + Oc, { - bookId: K, - handleSelectBook: () => $(K, !1), - isSelected: a === K, - handleHighlightBook: () => u(K), - handleKeyDown: B, - bookType: M, - ref: (H) => { - a === K && (k.current = H); + bookId: Y, + handleSelectBook: () => P(Y, !1), + isSelected: a === Y, + handleHighlightBook: () => u(Y), + handleKeyDown: D, + bookType: A, + ref: (U) => { + a === Y && (N.current = U); }, children: /* @__PURE__ */ i( - Sc, + Rc, { - handleSelectChapter: X, - endChapter: cn(K), - activeChapter: t.bookNum === st.bookIdToNumber(K) ? t.chapterNum : 0, + handleSelectChapter: L, + endChapter: ln(Y), + activeChapter: t.bookNum === ct.bookIdToNumber(Y) ? t.chapterNum : 0, highlightedChapter: l, - handleHighlightedChapter: (H) => { - c(H); + handleHighlightedChapter: (U) => { + c(U); } } ) } - ) }, K)), - ma.length - 1 !== D ? /* @__PURE__ */ i($n, {}) : void 0 - ] }, M) + ) }, Y)), + ma.length - 1 !== M ? /* @__PURE__ */ i($n, {}) : void 0 + ] }, A) ) ] }) } ) ] }) }); } -const Mc = tn( +const jc = Ze( "pr-twp tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50", { variants: { @@ -1314,49 +1314,49 @@ const Mc = tn( size: "default" } } -), wt = T.forwardRef( - ({ className: t, variant: e, size: n, asChild: r = !1, ...o }, a) => /* @__PURE__ */ i(r ? Qe : "button", { className: N(Mc({ variant: e, size: n, className: t })), ref: a, ...o }) +), mt = T.forwardRef( + ({ className: t, variant: e, size: n, asChild: r = !1, ...o }, a) => /* @__PURE__ */ i(r ? Je : "button", { className: k(jc({ variant: e, size: n, className: t })), ref: a, ...o }) ); -wt.displayName = "Button"; -const Dc = tn( +mt.displayName = "Button"; +const Vc = Ze( "tw-text-sm tw-font-medium tw-leading-none peer-disabled:tw-cursor-not-allowed peer-disabled:tw-opacity-70" -), St = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i(wi.Root, { ref: n, className: N("pr-twp", Dc(), t), ...e })); -St.displayName = wi.Root.displayName; -const Ri = T.forwardRef(({ className: t, ...e }, n) => { - const r = kt(); +), Ct = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i(mi.Root, { ref: n, className: k("pr-twp", Vc(), t), ...e })); +Ct.displayName = mi.Root.displayName; +const Pi = T.forwardRef(({ className: t, ...e }, n) => { + const r = St(); return /* @__PURE__ */ i( - Nn.Root, + xn.Root, { - className: N("pr-twp tw-grid tw-gap-2", t), + className: k("pr-twp tw-grid tw-gap-2", t), ...e, ref: n, dir: r } ); }); -Ri.displayName = Nn.Root.displayName; -const eo = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Nn.Item, +Pi.displayName = xn.Root.displayName; +const Kr = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + xn.Item, { ref: n, - className: N( + className: k( "pr-twp tw-aspect-square tw-h-4 tw-w-4 tw-rounded-full tw-border tw-border-primary tw-text-primary tw-ring-offset-background focus:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50", t ), ...e, - children: /* @__PURE__ */ i(Nn.Indicator, { className: "tw-flex tw-items-center tw-justify-center", children: /* @__PURE__ */ i(ui, { className: "tw-h-2.5 tw-w-2.5 tw-fill-current tw-text-current" }) }) + children: /* @__PURE__ */ i(xn.Indicator, { className: "tw-flex tw-items-center tw-justify-center", children: /* @__PURE__ */ i(pi, { className: "tw-h-2.5 tw-w-2.5 tw-fill-current tw-text-current" }) }) } )); -eo.displayName = Nn.Item.displayName; -const _i = kn.Root, Pi = kn.Trigger, xo = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, o) => { - const a = kt(); - return /* @__PURE__ */ i(kn.Portal, { children: /* @__PURE__ */ i( - kn.Content, +Kr.displayName = xn.Item.displayName; +const $i = Nn.Root, Ii = Nn.Trigger, yo = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, o) => { + const a = St(); + return /* @__PURE__ */ i(Nn.Portal, { children: /* @__PURE__ */ i( + Nn.Content, { ref: o, align: e, sideOffset: n, - className: N( + className: k( "pr-twp tw-z-50 tw-w-72 tw-rounded-md tw-border tw-bg-popover tw-p-4 tw-text-popover-foreground tw-shadow-md tw-outline-none data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2", t ), @@ -1365,28 +1365,28 @@ const _i = kn.Root, Pi = kn.Trigger, xo = T.forwardRef(({ className: t, align: e } ) }); }); -xo.displayName = kn.Content.displayName; -const Bc = Zt.Portal, $i = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Zt.Overlay, +yo.displayName = Nn.Content.displayName; +const zc = ee.Portal, Ai = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + ee.Overlay, { ref: n, - className: N( + className: k( "tw-fixed tw-inset-0 tw-z-50 tw-bg-black/80 data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0", t ), ...e } )); -$i.displayName = Zt.Overlay.displayName; -const jc = T.forwardRef(({ className: t, children: e, ...n }, r) => { - const o = kt(); - return /* @__PURE__ */ y(Bc, { children: [ - /* @__PURE__ */ i($i, {}), +Ai.displayName = ee.Overlay.displayName; +const Lc = T.forwardRef(({ className: t, children: e, ...n }, r) => { + const o = St(); + return /* @__PURE__ */ y(zc, { children: [ + /* @__PURE__ */ i(Ai, {}), /* @__PURE__ */ y( - Zt.Content, + ee.Content, { ref: r, - className: N( + className: k( "pr-twp tw-fixed tw-left-[50%] tw-top-[50%] tw-z-50 tw-grid tw-w-full tw-max-w-lg tw-translate-x-[-50%] tw-translate-y-[-50%] tw-gap-4 tw-border tw-bg-background tw-p-6 tw-shadow-lg tw-duration-200 data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[state=closed]:tw-slide-out-to-left-1/2 data-[state=closed]:tw-slide-out-to-top-[48%] data-[state=open]:tw-slide-in-from-left-1/2 data-[state=open]:tw-slide-in-from-top-[48%] sm:tw-rounded-lg", t ), @@ -1395,15 +1395,15 @@ const jc = T.forwardRef(({ className: t, children: e, ...n }, r) => { children: [ e, /* @__PURE__ */ y( - Zt.Close, + ee.Close, { - className: N( + className: k( "tw-absolute tw-top-4 tw-rounded-sm tw-opacity-70 tw-ring-offset-background tw-transition-opacity hover:tw-opacity-100 focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2 disabled:tw-pointer-events-none data-[state=open]:tw-bg-accent data-[state=open]:tw-text-muted-foreground", { "tw-right-4": o === "ltr" }, { "tw-left-4": o === "rtl" } ), children: [ - /* @__PURE__ */ i(pi, { className: "tw-h-4 tw-w-4" }), + /* @__PURE__ */ i(po, { className: "tw-h-4 tw-w-4" }), /* @__PURE__ */ i("span", { className: "tw-sr-only", children: "Close" }) ] } @@ -1413,46 +1413,46 @@ const jc = T.forwardRef(({ className: t, children: e, ...n }, r) => { ) ] }); }); -jc.displayName = Zt.Content.displayName; -const Vc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Zt.Title, +Lc.displayName = ee.Content.displayName; +const Fc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + ee.Title, { ref: n, - className: N("tw-text-lg tw-font-semibold tw-leading-none tw-tracking-tight", t), + className: k("tw-text-lg tw-font-semibold tw-leading-none tw-tracking-tight", t), ...e } )); -Vc.displayName = Zt.Title.displayName; -const zc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Zt.Description, +Fc.displayName = ee.Title.displayName; +const Uc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + ee.Description, { ref: n, - className: N("tw-text-sm tw-text-muted-foreground", t), + className: k("tw-text-sm tw-text-muted-foreground", t), ...e } )); -zc.displayName = Zt.Description.displayName; -const No = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Pt, +Uc.displayName = ee.Description.displayName; +const xo = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Dt, { ref: n, - className: N( + className: k( "tw-flex tw-h-full tw-w-full tw-flex-col tw-overflow-hidden tw-rounded-md tw-bg-popover tw-text-popover-foreground", t ), ...e } )); -No.displayName = Pt.displayName; -const ko = T.forwardRef(({ className: t, ...e }, n) => { - const r = kt(); +xo.displayName = Dt.displayName; +const No = T.forwardRef(({ className: t, ...e }, n) => { + const r = St(); return /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center tw-border-b tw-px-3", dir: r, children: [ - /* @__PURE__ */ i(ho, { className: "tw-me-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50" }), + /* @__PURE__ */ i(wi, { className: "tw-me-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50" }), /* @__PURE__ */ i( - Pt.Input, + Dt.Input, { ref: n, - className: N( + className: k( "tw-flex tw-h-11 tw-w-full tw-rounded-md tw-bg-transparent tw-py-3 tw-text-sm tw-outline-none placeholder:tw-text-muted-foreground disabled:tw-cursor-not-allowed disabled:tw-opacity-50", t ), @@ -1461,55 +1461,55 @@ const ko = T.forwardRef(({ className: t, ...e }, n) => { ) ] }); }); -ko.displayName = Pt.Input.displayName; -const Eo = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Pt.List, +No.displayName = Dt.Input.displayName; +const ko = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Dt.List, { ref: n, - className: N("tw-max-h-[300px] tw-overflow-y-auto tw-overflow-x-hidden", t), + className: k("tw-max-h-[300px] tw-overflow-y-auto tw-overflow-x-hidden", t), ...e } )); -Eo.displayName = Pt.List.displayName; -const To = T.forwardRef((t, e) => /* @__PURE__ */ i(Pt.Empty, { ref: e, className: "tw-py-6 tw-text-center tw-text-sm", ...t })); -To.displayName = Pt.Empty.displayName; -const Ii = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Pt.Group, +ko.displayName = Dt.List.displayName; +const Eo = T.forwardRef((t, e) => /* @__PURE__ */ i(Dt.Empty, { ref: e, className: "tw-py-6 tw-text-center tw-text-sm", ...t })); +Eo.displayName = Dt.Empty.displayName; +const Mi = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Dt.Group, { ref: n, - className: N( + className: k( "tw-overflow-hidden tw-p-1 tw-text-foreground [&_[cmdk-group-heading]]:tw-px-2 [&_[cmdk-group-heading]]:tw-py-1.5 [&_[cmdk-group-heading]]:tw-text-xs [&_[cmdk-group-heading]]:tw-font-medium [&_[cmdk-group-heading]]:tw-text-muted-foreground", t ), ...e } )); -Ii.displayName = Pt.Group.displayName; -const Lc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Pt.Separator, +Mi.displayName = Dt.Group.displayName; +const Gc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Dt.Separator, { ref: n, - className: N("tw--mx-1 tw-h-px tw-bg-border", t), + className: k("tw--mx-1 tw-h-px tw-bg-border", t), ...e } )); -Lc.displayName = Pt.Separator.displayName; -const So = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Pt.Item, +Gc.displayName = Dt.Separator.displayName; +const To = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Dt.Item, { ref: n, - className: N( + className: k( "tw-relative tw-flex tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-px-2 tw-py-1.5 tw-text-sm tw-outline-none data-[disabled=true]:tw-pointer-events-none data-[selected=true]:tw-bg-accent data-[selected=true]:tw-text-accent-foreground data-[disabled=true]:tw-opacity-50", t ), ...e } )); -So.displayName = Pt.Item.displayName; -function Fc(t) { +To.displayName = Dt.Item.displayName; +function Xc(t) { return typeof t == "string" ? t : typeof t == "number" ? t.toString() : t.label; } -function ar({ +function Jr({ id: t, options: e = [], className: n, @@ -1518,74 +1518,74 @@ function ar({ value: a, onChange: s = () => { }, - getOptionLabel: l = Fc, + getOptionLabel: l = Xc, icon: c = void 0, buttonPlaceholder: d = "", textPlaceholder: u = "", commandEmptyMessage: f = "No option found", buttonVariant: w = "outline", alignDropDown: g = "start", - isDisabled: b = !1, + isDisabled: v = !1, ...m }) { - const [h, k] = it(!1); - return /* @__PURE__ */ y(_i, { open: h, onOpenChange: k, ...m, children: [ - /* @__PURE__ */ i(Pi, { asChild: !0, children: /* @__PURE__ */ y( - wt, + const [h, N] = st(!1); + return /* @__PURE__ */ y($i, { open: h, onOpenChange: N, ...m, children: [ + /* @__PURE__ */ i(Ii, { asChild: !0, children: /* @__PURE__ */ y( + mt, { variant: w, role: "combobox", "aria-expanded": h, id: t, - className: N( + className: k( "tw-flex tw-w-[200px] tw-items-center tw-justify-between tw-overflow-hidden", r ?? n ), - disabled: b, + disabled: v, children: [ /* @__PURE__ */ y("div", { className: "tw-flex tw-flex-1 tw-items-center tw-overflow-hidden", children: [ c && /* @__PURE__ */ i("div", { className: "tw-pe-2", children: c }), /* @__PURE__ */ i("span", { className: "tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap", children: a ? l(a) : d }) ] }), - /* @__PURE__ */ i(nr, { className: "tw-ms-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50" }) + /* @__PURE__ */ i(wo, { className: "tw-ms-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50" }) ] } ) }), /* @__PURE__ */ i( - xo, + yo, { align: g, - className: N("tw-w-[200px] tw-p-0", o), - children: /* @__PURE__ */ y(No, { children: [ - /* @__PURE__ */ i(ko, { placeholder: u, className: "tw-text-inherit" }), - /* @__PURE__ */ i(To, { children: f }), - /* @__PURE__ */ i(Eo, { children: e.map((P) => /* @__PURE__ */ y( - So, + className: k("tw-w-[200px] tw-p-0", o), + children: /* @__PURE__ */ y(xo, { children: [ + /* @__PURE__ */ i(No, { placeholder: u, className: "tw-text-inherit" }), + /* @__PURE__ */ i(Eo, { children: f }), + /* @__PURE__ */ i(ko, { children: e.map((S) => /* @__PURE__ */ y( + To, { - value: l(P), + value: l(S), onSelect: () => { - s(P), k(!1); + s(S), N(!1); }, children: [ /* @__PURE__ */ i( - Rn, + Cn, { - className: N("tw-me-2 tw-h-4 tw-w-4", { - "tw-opacity-0": !a || l(a) !== l(P) + className: k("tw-me-2 tw-h-4 tw-w-4", { + "tw-opacity-0": !a || l(a) !== l(S) }) } ), - l(P) + l(S) ] }, - l(P) + l(S) )) }) ] }) } ) ] }); } -function Uc({ +function Hc({ startChapter: t, endChapter: e, handleSelectStartChapter: n, @@ -1593,14 +1593,14 @@ function Uc({ isDisabled: o = !1, chapterCount: a }) { - const s = Nt( + const s = Tt( () => Array.from({ length: a }, (d, u) => u + 1), [a] ); - return /* @__PURE__ */ y(ie, { children: [ - /* @__PURE__ */ i(St, { htmlFor: "start-chapters-combobox", children: "Chapters" }), + return /* @__PURE__ */ y(de, { children: [ + /* @__PURE__ */ i(Ct, { htmlFor: "start-chapters-combobox", children: "Chapters" }), /* @__PURE__ */ i( - ar, + Jr, { isDisabled: o, onChange: (d) => { @@ -1613,9 +1613,9 @@ function Uc({ }, "start chapter" ), - /* @__PURE__ */ i(St, { htmlFor: "end-chapters-combobox", children: "to" }), + /* @__PURE__ */ i(Ct, { htmlFor: "end-chapters-combobox", children: "to" }), /* @__PURE__ */ i( - ar, + Jr, { isDisabled: o, onChange: (d) => { @@ -1630,13 +1630,13 @@ function Uc({ ) ] }); } -var Gc = /* @__PURE__ */ ((t) => (t.CURRENT_BOOK = "current book", t.CHOOSE_BOOKS = "choose books", t))(Gc || {}); -const bh = Object.freeze([ +var Yc = /* @__PURE__ */ ((t) => (t.CURRENT_BOOK = "current book", t.CHOOSE_BOOKS = "choose books", t))(Yc || {}); +const Nh = Object.freeze([ "%webView_bookSelector_currentBook%", "%webView_bookSelector_choose%", "%webView_bookSelector_chooseBooks%" -]), Br = (t, e) => t[e] ?? e; -function vh({ +]), Ir = (t, e) => t[e] ?? e; +function kh({ handleBookSelectionModeChange: t, currentBookName: e, onSelectBooks: n, @@ -1648,14 +1648,14 @@ function vh({ handleSelectStartChapter: c, localizedStrings: d }) { - const u = Br(d, "%webView_bookSelector_currentBook%"), f = Br(d, "%webView_bookSelector_choose%"), w = Br(d, "%webView_bookSelector_chooseBooks%"), [g, b] = it( + const u = Ir(d, "%webView_bookSelector_currentBook%"), f = Ir(d, "%webView_bookSelector_choose%"), w = Ir(d, "%webView_bookSelector_chooseBooks%"), [g, v] = st( "current book" /* CURRENT_BOOK */ ), m = (h) => { - b(h), t(h); + v(h), t(h); }; return /* @__PURE__ */ i( - Ri, + Pi, { className: "pr-twp tw-flex", value: g, @@ -1663,15 +1663,15 @@ function vh({ children: /* @__PURE__ */ y("div", { className: "tw-flex tw-w-full tw-flex-col tw-gap-4", children: [ /* @__PURE__ */ y("div", { className: "tw-grid tw-grid-cols-[25%,25%,50%]", children: [ /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center", children: [ - /* @__PURE__ */ i(eo, { + /* @__PURE__ */ i(Kr, { value: "current book" /* CURRENT_BOOK */ }), - /* @__PURE__ */ i(St, { className: "tw-ms-1", children: u }) + /* @__PURE__ */ i(Ct, { className: "tw-ms-1", children: u }) ] }), - /* @__PURE__ */ i(St, { className: "tw-flex tw-items-center", children: e }), + /* @__PURE__ */ i(Ct, { className: "tw-flex tw-items-center", children: e }), /* @__PURE__ */ i("div", { className: "tw-flex tw-items-center tw-justify-end", children: /* @__PURE__ */ i( - Uc, + Hc, { isDisabled: g === "choose books", handleSelectStartChapter: c, @@ -1684,15 +1684,15 @@ function vh({ ] }), /* @__PURE__ */ y("div", { className: "tw-grid tw-grid-cols-[25%,50%,25%]", children: [ /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center", children: [ - /* @__PURE__ */ i(eo, { + /* @__PURE__ */ i(Kr, { value: "choose books" /* CHOOSE_BOOKS */ }), - /* @__PURE__ */ i(St, { className: "tw-ms-1", children: w }) + /* @__PURE__ */ i(Ct, { className: "tw-ms-1", children: w }) ] }), - /* @__PURE__ */ i(St, { className: "tw-flex tw-items-center", children: r.map((h) => st.bookIdToEnglishName(h)).join(", ") }), + /* @__PURE__ */ i(Ct, { className: "tw-flex tw-items-center", children: r.map((h) => ct.bookIdToEnglishName(h)).join(", ") }), /* @__PURE__ */ i( - wt, + mt, { disabled: g === "current book", onClick: () => n(), @@ -1704,17 +1704,17 @@ function vh({ } ); } -function Xc({ table: t }) { - return /* @__PURE__ */ y(En, { children: [ - /* @__PURE__ */ i(Bl, { asChild: !0, children: /* @__PURE__ */ y(wt, { variant: "outline", size: "sm", className: "tw-ml-auto tw-hidden tw-h-8 lg:tw-flex", children: [ - /* @__PURE__ */ i(pl, { className: "tw-mr-2 tw-h-4 tw-w-4" }), +function Wc({ table: t }) { + return /* @__PURE__ */ y(dr, { children: [ + /* @__PURE__ */ i(zl, { asChild: !0, children: /* @__PURE__ */ y(mt, { variant: "outline", size: "sm", className: "tw-ml-auto tw-hidden tw-h-8 lg:tw-flex", children: [ + /* @__PURE__ */ i(fl, { className: "tw-mr-2 tw-h-4 tw-w-4" }), "View" ] }) }), - /* @__PURE__ */ y(Ge, { align: "end", className: "tw-w-[150px]", children: [ + /* @__PURE__ */ y(_n, { align: "end", className: "tw-w-[150px]", children: [ /* @__PURE__ */ i(Pn, { children: "Toggle columns" }), /* @__PURE__ */ i($n, {}), t.getAllColumns().filter((e) => e.getCanHide()).map((e) => /* @__PURE__ */ i( - fr, + ho, { className: "tw-capitalize", checked: e.getIsVisible(), @@ -1726,13 +1726,13 @@ function Xc({ table: t }) { ] }) ] }); } -const Xe = vt.Root, Hc = vt.Group, He = vt.Value, Ee = T.forwardRef(({ className: t, children: e, ...n }, r) => { - const o = kt(); +const Ue = yt.Root, qc = yt.Group, Ge = yt.Value, Ce = T.forwardRef(({ className: t, children: e, ...n }, r) => { + const o = St(); return /* @__PURE__ */ y( - vt.Trigger, + yt.Trigger, { ref: r, - className: N( + className: k( "tw-flex tw-h-10 tw-w-full tw-items-center tw-justify-between tw-rounded-md tw-border tw-border-input tw-bg-background tw-px-3 tw-py-2 tw-text-sm tw-ring-offset-background placeholder:tw-text-muted-foreground focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50 [&>span]:tw-line-clamp-1", t ), @@ -1740,39 +1740,39 @@ const Xe = vt.Root, Hc = vt.Group, He = vt.Value, Ee = T.forwardRef(({ className dir: o, children: [ e, - /* @__PURE__ */ i(vt.Icon, { asChild: !0, children: /* @__PURE__ */ i(Ue, { className: "tw-h-4 tw-w-4 tw-opacity-50" }) }) + /* @__PURE__ */ i(yt.Icon, { asChild: !0, children: /* @__PURE__ */ i(On, { className: "tw-h-4 tw-w-4 tw-opacity-50" }) }) ] } ); }); -Ee.displayName = vt.Trigger.displayName; -const Ai = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - vt.ScrollUpButton, +Ce.displayName = yt.Trigger.displayName; +const Di = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + yt.ScrollUpButton, { ref: n, - className: N("tw-flex tw-cursor-default tw-items-center tw-justify-center tw-py-1", t), + className: k("tw-flex tw-cursor-default tw-items-center tw-justify-center tw-py-1", t), ...e, - children: /* @__PURE__ */ i(Jr, { className: "tw-h-4 tw-w-4" }) + children: /* @__PURE__ */ i(fi, { className: "tw-h-4 tw-w-4" }) } )); -Ai.displayName = vt.ScrollUpButton.displayName; -const Mi = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - vt.ScrollDownButton, +Di.displayName = yt.ScrollUpButton.displayName; +const Bi = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + yt.ScrollDownButton, { ref: n, - className: N("tw-flex tw-cursor-default tw-items-center tw-justify-center tw-py-1", t), + className: k("tw-flex tw-cursor-default tw-items-center tw-justify-center tw-py-1", t), ...e, - children: /* @__PURE__ */ i(Ue, { className: "tw-h-4 tw-w-4" }) + children: /* @__PURE__ */ i(On, { className: "tw-h-4 tw-w-4" }) } )); -Mi.displayName = vt.ScrollDownButton.displayName; -const Te = T.forwardRef(({ className: t, children: e, position: n = "popper", ...r }, o) => { - const a = kt(); - return /* @__PURE__ */ i(vt.Portal, { children: /* @__PURE__ */ y( - vt.Content, +Bi.displayName = yt.ScrollDownButton.displayName; +const Oe = T.forwardRef(({ className: t, children: e, position: n = "popper", ...r }, o) => { + const a = St(); + return /* @__PURE__ */ i(yt.Portal, { children: /* @__PURE__ */ y( + yt.Content, { ref: o, - className: N( + className: k( "pr-twp tw-relative tw-z-50 tw-max-h-96 tw-min-w-[8rem] tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-text-popover-foreground tw-shadow-md data-[state=open]:tw-animate-in data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=open]:tw-fade-in-0 data-[state=closed]:tw-zoom-out-95 data-[state=open]:tw-zoom-in-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2", n === "popper" && "data-[side=bottom]:tw-translate-y-1 data-[side=left]:tw--translate-x-1 data-[side=right]:tw-translate-x-1 data-[side=top]:tw--translate-y-1", t @@ -1780,58 +1780,58 @@ const Te = T.forwardRef(({ className: t, children: e, position: n = "popper", .. position: n, ...r, children: [ - /* @__PURE__ */ i(Ai, {}), + /* @__PURE__ */ i(Di, {}), /* @__PURE__ */ i( - vt.Viewport, + yt.Viewport, { - className: N( + className: k( "tw-p-1", n === "popper" && "tw-h-[var(--radix-select-trigger-height)] tw-w-full tw-min-w-[var(--radix-select-trigger-width)]" ), children: /* @__PURE__ */ i("div", { dir: a, children: e }) } ), - /* @__PURE__ */ i(Mi, {}) + /* @__PURE__ */ i(Bi, {}) ] } ) }); }); -Te.displayName = vt.Content.displayName; -const Yc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - vt.Label, +Oe.displayName = yt.Content.displayName; +const Kc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + yt.Label, { ref: n, - className: N("tw-py-1.5 tw-pl-8 tw-pr-2 tw-text-sm tw-font-semibold", t), + className: k("tw-py-1.5 tw-pl-8 tw-pr-2 tw-text-sm tw-font-semibold", t), ...e } )); -Yc.displayName = vt.Label.displayName; -const Vt = T.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ y( - vt.Item, +Kc.displayName = yt.Label.displayName; +const Gt = T.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ y( + yt.Item, { ref: r, - className: N( + className: k( "tw-relative tw-flex tw-w-full tw-cursor-default tw-select-none tw-items-center tw-rounded-sm tw-py-1.5 tw-pe-2 tw-ps-8 tw-text-sm tw-outline-none focus:tw-bg-accent focus:tw-text-accent-foreground data-[disabled]:tw-pointer-events-none data-[disabled]:tw-opacity-50", t ), ...n, children: [ - /* @__PURE__ */ i("span", { className: "tw-absolute tw-start-2 tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center", children: /* @__PURE__ */ i(vt.ItemIndicator, { children: /* @__PURE__ */ i(Rn, { className: "tw-h-4 tw-w-4" }) }) }), - /* @__PURE__ */ i(vt.ItemText, { children: e }) + /* @__PURE__ */ i("span", { className: "tw-absolute tw-start-2 tw-flex tw-h-3.5 tw-w-3.5 tw-items-center tw-justify-center", children: /* @__PURE__ */ i(yt.ItemIndicator, { children: /* @__PURE__ */ i(Cn, { className: "tw-h-4 tw-w-4" }) }) }), + /* @__PURE__ */ i(yt.ItemText, { children: e }) ] } )); -Vt.displayName = vt.Item.displayName; -const Wc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - vt.Separator, +Gt.displayName = yt.Item.displayName; +const Jc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + yt.Separator, { ref: n, - className: N("tw--mx-1 tw-my-1 tw-h-px tw-bg-muted", t), + className: k("tw--mx-1 tw-my-1 tw-h-px tw-bg-muted", t), ...e } )); -Wc.displayName = vt.Separator.displayName; -function qc({ table: t }) { +Jc.displayName = yt.Separator.displayName; +function Zc({ table: t }) { return /* @__PURE__ */ i("div", { className: "tw-flex tw-items-center tw-justify-between tw-px-2 tw-pb-3 tw-pt-3", children: /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center tw-space-x-6 lg:tw-space-x-8", children: [ /* @__PURE__ */ y("div", { className: "tw-flex-1 tw-text-sm tw-text-muted-foreground", children: [ t.getFilteredSelectedRowModel().rows.length, @@ -1843,15 +1843,15 @@ function qc({ table: t }) { /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center tw-space-x-2", children: [ /* @__PURE__ */ i("p", { className: "tw-text-nowrap tw-text-sm tw-font-medium", children: "Rows per page" }), /* @__PURE__ */ y( - Xe, + Ue, { value: `${t.getState().pagination.pageSize}`, onValueChange: (e) => { t.setPageSize(Number(e)); }, children: [ - /* @__PURE__ */ i(Ee, { className: "tw-h-8 tw-w-[70px]", children: /* @__PURE__ */ i(He, { placeholder: t.getState().pagination.pageSize }) }), - /* @__PURE__ */ i(Te, { side: "top", children: [10, 20, 30, 40, 50].map((e) => /* @__PURE__ */ i(Vt, { value: `${e}`, children: e }, e)) }) + /* @__PURE__ */ i(Ce, { className: "tw-h-8 tw-w-[70px]", children: /* @__PURE__ */ i(Ge, { placeholder: t.getState().pagination.pageSize }) }), + /* @__PURE__ */ i(Oe, { side: "top", children: [10, 20, 30, 40, 50].map((e) => /* @__PURE__ */ i(Gt, { value: `${e}`, children: e }, e)) }) ] } ) @@ -1864,7 +1864,7 @@ function qc({ table: t }) { ] }), /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center tw-space-x-2", children: [ /* @__PURE__ */ y( - wt, + mt, { variant: "outline", size: "icon", @@ -1873,12 +1873,12 @@ function qc({ table: t }) { disabled: !t.getCanPreviousPage(), children: [ /* @__PURE__ */ i("span", { className: "tw-sr-only", children: "Go to first page" }), - /* @__PURE__ */ i(wl, { className: "tw-h-4 tw-w-4" }) + /* @__PURE__ */ i(ml, { className: "tw-h-4 tw-w-4" }) ] } ), /* @__PURE__ */ y( - wt, + mt, { variant: "outline", size: "icon", @@ -1887,12 +1887,12 @@ function qc({ table: t }) { disabled: !t.getCanPreviousPage(), children: [ /* @__PURE__ */ i("span", { className: "tw-sr-only", children: "Go to previous page" }), - /* @__PURE__ */ i(fl, { className: "tw-h-4 tw-w-4" }) + /* @__PURE__ */ i(hl, { className: "tw-h-4 tw-w-4" }) ] } ), /* @__PURE__ */ y( - wt, + mt, { variant: "outline", size: "icon", @@ -1901,12 +1901,12 @@ function qc({ table: t }) { disabled: !t.getCanNextPage(), children: [ /* @__PURE__ */ i("span", { className: "tw-sr-only", children: "Go to next page" }), - /* @__PURE__ */ i(ml, { className: "tw-h-4 tw-w-4" }) + /* @__PURE__ */ i(gl, { className: "tw-h-4 tw-w-4" }) ] } ), /* @__PURE__ */ y( - wt, + mt, { variant: "outline", size: "icon", @@ -1915,18 +1915,18 @@ function qc({ table: t }) { disabled: !t.getCanNextPage(), children: [ /* @__PURE__ */ i("span", { className: "tw-sr-only", children: "Go to last page" }), - /* @__PURE__ */ i(hl, { className: "tw-h-4 tw-w-4" }) + /* @__PURE__ */ i(bl, { className: "tw-h-4 tw-w-4" }) ] } ) ] }) ] }) }); } -const In = T.forwardRef(({ className: t, stickyHeader: e, ...n }, r) => /* @__PURE__ */ i("div", { className: N("pr-twp tw-relative tw-w-full", { "tw-overflow-auto": !e }), children: /* @__PURE__ */ i( +const In = T.forwardRef(({ className: t, stickyHeader: e, ...n }, r) => /* @__PURE__ */ i("div", { className: k("pr-twp tw-relative tw-w-full", { "tw-overflow-auto": !e }), children: /* @__PURE__ */ i( "table", { ref: r, - className: N("tw-w-full tw-caption-bottom tw-text-sm", t), + className: k("tw-w-full tw-caption-bottom tw-text-sm", t), ...n } ) })); @@ -1935,7 +1935,7 @@ const An = T.forwardRef(({ className: t, stickyHeader: e, ...n }, r) => /* @__PU "thead", { ref: r, - className: N( + className: k( { "tw-sticky tw-top-[-1px] tw-bg-background tw-drop-shadow-sm": e }, "[&_tr]:tw-border-b", t @@ -1944,23 +1944,23 @@ const An = T.forwardRef(({ className: t, stickyHeader: e, ...n }, r) => /* @__PU } )); An.displayName = "TableHeader"; -const Mn = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i("tbody", { ref: n, className: N("[&_tr:last-child]:tw-border-0", t), ...e })); +const Mn = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i("tbody", { ref: n, className: k("[&_tr:last-child]:tw-border-0", t), ...e })); Mn.displayName = "TableBody"; -const Kc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( +const Qc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( "tfoot", { ref: n, - className: N("tw-border-t tw-bg-muted/50 tw-font-medium [&>tr]:last:tw-border-b-0", t), + className: k("tw-border-t tw-bg-muted/50 tw-font-medium [&>tr]:last:tw-border-b-0", t), ...e } )); -Kc.displayName = "TableFooter"; -const qt = T.forwardRef( +Qc.displayName = "TableFooter"; +const Zt = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "tr", { ref: n, - className: N( + className: k( "tw-border-b tw-transition-colors hover:tw-bg-muted/50 data-[state=selected]:tw-bg-muted", t ), @@ -1968,38 +1968,38 @@ const qt = T.forwardRef( } ) ); -qt.displayName = "TableRow"; -const zt = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( +Zt.displayName = "TableRow"; +const fe = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( "th", { ref: n, - className: N( + className: k( "tw-h-12 tw-px-4 tw-text-start tw-align-middle tw-font-medium tw-text-muted-foreground [&:has([role=checkbox])]:tw-pe-0", t ), ...e } )); -zt.displayName = "TableHead"; -const Mt = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( +fe.displayName = "TableHead"; +const zt = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( "td", { ref: n, - className: N("tw-p-4 tw-align-middle [&:has([role=checkbox])]:tw-pe-0", t), + className: k("tw-p-4 tw-align-middle [&:has([role=checkbox])]:tw-pe-0", t), ...e } )); -Mt.displayName = "TableCell"; -const Jc = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( +zt.displayName = "TableCell"; +const td = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( "caption", { ref: n, - className: N("tw-mt-4 tw-text-sm tw-text-muted-foreground", t), + className: k("tw-mt-4 tw-text-sm tw-text-muted-foreground", t), ...e } )); -Jc.displayName = "TableCaption"; -function Zc({ +td.displayName = "TableCaption"; +function ed({ columns: t, data: e, enablePagination: n = !1, @@ -2010,17 +2010,17 @@ function Zc({ } }) { var h; - const [l, c] = it([]), [d, u] = it([]), [f, w] = it({}), [g, b] = it({}), m = fi({ + const [l, c] = st([]), [d, u] = st([]), [f, w] = st({}), [g, v] = st({}), m = hi({ data: e, columns: t, - getCoreRowModel: mi(), - ...n && { getPaginationRowModel: Ul() }, + getCoreRowModel: gi(), + ...n && { getPaginationRowModel: Hl() }, onSortingChange: c, - getSortedRowModel: hi(), + getSortedRowModel: bi(), onColumnFiltersChange: u, - getFilteredRowModel: Gl(), + getFilteredRowModel: Yl(), onColumnVisibilityChange: w, - onRowSelectionChange: b, + onRowSelectionChange: v, state: { sorting: l, columnFilters: d, @@ -2029,22 +2029,22 @@ function Zc({ } }); return /* @__PURE__ */ y("div", { className: "pr-twp", children: [ - o && /* @__PURE__ */ i(Xc, { table: m }), + o && /* @__PURE__ */ i(Wc, { table: m }), /* @__PURE__ */ y(In, { stickyHeader: a, children: [ - /* @__PURE__ */ i(An, { stickyHeader: a, children: m.getHeaderGroups().map((k) => /* @__PURE__ */ i(qt, { children: k.headers.map((P) => /* @__PURE__ */ i(zt, { children: P.isPlaceholder ? void 0 : gn(P.column.columnDef.header, P.getContext()) }, P.id)) }, k.id)) }), - /* @__PURE__ */ i(Mn, { children: (h = m.getRowModel().rows) != null && h.length ? m.getRowModel().rows.map((k) => /* @__PURE__ */ i( - qt, + /* @__PURE__ */ i(An, { stickyHeader: a, children: m.getHeaderGroups().map((N) => /* @__PURE__ */ i(Zt, { children: N.headers.map((S) => /* @__PURE__ */ i(fe, { children: S.isPlaceholder ? void 0 : hn(S.column.columnDef.header, S.getContext()) }, S.id)) }, N.id)) }), + /* @__PURE__ */ i(Mn, { children: (h = m.getRowModel().rows) != null && h.length ? m.getRowModel().rows.map((N) => /* @__PURE__ */ i( + Zt, { - onClick: () => s(k, m), - "data-state": k.getIsSelected() && "selected", - children: k.getVisibleCells().map((P) => /* @__PURE__ */ i(Mt, { children: gn(P.column.columnDef.cell, P.getContext()) }, P.id)) + onClick: () => s(N, m), + "data-state": N.getIsSelected() && "selected", + children: N.getVisibleCells().map((S) => /* @__PURE__ */ i(zt, { children: hn(S.column.columnDef.cell, S.getContext()) }, S.id)) }, - k.id - )) : /* @__PURE__ */ i(qt, { children: /* @__PURE__ */ i(Mt, { colSpan: t.length, className: "tw-h-24 tw-text-center", children: "No results." }) }) }) + N.id + )) : /* @__PURE__ */ i(Zt, { children: /* @__PURE__ */ i(zt, { colSpan: t.length, className: "tw-h-24 tw-text-center", children: "No results." }) }) }) ] }), n && /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center tw-justify-end tw-space-x-2 tw-py-4", children: [ /* @__PURE__ */ i( - wt, + mt, { variant: "outline", size: "sm", @@ -2054,7 +2054,7 @@ function Zc({ } ), /* @__PURE__ */ i( - wt, + mt, { variant: "outline", size: "sm", @@ -2064,67 +2064,67 @@ function Zc({ } ) ] }), - n && r && /* @__PURE__ */ i(qc, { table: m }) + n && r && /* @__PURE__ */ i(Zc, { table: m }) ] }); } -function Qc({ +function nd({ occurrenceData: t, setScriptureReference: e, localizedStrings: n }) { - const r = n["%webView_inventory_occurrences_table_header_reference%"], o = n["%webView_inventory_occurrences_table_header_occurrence%"], a = Nt(() => { + const r = n["%webView_inventory_occurrences_table_header_reference%"], o = n["%webView_inventory_occurrences_table_header_occurrence%"], a = Tt(() => { const s = []; return t.forEach((l) => { - s.some((c) => go(c, l)) || s.push(l); + s.some((c) => fo(c, l)) || s.push(l); }), s; }, [t]); return /* @__PURE__ */ y(In, { stickyHeader: !0, children: [ - /* @__PURE__ */ i(An, { stickyHeader: !0, children: /* @__PURE__ */ y(qt, { children: [ - /* @__PURE__ */ i(zt, { children: r }), - /* @__PURE__ */ i(zt, { children: o }) + /* @__PURE__ */ i(An, { stickyHeader: !0, children: /* @__PURE__ */ y(Zt, { children: [ + /* @__PURE__ */ i(fe, { children: r }), + /* @__PURE__ */ i(fe, { children: o }) ] }) }), /* @__PURE__ */ i(Mn, { children: a.length > 0 && a.map((s) => /* @__PURE__ */ y( - qt, + Zt, { onClick: () => { e(s.reference); }, children: [ - /* @__PURE__ */ i(Mt, { children: `${st.bookNumberToEnglishName(s.reference.bookNum)} ${s.reference.chapterNum}:${s.reference.verseNum}` }), - /* @__PURE__ */ i(Mt, { children: s.text }) + /* @__PURE__ */ i(zt, { children: `${ct.bookNumberToEnglishName(s.reference.bookNum)} ${s.reference.chapterNum}:${s.reference.verseNum}` }), + /* @__PURE__ */ i(zt, { children: s.text }) ] }, `${s.reference.bookNum} ${s.reference.chapterNum}:${s.reference.verseNum}-${s.text}` )) }) ] }); } -const Co = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Qr.Root, +const So = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Wr.Root, { ref: n, - className: N( + className: k( "tw-peer pr-twp tw-h-4 tw-w-4 tw-shrink-0 tw-rounded-sm tw-border tw-border-primary tw-ring-offset-background focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-cursor-not-allowed disabled:tw-opacity-50 data-[state=checked]:tw-bg-primary data-[state=checked]:tw-text-primary-foreground", t ), ...e, children: /* @__PURE__ */ i( - Qr.Indicator, + Wr.Indicator, { - className: N("tw-flex tw-items-center tw-justify-center tw-text-current"), - children: /* @__PURE__ */ i(Rn, { className: "tw-h-4 tw-w-4" }) + className: k("tw-flex tw-items-center tw-justify-center tw-text-current"), + children: /* @__PURE__ */ i(Cn, { className: "tw-h-4 tw-w-4" }) } ) } )); -Co.displayName = Qr.Root.displayName; -const td = (t) => t.split(/(?:\r?\n|\r)|(?=(?:\\(?:v|c|id)))/g), ha = (t) => { +So.displayName = Wr.Root.displayName; +const rd = (t) => t.split(/(?:\r?\n|\r)|(?=(?:\\(?:v|c|id)))/g), ha = (t) => { const e = /^\\[vc]\s+(\d+)/, n = t.match(e); if (n) return +n[1]; -}, ed = (t) => { +}, od = (t) => { const e = t.match(/^\\id\s+([A-Za-z]+)/); - return e ? st.bookIdToNumber(e[1]) : 0; -}, nd = (t, e, n) => n.includes(t) ? "unapproved" : e.includes(t) ? "approved" : "unknown", Di = tn( + return e ? ct.bookIdToNumber(e[1]) : 0; +}, ad = (t, e, n) => n.includes(t) ? "unapproved" : e.includes(t) ? "approved" : "unknown", ji = Ze( "pr-twp tw-inline-flex tw-items-center tw-justify-center tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors hover:tw-bg-muted hover:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=on]:tw-bg-accent data-[state=on]:tw-text-accent-foreground", { variants: { @@ -2143,29 +2143,29 @@ const td = (t) => t.split(/(?:\r?\n|\r)|(?=(?:\\(?:v|c|id)))/g), ha = (t) => { size: "default" } } -), rd = T.forwardRef(({ className: t, variant: e, size: n, ...r }, o) => /* @__PURE__ */ i( - gi.Root, +), id = T.forwardRef(({ className: t, variant: e, size: n, ...r }, o) => /* @__PURE__ */ i( + vi.Root, { ref: o, - className: N(Di({ variant: e, size: n, className: t })), + className: k(ji({ variant: e, size: n, className: t })), ...r } )); -rd.displayName = gi.Root.displayName; -const Bi = T.createContext({ +id.displayName = vi.Root.displayName; +const Vi = T.createContext({ size: "default", variant: "default" -}), ji = T.forwardRef(({ className: t, variant: e, size: n, children: r, ...o }, a) => { - const s = kt(); +}), zi = T.forwardRef(({ className: t, variant: e, size: n, children: r, ...o }, a) => { + const s = St(); return /* @__PURE__ */ i( - wr.Root, + cr.Root, { ref: a, - className: N("pr-twp tw-flex tw-items-center tw-justify-center tw-gap-1", t), + className: k("pr-twp tw-flex tw-items-center tw-justify-center tw-gap-1", t), ...o, dir: s, children: /* @__PURE__ */ i( - Bi.Provider, + Vi.Provider, { value: { variant: e, size: n }, children: r @@ -2174,15 +2174,15 @@ const Bi = T.createContext({ } ); }); -ji.displayName = wr.Root.displayName; -const Zn = T.forwardRef(({ className: t, children: e, variant: n, size: r, ...o }, a) => { - const s = T.useContext(Bi); +zi.displayName = cr.Root.displayName; +const Jn = T.forwardRef(({ className: t, children: e, variant: n, size: r, ...o }, a) => { + const s = T.useContext(Vi); return /* @__PURE__ */ i( - wr.Item, + cr.Item, { ref: a, - className: N( - Di({ + className: k( + ji({ variant: s.variant || n, size: s.size || r }), @@ -2193,29 +2193,29 @@ const Zn = T.forwardRef(({ className: t, children: e, variant: n, size: r, ...o } ); }); -Zn.displayName = wr.Item.displayName; -const mr = (t) => t === "asc" ? /* @__PURE__ */ i(yl, { className: "tw-ms-2 tw-h-4 tw-w-4" }) : t === "desc" ? /* @__PURE__ */ i(xl, { className: "tw-ms-2 tw-h-4 tw-w-4" }) : /* @__PURE__ */ i(Nl, { className: "tw-ms-2 tw-h-4 tw-w-4" }), yh = (t) => ({ +Jn.displayName = cr.Item.displayName; +const ur = (t) => t === "asc" ? /* @__PURE__ */ i(Nl, { className: "tw-ms-2 tw-h-4 tw-w-4" }) : t === "desc" ? /* @__PURE__ */ i(kl, { className: "tw-ms-2 tw-h-4 tw-w-4" }) : /* @__PURE__ */ i(El, { className: "tw-ms-2 tw-h-4 tw-w-4" }), Eh = (t) => ({ accessorKey: "item", accessorFn: (e) => e.items[0], - header: ({ column: e }) => /* @__PURE__ */ y(wt, { variant: "ghost", onClick: () => e.toggleSorting(void 0), children: [ + header: ({ column: e }) => /* @__PURE__ */ y(mt, { variant: "ghost", onClick: () => e.toggleSorting(void 0), children: [ t, - mr(e.getIsSorted()) + ur(e.getIsSorted()) ] }) -}), od = (t, e) => ({ +}), sd = (t, e) => ({ accessorKey: `item${e}`, accessorFn: (n) => n.items[e], - header: ({ column: n }) => /* @__PURE__ */ y(wt, { variant: "ghost", onClick: () => n.toggleSorting(void 0), children: [ + header: ({ column: n }) => /* @__PURE__ */ y(mt, { variant: "ghost", onClick: () => n.toggleSorting(void 0), children: [ t, - mr(n.getIsSorted()) + ur(n.getIsSorted()) ] }) -}), xh = (t) => ({ +}), Th = (t) => ({ accessorKey: "count", - header: ({ column: e }) => /* @__PURE__ */ i("div", { className: "tw-flex tw-justify-end tw-tabular-nums", children: /* @__PURE__ */ y(wt, { variant: "ghost", onClick: () => e.toggleSorting(void 0), children: [ + header: ({ column: e }) => /* @__PURE__ */ i("div", { className: "tw-flex tw-justify-end tw-tabular-nums", children: /* @__PURE__ */ y(mt, { variant: "ghost", onClick: () => e.toggleSorting(void 0), children: [ t, - mr(e.getIsSorted()) + ur(e.getIsSorted()) ] }) }), cell: ({ row: e }) => /* @__PURE__ */ i("div", { className: "tw-flex tw-justify-end", children: e.getValue("count") }) -}), jr = (t, e, n, r, o, a) => { +}), Ar = (t, e, n, r, o, a) => { let s = [...n]; t.forEach((c) => { e === "approved" ? s.includes(c) || s.push(c) : s = s.filter((d) => d !== c); @@ -2224,19 +2224,19 @@ const mr = (t) => t === "asc" ? /* @__PURE__ */ i(yl, { className: "tw-ms-2 tw-h t.forEach((c) => { e === "unapproved" ? l.includes(c) || l.push(c) : l = l.filter((d) => d !== c); }), a(l); -}, Nh = (t, e, n, r, o) => ({ +}, Sh = (t, e, n, r, o) => ({ accessorKey: "status", - header: ({ column: a }) => /* @__PURE__ */ i("div", { className: "tw-flex tw-justify-center", children: /* @__PURE__ */ y(wt, { variant: "ghost", onClick: () => a.toggleSorting(void 0), children: [ + header: ({ column: a }) => /* @__PURE__ */ i("div", { className: "tw-flex tw-justify-center", children: /* @__PURE__ */ y(mt, { variant: "ghost", onClick: () => a.toggleSorting(void 0), children: [ t, - mr(a.getIsSorted()) + ur(a.getIsSorted()) ] }) }), cell: ({ row: a }) => { const s = a.getValue("status"), l = a.getValue("item"); - return /* @__PURE__ */ y(ji, { value: s, variant: "outline", type: "single", children: [ + return /* @__PURE__ */ y(zi, { value: s, variant: "outline", type: "single", children: [ /* @__PURE__ */ i( - Zn, + Jn, { - onClick: () => jr( + onClick: () => Ar( [l], "approved", e, @@ -2245,13 +2245,13 @@ const mr = (t) => t === "asc" ? /* @__PURE__ */ i(yl, { className: "tw-ms-2 tw-h o ), value: "approved", - children: /* @__PURE__ */ i(gl, {}) + children: /* @__PURE__ */ i(vl, {}) } ), /* @__PURE__ */ i( - Zn, + Jn, { - onClick: () => jr( + onClick: () => Ar( [l], "unapproved", e, @@ -2260,13 +2260,13 @@ const mr = (t) => t === "asc" ? /* @__PURE__ */ i(yl, { className: "tw-ms-2 tw-h o ), value: "unapproved", - children: /* @__PURE__ */ i(bl, {}) + children: /* @__PURE__ */ i(yl, {}) } ), /* @__PURE__ */ i( - Zn, + Jn, { - onClick: () => jr( + onClick: () => Ar( [l], "unknown", e, @@ -2275,12 +2275,12 @@ const mr = (t) => t === "asc" ? /* @__PURE__ */ i(yl, { className: "tw-ms-2 tw-h o ), value: "unknown", - children: /* @__PURE__ */ i(vl, {}) + children: /* @__PURE__ */ i(xl, {}) } ) ] }); } -}), kh = Object.freeze([ +}), Ch = Object.freeze([ "%webView_inventory_all%", "%webView_inventory_approved%", "%webView_inventory_unapproved%", @@ -2292,37 +2292,37 @@ const mr = (t) => t === "asc" ? /* @__PURE__ */ i(yl, { className: "tw-ms-2 tw-h "%webView_inventory_show_additional_items%", "%webView_inventory_occurrences_table_header_reference%", "%webView_inventory_occurrences_table_header_occurrence%" -]), ad = (t, e, n) => { +]), ld = (t, e, n) => { let r = t; return e !== "all" && (r = r.filter( (o) => e === "approved" && o.status === "approved" || e === "unapproved" && o.status === "unapproved" || e === "unknown" && o.status === "unknown" )), n !== "" && (r = r.filter((o) => o.items[0].includes(n))), r; -}, id = (t, e, n, r, o) => { +}, cd = (t, e, n, r, o) => { if (!t) return []; const a = []; let s = e.bookNum, l = e.chapterNum, c = e.verseNum; - return td(t).forEach((u) => { - u.startsWith("\\id") && (s = ed(u), l = 0, c = 0), u.startsWith("\\c") && (l = ha(u), c = 0), u.startsWith("\\v") && (c = ha(u), l === 0 && (l = e.chapterNum)); + return rd(t).forEach((u) => { + u.startsWith("\\id") && (s = od(u), l = 0, c = 0), u.startsWith("\\c") && (l = ha(u), c = 0), u.startsWith("\\v") && (c = ha(u), l === 0 && (l = e.chapterNum)); let f = o.exec(u) ?? void 0; for (; f; ) { const w = []; f.forEach((h) => w.push(h)); - const g = f.index, b = a.find((h) => go(h.items, w)), m = { + const g = f.index, v = a.find((h) => fo(h.items, w)), m = { reference: { bookNum: s !== void 0 ? s : -1, chapterNum: l !== void 0 ? l : -1, verseNum: c !== void 0 ? c : -1 }, - text: Vl(u, Math.max(0, g - 25), Math.min(g + 25, u.length)) + text: Fl(u, Math.max(0, g - 25), Math.min(g + 25, u.length)) }; - if (b) - b.count += 1, b.occurrences.push(m); + if (v) + v.count += 1, v.occurrences.push(m); else { const h = { items: w, count: 1, - status: nd(w[0], n, r), + status: ad(w[0], n, r), occurrences: [m] }; a.push(h); @@ -2330,8 +2330,8 @@ const mr = (t) => t === "asc" ? /* @__PURE__ */ i(yl, { className: "tw-ms-2 tw-h f = o.exec(u) ?? void 0; } }), a; -}, ne = (t, e) => t[e] ?? e; -function Eh({ +}, ie = (t, e) => t[e] ?? e; +function Oh({ scriptureReference: t, setScriptureReference: e, localizedStrings: n, @@ -2344,147 +2344,147 @@ function Eh({ onScopeChange: d, columns: u }) { - const f = ne(n, "%webView_inventory_all%"), w = ne(n, "%webView_inventory_approved%"), g = ne(n, "%webView_inventory_unapproved%"), b = ne(n, "%webView_inventory_unknown%"), m = ne(n, "%webView_inventory_scope_currentBook%"), h = ne(n, "%webView_inventory_scope_chapter%"), k = ne(n, "%webView_inventory_scope_verse%"), P = ne(n, "%webView_inventory_filter_text%"), C = ne( + const f = ie(n, "%webView_inventory_all%"), w = ie(n, "%webView_inventory_approved%"), g = ie(n, "%webView_inventory_unapproved%"), v = ie(n, "%webView_inventory_unknown%"), m = ie(n, "%webView_inventory_scope_currentBook%"), h = ie(n, "%webView_inventory_scope_chapter%"), N = ie(n, "%webView_inventory_scope_verse%"), S = ie(n, "%webView_inventory_filter_text%"), C = ie( n, "%webView_inventory_show_additional_items%" - ), [E, v] = it(!1), [$, X] = it("all"), [_, I] = it(""), [U, B] = it([]), M = Nt(() => l ? r instanceof RegExp ? id( + ), [E, b] = st(!1), [P, L] = st("all"), [_, $] = st(""), [F, D] = st([]), A = Tt(() => l ? r instanceof RegExp ? cd( l, t, a, s, r - ) : r(l, t, a, s) : [], [l, r, t, a, s]), D = Nt(() => { + ) : r(l, t, a, s) : [], [l, r, t, a, s]), M = Tt(() => { if (E) - return M; + return A; const x = []; - return M.forEach((R) => { - const W = R.items[0], Y = x.find( - (G) => G.items[0] === W + return A.forEach((O) => { + const G = O.items[0], X = x.find( + (z) => z.items[0] === G ); - Y ? (Y.count += R.count, Y.occurrences = Y.occurrences.concat(R.occurrences)) : x.push({ - items: [W], - count: R.count, - occurrences: R.occurrences, - status: R.status + X ? (X.count += O.count, X.occurrences = X.occurrences.concat(O.occurrences)) : x.push({ + items: [G], + count: O.count, + occurrences: O.occurrences, + status: O.status }); }), x; - }, [E, M]), K = Nt(() => ad(D, $, _), [D, $, _]), H = Nt(() => { - var W, Y; + }, [E, A]), Y = Tt(() => ld(M, P, _), [M, P, _]), U = Tt(() => { + var G, X; if (!E) return u; - const x = (W = o == null ? void 0 : o.tableHeaders) == null ? void 0 : W.length; + const x = (G = o == null ? void 0 : o.tableHeaders) == null ? void 0 : G.length; if (!x) return u; - const R = []; - for (let G = 0; G < x; G++) - R.push( - od( - ((Y = o == null ? void 0 : o.tableHeaders) == null ? void 0 : Y[G]) || "Additional Item", - G + 1 + const O = []; + for (let z = 0; z < x; z++) + O.push( + sd( + ((X = o == null ? void 0 : o.tableHeaders) == null ? void 0 : X[z]) || "Additional Item", + z + 1 ) ); - return [...R, ...u]; + return [...O, ...u]; }, [o == null ? void 0 : o.tableHeaders, u, E]); - Jt(() => { - B([]); - }, [K]); - const z = (x, R) => { - R.setRowSelection(() => { - const W = {}; - return W[x.index] = !0, W; - }), B(x.original.items); + te(() => { + D([]); + }, [Y]); + const V = (x, O) => { + O.setRowSelection(() => { + const G = {}; + return G[x.index] = !0, G; + }), D(x.original.items); }, tt = (x) => { if (x === "book" || x === "chapter" || x === "verse") d(x); else throw new Error(`Invalid scope value: ${x}`); - }, rt = (x) => { + }, ot = (x) => { if (x === "all" || x === "approved" || x === "unapproved" || x === "unknown") - X(x); + L(x); else throw new Error(`Invalid status filter value: ${x}`); - }, ot = Nt(() => { - if (D.length === 0 || U.length === 0) + }, at = Tt(() => { + if (M.length === 0 || F.length === 0) return []; - const x = D.filter((R) => go( - E ? R.items : [R.items[0]], - U + const x = M.filter((O) => fo( + E ? O.items : [O.items[0]], + F )); if (x.length > 1) throw new Error("Selected item is not unique"); return x[0].occurrences; - }, [U, E, D]); + }, [F, E, M]); return /* @__PURE__ */ y("div", { className: "pr-twp tw-flex tw-h-full tw-flex-col", children: [ /* @__PURE__ */ y("div", { className: "tw-flex tw-items-stretch", children: [ /* @__PURE__ */ y( - Xe, + Ue, { - onValueChange: (x) => rt(x), - defaultValue: $, + onValueChange: (x) => ot(x), + defaultValue: P, children: [ - /* @__PURE__ */ i(Ee, { className: "tw-m-1", children: /* @__PURE__ */ i(He, { placeholder: "Select filter" }) }), - /* @__PURE__ */ y(Te, { children: [ - /* @__PURE__ */ i(Vt, { value: "all", children: f }), - /* @__PURE__ */ i(Vt, { value: "approved", children: w }), - /* @__PURE__ */ i(Vt, { value: "unapproved", children: g }), - /* @__PURE__ */ i(Vt, { value: "unknown", children: b }) + /* @__PURE__ */ i(Ce, { className: "tw-m-1", children: /* @__PURE__ */ i(Ge, { placeholder: "Select filter" }) }), + /* @__PURE__ */ y(Oe, { children: [ + /* @__PURE__ */ i(Gt, { value: "all", children: f }), + /* @__PURE__ */ i(Gt, { value: "approved", children: w }), + /* @__PURE__ */ i(Gt, { value: "unapproved", children: g }), + /* @__PURE__ */ i(Gt, { value: "unknown", children: v }) ] }) ] } ), - /* @__PURE__ */ y(Xe, { onValueChange: (x) => tt(x), defaultValue: c, children: [ - /* @__PURE__ */ i(Ee, { className: "tw-m-1", children: /* @__PURE__ */ i(He, { placeholder: "Select scope" }) }), - /* @__PURE__ */ y(Te, { children: [ - /* @__PURE__ */ i(Vt, { value: "book", children: m }), - /* @__PURE__ */ i(Vt, { value: "chapter", children: h }), - /* @__PURE__ */ i(Vt, { value: "verse", children: k }) + /* @__PURE__ */ y(Ue, { onValueChange: (x) => tt(x), defaultValue: c, children: [ + /* @__PURE__ */ i(Ce, { className: "tw-m-1", children: /* @__PURE__ */ i(Ge, { placeholder: "Select scope" }) }), + /* @__PURE__ */ y(Oe, { children: [ + /* @__PURE__ */ i(Gt, { value: "book", children: m }), + /* @__PURE__ */ i(Gt, { value: "chapter", children: h }), + /* @__PURE__ */ i(Gt, { value: "verse", children: N }) ] }) ] }), /* @__PURE__ */ i( - Re, + Qe, { className: "tw-m-1 tw-rounded-md tw-border", - placeholder: P, + placeholder: S, value: _, onChange: (x) => { - I(x.target.value); + $(x.target.value); } } ), o && /* @__PURE__ */ y("div", { className: "tw-m-1 tw-flex tw-items-center tw-rounded-md tw-border", children: [ /* @__PURE__ */ i( - Co, + So, { className: "tw-m-1", checked: E, onCheckedChange: (x) => { - B([]), v(x); + D([]), b(x); } } ), - /* @__PURE__ */ i(St, { className: "tw-m-1 tw-flex-shrink-0 tw-whitespace-nowrap", children: (o == null ? void 0 : o.checkboxText) ?? C }) + /* @__PURE__ */ i(Ct, { className: "tw-m-1 tw-flex-shrink-0 tw-whitespace-nowrap", children: (o == null ? void 0 : o.checkboxText) ?? C }) ] }) ] }), /* @__PURE__ */ i("div", { className: "tw-m-1 tw-flex-1 tw-overflow-auto tw-rounded-md tw-border", children: /* @__PURE__ */ i( - Zc, + ed, { - columns: H, - data: K, - onRowClickHandler: z, + columns: U, + data: Y, + onRowClickHandler: V, stickyHeader: !0 } ) }), - ot.length > 0 && /* @__PURE__ */ i("div", { className: "tw-m-1 tw-flex-1 tw-overflow-auto tw-rounded-md tw-border", children: /* @__PURE__ */ i( - Qc, + at.length > 0 && /* @__PURE__ */ i("div", { className: "tw-m-1 tw-flex-1 tw-overflow-auto tw-rounded-md tw-border", children: /* @__PURE__ */ i( + nd, { - occurrenceData: ot, + occurrenceData: at, setScriptureReference: e, localizedStrings: n } ) }) ] }); } -function Th({ +function dd({ entries: t, getEntriesCount: e = void 0, selected: n, @@ -2493,35 +2493,35 @@ function Th({ commandEmptyMessage: a = "No entries found", customSelectedText: s, sortSelected: l = !1, - icon: c = void 0 + icon: c = void 0, + className: d = void 0 }) { - const [d, u] = it(!1), f = Tt( - (b) => { - r( - n.includes(b) ? n.filter((m) => m !== b) : [...n, b] + const [u, f] = st(!1), w = Pt( + (m) => { + var N; + const h = (N = t.find((S) => S.label === m)) == null ? void 0 : N.value; + h && r( + n.includes(h) ? n.filter((S) => S !== h) : [...n, h] ); }, - [n, r] - ), w = () => { - var b; - return n.length === 1 ? ((b = t.find((m) => m.value === n[0])) == null ? void 0 : b.label) ?? o : s || o; - }, g = Nt(() => { + [t, n, r] + ), g = () => s || o, v = Tt(() => { if (!l) return t; - const b = t.filter((h) => h.starred).sort((h, k) => h.label.localeCompare(k.label)), m = t.filter((h) => !h.starred).sort((h, k) => { - const P = n.includes(h.value), C = n.includes(k.value); - return P && !C ? -1 : !P && C ? 1 : h.label.localeCompare(k.label); + const m = t.filter((N) => N.starred).sort((N, S) => N.label.localeCompare(S.label)), h = t.filter((N) => !N.starred).sort((N, S) => { + const C = n.includes(N.value), E = n.includes(S.value); + return C && !E ? -1 : !C && E ? 1 : N.label.localeCompare(S.label); }); - return [...b, ...m]; + return [...m, ...h]; }, [t, n, l]); - return /* @__PURE__ */ y(_i, { open: d, onOpenChange: u, children: [ - /* @__PURE__ */ i(Pi, { asChild: !0, children: /* @__PURE__ */ y( - wt, + return /* @__PURE__ */ i("div", { className: d, children: /* @__PURE__ */ y($i, { open: u, onOpenChange: f, children: [ + /* @__PURE__ */ i(Ii, { asChild: !0, children: /* @__PURE__ */ y( + mt, { - variant: "outline", + variant: "ghost", role: "combobox", - "aria-expanded": d, - className: N( + "aria-expanded": u, + className: k( "tw-w-full tw-justify-between", n.length > 0 && n.length < t.length && "tw-border-primary", "tw-group" @@ -2532,65 +2532,65 @@ function Th({ /* @__PURE__ */ i( "div", { - className: N({ + className: k({ "tw-text-muted-foreground group-hover:tw-text-secondary-foreground": n.length === 0 || n.length === t.length }), - children: w() + children: /* @__PURE__ */ i("div", { className: "tw-font-normal", children: g() }) } ) ] }), - /* @__PURE__ */ i(nr, { className: "tw-ml-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50" }) + /* @__PURE__ */ i(wo, { className: "tw-ml-2 tw-h-4 tw-w-4 tw-shrink-0 tw-opacity-50" }) ] } ) }), - /* @__PURE__ */ i(xo, { align: "start", className: "tw-w-full tw-p-0", children: /* @__PURE__ */ y(No, { children: [ - /* @__PURE__ */ i(ko, { placeholder: `Search ${o.toLowerCase()}...` }), - /* @__PURE__ */ y(Eo, { children: [ - /* @__PURE__ */ i(To, { children: a }), - /* @__PURE__ */ i(Ii, { children: g.map((b) => { - const m = e ? e(b) : void 0; + /* @__PURE__ */ i(yo, { align: "start", className: "tw-w-full tw-p-0", children: /* @__PURE__ */ y(xo, { children: [ + /* @__PURE__ */ i(No, { placeholder: `Search ${o.toLowerCase()}...` }), + /* @__PURE__ */ y(ko, { children: [ + /* @__PURE__ */ i(Eo, { children: a }), + /* @__PURE__ */ i(Mi, { children: v.map((m) => { + const h = e ? e(m) : void 0; return /* @__PURE__ */ y( - So, + To, { - value: b.value, - onSelect: f, + value: m.label, + onSelect: w, className: "tw-flex tw-items-center tw-gap-2", children: [ /* @__PURE__ */ i("div", { className: "w-4", children: /* @__PURE__ */ i( - Rn, + Cn, { - className: N( + className: k( "tw-h-4 tw-w-4", - n.includes(b.value) ? "tw-opacity-100" : "tw-opacity-0" + n.includes(m.value) ? "tw-opacity-100" : "tw-opacity-0" ) } ) }), - /* @__PURE__ */ i("div", { className: "tw-w-4", children: b.starred && /* @__PURE__ */ i(kl, { className: "tw-h-4 tw-w-4" }) }), - /* @__PURE__ */ i("div", { className: "tw-flex-grow", children: b.label }), - e && /* @__PURE__ */ i("div", { className: "tw-w-10 tw-text-end tw-text-muted-foreground", children: m }) + /* @__PURE__ */ i("div", { className: "tw-w-4", children: m.starred && /* @__PURE__ */ i(Tl, { className: "tw-h-4 tw-w-4" }) }), + /* @__PURE__ */ i("div", { className: "tw-flex-grow", children: m.label }), + e && /* @__PURE__ */ i("div", { className: "tw-w-10 tw-text-end tw-text-muted-foreground", children: h }) ] }, - b.value + m.label ); }) }) ] }) ] }) }) - ] }); + ] }) }); } -function Vi({ +function Co({ onSearch: t, placeholder: e, isFullWidth: n, className: r }) { - const [o, a] = it(""), s = (c) => { + const [o, a] = st(""), s = (c) => { a(c), t(c); - }, l = kt(); - return /* @__PURE__ */ y("div", { className: N("tw-relative", { "tw-w-full": n }, r), children: [ + }, l = St(); + return /* @__PURE__ */ y("div", { className: k("tw-relative", { "tw-w-full": n }, r), children: [ /* @__PURE__ */ i( - ho, + wi, { - className: N( + className: k( "tw-absolute tw-top-1/2 tw-h-4 tw-w-4 tw--translate-y-1/2 tw-transform tw-opacity-50", { "tw-right-3": l === "rtl" }, { "tw-left-3": l === "ltr" } @@ -2598,7 +2598,7 @@ function Vi({ } ), /* @__PURE__ */ i( - Re, + Qe, { className: "tw-w-full tw-text-ellipsis tw-pe-9 tw-ps-9", placeholder: e, @@ -2607,11 +2607,11 @@ function Vi({ } ), o && /* @__PURE__ */ y( - wt, + mt, { variant: "ghost", size: "icon", - className: N( + className: k( "tw-absolute tw-top-1/2 tw-h-7 tw--translate-y-1/2 tw-transform hover:tw-bg-transparent", { "tw-left-0": l === "rtl" }, { "tw-right-0": l === "ltr" } @@ -2620,54 +2620,54 @@ function Vi({ s(""); }, children: [ - /* @__PURE__ */ i(pi, { className: "tw-h-4 tw-w-4" }), + /* @__PURE__ */ i(po, { className: "tw-h-4 tw-w-4" }), /* @__PURE__ */ i("span", { className: "tw-sr-only", children: "Clear" }) ] } ) ] }); } -const zi = T.forwardRef(({ className: t, ...e }, n) => { - const r = kt(); +const Li = T.forwardRef(({ className: t, ...e }, n) => { + const r = St(); return /* @__PURE__ */ i( - $t.Root, + Bt.Root, { orientation: "vertical", ref: n, - className: N("tw-flex tw-gap-1 tw-rounded-md tw-text-muted-foreground", t), + className: k("tw-flex tw-gap-1 tw-rounded-md tw-text-muted-foreground", t), ...e, dir: r } ); }); -zi.displayName = $t.List.displayName; -const Li = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - $t.List, +Li.displayName = Bt.List.displayName; +const Fi = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Bt.List, { ref: n, - className: N( + className: k( "tw-flex-fit tw-mlk-items-center tw-w-[124px] tw-justify-center tw-rounded-md tw-bg-muted tw-p-1 tw-text-muted-foreground", t ), ...e } )); -Li.displayName = $t.List.displayName; -const sd = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - $t.Trigger, +Fi.displayName = Bt.List.displayName; +const ud = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Bt.Trigger, { ref: n, ...e, - className: N( + className: k( "overflow-clip tw-inline-flex tw-w-[116px] tw-cursor-pointer tw-items-center tw-justify-center tw-break-words tw-rounded-sm tw-border-0 tw-bg-muted tw-px-3 tw-py-1.5 tw-text-sm tw-font-medium tw-text-inherit tw-ring-offset-background tw-transition-all hover:tw-text-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=active]:tw-bg-background data-[state=active]:tw-text-foreground data-[state=active]:tw-shadow-sm", t ) } -)), Fi = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - $t.Content, +)), Ui = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Bt.Content, { ref: n, - className: N( + className: k( // Removed tw-mt-2 because Sebastian said so "tw-ms-5 tw-flex-grow tw-text-foreground tw-ring-offset-background focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2", t @@ -2675,8 +2675,8 @@ const sd = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( ...e } )); -Fi.displayName = $t.Content.displayName; -function Sh({ +Ui.displayName = Bt.Content.displayName; +function Rh({ tabList: t, onSearch: e, searchPlaceholder: n, @@ -2687,7 +2687,7 @@ function Sh({ /* @__PURE__ */ y("div", { className: "tw-sticky tw-top-0 tw-space-y-2 tw-pb-2", children: [ r ? /* @__PURE__ */ i("h1", { children: r }) : "", /* @__PURE__ */ i( - Vi, + Co, { className: o, onSearch: e, @@ -2695,19 +2695,19 @@ function Sh({ } ) ] }), - /* @__PURE__ */ y(zi, { children: [ - /* @__PURE__ */ i(Li, { children: t.map((a) => /* @__PURE__ */ i(sd, { value: a.value, children: a.value }, a.key)) }), - t.map((a) => /* @__PURE__ */ i(Fi, { value: a.value, children: a.content }, a.key)) + /* @__PURE__ */ y(Li, { children: [ + /* @__PURE__ */ i(Fi, { children: t.map((a) => /* @__PURE__ */ i(ud, { value: a.value, children: a.value }, a.key)) }), + t.map((a) => /* @__PURE__ */ i(Ui, { value: a.value, children: a.content }, a.key)) ] }) ] }); } const Oo = T.forwardRef(({ className: t, orientation: e = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ i( - bi.Root, + yi.Root, { ref: o, decorative: n, orientation: e, - className: N( + className: k( "pr-twp tw-shrink-0 tw-bg-border", e === "horizontal" ? "tw-h-[1px] tw-w-full" : "tw-h-full tw-w-[1px]", t @@ -2715,37 +2715,37 @@ const Oo = T.forwardRef(({ className: t, orientation: e = "horizontal", decorati ...r } )); -Oo.displayName = bi.Root.displayName; +Oo.displayName = yi.Root.displayName; function ga({ className: t, ...e }) { return /* @__PURE__ */ i( "div", { - className: N("pr-twp tw-animate-pulse tw-rounded-md tw-bg-muted", t), + className: k("pr-twp tw-animate-pulse tw-rounded-md tw-bg-muted", t), ...e } ); } -const ld = _n.Provider, cd = _n.Root, dd = _n.Trigger, Ui = T.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ i( - _n.Content, +const pd = Rn.Provider, wd = Rn.Root, fd = Rn.Trigger, Gi = T.forwardRef(({ className: t, sideOffset: e = 4, ...n }, r) => /* @__PURE__ */ i( + Rn.Content, { ref: r, sideOffset: e, - className: N( + className: k( "pr-twp tw-z-50 tw-overflow-hidden tw-rounded-md tw-border tw-bg-popover tw-px-3 tw-py-1.5 tw-text-sm tw-text-popover-foreground tw-shadow-md tw-animate-in tw-fade-in-0 tw-zoom-in-95 data-[state=closed]:tw-animate-out data-[state=closed]:tw-fade-out-0 data-[state=closed]:tw-zoom-out-95 data-[side=bottom]:tw-slide-in-from-top-2 data-[side=left]:tw-slide-in-from-right-2 data-[side=right]:tw-slide-in-from-left-2 data-[side=top]:tw-slide-in-from-bottom-2", t ), ...n } )); -Ui.displayName = _n.Content.displayName; -const ud = "16rem", pd = "3rem", Gi = T.createContext(void 0); -function hr() { - const t = T.useContext(Gi); +Gi.displayName = Rn.Content.displayName; +const md = "16rem", hd = "3rem", Xi = T.createContext(void 0); +function pr() { + const t = T.useContext(Xi); if (!t) throw new Error("useSidebar must be used within a SidebarProvider."); return t; } -const Xi = T.forwardRef( +const Hi = T.forwardRef( ({ defaultOpen: t = !0, open: e, @@ -2762,28 +2762,28 @@ const Xi = T.forwardRef( n ? n(E) : u(E); }, [n, f] - ), g = T.useCallback(() => w((C) => !C), [w]), b = f ? "expanded" : "collapsed", k = kt() === "ltr" ? s : s === "primary" ? "secondary" : "primary", P = T.useMemo( + ), g = T.useCallback(() => w((C) => !C), [w]), v = f ? "expanded" : "collapsed", N = St() === "ltr" ? s : s === "primary" ? "secondary" : "primary", S = T.useMemo( () => ({ - state: b, + state: v, open: f, setOpen: w, toggleSidebar: g, - side: k + side: N }), - [b, f, w, g, k] + [v, f, w, g, N] ); - return /* @__PURE__ */ i(Gi.Provider, { value: P, children: /* @__PURE__ */ i(ld, { delayDuration: 0, children: /* @__PURE__ */ i( + return /* @__PURE__ */ i(Xi.Provider, { value: S, children: /* @__PURE__ */ i(pd, { delayDuration: 0, children: /* @__PURE__ */ i( "div", { style: ( // eslint-disable-next-line no-type-assertion/no-type-assertion { - "--sidebar-width": ud, - "--sidebar-width-icon": pd, + "--sidebar-width": md, + "--sidebar-width-icon": hd, ...o } ), - className: N( + className: k( // Removed tw-min-h-svh "tw-group/sidebar-wrapper pr-twp tw-flex tw-w-full has-[[data-variant=inset]]:tw-bg-sidebar", r @@ -2795,13 +2795,13 @@ const Xi = T.forwardRef( ) }) }); } ); -Xi.displayName = "SidebarProvider"; -const Hi = T.forwardRef(({ variant: t = "sidebar", collapsible: e = "offcanvas", className: n, children: r, ...o }, a) => { - const s = hr(); +Hi.displayName = "SidebarProvider"; +const Yi = T.forwardRef(({ variant: t = "sidebar", collapsible: e = "offcanvas", className: n, children: r, ...o }, a) => { + const s = pr(); return e === "none" ? /* @__PURE__ */ i( "div", { - className: N( + className: k( "tw-flex tw-h-full tw-w-[--sidebar-width] tw-flex-col tw-bg-sidebar tw-text-sidebar-foreground", n ), @@ -2822,7 +2822,7 @@ const Hi = T.forwardRef(({ variant: t = "sidebar", collapsible: e = "offcanvas", /* @__PURE__ */ i( "div", { - className: N( + className: k( "tw-relative tw-h-svh tw-w-[--sidebar-width] tw-bg-transparent tw-transition-[width] tw-duration-200 tw-ease-linear", "group-data-[collapsible=offcanvas]:tw-w-0", "group-data-[side=secondary]:tw-rotate-180", @@ -2833,7 +2833,7 @@ const Hi = T.forwardRef(({ variant: t = "sidebar", collapsible: e = "offcanvas", /* @__PURE__ */ i( "div", { - className: N( + className: k( // CUSTOM: Switched tw-fixed to tw-absolute here to scope the sidebar inside of it's container "tw-absolute tw-inset-y-0 tw-z-10 tw-hidden tw-h-svh tw-w-[--sidebar-width] tw-transition-[left,right,width] tw-duration-200 tw-ease-linear md:tw-flex", s.side === "primary" ? "tw-left-0 group-data-[collapsible=offcanvas]:tw-left-[calc(var(--sidebar-width)*-1)]" : "tw-right-0 group-data-[collapsible=offcanvas]:tw-right-[calc(var(--sidebar-width)*-1)]", @@ -2856,32 +2856,32 @@ const Hi = T.forwardRef(({ variant: t = "sidebar", collapsible: e = "offcanvas", } ); }); -Hi.displayName = "Sidebar"; -const wd = T.forwardRef(({ className: t, onClick: e, ...n }, r) => { - const o = hr(); +Yi.displayName = "Sidebar"; +const gd = T.forwardRef(({ className: t, onClick: e, ...n }, r) => { + const o = pr(); return /* @__PURE__ */ y( - wt, + mt, { ref: r, "data-sidebar": "trigger", variant: "ghost", size: "icon", - className: N("tw-h-7 tw-w-7", t), + className: k("tw-h-7 tw-w-7", t), onClick: (a) => { e == null || e(a), o.toggleSidebar(); }, ...n, children: [ - o.side === "primary" ? /* @__PURE__ */ i(El, {}) : /* @__PURE__ */ i(Tl, {}), + o.side === "primary" ? /* @__PURE__ */ i(Sl, {}) : /* @__PURE__ */ i(Cl, {}), /* @__PURE__ */ i("span", { className: "tw-sr-only", children: "Toggle Sidebar" }) ] } ); }); -wd.displayName = "SidebarTrigger"; -const fd = T.forwardRef( +gd.displayName = "SidebarTrigger"; +const bd = T.forwardRef( ({ className: t, ...e }, n) => { - const { toggleSidebar: r } = hr(); + const { toggleSidebar: r } = pr(); return /* @__PURE__ */ i( "button", { @@ -2892,7 +2892,7 @@ const fd = T.forwardRef( tabIndex: -1, onClick: r, title: "Toggle Sidebar", - className: N( + className: k( "tw-absolute tw-inset-y-0 tw-z-20 tw-hidden tw-w-4 tw--translate-x-1/2 tw-transition-all tw-ease-linear after:tw-absolute after:tw-inset-y-0 after:tw-left-1/2 after:tw-w-[2px] hover:after:tw-bg-sidebar-border group-data-[side=primary]:tw--right-4 group-data-[side=secondary]:tw-left-0 sm:tw-flex", "[[data-side=secondary]_&]:tw-cursor-e-resize [[data-side=secondary]_&]:tw-cursor-w-resize", "[[data-side=primary][data-state=collapsed]_&]:tw-cursor-e-resize [[data-side=secondary][data-state=collapsed]_&]:tw-cursor-w-resize", @@ -2906,13 +2906,13 @@ const fd = T.forwardRef( ); } ); -fd.displayName = "SidebarRail"; -const Yi = T.forwardRef( +bd.displayName = "SidebarRail"; +const Wi = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "main", { ref: n, - className: N( + className: k( // CUSTOM: Removed tw-min-h-svh "tw-relative tw-flex tw-flex-1 tw-flex-col tw-bg-background", "peer-data-[variant=inset]:tw-min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:tw-m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:tw-ml-2 md:peer-data-[variant=inset]:tw-ml-0 md:peer-data-[variant=inset]:tw-rounded-xl md:peer-data-[variant=inset]:tw-shadow", @@ -2922,61 +2922,61 @@ const Yi = T.forwardRef( } ) ); -Yi.displayName = "SidebarInset"; -const md = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - Re, +Wi.displayName = "SidebarInset"; +const vd = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Qe, { ref: n, "data-sidebar": "input", - className: N( + className: k( "tw-h-8 tw-w-full tw-bg-background tw-shadow-none focus-visible:tw-ring-2 focus-visible:tw-ring-sidebar-ring", t ), ...e } )); -md.displayName = "SidebarInput"; -const hd = T.forwardRef( +vd.displayName = "SidebarInput"; +const yd = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "div", { ref: n, "data-sidebar": "header", - className: N("tw-flex tw-flex-col tw-gap-2 tw-p-2", t), + className: k("tw-flex tw-flex-col tw-gap-2 tw-p-2", t), ...e } ) ); -hd.displayName = "SidebarHeader"; -const gd = T.forwardRef( +yd.displayName = "SidebarHeader"; +const xd = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "div", { ref: n, "data-sidebar": "footer", - className: N("tw-flex tw-flex-col tw-gap-2 tw-p-2", t), + className: k("tw-flex tw-flex-col tw-gap-2 tw-p-2", t), ...e } ) ); -gd.displayName = "SidebarFooter"; -const bd = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( +xd.displayName = "SidebarFooter"; +const Nd = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( Oo, { ref: n, "data-sidebar": "separator", - className: N("tw-mx-2 tw-w-auto tw-bg-sidebar-border", t), + className: k("tw-mx-2 tw-w-auto tw-bg-sidebar-border", t), ...e } )); -bd.displayName = "SidebarSeparator"; -const Wi = T.forwardRef( +Nd.displayName = "SidebarSeparator"; +const qi = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "div", { ref: n, "data-sidebar": "content", - className: N( + className: k( "tw-flex tw-min-h-0 tw-flex-1 tw-flex-col tw-gap-2 tw-overflow-auto group-data-[collapsible=icon]:tw-overflow-hidden", t ), @@ -2984,25 +2984,25 @@ const Wi = T.forwardRef( } ) ); -Wi.displayName = "SidebarContent"; -const no = T.forwardRef( +qi.displayName = "SidebarContent"; +const Zr = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "div", { ref: n, "data-sidebar": "group", - className: N("tw-relative tw-flex tw-w-full tw-min-w-0 tw-flex-col tw-p-2", t), + className: k("tw-relative tw-flex tw-w-full tw-min-w-0 tw-flex-col tw-p-2", t), ...e } ) ); -no.displayName = "SidebarGroup"; -const ro = T.forwardRef(({ className: t, asChild: e = !1, ...n }, r) => /* @__PURE__ */ i( - e ? Qe : "div", +Zr.displayName = "SidebarGroup"; +const Qr = T.forwardRef(({ className: t, asChild: e = !1, ...n }, r) => /* @__PURE__ */ i( + e ? Je : "div", { ref: r, "data-sidebar": "group-label", - className: N( + className: k( "tw-flex tw-h-8 tw-shrink-0 tw-items-center tw-rounded-md tw-px-2 tw-text-xs tw-font-medium tw-text-sidebar-foreground/70 tw-outline-none tw-ring-sidebar-ring tw-transition-[margin,opa] tw-duration-200 tw-ease-linear focus-visible:tw-ring-2 [&>svg]:tw-size-4 [&>svg]:tw-shrink-0", "group-data-[collapsible=icon]:tw--mt-8 group-data-[collapsible=icon]:tw-opacity-0", t @@ -3010,13 +3010,13 @@ const ro = T.forwardRef(({ className: t, asChild: e = !1, ...n }, r) => /* @__PU ...n } )); -ro.displayName = "SidebarGroupLabel"; -const vd = T.forwardRef(({ className: t, asChild: e = !1, ...n }, r) => /* @__PURE__ */ i( - e ? Qe : "button", +Qr.displayName = "SidebarGroupLabel"; +const kd = T.forwardRef(({ className: t, asChild: e = !1, ...n }, r) => /* @__PURE__ */ i( + e ? Je : "button", { ref: r, "data-sidebar": "group-action", - className: N( + className: k( "tw-absolute tw-right-3 tw-top-3.5 tw-flex tw-aspect-square tw-w-5 tw-items-center tw-justify-center tw-rounded-md tw-p-0 tw-text-sidebar-foreground tw-outline-none tw-ring-sidebar-ring tw-transition-transform hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 [&>svg]:tw-size-4 [&>svg]:tw-shrink-0", // Increases the hit area of the button on mobile. "after:tw-absolute after:tw--inset-2 after:md:tw-hidden", @@ -3026,44 +3026,44 @@ const vd = T.forwardRef(({ className: t, asChild: e = !1, ...n }, r) => /* @__PU ...n } )); -vd.displayName = "SidebarGroupAction"; -const oo = T.forwardRef( +kd.displayName = "SidebarGroupAction"; +const to = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "div", { ref: n, "data-sidebar": "group-content", - className: N("tw-w-full tw-text-sm", t), + className: k("tw-w-full tw-text-sm", t), ...e } ) ); -oo.displayName = "SidebarGroupContent"; -const qi = T.forwardRef( +to.displayName = "SidebarGroupContent"; +const Ki = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "ul", { ref: n, "data-sidebar": "menu", - className: N("tw-flex tw-w-full tw-min-w-0 tw-flex-col tw-gap-1", t), + className: k("tw-flex tw-w-full tw-min-w-0 tw-flex-col tw-gap-1", t), ...e } ) ); -qi.displayName = "SidebarMenu"; -const Ki = T.forwardRef( +Ki.displayName = "SidebarMenu"; +const Ji = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "li", { ref: n, "data-sidebar": "menu-item", - className: N("tw-group/menu-item tw-relative", t), + className: k("tw-group/menu-item tw-relative", t), ...e } ) ); -Ki.displayName = "SidebarMenuItem"; -const yd = tn( +Ji.displayName = "SidebarMenuItem"; +const Ed = Ze( // CUSTOM: Removed data-[active=true]:tw-bg-sidebar-accent "tw-peer/menu-button tw-flex tw-w-full tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-p-2 tw-text-left tw-text-sm tw-outline-none tw-ring-sidebar-ring tw-transition-[width,height,padding] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 tw-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 data-[active=true]:tw-font-medium data-[active=true]:tw-text-sidebar-accent-foreground data-[state=open]:hover:tw-bg-sidebar-accent data-[state=open]:hover:tw-text-sidebar-accent-foreground group-data-[collapsible=icon]:tw-!size-8 group-data-[collapsible=icon]:tw-!p-2 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0", { @@ -3083,7 +3083,7 @@ const yd = tn( size: "default" } } -), Ji = T.forwardRef( +), Zi = T.forwardRef( ({ asChild: t = !1, isActive: e = !1, @@ -3093,32 +3093,32 @@ const yd = tn( className: a, ...s }, l) => { - const c = t ? Qe : "button", { state: d } = hr(), u = /* @__PURE__ */ i( + const c = t ? Je : "button", { state: d } = pr(), u = /* @__PURE__ */ i( c, { ref: l, "data-sidebar": "menu-button", "data-size": r, "data-active": e, - className: N(yd({ variant: n, size: r }), a), + className: k(Ed({ variant: n, size: r }), a), ...s } ); return o ? (typeof o == "string" && (o = { children: o - }), /* @__PURE__ */ y(cd, { children: [ - /* @__PURE__ */ i(dd, { asChild: !0, children: u }), - /* @__PURE__ */ i(Ui, { side: "right", align: "center", hidden: d !== "collapsed", ...o }) + }), /* @__PURE__ */ y(wd, { children: [ + /* @__PURE__ */ i(fd, { asChild: !0, children: u }), + /* @__PURE__ */ i(Gi, { side: "right", align: "center", hidden: d !== "collapsed", ...o }) ] })) : u; } ); -Ji.displayName = "SidebarMenuButton"; -const xd = T.forwardRef(({ className: t, asChild: e = !1, showOnHover: n = !1, ...r }, o) => /* @__PURE__ */ i( - e ? Qe : "button", +Zi.displayName = "SidebarMenuButton"; +const Td = T.forwardRef(({ className: t, asChild: e = !1, showOnHover: n = !1, ...r }, o) => /* @__PURE__ */ i( + e ? Je : "button", { ref: o, "data-sidebar": "menu-action", - className: N( + className: k( "tw-peer-hover/menu-button:text-sidebar-accent-foreground tw-absolute tw-right-1 tw-top-1.5 tw-flex tw-aspect-square tw-w-5 tw-items-center tw-justify-center tw-rounded-md tw-p-0 tw-text-sidebar-foreground tw-outline-none tw-ring-sidebar-ring tw-transition-transform hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 [&>svg]:tw-size-4 [&>svg]:tw-shrink-0", // Increases the hit area of the button on mobile. "after:tw-absolute after:tw--inset-2 after:md:tw-hidden", @@ -3132,14 +3132,14 @@ const xd = T.forwardRef(({ className: t, asChild: e = !1, showOnHover: n = !1, . ...r } )); -xd.displayName = "SidebarMenuAction"; -const Nd = T.forwardRef( +Td.displayName = "SidebarMenuAction"; +const Sd = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "div", { ref: n, "data-sidebar": "menu-badge", - className: N( + className: k( "tw-pointer-events-none tw-absolute tw-right-1 tw-flex tw-h-5 tw-min-w-5 tw-select-none tw-items-center tw-justify-center tw-rounded-md tw-px-1 tw-text-xs tw-font-medium tw-tabular-nums tw-text-sidebar-foreground", "tw-peer-hover/menu-button:text-sidebar-accent-foreground tw-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "tw-peer-data-[size=sm]/menu-button:top-1", @@ -3152,15 +3152,15 @@ const Nd = T.forwardRef( } ) ); -Nd.displayName = "SidebarMenuBadge"; -const kd = T.forwardRef(({ className: t, showIcon: e = !1, ...n }, r) => { +Sd.displayName = "SidebarMenuBadge"; +const Cd = T.forwardRef(({ className: t, showIcon: e = !1, ...n }, r) => { const o = T.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []); return /* @__PURE__ */ y( "div", { ref: r, "data-sidebar": "menu-skeleton", - className: N("tw-flex tw-h-8 tw-items-center tw-gap-2 tw-rounded-md tw-px-2", t), + className: k("tw-flex tw-h-8 tw-items-center tw-gap-2 tw-rounded-md tw-px-2", t), ...n, children: [ e && /* @__PURE__ */ i(ga, { className: "tw-size-4 tw-rounded-md", "data-sidebar": "menu-skeleton-icon" }), @@ -3181,14 +3181,14 @@ const kd = T.forwardRef(({ className: t, showIcon: e = !1, ...n }, r) => { } ); }); -kd.displayName = "SidebarMenuSkeleton"; -const Ed = T.forwardRef( +Cd.displayName = "SidebarMenuSkeleton"; +const Od = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "ul", { ref: n, "data-sidebar": "menu-sub", - className: N( + className: k( "tw-mx-3.5 tw-flex tw-min-w-0 tw-translate-x-px tw-flex-col tw-gap-1 tw-border-l tw-border-sidebar-border tw-px-2.5 tw-py-0.5", "group-data-[collapsible=icon]:tw-hidden", t @@ -3197,19 +3197,19 @@ const Ed = T.forwardRef( } ) ); -Ed.displayName = "SidebarMenuSub"; -const Td = T.forwardRef( +Od.displayName = "SidebarMenuSub"; +const Rd = T.forwardRef( ({ ...t }, e) => /* @__PURE__ */ i("li", { ref: e, ...t }) ); -Td.displayName = "SidebarMenuSubItem"; -const Sd = T.forwardRef(({ asChild: t = !1, size: e = "md", isActive: n, className: r, ...o }, a) => /* @__PURE__ */ i( - t ? Qe : "a", +Rd.displayName = "SidebarMenuSubItem"; +const _d = T.forwardRef(({ asChild: t = !1, size: e = "md", isActive: n, className: r, ...o }, a) => /* @__PURE__ */ i( + t ? Je : "a", { ref: a, "data-sidebar": "menu-sub-button", "data-size": e, "data-active": n, - className: N( + className: k( "tw-flex tw-h-7 tw-min-w-0 tw--translate-x-px tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-px-2 tw-text-sidebar-foreground tw-outline-none tw-ring-sidebar-ring hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0 [&>svg]:tw-text-sidebar-accent-foreground", "data-[active=true]:tw-bg-sidebar-accent data-[active=true]:tw-text-sidebar-accent-foreground", e === "sm" && "tw-text-xs", @@ -3220,8 +3220,8 @@ const Sd = T.forwardRef(({ asChild: t = !1, size: e = "md", isActive: n, classNa ...o } )); -Sd.displayName = "SidebarMenuSubButton"; -function Cd({ +_d.displayName = "SidebarMenuSubButton"; +function Pd({ id: t, extensionLabels: e, projectInfo: n, @@ -3231,35 +3231,35 @@ function Cd({ projectsSidebarGroupLabel: s, buttonPlaceholderText: l }) { - const c = Tt( + const c = Pt( (f, w) => { r(f, w); }, [r] - ), d = Tt( + ), d = Pt( (f) => { const w = n.find((g) => g.projectId === f); return w ? w.projectName : f; }, [n] - ), u = Tt( + ), u = Pt( (f) => !o.projectId && f === o.label, [o] ); return /* @__PURE__ */ i( - Hi, + Yi, { id: t, collapsible: "none", variant: "inset", className: "tw-w-96 tw-gap-2 tw-overflow-y-auto tw-rounded tw-bg-slate-100", - children: /* @__PURE__ */ y(Wi, { children: [ - /* @__PURE__ */ y(no, { children: [ - /* @__PURE__ */ i(ro, { className: "tw-text-sm tw-text-gray-400", children: a }), - /* @__PURE__ */ i(oo, { children: /* @__PURE__ */ i(qi, { children: e.map((f) => /* @__PURE__ */ i(Ki, { children: /* @__PURE__ */ i( - Ji, + children: /* @__PURE__ */ y(qi, { children: [ + /* @__PURE__ */ y(Zr, { children: [ + /* @__PURE__ */ i(Qr, { className: "tw-text-sm tw-text-gray-400", children: a }), + /* @__PURE__ */ i(to, { children: /* @__PURE__ */ i(Ki, { children: e.map((f) => /* @__PURE__ */ i(Ji, { children: /* @__PURE__ */ i( + Zi, { - className: N( + className: k( "tw-rounded tw-py-2 tw-text-sm tw-text-gray-500 hover:tw-bg-white hover:tw-text-gray-900 hover:tw-shadow-sm active:tw-bg-white", { "tw-bg-white tw-text-gray-900 tw-shadow-sm": u(f) } ), @@ -3269,10 +3269,10 @@ function Cd({ } ) }, f)) }) }) ] }), - /* @__PURE__ */ y(no, { children: [ - /* @__PURE__ */ i(ro, { className: "tw-text-sm tw-text-gray-400", children: s }), - /* @__PURE__ */ i(oo, { className: "tw-pl-3", children: /* @__PURE__ */ i( - ar, + /* @__PURE__ */ y(Zr, { children: [ + /* @__PURE__ */ i(Qr, { className: "tw-text-sm tw-text-gray-400", children: s }), + /* @__PURE__ */ i(to, { className: "tw-pl-3", children: /* @__PURE__ */ i( + Jr, { popoverContentClassName: "tw-z-[1000]", options: n.flatMap((f) => f.projectId), @@ -3290,7 +3290,7 @@ function Cd({ } ); } -function Ch({ +function _h({ id: t, extensionLabels: e, projectInfo: n, @@ -3304,16 +3304,16 @@ function Ch({ }) { return /* @__PURE__ */ y("div", { className: "tw-box-border tw-flex tw-h-full tw-flex-col tw-p-3", children: [ /* @__PURE__ */ i("div", { className: "tw-box-border tw-flex tw-items-center tw-justify-center tw-py-4", children: /* @__PURE__ */ i( - Vi, + Co, { className: "tw-w-9/12", onSearch: s, placeholder: "Search app settings, extension settings, and project settings" } ) }), - /* @__PURE__ */ y(Xi, { id: t, className: "tw-h-full tw-flex-1 tw-gap-4 tw-overflow-auto", children: [ + /* @__PURE__ */ y(Hi, { id: t, className: "tw-h-full tw-flex-1 tw-gap-4 tw-overflow-auto", children: [ /* @__PURE__ */ i( - Cd, + Pd, { extensionLabels: e, projectInfo: n, @@ -3324,41 +3324,41 @@ function Ch({ buttonPlaceholderText: d } ), - /* @__PURE__ */ i(Yi, { className: "tw-overflow-y-auto", children: r }) + /* @__PURE__ */ i(Wi, { className: "tw-overflow-y-auto", children: r }) ] }) ] }); } -const le = "scrBook", Od = "scrRef", he = "source", Rd = "details", _d = "Scripture Reference", Pd = "Scripture Book", Zi = "Type", $d = "Details"; -function Id(t, e) { +const pe = "scrBook", $d = "scrRef", ve = "source", Id = "details", Ad = "Scripture Reference", Md = "Scripture Book", Qi = "Type", Dd = "Details"; +function Bd(t, e) { const n = e ?? !1; return [ { - accessorFn: (r) => `${st.bookNumberToId(r.start.bookNum)} ${r.start.chapterNum}:${r.start.verseNum}`, - id: le, - header: (t == null ? void 0 : t.scriptureReferenceColumnName) ?? _d, + accessorFn: (r) => `${ct.bookNumberToId(r.start.bookNum)} ${r.start.chapterNum}:${r.start.verseNum}`, + id: pe, + header: (t == null ? void 0 : t.scriptureReferenceColumnName) ?? Ad, cell: (r) => { const o = r.row.original; - return r.row.getIsGrouped() ? st.bookNumberToEnglishName(o.start.bookNum) : r.row.groupingColumnId === le ? Mr(o.start) : void 0; + return r.row.getIsGrouped() ? ct.bookNumberToEnglishName(o.start.bookNum) : r.row.groupingColumnId === pe ? Pr(o.start) : void 0; }, getGroupingValue: (r) => r.start.bookNum, - sortingFn: (r, o) => Zr(r.original.start, o.original.start), + sortingFn: (r, o) => Yr(r.original.start, o.original.start), enableGrouping: !0 }, { - accessorFn: (r) => Mr(r.start), - id: Od, + accessorFn: (r) => Pr(r.start), + id: $d, header: void 0, cell: (r) => { const o = r.row.original; - return r.row.getIsGrouped() ? void 0 : Mr(o.start); + return r.row.getIsGrouped() ? void 0 : Pr(o.start); }, - sortingFn: (r, o) => Zr(r.original.start, o.original.start), + sortingFn: (r, o) => Yr(r.original.start, o.original.start), enableGrouping: !1 }, { accessorFn: (r) => r.source.displayName, - id: he, - header: n ? (t == null ? void 0 : t.typeColumnName) ?? Zi : void 0, + id: ve, + header: n ? (t == null ? void 0 : t.typeColumnName) ?? Qi : void 0, cell: (r) => n || r.row.getIsGrouped() ? r.getValue() : void 0, getGroupingValue: (r) => r.source.id, sortingFn: (r, o) => r.original.source.displayName.localeCompare(o.original.source.displayName), @@ -3366,23 +3366,23 @@ function Id(t, e) { }, { accessorFn: (r) => r.detail, - id: Rd, - header: (t == null ? void 0 : t.detailsColumnName) ?? $d, + id: Id, + header: (t == null ? void 0 : t.detailsColumnName) ?? Dd, cell: (r) => r.getValue(), enableGrouping: !1 } ]; } -const Ad = (t) => { +const jd = (t) => { if (!("offset" in t.start)) throw new Error("No offset available in range start"); if (t.end && !("offset" in t.end)) throw new Error("No offset available in range end"); const { offset: e } = t.start; let n = 0; - return t.end && ({ offset: n } = t.end), !t.end || Zr(t.start, t.end) === 0 ? `${Dr(t.start)}+${e}` : `${Dr(t.start)}+${e}-${Dr(t.end)}+${n}`; -}, ba = (t) => `${Ad({ start: t.start, end: t.end })} ${t.source.displayName} ${t.detail}`; -function Oh({ + return t.end && ({ offset: n } = t.end), !t.end || Yr(t.start, t.end) === 0 ? `${$r(t.start)}+${e}` : `${$r(t.start)}+${e}-${$r(t.end)}+${n}`; +}, ba = (t) => `${jd({ start: t.start, end: t.end })} ${t.source.displayName} ${t.detail}`; +function Ph({ sources: t, showColumnHeaders: e = !1, showSourceColumn: n = !1, @@ -3392,14 +3392,14 @@ function Oh({ detailsColumnName: s, onRowSelected: l }) { - const [c, d] = it([]), [u, f] = it([{ id: le, desc: !1 }]), [w, g] = it({}), b = Nt( - () => t.flatMap((_) => _.data.map((I) => ({ - ...I, + const [c, d] = st([]), [u, f] = st([{ id: pe, desc: !1 }]), [w, g] = st({}), v = Tt( + () => t.flatMap((_) => _.data.map(($) => ({ + ...$, source: _.source }))), [t] - ), m = Nt( - () => Id( + ), m = Tt( + () => Bd( { scriptureReferenceColumnName: r, typeColumnName: a, @@ -3409,14 +3409,14 @@ function Oh({ ), [r, a, s, n] ); - Jt(() => { - c.includes(he) ? f([ - { id: he, desc: !1 }, - { id: le, desc: !1 } - ]) : f([{ id: le, desc: !1 }]); + te(() => { + c.includes(ve) ? f([ + { id: ve, desc: !1 }, + { id: pe, desc: !1 } + ]) : f([{ id: pe, desc: !1 }]); }, [c]); - const h = fi({ - data: b, + const h = hi({ + data: v, columns: m, state: { grouping: c, @@ -3426,50 +3426,50 @@ function Oh({ onGroupingChange: d, onSortingChange: f, onRowSelectionChange: g, - getExpandedRowModel: Xl(), - getGroupedRowModel: Hl(), - getCoreRowModel: mi(), - getSortedRowModel: hi(), + getExpandedRowModel: Wl(), + getGroupedRowModel: ql(), + getCoreRowModel: gi(), + getSortedRowModel: bi(), getRowId: ba, autoResetExpanded: !1, enableMultiRowSelection: !1, enableSubRowSelection: !1 }); - Jt(() => { + te(() => { if (l) { - const _ = h.getSelectedRowModel().rowsById, I = Object.keys(_); - if (I.length === 1) { - const U = b.find((B) => ba(B) === I[0]) || void 0; - U && l(U); + const _ = h.getSelectedRowModel().rowsById, $ = Object.keys(_); + if ($.length === 1) { + const F = v.find((D) => ba(D) === $[0]) || void 0; + F && l(F); } } - }, [w, b, l, h]); - const k = o ?? Pd, P = a ?? Zi, C = [ + }, [w, v, l, h]); + const N = o ?? Md, S = a ?? Qi, C = [ { label: "No Grouping", value: [] }, - { label: `Group by ${k}`, value: [le] }, - { label: `Group by ${P}`, value: [he] }, + { label: `Group by ${N}`, value: [pe] }, + { label: `Group by ${S}`, value: [ve] }, { - label: `Group by ${k} and ${P}`, - value: [le, he] + label: `Group by ${N} and ${S}`, + value: [pe, ve] }, { - label: `Group by ${P} and ${k}`, - value: [he, le] + label: `Group by ${S} and ${N}`, + value: [ve, pe] } ], E = (_) => { d(JSON.parse(_)); - }, v = (_, I) => { - !_.getIsGrouped() && !_.getIsSelected() && _.getToggleSelectedHandler()(I); - }, $ = (_, I) => _.getIsGrouped() ? "" : N("banded-row", I % 2 === 0 ? "even" : "odd"), X = (_, I, U) => { - if (!((_ == null ? void 0 : _.length) === 0 || I.depth < U.column.getGroupedIndex())) { - if (I.getIsGrouped()) - switch (I.depth) { + }, b = (_, $) => { + !_.getIsGrouped() && !_.getIsSelected() && _.getToggleSelectedHandler()($); + }, P = (_, $) => _.getIsGrouped() ? "" : k("banded-row", $ % 2 === 0 ? "even" : "odd"), L = (_, $, F) => { + if (!((_ == null ? void 0 : _.length) === 0 || $.depth < F.column.getGroupedIndex())) { + if ($.getIsGrouped()) + switch ($.depth) { case 1: return "tw-ps-4"; default: return; } - switch (I.depth) { + switch ($.depth) { case 1: return "tw-ps-8"; case 2: @@ -3481,73 +3481,73 @@ function Oh({ }; return /* @__PURE__ */ y("div", { className: "pr-twp tw-flex tw-h-full tw-w-full tw-flex-col", children: [ !e && /* @__PURE__ */ y( - Xe, + Ue, { value: JSON.stringify(c), onValueChange: (_) => { E(_); }, children: [ - /* @__PURE__ */ i(Ee, { className: "tw-mb-1 tw-mt-2", children: /* @__PURE__ */ i(He, {}) }), - /* @__PURE__ */ i(Te, { position: "item-aligned", children: /* @__PURE__ */ i(Hc, { children: C.map((_) => /* @__PURE__ */ i(Vt, { value: JSON.stringify(_.value), children: _.label }, _.label)) }) }) + /* @__PURE__ */ i(Ce, { className: "tw-mb-1 tw-mt-2", children: /* @__PURE__ */ i(Ge, {}) }), + /* @__PURE__ */ i(Oe, { position: "item-aligned", children: /* @__PURE__ */ i(qc, { children: C.map((_) => /* @__PURE__ */ i(Gt, { value: JSON.stringify(_.value), children: _.label }, _.label)) }) }) ] } ), /* @__PURE__ */ y(In, { className: "tw-relative tw-flex tw-flex-col tw-overflow-y-auto tw-p-0", children: [ - e && /* @__PURE__ */ i(An, { children: h.getHeaderGroups().map((_) => /* @__PURE__ */ i(qt, { children: _.headers.filter((I) => I.column.columnDef.header).map((I) => ( + e && /* @__PURE__ */ i(An, { children: h.getHeaderGroups().map((_) => /* @__PURE__ */ i(Zt, { children: _.headers.filter(($) => $.column.columnDef.header).map(($) => ( /* For sticky column headers to work, we probably need to change the default definition of the shadcn Table component. See https://github.com/shadcn-ui/ui/issues/1151 */ - /* @__PURE__ */ i(zt, { colSpan: I.colSpan, className: "top-0 tw-sticky", children: I.isPlaceholder ? void 0 : /* @__PURE__ */ y("div", { children: [ - I.column.getCanGroup() ? /* @__PURE__ */ i( - wt, + /* @__PURE__ */ i(fe, { colSpan: $.colSpan, className: "top-0 tw-sticky", children: $.isPlaceholder ? void 0 : /* @__PURE__ */ y("div", { children: [ + $.column.getCanGroup() ? /* @__PURE__ */ i( + mt, { variant: "ghost", - title: `Toggle grouping by ${I.column.columnDef.header}`, - onClick: I.column.getToggleGroupingHandler(), + title: `Toggle grouping by ${$.column.columnDef.header}`, + onClick: $.column.getToggleGroupingHandler(), type: "button", - children: I.column.getIsGrouped() ? "🛑" : "👊 " + children: $.column.getIsGrouped() ? "🛑" : "👊 " } ) : void 0, " ", - gn(I.column.columnDef.header, I.getContext()) - ] }) }, I.id) + hn($.column.columnDef.header, $.getContext()) + ] }) }, $.id) )) }, _.id)) }), - /* @__PURE__ */ i(Mn, { children: h.getRowModel().rows.map((_, I) => { - const U = kt(); + /* @__PURE__ */ i(Mn, { children: h.getRowModel().rows.map((_, $) => { + const F = St(); return /* @__PURE__ */ i( - qt, + Zt, { "data-state": _.getIsSelected() ? "selected" : "", - className: N($(_, I)), - onClick: (B) => v(_, B), - children: _.getVisibleCells().map((B) => { - if (!(B.getIsPlaceholder() || B.column.columnDef.enableGrouping && !B.getIsGrouped() && (B.column.columnDef.id !== he || !n))) + className: k(P(_, $)), + onClick: (D) => b(_, D), + children: _.getVisibleCells().map((D) => { + if (!(D.getIsPlaceholder() || D.column.columnDef.enableGrouping && !D.getIsGrouped() && (D.column.columnDef.id !== ve || !n))) return /* @__PURE__ */ i( - Mt, + zt, { - className: N( - B.column.columnDef.id, + className: k( + D.column.columnDef.id, "tw-p-[1px]", - X(c, _, B) + L(c, _, D) ), - children: (() => B.getIsGrouped() ? /* @__PURE__ */ y( - wt, + children: (() => D.getIsGrouped() ? /* @__PURE__ */ y( + mt, { variant: "link", onClick: _.getToggleExpandedHandler(), type: "button", children: [ - _.getIsExpanded() && /* @__PURE__ */ i(Ue, {}), - !_.getIsExpanded() && (U === "ltr" ? /* @__PURE__ */ i(di, {}) : /* @__PURE__ */ i(Sl, {})), + _.getIsExpanded() && /* @__PURE__ */ i(On, {}), + !_.getIsExpanded() && (F === "ltr" ? /* @__PURE__ */ i(ui, {}) : /* @__PURE__ */ i(Ol, {})), " ", - gn(B.column.columnDef.cell, B.getContext()), + hn(D.column.columnDef.cell, D.getContext()), " (", _.subRows.length, ")" ] } - ) : gn(B.column.columnDef.cell, B.getContext()))() + ) : hn(D.column.columnDef.cell, D.getContext()))() }, - B.id + D.id ); }) }, @@ -3557,82 +3557,82 @@ function Oh({ ] }) ] }); } -const Vr = { - [pt("undefined")]: "Ø", - [pt(0)]: "A", - [pt(1)]: "B", - [pt(2)]: "C", - [pt(3)]: "D", - [pt(4)]: "E", - [pt(5)]: "F", - [pt(6)]: "G", - [pt(7)]: "H", - [pt(8)]: "I", - [pt(9)]: "J", - [pt(10)]: "K", - [pt(11)]: "L", - [pt(12)]: "M", - [pt(13)]: "N", - [pt(14)]: "O", - [pt(15)]: "P", - [pt(16)]: "Q", - [pt(17)]: "R", - [pt(18)]: "S", - [pt(19)]: "T", - [pt(20)]: "U", - [pt(21)]: "V", - [pt(22)]: "W", - [pt(23)]: "X", - [pt(24)]: "Y", - [pt(25)]: "Z" +const Mr = { + [ft("undefined")]: "Ø", + [ft(0)]: "A", + [ft(1)]: "B", + [ft(2)]: "C", + [ft(3)]: "D", + [ft(4)]: "E", + [ft(5)]: "F", + [ft(6)]: "G", + [ft(7)]: "H", + [ft(8)]: "I", + [ft(9)]: "J", + [ft(10)]: "K", + [ft(11)]: "L", + [ft(12)]: "M", + [ft(13)]: "N", + [ft(14)]: "O", + [ft(15)]: "P", + [ft(16)]: "Q", + [ft(17)]: "R", + [ft(18)]: "S", + [ft(19)]: "T", + [ft(20)]: "U", + [ft(21)]: "V", + [ft(22)]: "W", + [ft(23)]: "X", + [ft(24)]: "Y", + [ft(25)]: "Z" }; -function Rh({ +function $h({ availableScrollGroupIds: t, scrollGroupId: e, onChangeScrollGroupId: n, localizedStrings: r = {} }) { const o = { - ...Vr, + ...Mr, ...Object.fromEntries( Object.entries(r).map( ([s, l]) => [ s, - s === l && s in Vr ? Vr[s] : l + s === l && s in Mr ? Mr[s] : l ] ) ) - }, a = kt(); + }, a = St(); return /* @__PURE__ */ y( - Xe, + Ue, { value: `${e}`, onValueChange: (s) => n( s === "undefined" ? void 0 : parseInt(s, 10) ), children: [ - /* @__PURE__ */ i(Ee, { className: "pr-twp tw-w-auto", children: /* @__PURE__ */ i( - He, + /* @__PURE__ */ i(Ce, { className: "pr-twp tw-w-auto", children: /* @__PURE__ */ i( + Ge, { - placeholder: o[pt(e)] ?? e + placeholder: o[ft(e)] ?? e } ) }), /* @__PURE__ */ i( - Te, + Oe, { align: a === "rtl" ? "end" : "start", style: { zIndex: 250 }, - children: t.map((s) => /* @__PURE__ */ i(Vt, { value: `${s}`, children: o[pt(s)] }, `${s}`)) + children: t.map((s) => /* @__PURE__ */ i(Gt, { value: `${s}`, children: o[ft(s)] }, `${s}`)) } ) ] } ); } -function _h({ children: t }) { +function Ih({ children: t }) { return /* @__PURE__ */ i("div", { className: "pr-twp tw-grid", children: t }); } -function Ph({ +function Ah({ primary: t, secondary: e, children: n, @@ -3647,7 +3647,7 @@ function Ph({ r ? /* @__PURE__ */ i("p", { className: "tw-text-sm tw-text-muted-foreground", children: o }) : /* @__PURE__ */ i("div", { children: n }) ] }); } -function $h({ +function Mh({ primary: t, secondary: e, includeSeparator: n = !1 @@ -3660,7 +3660,7 @@ function $h({ n ? /* @__PURE__ */ i(Oo, {}) : "" ] }); } -function Ih({ +function Dh({ id: t, className: e, listItems: n, @@ -3670,20 +3670,20 @@ function Ih({ }) { return /* @__PURE__ */ i("div", { id: t, className: e, children: n.map((s) => /* @__PURE__ */ y("div", { className: "tw-m-2 tw-flex tw-items-center", children: [ /* @__PURE__ */ i( - Co, + So, { className: "tw-me-2 tw-align-middle", checked: r.includes(s), onCheckedChange: (l) => o(s, l) } ), - /* @__PURE__ */ i(St, { children: a ? a(s) : s }) + /* @__PURE__ */ i(Ct, { children: a ? a(s) : s }) ] }, s)) }); } -function Md(t) { +function Vd(t) { return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t; } -function Dd(t) { +function zd(t) { if (t.__esModule) return t; var e = t.default; @@ -3704,7 +3704,7 @@ function Dd(t) { }); }), n; } -var Ro = {}, Qi = { exports: {} }; +var Ro = {}, ts = { exports: {} }; (function(t) { function e(n) { return n && n.__esModule ? n : { @@ -3712,46 +3712,46 @@ var Ro = {}, Qi = { exports: {} }; }; } t.exports = e, t.exports.__esModule = !0, t.exports.default = t.exports; -})(Qi); -var Bd = Qi.exports, zr = {}; +})(ts); +var Ld = ts.exports, Dr = {}; function _o(t, e) { return process.env.NODE_ENV === "production" ? () => null : function(...r) { return t(...r) || e(...r); }; } -function A() { - return A = Object.assign ? Object.assign.bind() : function(t) { +function I() { + return I = Object.assign ? Object.assign.bind() : function(t) { for (var e = 1; e < arguments.length; e++) { var n = arguments[e]; for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]); } return t; - }, A.apply(this, arguments); + }, I.apply(this, arguments); } -function ve(t) { +function Ne(t) { if (typeof t != "object" || t === null) return !1; const e = Object.getPrototypeOf(t); return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t); } -function ts(t) { - if (!ve(t)) +function es(t) { + if (!Ne(t)) return t; const e = {}; return Object.keys(t).forEach((n) => { - e[n] = ts(t[n]); + e[n] = es(t[n]); }), e; } -function re(t, e, n = { +function se(t, e, n = { clone: !0 }) { - const r = n.clone ? A({}, t) : t; - return ve(t) && ve(e) && Object.keys(e).forEach((o) => { - o !== "__proto__" && (ve(e[o]) && o in t && ve(t[o]) ? r[o] = re(t[o], e[o], n) : n.clone ? r[o] = ve(e[o]) ? ts(e[o]) : e[o] : r[o] = e[o]); + const r = n.clone ? I({}, t) : t; + return Ne(t) && Ne(e) && Object.keys(e).forEach((o) => { + o !== "__proto__" && (Ne(e[o]) && o in t && Ne(t[o]) ? r[o] = se(t[o], e[o], n) : n.clone ? r[o] = Ne(e[o]) ? es(e[o]) : e[o] : r[o] = e[o]); }), r; } -var ao = { exports: {} }, Yn = { exports: {} }, lt = {}; +var eo = { exports: {} }, Hn = { exports: {} }, dt = {}; /** @license React v16.13.1 * react-is.production.min.js * @@ -3761,73 +3761,73 @@ var ao = { exports: {} }, Yn = { exports: {} }, lt = {}; * LICENSE file in the root directory of this source tree. */ var va; -function jd() { +function Fd() { if (va) - return lt; + return dt; va = 1; - var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, w = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, k = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119; - function C(v) { - if (typeof v == "object" && v !== null) { - var $ = v.$$typeof; - switch ($) { + var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, w = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, N = t ? Symbol.for("react.responder") : 60118, S = t ? Symbol.for("react.scope") : 60119; + function C(b) { + if (typeof b == "object" && b !== null) { + var P = b.$$typeof; + switch (P) { case e: - switch (v = v.type, v) { + switch (b = b.type, b) { case c: case d: case r: case a: case o: case f: - return v; + return b; default: - switch (v = v && v.$$typeof, v) { + switch (b = b && b.$$typeof, b) { case l: case u: - case b: + case v: case g: case s: - return v; + return b; default: - return $; + return P; } } case n: - return $; + return P; } } } - function E(v) { - return C(v) === d; - } - return lt.AsyncMode = c, lt.ConcurrentMode = d, lt.ContextConsumer = l, lt.ContextProvider = s, lt.Element = e, lt.ForwardRef = u, lt.Fragment = r, lt.Lazy = b, lt.Memo = g, lt.Portal = n, lt.Profiler = a, lt.StrictMode = o, lt.Suspense = f, lt.isAsyncMode = function(v) { - return E(v) || C(v) === c; - }, lt.isConcurrentMode = E, lt.isContextConsumer = function(v) { - return C(v) === l; - }, lt.isContextProvider = function(v) { - return C(v) === s; - }, lt.isElement = function(v) { - return typeof v == "object" && v !== null && v.$$typeof === e; - }, lt.isForwardRef = function(v) { - return C(v) === u; - }, lt.isFragment = function(v) { - return C(v) === r; - }, lt.isLazy = function(v) { - return C(v) === b; - }, lt.isMemo = function(v) { - return C(v) === g; - }, lt.isPortal = function(v) { - return C(v) === n; - }, lt.isProfiler = function(v) { - return C(v) === a; - }, lt.isStrictMode = function(v) { - return C(v) === o; - }, lt.isSuspense = function(v) { - return C(v) === f; - }, lt.isValidElementType = function(v) { - return typeof v == "string" || typeof v == "function" || v === r || v === d || v === a || v === o || v === f || v === w || typeof v == "object" && v !== null && (v.$$typeof === b || v.$$typeof === g || v.$$typeof === s || v.$$typeof === l || v.$$typeof === u || v.$$typeof === h || v.$$typeof === k || v.$$typeof === P || v.$$typeof === m); - }, lt.typeOf = C, lt; -} -var ct = {}; + function E(b) { + return C(b) === d; + } + return dt.AsyncMode = c, dt.ConcurrentMode = d, dt.ContextConsumer = l, dt.ContextProvider = s, dt.Element = e, dt.ForwardRef = u, dt.Fragment = r, dt.Lazy = v, dt.Memo = g, dt.Portal = n, dt.Profiler = a, dt.StrictMode = o, dt.Suspense = f, dt.isAsyncMode = function(b) { + return E(b) || C(b) === c; + }, dt.isConcurrentMode = E, dt.isContextConsumer = function(b) { + return C(b) === l; + }, dt.isContextProvider = function(b) { + return C(b) === s; + }, dt.isElement = function(b) { + return typeof b == "object" && b !== null && b.$$typeof === e; + }, dt.isForwardRef = function(b) { + return C(b) === u; + }, dt.isFragment = function(b) { + return C(b) === r; + }, dt.isLazy = function(b) { + return C(b) === v; + }, dt.isMemo = function(b) { + return C(b) === g; + }, dt.isPortal = function(b) { + return C(b) === n; + }, dt.isProfiler = function(b) { + return C(b) === a; + }, dt.isStrictMode = function(b) { + return C(b) === o; + }, dt.isSuspense = function(b) { + return C(b) === f; + }, dt.isValidElementType = function(b) { + return typeof b == "string" || typeof b == "function" || b === r || b === d || b === a || b === o || b === f || b === w || typeof b == "object" && b !== null && (b.$$typeof === v || b.$$typeof === g || b.$$typeof === s || b.$$typeof === l || b.$$typeof === u || b.$$typeof === h || b.$$typeof === N || b.$$typeof === S || b.$$typeof === m); + }, dt.typeOf = C, dt; +} +var ut = {}; /** @license React v16.13.1 * react-is.development.js * @@ -3837,101 +3837,101 @@ var ct = {}; * LICENSE file in the root directory of this source tree. */ var ya; -function Vd() { +function Ud() { return ya || (ya = 1, process.env.NODE_ENV !== "production" && function() { - var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, w = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, k = t ? Symbol.for("react.responder") : 60118, P = t ? Symbol.for("react.scope") : 60119; - function C(S) { - return typeof S == "string" || typeof S == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. - S === r || S === d || S === a || S === o || S === f || S === w || typeof S == "object" && S !== null && (S.$$typeof === b || S.$$typeof === g || S.$$typeof === s || S.$$typeof === l || S.$$typeof === u || S.$$typeof === h || S.$$typeof === k || S.$$typeof === P || S.$$typeof === m); - } - function E(S) { - if (typeof S == "object" && S !== null) { - var ft = S.$$typeof; - switch (ft) { + var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, o = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, w = t ? Symbol.for("react.suspense_list") : 60120, g = t ? Symbol.for("react.memo") : 60115, v = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, h = t ? Symbol.for("react.fundamental") : 60117, N = t ? Symbol.for("react.responder") : 60118, S = t ? Symbol.for("react.scope") : 60119; + function C(R) { + return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. + R === r || R === d || R === a || R === o || R === f || R === w || typeof R == "object" && R !== null && (R.$$typeof === v || R.$$typeof === g || R.$$typeof === s || R.$$typeof === l || R.$$typeof === u || R.$$typeof === h || R.$$typeof === N || R.$$typeof === S || R.$$typeof === m); + } + function E(R) { + if (typeof R == "object" && R !== null) { + var Et = R.$$typeof; + switch (Et) { case e: - var V = S.type; - switch (V) { + var j = R.type; + switch (j) { case c: case d: case r: case a: case o: case f: - return V; + return j; default: - var xt = V && V.$$typeof; + var xt = j && j.$$typeof; switch (xt) { case l: case u: - case b: + case v: case g: case s: return xt; default: - return ft; + return Et; } } case n: - return ft; + return Et; } } } - var v = c, $ = d, X = l, _ = s, I = e, U = u, B = r, M = b, D = g, K = n, H = a, z = o, tt = f, rt = !1; - function ot(S) { - return rt || (rt = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(S) || E(S) === c; + var b = c, P = d, L = l, _ = s, $ = e, F = u, D = r, A = v, M = g, Y = n, U = a, V = o, tt = f, ot = !1; + function at(R) { + return ot || (ot = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), x(R) || E(R) === c; } - function x(S) { - return E(S) === d; + function x(R) { + return E(R) === d; } - function R(S) { - return E(S) === l; + function O(R) { + return E(R) === l; } - function W(S) { - return E(S) === s; + function G(R) { + return E(R) === s; } - function Y(S) { - return typeof S == "object" && S !== null && S.$$typeof === e; + function X(R) { + return typeof R == "object" && R !== null && R.$$typeof === e; } - function G(S) { - return E(S) === u; + function z(R) { + return E(R) === u; } - function J(S) { - return E(S) === r; + function q(R) { + return E(R) === r; } - function L(S) { - return E(S) === b; + function W(R) { + return E(R) === v; } - function Z(S) { - return E(S) === g; + function K(R) { + return E(R) === g; } - function q(S) { - return E(S) === n; + function H(R) { + return E(R) === n; } - function Q(S) { - return E(S) === a; + function Z(R) { + return E(R) === a; } - function O(S) { - return E(S) === o; + function Q(R) { + return E(R) === o; } - function F(S) { - return E(S) === f; + function lt(R) { + return E(R) === f; } - ct.AsyncMode = v, ct.ConcurrentMode = $, ct.ContextConsumer = X, ct.ContextProvider = _, ct.Element = I, ct.ForwardRef = U, ct.Fragment = B, ct.Lazy = M, ct.Memo = D, ct.Portal = K, ct.Profiler = H, ct.StrictMode = z, ct.Suspense = tt, ct.isAsyncMode = ot, ct.isConcurrentMode = x, ct.isContextConsumer = R, ct.isContextProvider = W, ct.isElement = Y, ct.isForwardRef = G, ct.isFragment = J, ct.isLazy = L, ct.isMemo = Z, ct.isPortal = q, ct.isProfiler = Q, ct.isStrictMode = O, ct.isSuspense = F, ct.isValidElementType = C, ct.typeOf = E; - }()), ct; + ut.AsyncMode = b, ut.ConcurrentMode = P, ut.ContextConsumer = L, ut.ContextProvider = _, ut.Element = $, ut.ForwardRef = F, ut.Fragment = D, ut.Lazy = A, ut.Memo = M, ut.Portal = Y, ut.Profiler = U, ut.StrictMode = V, ut.Suspense = tt, ut.isAsyncMode = at, ut.isConcurrentMode = x, ut.isContextConsumer = O, ut.isContextProvider = G, ut.isElement = X, ut.isForwardRef = z, ut.isFragment = q, ut.isLazy = W, ut.isMemo = K, ut.isPortal = H, ut.isProfiler = Z, ut.isStrictMode = Q, ut.isSuspense = lt, ut.isValidElementType = C, ut.typeOf = E; + }()), ut; } var xa; -function es() { - return xa || (xa = 1, process.env.NODE_ENV === "production" ? Yn.exports = jd() : Yn.exports = Vd()), Yn.exports; +function ns() { + return xa || (xa = 1, process.env.NODE_ENV === "production" ? Hn.exports = Fd() : Hn.exports = Ud()), Hn.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ -var Lr, Na; -function zd() { +var Br, Na; +function Gd() { if (Na) - return Lr; + return Br; Na = 1; var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable; function r(a) { @@ -3961,7 +3961,7 @@ function zd() { return !1; } } - return Lr = o() ? Object.assign : function(a, s) { + return Br = o() ? Object.assign : function(a, s) { for (var l, c = r(a), d, u = 1; u < arguments.length; u++) { l = Object(arguments[u]); for (var f in l) @@ -3973,29 +3973,29 @@ function zd() { } } return c; - }, Lr; + }, Br; } -var Fr, ka; +var jr, ka; function Po() { if (ka) - return Fr; + return jr; ka = 1; var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; - return Fr = t, Fr; + return jr = t, jr; } -var Ur, Ea; -function ns() { - return Ea || (Ea = 1, Ur = Function.call.bind(Object.prototype.hasOwnProperty)), Ur; +var Vr, Ea; +function rs() { + return Ea || (Ea = 1, Vr = Function.call.bind(Object.prototype.hasOwnProperty)), Vr; } -var Gr, Ta; -function Ld() { +var zr, Ta; +function Xd() { if (Ta) - return Gr; + return zr; Ta = 1; var t = function() { }; if (process.env.NODE_ENV !== "production") { - var e = Po(), n = {}, r = ns(); + var e = Po(), n = {}, r = rs(); t = function(a) { var s = "Warning: " + a; typeof console < "u" && console.error(s); @@ -4018,8 +4018,8 @@ function Ld() { throw w.name = "Invariant Violation", w; } f = a[u](s, u, c, l, null, e); - } catch (b) { - f = b; + } catch (v) { + f = v; } if (f && !(f instanceof Error) && t( (c || "React class") + ": type specification of " + l + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." @@ -4035,14 +4035,14 @@ function Ld() { } return o.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (n = {}); - }, Gr = o, Gr; + }, zr = o, zr; } -var Xr, Sa; -function Fd() { +var Lr, Sa; +function Hd() { if (Sa) - return Xr; + return Lr; Sa = 1; - var t = es(), e = zd(), n = Po(), r = ns(), o = Ld(), a = function() { + var t = ns(), e = Gd(), n = Po(), r = rs(), o = Xd(), a = function() { }; process.env.NODE_ENV !== "production" && (a = function(l) { var c = "Warning: " + l; @@ -4055,239 +4055,239 @@ function Fd() { function s() { return null; } - return Xr = function(l, c) { + return Lr = function(l, c) { var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator"; function f(x) { - var R = x && (d && x[d] || x[u]); - if (typeof R == "function") - return R; + var O = x && (d && x[d] || x[u]); + if (typeof O == "function") + return O; } var w = "<>", g = { - array: k("array"), - bigint: k("bigint"), - bool: k("boolean"), - func: k("function"), - number: k("number"), - object: k("object"), - string: k("string"), - symbol: k("symbol"), - any: P(), + array: N("array"), + bigint: N("bigint"), + bool: N("boolean"), + func: N("function"), + number: N("number"), + object: N("object"), + string: N("string"), + symbol: N("symbol"), + any: S(), arrayOf: C, element: E(), - elementType: v(), - instanceOf: $, - node: U(), + elementType: b(), + instanceOf: P, + node: F(), objectOf: _, - oneOf: X, - oneOfType: I, - shape: M, - exact: D + oneOf: L, + oneOfType: $, + shape: A, + exact: M }; - function b(x, R) { - return x === R ? x !== 0 || 1 / x === 1 / R : x !== x && R !== R; + function v(x, O) { + return x === O ? x !== 0 || 1 / x === 1 / O : x !== x && O !== O; } - function m(x, R) { - this.message = x, this.data = R && typeof R == "object" ? R : {}, this.stack = ""; + function m(x, O) { + this.message = x, this.data = O && typeof O == "object" ? O : {}, this.stack = ""; } m.prototype = Error.prototype; function h(x) { if (process.env.NODE_ENV !== "production") - var R = {}, W = 0; - function Y(J, L, Z, q, Q, O, F) { - if (q = q || w, O = O || Z, F !== n) { + var O = {}, G = 0; + function X(q, W, K, H, Z, Q, lt) { + if (H = H || w, Q = Q || K, lt !== n) { if (c) { - var S = new Error( + var R = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" ); - throw S.name = "Invariant Violation", S; + throw R.name = "Invariant Violation", R; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { - var ft = q + ":" + Z; - !R[ft] && // Avoid spamming the console because they are often not actionable except for lib authors - W < 3 && (a( - "You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." - ), R[ft] = !0, W++); + var Et = H + ":" + K; + !O[Et] && // Avoid spamming the console because they are often not actionable except for lib authors + G < 3 && (a( + "You are manually calling a React.PropTypes validation function for the `" + Q + "` prop on `" + H + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." + ), O[Et] = !0, G++); } } - return L[Z] == null ? J ? L[Z] === null ? new m("The " + Q + " `" + O + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new m("The " + Q + " `" + O + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : x(L, Z, q, Q, O); + return W[K] == null ? q ? W[K] === null ? new m("The " + Z + " `" + Q + "` is marked as required " + ("in `" + H + "`, but its value is `null`.")) : new m("The " + Z + " `" + Q + "` is marked as required in " + ("`" + H + "`, but its value is `undefined`.")) : null : x(W, K, H, Z, Q); } - var G = Y.bind(null, !1); - return G.isRequired = Y.bind(null, !0), G; - } - function k(x) { - function R(W, Y, G, J, L, Z) { - var q = W[Y], Q = z(q); - if (Q !== x) { - var O = tt(q); + var z = X.bind(null, !1); + return z.isRequired = X.bind(null, !0), z; + } + function N(x) { + function O(G, X, z, q, W, K) { + var H = G[X], Z = V(H); + if (Z !== x) { + var Q = tt(H); return new m( - "Invalid " + J + " `" + L + "` of type " + ("`" + O + "` supplied to `" + G + "`, expected ") + ("`" + x + "`."), + "Invalid " + q + " `" + W + "` of type " + ("`" + Q + "` supplied to `" + z + "`, expected ") + ("`" + x + "`."), { expectedType: x } ); } return null; } - return h(R); + return h(O); } - function P() { + function S() { return h(s); } function C(x) { - function R(W, Y, G, J, L) { + function O(G, X, z, q, W) { if (typeof x != "function") - return new m("Property `" + L + "` of component `" + G + "` has invalid PropType notation inside arrayOf."); - var Z = W[Y]; - if (!Array.isArray(Z)) { - var q = z(Z); - return new m("Invalid " + J + " `" + L + "` of type " + ("`" + q + "` supplied to `" + G + "`, expected an array.")); + return new m("Property `" + W + "` of component `" + z + "` has invalid PropType notation inside arrayOf."); + var K = G[X]; + if (!Array.isArray(K)) { + var H = V(K); + return new m("Invalid " + q + " `" + W + "` of type " + ("`" + H + "` supplied to `" + z + "`, expected an array.")); } - for (var Q = 0; Q < Z.length; Q++) { - var O = x(Z, Q, G, J, L + "[" + Q + "]", n); - if (O instanceof Error) - return O; + for (var Z = 0; Z < K.length; Z++) { + var Q = x(K, Z, z, q, W + "[" + Z + "]", n); + if (Q instanceof Error) + return Q; } return null; } - return h(R); + return h(O); } function E() { - function x(R, W, Y, G, J) { - var L = R[W]; - if (!l(L)) { - var Z = z(L); - return new m("Invalid " + G + " `" + J + "` of type " + ("`" + Z + "` supplied to `" + Y + "`, expected a single ReactElement.")); + function x(O, G, X, z, q) { + var W = O[G]; + if (!l(W)) { + var K = V(W); + return new m("Invalid " + z + " `" + q + "` of type " + ("`" + K + "` supplied to `" + X + "`, expected a single ReactElement.")); } return null; } return h(x); } - function v() { - function x(R, W, Y, G, J) { - var L = R[W]; - if (!t.isValidElementType(L)) { - var Z = z(L); - return new m("Invalid " + G + " `" + J + "` of type " + ("`" + Z + "` supplied to `" + Y + "`, expected a single ReactElement type.")); + function b() { + function x(O, G, X, z, q) { + var W = O[G]; + if (!t.isValidElementType(W)) { + var K = V(W); + return new m("Invalid " + z + " `" + q + "` of type " + ("`" + K + "` supplied to `" + X + "`, expected a single ReactElement type.")); } return null; } return h(x); } - function $(x) { - function R(W, Y, G, J, L) { - if (!(W[Y] instanceof x)) { - var Z = x.name || w, q = ot(W[Y]); - return new m("Invalid " + J + " `" + L + "` of type " + ("`" + q + "` supplied to `" + G + "`, expected ") + ("instance of `" + Z + "`.")); + function P(x) { + function O(G, X, z, q, W) { + if (!(G[X] instanceof x)) { + var K = x.name || w, H = at(G[X]); + return new m("Invalid " + q + " `" + W + "` of type " + ("`" + H + "` supplied to `" + z + "`, expected ") + ("instance of `" + K + "`.")); } return null; } - return h(R); + return h(O); } - function X(x) { + function L(x) { if (!Array.isArray(x)) return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a( "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])." ) : a("Invalid argument supplied to oneOf, expected an array.")), s; - function R(W, Y, G, J, L) { - for (var Z = W[Y], q = 0; q < x.length; q++) - if (b(Z, x[q])) + function O(G, X, z, q, W) { + for (var K = G[X], H = 0; H < x.length; H++) + if (v(K, x[H])) return null; - var Q = JSON.stringify(x, function(F, S) { - var ft = tt(S); - return ft === "symbol" ? String(S) : S; + var Z = JSON.stringify(x, function(lt, R) { + var Et = tt(R); + return Et === "symbol" ? String(R) : R; }); - return new m("Invalid " + J + " `" + L + "` of value `" + String(Z) + "` " + ("supplied to `" + G + "`, expected one of " + Q + ".")); + return new m("Invalid " + q + " `" + W + "` of value `" + String(K) + "` " + ("supplied to `" + z + "`, expected one of " + Z + ".")); } - return h(R); + return h(O); } function _(x) { - function R(W, Y, G, J, L) { + function O(G, X, z, q, W) { if (typeof x != "function") - return new m("Property `" + L + "` of component `" + G + "` has invalid PropType notation inside objectOf."); - var Z = W[Y], q = z(Z); - if (q !== "object") - return new m("Invalid " + J + " `" + L + "` of type " + ("`" + q + "` supplied to `" + G + "`, expected an object.")); - for (var Q in Z) - if (r(Z, Q)) { - var O = x(Z, Q, G, J, L + "." + Q, n); - if (O instanceof Error) - return O; + return new m("Property `" + W + "` of component `" + z + "` has invalid PropType notation inside objectOf."); + var K = G[X], H = V(K); + if (H !== "object") + return new m("Invalid " + q + " `" + W + "` of type " + ("`" + H + "` supplied to `" + z + "`, expected an object.")); + for (var Z in K) + if (r(K, Z)) { + var Q = x(K, Z, z, q, W + "." + Z, n); + if (Q instanceof Error) + return Q; } return null; } - return h(R); + return h(O); } - function I(x) { + function $(x) { if (!Array.isArray(x)) return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s; - for (var R = 0; R < x.length; R++) { - var W = x[R]; - if (typeof W != "function") + for (var O = 0; O < x.length; O++) { + var G = x[O]; + if (typeof G != "function") return a( - "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + rt(W) + " at index " + R + "." + "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ot(G) + " at index " + O + "." ), s; } - function Y(G, J, L, Z, q) { - for (var Q = [], O = 0; O < x.length; O++) { - var F = x[O], S = F(G, J, L, Z, q, n); - if (S == null) + function X(z, q, W, K, H) { + for (var Z = [], Q = 0; Q < x.length; Q++) { + var lt = x[Q], R = lt(z, q, W, K, H, n); + if (R == null) return null; - S.data && r(S.data, "expectedType") && Q.push(S.data.expectedType); + R.data && r(R.data, "expectedType") && Z.push(R.data.expectedType); } - var ft = Q.length > 0 ? ", expected one of type [" + Q.join(", ") + "]" : ""; - return new m("Invalid " + Z + " `" + q + "` supplied to " + ("`" + L + "`" + ft + ".")); + var Et = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : ""; + return new m("Invalid " + K + " `" + H + "` supplied to " + ("`" + W + "`" + Et + ".")); } - return h(Y); + return h(X); } - function U() { - function x(R, W, Y, G, J) { - return K(R[W]) ? null : new m("Invalid " + G + " `" + J + "` supplied to " + ("`" + Y + "`, expected a ReactNode.")); + function F() { + function x(O, G, X, z, q) { + return Y(O[G]) ? null : new m("Invalid " + z + " `" + q + "` supplied to " + ("`" + X + "`, expected a ReactNode.")); } return h(x); } - function B(x, R, W, Y, G) { + function D(x, O, G, X, z) { return new m( - (x || "React class") + ": " + R + " type `" + W + "." + Y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + G + "`." + (x || "React class") + ": " + O + " type `" + G + "." + X + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + z + "`." ); } - function M(x) { - function R(W, Y, G, J, L) { - var Z = W[Y], q = z(Z); - if (q !== "object") - return new m("Invalid " + J + " `" + L + "` of type `" + q + "` " + ("supplied to `" + G + "`, expected `object`.")); - for (var Q in x) { - var O = x[Q]; - if (typeof O != "function") - return B(G, J, L, Q, tt(O)); - var F = O(Z, Q, G, J, L + "." + Q, n); - if (F) - return F; + function A(x) { + function O(G, X, z, q, W) { + var K = G[X], H = V(K); + if (H !== "object") + return new m("Invalid " + q + " `" + W + "` of type `" + H + "` " + ("supplied to `" + z + "`, expected `object`.")); + for (var Z in x) { + var Q = x[Z]; + if (typeof Q != "function") + return D(z, q, W, Z, tt(Q)); + var lt = Q(K, Z, z, q, W + "." + Z, n); + if (lt) + return lt; } return null; } - return h(R); - } - function D(x) { - function R(W, Y, G, J, L) { - var Z = W[Y], q = z(Z); - if (q !== "object") - return new m("Invalid " + J + " `" + L + "` of type `" + q + "` " + ("supplied to `" + G + "`, expected `object`.")); - var Q = e({}, W[Y], x); - for (var O in Q) { - var F = x[O]; - if (r(x, O) && typeof F != "function") - return B(G, J, L, O, tt(F)); - if (!F) + return h(O); + } + function M(x) { + function O(G, X, z, q, W) { + var K = G[X], H = V(K); + if (H !== "object") + return new m("Invalid " + q + " `" + W + "` of type `" + H + "` " + ("supplied to `" + z + "`, expected `object`.")); + var Z = e({}, G[X], x); + for (var Q in Z) { + var lt = x[Q]; + if (r(x, Q) && typeof lt != "function") + return D(z, q, W, Q, tt(lt)); + if (!lt) return new m( - "Invalid " + J + " `" + L + "` key `" + O + "` supplied to `" + G + "`.\nBad object: " + JSON.stringify(W[Y], null, " ") + ` + "Invalid " + q + " `" + W + "` key `" + Q + "` supplied to `" + z + "`.\nBad object: " + JSON.stringify(G[X], null, " ") + ` Valid keys: ` + JSON.stringify(Object.keys(x), null, " ") ); - var S = F(Z, O, G, J, L + "." + O, n); - if (S) - return S; + var R = lt(K, Q, z, q, W + "." + Q, n); + if (R) + return R; } return null; } - return h(R); + return h(O); } - function K(x) { + function Y(x) { switch (typeof x) { case "number": case "string": @@ -4297,20 +4297,20 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ") return !x; case "object": if (Array.isArray(x)) - return x.every(K); + return x.every(Y); if (x === null || l(x)) return !0; - var R = f(x); - if (R) { - var W = R.call(x), Y; - if (R !== x.entries) { - for (; !(Y = W.next()).done; ) - if (!K(Y.value)) + var O = f(x); + if (O) { + var G = O.call(x), X; + if (O !== x.entries) { + for (; !(X = G.next()).done; ) + if (!Y(X.value)) return !1; } else - for (; !(Y = W.next()).done; ) { - var G = Y.value; - if (G && !K(G[1])) + for (; !(X = G.next()).done; ) { + var z = X.value; + if (z && !Y(z[1])) return !1; } } else @@ -4320,56 +4320,56 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ") return !1; } } - function H(x, R) { - return x === "symbol" ? !0 : R ? R["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && R instanceof Symbol : !1; + function U(x, O) { + return x === "symbol" ? !0 : O ? O["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && O instanceof Symbol : !1; } - function z(x) { - var R = typeof x; - return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : H(R, x) ? "symbol" : R; + function V(x) { + var O = typeof x; + return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : U(O, x) ? "symbol" : O; } function tt(x) { if (typeof x > "u" || x === null) return "" + x; - var R = z(x); - if (R === "object") { + var O = V(x); + if (O === "object") { if (x instanceof Date) return "date"; if (x instanceof RegExp) return "regexp"; } - return R; + return O; } - function rt(x) { - var R = tt(x); - switch (R) { + function ot(x) { + var O = tt(x); + switch (O) { case "array": case "object": - return "an " + R; + return "an " + O; case "boolean": case "date": case "regexp": - return "a " + R; + return "a " + O; default: - return R; + return O; } } - function ot(x) { + function at(x) { return !x.constructor || !x.constructor.name ? w : x.constructor.name; } return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g; - }, Xr; + }, Lr; } -var Hr, Ca; -function Ud() { +var Fr, Ca; +function Yd() { if (Ca) - return Hr; + return Fr; Ca = 1; var t = Po(); function e() { } function n() { } - return n.resetWarningCache = e, Hr = function() { + return n.resetWarningCache = e, Fr = function() { function r(s, l, c, d, u, f) { if (f !== t) { var w = new Error( @@ -4406,22 +4406,22 @@ function Ud() { resetWarningCache: e }; return a.PropTypes = a, a; - }, Hr; + }, Fr; } if (process.env.NODE_ENV !== "production") { - var Gd = es(), Xd = !0; - ao.exports = Fd()(Gd.isElement, Xd); + var Wd = ns(), qd = !0; + eo.exports = Hd()(Wd.isElement, qd); } else - ao.exports = Ud()(); -var Hd = ao.exports; -const p = /* @__PURE__ */ Md(Hd); -function Yd(t) { + eo.exports = Yd()(); +var Kd = eo.exports; +const p = /* @__PURE__ */ Vd(Kd); +function Jd(t) { const { prototype: e = {} } = t; return !!e.isReactComponent; } -function rs(t, e, n, r, o) { +function os(t, e, n, r, o) { const a = t[e], s = o || e; if (a == null || // When server-side rendering React doesn't warn either. // This is not an accurate check for SSR. @@ -4431,26 +4431,26 @@ function rs(t, e, n, r, o) { return null; let l; const c = a.type; - return typeof c == "function" && !Yd(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null; -} -const os = _o(p.element, rs); -os.isRequired = _o(p.element.isRequired, rs); -const as = os, Wd = "exact-prop: ​"; -function qd(t) { - return process.env.NODE_ENV === "production" ? t : A({}, t, { - [Wd]: (e) => { + return typeof c == "function" && !Jd(c) && (l = "Did you accidentally use a plain function component for an element instead?"), l !== void 0 ? new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null; +} +const as = _o(p.element, os); +as.isRequired = _o(p.element.isRequired, os); +const is = as, Zd = "exact-prop: ​"; +function Qd(t) { + return process.env.NODE_ENV === "production" ? t : I({}, t, { + [Zd]: (e) => { const n = Object.keys(e).filter((r) => !t.hasOwnProperty(r)); return n.length > 0 ? new Error(`The following props are not supported: ${n.map((r) => `\`${r}\``).join(", ")}. Please remove them.`) : null; } }); } -function Ye(t) { +function Xe(t) { let e = "https://mui.com/production-error/?code=" + t; for (let n = 1; n < arguments.length; n += 1) e += "&args[]=" + encodeURIComponent(arguments[n]); return "Minified MUI error #" + t + "; visit " + e + " for the full message."; } -var io = { exports: {} }, dt = {}; +var no = { exports: {} }, pt = {}; /** * @license React * react-is.production.min.js @@ -4461,16 +4461,16 @@ var io = { exports: {} }, dt = {}; * LICENSE file in the root directory of this source tree. */ var Oa; -function Kd() { +function tu() { if (Oa) - return dt; + return pt; Oa = 1; - var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), b; - b = Symbol.for("react.module.reference"); + var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v; + v = Symbol.for("react.module.reference"); function m(h) { if (typeof h == "object" && h !== null) { - var k = h.$$typeof; - switch (k) { + var N = h.$$typeof; + switch (N) { case t: switch (h = h.type, h) { case n: @@ -4489,47 +4489,47 @@ function Kd() { case a: return h; default: - return k; + return N; } } case e: - return k; + return N; } } } - return dt.ContextConsumer = s, dt.ContextProvider = a, dt.Element = t, dt.ForwardRef = c, dt.Fragment = n, dt.Lazy = w, dt.Memo = f, dt.Portal = e, dt.Profiler = o, dt.StrictMode = r, dt.Suspense = d, dt.SuspenseList = u, dt.isAsyncMode = function() { + return pt.ContextConsumer = s, pt.ContextProvider = a, pt.Element = t, pt.ForwardRef = c, pt.Fragment = n, pt.Lazy = w, pt.Memo = f, pt.Portal = e, pt.Profiler = o, pt.StrictMode = r, pt.Suspense = d, pt.SuspenseList = u, pt.isAsyncMode = function() { return !1; - }, dt.isConcurrentMode = function() { + }, pt.isConcurrentMode = function() { return !1; - }, dt.isContextConsumer = function(h) { + }, pt.isContextConsumer = function(h) { return m(h) === s; - }, dt.isContextProvider = function(h) { + }, pt.isContextProvider = function(h) { return m(h) === a; - }, dt.isElement = function(h) { + }, pt.isElement = function(h) { return typeof h == "object" && h !== null && h.$$typeof === t; - }, dt.isForwardRef = function(h) { + }, pt.isForwardRef = function(h) { return m(h) === c; - }, dt.isFragment = function(h) { + }, pt.isFragment = function(h) { return m(h) === n; - }, dt.isLazy = function(h) { + }, pt.isLazy = function(h) { return m(h) === w; - }, dt.isMemo = function(h) { + }, pt.isMemo = function(h) { return m(h) === f; - }, dt.isPortal = function(h) { + }, pt.isPortal = function(h) { return m(h) === e; - }, dt.isProfiler = function(h) { + }, pt.isProfiler = function(h) { return m(h) === o; - }, dt.isStrictMode = function(h) { + }, pt.isStrictMode = function(h) { return m(h) === r; - }, dt.isSuspense = function(h) { + }, pt.isSuspense = function(h) { return m(h) === d; - }, dt.isSuspenseList = function(h) { + }, pt.isSuspenseList = function(h) { return m(h) === u; - }, dt.isValidElementType = function(h) { - return typeof h == "string" || typeof h == "function" || h === n || h === o || h === r || h === d || h === u || h === g || typeof h == "object" && h !== null && (h.$$typeof === w || h.$$typeof === f || h.$$typeof === a || h.$$typeof === s || h.$$typeof === c || h.$$typeof === b || h.getModuleId !== void 0); - }, dt.typeOf = m, dt; + }, pt.isValidElementType = function(h) { + return typeof h == "string" || typeof h == "function" || h === n || h === o || h === r || h === d || h === u || h === g || typeof h == "object" && h !== null && (h.$$typeof === w || h.$$typeof === f || h.$$typeof === a || h.$$typeof === s || h.$$typeof === c || h.$$typeof === v || h.getModuleId !== void 0); + }, pt.typeOf = m, pt; } -var ut = {}; +var wt = {}; /** * @license React * react-is.development.js @@ -4540,40 +4540,40 @@ var ut = {}; * LICENSE file in the root directory of this source tree. */ var Ra; -function Jd() { +function eu() { return Ra || (Ra = 1, process.env.NODE_ENV !== "production" && function() { - var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), b = !1, m = !1, h = !1, k = !1, P = !1, C; + var t = Symbol.for("react.element"), e = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), v = !1, m = !1, h = !1, N = !1, S = !1, C; C = Symbol.for("react.module.reference"); - function E(V) { - return !!(typeof V == "string" || typeof V == "function" || V === n || V === o || P || V === r || V === d || V === u || k || V === g || b || m || h || typeof V == "object" && V !== null && (V.$$typeof === w || V.$$typeof === f || V.$$typeof === a || V.$$typeof === s || V.$$typeof === c || // This needs to include all possible module reference object + function E(j) { + return !!(typeof j == "string" || typeof j == "function" || j === n || j === o || S || j === r || j === d || j === u || N || j === g || v || m || h || typeof j == "object" && j !== null && (j.$$typeof === w || j.$$typeof === f || j.$$typeof === a || j.$$typeof === s || j.$$typeof === c || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. - V.$$typeof === C || V.getModuleId !== void 0)); + j.$$typeof === C || j.getModuleId !== void 0)); } - function v(V) { - if (typeof V == "object" && V !== null) { - var xt = V.$$typeof; + function b(j) { + if (typeof j == "object" && j !== null) { + var xt = j.$$typeof; switch (xt) { case t: - var Ht = V.type; - switch (Ht) { + var Ot = j.type; + switch (Ot) { case n: case o: case r: case d: case u: - return Ht; + return Ot; default: - var pe = Ht && Ht.$$typeof; - switch (pe) { + var oe = Ot && Ot.$$typeof; + switch (oe) { case l: case s: case c: case w: case f: case a: - return pe; + return oe; default: return xt; } @@ -4583,72 +4583,72 @@ function Jd() { } } } - var $ = s, X = a, _ = t, I = c, U = n, B = w, M = f, D = e, K = o, H = r, z = d, tt = u, rt = !1, ot = !1; - function x(V) { - return rt || (rt = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1; + var P = s, L = a, _ = t, $ = c, F = n, D = w, A = f, M = e, Y = o, U = r, V = d, tt = u, ot = !1, at = !1; + function x(j) { + return ot || (ot = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1; } - function R(V) { - return ot || (ot = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1; + function O(j) { + return at || (at = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1; } - function W(V) { - return v(V) === s; + function G(j) { + return b(j) === s; } - function Y(V) { - return v(V) === a; + function X(j) { + return b(j) === a; } - function G(V) { - return typeof V == "object" && V !== null && V.$$typeof === t; + function z(j) { + return typeof j == "object" && j !== null && j.$$typeof === t; } - function J(V) { - return v(V) === c; + function q(j) { + return b(j) === c; } - function L(V) { - return v(V) === n; + function W(j) { + return b(j) === n; } - function Z(V) { - return v(V) === w; + function K(j) { + return b(j) === w; } - function q(V) { - return v(V) === f; + function H(j) { + return b(j) === f; } - function Q(V) { - return v(V) === e; + function Z(j) { + return b(j) === e; } - function O(V) { - return v(V) === o; + function Q(j) { + return b(j) === o; } - function F(V) { - return v(V) === r; + function lt(j) { + return b(j) === r; } - function S(V) { - return v(V) === d; + function R(j) { + return b(j) === d; } - function ft(V) { - return v(V) === u; + function Et(j) { + return b(j) === u; } - ut.ContextConsumer = $, ut.ContextProvider = X, ut.Element = _, ut.ForwardRef = I, ut.Fragment = U, ut.Lazy = B, ut.Memo = M, ut.Portal = D, ut.Profiler = K, ut.StrictMode = H, ut.Suspense = z, ut.SuspenseList = tt, ut.isAsyncMode = x, ut.isConcurrentMode = R, ut.isContextConsumer = W, ut.isContextProvider = Y, ut.isElement = G, ut.isForwardRef = J, ut.isFragment = L, ut.isLazy = Z, ut.isMemo = q, ut.isPortal = Q, ut.isProfiler = O, ut.isStrictMode = F, ut.isSuspense = S, ut.isSuspenseList = ft, ut.isValidElementType = E, ut.typeOf = v; - }()), ut; + wt.ContextConsumer = P, wt.ContextProvider = L, wt.Element = _, wt.ForwardRef = $, wt.Fragment = F, wt.Lazy = D, wt.Memo = A, wt.Portal = M, wt.Profiler = Y, wt.StrictMode = U, wt.Suspense = V, wt.SuspenseList = tt, wt.isAsyncMode = x, wt.isConcurrentMode = O, wt.isContextConsumer = G, wt.isContextProvider = X, wt.isElement = z, wt.isForwardRef = q, wt.isFragment = W, wt.isLazy = K, wt.isMemo = H, wt.isPortal = Z, wt.isProfiler = Q, wt.isStrictMode = lt, wt.isSuspense = R, wt.isSuspenseList = Et, wt.isValidElementType = E, wt.typeOf = b; + }()), wt; } -process.env.NODE_ENV === "production" ? io.exports = Kd() : io.exports = Jd(); -var _a = io.exports; -const Zd = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/; -function Qd(t) { - const e = `${t}`.match(Zd); +process.env.NODE_ENV === "production" ? no.exports = tu() : no.exports = eu(); +var _a = no.exports; +const nu = /^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/; +function ru(t) { + const e = `${t}`.match(nu); return e && e[1] || ""; } -function is(t, e = "") { - return t.displayName || t.name || Qd(t) || e; +function ss(t, e = "") { + return t.displayName || t.name || ru(t) || e; } function Pa(t, e, n) { - const r = is(e); + const r = ss(e); return t.displayName || (r !== "" ? `${n}(${r})` : n); } -function tu(t) { +function ou(t) { if (t != null) { if (typeof t == "string") return t; if (typeof t == "function") - return is(t, "Component"); + return ss(t, "Component"); if (typeof t == "object") switch (t.$$typeof) { case _a.ForwardRef: @@ -4660,25 +4660,25 @@ function tu(t) { } } } -function Tn(t, e, n, r, o) { +function kn(t, e, n, r, o) { if (process.env.NODE_ENV === "production") return null; const a = t[e], s = o || e; return a == null ? null : a && a.nodeType !== 1 ? new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an HTMLElement.`) : null; } -const eu = p.oneOfType([p.func, p.object]), ss = eu; -function Qt(t) { +const au = p.oneOfType([p.func, p.object]), ls = au; +function ne(t) { if (typeof t != "string") - throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Ye(7)); + throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : Xe(7)); return t.charAt(0).toUpperCase() + t.slice(1); } -function nu(...t) { +function iu(...t) { return t.reduce((e, n) => n == null ? e : function(...o) { e.apply(this, o), n.apply(this, o); }, () => { }); } -function ru(t, e = 166) { +function su(t, e = 166) { let n; function r(...o) { const a = () => { @@ -4690,31 +4690,31 @@ function ru(t, e = 166) { clearTimeout(n); }, r; } -function ou(t, e) { +function lu(t, e) { return process.env.NODE_ENV === "production" ? () => null : (n, r, o, a, s) => { const l = o || "<>", c = s || r; return typeof n[r] < "u" ? new Error(`The ${a} \`${c}\` of \`${l}\` is deprecated. ${e}`) : null; }; } -function au(t, e) { +function cu(t, e) { var n, r; - return /* @__PURE__ */ j.isValidElement(t) && e.indexOf( + return /* @__PURE__ */ B.isValidElement(t) && e.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45 // eslint-disable-next-line no-underscore-dangle (n = t.type.muiName) != null ? n : (r = t.type) == null || (r = r._payload) == null || (r = r.value) == null ? void 0 : r.muiName ) !== -1; } -function ir(t) { +function nr(t) { return t && t.ownerDocument || document; } -function iu(t) { - return ir(t).defaultView || window; +function du(t) { + return nr(t).defaultView || window; } -function su(t, e) { +function uu(t, e) { if (process.env.NODE_ENV === "production") return () => null; - const n = e ? A({}, e.propTypes) : null; + const n = e ? I({}, e.propTypes) : null; return (o) => (a, s, l, c, d, ...u) => { const f = d || s, w = n == null ? void 0 : n[f]; if (w) { @@ -4725,32 +4725,32 @@ function su(t, e) { return typeof a[s] < "u" && !a[o] ? new Error(`The prop \`${f}\` of \`${t}\` can only be used together with the \`${o}\` prop.`) : null; }; } -function sr(t, e) { +function rr(t, e) { typeof t == "function" ? t(e) : t && (t.current = e); } -const lu = typeof window < "u" ? j.useLayoutEffect : j.useEffect, We = lu; +const pu = typeof window < "u" ? B.useLayoutEffect : B.useEffect, He = pu; let $a = 0; -function cu(t) { - const [e, n] = j.useState(t), r = t || e; - return j.useEffect(() => { +function wu(t) { + const [e, n] = B.useState(t), r = t || e; + return B.useEffect(() => { e == null && ($a += 1, n(`mui-${$a}`)); }, [e]), r; } -const Ia = j["useId".toString()]; -function ls(t) { +const Ia = B["useId".toString()]; +function cs(t) { if (Ia !== void 0) { const e = Ia(); return t ?? e; } - return cu(t); + return wu(t); } -function du(t, e, n, r, o) { +function fu(t, e, n, r, o) { if (process.env.NODE_ENV === "production") return null; const a = o || e; return typeof t[e] < "u" ? new Error(`The prop \`${a}\` is not supported. Please remove it.`) : null; } -function cs({ +function ds({ controlled: t, default: e, name: n, @@ -4758,49 +4758,49 @@ function cs({ }) { const { current: o - } = j.useRef(t !== void 0), [a, s] = j.useState(e), l = o ? t : a; + } = B.useRef(t !== void 0), [a, s] = B.useState(e), l = o ? t : a; if (process.env.NODE_ENV !== "production") { - j.useEffect(() => { + B.useEffect(() => { o !== (t !== void 0) && console.error([`MUI: A component is changing the ${o ? "" : "un"}controlled ${r} state of ${n} to be ${o ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(` `)); }, [r, n, t]); const { current: d - } = j.useRef(e); - j.useEffect(() => { + } = B.useRef(e); + B.useEffect(() => { !o && d !== e && console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(` `)); }, [JSON.stringify(e)]); } - const c = j.useCallback((d) => { + const c = B.useCallback((d) => { o || s(d); }, []); return [l, c]; } -function so(t) { - const e = j.useRef(t); - return We(() => { +function ro(t) { + const e = B.useRef(t); + return He(() => { e.current = t; - }), j.useRef((...n) => ( + }), B.useRef((...n) => ( // @ts-expect-error hide `this` (0, e.current)(...n) )).current; } -function Se(...t) { - return j.useMemo(() => t.every((e) => e == null) ? null : (e) => { +function Re(...t) { + return B.useMemo(() => t.every((e) => e == null) ? null : (e) => { t.forEach((n) => { - sr(n, e); + rr(n, e); }); }, t); } const Aa = {}; -function uu(t, e) { - const n = j.useRef(Aa); +function mu(t, e) { + const n = B.useRef(Aa); return n.current === Aa && (n.current = t(e)), n; } -const pu = []; -function wu(t) { - j.useEffect(t, pu); +const hu = []; +function gu(t) { + B.useEffect(t, hu); } class Dn { constructor() { @@ -4820,12 +4820,12 @@ class Dn { }, e); } } -function fn() { - const t = uu(Dn.create).current; - return wu(t.disposeEffect), t; +function wn() { + const t = mu(Dn.create).current; + return gu(t.disposeEffect), t; } -let gr = !0, lo = !1; -const fu = new Dn(), mu = { +let wr = !0, oo = !1; +const bu = new Dn(), vu = { text: !0, search: !0, url: !0, @@ -4840,26 +4840,26 @@ const fu = new Dn(), mu = { datetime: !0, "datetime-local": !0 }; -function hu(t) { +function yu(t) { const { type: e, tagName: n } = t; - return !!(n === "INPUT" && mu[e] && !t.readOnly || n === "TEXTAREA" && !t.readOnly || t.isContentEditable); + return !!(n === "INPUT" && vu[e] && !t.readOnly || n === "TEXTAREA" && !t.readOnly || t.isContentEditable); } -function gu(t) { - t.metaKey || t.altKey || t.ctrlKey || (gr = !0); +function xu(t) { + t.metaKey || t.altKey || t.ctrlKey || (wr = !0); } -function Yr() { - gr = !1; +function Ur() { + wr = !1; } -function bu() { - this.visibilityState === "hidden" && lo && (gr = !0); +function Nu() { + this.visibilityState === "hidden" && oo && (wr = !0); } -function vu(t) { - t.addEventListener("keydown", gu, !0), t.addEventListener("mousedown", Yr, !0), t.addEventListener("pointerdown", Yr, !0), t.addEventListener("touchstart", Yr, !0), t.addEventListener("visibilitychange", bu, !0); +function ku(t) { + t.addEventListener("keydown", xu, !0), t.addEventListener("mousedown", Ur, !0), t.addEventListener("pointerdown", Ur, !0), t.addEventListener("touchstart", Ur, !0), t.addEventListener("visibilitychange", Nu, !0); } -function yu(t) { +function Eu(t) { const { target: e } = t; @@ -4867,19 +4867,19 @@ function yu(t) { return e.matches(":focus-visible"); } catch { } - return gr || hu(e); + return wr || yu(e); } -function ds() { - const t = j.useCallback((o) => { - o != null && vu(o.ownerDocument); - }, []), e = j.useRef(!1); +function us() { + const t = B.useCallback((o) => { + o != null && ku(o.ownerDocument); + }, []), e = B.useRef(!1); function n() { - return e.current ? (lo = !0, fu.start(100, () => { - lo = !1; + return e.current ? (oo = !0, bu.start(100, () => { + oo = !1; }), e.current = !1, !0) : !1; } function r(o) { - return yu(o) ? (e.current = !0, !0) : !1; + return Eu(o) ? (e.current = !0, !0) : !1; } return { isFocusVisibleRef: e, @@ -4888,15 +4888,15 @@ function ds() { ref: t }; } -function us(t, e) { - const n = A({}, e); +function ps(t, e) { + const n = I({}, e); return Object.keys(t).forEach((r) => { if (r.toString().match(/^(components|slots)$/)) - n[r] = A({}, t[r], n[r]); + n[r] = I({}, t[r], n[r]); else if (r.toString().match(/^(componentsProps|slotProps)$/)) { const o = t[r] || {}, a = e[r]; - n[r] = {}, !a || !Object.keys(a) ? n[r] = o : !o || !Object.keys(o) ? n[r] = a : (n[r] = A({}, a), Object.keys(o).forEach((s) => { - n[r][s] = us(o[s], a[s]); + n[r] = {}, !a || !Object.keys(a) ? n[r] = o : !o || !Object.keys(o) ? n[r] = a : (n[r] = I({}, a), Object.keys(o).forEach((s) => { + n[r][s] = ps(o[s], a[s]); })); } else n[r] === void 0 && (n[r] = t[r]); @@ -4918,7 +4918,7 @@ function $o(t, e, n = void 0) { } ), r; } -const Ma = (t) => t, xu = () => { +const Ma = (t) => t, Tu = () => { let t = Ma; return { configure(e) { @@ -4931,7 +4931,7 @@ const Ma = (t) => t, xu = () => { t = Ma; } }; -}, Nu = xu(), ps = Nu, ws = { +}, Su = Tu(), ws = Su, fs = { active: "active", checked: "checked", completed: "completed", @@ -4945,20 +4945,20 @@ const Ma = (t) => t, xu = () => { required: "required", selected: "selected" }; -function br(t, e, n = "Mui") { - const r = ws[e]; - return r ? `${n}-${r}` : `${ps.generate(t)}-${e}`; +function fr(t, e, n = "Mui") { + const r = fs[e]; + return r ? `${n}-${r}` : `${ws.generate(t)}-${e}`; } -function fs(t, e, n = "Mui") { +function ms(t, e, n = "Mui") { const r = {}; return e.forEach((o) => { - r[o] = br(t, o, n); + r[o] = fr(t, o, n); }), r; } -function ku(t, e = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) { +function Cu(t, e = Number.MIN_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER) { return Math.max(e, Math.min(t, n)); } -function Et(t, e) { +function Rt(t, e) { if (t == null) return {}; var n = {}, r = Object.keys(t), o, a; @@ -4966,16 +4966,16 @@ function Et(t, e) { o = r[a], !(e.indexOf(o) >= 0) && (n[o] = t[o]); return n; } -const Eu = ["values", "unit", "step"], Tu = (t) => { +const Ou = ["values", "unit", "step"], Ru = (t) => { const e = Object.keys(t).map((n) => ({ key: n, val: t[n] })) || []; - return e.sort((n, r) => n.val - r.val), e.reduce((n, r) => A({}, n, { + return e.sort((n, r) => n.val - r.val), e.reduce((n, r) => I({}, n, { [r.key]: r.val }), {}); }; -function Su(t) { +function _u(t) { const { // The breakpoint **start** at this value. // For instance with the first breakpoint xs: [xs, sm). @@ -4993,7 +4993,7 @@ function Su(t) { }, unit: n = "px", step: r = 5 - } = t, o = Et(t, Eu), a = Tu(e), s = Object.keys(a); + } = t, o = Rt(t, Ou), a = Ru(e), s = Object.keys(a); function l(w) { return `@media (min-width:${typeof e[w] == "number" ? e[w] : w}${n})`; } @@ -5001,8 +5001,8 @@ function Su(t) { return `@media (max-width:${(typeof e[w] == "number" ? e[w] : w) - r / 100}${n})`; } function d(w, g) { - const b = s.indexOf(g); - return `@media (min-width:${typeof e[w] == "number" ? e[w] : w}${n}) and (max-width:${(b !== -1 && typeof e[s[b]] == "number" ? e[s[b]] : g) - r / 100}${n})`; + const v = s.indexOf(g); + return `@media (min-width:${typeof e[w] == "number" ? e[w] : w}${n}) and (max-width:${(v !== -1 && typeof e[s[v]] == "number" ? e[s[v]] : g) - r / 100}${n})`; } function u(w) { return s.indexOf(w) + 1 < s.length ? d(w, s[s.indexOf(w) + 1]) : l(w); @@ -5011,7 +5011,7 @@ function Su(t) { const g = s.indexOf(w); return g === 0 ? l(s[1]) : g === s.length - 1 ? c(s[g]) : d(w, s[s.indexOf(w) + 1]).replace("@media", "@media not all and"); } - return A({ + return I({ keys: s, values: a, up: l, @@ -5022,11 +5022,11 @@ function Su(t) { unit: n }, o); } -const Cu = { +const Pu = { borderRadius: 4 -}, Ou = Cu, Ru = process.env.NODE_ENV !== "production" ? p.oneOfType([p.number, p.string, p.object, p.array]) : {}, de = Ru; -function vn(t, e) { - return e ? re(t, e, { +}, $u = Pu, Iu = process.env.NODE_ENV !== "production" ? p.oneOfType([p.number, p.string, p.object, p.array]) : {}, me = Iu; +function bn(t, e) { + return e ? se(t, e, { clone: !1 // No need to clone deep, it's way faster. }) : t; @@ -5048,7 +5048,7 @@ const Io = { keys: ["xs", "sm", "md", "lg", "xl"], up: (t) => `@media (min-width:${Io[t]}px)` }; -function oe(t, e, n) { +function le(t, e, n) { const r = t.theme || {}; if (Array.isArray(e)) { const a = r.breakpoints || Da; @@ -5069,20 +5069,20 @@ function oe(t, e, n) { } return n(e); } -function _u(t = {}) { +function Au(t = {}) { var e; return ((e = t.keys) == null ? void 0 : e.reduce((r, o) => { const a = t.up(o); return r[a] = {}, r; }, {})) || {}; } -function Pu(t, e) { +function Mu(t, e) { return t.reduce((n, r) => { const o = n[r]; return (!o || Object.keys(o).length === 0) && delete n[r], n; }, e); } -function vr(t, e, n = !0) { +function mr(t, e, n = !0) { if (!e || typeof e != "string") return null; if (t && t.vars && n) { @@ -5092,11 +5092,11 @@ function vr(t, e, n = !0) { } return e.split(".").reduce((r, o) => r && r[o] != null ? r[o] : null, t); } -function lr(t, e, n, r = n) { +function or(t, e, n, r = n) { let o; - return typeof t == "function" ? o = t(n) : Array.isArray(t) ? o = t[n] || r : o = vr(t, n) || r, e && (o = e(o, r, t)), o; + return typeof t == "function" ? o = t(n) : Array.isArray(t) ? o = t[n] || r : o = mr(t, n) || r, e && (o = e(o, r, t)), o; } -function yt(t) { +function kt(t) { const { prop: e, cssProperty: n = t.prop, @@ -5105,26 +5105,26 @@ function yt(t) { } = t, a = (s) => { if (s[e] == null) return null; - const l = s[e], c = s.theme, d = vr(c, r) || {}; - return oe(s, l, (f) => { - let w = lr(d, o, f); - return f === w && typeof f == "string" && (w = lr(d, o, `${e}${f === "default" ? "" : Qt(f)}`, f)), n === !1 ? w : { + const l = s[e], c = s.theme, d = mr(c, r) || {}; + return le(s, l, (f) => { + let w = or(d, o, f); + return f === w && typeof f == "string" && (w = or(d, o, `${e}${f === "default" ? "" : ne(f)}`, f)), n === !1 ? w : { [n]: w }; }); }; return a.propTypes = process.env.NODE_ENV !== "production" ? { - [e]: de + [e]: me } : {}, a.filterProps = [e], a; } -function $u(t) { +function Du(t) { const e = {}; return (n) => (e[n] === void 0 && (e[n] = t(n)), e[n]); } -const Iu = { +const Bu = { m: "margin", p: "padding" -}, Au = { +}, ju = { t: "Top", r: "Right", b: "Bottom", @@ -5136,25 +5136,25 @@ const Iu = { marginY: "my", paddingX: "px", paddingY: "py" -}, Mu = $u((t) => { +}, Vu = Du((t) => { if (t.length > 2) if (Ba[t]) t = Ba[t]; else return [t]; - const [e, n] = t.split(""), r = Iu[e], o = Au[n] || ""; + const [e, n] = t.split(""), r = Bu[e], o = ju[n] || ""; return Array.isArray(o) ? o.map((a) => r + a) : [r + o]; -}), yr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], xr = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Du = [...yr, ...xr]; +}), hr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], gr = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], zu = [...hr, ...gr]; function Bn(t, e, n, r) { var o; - const a = (o = vr(t, e, !1)) != null ? o : n; + const a = (o = mr(t, e, !1)) != null ? o : n; return typeof a == "number" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`), a * s) : Array.isArray(a) ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > a.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(a)}.`, `${s} > ${a.length - 1}, you need to add the missing values.`].join(` `)) : console.error([`MUI: The \`theme.${e}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${e}\` as a number.`].join(` `))), a[s]) : typeof a == "function" ? a : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${e}\` value (${a}) is invalid.`, "It should be a number, an array or a function."].join(` `)), () => { }); } -function ms(t) { +function hs(t) { return Bn(t, "spacing", 8, "spacing"); } function jn(t, e) { @@ -5163,34 +5163,34 @@ function jn(t, e) { const n = Math.abs(e), r = t(n); return e >= 0 ? r : typeof r == "number" ? -r : `-${r}`; } -function Bu(t, e) { +function Lu(t, e) { return (n) => t.reduce((r, o) => (r[o] = jn(e, n), r), {}); } -function ju(t, e, n, r) { +function Fu(t, e, n, r) { if (e.indexOf(n) === -1) return null; - const o = Mu(n), a = Bu(o, r), s = t[n]; - return oe(t, s, a); + const o = Vu(n), a = Lu(o, r), s = t[n]; + return le(t, s, a); } -function hs(t, e) { - const n = ms(t.theme); - return Object.keys(t).map((r) => ju(t, e, r, n)).reduce(vn, {}); +function gs(t, e) { + const n = hs(t.theme); + return Object.keys(t).map((r) => Fu(t, e, r, n)).reduce(bn, {}); } -function gt(t) { - return hs(t, yr); -} -gt.propTypes = process.env.NODE_ENV !== "production" ? yr.reduce((t, e) => (t[e] = de, t), {}) : {}; -gt.filterProps = yr; function bt(t) { - return hs(t, xr); + return gs(t, hr); +} +bt.propTypes = process.env.NODE_ENV !== "production" ? hr.reduce((t, e) => (t[e] = me, t), {}) : {}; +bt.filterProps = hr; +function vt(t) { + return gs(t, gr); } -bt.propTypes = process.env.NODE_ENV !== "production" ? xr.reduce((t, e) => (t[e] = de, t), {}) : {}; -bt.filterProps = xr; -process.env.NODE_ENV !== "production" && Du.reduce((t, e) => (t[e] = de, t), {}); -function Vu(t = 8) { +vt.propTypes = process.env.NODE_ENV !== "production" ? gr.reduce((t, e) => (t[e] = me, t), {}) : {}; +vt.filterProps = gr; +process.env.NODE_ENV !== "production" && zu.reduce((t, e) => (t[e] = me, t), {}); +function Uu(t = 8) { if (t.mui) return t; - const e = ms({ + const e = hs({ spacing: t }), n = (...r) => (process.env.NODE_ENV !== "production" && (r.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)), (r.length === 0 ? [1] : r).map((a) => { const s = e(a); @@ -5198,119 +5198,119 @@ function Vu(t = 8) { }).join(" ")); return n.mui = !0, n; } -function Nr(...t) { +function br(...t) { const e = t.reduce((r, o) => (o.filterProps.forEach((a) => { r[a] = o; - }), r), {}), n = (r) => Object.keys(r).reduce((o, a) => e[a] ? vn(o, e[a](r)) : o, {}); + }), r), {}), n = (r) => Object.keys(r).reduce((o, a) => e[a] ? bn(o, e[a](r)) : o, {}); return n.propTypes = process.env.NODE_ENV !== "production" ? t.reduce((r, o) => Object.assign(r, o.propTypes), {}) : {}, n.filterProps = t.reduce((r, o) => r.concat(o.filterProps), []), n; } -function Lt(t) { +function Xt(t) { return typeof t != "number" ? t : `${t}px solid`; } -function Xt(t, e) { - return yt({ +function qt(t, e) { + return kt({ prop: t, themeKey: "borders", transform: e }); } -const zu = Xt("border", Lt), Lu = Xt("borderTop", Lt), Fu = Xt("borderRight", Lt), Uu = Xt("borderBottom", Lt), Gu = Xt("borderLeft", Lt), Xu = Xt("borderColor"), Hu = Xt("borderTopColor"), Yu = Xt("borderRightColor"), Wu = Xt("borderBottomColor"), qu = Xt("borderLeftColor"), Ku = Xt("outline", Lt), Ju = Xt("outlineColor"), kr = (t) => { +const Gu = qt("border", Xt), Xu = qt("borderTop", Xt), Hu = qt("borderRight", Xt), Yu = qt("borderBottom", Xt), Wu = qt("borderLeft", Xt), qu = qt("borderColor"), Ku = qt("borderTopColor"), Ju = qt("borderRightColor"), Zu = qt("borderBottomColor"), Qu = qt("borderLeftColor"), tp = qt("outline", Xt), ep = qt("outlineColor"), vr = (t) => { if (t.borderRadius !== void 0 && t.borderRadius !== null) { const e = Bn(t.theme, "shape.borderRadius", 4, "borderRadius"), n = (r) => ({ borderRadius: jn(e, r) }); - return oe(t, t.borderRadius, n); + return le(t, t.borderRadius, n); } return null; }; -kr.propTypes = process.env.NODE_ENV !== "production" ? { - borderRadius: de +vr.propTypes = process.env.NODE_ENV !== "production" ? { + borderRadius: me } : {}; -kr.filterProps = ["borderRadius"]; -Nr(zu, Lu, Fu, Uu, Gu, Xu, Hu, Yu, Wu, qu, kr, Ku, Ju); -const Er = (t) => { +vr.filterProps = ["borderRadius"]; +br(Gu, Xu, Hu, Yu, Wu, qu, Ku, Ju, Zu, Qu, vr, tp, ep); +const yr = (t) => { if (t.gap !== void 0 && t.gap !== null) { const e = Bn(t.theme, "spacing", 8, "gap"), n = (r) => ({ gap: jn(e, r) }); - return oe(t, t.gap, n); + return le(t, t.gap, n); } return null; }; -Er.propTypes = process.env.NODE_ENV !== "production" ? { - gap: de +yr.propTypes = process.env.NODE_ENV !== "production" ? { + gap: me } : {}; -Er.filterProps = ["gap"]; -const Tr = (t) => { +yr.filterProps = ["gap"]; +const xr = (t) => { if (t.columnGap !== void 0 && t.columnGap !== null) { const e = Bn(t.theme, "spacing", 8, "columnGap"), n = (r) => ({ columnGap: jn(e, r) }); - return oe(t, t.columnGap, n); + return le(t, t.columnGap, n); } return null; }; -Tr.propTypes = process.env.NODE_ENV !== "production" ? { - columnGap: de +xr.propTypes = process.env.NODE_ENV !== "production" ? { + columnGap: me } : {}; -Tr.filterProps = ["columnGap"]; -const Sr = (t) => { +xr.filterProps = ["columnGap"]; +const Nr = (t) => { if (t.rowGap !== void 0 && t.rowGap !== null) { const e = Bn(t.theme, "spacing", 8, "rowGap"), n = (r) => ({ rowGap: jn(e, r) }); - return oe(t, t.rowGap, n); + return le(t, t.rowGap, n); } return null; }; -Sr.propTypes = process.env.NODE_ENV !== "production" ? { - rowGap: de +Nr.propTypes = process.env.NODE_ENV !== "production" ? { + rowGap: me } : {}; -Sr.filterProps = ["rowGap"]; -const Zu = yt({ +Nr.filterProps = ["rowGap"]; +const np = kt({ prop: "gridColumn" -}), Qu = yt({ +}), rp = kt({ prop: "gridRow" -}), tp = yt({ +}), op = kt({ prop: "gridAutoFlow" -}), ep = yt({ +}), ap = kt({ prop: "gridAutoColumns" -}), np = yt({ +}), ip = kt({ prop: "gridAutoRows" -}), rp = yt({ +}), sp = kt({ prop: "gridTemplateColumns" -}), op = yt({ +}), lp = kt({ prop: "gridTemplateRows" -}), ap = yt({ +}), cp = kt({ prop: "gridTemplateAreas" -}), ip = yt({ +}), dp = kt({ prop: "gridArea" }); -Nr(Er, Tr, Sr, Zu, Qu, tp, ep, np, rp, op, ap, ip); +br(yr, xr, Nr, np, rp, op, ap, ip, sp, lp, cp, dp); function Fe(t, e) { return e === "grey" ? e : t; } -const sp = yt({ +const up = kt({ prop: "color", themeKey: "palette", transform: Fe -}), lp = yt({ +}), pp = kt({ prop: "bgcolor", cssProperty: "backgroundColor", themeKey: "palette", transform: Fe -}), cp = yt({ +}), wp = kt({ prop: "backgroundColor", themeKey: "palette", transform: Fe }); -Nr(sp, lp, cp); -function Dt(t) { +br(up, pp, wp); +function Lt(t) { return t <= 1 && t !== 0 ? `${t * 100}%` : t; } -const dp = yt({ +const fp = kt({ prop: "width", - transform: Dt + transform: Lt }), Ao = (t) => { if (t.maxWidth !== void 0 && t.maxWidth !== null) { const e = (n) => { @@ -5321,62 +5321,62 @@ const dp = yt({ } : { maxWidth: a } : { - maxWidth: Dt(n) + maxWidth: Lt(n) }; }; - return oe(t, t.maxWidth, e); + return le(t, t.maxWidth, e); } return null; }; Ao.filterProps = ["maxWidth"]; -const up = yt({ +const mp = kt({ prop: "minWidth", - transform: Dt -}), pp = yt({ + transform: Lt +}), hp = kt({ prop: "height", - transform: Dt -}), wp = yt({ + transform: Lt +}), gp = kt({ prop: "maxHeight", - transform: Dt -}), fp = yt({ + transform: Lt +}), bp = kt({ prop: "minHeight", - transform: Dt + transform: Lt }); -yt({ +kt({ prop: "size", cssProperty: "width", - transform: Dt + transform: Lt }); -yt({ +kt({ prop: "size", cssProperty: "height", - transform: Dt + transform: Lt }); -const mp = yt({ +const vp = kt({ prop: "boxSizing" }); -Nr(dp, Ao, up, pp, wp, fp, mp); -const hp = { +br(fp, Ao, mp, hp, gp, bp, vp); +const yp = { // borders border: { themeKey: "borders", - transform: Lt + transform: Xt }, borderTop: { themeKey: "borders", - transform: Lt + transform: Xt }, borderRight: { themeKey: "borders", - transform: Lt + transform: Xt }, borderBottom: { themeKey: "borders", - transform: Lt + transform: Xt }, borderLeft: { themeKey: "borders", - transform: Lt + transform: Xt }, borderColor: { themeKey: "palette" @@ -5395,14 +5395,14 @@ const hp = { }, outline: { themeKey: "borders", - transform: Lt + transform: Xt }, outlineColor: { themeKey: "palette" }, borderRadius: { themeKey: "shape.borderRadius", - style: kr + style: vr }, // palette color: { @@ -5420,124 +5420,124 @@ const hp = { }, // spacing p: { - style: bt + style: vt }, pt: { - style: bt + style: vt }, pr: { - style: bt + style: vt }, pb: { - style: bt + style: vt }, pl: { - style: bt + style: vt }, px: { - style: bt + style: vt }, py: { - style: bt + style: vt }, padding: { - style: bt + style: vt }, paddingTop: { - style: bt + style: vt }, paddingRight: { - style: bt + style: vt }, paddingBottom: { - style: bt + style: vt }, paddingLeft: { - style: bt + style: vt }, paddingX: { - style: bt + style: vt }, paddingY: { - style: bt + style: vt }, paddingInline: { - style: bt + style: vt }, paddingInlineStart: { - style: bt + style: vt }, paddingInlineEnd: { - style: bt + style: vt }, paddingBlock: { - style: bt + style: vt }, paddingBlockStart: { - style: bt + style: vt }, paddingBlockEnd: { - style: bt + style: vt }, m: { - style: gt + style: bt }, mt: { - style: gt + style: bt }, mr: { - style: gt + style: bt }, mb: { - style: gt + style: bt }, ml: { - style: gt + style: bt }, mx: { - style: gt + style: bt }, my: { - style: gt + style: bt }, margin: { - style: gt + style: bt }, marginTop: { - style: gt + style: bt }, marginRight: { - style: gt + style: bt }, marginBottom: { - style: gt + style: bt }, marginLeft: { - style: gt + style: bt }, marginX: { - style: gt + style: bt }, marginY: { - style: gt + style: bt }, marginInline: { - style: gt + style: bt }, marginInlineStart: { - style: gt + style: bt }, marginInlineEnd: { - style: gt + style: bt }, marginBlock: { - style: gt + style: bt }, marginBlockStart: { - style: gt + style: bt }, marginBlockEnd: { - style: gt + style: bt }, // display displayPrint: { @@ -5569,13 +5569,13 @@ const hp = { justifySelf: {}, // grid gap: { - style: Er + style: yr }, rowGap: { - style: Sr + style: Nr }, columnGap: { - style: Tr + style: xr }, gridColumn: {}, gridRow: {}, @@ -5601,22 +5601,22 @@ const hp = { }, // sizing width: { - transform: Dt + transform: Lt }, maxWidth: { style: Ao }, minWidth: { - transform: Dt + transform: Lt }, height: { - transform: Dt + transform: Lt }, maxHeight: { - transform: Dt + transform: Lt }, minHeight: { - transform: Dt + transform: Lt }, boxSizing: {}, // typography @@ -5640,15 +5640,15 @@ const hp = { cssProperty: !1, themeKey: "typography" } -}, Mo = hp; -function gp(...t) { +}, Mo = yp; +function xp(...t) { const e = t.reduce((r, o) => r.concat(Object.keys(o)), []), n = new Set(e); return t.every((r) => n.size === Object.keys(r).length); } -function bp(t, e) { +function Np(t, e) { return typeof t == "function" ? t(e) : t; } -function vp() { +function kp() { function t(n, r, o, a) { const s = { [n]: r, @@ -5670,10 +5670,10 @@ function vp() { return { [n]: r }; - const w = vr(o, d) || {}; - return f ? f(s) : oe(s, r, (b) => { - let m = lr(w, u, b); - return b === m && typeof b == "string" && (m = lr(w, u, `${n}${b === "default" ? "" : Qt(b)}`, b)), c === !1 ? m : { + const w = mr(o, d) || {}; + return f ? f(s) : le(s, r, (v) => { + let m = or(w, u, v); + return v === m && typeof v == "string" && (m = or(w, u, `${n}${v === "default" ? "" : ne(v)}`, v)), c === !1 ? m : { [c]: m }; }); @@ -5695,146 +5695,146 @@ function vp() { return c; if (!d) return null; - const u = _u(a.breakpoints), f = Object.keys(u); + const u = Au(a.breakpoints), f = Object.keys(u); let w = u; return Object.keys(d).forEach((g) => { - const b = bp(d[g], a); - if (b != null) - if (typeof b == "object") + const v = Np(d[g], a); + if (v != null) + if (typeof v == "object") if (s[g]) - w = vn(w, t(g, b, a, s)); + w = bn(w, t(g, v, a, s)); else { - const m = oe({ + const m = le({ theme: a - }, b, (h) => ({ + }, v, (h) => ({ [g]: h })); - gp(m, b) ? w[g] = e({ - sx: b, + xp(m, v) ? w[g] = e({ + sx: v, theme: a - }) : w = vn(w, m); + }) : w = bn(w, m); } else - w = vn(w, t(g, b, a, s)); - }), Pu(f, w); + w = bn(w, t(g, v, a, s)); + }), Mu(f, w); } return Array.isArray(o) ? o.map(l) : l(o); } return e; } -const gs = vp(); -gs.filterProps = ["sx"]; -const Do = gs; -function yp(t, e) { +const bs = kp(); +bs.filterProps = ["sx"]; +const Do = bs; +function Ep(t, e) { const n = this; return n.vars && typeof n.getColorSchemeSelector == "function" ? { [n.getColorSchemeSelector(t).replace(/(\[[^\]]+\])/, "*:where($1)")]: e } : n.palette.mode === t ? e : {}; } -const xp = ["breakpoints", "palette", "spacing", "shape"]; +const Tp = ["breakpoints", "palette", "spacing", "shape"]; function Bo(t = {}, ...e) { const { breakpoints: n = {}, palette: r = {}, spacing: o, shape: a = {} - } = t, s = Et(t, xp), l = Su(n), c = Vu(o); - let d = re({ + } = t, s = Rt(t, Tp), l = _u(n), c = Uu(o); + let d = se({ breakpoints: l, direction: "ltr", components: {}, // Inject component definitions. - palette: A({ + palette: I({ mode: "light" }, r), spacing: c, - shape: A({}, Ou, a) + shape: I({}, $u, a) }, s); - return d.applyStyles = yp, d = e.reduce((u, f) => re(u, f), d), d.unstable_sxConfig = A({}, Mo, s == null ? void 0 : s.unstable_sxConfig), d.unstable_sx = function(f) { + return d.applyStyles = Ep, d = e.reduce((u, f) => se(u, f), d), d.unstable_sxConfig = I({}, Mo, s == null ? void 0 : s.unstable_sxConfig), d.unstable_sx = function(f) { return Do({ sx: f, theme: this }); }, d; } -function Np(t) { +function Sp(t) { return Object.keys(t).length === 0; } -function bs(t = null) { - const e = j.useContext(Wl); - return !e || Np(e) ? t : e; +function vs(t = null) { + const e = B.useContext(Jl); + return !e || Sp(e) ? t : e; } -const kp = Bo(); -function vs(t = kp) { - return bs(t); +const Cp = Bo(); +function ys(t = Cp) { + return vs(t); } -const Ep = ["ownerState"], Tp = ["variants"], Sp = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"]; -function Cp(t) { +const Op = ["ownerState"], Rp = ["variants"], _p = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"]; +function Pp(t) { return Object.keys(t).length === 0; } -function Op(t) { +function $p(t) { return typeof t == "string" && // 96 is one less than the char code // for "a" so this is checking that // it's a lowercase character t.charCodeAt(0) > 96; } -function Qn(t) { +function Zn(t) { return t !== "ownerState" && t !== "theme" && t !== "sx" && t !== "as"; } -const Rp = Bo(), ja = (t) => t && t.charAt(0).toLowerCase() + t.slice(1); -function Wn({ +const Ip = Bo(), ja = (t) => t && t.charAt(0).toLowerCase() + t.slice(1); +function Yn({ defaultTheme: t, theme: e, themeId: n }) { - return Cp(e) ? t : e[n] || e; + return Pp(e) ? t : e[n] || e; } -function _p(t) { +function Ap(t) { return t ? (e, n) => n[t] : null; } -function tr(t, e) { +function Qn(t, e) { let { ownerState: n - } = e, r = Et(e, Ep); - const o = typeof t == "function" ? t(A({ + } = e, r = Rt(e, Op); + const o = typeof t == "function" ? t(I({ ownerState: n }, r)) : t; if (Array.isArray(o)) - return o.flatMap((a) => tr(a, A({ + return o.flatMap((a) => Qn(a, I({ ownerState: n }, r))); if (o && typeof o == "object" && Array.isArray(o.variants)) { const { variants: a = [] } = o; - let l = Et(o, Tp); + let l = Rt(o, Rp); return a.forEach((c) => { let d = !0; - typeof c.props == "function" ? d = c.props(A({ + typeof c.props == "function" ? d = c.props(I({ ownerState: n }, r, n)) : Object.keys(c.props).forEach((u) => { (n == null ? void 0 : n[u]) !== c.props[u] && r[u] !== c.props[u] && (d = !1); - }), d && (Array.isArray(l) || (l = [l]), l.push(typeof c.style == "function" ? c.style(A({ + }), d && (Array.isArray(l) || (l = [l]), l.push(typeof c.style == "function" ? c.style(I({ ownerState: n }, r, n)) : c.style)); }), l; } return o; } -function Pp(t = {}) { +function Mp(t = {}) { const { themeId: e, - defaultTheme: n = Rp, - rootShouldForwardProp: r = Qn, - slotShouldForwardProp: o = Qn - } = t, a = (s) => Do(A({}, s, { - theme: Wn(A({}, s, { + defaultTheme: n = Ip, + rootShouldForwardProp: r = Zn, + slotShouldForwardProp: o = Zn + } = t, a = (s) => Do(I({}, s, { + theme: Yn(I({}, s, { defaultTheme: n, themeId: e })) })); return a.__mui_systemSx = !0, (s, l = {}) => { - ql(s, (v) => v.filter(($) => !($ != null && $.__mui_systemSx))); + Zl(s, (b) => b.filter((P) => !(P != null && P.__mui_systemSx))); const { name: c, slot: d, @@ -5842,112 +5842,112 @@ function Pp(t = {}) { skipSx: f, // TODO v6: remove `lowercaseFirstLetter()` in the next major release // For more details: https://github.com/mui/material-ui/pull/37908 - overridesResolver: w = _p(ja(d)) - } = l, g = Et(l, Sp), b = u !== void 0 ? u : ( + overridesResolver: w = Ap(ja(d)) + } = l, g = Rt(l, _p), v = u !== void 0 ? u : ( // TODO v6: remove `Root` in the next major release // For more details: https://github.com/mui/material-ui/pull/37908 d && d !== "Root" && d !== "root" || !1 ), m = f || !1; let h; process.env.NODE_ENV !== "production" && c && (h = `${c}-${ja(d || "Root")}`); - let k = Qn; - d === "Root" || d === "root" ? k = r : d ? k = o : Op(s) && (k = void 0); - const P = Yl(s, A({ - shouldForwardProp: k, + let N = Zn; + d === "Root" || d === "root" ? N = r : d ? N = o : $p(s) && (N = void 0); + const S = Kl(s, I({ + shouldForwardProp: N, label: h - }, g)), C = (v) => typeof v == "function" && v.__emotion_real !== v || ve(v) ? ($) => tr(v, A({}, $, { - theme: Wn({ - theme: $.theme, + }, g)), C = (b) => typeof b == "function" && b.__emotion_real !== b || Ne(b) ? (P) => Qn(b, I({}, P, { + theme: Yn({ + theme: P.theme, defaultTheme: n, themeId: e }) - })) : v, E = (v, ...$) => { - let X = C(v); - const _ = $ ? $.map(C) : []; - c && w && _.push((B) => { - const M = Wn(A({}, B, { + })) : b, E = (b, ...P) => { + let L = C(b); + const _ = P ? P.map(C) : []; + c && w && _.push((D) => { + const A = Yn(I({}, D, { defaultTheme: n, themeId: e })); - if (!M.components || !M.components[c] || !M.components[c].styleOverrides) + if (!A.components || !A.components[c] || !A.components[c].styleOverrides) return null; - const D = M.components[c].styleOverrides, K = {}; - return Object.entries(D).forEach(([H, z]) => { - K[H] = tr(z, A({}, B, { - theme: M + const M = A.components[c].styleOverrides, Y = {}; + return Object.entries(M).forEach(([U, V]) => { + Y[U] = Qn(V, I({}, D, { + theme: A })); - }), w(B, K); - }), c && !b && _.push((B) => { - var M; - const D = Wn(A({}, B, { + }), w(D, Y); + }), c && !v && _.push((D) => { + var A; + const M = Yn(I({}, D, { defaultTheme: n, themeId: e - })), K = D == null || (M = D.components) == null || (M = M[c]) == null ? void 0 : M.variants; - return tr({ - variants: K - }, A({}, B, { - theme: D + })), Y = M == null || (A = M.components) == null || (A = A[c]) == null ? void 0 : A.variants; + return Qn({ + variants: Y + }, I({}, D, { + theme: M })); }), m || _.push(a); - const I = _.length - $.length; - if (Array.isArray(v) && I > 0) { - const B = new Array(I).fill(""); - X = [...v, ...B], X.raw = [...v.raw, ...B]; + const $ = _.length - P.length; + if (Array.isArray(b) && $ > 0) { + const D = new Array($).fill(""); + L = [...b, ...D], L.raw = [...b.raw, ...D]; } - const U = P(X, ..._); + const F = S(L, ..._); if (process.env.NODE_ENV !== "production") { - let B; - c && (B = `${c}${Qt(d || "")}`), B === void 0 && (B = `Styled(${tu(s)})`), U.displayName = B; + let D; + c && (D = `${c}${ne(d || "")}`), D === void 0 && (D = `Styled(${ou(s)})`), F.displayName = D; } - return s.muiName && (U.muiName = s.muiName), U; + return s.muiName && (F.muiName = s.muiName), F; }; - return P.withConfig && (E.withConfig = P.withConfig), E; + return S.withConfig && (E.withConfig = S.withConfig), E; }; } -function $p(t) { +function Dp(t) { const { theme: e, name: n, props: r } = t; - return !e || !e.components || !e.components[n] || !e.components[n].defaultProps ? r : us(e.components[n].defaultProps, r); + return !e || !e.components || !e.components[n] || !e.components[n].defaultProps ? r : ps(e.components[n].defaultProps, r); } -function Ip({ +function Bp({ props: t, name: e, defaultTheme: n, themeId: r }) { - let o = vs(n); - return r && (o = o[r] || o), $p({ + let o = ys(n); + return r && (o = o[r] || o), Dp({ theme: o, name: e, props: t }); } function jo(t, e = 0, n = 1) { - return process.env.NODE_ENV !== "production" && (t < e || t > n) && console.error(`MUI: The value provided ${t} is out of range [${e}, ${n}].`), ku(t, e, n); + return process.env.NODE_ENV !== "production" && (t < e || t > n) && console.error(`MUI: The value provided ${t} is out of range [${e}, ${n}].`), Cu(t, e, n); } -function Ap(t) { +function jp(t) { t = t.slice(1); const e = new RegExp(`.{1,${t.length >= 6 ? 2 : 1}}`, "g"); let n = t.match(e); return n && n[0].length === 1 && (n = n.map((r) => r + r)), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((r, o) => o < 3 ? parseInt(r, 16) : Math.round(parseInt(r, 16) / 255 * 1e3) / 1e3).join(", ")})` : ""; } -function Ce(t) { +function _e(t) { if (t.type) return t; if (t.charAt(0) === "#") - return Ce(Ap(t)); + return _e(jp(t)); const e = t.indexOf("("), n = t.substring(0, e); if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(n) === -1) throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${t}\` color. -The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Ye(9, t)); +The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : Xe(9, t)); let r = t.substring(e + 1, t.length - 1), o; if (n === "color") { if (r = r.split(" "), o = r.shift(), r.length === 4 && r[3].charAt(0) === "/" && (r[3] = r[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1) throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space. -The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Ye(10, o)); +The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : Xe(10, o)); } else r = r.split(","); return r = r.map((a) => parseFloat(a)), { @@ -5956,7 +5956,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg colorSpace: o }; } -function Cr(t) { +function kr(t) { const { type: e, colorSpace: n @@ -5966,40 +5966,40 @@ function Cr(t) { } = t; return e.indexOf("rgb") !== -1 ? r = r.map((o, a) => a < 3 ? parseInt(o, 10) : o) : e.indexOf("hsl") !== -1 && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), e.indexOf("color") !== -1 ? r = `${n} ${r.join(" ")}` : r = `${r.join(", ")}`, `${e}(${r})`; } -function Mp(t) { - t = Ce(t); +function Vp(t) { + t = _e(t); const { values: e } = t, n = e[0], r = e[1] / 100, o = e[2] / 100, a = r * Math.min(o, 1 - o), s = (d, u = (d + n / 30) % 12) => o - a * Math.max(Math.min(u - 3, 9 - u, 1), -1); let l = "rgb"; const c = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)]; - return t.type === "hsla" && (l += "a", c.push(e[3])), Cr({ + return t.type === "hsla" && (l += "a", c.push(e[3])), kr({ type: l, values: c }); } function Va(t) { - t = Ce(t); - let e = t.type === "hsl" || t.type === "hsla" ? Ce(Mp(t)).values : t.values; + t = _e(t); + let e = t.type === "hsl" || t.type === "hsla" ? _e(Vp(t)).values : t.values; return e = e.map((n) => (t.type !== "color" && (n /= 255), n <= 0.03928 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4)), Number((0.2126 * e[0] + 0.7152 * e[1] + 0.0722 * e[2]).toFixed(3)); } function za(t, e) { const n = Va(t), r = Va(e); return (Math.max(n, r) + 0.05) / (Math.min(n, r) + 0.05); } -function ys(t, e) { - return t = Ce(t), e = jo(e), (t.type === "rgb" || t.type === "hsl") && (t.type += "a"), t.type === "color" ? t.values[3] = `/${e}` : t.values[3] = e, Cr(t); +function xs(t, e) { + return t = _e(t), e = jo(e), (t.type === "rgb" || t.type === "hsl") && (t.type += "a"), t.type === "color" ? t.values[3] = `/${e}` : t.values[3] = e, kr(t); } -function Dp(t, e) { - if (t = Ce(t), e = jo(e), t.type.indexOf("hsl") !== -1) +function zp(t, e) { + if (t = _e(t), e = jo(e), t.type.indexOf("hsl") !== -1) t.values[2] *= 1 - e; else if (t.type.indexOf("rgb") !== -1 || t.type.indexOf("color") !== -1) for (let n = 0; n < 3; n += 1) t.values[n] *= 1 - e; - return Cr(t); + return kr(t); } -function Bp(t, e) { - if (t = Ce(t), e = jo(e), t.type.indexOf("hsl") !== -1) +function Lp(t, e) { + if (t = _e(t), e = jo(e), t.type.indexOf("hsl") !== -1) t.values[2] += (100 - t.values[2]) * e; else if (t.type.indexOf("rgb") !== -1) for (let n = 0; n < 3; n += 1) @@ -6007,10 +6007,10 @@ function Bp(t, e) { else if (t.type.indexOf("color") !== -1) for (let n = 0; n < 3; n += 1) t.values[n] += (1 - t.values[n]) * e; - return Cr(t); + return kr(t); } -function jp(t, e) { - return A({ +function Fp(t, e) { + return I({ toolbar: { minHeight: 56, [t.up("xs")]: { @@ -6024,10 +6024,10 @@ function jp(t, e) { } }, e); } -const Vp = { +const Up = { black: "#000", white: "#fff" -}, Sn = Vp, zp = { +}, En = Up, Gp = { 50: "#fafafa", 100: "#f5f5f5", 200: "#eeeeee", @@ -6042,7 +6042,7 @@ const Vp = { A200: "#eeeeee", A400: "#bdbdbd", A700: "#616161" -}, Lp = zp, Fp = { +}, Xp = Gp, Hp = { 50: "#f3e5f5", 100: "#e1bee7", 200: "#ce93d8", @@ -6057,7 +6057,7 @@ const Vp = { A200: "#e040fb", A400: "#d500f9", A700: "#aa00ff" -}, Me = Fp, Up = { +}, Me = Hp, Yp = { 50: "#ffebee", 100: "#ffcdd2", 200: "#ef9a9a", @@ -6072,7 +6072,7 @@ const Vp = { A200: "#ff5252", A400: "#ff1744", A700: "#d50000" -}, De = Up, Gp = { +}, De = Yp, Wp = { 50: "#fff3e0", 100: "#ffe0b2", 200: "#ffcc80", @@ -6087,7 +6087,7 @@ const Vp = { A200: "#ffab40", A400: "#ff9100", A700: "#ff6d00" -}, dn = Gp, Xp = { +}, cn = Wp, qp = { 50: "#e3f2fd", 100: "#bbdefb", 200: "#90caf9", @@ -6102,7 +6102,7 @@ const Vp = { A200: "#448aff", A400: "#2979ff", A700: "#2962ff" -}, Be = Xp, Hp = { +}, Be = qp, Kp = { 50: "#e1f5fe", 100: "#b3e5fc", 200: "#81d4fa", @@ -6117,7 +6117,7 @@ const Vp = { A200: "#40c4ff", A400: "#00b0ff", A700: "#0091ea" -}, je = Hp, Yp = { +}, je = Kp, Jp = { 50: "#e8f5e9", 100: "#c8e6c9", 200: "#a5d6a7", @@ -6132,7 +6132,7 @@ const Vp = { A200: "#69f0ae", A400: "#00e676", A700: "#00c853" -}, Ve = Yp, Wp = ["mode", "contrastThreshold", "tonalOffset"], La = { +}, Ve = Jp, Zp = ["mode", "contrastThreshold", "tonalOffset"], La = { // The colors used to style the text. text: { // The most important text. @@ -6147,8 +6147,8 @@ const Vp = { // The background colors used to style the surfaces. // Consistency between these values is important. background: { - paper: Sn.white, - default: Sn.white + paper: En.white, + default: En.white }, // The colors used to style the action elements. action: { @@ -6169,9 +6169,9 @@ const Vp = { focusOpacity: 0.12, activatedOpacity: 0.12 } -}, Wr = { +}, Gr = { text: { - primary: Sn.white, + primary: En.white, secondary: "rgba(255, 255, 255, 0.7)", disabled: "rgba(255, 255, 255, 0.5)", icon: "rgba(255, 255, 255, 0.5)" @@ -6182,7 +6182,7 @@ const Vp = { default: "#121212" }, action: { - active: Sn.white, + active: En.white, hover: "rgba(255, 255, 255, 0.08)", hoverOpacity: 0.08, selected: "rgba(255, 255, 255, 0.16)", @@ -6197,9 +6197,9 @@ const Vp = { }; function Fa(t, e, n, r) { const o = r.light || r, a = r.dark || r * 1.5; - t[e] || (t.hasOwnProperty(n) ? t[e] = t[n] : e === "light" ? t.light = Bp(t.main, o) : e === "dark" && (t.dark = Dp(t.main, a))); + t[e] || (t.hasOwnProperty(n) ? t[e] = t[n] : e === "light" ? t.light = Lp(t.main, o) : e === "dark" && (t.dark = zp(t.main, a))); } -function qp(t = "light") { +function Qp(t = "light") { return t === "dark" ? { main: Be[200], light: Be[50], @@ -6210,7 +6210,7 @@ function qp(t = "light") { dark: Be[800] }; } -function Kp(t = "light") { +function tw(t = "light") { return t === "dark" ? { main: Me[200], light: Me[50], @@ -6221,7 +6221,7 @@ function Kp(t = "light") { dark: Me[700] }; } -function Jp(t = "light") { +function ew(t = "light") { return t === "dark" ? { main: De[500], light: De[300], @@ -6232,7 +6232,7 @@ function Jp(t = "light") { dark: De[800] }; } -function Zp(t = "light") { +function nw(t = "light") { return t === "dark" ? { main: je[400], light: je[300], @@ -6243,7 +6243,7 @@ function Zp(t = "light") { dark: je[900] }; } -function Qp(t = "light") { +function rw(t = "light") { return t === "dark" ? { main: Ve[400], light: Ve[300], @@ -6254,29 +6254,29 @@ function Qp(t = "light") { dark: Ve[900] }; } -function tw(t = "light") { +function ow(t = "light") { return t === "dark" ? { - main: dn[400], - light: dn[300], - dark: dn[700] + main: cn[400], + light: cn[300], + dark: cn[700] } : { main: "#ed6c02", // closest to orange[800] that pass 3:1. - light: dn[500], - dark: dn[900] + light: cn[500], + dark: cn[900] }; } -function ew(t) { +function aw(t) { const { mode: e = "light", contrastThreshold: n = 3, tonalOffset: r = 0.2 - } = t, o = Et(t, Wp), a = t.primary || qp(e), s = t.secondary || Kp(e), l = t.error || Jp(e), c = t.info || Zp(e), d = t.success || Qp(e), u = t.warning || tw(e); + } = t, o = Rt(t, Zp), a = t.primary || Qp(e), s = t.secondary || tw(e), l = t.error || ew(e), c = t.info || nw(e), d = t.success || rw(e), u = t.warning || ow(e); function f(m) { - const h = za(m, Wr.text.primary) >= n ? Wr.text.primary : La.text.primary; + const h = za(m, Gr.text.primary) >= n ? Gr.text.primary : La.text.primary; if (process.env.NODE_ENV !== "production") { - const k = za(m, h); - k < 3 && console.error([`MUI: The contrast ratio of ${k}:1 for ${h} on ${m}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` + const N = za(m, h); + N < 3 && console.error([`MUI: The contrast ratio of ${N}:1 for ${h} on ${m}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(` `)); } return h; @@ -6284,13 +6284,13 @@ function ew(t) { const w = ({ color: m, name: h, - mainShade: k = 500, - lightShade: P = 300, + mainShade: N = 500, + lightShade: S = 300, darkShade: C = 700 }) => { - if (m = A({}, m), !m.main && m[k] && (m.main = m[k]), !m.hasOwnProperty("main")) + if (m = I({}, m), !m.main && m[N] && (m.main = m[N]), !m.hasOwnProperty("main")) throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${h ? ` (${h})` : ""} provided to augmentColor(color) is invalid. -The color object needs to have a \`main\` property or a \`${k}\` property.` : Ye(11, h ? ` (${h})` : "", k)); +The color object needs to have a \`main\` property or a \`${N}\` property.` : Xe(11, h ? ` (${h})` : "", N)); if (typeof m.main != "string") throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${h ? ` (${h})` : ""} provided to augmentColor(color) is invalid. \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead. @@ -6305,15 +6305,15 @@ const theme1 = createTheme({ palette: { const theme2 = createTheme({ palette: { primary: { main: green[500] }, -} });` : Ye(12, h ? ` (${h})` : "", JSON.stringify(m.main))); - return Fa(m, "light", P, r), Fa(m, "dark", C, r), m.contrastText || (m.contrastText = f(m.main)), m; +} });` : Xe(12, h ? ` (${h})` : "", JSON.stringify(m.main))); + return Fa(m, "light", S, r), Fa(m, "dark", C, r), m.contrastText || (m.contrastText = f(m.main)), m; }, g = { - dark: Wr, + dark: Gr, light: La }; - return process.env.NODE_ENV !== "production" && (g[e] || console.error(`MUI: The palette mode \`${e}\` is not supported.`)), re(A({ + return process.env.NODE_ENV !== "production" && (g[e] || console.error(`MUI: The palette mode \`${e}\` is not supported.`)), se(I({ // A collection of common colors. - common: A({}, Sn), + common: I({}, En), // prevent mutable object. // The palette mode, can be light or dark. mode: e, @@ -6351,7 +6351,7 @@ const theme2 = createTheme({ palette: { name: "success" }), // The grey colors. - grey: Lp, + grey: Xp, // Used by `getContrastText()` to maximize the contrast between // the background and the text. contrastThreshold: n, @@ -6365,14 +6365,14 @@ const theme2 = createTheme({ palette: { tonalOffset: r }, g[e]), o); } -const nw = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]; -function rw(t) { +const iw = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]; +function sw(t) { return Math.round(t * 1e5) / 1e5; } const Ua = { textTransform: "uppercase" }, Ga = '"Roboto", "Helvetica", "Arial", sans-serif'; -function ow(t, e) { +function lw(t, e) { const n = typeof e == "function" ? e(t) : e, { fontFamily: r = Ga, // The default font size of the Material Specification. @@ -6388,17 +6388,17 @@ function ow(t, e) { // Apply the CSS properties to all the variants. allVariants: u, pxToRem: f - } = n, w = Et(n, nw); + } = n, w = Rt(n, iw); process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof d != "number" && console.error("MUI: `htmlFontSize` is required to be a number.")); - const g = o / 14, b = f || ((k) => `${k / d * g}rem`), m = (k, P, C, E, v) => A({ + const g = o / 14, v = f || ((N) => `${N / d * g}rem`), m = (N, S, C, E, b) => I({ fontFamily: r, - fontWeight: k, - fontSize: b(P), + fontWeight: N, + fontSize: v(S), // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/ lineHeight: C }, r === Ga ? { - letterSpacing: `${rw(E / P)}em` - } : {}, v, u), h = { + letterSpacing: `${sw(E / S)}em` + } : {}, b, u), h = { h1: m(a, 96, 1.167, -1.5), h2: m(a, 60, 1.2, -0.5), h3: m(s, 48, 1.167, 0), @@ -6421,9 +6421,9 @@ function ow(t, e) { letterSpacing: "inherit" } }; - return re(A({ + return se(I({ htmlFontSize: d, - pxToRem: b, + pxToRem: v, fontFamily: r, fontSize: o, fontWeightLight: a, @@ -6435,11 +6435,11 @@ function ow(t, e) { // No need to clone deep }); } -const aw = 0.2, iw = 0.14, sw = 0.12; -function ht(...t) { - return [`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${aw})`, `${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${iw})`, `${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${sw})`].join(","); +const cw = 0.2, dw = 0.14, uw = 0.12; +function gt(...t) { + return [`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${cw})`, `${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${dw})`, `${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${uw})`].join(","); } -const lw = ["none", ht(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ht(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), ht(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), ht(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), ht(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), ht(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), ht(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), ht(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), ht(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), ht(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), ht(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), ht(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), ht(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), ht(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), ht(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), ht(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), ht(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), ht(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), ht(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), ht(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), ht(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), ht(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), ht(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), ht(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], cw = lw, dw = ["duration", "easing", "delay"], uw = { +const pw = ["none", gt(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), gt(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), gt(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), gt(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), gt(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), gt(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), gt(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), gt(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), gt(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), gt(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), gt(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), gt(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), gt(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), gt(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), gt(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), gt(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), gt(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), gt(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), gt(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), gt(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), gt(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), gt(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), gt(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), gt(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], ww = pw, fw = ["duration", "easing", "delay"], mw = { // This is the most common easing curve. easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)", // Objects enter the screen at full velocity from off-screen and @@ -6449,7 +6449,7 @@ const lw = ["none", ht(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ht(0, 3, 1, -2, 0, easeIn: "cubic-bezier(0.4, 0, 1, 1)", // The sharp curve is used by objects that may return to the screen at any time. sharp: "cubic-bezier(0.4, 0, 0.6, 1)" -}, pw = { +}, hw = { shortest: 150, shorter: 200, short: 250, @@ -6465,22 +6465,22 @@ const lw = ["none", ht(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), ht(0, 3, 1, -2, 0, function Xa(t) { return `${Math.round(t)}ms`; } -function ww(t) { +function gw(t) { if (!t) return 0; const e = t / 36; return Math.round((4 + 15 * e ** 0.25 + e / 5) * 10); } -function fw(t) { - const e = A({}, uw, t.easing), n = A({}, pw, t.duration); - return A({ - getAutoHeightDuration: ww, +function bw(t) { + const e = I({}, mw, t.easing), n = I({}, hw, t.duration); + return I({ + getAutoHeightDuration: gw, create: (o = ["all"], a = {}) => { const { duration: s = n.standard, easing: l = e.easeInOut, delay: c = 0 - } = a, d = Et(a, dw); + } = a, d = Rt(a, fw); if (process.env.NODE_ENV !== "production") { const u = (w) => typeof w == "string", f = (w) => !isNaN(parseFloat(w)); !u(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !f(s) && !u(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), u(l) || console.error('MUI: Argument "easing" must be a string.'), !f(c) && !u(c) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` @@ -6493,7 +6493,7 @@ function fw(t) { duration: n }); } -const mw = { +const vw = { mobileStepper: 1e3, fab: 1050, speedDial: 1050, @@ -6502,42 +6502,42 @@ const mw = { modal: 1300, snackbar: 1400, tooltip: 1500 -}, hw = mw, gw = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; -function bw(t = {}, ...e) { +}, yw = vw, xw = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"]; +function Nw(t = {}, ...e) { const { mixins: n = {}, palette: r = {}, transitions: o = {}, typography: a = {} - } = t, s = Et(t, gw); + } = t, s = Rt(t, xw); if (t.vars) - throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : Ye(18)); - const l = ew(r), c = Bo(t); - let d = re(c, { - mixins: jp(c.breakpoints, n), + throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : Xe(18)); + const l = aw(r), c = Bo(t); + let d = se(c, { + mixins: Fp(c.breakpoints, n), palette: l, // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol. - shadows: cw.slice(), - typography: ow(l, a), - transitions: fw(o), - zIndex: A({}, hw) + shadows: ww.slice(), + typography: lw(l, a), + transitions: bw(o), + zIndex: I({}, yw) }); - if (d = re(d, s), d = e.reduce((u, f) => re(u, f), d), process.env.NODE_ENV !== "production") { + if (d = se(d, s), d = e.reduce((u, f) => se(u, f), d), process.env.NODE_ENV !== "production") { const u = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], f = (w, g) => { - let b; - for (b in w) { - const m = w[b]; - if (u.indexOf(b) !== -1 && Object.keys(m).length > 0) { + let v; + for (v in w) { + const m = w[v]; + if (u.indexOf(v) !== -1 && Object.keys(m).length > 0) { if (process.env.NODE_ENV !== "production") { - const h = br("", b); - console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${b}\` internal state.`, "You can not override it like this: ", JSON.stringify(w, null, 2), "", `Instead, you need to use the '&.${h}' syntax:`, JSON.stringify({ + const h = fr("", v); + console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${v}\` internal state.`, "You can not override it like this: ", JSON.stringify(w, null, 2), "", `Instead, you need to use the '&.${h}' syntax:`, JSON.stringify({ root: { [`&.${h}`]: m } }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(` `)); } - w[b] = {}; + w[v] = {}; } } }; @@ -6546,57 +6546,57 @@ function bw(t = {}, ...e) { g && w.indexOf("Mui") === 0 && f(g, w); }); } - return d.unstable_sxConfig = A({}, Mo, s == null ? void 0 : s.unstable_sxConfig), d.unstable_sx = function(f) { + return d.unstable_sxConfig = I({}, Mo, s == null ? void 0 : s.unstable_sxConfig), d.unstable_sx = function(f) { return Do({ sx: f, theme: this }); }, d; } -const vw = bw(), Vo = vw, zo = "$$material"; +const kw = Nw(), Vo = kw, zo = "$$material"; function Lo({ props: t, name: e }) { - return Ip({ + return Bp({ props: t, name: e, defaultTheme: Vo, themeId: zo }); } -const yw = (t) => Qn(t) && t !== "classes", xw = Pp({ +const Ew = (t) => Zn(t) && t !== "classes", Tw = Mp({ themeId: zo, defaultTheme: Vo, - rootShouldForwardProp: yw -}), Vn = xw; -function Nw(t) { - return br("MuiSvgIcon", t); + rootShouldForwardProp: Ew +}), Vn = Tw; +function Sw(t) { + return fr("MuiSvgIcon", t); } -fs("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]); -const kw = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], Ew = (t) => { +ms("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]); +const Cw = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], Ow = (t) => { const { color: e, fontSize: n, classes: r } = t, o = { - root: ["root", e !== "inherit" && `color${Qt(e)}`, `fontSize${Qt(n)}`] + root: ["root", e !== "inherit" && `color${ne(e)}`, `fontSize${ne(n)}`] }; - return $o(o, Nw, r); -}, Tw = Vn("svg", { + return $o(o, Sw, r); +}, Rw = Vn("svg", { name: "MuiSvgIcon", slot: "Root", overridesResolver: (t, e) => { const { ownerState: n } = t; - return [e.root, n.color !== "inherit" && e[`color${Qt(n.color)}`], e[`fontSize${Qt(n.fontSize)}`]]; + return [e.root, n.color !== "inherit" && e[`color${ne(n.color)}`], e[`fontSize${ne(n.fontSize)}`]]; } })(({ theme: t, ownerState: e }) => { - var n, r, o, a, s, l, c, d, u, f, w, g, b; + var n, r, o, a, s, l, c, d, u, f, w, g, v; return { userSelect: "none", width: "1em", @@ -6618,11 +6618,11 @@ const kw = ["children", "className", "color", "component", "fontSize", "htmlColo // TODO v5 deprecate, v6 remove for sx color: (f = (w = (t.vars || t).palette) == null || (w = w[e.color]) == null ? void 0 : w.main) != null ? f : { action: (g = (t.vars || t).palette) == null || (g = g.action) == null ? void 0 : g.active, - disabled: (b = (t.vars || t).palette) == null || (b = b.action) == null ? void 0 : b.disabled, + disabled: (v = (t.vars || t).palette) == null || (v = v.action) == null ? void 0 : v.disabled, inherit: void 0 }[e.color] }; -}), Fo = /* @__PURE__ */ j.forwardRef(function(e, n) { +}), Fo = /* @__PURE__ */ B.forwardRef(function(e, n) { const r = Lo({ props: e, name: "MuiSvgIcon" @@ -6636,28 +6636,28 @@ const kw = ["children", "className", "color", "component", "fontSize", "htmlColo inheritViewBox: u = !1, titleAccess: f, viewBox: w = "0 0 24 24" - } = r, g = Et(r, kw), b = /* @__PURE__ */ j.isValidElement(o) && o.type === "svg", m = A({}, r, { + } = r, g = Rt(r, Cw), v = /* @__PURE__ */ B.isValidElement(o) && o.type === "svg", m = I({}, r, { color: s, component: l, fontSize: c, instanceFontSize: e.fontSize, inheritViewBox: u, viewBox: w, - hasSvgAsChild: b + hasSvgAsChild: v }), h = {}; u || (h.viewBox = w); - const k = Ew(m); - return /* @__PURE__ */ y(Tw, A({ + const N = Ow(m); + return /* @__PURE__ */ y(Rw, I({ as: l, - className: xe(k.root, a), + className: Ee(N.root, a), focusable: "false", color: d, "aria-hidden": f ? void 0 : !0, role: f ? "img" : void 0, ref: n - }, h, g, b && o.props, { + }, h, g, v && o.props, { ownerState: m, - children: [b ? o.props.children : o, f ? /* @__PURE__ */ i("title", { + children: [v ? o.props.children : o, f ? /* @__PURE__ */ i("title", { children: f }) : null] })); @@ -6736,45 +6736,45 @@ process.env.NODE_ENV !== "production" && (Fo.propTypes = { }); Fo.muiName = "SvgIcon"; const Ha = Fo; -function xs(t, e) { +function Ns(t, e) { function n(r, o) { - return /* @__PURE__ */ i(Ha, A({ + return /* @__PURE__ */ i(Ha, I({ "data-testid": `${e}Icon`, ref: o }, r, { children: t })); } - return process.env.NODE_ENV !== "production" && (n.displayName = `${e}Icon`), n.muiName = Ha.muiName, /* @__PURE__ */ j.memo(/* @__PURE__ */ j.forwardRef(n)); + return process.env.NODE_ENV !== "production" && (n.displayName = `${e}Icon`), n.muiName = Ha.muiName, /* @__PURE__ */ B.memo(/* @__PURE__ */ B.forwardRef(n)); } -const Sw = { +const _w = { configure: (t) => { process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(` -`)), ps.configure(t); +`)), ws.configure(t); } -}, Cw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Pw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - capitalize: Qt, - createChainedFunction: nu, - createSvgIcon: xs, - debounce: ru, - deprecatedPropType: ou, - isMuiElement: au, - ownerDocument: ir, - ownerWindow: iu, - requirePropFactory: su, - setRef: sr, - unstable_ClassNameGenerator: Sw, - unstable_useEnhancedEffect: We, - unstable_useId: ls, - unsupportedProp: du, - useControlled: cs, - useEventCallback: so, - useForkRef: Se, - useIsFocusVisible: ds -}, Symbol.toStringTag, { value: "Module" })), Ow = /* @__PURE__ */ Dd(Cw); + capitalize: ne, + createChainedFunction: iu, + createSvgIcon: Ns, + debounce: su, + deprecatedPropType: lu, + isMuiElement: cu, + ownerDocument: nr, + ownerWindow: du, + requirePropFactory: uu, + setRef: rr, + unstable_ClassNameGenerator: _w, + unstable_useEnhancedEffect: He, + unstable_useId: cs, + unsupportedProp: fu, + useControlled: ds, + useEventCallback: ro, + useForkRef: Re, + useIsFocusVisible: us +}, Symbol.toStringTag, { value: "Module" })), $w = /* @__PURE__ */ zd(Pw); var Ya; -function Rw() { +function Iw() { return Ya || (Ya = 1, function(t) { "use client"; Object.defineProperty(t, "__esModule", { @@ -6785,35 +6785,35 @@ function Rw() { return e.createSvgIcon; } }); - var e = Ow; - }(zr)), zr; + var e = $w; + }(Dr)), Dr; } -var _w = Bd; +var Aw = Ld; Object.defineProperty(Ro, "__esModule", { value: !0 }); -var Ns = Ro.default = void 0, Pw = _w(Rw()), $w = sl; -Ns = Ro.default = (0, Pw.default)(/* @__PURE__ */ (0, $w.jsx)("path", { +var ks = Ro.default = void 0, Mw = Aw(Iw()), Dw = cl; +ks = Ro.default = (0, Mw.default)(/* @__PURE__ */ (0, Dw.jsx)("path", { d: "m10 17 5-5-5-5z" }), "ArrowRight"); -function Iw(t) { +function Bw(t) { return typeof t == "string"; } -function mn(t, e, n) { - return t === void 0 || Iw(t) ? e : A({}, e, { - ownerState: A({}, e.ownerState, n) +function fn(t, e, n) { + return t === void 0 || Bw(t) ? e : I({}, e, { + ownerState: I({}, e.ownerState, n) }); } -const Aw = { +const jw = { disableDefaultClasses: !1 -}, Mw = /* @__PURE__ */ j.createContext(Aw); -function Dw(t) { +}, Vw = /* @__PURE__ */ B.createContext(jw); +function zw(t) { const { disableDefaultClasses: e - } = j.useContext(Mw); + } = B.useContext(Vw); return (n) => e ? "" : t(n); } -function Bw(t, e = []) { +function Lw(t, e = []) { if (t === void 0) return {}; const n = {}; @@ -6821,7 +6821,7 @@ function Bw(t, e = []) { n[r] = t[r]; }), n; } -function jw(t, e, n) { +function Fw(t, e, n) { return typeof t == "function" ? t(e, n) : t; } function Wa(t) { @@ -6832,7 +6832,7 @@ function Wa(t) { e[n] = t[n]; }), e; } -function Vw(t) { +function Uw(t) { const { getSlotProps: e, additionalProps: n, @@ -6841,85 +6841,85 @@ function Vw(t) { className: a } = t; if (!e) { - const g = xe(n == null ? void 0 : n.className, a, o == null ? void 0 : o.className, r == null ? void 0 : r.className), b = A({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), m = A({}, n, o, r); - return g.length > 0 && (m.className = g), Object.keys(b).length > 0 && (m.style = b), { + const g = Ee(n == null ? void 0 : n.className, a, o == null ? void 0 : o.className, r == null ? void 0 : r.className), v = I({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), m = I({}, n, o, r); + return g.length > 0 && (m.className = g), Object.keys(v).length > 0 && (m.style = v), { props: m, internalRef: void 0 }; } - const s = Bw(A({}, o, r)), l = Wa(r), c = Wa(o), d = e(s), u = xe(d == null ? void 0 : d.className, n == null ? void 0 : n.className, a, o == null ? void 0 : o.className, r == null ? void 0 : r.className), f = A({}, d == null ? void 0 : d.style, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), w = A({}, d, n, c, l); + const s = Lw(I({}, o, r)), l = Wa(r), c = Wa(o), d = e(s), u = Ee(d == null ? void 0 : d.className, n == null ? void 0 : n.className, a, o == null ? void 0 : o.className, r == null ? void 0 : r.className), f = I({}, d == null ? void 0 : d.style, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), w = I({}, d, n, c, l); return u.length > 0 && (w.className = u), Object.keys(f).length > 0 && (w.style = f), { props: w, internalRef: d.ref }; } -const zw = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"]; -function Lw(t) { +const Gw = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"]; +function Xw(t) { var e; const { elementType: n, externalSlotProps: r, ownerState: o, skipResolvingSlotProps: a = !1 - } = t, s = Et(t, zw), l = a ? {} : jw(r, o), { + } = t, s = Rt(t, Gw), l = a ? {} : Fw(r, o), { props: c, internalRef: d - } = Vw(A({}, s, { + } = Uw(I({}, s, { externalSlotProps: l - })), u = Se(d, l == null ? void 0 : l.ref, (e = t.additionalProps) == null ? void 0 : e.ref); - return mn(n, A({}, c, { + })), u = Re(d, l == null ? void 0 : l.ref, (e = t.additionalProps) == null ? void 0 : e.ref); + return fn(n, I({}, c, { ref: u }), o); } -const ks = "base"; -function Fw(t) { - return `${ks}--${t}`; +const Es = "base"; +function Hw(t) { + return `${Es}--${t}`; } -function Uw(t, e) { - return `${ks}-${t}-${e}`; +function Yw(t, e) { + return `${Es}-${t}-${e}`; } -function Es(t, e) { - const n = ws[e]; - return n ? Fw(n) : Uw(t, e); +function Ts(t, e) { + const n = fs[e]; + return n ? Hw(n) : Yw(t, e); } -function Gw(t, e) { +function Ww(t, e) { const n = {}; return e.forEach((r) => { - n[r] = Es(t, r); + n[r] = Ts(t, r); }), n; } -function Xw(t) { +function qw(t) { return typeof t == "function" ? t() : t; } -const cr = /* @__PURE__ */ j.forwardRef(function(e, n) { +const ar = /* @__PURE__ */ B.forwardRef(function(e, n) { const { children: r, container: o, disablePortal: a = !1 - } = e, [s, l] = j.useState(null), c = Se(/* @__PURE__ */ j.isValidElement(r) ? r.ref : null, n); - if (We(() => { - a || l(Xw(o) || document.body); - }, [o, a]), We(() => { + } = e, [s, l] = B.useState(null), c = Re(/* @__PURE__ */ B.isValidElement(r) ? r.ref : null, n); + if (He(() => { + a || l(qw(o) || document.body); + }, [o, a]), He(() => { if (s && !a) - return sr(n, s), () => { - sr(n, null); + return rr(n, s), () => { + rr(n, null); }; }, [n, s, a]), a) { - if (/* @__PURE__ */ j.isValidElement(r)) { + if (/* @__PURE__ */ B.isValidElement(r)) { const d = { ref: c }; - return /* @__PURE__ */ j.cloneElement(r, d); + return /* @__PURE__ */ B.cloneElement(r, d); } - return /* @__PURE__ */ i(j.Fragment, { + return /* @__PURE__ */ i(B.Fragment, { children: r }); } - return /* @__PURE__ */ i(j.Fragment, { - children: s && /* @__PURE__ */ rc.createPortal(r, s) + return /* @__PURE__ */ i(B.Fragment, { + children: s && /* @__PURE__ */ ic.createPortal(r, s) }); }); -process.env.NODE_ENV !== "production" && (cr.propTypes = { +process.env.NODE_ENV !== "production" && (ar.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ @@ -6938,23 +6938,23 @@ process.env.NODE_ENV !== "production" && (cr.propTypes = { * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ - container: p.oneOfType([Tn, p.func]), + container: p.oneOfType([kn, p.func]), /** * The `children` will be under the DOM hierarchy of the parent component. * @default false */ disablePortal: p.bool }); -process.env.NODE_ENV !== "production" && (cr["propTypes"] = qd(cr.propTypes)); -var Rt = "top", Ut = "bottom", Gt = "right", _t = "left", Uo = "auto", zn = [Rt, Ut, Gt, _t], qe = "start", Cn = "end", Hw = "clippingParents", Ts = "viewport", un = "popper", Yw = "reference", qa = /* @__PURE__ */ zn.reduce(function(t, e) { - return t.concat([e + "-" + qe, e + "-" + Cn]); -}, []), Ss = /* @__PURE__ */ [].concat(zn, [Uo]).reduce(function(t, e) { - return t.concat([e, e + "-" + qe, e + "-" + Cn]); -}, []), Ww = "beforeRead", qw = "read", Kw = "afterRead", Jw = "beforeMain", Zw = "main", Qw = "afterMain", tf = "beforeWrite", ef = "write", nf = "afterWrite", rf = [Ww, qw, Kw, Jw, Zw, Qw, tf, ef, nf]; -function te(t) { +process.env.NODE_ENV !== "production" && (ar["propTypes"] = Qd(ar.propTypes)); +var At = "top", Yt = "bottom", Wt = "right", Mt = "left", Uo = "auto", zn = [At, Yt, Wt, Mt], Ye = "start", Tn = "end", Kw = "clippingParents", Ss = "viewport", dn = "popper", Jw = "reference", qa = /* @__PURE__ */ zn.reduce(function(t, e) { + return t.concat([e + "-" + Ye, e + "-" + Tn]); +}, []), Cs = /* @__PURE__ */ [].concat(zn, [Uo]).reduce(function(t, e) { + return t.concat([e, e + "-" + Ye, e + "-" + Tn]); +}, []), Zw = "beforeRead", Qw = "read", tf = "afterRead", ef = "beforeMain", nf = "main", rf = "afterMain", of = "beforeWrite", af = "write", sf = "afterWrite", lf = [Zw, Qw, tf, ef, nf, rf, of, af, sf]; +function re(t) { return t ? (t.nodeName || "").toLowerCase() : null; } -function Bt(t) { +function Ft(t) { if (t == null) return window; if (t.toString() !== "[object Window]") { @@ -6963,31 +6963,31 @@ function Bt(t) { } return t; } -function Oe(t) { - var e = Bt(t).Element; +function Pe(t) { + var e = Ft(t).Element; return t instanceof e || t instanceof Element; } -function Ft(t) { - var e = Bt(t).HTMLElement; +function Ht(t) { + var e = Ft(t).HTMLElement; return t instanceof e || t instanceof HTMLElement; } function Go(t) { if (typeof ShadowRoot > "u") return !1; - var e = Bt(t).ShadowRoot; + var e = Ft(t).ShadowRoot; return t instanceof e || t instanceof ShadowRoot; } -function of(t) { +function cf(t) { var e = t.state; Object.keys(e.elements).forEach(function(n) { var r = e.styles[n] || {}, o = e.attributes[n] || {}, a = e.elements[n]; - !Ft(a) || !te(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(s) { + !Ht(a) || !re(a) || (Object.assign(a.style, r), Object.keys(o).forEach(function(s) { var l = o[s]; l === !1 ? a.removeAttribute(s) : a.setAttribute(s, l === !0 ? "" : l); })); }); } -function af(t) { +function df(t) { var e = t.state, n = { popper: { position: e.options.strategy, @@ -7005,38 +7005,38 @@ function af(t) { var o = e.elements[r], a = e.attributes[r] || {}, s = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : n[r]), l = s.reduce(function(c, d) { return c[d] = "", c; }, {}); - !Ft(o) || !te(o) || (Object.assign(o.style, l), Object.keys(a).forEach(function(c) { + !Ht(o) || !re(o) || (Object.assign(o.style, l), Object.keys(a).forEach(function(c) { o.removeAttribute(c); })); }); }; } -const sf = { +const uf = { name: "applyStyles", enabled: !0, phase: "write", - fn: of, - effect: af, + fn: cf, + effect: df, requires: ["computeStyles"] }; -function Kt(t) { +function Qt(t) { return t.split("-")[0]; } -var Ne = Math.max, dr = Math.min, Ke = Math.round; -function co() { +var Te = Math.max, ir = Math.min, We = Math.round; +function ao() { var t = navigator.userAgentData; return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) { return e.brand + "/" + e.version; }).join(" ") : navigator.userAgent; } -function Cs() { - return !/^((?!chrome|android).)*safari/i.test(co()); +function Os() { + return !/^((?!chrome|android).)*safari/i.test(ao()); } -function Je(t, e, n) { +function qe(t, e, n) { e === void 0 && (e = !1), n === void 0 && (n = !1); var r = t.getBoundingClientRect(), o = 1, a = 1; - e && Ft(t) && (o = t.offsetWidth > 0 && Ke(r.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && Ke(r.height) / t.offsetHeight || 1); - var s = Oe(t) ? Bt(t) : window, l = s.visualViewport, c = !Cs() && n, d = (r.left + (c && l ? l.offsetLeft : 0)) / o, u = (r.top + (c && l ? l.offsetTop : 0)) / a, f = r.width / o, w = r.height / a; + e && Ht(t) && (o = t.offsetWidth > 0 && We(r.width) / t.offsetWidth || 1, a = t.offsetHeight > 0 && We(r.height) / t.offsetHeight || 1); + var s = Pe(t) ? Ft(t) : window, l = s.visualViewport, c = !Os() && n, d = (r.left + (c && l ? l.offsetLeft : 0)) / o, u = (r.top + (c && l ? l.offsetTop : 0)) / a, f = r.width / o, w = r.height / a; return { width: f, height: w, @@ -7049,7 +7049,7 @@ function Je(t, e, n) { }; } function Xo(t) { - var e = Je(t), n = t.offsetWidth, r = t.offsetHeight; + var e = qe(t), n = t.offsetWidth, r = t.offsetHeight; return Math.abs(e.width - n) <= 1 && (n = e.width), Math.abs(e.height - r) <= 1 && (r = e.height), { x: t.offsetLeft, y: t.offsetTop, @@ -7057,7 +7057,7 @@ function Xo(t) { height: r }; } -function Os(t, e) { +function Rs(t, e) { var n = e.getRootNode && e.getRootNode(); if (t.contains(e)) return !0; @@ -7071,20 +7071,20 @@ function Os(t, e) { } return !1; } -function ae(t) { - return Bt(t).getComputedStyle(t); +function ce(t) { + return Ft(t).getComputedStyle(t); } -function lf(t) { - return ["table", "td", "th"].indexOf(te(t)) >= 0; +function pf(t) { + return ["table", "td", "th"].indexOf(re(t)) >= 0; } -function ue(t) { - return ((Oe(t) ? t.ownerDocument : ( +function he(t) { + return ((Pe(t) ? t.ownerDocument : ( // $FlowFixMe[prop-missing] t.document )) || window.document).documentElement; } -function Or(t) { - return te(t) === "html" ? t : ( +function Er(t) { + return re(t) === "html" ? t : ( // this is a quicker (but less type safe) way to save quite some bytes from the bundle // $FlowFixMe[incompatible-return] // $FlowFixMe[prop-missing] @@ -7092,23 +7092,23 @@ function Or(t) { t.parentNode || // DOM Element detected (Go(t) ? t.host : null) || // ShadowRoot detected // $FlowFixMe[incompatible-call]: HTMLElement is a Node - ue(t) + he(t) ); } function Ka(t) { - return !Ft(t) || // https://github.com/popperjs/popper-core/issues/837 - ae(t).position === "fixed" ? null : t.offsetParent; + return !Ht(t) || // https://github.com/popperjs/popper-core/issues/837 + ce(t).position === "fixed" ? null : t.offsetParent; } -function cf(t) { - var e = /firefox/i.test(co()), n = /Trident/i.test(co()); - if (n && Ft(t)) { - var r = ae(t); +function wf(t) { + var e = /firefox/i.test(ao()), n = /Trident/i.test(ao()); + if (n && Ht(t)) { + var r = ce(t); if (r.position === "fixed") return null; } - var o = Or(t); - for (Go(o) && (o = o.host); Ft(o) && ["html", "body"].indexOf(te(o)) < 0; ) { - var a = ae(o); + var o = Er(t); + for (Go(o) && (o = o.host); Ht(o) && ["html", "body"].indexOf(re(o)) < 0; ) { + var a = ce(o); if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none") return o; o = o.parentNode; @@ -7116,21 +7116,21 @@ function cf(t) { return null; } function Ln(t) { - for (var e = Bt(t), n = Ka(t); n && lf(n) && ae(n).position === "static"; ) + for (var e = Ft(t), n = Ka(t); n && pf(n) && ce(n).position === "static"; ) n = Ka(n); - return n && (te(n) === "html" || te(n) === "body" && ae(n).position === "static") ? e : n || cf(t) || e; + return n && (re(n) === "html" || re(n) === "body" && ce(n).position === "static") ? e : n || wf(t) || e; } function Ho(t) { return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y"; } -function yn(t, e, n) { - return Ne(t, dr(e, n)); +function vn(t, e, n) { + return Te(t, ir(e, n)); } -function df(t, e, n) { - var r = yn(t, e, n); +function ff(t, e, n) { + var r = vn(t, e, n); return r > n ? n : r; } -function Rs() { +function _s() { return { top: 0, right: 0, @@ -7138,57 +7138,57 @@ function Rs() { left: 0 }; } -function _s(t) { - return Object.assign({}, Rs(), t); +function Ps(t) { + return Object.assign({}, _s(), t); } -function Ps(t, e) { +function $s(t, e) { return e.reduce(function(n, r) { return n[r] = t, n; }, {}); } -var uf = function(e, n) { +var mf = function(e, n) { return e = typeof e == "function" ? e(Object.assign({}, n.rects, { placement: n.placement - })) : e, _s(typeof e != "number" ? e : Ps(e, zn)); + })) : e, Ps(typeof e != "number" ? e : $s(e, zn)); }; -function pf(t) { - var e, n = t.state, r = t.name, o = t.options, a = n.elements.arrow, s = n.modifiersData.popperOffsets, l = Kt(n.placement), c = Ho(l), d = [_t, Gt].indexOf(l) >= 0, u = d ? "height" : "width"; +function hf(t) { + var e, n = t.state, r = t.name, o = t.options, a = n.elements.arrow, s = n.modifiersData.popperOffsets, l = Qt(n.placement), c = Ho(l), d = [Mt, Wt].indexOf(l) >= 0, u = d ? "height" : "width"; if (!(!a || !s)) { - var f = uf(o.padding, n), w = Xo(a), g = c === "y" ? Rt : _t, b = c === "y" ? Ut : Gt, m = n.rects.reference[u] + n.rects.reference[c] - s[c] - n.rects.popper[u], h = s[c] - n.rects.reference[c], k = Ln(a), P = k ? c === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0, C = m / 2 - h / 2, E = f[g], v = P - w[u] - f[b], $ = P / 2 - w[u] / 2 + C, X = yn(E, $, v), _ = c; - n.modifiersData[r] = (e = {}, e[_] = X, e.centerOffset = X - $, e); + var f = mf(o.padding, n), w = Xo(a), g = c === "y" ? At : Mt, v = c === "y" ? Yt : Wt, m = n.rects.reference[u] + n.rects.reference[c] - s[c] - n.rects.popper[u], h = s[c] - n.rects.reference[c], N = Ln(a), S = N ? c === "y" ? N.clientHeight || 0 : N.clientWidth || 0 : 0, C = m / 2 - h / 2, E = f[g], b = S - w[u] - f[v], P = S / 2 - w[u] / 2 + C, L = vn(E, P, b), _ = c; + n.modifiersData[r] = (e = {}, e[_] = L, e.centerOffset = L - P, e); } } -function wf(t) { +function gf(t) { var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r; - o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Os(e.elements.popper, o) && (e.elements.arrow = o)); + o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Rs(e.elements.popper, o) && (e.elements.arrow = o)); } -const ff = { +const bf = { name: "arrow", enabled: !0, phase: "main", - fn: pf, - effect: wf, + fn: hf, + effect: gf, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] }; -function Ze(t) { +function Ke(t) { return t.split("-")[1]; } -var mf = { +var vf = { top: "auto", right: "auto", bottom: "auto", left: "auto" }; -function hf(t, e) { +function yf(t, e) { var n = t.x, r = t.y, o = e.devicePixelRatio || 1; return { - x: Ke(n * o) / o || 0, - y: Ke(r * o) / o || 0 + x: We(n * o) / o || 0, + y: We(r * o) / o || 0 }; } function Ja(t) { - var e, n = t.popper, r = t.popperRect, o = t.placement, a = t.variation, s = t.offsets, l = t.position, c = t.gpuAcceleration, d = t.adaptive, u = t.roundOffsets, f = t.isFixed, w = s.x, g = w === void 0 ? 0 : w, b = s.y, m = b === void 0 ? 0 : b, h = typeof u == "function" ? u({ + var e, n = t.popper, r = t.popperRect, o = t.placement, a = t.variation, s = t.offsets, l = t.position, c = t.gpuAcceleration, d = t.adaptive, u = t.roundOffsets, f = t.isFixed, w = s.x, g = w === void 0 ? 0 : w, v = s.y, m = v === void 0 ? 0 : v, h = typeof u == "function" ? u({ x: g, y: m }) : { @@ -7196,45 +7196,45 @@ function Ja(t) { y: m }; g = h.x, m = h.y; - var k = s.hasOwnProperty("x"), P = s.hasOwnProperty("y"), C = _t, E = Rt, v = window; + var N = s.hasOwnProperty("x"), S = s.hasOwnProperty("y"), C = Mt, E = At, b = window; if (d) { - var $ = Ln(n), X = "clientHeight", _ = "clientWidth"; - if ($ === Bt(n) && ($ = ue(n), ae($).position !== "static" && l === "absolute" && (X = "scrollHeight", _ = "scrollWidth")), $ = $, o === Rt || (o === _t || o === Gt) && a === Cn) { - E = Ut; - var I = f && $ === v && v.visualViewport ? v.visualViewport.height : ( + var P = Ln(n), L = "clientHeight", _ = "clientWidth"; + if (P === Ft(n) && (P = he(n), ce(P).position !== "static" && l === "absolute" && (L = "scrollHeight", _ = "scrollWidth")), P = P, o === At || (o === Mt || o === Wt) && a === Tn) { + E = Yt; + var $ = f && P === b && b.visualViewport ? b.visualViewport.height : ( // $FlowFixMe[prop-missing] - $[X] + P[L] ); - m -= I - r.height, m *= c ? 1 : -1; + m -= $ - r.height, m *= c ? 1 : -1; } - if (o === _t || (o === Rt || o === Ut) && a === Cn) { - C = Gt; - var U = f && $ === v && v.visualViewport ? v.visualViewport.width : ( + if (o === Mt || (o === At || o === Yt) && a === Tn) { + C = Wt; + var F = f && P === b && b.visualViewport ? b.visualViewport.width : ( // $FlowFixMe[prop-missing] - $[_] + P[_] ); - g -= U - r.width, g *= c ? 1 : -1; + g -= F - r.width, g *= c ? 1 : -1; } } - var B = Object.assign({ + var D = Object.assign({ position: l - }, d && mf), M = u === !0 ? hf({ + }, d && vf), A = u === !0 ? yf({ x: g, y: m - }, Bt(n)) : { + }, Ft(n)) : { x: g, y: m }; - if (g = M.x, m = M.y, c) { - var D; - return Object.assign({}, B, (D = {}, D[E] = P ? "0" : "", D[C] = k ? "0" : "", D.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + m + "px)" : "translate3d(" + g + "px, " + m + "px, 0)", D)); + if (g = A.x, m = A.y, c) { + var M; + return Object.assign({}, D, (M = {}, M[E] = S ? "0" : "", M[C] = N ? "0" : "", M.transform = (b.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + m + "px)" : "translate3d(" + g + "px, " + m + "px, 0)", M)); } - return Object.assign({}, B, (e = {}, e[E] = P ? m + "px" : "", e[C] = k ? g + "px" : "", e.transform = "", e)); + return Object.assign({}, D, (e = {}, e[E] = S ? m + "px" : "", e[C] = N ? g + "px" : "", e.transform = "", e)); } -function gf(t) { +function xf(t) { var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, a = n.adaptive, s = a === void 0 ? !0 : a, l = n.roundOffsets, c = l === void 0 ? !0 : l, d = { - placement: Kt(e.placement), - variation: Ze(e.placement), + placement: Qt(e.placement), + variation: Ke(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: o, @@ -7254,70 +7254,70 @@ function gf(t) { "data-popper-placement": e.placement }); } -const bf = { +const Nf = { name: "computeStyles", enabled: !0, phase: "beforeWrite", - fn: gf, + fn: xf, data: {} }; -var qn = { +var Wn = { passive: !0 }; -function vf(t) { - var e = t.state, n = t.instance, r = t.options, o = r.scroll, a = o === void 0 ? !0 : o, s = r.resize, l = s === void 0 ? !0 : s, c = Bt(e.elements.popper), d = [].concat(e.scrollParents.reference, e.scrollParents.popper); +function kf(t) { + var e = t.state, n = t.instance, r = t.options, o = r.scroll, a = o === void 0 ? !0 : o, s = r.resize, l = s === void 0 ? !0 : s, c = Ft(e.elements.popper), d = [].concat(e.scrollParents.reference, e.scrollParents.popper); return a && d.forEach(function(u) { - u.addEventListener("scroll", n.update, qn); - }), l && c.addEventListener("resize", n.update, qn), function() { + u.addEventListener("scroll", n.update, Wn); + }), l && c.addEventListener("resize", n.update, Wn), function() { a && d.forEach(function(u) { - u.removeEventListener("scroll", n.update, qn); - }), l && c.removeEventListener("resize", n.update, qn); + u.removeEventListener("scroll", n.update, Wn); + }), l && c.removeEventListener("resize", n.update, Wn); }; } -const yf = { +const Ef = { name: "eventListeners", enabled: !0, phase: "write", fn: function() { }, - effect: vf, + effect: kf, data: {} }; -var xf = { +var Tf = { left: "right", right: "left", bottom: "top", top: "bottom" }; -function er(t) { +function tr(t) { return t.replace(/left|right|bottom|top/g, function(e) { - return xf[e]; + return Tf[e]; }); } -var Nf = { +var Sf = { start: "end", end: "start" }; function Za(t) { return t.replace(/start|end/g, function(e) { - return Nf[e]; + return Sf[e]; }); } function Yo(t) { - var e = Bt(t), n = e.pageXOffset, r = e.pageYOffset; + var e = Ft(t), n = e.pageXOffset, r = e.pageYOffset; return { scrollLeft: n, scrollTop: r }; } function Wo(t) { - return Je(ue(t)).left + Yo(t).scrollLeft; + return qe(he(t)).left + Yo(t).scrollLeft; } -function kf(t, e) { - var n = Bt(t), r = ue(t), o = n.visualViewport, a = r.clientWidth, s = r.clientHeight, l = 0, c = 0; +function Cf(t, e) { + var n = Ft(t), r = he(t), o = n.visualViewport, a = r.clientWidth, s = r.clientHeight, l = 0, c = 0; if (o) { a = o.width, s = o.height; - var d = Cs(); + var d = Os(); (d || !d && e === "fixed") && (l = o.offsetLeft, c = o.offsetTop); } return { @@ -7327,9 +7327,9 @@ function kf(t, e) { y: c }; } -function Ef(t) { - var e, n = ue(t), r = Yo(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = Ne(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = Ne(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -r.scrollLeft + Wo(t), c = -r.scrollTop; - return ae(o || n).direction === "rtl" && (l += Ne(n.clientWidth, o ? o.clientWidth : 0) - a), { +function Of(t) { + var e, n = he(t), r = Yo(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, a = Te(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = Te(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -r.scrollLeft + Wo(t), c = -r.scrollTop; + return ce(o || n).direction === "rtl" && (l += Te(n.clientWidth, o ? o.clientWidth : 0) - a), { width: a, height: s, x: l, @@ -7337,22 +7337,22 @@ function Ef(t) { }; } function qo(t) { - var e = ae(t), n = e.overflow, r = e.overflowX, o = e.overflowY; + var e = ce(t), n = e.overflow, r = e.overflowX, o = e.overflowY; return /auto|scroll|overlay|hidden/.test(n + o + r); } -function $s(t) { - return ["html", "body", "#document"].indexOf(te(t)) >= 0 ? t.ownerDocument.body : Ft(t) && qo(t) ? t : $s(Or(t)); +function Is(t) { + return ["html", "body", "#document"].indexOf(re(t)) >= 0 ? t.ownerDocument.body : Ht(t) && qo(t) ? t : Is(Er(t)); } -function xn(t, e) { +function yn(t, e) { var n; e === void 0 && (e = []); - var r = $s(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), a = Bt(r), s = o ? [a].concat(a.visualViewport || [], qo(r) ? r : []) : r, l = e.concat(s); + var r = Is(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), a = Ft(r), s = o ? [a].concat(a.visualViewport || [], qo(r) ? r : []) : r, l = e.concat(s); return o ? l : ( // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here - l.concat(xn(Or(s))) + l.concat(yn(Er(s))) ); } -function uo(t) { +function io(t) { return Object.assign({}, t, { left: t.x, top: t.y, @@ -7360,48 +7360,48 @@ function uo(t) { bottom: t.y + t.height }); } -function Tf(t, e) { - var n = Je(t, !1, e === "fixed"); +function Rf(t, e) { + var n = qe(t, !1, e === "fixed"); return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n; } function Qa(t, e, n) { - return e === Ts ? uo(kf(t, n)) : Oe(e) ? Tf(e, n) : uo(Ef(ue(t))); + return e === Ss ? io(Cf(t, n)) : Pe(e) ? Rf(e, n) : io(Of(he(t))); } -function Sf(t) { - var e = xn(Or(t)), n = ["absolute", "fixed"].indexOf(ae(t).position) >= 0, r = n && Ft(t) ? Ln(t) : t; - return Oe(r) ? e.filter(function(o) { - return Oe(o) && Os(o, r) && te(o) !== "body"; +function _f(t) { + var e = yn(Er(t)), n = ["absolute", "fixed"].indexOf(ce(t).position) >= 0, r = n && Ht(t) ? Ln(t) : t; + return Pe(r) ? e.filter(function(o) { + return Pe(o) && Rs(o, r) && re(o) !== "body"; }) : []; } -function Cf(t, e, n, r) { - var o = e === "clippingParents" ? Sf(t) : [].concat(e), a = [].concat(o, [n]), s = a[0], l = a.reduce(function(c, d) { +function Pf(t, e, n, r) { + var o = e === "clippingParents" ? _f(t) : [].concat(e), a = [].concat(o, [n]), s = a[0], l = a.reduce(function(c, d) { var u = Qa(t, d, r); - return c.top = Ne(u.top, c.top), c.right = dr(u.right, c.right), c.bottom = dr(u.bottom, c.bottom), c.left = Ne(u.left, c.left), c; + return c.top = Te(u.top, c.top), c.right = ir(u.right, c.right), c.bottom = ir(u.bottom, c.bottom), c.left = Te(u.left, c.left), c; }, Qa(t, s, r)); return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l; } -function Is(t) { - var e = t.reference, n = t.element, r = t.placement, o = r ? Kt(r) : null, a = r ? Ze(r) : null, s = e.x + e.width / 2 - n.width / 2, l = e.y + e.height / 2 - n.height / 2, c; +function As(t) { + var e = t.reference, n = t.element, r = t.placement, o = r ? Qt(r) : null, a = r ? Ke(r) : null, s = e.x + e.width / 2 - n.width / 2, l = e.y + e.height / 2 - n.height / 2, c; switch (o) { - case Rt: + case At: c = { x: s, y: e.y - n.height }; break; - case Ut: + case Yt: c = { x: s, y: e.y + e.height }; break; - case Gt: + case Wt: c = { x: e.x + e.width, y: l }; break; - case _t: + case Mt: c = { x: e.x - n.width, y: l @@ -7417,118 +7417,118 @@ function Is(t) { if (d != null) { var u = d === "y" ? "height" : "width"; switch (a) { - case qe: + case Ye: c[d] = c[d] - (e[u] / 2 - n[u] / 2); break; - case Cn: + case Tn: c[d] = c[d] + (e[u] / 2 - n[u] / 2); break; } } return c; } -function On(t, e) { +function Sn(t, e) { e === void 0 && (e = {}); - var n = e, r = n.placement, o = r === void 0 ? t.placement : r, a = n.strategy, s = a === void 0 ? t.strategy : a, l = n.boundary, c = l === void 0 ? Hw : l, d = n.rootBoundary, u = d === void 0 ? Ts : d, f = n.elementContext, w = f === void 0 ? un : f, g = n.altBoundary, b = g === void 0 ? !1 : g, m = n.padding, h = m === void 0 ? 0 : m, k = _s(typeof h != "number" ? h : Ps(h, zn)), P = w === un ? Yw : un, C = t.rects.popper, E = t.elements[b ? P : w], v = Cf(Oe(E) ? E : E.contextElement || ue(t.elements.popper), c, u, s), $ = Je(t.elements.reference), X = Is({ - reference: $, + var n = e, r = n.placement, o = r === void 0 ? t.placement : r, a = n.strategy, s = a === void 0 ? t.strategy : a, l = n.boundary, c = l === void 0 ? Kw : l, d = n.rootBoundary, u = d === void 0 ? Ss : d, f = n.elementContext, w = f === void 0 ? dn : f, g = n.altBoundary, v = g === void 0 ? !1 : g, m = n.padding, h = m === void 0 ? 0 : m, N = Ps(typeof h != "number" ? h : $s(h, zn)), S = w === dn ? Jw : dn, C = t.rects.popper, E = t.elements[v ? S : w], b = Pf(Pe(E) ? E : E.contextElement || he(t.elements.popper), c, u, s), P = qe(t.elements.reference), L = As({ + reference: P, element: C, strategy: "absolute", placement: o - }), _ = uo(Object.assign({}, C, X)), I = w === un ? _ : $, U = { - top: v.top - I.top + k.top, - bottom: I.bottom - v.bottom + k.bottom, - left: v.left - I.left + k.left, - right: I.right - v.right + k.right - }, B = t.modifiersData.offset; - if (w === un && B) { - var M = B[o]; - Object.keys(U).forEach(function(D) { - var K = [Gt, Ut].indexOf(D) >= 0 ? 1 : -1, H = [Rt, Ut].indexOf(D) >= 0 ? "y" : "x"; - U[D] += M[H] * K; + }), _ = io(Object.assign({}, C, L)), $ = w === dn ? _ : P, F = { + top: b.top - $.top + N.top, + bottom: $.bottom - b.bottom + N.bottom, + left: b.left - $.left + N.left, + right: $.right - b.right + N.right + }, D = t.modifiersData.offset; + if (w === dn && D) { + var A = D[o]; + Object.keys(F).forEach(function(M) { + var Y = [Wt, Yt].indexOf(M) >= 0 ? 1 : -1, U = [At, Yt].indexOf(M) >= 0 ? "y" : "x"; + F[M] += A[U] * Y; }); } - return U; + return F; } -function Of(t, e) { +function $f(t, e) { e === void 0 && (e = {}); - var n = e, r = n.placement, o = n.boundary, a = n.rootBoundary, s = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, d = c === void 0 ? Ss : c, u = Ze(r), f = u ? l ? qa : qa.filter(function(b) { - return Ze(b) === u; - }) : zn, w = f.filter(function(b) { - return d.indexOf(b) >= 0; + var n = e, r = n.placement, o = n.boundary, a = n.rootBoundary, s = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, d = c === void 0 ? Cs : c, u = Ke(r), f = u ? l ? qa : qa.filter(function(v) { + return Ke(v) === u; + }) : zn, w = f.filter(function(v) { + return d.indexOf(v) >= 0; }); w.length === 0 && (w = f); - var g = w.reduce(function(b, m) { - return b[m] = On(t, { + var g = w.reduce(function(v, m) { + return v[m] = Sn(t, { placement: m, boundary: o, rootBoundary: a, padding: s - })[Kt(m)], b; + })[Qt(m)], v; }, {}); - return Object.keys(g).sort(function(b, m) { - return g[b] - g[m]; + return Object.keys(g).sort(function(v, m) { + return g[v] - g[m]; }); } -function Rf(t) { - if (Kt(t) === Uo) +function If(t) { + if (Qt(t) === Uo) return []; - var e = er(t); + var e = tr(t); return [Za(t), e, Za(e)]; } -function _f(t) { +function Af(t) { var e = t.state, n = t.options, r = t.name; if (!e.modifiersData[r]._skip) { - for (var o = n.mainAxis, a = o === void 0 ? !0 : o, s = n.altAxis, l = s === void 0 ? !0 : s, c = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, w = n.altBoundary, g = n.flipVariations, b = g === void 0 ? !0 : g, m = n.allowedAutoPlacements, h = e.options.placement, k = Kt(h), P = k === h, C = c || (P || !b ? [er(h)] : Rf(h)), E = [h].concat(C).reduce(function(G, J) { - return G.concat(Kt(J) === Uo ? Of(e, { - placement: J, + for (var o = n.mainAxis, a = o === void 0 ? !0 : o, s = n.altAxis, l = s === void 0 ? !0 : s, c = n.fallbackPlacements, d = n.padding, u = n.boundary, f = n.rootBoundary, w = n.altBoundary, g = n.flipVariations, v = g === void 0 ? !0 : g, m = n.allowedAutoPlacements, h = e.options.placement, N = Qt(h), S = N === h, C = c || (S || !v ? [tr(h)] : If(h)), E = [h].concat(C).reduce(function(z, q) { + return z.concat(Qt(q) === Uo ? $f(e, { + placement: q, boundary: u, rootBoundary: f, padding: d, - flipVariations: b, + flipVariations: v, allowedAutoPlacements: m - }) : J); - }, []), v = e.rects.reference, $ = e.rects.popper, X = /* @__PURE__ */ new Map(), _ = !0, I = E[0], U = 0; U < E.length; U++) { - var B = E[U], M = Kt(B), D = Ze(B) === qe, K = [Rt, Ut].indexOf(M) >= 0, H = K ? "width" : "height", z = On(e, { - placement: B, + }) : q); + }, []), b = e.rects.reference, P = e.rects.popper, L = /* @__PURE__ */ new Map(), _ = !0, $ = E[0], F = 0; F < E.length; F++) { + var D = E[F], A = Qt(D), M = Ke(D) === Ye, Y = [At, Yt].indexOf(A) >= 0, U = Y ? "width" : "height", V = Sn(e, { + placement: D, boundary: u, rootBoundary: f, altBoundary: w, padding: d - }), tt = K ? D ? Gt : _t : D ? Ut : Rt; - v[H] > $[H] && (tt = er(tt)); - var rt = er(tt), ot = []; - if (a && ot.push(z[M] <= 0), l && ot.push(z[tt] <= 0, z[rt] <= 0), ot.every(function(G) { - return G; + }), tt = Y ? M ? Wt : Mt : M ? Yt : At; + b[U] > P[U] && (tt = tr(tt)); + var ot = tr(tt), at = []; + if (a && at.push(V[A] <= 0), l && at.push(V[tt] <= 0, V[ot] <= 0), at.every(function(z) { + return z; })) { - I = B, _ = !1; + $ = D, _ = !1; break; } - X.set(B, ot); + L.set(D, at); } if (_) - for (var x = b ? 3 : 1, R = function(J) { - var L = E.find(function(Z) { - var q = X.get(Z); - if (q) - return q.slice(0, J).every(function(Q) { - return Q; + for (var x = v ? 3 : 1, O = function(q) { + var W = E.find(function(K) { + var H = L.get(K); + if (H) + return H.slice(0, q).every(function(Z) { + return Z; }); }); - if (L) - return I = L, "break"; - }, W = x; W > 0; W--) { - var Y = R(W); - if (Y === "break") + if (W) + return $ = W, "break"; + }, G = x; G > 0; G--) { + var X = O(G); + if (X === "break") break; } - e.placement !== I && (e.modifiersData[r]._skip = !0, e.placement = I, e.reset = !0); + e.placement !== $ && (e.modifiersData[r]._skip = !0, e.placement = $, e.reset = !0); } } -const Pf = { +const Mf = { name: "flip", enabled: !0, phase: "main", - fn: _f, + fn: Af, requiresIfExists: ["offset"], data: { _skip: !1 @@ -7546,14 +7546,14 @@ function ti(t, e, n) { }; } function ei(t) { - return [Rt, Gt, Ut, _t].some(function(e) { + return [At, Wt, Yt, Mt].some(function(e) { return t[e] >= 0; }); } -function $f(t) { - var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, a = e.modifiersData.preventOverflow, s = On(e, { +function Df(t) { + var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, a = e.modifiersData.preventOverflow, s = Sn(e, { elementContext: "reference" - }), l = On(e, { + }), l = Sn(e, { altBoundary: !0 }), c = ti(s, r), d = ti(l, o, a), u = ei(c), f = ei(d); e.modifiersData[n] = { @@ -7566,18 +7566,18 @@ function $f(t) { "data-popper-escaped": f }); } -const If = { +const Bf = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], - fn: $f + fn: Df }; -function Af(t, e, n) { - var r = Kt(t), o = [_t, Rt].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, e, { +function jf(t, e, n) { + var r = Qt(t), o = [Mt, At].indexOf(r) >= 0 ? -1 : 1, a = typeof n == "function" ? n(Object.assign({}, e, { placement: t })) : n, s = a[0], l = a[1]; - return s = s || 0, l = (l || 0) * o, [_t, Gt].indexOf(r) >= 0 ? { + return s = s || 0, l = (l || 0) * o, [Mt, Wt].indexOf(r) >= 0 ? { x: l, y: s } : { @@ -7585,109 +7585,109 @@ function Af(t, e, n) { y: l }; } -function Mf(t) { - var e = t.state, n = t.options, r = t.name, o = n.offset, a = o === void 0 ? [0, 0] : o, s = Ss.reduce(function(u, f) { - return u[f] = Af(f, e.rects, a), u; +function Vf(t) { + var e = t.state, n = t.options, r = t.name, o = n.offset, a = o === void 0 ? [0, 0] : o, s = Cs.reduce(function(u, f) { + return u[f] = jf(f, e.rects, a), u; }, {}), l = s[e.placement], c = l.x, d = l.y; e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += c, e.modifiersData.popperOffsets.y += d), e.modifiersData[r] = s; } -const Df = { +const zf = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], - fn: Mf + fn: Vf }; -function Bf(t) { +function Lf(t) { var e = t.state, n = t.name; - e.modifiersData[n] = Is({ + e.modifiersData[n] = As({ reference: e.rects.reference, element: e.rects.popper, strategy: "absolute", placement: e.placement }); } -const jf = { +const Ff = { name: "popperOffsets", enabled: !0, phase: "read", - fn: Bf, + fn: Lf, data: {} }; -function Vf(t) { +function Uf(t) { return t === "x" ? "y" : "x"; } -function zf(t) { - var e = t.state, n = t.options, r = t.name, o = n.mainAxis, a = o === void 0 ? !0 : o, s = n.altAxis, l = s === void 0 ? !1 : s, c = n.boundary, d = n.rootBoundary, u = n.altBoundary, f = n.padding, w = n.tether, g = w === void 0 ? !0 : w, b = n.tetherOffset, m = b === void 0 ? 0 : b, h = On(e, { +function Gf(t) { + var e = t.state, n = t.options, r = t.name, o = n.mainAxis, a = o === void 0 ? !0 : o, s = n.altAxis, l = s === void 0 ? !1 : s, c = n.boundary, d = n.rootBoundary, u = n.altBoundary, f = n.padding, w = n.tether, g = w === void 0 ? !0 : w, v = n.tetherOffset, m = v === void 0 ? 0 : v, h = Sn(e, { boundary: c, rootBoundary: d, padding: f, altBoundary: u - }), k = Kt(e.placement), P = Ze(e.placement), C = !P, E = Ho(k), v = Vf(E), $ = e.modifiersData.popperOffsets, X = e.rects.reference, _ = e.rects.popper, I = typeof m == "function" ? m(Object.assign({}, e.rects, { + }), N = Qt(e.placement), S = Ke(e.placement), C = !S, E = Ho(N), b = Uf(E), P = e.modifiersData.popperOffsets, L = e.rects.reference, _ = e.rects.popper, $ = typeof m == "function" ? m(Object.assign({}, e.rects, { placement: e.placement - })) : m, U = typeof I == "number" ? { - mainAxis: I, - altAxis: I + })) : m, F = typeof $ == "number" ? { + mainAxis: $, + altAxis: $ } : Object.assign({ mainAxis: 0, altAxis: 0 - }, I), B = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, M = { + }, $), D = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, A = { x: 0, y: 0 }; - if ($) { + if (P) { if (a) { - var D, K = E === "y" ? Rt : _t, H = E === "y" ? Ut : Gt, z = E === "y" ? "height" : "width", tt = $[E], rt = tt + h[K], ot = tt - h[H], x = g ? -_[z] / 2 : 0, R = P === qe ? X[z] : _[z], W = P === qe ? -_[z] : -X[z], Y = e.elements.arrow, G = g && Y ? Xo(Y) : { + var M, Y = E === "y" ? At : Mt, U = E === "y" ? Yt : Wt, V = E === "y" ? "height" : "width", tt = P[E], ot = tt + h[Y], at = tt - h[U], x = g ? -_[V] / 2 : 0, O = S === Ye ? L[V] : _[V], G = S === Ye ? -_[V] : -L[V], X = e.elements.arrow, z = g && X ? Xo(X) : { width: 0, height: 0 - }, J = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Rs(), L = J[K], Z = J[H], q = yn(0, X[z], G[z]), Q = C ? X[z] / 2 - x - q - L - U.mainAxis : R - q - L - U.mainAxis, O = C ? -X[z] / 2 + x + q + Z + U.mainAxis : W + q + Z + U.mainAxis, F = e.elements.arrow && Ln(e.elements.arrow), S = F ? E === "y" ? F.clientTop || 0 : F.clientLeft || 0 : 0, ft = (D = B == null ? void 0 : B[E]) != null ? D : 0, V = tt + Q - ft - S, xt = tt + O - ft, Ht = yn(g ? dr(rt, V) : rt, tt, g ? Ne(ot, xt) : ot); - $[E] = Ht, M[E] = Ht - tt; + }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : _s(), W = q[Y], K = q[U], H = vn(0, L[V], z[V]), Z = C ? L[V] / 2 - x - H - W - F.mainAxis : O - H - W - F.mainAxis, Q = C ? -L[V] / 2 + x + H + K + F.mainAxis : G + H + K + F.mainAxis, lt = e.elements.arrow && Ln(e.elements.arrow), R = lt ? E === "y" ? lt.clientTop || 0 : lt.clientLeft || 0 : 0, Et = (M = D == null ? void 0 : D[E]) != null ? M : 0, j = tt + Z - Et - R, xt = tt + Q - Et, Ot = vn(g ? ir(ot, j) : ot, tt, g ? Te(at, xt) : at); + P[E] = Ot, A[E] = Ot - tt; } if (l) { - var pe, Ct = E === "x" ? Rt : _t, Fn = E === "x" ? Ut : Gt, Yt = $[v], Pe = v === "y" ? "height" : "width", we = Yt + h[Ct], $e = Yt - h[Fn], Ie = [Rt, _t].indexOf(k) !== -1, Ae = (pe = B == null ? void 0 : B[v]) != null ? pe : 0, fe = Ie ? we : Yt - X[Pe] - _[Pe] - Ae + U.altAxis, nn = Ie ? Yt + X[Pe] + _[Pe] - Ae - U.altAxis : $e, Un = g && Ie ? df(fe, Yt, nn) : yn(g ? fe : we, Yt, g ? nn : $e); - $[v] = Un, M[v] = Un - Yt; + var oe, _t = E === "x" ? At : Mt, J = E === "x" ? Yt : Wt, nt = P[b], Nt = b === "y" ? "height" : "width", $t = nt + h[_t], Kt = nt - h[J], Ie = [At, Mt].indexOf(N) !== -1, Ae = (oe = D == null ? void 0 : D[b]) != null ? oe : 0, ge = Ie ? $t : nt - L[Nt] - _[Nt] - Ae + F.altAxis, en = Ie ? nt + L[Nt] + _[Nt] - Ae - F.altAxis : Kt, Fn = g && Ie ? ff(ge, nt, en) : vn(g ? ge : $t, nt, g ? en : Kt); + P[b] = Fn, A[b] = Fn - nt; } - e.modifiersData[r] = M; + e.modifiersData[r] = A; } } -const Lf = { +const Xf = { name: "preventOverflow", enabled: !0, phase: "main", - fn: zf, + fn: Gf, requiresIfExists: ["offset"] }; -function Ff(t) { +function Hf(t) { return { scrollLeft: t.scrollLeft, scrollTop: t.scrollTop }; } -function Uf(t) { - return t === Bt(t) || !Ft(t) ? Yo(t) : Ff(t); +function Yf(t) { + return t === Ft(t) || !Ht(t) ? Yo(t) : Hf(t); } -function Gf(t) { - var e = t.getBoundingClientRect(), n = Ke(e.width) / t.offsetWidth || 1, r = Ke(e.height) / t.offsetHeight || 1; +function Wf(t) { + var e = t.getBoundingClientRect(), n = We(e.width) / t.offsetWidth || 1, r = We(e.height) / t.offsetHeight || 1; return n !== 1 || r !== 1; } -function Xf(t, e, n) { +function qf(t, e, n) { n === void 0 && (n = !1); - var r = Ft(e), o = Ft(e) && Gf(e), a = ue(e), s = Je(t, o, n), l = { + var r = Ht(e), o = Ht(e) && Wf(e), a = he(e), s = qe(t, o, n), l = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 }; - return (r || !r && !n) && ((te(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 - qo(a)) && (l = Uf(e)), Ft(e) ? (c = Je(e, !0), c.x += e.clientLeft, c.y += e.clientTop) : a && (c.x = Wo(a))), { + return (r || !r && !n) && ((re(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078 + qo(a)) && (l = Yf(e)), Ht(e) ? (c = qe(e, !0), c.x += e.clientLeft, c.y += e.clientTop) : a && (c.x = Wo(a))), { x: s.left + l.scrollLeft - c.x, y: s.top + l.scrollTop - c.y, width: s.width, height: s.height }; } -function Hf(t) { +function Kf(t) { var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = []; t.forEach(function(a) { e.set(a.name, a); @@ -7706,15 +7706,15 @@ function Hf(t) { n.has(a.name) || o(a); }), r; } -function Yf(t) { - var e = Hf(t); - return rf.reduce(function(n, r) { +function Jf(t) { + var e = Kf(t); + return lf.reduce(function(n, r) { return n.concat(e.filter(function(o) { return o.phase === r; })); }, []); } -function Wf(t) { +function Zf(t) { var e; return function() { return e || (e = new Promise(function(n) { @@ -7724,7 +7724,7 @@ function Wf(t) { })), e; }; } -function qf(t) { +function Qf(t) { var e = t.reduce(function(n, r) { var o = n[r.name]; return n[r.name] = o ? Object.assign({}, o, r, { @@ -7748,7 +7748,7 @@ function ri() { return !(r && typeof r.getBoundingClientRect == "function"); }); } -function Kf(t) { +function tm(t) { t === void 0 && (t = {}); var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, a = o === void 0 ? ni : o; return function(l, c, d) { @@ -7766,16 +7766,16 @@ function Kf(t) { styles: {} }, f = [], w = !1, g = { state: u, - setOptions: function(k) { - var P = typeof k == "function" ? k(u.options) : k; - m(), u.options = Object.assign({}, a, u.options, P), u.scrollParents = { - reference: Oe(l) ? xn(l) : l.contextElement ? xn(l.contextElement) : [], - popper: xn(c) + setOptions: function(N) { + var S = typeof N == "function" ? N(u.options) : N; + m(), u.options = Object.assign({}, a, u.options, S), u.scrollParents = { + reference: Pe(l) ? yn(l) : l.contextElement ? yn(l.contextElement) : [], + popper: yn(c) }; - var C = Yf(qf([].concat(r, u.options.modifiers))); + var C = Jf(Qf([].concat(r, u.options.modifiers))); return u.orderedModifiers = C.filter(function(E) { return E.enabled; - }), b(), g.update(); + }), v(), g.update(); }, // Sync update – it will always be executed, even if not necessary. This // is useful for low frequency updates where sync behavior simplifies the @@ -7784,24 +7784,24 @@ function Kf(t) { // prefer the async Popper#update method forceUpdate: function() { if (!w) { - var k = u.elements, P = k.reference, C = k.popper; - if (ri(P, C)) { + var N = u.elements, S = N.reference, C = N.popper; + if (ri(S, C)) { u.rects = { - reference: Xf(P, Ln(C), u.options.strategy === "fixed"), + reference: qf(S, Ln(C), u.options.strategy === "fixed"), popper: Xo(C) - }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(U) { - return u.modifiersData[U.name] = Object.assign({}, U.data); + }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(F) { + return u.modifiersData[F.name] = Object.assign({}, F.data); }); for (var E = 0; E < u.orderedModifiers.length; E++) { if (u.reset === !0) { u.reset = !1, E = -1; continue; } - var v = u.orderedModifiers[E], $ = v.fn, X = v.options, _ = X === void 0 ? {} : X, I = v.name; - typeof $ == "function" && (u = $({ + var b = u.orderedModifiers[E], P = b.fn, L = b.options, _ = L === void 0 ? {} : L, $ = b.name; + typeof P == "function" && (u = P({ state: u, options: _, - name: I, + name: $, instance: g }) || u); } @@ -7810,7 +7810,7 @@ function Kf(t) { }, // Async and optimistically optimized update – it will not be executed if // not necessary (debounced to run at most once-per-tick) - update: Wf(function() { + update: Zf(function() { return new Promise(function(h) { g.forceUpdate(), h(u); }); @@ -7824,18 +7824,18 @@ function Kf(t) { g.setOptions(d).then(function(h) { !w && d.onFirstUpdate && d.onFirstUpdate(h); }); - function b() { + function v() { u.orderedModifiers.forEach(function(h) { - var k = h.name, P = h.options, C = P === void 0 ? {} : P, E = h.effect; + var N = h.name, S = h.options, C = S === void 0 ? {} : S, E = h.effect; if (typeof E == "function") { - var v = E({ + var b = E({ state: u, - name: k, + name: N, instance: g, options: C - }), $ = function() { + }), P = function() { }; - f.push(v || $); + f.push(b || P); } }); } @@ -7847,16 +7847,16 @@ function Kf(t) { return g; }; } -var Jf = [yf, jf, bf, sf, Df, Pf, Lf, ff, If], Zf = /* @__PURE__ */ Kf({ - defaultModifiers: Jf +var em = [Ef, Ff, Nf, uf, zf, Mf, Xf, bf, Bf], nm = /* @__PURE__ */ tm({ + defaultModifiers: em }); -const As = "Popper"; -function Qf(t) { - return Es(As, t); +const Ms = "Popper"; +function rm(t) { + return Ts(Ms, t); } -Gw(As, ["root"]); -const tm = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], em = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"]; -function nm(t, e) { +Ww(Ms, ["root"]); +const om = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"], am = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"]; +function im(t, e) { if (e === "ltr") return t; switch (t) { @@ -7872,18 +7872,18 @@ function nm(t, e) { return t; } } -function ur(t) { +function sr(t) { return typeof t == "function" ? t() : t; } -function Rr(t) { +function Tr(t) { return t.nodeType !== void 0; } -function rm(t) { - return !Rr(t); +function sm(t) { + return !Tr(t); } -const om = () => $o({ +const lm = () => $o({ root: ["root"] -}, Dw(Qf)), am = {}, im = /* @__PURE__ */ j.forwardRef(function(e, n) { +}, zw(rm)), cm = {}, dm = /* @__PURE__ */ B.forwardRef(function(e, n) { var r; const { anchorEl: o, @@ -7896,31 +7896,31 @@ const om = () => $o({ popperOptions: f, popperRef: w, slotProps: g = {}, - slots: b = {}, + slots: v = {}, TransitionProps: m // @ts-ignore internal logic // prevent from spreading to DOM, it can come from the parent component e.g. Select. - } = e, h = Et(e, tm), k = j.useRef(null), P = Se(k, n), C = j.useRef(null), E = Se(C, w), v = j.useRef(E); - We(() => { - v.current = E; - }, [E]), j.useImperativeHandle(w, () => C.current, []); - const $ = nm(u, s), [X, _] = j.useState($), [I, U] = j.useState(ur(o)); - j.useEffect(() => { + } = e, h = Rt(e, om), N = B.useRef(null), S = Re(N, n), C = B.useRef(null), E = Re(C, w), b = B.useRef(E); + He(() => { + b.current = E; + }, [E]), B.useImperativeHandle(w, () => C.current, []); + const P = im(u, s), [L, _] = B.useState(P), [$, F] = B.useState(sr(o)); + B.useEffect(() => { C.current && C.current.forceUpdate(); - }), j.useEffect(() => { - o && U(ur(o)); - }, [o]), We(() => { - if (!I || !d) + }), B.useEffect(() => { + o && F(sr(o)); + }, [o]), He(() => { + if (!$ || !d) return; - const H = (rt) => { - _(rt.placement); + const U = (ot) => { + _(ot.placement); }; - if (process.env.NODE_ENV !== "production" && I && Rr(I) && I.nodeType === 1) { - const rt = I.getBoundingClientRect(); - process.env.NODE_ENV !== "test" && rt.top === 0 && rt.left === 0 && rt.right === 0 && rt.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` + if (process.env.NODE_ENV !== "production" && $ && Tr($) && $.nodeType === 1) { + const ot = $.getBoundingClientRect(); + process.env.NODE_ENV !== "test" && ot.top === 0 && ot.left === 0 && ot.right === 0 && ot.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` `)); } - let z = [{ + let V = [{ name: "preventOverflow", options: { altBoundary: l @@ -7935,40 +7935,40 @@ const om = () => $o({ enabled: !0, phase: "afterWrite", fn: ({ - state: rt + state: ot }) => { - H(rt); + U(ot); } }]; - c != null && (z = z.concat(c)), f && f.modifiers != null && (z = z.concat(f.modifiers)); - const tt = Zf(I, k.current, A({ - placement: $ + c != null && (V = V.concat(c)), f && f.modifiers != null && (V = V.concat(f.modifiers)); + const tt = nm($, N.current, I({ + placement: P }, f, { - modifiers: z + modifiers: V })); - return v.current(tt), () => { - tt.destroy(), v.current(null); + return b.current(tt), () => { + tt.destroy(), b.current(null); }; - }, [I, l, c, d, f, $]); - const B = { - placement: X + }, [$, l, c, d, f, P]); + const D = { + placement: L }; - m !== null && (B.TransitionProps = m); - const M = om(), D = (r = b.root) != null ? r : "div", K = Lw({ - elementType: D, + m !== null && (D.TransitionProps = m); + const A = lm(), M = (r = v.root) != null ? r : "div", Y = Xw({ + elementType: M, externalSlotProps: g.root, externalForwardedProps: h, additionalProps: { role: "tooltip", - ref: P + ref: S }, ownerState: e, - className: M.root + className: A.root }); - return /* @__PURE__ */ i(D, A({}, K, { - children: typeof a == "function" ? a(B) : a + return /* @__PURE__ */ i(M, I({}, Y, { + children: typeof a == "function" ? a(D) : a })); -}), Ms = /* @__PURE__ */ j.forwardRef(function(e, n) { +}), Ds = /* @__PURE__ */ B.forwardRef(function(e, n) { const { anchorEl: r, children: o, @@ -7979,35 +7979,35 @@ const om = () => $o({ modifiers: d, open: u, placement: f = "bottom", - popperOptions: w = am, + popperOptions: w = cm, popperRef: g, - style: b, + style: v, transition: m = !1, slotProps: h = {}, - slots: k = {} - } = e, P = Et(e, em), [C, E] = j.useState(!0), v = () => { + slots: N = {} + } = e, S = Rt(e, am), [C, E] = B.useState(!0), b = () => { E(!1); - }, $ = () => { + }, P = () => { E(!0); }; if (!c && !u && (!m || C)) return null; - let X; + let L; if (a) - X = a; + L = a; else if (r) { - const U = ur(r); - X = U && Rr(U) ? ir(U).body : ir(null).body; + const F = sr(r); + L = F && Tr(F) ? nr(F).body : nr(null).body; } - const _ = !u && c && (!m || C) ? "none" : void 0, I = m ? { + const _ = !u && c && (!m || C) ? "none" : void 0, $ = m ? { in: u, - onEnter: v, - onExited: $ + onEnter: b, + onExited: P } : void 0; - return /* @__PURE__ */ i(cr, { + return /* @__PURE__ */ i(ar, { disablePortal: l, - container: X, - children: /* @__PURE__ */ i(im, A({ + container: L, + children: /* @__PURE__ */ i(dm, I({ anchorEl: r, direction: s, disablePortal: l, @@ -8018,22 +8018,22 @@ const om = () => $o({ popperOptions: w, popperRef: g, slotProps: h, - slots: k - }, P, { - style: A({ + slots: N + }, S, { + style: I({ // Prevents scroll issue, waiting for Popper.js to add this style once initiated. position: "fixed", // Fix Popper.js display issue top: 0, left: 0, display: _ - }, b), - TransitionProps: I, + }, v), + TransitionProps: $, children: o })) }); }); -process.env.NODE_ENV !== "production" && (Ms.propTypes = { +process.env.NODE_ENV !== "production" && (Ds.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ @@ -8044,15 +8044,15 @@ process.env.NODE_ENV !== "production" && (Ms.propTypes = { * It's used to set the position of the popper. * The return value will passed as the reference object of the Popper instance. */ - anchorEl: _o(p.oneOfType([Tn, p.object, p.func]), (t) => { + anchorEl: _o(p.oneOfType([kn, p.object, p.func]), (t) => { if (t.open) { - const e = ur(t.anchorEl); - if (e && Rr(e) && e.nodeType === 1) { + const e = sr(t.anchorEl); + if (e && Tr(e) && e.nodeType === 1) { const n = e.getBoundingClientRect(); if (process.env.NODE_ENV !== "test" && n.top === 0 && n.left === 0 && n.right === 0 && n.bottom === 0) return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(` `)); - } else if (!e || typeof e.getBoundingClientRect != "function" || rm(e) && e.contextElement != null && e.contextElement.nodeType !== 1) + } else if (!e || typeof e.getBoundingClientRect != "function" || sm(e) && e.contextElement != null && e.contextElement.nodeType !== 1) return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.", "It should be an HTML element instance or a virtualElement ", "(https://popper.js.org/docs/v2/virtual-elements/)."].join(` `)); } @@ -8072,7 +8072,7 @@ process.env.NODE_ENV !== "production" && (Ms.propTypes = { * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ - container: p.oneOfType([Tn, p.func]), + container: p.oneOfType([kn, p.func]), /** * Direction of the text. * @default 'ltr' @@ -8132,7 +8132,7 @@ process.env.NODE_ENV !== "production" && (Ms.propTypes = { /** * A ref that points to the used popper instance. */ - popperRef: ss, + popperRef: ls, /** * The props used for each slot inside the Popper. * @default {} @@ -8154,22 +8154,22 @@ process.env.NODE_ENV !== "production" && (Ms.propTypes = { */ transition: p.bool }); -function Ds() { - const t = vs(Vo); - return process.env.NODE_ENV !== "production" && j.useDebugValue(t), t[zo] || t; +function Bs() { + const t = ys(Vo); + return process.env.NODE_ENV !== "production" && B.useDebugValue(t), t[zo] || t; } -function po(t, e) { - return po = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) { +function so(t, e) { + return so = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, o) { return r.__proto__ = o, r; - }, po(t, e); + }, so(t, e); } -function sm(t, e) { - t.prototype = Object.create(e.prototype), t.prototype.constructor = t, po(t, e); +function um(t, e) { + t.prototype = Object.create(e.prototype), t.prototype.constructor = t, so(t, e); } const oi = { disabled: !1 }; -var lm = process.env.NODE_ENV !== "production" ? p.oneOfType([p.number, p.shape({ +var pm = process.env.NODE_ENV !== "production" ? p.oneOfType([p.number, p.shape({ enter: p.number, exit: p.number, appear: p.number @@ -8186,23 +8186,23 @@ process.env.NODE_ENV !== "production" && p.oneOfType([p.string, p.shape({ exitDone: p.string, exitActive: p.string })]); -const Bs = T.createContext(null); -var cm = function(e) { +const js = T.createContext(null); +var wm = function(e) { return e.scrollTop; -}, hn = "unmounted", ge = "exited", be = "entering", Le = "entered", wo = "exiting", se = /* @__PURE__ */ function(t) { - sm(e, t); +}, mn = "unmounted", ye = "exited", xe = "entering", Le = "entered", lo = "exiting", ue = /* @__PURE__ */ function(t) { + um(e, t); function e(r, o) { var a; a = t.call(this, r, o) || this; var s = o, l = s && !s.isMounting ? r.enter : r.appear, c; - return a.appearStatus = null, r.in ? l ? (c = ge, a.appearStatus = be) : c = Le : r.unmountOnExit || r.mountOnEnter ? c = hn : c = ge, a.state = { + return a.appearStatus = null, r.in ? l ? (c = ye, a.appearStatus = xe) : c = Le : r.unmountOnExit || r.mountOnEnter ? c = mn : c = ye, a.state = { status: c }, a.nextCallback = null, a; } e.getDerivedStateFromProps = function(o, a) { var s = o.in; - return s && a.status === hn ? { - status: ge + return s && a.status === mn ? { + status: ye } : null; }; var n = e.prototype; @@ -8212,7 +8212,7 @@ var cm = function(e) { var a = null; if (o !== this.props) { var s = this.state.status; - this.props.in ? s !== be && s !== Le && (a = be) : (s === be || s === Le) && (a = wo); + this.props.in ? s !== xe && s !== Le && (a = xe) : (s === xe || s === Le) && (a = lo); } this.updateStatus(!1, a); }, n.componentWillUnmount = function() { @@ -8226,20 +8226,20 @@ var cm = function(e) { }; }, n.updateStatus = function(o, a) { if (o === void 0 && (o = !1), a !== null) - if (this.cancelNextCallback(), a === be) { + if (this.cancelNextCallback(), a === xe) { if (this.props.unmountOnExit || this.props.mountOnEnter) { - var s = this.props.nodeRef ? this.props.nodeRef.current : Hn.findDOMNode(this); - s && cm(s); + var s = this.props.nodeRef ? this.props.nodeRef.current : Xn.findDOMNode(this); + s && wm(s); } this.performEnter(o); } else this.performExit(); else - this.props.unmountOnExit && this.state.status === ge && this.setState({ - status: hn + this.props.unmountOnExit && this.state.status === ye && this.setState({ + status: mn }); }, n.performEnter = function(o) { - var a = this, s = this.props.enter, l = this.context ? this.context.isMounting : o, c = this.props.nodeRef ? [l] : [Hn.findDOMNode(this), l], d = c[0], u = c[1], f = this.getTimeouts(), w = l ? f.appear : f.enter; + var a = this, s = this.props.enter, l = this.context ? this.context.isMounting : o, c = this.props.nodeRef ? [l] : [Xn.findDOMNode(this), l], d = c[0], u = c[1], f = this.getTimeouts(), w = l ? f.appear : f.enter; if (!o && !s || oi.disabled) { this.safeSetState({ status: Le @@ -8249,7 +8249,7 @@ var cm = function(e) { return; } this.props.onEnter(d, u), this.safeSetState({ - status: be + status: xe }, function() { a.props.onEntering(d, u), a.onTransitionEnd(w, function() { a.safeSetState({ @@ -8260,21 +8260,21 @@ var cm = function(e) { }); }); }, n.performExit = function() { - var o = this, a = this.props.exit, s = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Hn.findDOMNode(this); + var o = this, a = this.props.exit, s = this.getTimeouts(), l = this.props.nodeRef ? void 0 : Xn.findDOMNode(this); if (!a || oi.disabled) { this.safeSetState({ - status: ge + status: ye }, function() { o.props.onExited(l); }); return; } this.props.onExit(l), this.safeSetState({ - status: wo + status: lo }, function() { o.props.onExiting(l), o.onTransitionEnd(s.exit, function() { o.safeSetState({ - status: ge + status: ye }, function() { o.props.onExited(l); }); @@ -8293,7 +8293,7 @@ var cm = function(e) { }, this.nextCallback; }, n.onTransitionEnd = function(o, a) { this.setNextCallback(a); - var s = this.props.nodeRef ? this.props.nodeRef.current : Hn.findDOMNode(this), l = o == null && !this.props.addEndListener; + var s = this.props.nodeRef ? this.props.nodeRef.current : Xn.findDOMNode(this), l = o == null && !this.props.addEndListener; if (!s || l) { setTimeout(this.nextCallback, 0); return; @@ -8305,21 +8305,21 @@ var cm = function(e) { o != null && setTimeout(this.nextCallback, o); }, n.render = function() { var o = this.state.status; - if (o === hn) + if (o === mn) return null; var a = this.props, s = a.children; a.in, a.mountOnEnter, a.unmountOnExit, a.appear, a.enter, a.exit, a.timeout, a.addEndListener, a.onEnter, a.onEntering, a.onEntered, a.onExit, a.onExiting, a.onExited, a.nodeRef; - var l = Et(a, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); + var l = Rt(a, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]); return ( // allows for nested Transitions - /* @__PURE__ */ T.createElement(Bs.Provider, { + /* @__PURE__ */ T.createElement(js.Provider, { value: null }, typeof s == "function" ? s(o, l) : T.cloneElement(T.Children.only(s), l)) ); }, e; }(T.Component); -se.contextType = Bs; -se.propTypes = process.env.NODE_ENV !== "production" ? { +ue.contextType = js; +ue.propTypes = process.env.NODE_ENV !== "production" ? { /** * A React reference to DOM element that need to transition: * https://stackoverflow.com/a/51127130/4671932 @@ -8415,7 +8415,7 @@ se.propTypes = process.env.NODE_ENV !== "production" ? { * @type {number | { enter?: number, exit?: number, appear?: number }} */ timeout: function(e) { - var n = lm; + var n = pm; e.addEndListener || (n = n.isRequired); for (var r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++) o[a - 1] = arguments[a]; @@ -8490,7 +8490,7 @@ se.propTypes = process.env.NODE_ENV !== "production" ? { } : {}; function ze() { } -se.defaultProps = { +ue.defaultProps = { in: !1, mountOnEnter: !1, unmountOnExit: !1, @@ -8504,12 +8504,12 @@ se.defaultProps = { onExiting: ze, onExited: ze }; -se.UNMOUNTED = hn; -se.EXITED = ge; -se.ENTERING = be; -se.ENTERED = Le; -se.EXITING = wo; -const dm = se, um = (t) => t.scrollTop; +ue.UNMOUNTED = mn; +ue.EXITED = ye; +ue.ENTERING = xe; +ue.ENTERED = Le; +ue.EXITING = lo; +const fm = ue, mm = (t) => t.scrollTop; function ai(t, e) { var n, r; const { @@ -8523,20 +8523,20 @@ function ai(t, e) { delay: s.transitionDelay }; } -const pm = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]; -function fo(t) { +const hm = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]; +function co(t) { return `scale(${t}, ${t ** 2})`; } -const wm = { +const gm = { entering: { opacity: 1, - transform: fo(1) + transform: co(1) }, entered: { opacity: 1, transform: "none" } -}, qr = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), Ko = /* @__PURE__ */ j.forwardRef(function(e, n) { +}, Xr = typeof navigator < "u" && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\/)15(.|_)4/i.test(navigator.userAgent), Ko = /* @__PURE__ */ B.forwardRef(function(e, n) { const { addEndListener: r, appear: o = !0, @@ -8549,82 +8549,82 @@ const wm = { onExit: f, onExited: w, onExiting: g, - style: b, + style: v, timeout: m = "auto", // eslint-disable-next-line react/prop-types - TransitionComponent: h = dm - } = e, k = Et(e, pm), P = fn(), C = j.useRef(), E = Ds(), v = j.useRef(null), $ = Se(v, a.ref, n), X = (H) => (z) => { - if (H) { - const tt = v.current; - z === void 0 ? H(tt) : H(tt, z); - } - }, _ = X(u), I = X((H, z) => { - um(H); + TransitionComponent: h = fm + } = e, N = Rt(e, hm), S = wn(), C = B.useRef(), E = Bs(), b = B.useRef(null), P = Re(b, a.ref, n), L = (U) => (V) => { + if (U) { + const tt = b.current; + V === void 0 ? U(tt) : U(tt, V); + } + }, _ = L(u), $ = L((U, V) => { + mm(U); const { duration: tt, - delay: rt, - easing: ot + delay: ot, + easing: at } = ai({ - style: b, + style: v, timeout: m, easing: s }, { mode: "enter" }); let x; - m === "auto" ? (x = E.transitions.getAutoHeightDuration(H.clientHeight), C.current = x) : x = tt, H.style.transition = [E.transitions.create("opacity", { + m === "auto" ? (x = E.transitions.getAutoHeightDuration(U.clientHeight), C.current = x) : x = tt, U.style.transition = [E.transitions.create("opacity", { duration: x, - delay: rt + delay: ot }), E.transitions.create("transform", { - duration: qr ? x : x * 0.666, - delay: rt, - easing: ot - })].join(","), c && c(H, z); - }), U = X(d), B = X(g), M = X((H) => { + duration: Xr ? x : x * 0.666, + delay: ot, + easing: at + })].join(","), c && c(U, V); + }), F = L(d), D = L(g), A = L((U) => { const { - duration: z, + duration: V, delay: tt, - easing: rt + easing: ot } = ai({ - style: b, + style: v, timeout: m, easing: s }, { mode: "exit" }); - let ot; - m === "auto" ? (ot = E.transitions.getAutoHeightDuration(H.clientHeight), C.current = ot) : ot = z, H.style.transition = [E.transitions.create("opacity", { - duration: ot, + let at; + m === "auto" ? (at = E.transitions.getAutoHeightDuration(U.clientHeight), C.current = at) : at = V, U.style.transition = [E.transitions.create("opacity", { + duration: at, delay: tt }), E.transitions.create("transform", { - duration: qr ? ot : ot * 0.666, - delay: qr ? tt : tt || ot * 0.333, - easing: rt - })].join(","), H.style.opacity = 0, H.style.transform = fo(0.75), f && f(H); - }), D = X(w); - return /* @__PURE__ */ i(h, A({ + duration: Xr ? at : at * 0.666, + delay: Xr ? tt : tt || at * 0.333, + easing: ot + })].join(","), U.style.opacity = 0, U.style.transform = co(0.75), f && f(U); + }), M = L(w); + return /* @__PURE__ */ i(h, I({ appear: o, in: l, - nodeRef: v, - onEnter: I, - onEntered: U, + nodeRef: b, + onEnter: $, + onEntered: F, onEntering: _, - onExit: M, - onExited: D, - onExiting: B, - addEndListener: (H) => { - m === "auto" && P.start(C.current || 0, H), r && r(v.current, H); + onExit: A, + onExited: M, + onExiting: D, + addEndListener: (U) => { + m === "auto" && S.start(C.current || 0, U), r && r(b.current, U); }, timeout: m === "auto" ? null : m - }, k, { - children: (H, z) => /* @__PURE__ */ j.cloneElement(a, A({ - style: A({ + }, N, { + children: (U, V) => /* @__PURE__ */ B.cloneElement(a, I({ + style: I({ opacity: 0, - transform: fo(0.75), - visibility: H === "exited" && !l ? "hidden" : void 0 - }, wm[H], b, a.props.style), - ref: $ - }, z)) + transform: co(0.75), + visibility: U === "exited" && !l ? "hidden" : void 0 + }, gm[U], v, a.props.style), + ref: P + }, V)) })); }); process.env.NODE_ENV !== "production" && (Ko.propTypes = { @@ -8647,7 +8647,7 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = { /** * A single child content element. */ - children: as.isRequired, + children: is.isRequired, /** * The transition timing function. * You may specify a single easing or a object containing enter and exit values. @@ -8702,13 +8702,13 @@ process.env.NODE_ENV !== "production" && (Ko.propTypes = { })]) }); Ko.muiSupportAuto = !0; -const ii = Ko, fm = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], mm = Vn(Ms, { +const ii = Ko, bm = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"], vm = Vn(Ds, { name: "MuiPopper", slot: "Root", overridesResolver: (t, e) => e.root -})({}), js = /* @__PURE__ */ j.forwardRef(function(e, n) { +})({}), Vs = /* @__PURE__ */ B.forwardRef(function(e, n) { var r; - const o = bs(), a = Lo({ + const o = vs(), a = Lo({ props: e, name: "MuiPopper" }), { @@ -8720,37 +8720,37 @@ const ii = Ko, fm = ["anchorEl", "component", "components", "componentsProps", " disablePortal: f, keepMounted: w, modifiers: g, - open: b, + open: v, placement: m, popperOptions: h, - popperRef: k, - transition: P, + popperRef: N, + transition: S, slots: C, slotProps: E - } = a, v = Et(a, fm), $ = (r = C == null ? void 0 : C.root) != null ? r : c == null ? void 0 : c.Root, X = A({ + } = a, b = Rt(a, bm), P = (r = C == null ? void 0 : C.root) != null ? r : c == null ? void 0 : c.Root, L = I({ anchorEl: s, container: u, disablePortal: f, keepMounted: w, modifiers: g, - open: b, + open: v, placement: m, popperOptions: h, - popperRef: k, - transition: P - }, v); - return /* @__PURE__ */ i(mm, A({ + popperRef: N, + transition: S + }, b); + return /* @__PURE__ */ i(vm, I({ as: l, direction: o == null ? void 0 : o.direction, slots: { - root: $ + root: P }, slotProps: E ?? d - }, X, { + }, L, { ref: n })); }); -process.env.NODE_ENV !== "production" && (js.propTypes = { +process.env.NODE_ENV !== "production" && (Vs.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │ @@ -8761,7 +8761,7 @@ process.env.NODE_ENV !== "production" && (js.propTypes = { * It's used to set the position of the popper. * The return value will passed as the reference object of the Popper instance. */ - anchorEl: p.oneOfType([Tn, p.object, p.func]), + anchorEl: p.oneOfType([kn, p.object, p.func]), /** * Popper render function or node. */ @@ -8796,7 +8796,7 @@ process.env.NODE_ENV !== "production" && (js.propTypes = { * By default, it uses the body of the top-level document object, * so it's simply `document.body` most of the time. */ - container: p.oneOfType([Tn, p.func]), + container: p.oneOfType([kn, p.func]), /** * The `children` will be under the DOM hierarchy of the parent component. * @default false @@ -8851,7 +8851,7 @@ process.env.NODE_ENV !== "production" && (js.propTypes = { /** * A ref that points to the used popper instance. */ - popperRef: ss, + popperRef: ls, /** * The props used for each slot inside the Popper. * @default {} @@ -8877,15 +8877,15 @@ process.env.NODE_ENV !== "production" && (js.propTypes = { */ transition: p.bool }); -const Vs = js; -function hm(t) { - return br("MuiTooltip", t); +const zs = Vs; +function ym(t) { + return fr("MuiTooltip", t); } -const gm = fs("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), ce = gm, bm = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"]; -function vm(t) { +const xm = ms("MuiTooltip", ["popper", "popperInteractive", "popperArrow", "popperClose", "tooltip", "tooltipArrow", "touch", "tooltipPlacementLeft", "tooltipPlacementRight", "tooltipPlacementTop", "tooltipPlacementBottom", "arrow"]), we = xm, Nm = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"]; +function km(t) { return Math.round(t * 1e5) / 1e5; } -const ym = (t) => { +const Em = (t) => { const { classes: e, disableInteractive: n, @@ -8894,11 +8894,11 @@ const ym = (t) => { placement: a } = t, s = { popper: ["popper", !n && "popperInteractive", r && "popperArrow"], - tooltip: ["tooltip", r && "tooltipArrow", o && "touch", `tooltipPlacement${Qt(a.split("-")[0])}`], + tooltip: ["tooltip", r && "tooltipArrow", o && "touch", `tooltipPlacement${ne(a.split("-")[0])}`], arrow: ["arrow"] }; - return $o(s, hm, e); -}, xm = Vn(Vs, { + return $o(s, ym, e); +}, Tm = Vn(zs, { name: "MuiTooltip", slot: "Popper", overridesResolver: (t, e) => { @@ -8911,7 +8911,7 @@ const ym = (t) => { theme: t, ownerState: e, open: n -}) => A({ +}) => I({ zIndex: (t.vars || t).zIndex.tooltip, pointerEvents: "none" }, !e.disableInteractive && { @@ -8919,21 +8919,21 @@ const ym = (t) => { }, !n && { pointerEvents: "none" }, e.arrow && { - [`&[data-popper-placement*="bottom"] .${ce.arrow}`]: { + [`&[data-popper-placement*="bottom"] .${we.arrow}`]: { top: 0, marginTop: "-0.71em", "&::before": { transformOrigin: "0 100%" } }, - [`&[data-popper-placement*="top"] .${ce.arrow}`]: { + [`&[data-popper-placement*="top"] .${we.arrow}`]: { bottom: 0, marginBottom: "-0.71em", "&::before": { transformOrigin: "100% 0" } }, - [`&[data-popper-placement*="right"] .${ce.arrow}`]: A({}, e.isRtl ? { + [`&[data-popper-placement*="right"] .${we.arrow}`]: I({}, e.isRtl ? { right: 0, marginRight: "-0.71em" } : { @@ -8946,7 +8946,7 @@ const ym = (t) => { transformOrigin: "100% 100%" } }), - [`&[data-popper-placement*="left"] .${ce.arrow}`]: A({}, e.isRtl ? { + [`&[data-popper-placement*="left"] .${we.arrow}`]: I({}, e.isRtl ? { left: 0, marginLeft: "-0.71em" } : { @@ -8959,20 +8959,20 @@ const ym = (t) => { transformOrigin: "0 0" } }) -})), Nm = Vn("div", { +})), Sm = Vn("div", { name: "MuiTooltip", slot: "Tooltip", overridesResolver: (t, e) => { const { ownerState: n } = t; - return [e.tooltip, n.touch && e.touch, n.arrow && e.tooltipArrow, e[`tooltipPlacement${Qt(n.placement.split("-")[0])}`]]; + return [e.tooltip, n.touch && e.touch, n.arrow && e.tooltipArrow, e[`tooltipPlacement${ne(n.placement.split("-")[0])}`]]; } })(({ theme: t, ownerState: e -}) => A({ - backgroundColor: t.vars ? t.vars.palette.Tooltip.bg : ys(t.palette.grey[700], 0.92), +}) => I({ + backgroundColor: t.vars ? t.vars.palette.Tooltip.bg : xs(t.palette.grey[700], 0.92), borderRadius: (t.vars || t).shape.borderRadius, color: (t.vars || t).palette.common.white, fontFamily: t.typography.fontFamily, @@ -8988,44 +8988,44 @@ const ym = (t) => { }, e.touch && { padding: "8px 16px", fontSize: t.typography.pxToRem(14), - lineHeight: `${vm(16 / 14)}em`, + lineHeight: `${km(16 / 14)}em`, fontWeight: t.typography.fontWeightRegular }, { - [`.${ce.popper}[data-popper-placement*="left"] &`]: A({ + [`.${we.popper}[data-popper-placement*="left"] &`]: I({ transformOrigin: "right center" - }, e.isRtl ? A({ + }, e.isRtl ? I({ marginLeft: "14px" }, e.touch && { marginLeft: "24px" - }) : A({ + }) : I({ marginRight: "14px" }, e.touch && { marginRight: "24px" })), - [`.${ce.popper}[data-popper-placement*="right"] &`]: A({ + [`.${we.popper}[data-popper-placement*="right"] &`]: I({ transformOrigin: "left center" - }, e.isRtl ? A({ + }, e.isRtl ? I({ marginRight: "14px" }, e.touch && { marginRight: "24px" - }) : A({ + }) : I({ marginLeft: "14px" }, e.touch && { marginLeft: "24px" })), - [`.${ce.popper}[data-popper-placement*="top"] &`]: A({ + [`.${we.popper}[data-popper-placement*="top"] &`]: I({ transformOrigin: "center bottom", marginBottom: "14px" }, e.touch && { marginBottom: "24px" }), - [`.${ce.popper}[data-popper-placement*="bottom"] &`]: A({ + [`.${we.popper}[data-popper-placement*="bottom"] &`]: I({ transformOrigin: "center top", marginTop: "14px" }, e.touch && { marginTop: "24px" }) -})), km = Vn("span", { +})), Cm = Vn("span", { name: "MuiTooltip", slot: "Arrow", overridesResolver: (t, e) => e.arrow @@ -9037,7 +9037,7 @@ const ym = (t) => { width: "1em", height: "0.71em", boxSizing: "border-box", - color: t.vars ? t.vars.palette.Tooltip.bg : ys(t.palette.grey[700], 0.9), + color: t.vars ? t.vars.palette.Tooltip.bg : xs(t.palette.grey[700], 0.9), "&::before": { content: '""', margin: "auto", @@ -9048,211 +9048,211 @@ const ym = (t) => { transform: "rotate(45deg)" } })); -let Kn = !1; +let qn = !1; const si = new Dn(); -let pn = { +let un = { x: 0, y: 0 }; -function Jn(t, e) { +function Kn(t, e) { return (n) => { e && e(n), t(n); }; } -const zs = /* @__PURE__ */ j.forwardRef(function(e, n) { - var r, o, a, s, l, c, d, u, f, w, g, b, m, h, k, P, C, E, v; - const $ = Lo({ +const Ls = /* @__PURE__ */ B.forwardRef(function(e, n) { + var r, o, a, s, l, c, d, u, f, w, g, v, m, h, N, S, C, E, b; + const P = Lo({ props: e, name: "MuiTooltip" }), { - arrow: X = !1, + arrow: L = !1, children: _, - components: I = {}, - componentsProps: U = {}, - describeChild: B = !1, - disableFocusListener: M = !1, - disableHoverListener: D = !1, - disableInteractive: K = !1, - disableTouchListener: H = !1, - enterDelay: z = 100, + components: $ = {}, + componentsProps: F = {}, + describeChild: D = !1, + disableFocusListener: A = !1, + disableHoverListener: M = !1, + disableInteractive: Y = !1, + disableTouchListener: U = !1, + enterDelay: V = 100, enterNextDelay: tt = 0, - enterTouchDelay: rt = 700, - followCursor: ot = !1, + enterTouchDelay: ot = 700, + followCursor: at = !1, id: x, - leaveDelay: R = 0, - leaveTouchDelay: W = 1500, - onClose: Y, - onOpen: G, - open: J, - placement: L = "bottom", - PopperComponent: Z, - PopperProps: q = {}, - slotProps: Q = {}, - slots: O = {}, - title: F, - TransitionComponent: S = ii, - TransitionProps: ft - } = $, V = Et($, bm), xt = /* @__PURE__ */ j.isValidElement(_) ? _ : /* @__PURE__ */ i("span", { + leaveDelay: O = 0, + leaveTouchDelay: G = 1500, + onClose: X, + onOpen: z, + open: q, + placement: W = "bottom", + PopperComponent: K, + PopperProps: H = {}, + slotProps: Z = {}, + slots: Q = {}, + title: lt, + TransitionComponent: R = ii, + TransitionProps: Et + } = P, j = Rt(P, Nm), xt = /* @__PURE__ */ B.isValidElement(_) ? _ : /* @__PURE__ */ i("span", { children: _ - }), Ht = Ds(), pe = Ht.direction === "rtl", [Ct, Fn] = j.useState(), [Yt, Pe] = j.useState(null), we = j.useRef(!1), $e = K || ot, Ie = fn(), Ae = fn(), fe = fn(), nn = fn(), [Un, Jo] = cs({ - controlled: J, + }), Ot = Bs(), oe = Ot.direction === "rtl", [_t, J] = B.useState(), [nt, Nt] = B.useState(null), $t = B.useRef(!1), Kt = Y || at, Ie = wn(), Ae = wn(), ge = wn(), en = wn(), [Fn, Jo] = ds({ + controlled: q, default: !1, name: "Tooltip", state: "open" }); - let ee = Un; + let ae = Fn; if (process.env.NODE_ENV !== "production") { const { current: et - } = j.useRef(J !== void 0); - j.useEffect(() => { - Ct && Ct.disabled && !et && F !== "" && Ct.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(` + } = B.useRef(q !== void 0); + B.useEffect(() => { + _t && _t.disabled && !et && lt !== "" && _t.tagName.toLowerCase() === "button" && console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.", "A disabled element does not fire events.", "Tooltip needs to listen to the child element's events to display the title.", "", "Add a simple wrapper element, such as a `span`."].join(` `)); - }, [F, Ct, et]); + }, [lt, _t, et]); } - const _r = ls(x), rn = j.useRef(), Gn = so(() => { - rn.current !== void 0 && (document.body.style.WebkitUserSelect = rn.current, rn.current = void 0), nn.clear(); + const Sr = cs(x), nn = B.useRef(), Un = ro(() => { + nn.current !== void 0 && (document.body.style.WebkitUserSelect = nn.current, nn.current = void 0), en.clear(); }); - j.useEffect(() => Gn, [Gn]); + B.useEffect(() => Un, [Un]); const Zo = (et) => { - si.clear(), Kn = !0, Jo(!0), G && !ee && G(et); - }, Xn = so( + si.clear(), qn = !0, Jo(!0), z && !ae && z(et); + }, Gn = ro( /** * @param {React.SyntheticEvent | Event} event */ (et) => { - si.start(800 + R, () => { - Kn = !1; - }), Jo(!1), Y && ee && Y(et), Ie.start(Ht.transitions.duration.shortest, () => { - we.current = !1; + si.start(800 + O, () => { + qn = !1; + }), Jo(!1), X && ae && X(et), Ie.start(Ot.transitions.duration.shortest, () => { + $t.current = !1; }); } - ), Pr = (et) => { - we.current && et.type !== "touchstart" || (Ct && Ct.removeAttribute("title"), Ae.clear(), fe.clear(), z || Kn && tt ? Ae.start(Kn ? tt : z, () => { + ), Cr = (et) => { + $t.current && et.type !== "touchstart" || (_t && _t.removeAttribute("title"), Ae.clear(), ge.clear(), V || qn && tt ? Ae.start(qn ? tt : V, () => { Zo(et); }) : Zo(et)); }, Qo = (et) => { - Ae.clear(), fe.start(R, () => { - Xn(et); + Ae.clear(), ge.start(O, () => { + Gn(et); }); }, { isFocusVisibleRef: ta, - onBlur: qs, - onFocus: Ks, - ref: Js - } = ds(), [, ea] = j.useState(!1), na = (et) => { - qs(et), ta.current === !1 && (ea(!1), Qo(et)); + onBlur: Js, + onFocus: Zs, + ref: Qs + } = us(), [, ea] = B.useState(!1), na = (et) => { + Js(et), ta.current === !1 && (ea(!1), Qo(et)); }, ra = (et) => { - Ct || Fn(et.currentTarget), Ks(et), ta.current === !0 && (ea(!0), Pr(et)); + _t || J(et.currentTarget), Zs(et), ta.current === !0 && (ea(!0), Cr(et)); }, oa = (et) => { - we.current = !0; - const It = xt.props; - It.onTouchStart && It.onTouchStart(et); - }, aa = Pr, ia = Qo, Zs = (et) => { - oa(et), fe.clear(), Ie.clear(), Gn(), rn.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", nn.start(rt, () => { - document.body.style.WebkitUserSelect = rn.current, Pr(et); + $t.current = !0; + const jt = xt.props; + jt.onTouchStart && jt.onTouchStart(et); + }, aa = Cr, ia = Qo, tl = (et) => { + oa(et), ge.clear(), Ie.clear(), Un(), nn.current = document.body.style.WebkitUserSelect, document.body.style.WebkitUserSelect = "none", en.start(ot, () => { + document.body.style.WebkitUserSelect = nn.current, Cr(et); }); - }, Qs = (et) => { - xt.props.onTouchEnd && xt.props.onTouchEnd(et), Gn(), fe.start(W, () => { - Xn(et); + }, el = (et) => { + xt.props.onTouchEnd && xt.props.onTouchEnd(et), Un(), ge.start(G, () => { + Gn(et); }); }; - j.useEffect(() => { - if (!ee) + B.useEffect(() => { + if (!ae) return; - function et(It) { - (It.key === "Escape" || It.key === "Esc") && Xn(It); + function et(jt) { + (jt.key === "Escape" || jt.key === "Esc") && Gn(jt); } return document.addEventListener("keydown", et), () => { document.removeEventListener("keydown", et); }; - }, [Xn, ee]); - const tl = Se(xt.ref, Js, Fn, n); - !F && F !== 0 && (ee = !1); - const $r = j.useRef(), el = (et) => { - const It = xt.props; - It.onMouseMove && It.onMouseMove(et), pn = { + }, [Gn, ae]); + const nl = Re(xt.ref, Qs, J, n); + !lt && lt !== 0 && (ae = !1); + const Or = B.useRef(), rl = (et) => { + const jt = xt.props; + jt.onMouseMove && jt.onMouseMove(et), un = { x: et.clientX, y: et.clientY - }, $r.current && $r.current.update(); - }, on = {}, Ir = typeof F == "string"; - B ? (on.title = !ee && Ir && !D ? F : null, on["aria-describedby"] = ee ? _r : null) : (on["aria-label"] = Ir ? F : null, on["aria-labelledby"] = ee && !Ir ? _r : null); - const jt = A({}, on, V, xt.props, { - className: xe(V.className, xt.props.className), + }, Or.current && Or.current.update(); + }, rn = {}, Rr = typeof lt == "string"; + D ? (rn.title = !ae && Rr && !M ? lt : null, rn["aria-describedby"] = ae ? Sr : null) : (rn["aria-label"] = Rr ? lt : null, rn["aria-labelledby"] = ae && !Rr ? Sr : null); + const Ut = I({}, rn, j, xt.props, { + className: Ee(j.className, xt.props.className), onTouchStart: oa, - ref: tl - }, ot ? { - onMouseMove: el + ref: nl + }, at ? { + onMouseMove: rl } : {}); - process.env.NODE_ENV !== "production" && (jt["data-mui-internal-clone-element"] = !0, j.useEffect(() => { - Ct && !Ct.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(` + process.env.NODE_ENV !== "production" && (Ut["data-mui-internal-clone-element"] = !0, B.useEffect(() => { + _t && !_t.getAttribute("data-mui-internal-clone-element") && console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.", "Please make sure that props are spread on the same element that the ref is applied to."].join(` `)); - }, [Ct])); - const an = {}; - H || (jt.onTouchStart = Zs, jt.onTouchEnd = Qs), D || (jt.onMouseOver = Jn(aa, jt.onMouseOver), jt.onMouseLeave = Jn(ia, jt.onMouseLeave), $e || (an.onMouseOver = aa, an.onMouseLeave = ia)), M || (jt.onFocus = Jn(ra, jt.onFocus), jt.onBlur = Jn(na, jt.onBlur), $e || (an.onFocus = ra, an.onBlur = na)), process.env.NODE_ENV !== "production" && xt.props.title && console.error(["MUI: You have provided a `title` prop to the child of .", `Remove this title prop \`${xt.props.title}\` or the Tooltip component.`].join(` + }, [_t])); + const on = {}; + U || (Ut.onTouchStart = tl, Ut.onTouchEnd = el), M || (Ut.onMouseOver = Kn(aa, Ut.onMouseOver), Ut.onMouseLeave = Kn(ia, Ut.onMouseLeave), Kt || (on.onMouseOver = aa, on.onMouseLeave = ia)), A || (Ut.onFocus = Kn(ra, Ut.onFocus), Ut.onBlur = Kn(na, Ut.onBlur), Kt || (on.onFocus = ra, on.onBlur = na)), process.env.NODE_ENV !== "production" && xt.props.title && console.error(["MUI: You have provided a `title` prop to the child of .", `Remove this title prop \`${xt.props.title}\` or the Tooltip component.`].join(` `)); - const nl = j.useMemo(() => { + const ol = B.useMemo(() => { var et; - let It = [{ + let jt = [{ name: "arrow", - enabled: !!Yt, + enabled: !!nt, options: { - element: Yt, + element: nt, padding: 4 } }]; - return (et = q.popperOptions) != null && et.modifiers && (It = It.concat(q.popperOptions.modifiers)), A({}, q.popperOptions, { - modifiers: It + return (et = H.popperOptions) != null && et.modifiers && (jt = jt.concat(H.popperOptions.modifiers)), I({}, H.popperOptions, { + modifiers: jt }); - }, [Yt, q]), sn = A({}, $, { - isRtl: pe, - arrow: X, - disableInteractive: $e, - placement: L, - PopperComponentProp: Z, - touch: we.current - }), Ar = ym(sn), sa = (r = (o = O.popper) != null ? o : I.Popper) != null ? r : xm, la = (a = (s = (l = O.transition) != null ? l : I.Transition) != null ? s : S) != null ? a : ii, ca = (c = (d = O.tooltip) != null ? d : I.Tooltip) != null ? c : Nm, da = (u = (f = O.arrow) != null ? f : I.Arrow) != null ? u : km, rl = mn(sa, A({}, q, (w = Q.popper) != null ? w : U.popper, { - className: xe(Ar.popper, q == null ? void 0 : q.className, (g = (b = Q.popper) != null ? b : U.popper) == null ? void 0 : g.className) - }), sn), ol = mn(la, A({}, ft, (m = Q.transition) != null ? m : U.transition), sn), al = mn(ca, A({}, (h = Q.tooltip) != null ? h : U.tooltip, { - className: xe(Ar.tooltip, (k = (P = Q.tooltip) != null ? P : U.tooltip) == null ? void 0 : k.className) - }), sn), il = mn(da, A({}, (C = Q.arrow) != null ? C : U.arrow, { - className: xe(Ar.arrow, (E = (v = Q.arrow) != null ? v : U.arrow) == null ? void 0 : E.className) - }), sn); - return /* @__PURE__ */ y(j.Fragment, { - children: [/* @__PURE__ */ j.cloneElement(xt, jt), /* @__PURE__ */ i(sa, A({ - as: Z ?? Vs, - placement: L, - anchorEl: ot ? { + }, [nt, H]), an = I({}, P, { + isRtl: oe, + arrow: L, + disableInteractive: Kt, + placement: W, + PopperComponentProp: K, + touch: $t.current + }), _r = Em(an), sa = (r = (o = Q.popper) != null ? o : $.Popper) != null ? r : Tm, la = (a = (s = (l = Q.transition) != null ? l : $.Transition) != null ? s : R) != null ? a : ii, ca = (c = (d = Q.tooltip) != null ? d : $.Tooltip) != null ? c : Sm, da = (u = (f = Q.arrow) != null ? f : $.Arrow) != null ? u : Cm, al = fn(sa, I({}, H, (w = Z.popper) != null ? w : F.popper, { + className: Ee(_r.popper, H == null ? void 0 : H.className, (g = (v = Z.popper) != null ? v : F.popper) == null ? void 0 : g.className) + }), an), il = fn(la, I({}, Et, (m = Z.transition) != null ? m : F.transition), an), sl = fn(ca, I({}, (h = Z.tooltip) != null ? h : F.tooltip, { + className: Ee(_r.tooltip, (N = (S = Z.tooltip) != null ? S : F.tooltip) == null ? void 0 : N.className) + }), an), ll = fn(da, I({}, (C = Z.arrow) != null ? C : F.arrow, { + className: Ee(_r.arrow, (E = (b = Z.arrow) != null ? b : F.arrow) == null ? void 0 : E.className) + }), an); + return /* @__PURE__ */ y(B.Fragment, { + children: [/* @__PURE__ */ B.cloneElement(xt, Ut), /* @__PURE__ */ i(sa, I({ + as: K ?? zs, + placement: W, + anchorEl: at ? { getBoundingClientRect: () => ({ - top: pn.y, - left: pn.x, - right: pn.x, - bottom: pn.y, + top: un.y, + left: un.x, + right: un.x, + bottom: un.y, width: 0, height: 0 }) - } : Ct, - popperRef: $r, - open: Ct ? ee : !1, - id: _r, + } : _t, + popperRef: Or, + open: _t ? ae : !1, + id: Sr, transition: !0 - }, an, rl, { - popperOptions: nl, + }, on, al, { + popperOptions: ol, children: ({ TransitionProps: et - }) => /* @__PURE__ */ i(la, A({ - timeout: Ht.transitions.duration.shorter - }, et, ol, { - children: /* @__PURE__ */ y(ca, A({}, al, { - children: [F, X ? /* @__PURE__ */ i(da, A({}, il, { - ref: Pe + }) => /* @__PURE__ */ i(la, I({ + timeout: Ot.transitions.duration.shorter + }, et, il, { + children: /* @__PURE__ */ y(ca, I({}, sl, { + children: [lt, L ? /* @__PURE__ */ i(da, I({}, ll, { + ref: Nt })) : null] })) })) }))] }); }); -process.env.NODE_ENV !== "production" && (zs.propTypes = { +process.env.NODE_ENV !== "production" && (Ls.propTypes = { // ┌────────────────────────────── Warning ──────────────────────────────┐ // │ These PropTypes are generated from the TypeScript type definitions. │ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │ @@ -9265,7 +9265,7 @@ process.env.NODE_ENV !== "production" && (zs.propTypes = { /** * Tooltip reference element. */ - children: as.isRequired, + children: is.isRequired, /** * Override or extend the styles applied to the component. */ @@ -9445,11 +9445,11 @@ process.env.NODE_ENV !== "production" && (zs.propTypes = { */ TransitionProps: p.object }); -const Em = zs; +const Om = Ls; function li(t, e, n) { - return t ? /* @__PURE__ */ i(vi, { className: `papi-menu-icon-${n ? "leading" : "trailing"}`, children: /* @__PURE__ */ i("img", { src: t, alt: `${n ? "Leading" : "Trailing"} icon for ${e}` }) }) : void 0; + return t ? /* @__PURE__ */ i(xi, { className: `papi-menu-icon-${n ? "leading" : "trailing"}`, children: /* @__PURE__ */ i("img", { src: t, alt: `${n ? "Leading" : "Trailing"} icon for ${e}` }) }) : void 0; } -function Ls(t) { +function Fs(t) { const { onClick: e, label: n, @@ -9464,11 +9464,11 @@ function Ls(t) { isSubMenuParent: f = !1, hasDisabledGutters: w = !1, hasDivider: g = !1, - focusVisibleClassName: b, + focusVisibleClassName: v, id: m, children: h - } = t, k = /* @__PURE__ */ i( - Kl, + } = t, N = /* @__PURE__ */ i( + Ql, { sx: { lineHeight: 0.8 }, autoFocus: l, @@ -9477,38 +9477,38 @@ function Ls(t) { dense: u, disableGutters: w, divider: g, - focusVisibleClassName: b, + focusVisibleClassName: v, onClick: e, id: m, - children: n ? /* @__PURE__ */ y(ie, { children: [ + children: n ? /* @__PURE__ */ y(de, { children: [ li(a, n, !0), - /* @__PURE__ */ i(Jl, { primary: n, inset: !a && o }), - f ? /* @__PURE__ */ i(vi, { className: "papi-menu-icon-trailing", children: /* @__PURE__ */ i(Ns, {}) }) : li(s, n, !1) + /* @__PURE__ */ i(tc, { primary: n, inset: !a && o }), + f ? /* @__PURE__ */ i(xi, { className: "papi-menu-icon-trailing", children: /* @__PURE__ */ i(ks, {}) }) : li(s, n, !1) ] }) : h } ); - return r ? /* @__PURE__ */ i(Em, { title: r, placement: "right", children: /* @__PURE__ */ i("div", { children: k }) }) : k; + return r ? /* @__PURE__ */ i(Om, { title: r, placement: "right", children: /* @__PURE__ */ i("div", { children: N }) }) : N; } -function Fs(t) { +function Us(t) { return Object.entries(t.groups).map(([n, r]) => ({ id: n, group: r })); } -function Tm(t) { - const [e, n] = it(void 0), { parentMenuItem: r, parentItemProps: o, menuDefinition: a } = t, s = (d) => { +function Rm(t) { + const [e, n] = st(void 0), { parentMenuItem: r, parentItemProps: o, menuDefinition: a } = t, s = (d) => { n(d.currentTarget); }, l = () => { n(void 0); }, c = () => { - let d = Fs(a).filter((u) => "menuItem" in u.group); + let d = Us(a).filter((u) => "menuItem" in u.group); if (!(r != null && r.id)) throw new Error("A valid parent menu item is required for submenus."); return d = d.filter( (u) => "menuItem" in u.group && u.group.menuItem === r.id - ), /* @__PURE__ */ i(Us, { ...t, includedGroups: d }); + ), /* @__PURE__ */ i(Gs, { ...t, includedGroups: d }); }; - return /* @__PURE__ */ y(ie, { children: [ - /* @__PURE__ */ i(Ls, { onClick: s, ...o, isSubMenuParent: !0 }), + return /* @__PURE__ */ y(de, { children: [ + /* @__PURE__ */ i(Fs, { onClick: s, ...o, isSubMenuParent: !0 }), /* @__PURE__ */ i( - Zl, + ec, { anchorEl: e, open: !!e, @@ -9527,23 +9527,23 @@ function Tm(t) { ) ] }); } -const Sm = (t, e) => e.filter((o) => o.group === t).sort((o, a) => (o.order || 0) - (a.order || 0)); -function Us(t) { - const { menuDefinition: e, onClick: n, commandHandler: r, includedGroups: o } = t, { items: a, allowForLeadingIcons: s } = Nt(() => { +const _m = (t, e) => e.filter((o) => o.group === t).sort((o, a) => (o.order || 0) - (a.order || 0)); +function Gs(t) { + const { menuDefinition: e, onClick: n, commandHandler: r, includedGroups: o } = t, { items: a, allowForLeadingIcons: s } = Tt(() => { const u = o && o.length > 0 ? o : ( // We're apparently laying out a single-column menu (presumably a context menu). In this // case, all groups should be included except ones that belong to a submenu. - Fs(e).filter((b) => !("menuItem" in b.group)) + Us(e).filter((v) => !("menuItem" in v.group)) ), f = Object.values(u).sort( - (b, m) => (b.group.order || 0) - (m.group.order || 0) + (v, m) => (v.group.order || 0) - (m.group.order || 0) ), w = []; - f.forEach((b) => { - Sm(b.id, e.items).forEach( + f.forEach((v) => { + _m(v.id, e.items).forEach( (m) => w.push({ item: m, isLastItemInGroup: !1 }) ), w.length > 0 && (w[w.length - 1].isLastItemInGroup = !0); }), w.length > 0 && (w[w.length - 1].isLastItemInGroup = !1); const g = w.some( - (b) => "iconPathBefore" in b.item && b.item.iconPathBefore + (v) => "iconPathBefore" in v.item && v.item.iconPathBefore ); return { items: w, allowForLeadingIcons: g }; }, [o, e]), l = ({ item: u, isLastItemInGroup: f }) => ({ @@ -9562,20 +9562,20 @@ function Us(t) { return /* @__PURE__ */ i("div", { role: "menu", "aria-label": d, children: a.map((u, f) => { const { item: w } = u, g = l(u); if ("command" in w) { - const b = w.group + f; + const v = w.group + f; return /* @__PURE__ */ i( - Ls, + Fs, { onClick: (m) => { n == null || n(m), r(w); }, ...g }, - b + v ); } return /* @__PURE__ */ i( - Tm, + Rm, { parentMenuItem: w, parentItemProps: g, @@ -9585,16 +9585,16 @@ function Us(t) { ); }) }, d); } -function Cm(t) { +function Pm(t) { const { menuDefinition: e, columnId: n } = t; let a = Object.entries(e.groups).map(([s, l]) => ({ id: s, group: l })).filter((s) => "column" in s.group); return n && "columns" in e && // Without this type assertion, TS doesn't know what columns is. // eslint-disable-next-line no-type-assertion/no-type-assertion e.columns[n] && (a = a.filter( (s) => "column" in s.group && s.group.column === n - )), /* @__PURE__ */ i(Us, { ...t, includedGroups: a }); + )), /* @__PURE__ */ i(Gs, { ...t, includedGroups: a }); } -function Om({ +function $m({ commandHandler: t, menuDefinition: e, id: n, @@ -9603,7 +9603,7 @@ function Om({ className: a }) { return /* @__PURE__ */ y( - yi, + Ni, { id: n, item: !0, @@ -9613,8 +9613,8 @@ function Om({ className: `papi-menu-column ${a ?? ""}`, children: [ /* @__PURE__ */ i("h3", { "aria-label": r.label, className: `papi-menu-column-header ${a ?? ""}`, children: r.label }), - /* @__PURE__ */ i(Ql, { id: n, dense: !0, className: a ?? "", children: /* @__PURE__ */ i( - Cm, + /* @__PURE__ */ i(nc, { id: n, dense: !0, className: a ?? "", children: /* @__PURE__ */ i( + Pm, { commandHandler: t, menuDefinition: e, @@ -9626,13 +9626,13 @@ function Om({ } ); } -function Rm({ +function Im({ commandHandler: t, className: e, multiColumnMenu: n, id: r }) { - const { columns: o } = n, a = Nt(() => { + const { columns: o } = n, a = Tt(() => { const s = /* @__PURE__ */ new Map(); return Object.getOwnPropertyNames(o).forEach((l) => { if (l === "isExtensible") @@ -9644,7 +9644,7 @@ function Rm({ }), Array.from(s.values()).sort((l, c) => (l.metadata.order || 0) - (c.metadata.order || 0)); }, [o, r]); return /* @__PURE__ */ i( - yi, + Ni, { container: !0, spacing: 0, @@ -9654,7 +9654,7 @@ function Rm({ "aria-label": "GridMenu", id: r, children: a.map((s, l) => /* @__PURE__ */ i( - Om, + $m, { commandHandler: t, menuDefinition: n, @@ -9666,19 +9666,19 @@ function Rm({ } ); } -function _m(t) { +function Am(t) { return { preserveValue: !0, ...t }; } -const mo = (t, e, n = {}) => { - const r = ye(e); +const uo = (t, e, n = {}) => { + const r = ke(e); r.current = e; - const o = ye(n); - o.current = _m(o.current); - const [a, s] = it(() => r.current), [l, c] = it(!0); - return Jt(() => { + const o = ke(n); + o.current = Am(o.current); + const [a, s] = st(() => r.current), [l, c] = st(!0); + return te(() => { let d = !0; return c(!!t), (async () => { if (t) { @@ -9689,10 +9689,10 @@ const mo = (t, e, n = {}) => { d = !1, o.current.preserveValue || s(() => r.current); }; }, [t]), [a, l]; -}, Pm = xs(/* @__PURE__ */ i("path", { +}, Mm = Ns(/* @__PURE__ */ i("path", { d: "M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z" }), "Menu"); -function $m({ +function Dm({ menuProvider: t, normalMenu: e, fullMenu: n, @@ -9702,36 +9702,36 @@ function $m({ ariaLabelPrefix: s, children: l }) { - const [c, d] = it(!1), [u, f] = it(!1), w = Tt(() => { + const [c, d] = st(!1), [u, f] = st(!1), w = Pt(() => { c && d(!1), f(!1); - }, [c]), g = Tt((E) => { - E.stopPropagation(), d((v) => { - const $ = !v; - return $ && E.shiftKey ? f(!0) : $ || f(!1), $; + }, [c]), g = Pt((E) => { + E.stopPropagation(), d((b) => { + const P = !b; + return P && E.shiftKey ? f(!0) : P || f(!1), P; }); - }, []), b = Tt( + }, []), v = Pt( (E) => (w(), r(E)), [r, w] - ), [m, h] = it({ top: 1, left: 1 }); - Jt(() => { + ), [m, h] = st({ top: 1, left: 1 }); + te(() => { if (c) { const E = o == null ? void 0 : o.current; if (E) { - const v = E.getBoundingClientRect(), $ = window.scrollY, X = window.scrollX, _ = v.top + $ + E.clientHeight, I = v.left + X; - h({ top: _, left: I }); + const b = E.getBoundingClientRect(), P = window.scrollY, L = window.scrollX, _ = b.top + P + E.clientHeight, $ = b.left + L; + h({ top: _, left: $ }); } } }, [c, o]); - const [k] = mo( - Tt(async () => (t == null ? void 0 : t(!1)) ?? e, [t, e, c]), + const [N] = uo( + Pt(async () => (t == null ? void 0 : t(!1)) ?? e, [t, e, c]), e - ), [P] = mo( - Tt(async () => (t == null ? void 0 : t(!0)) ?? n ?? k, [t, n, k, c]), - n ?? k - ), C = u && P ? P : k; - return /* @__PURE__ */ y(ie, { children: [ + ), [S] = uo( + Pt(async () => (t == null ? void 0 : t(!0)) ?? n ?? N, [t, n, N, c]), + n ?? N + ), C = u && S ? S : N; + return /* @__PURE__ */ y(de, { children: [ /* @__PURE__ */ i( - xi, + ki, { sx: { paddingTop: 0, @@ -9742,11 +9742,11 @@ function $m({ color: "inherit", "aria-label": `${s ?? ""} menu button`, onClick: g, - children: l ?? /* @__PURE__ */ i(Pm, {}) + children: l ?? /* @__PURE__ */ i(Mm, {}) } ), /* @__PURE__ */ i( - tc, + rc, { className: `papi-menu-drawer ${a ?? ""}`, anchor: "left", @@ -9761,11 +9761,11 @@ function $m({ } }, children: C ? /* @__PURE__ */ i( - Rm, + Im, { className: a, id: `${s ?? ""} main menu`, - commandHandler: b, + commandHandler: v, multiColumnMenu: C } ) : void 0 @@ -9773,7 +9773,7 @@ function $m({ ) ] }); } -function Ah({ +function Bh({ id: t, label: e, isDisabled: n = !1, @@ -9786,7 +9786,7 @@ function Ah({ children: d }) { return /* @__PURE__ */ i( - xi, + ki, { id: t, disabled: n, @@ -9800,9 +9800,9 @@ function Ah({ } ); } -const _e = pr(({ className: t, ...e }, n) => /* @__PURE__ */ i(Cl, { size: 35, className: N("tw-animate-spin", t), ...e, ref: n })); -_e.displayName = "Spinner"; -function Mh({ +const $e = lr(({ className: t, ...e }, n) => /* @__PURE__ */ i(Rl, { size: 35, className: k("tw-animate-spin", t), ...e, ref: n })); +$e.displayName = "Spinner"; +function jh({ id: t, isDisabled: e = !1, hasError: n = !1, @@ -9818,12 +9818,12 @@ function Mh({ onFocus: w, onBlur: g }) { - return /* @__PURE__ */ y("div", { className: N("tw-inline-grid tw-items-center tw-gap-1.5", { "tw-w-full": r }), children: [ + return /* @__PURE__ */ y("div", { className: k("tw-inline-grid tw-items-center tw-gap-1.5", { "tw-w-full": r }), children: [ /* @__PURE__ */ i( - St, + Ct, { htmlFor: t, - className: N({ + className: k({ "tw-text-red-600": n, "tw-hidden": !a }), @@ -9831,13 +9831,13 @@ function Mh({ } ), /* @__PURE__ */ i( - Re, + Qe, { id: t, disabled: e, placeholder: s, required: l, - className: N(c, { "tw-border-red-600": n }), + className: k(c, { "tw-border-red-600": n }), defaultValue: d, value: u, onChange: f, @@ -9845,25 +9845,25 @@ function Mh({ onBlur: g } ), - /* @__PURE__ */ i("p", { className: N({ "tw-hidden": !o }), children: o }) + /* @__PURE__ */ i("p", { className: k({ "tw-hidden": !o }), children: o }) ] }); } -function Dh({ +function Vh({ menuProvider: t, commandHandler: e, className: n, id: r, children: o }) { - const a = ye(void 0); - return /* @__PURE__ */ i("div", { ref: a, style: { position: "relative" }, children: /* @__PURE__ */ i(ec, { position: "static", id: r, children: /* @__PURE__ */ y( - nc, + const a = ke(void 0); + return /* @__PURE__ */ i("div", { ref: a, style: { position: "relative" }, children: /* @__PURE__ */ i(oc, { position: "static", id: r, children: /* @__PURE__ */ y( + ac, { - className: N("tw-bg-muted tw-text-muted-foreground", n), + className: k("tw-bg-muted tw-text-muted-foreground", n), variant: "dense", children: [ t ? /* @__PURE__ */ i( - $m, + Dm, { commandHandler: e, containerRef: a, @@ -9875,7 +9875,7 @@ function Dh({ } ) }) }); } -const Im = tn( +const Bm = Ze( "tw-relative tw-w-full tw-rounded-lg tw-border tw-p-4 [&>svg~*]:tw-pl-7 [&>svg+div]:tw-translate-y-[-3px] [&>svg]:tw-absolute [&>svg]:tw-left-4 [&>svg]:tw-top-4 [&>svg]:tw-text-foreground", { variants: { @@ -9888,14 +9888,14 @@ const Im = tn( variant: "default" } } -), Am = T.forwardRef(({ className: t, variant: e, ...n }, r) => /* @__PURE__ */ i("div", { ref: r, role: "alert", className: N(Im({ variant: e }), t), ...n })); -Am.displayName = "Alert"; -const Mm = T.forwardRef( +), jm = T.forwardRef(({ className: t, variant: e, ...n }, r) => /* @__PURE__ */ i("div", { ref: r, role: "alert", className: k(Bm({ variant: e }), t), ...n })); +jm.displayName = "Alert"; +const Vm = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ y( "h5", { ref: n, - className: N("tw-mb-1 tw-font-medium tw-leading-none tw-tracking-tight", t), + className: k("tw-mb-1 tw-font-medium tw-leading-none tw-tracking-tight", t), ...e, children: [ e.children, @@ -9904,10 +9904,10 @@ const Mm = T.forwardRef( } ) ); -Mm.displayName = "AlertTitle"; -const Dm = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i("div", { ref: n, className: N("tw-text-sm [&_p]:tw-leading-relaxed", t), ...e })); -Dm.displayName = "AlertDescription"; -const Bm = tn( +Vm.displayName = "AlertTitle"; +const zm = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i("div", { ref: n, className: k("tw-text-sm [&_p]:tw-leading-relaxed", t), ...e })); +zm.displayName = "AlertDescription"; +const Lm = Ze( "tw-inline-flex tw-items-center tw-rounded-full tw-border tw-px-2.5 tw-py-0.5 tw-text-xs tw-font-semibold tw-transition-colors focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2", { variants: { @@ -9924,15 +9924,15 @@ const Bm = tn( } } ); -function Bh({ className: t, variant: e, ...n }) { - return /* @__PURE__ */ i("div", { className: N("pr-twp", Bm({ variant: e }), t), ...n }); +function Fm({ className: t, variant: e, ...n }) { + return /* @__PURE__ */ i("div", { className: k("pr-twp", Lm({ variant: e }), t), ...n }); } -const Gs = T.forwardRef( +const Xs = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "div", { ref: n, - className: N( + className: k( "pr-twp tw-rounded-lg tw-border tw-bg-card tw-text-card-foreground tw-shadow-sm", t ), @@ -9940,24 +9940,24 @@ const Gs = T.forwardRef( } ) ); -Gs.displayName = "Card"; -const Xs = T.forwardRef( +Xs.displayName = "Card"; +const Hs = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "div", { ref: n, - className: N("pr-twp tw-flex tw-flex-col tw-space-y-1.5 tw-p-6", t), + className: k("pr-twp tw-flex tw-flex-col tw-space-y-1.5 tw-p-6", t), ...e } ) ); -Xs.displayName = "CardHeader"; -const Hs = T.forwardRef( +Hs.displayName = "CardHeader"; +const Ys = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "h3", { ref: n, - className: N( + className: k( "pr-twp tw-text-2xl tw-font-semibold tw-leading-none tw-tracking-tight", t ), @@ -9966,27 +9966,27 @@ const Hs = T.forwardRef( } ) ); -Hs.displayName = "CardTitle"; -const Ys = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i("p", { ref: n, className: N("pr-twp tw-text-sm tw-text-muted-foreground", t), ...e })); -Ys.displayName = "CardDescription"; -const Ws = T.forwardRef( - ({ className: t, ...e }, n) => /* @__PURE__ */ i("div", { ref: n, className: N("pr-twp tw-p-6 tw-pt-0", t), ...e }) +Ys.displayName = "CardTitle"; +const Ws = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i("p", { ref: n, className: k("pr-twp tw-text-sm tw-text-muted-foreground", t), ...e })); +Ws.displayName = "CardDescription"; +const qs = T.forwardRef( + ({ className: t, ...e }, n) => /* @__PURE__ */ i("div", { ref: n, className: k("pr-twp tw-p-6 tw-pt-0", t), ...e }) ); -Ws.displayName = "CardContent"; -const jm = T.forwardRef( +qs.displayName = "CardContent"; +const Ks = T.forwardRef( ({ className: t, ...e }, n) => /* @__PURE__ */ i( "div", { ref: n, - className: N("pr-twp tw-flex tw-items-center tw-p-6 tw-pt-0", t), + className: k("pr-twp tw-flex tw-items-center tw-p-6 tw-pt-0", t), ...e } ) ); -jm.displayName = "CardFooter"; -function jh({ ...t }) { +Ks.displayName = "CardFooter"; +function zh({ ...t }) { return /* @__PURE__ */ i( - oc, + sc, { className: "tw-toaster tw-group", toastOptions: { @@ -10001,41 +10001,41 @@ function jh({ ...t }) { } ); } -const Vm = T.forwardRef(({ className: t, ...e }, n) => { - const r = kt(); +const Um = T.forwardRef(({ className: t, ...e }, n) => { + const r = St(); return /* @__PURE__ */ y( - wn.Root, + pn.Root, { ref: n, - className: N( + className: k( "pr-twp tw-relative tw-flex tw-w-full tw-touch-none tw-select-none tw-items-center", t ), ...e, dir: r, children: [ - /* @__PURE__ */ i(wn.Track, { className: "tw-relative tw-h-2 tw-w-full tw-grow tw-overflow-hidden tw-rounded-full tw-bg-secondary", children: /* @__PURE__ */ i(wn.Range, { className: "tw-absolute tw-h-full tw-bg-primary" }) }), - /* @__PURE__ */ i(wn.Thumb, { className: "tw-block tw-h-5 tw-w-5 tw-rounded-full tw-border-2 tw-border-primary tw-bg-background tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50" }) + /* @__PURE__ */ i(pn.Track, { className: "tw-relative tw-h-2 tw-w-full tw-grow tw-overflow-hidden tw-rounded-full tw-bg-secondary", children: /* @__PURE__ */ i(pn.Range, { className: "tw-absolute tw-h-full tw-bg-primary" }) }), + /* @__PURE__ */ i(pn.Thumb, { className: "tw-block tw-h-5 tw-w-5 tw-rounded-full tw-border-2 tw-border-primary tw-bg-background tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50" }) ] } ); }); -Vm.displayName = wn.Root.displayName; -const zm = T.forwardRef(({ className: t, ...e }, n) => { - const r = kt(); +Um.displayName = pn.Root.displayName; +const Gm = T.forwardRef(({ className: t, ...e }, n) => { + const r = St(); return /* @__PURE__ */ i( - to.Root, + qr.Root, { - className: N( + className: k( "tw-peer pr-twp tw-inline-flex tw-h-6 tw-w-11 tw-shrink-0 tw-cursor-pointer tw-items-center tw-rounded-full tw-border-2 tw-border-transparent tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 focus-visible:tw-ring-offset-background disabled:tw-cursor-not-allowed disabled:tw-opacity-50 data-[state=checked]:tw-bg-primary data-[state=unchecked]:tw-bg-input", t ), ...e, ref: n, children: /* @__PURE__ */ i( - to.Thumb, + qr.Thumb, { - className: N( + className: k( "pr-twp tw-pointer-events-none tw-block tw-h-5 tw-w-5 tw-rounded-full tw-bg-background tw-shadow-lg tw-ring-0 tw-transition-transform", { "data-[state=checked]:tw-translate-x-5 data-[state=unchecked]:tw-translate-x-0": r === "ltr" @@ -10049,14 +10049,14 @@ const zm = T.forwardRef(({ className: t, ...e }, n) => { } ); }); -zm.displayName = to.Root.displayName; -const Vh = $t.Root, Lm = T.forwardRef(({ className: t, ...e }, n) => { - const r = kt(); +Gm.displayName = qr.Root.displayName; +const Lh = Bt.Root, Xm = T.forwardRef(({ className: t, ...e }, n) => { + const r = St(); return /* @__PURE__ */ i( - $t.List, + Bt.List, { ref: n, - className: N( + className: k( "tw-inline-flex tw-h-10 tw-items-center tw-justify-center tw-rounded-md tw-bg-muted tw-p-1 tw-text-muted-foreground", t ), @@ -10065,32 +10065,32 @@ const Vh = $t.Root, Lm = T.forwardRef(({ className: t, ...e }, n) => { } ); }); -Lm.displayName = $t.List.displayName; -const Fm = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - $t.Trigger, +Xm.displayName = Bt.List.displayName; +const Hm = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Bt.Trigger, { ref: n, - className: N( + className: k( "tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-sm tw-px-3 tw-py-1.5 tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-all hover:tw-text-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=active]:tw-bg-background data-[state=active]:tw-text-foreground data-[state=active]:tw-shadow-sm", t ), ...e } )); -Fm.displayName = $t.Trigger.displayName; -const Um = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( - $t.Content, +Hm.displayName = Bt.Trigger.displayName; +const Ym = T.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ i( + Bt.Content, { ref: n, - className: N( + className: k( "tw-mt-2 tw-ring-offset-background focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2", t ), ...e } )); -Um.displayName = $t.Content.displayName; -function zh({ +Ym.displayName = Bt.Content.displayName; +function Fh({ isInstalling: t, handleClick: e, buttonText: n, @@ -10098,9 +10098,9 @@ function zh({ ...o }) { return /* @__PURE__ */ i( - wt, + mt, { - className: N( + className: k( "tw-h-8 tw-rounded-md tw-text-white tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-blue-700", { "tw-cursor-not-allowed tw-bg-blue-700": t, @@ -10112,23 +10112,23 @@ function zh({ ), onClick: e, ...o, - children: t ? /* @__PURE__ */ i(_e, { size: 15 }) : /* @__PURE__ */ y(ie, { children: [ - /* @__PURE__ */ i(Ol, { size: 25, className: N("tw-h-4 tw-w-4", { "tw-mr-1": n }) }), + children: t ? /* @__PURE__ */ i($e, { size: 15 }) : /* @__PURE__ */ y(de, { children: [ + /* @__PURE__ */ i(_l, { size: 25, className: k("tw-h-4 tw-w-4", { "tw-mr-1": n }) }), n ] }) } ); } -function Lh({ +function Uh({ isEnabling: t, handleClick: e, className: n, ...r }) { return /* @__PURE__ */ i( - wt, + mt, { - className: N( + className: k( "tw-h-8 tw-rounded-md tw-bg-blue-600 tw-px-4 tw-text-white tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-blue-700", { "tw-cursor-not-allowed tw-bg-blue-700": t @@ -10137,23 +10137,23 @@ function Lh({ ), onClick: e, ...r, - children: t ? /* @__PURE__ */ y(ie, { children: [ - /* @__PURE__ */ i(_e, { size: 15, className: "tw-mr-1 tw-text-white" }), + children: t ? /* @__PURE__ */ y(de, { children: [ + /* @__PURE__ */ i($e, { size: 15, className: "tw-mr-1 tw-text-white" }), "Enabling..." ] }) : "Enable" } ); } -function Fh({ +function Gh({ isDisabling: t, handleClick: e, className: n, ...r }) { return /* @__PURE__ */ i( - wt, + mt, { - className: N( + className: k( "tw-h-8 tw-rounded-md tw-bg-gray-300 tw-text-black tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-gray-400", { "tw-cursor-not-allowed tw-bg-gray-400": t @@ -10162,23 +10162,23 @@ function Fh({ ), onClick: e, ...r, - children: t ? /* @__PURE__ */ y(ie, { children: [ - /* @__PURE__ */ i(_e, { size: 15, className: "tw-mr-1 tw-text-black" }), + children: t ? /* @__PURE__ */ y(de, { children: [ + /* @__PURE__ */ i($e, { size: 15, className: "tw-mr-1 tw-text-black" }), "Disabling..." ] }) : "Disable" } ); } -function Uh({ +function Xh({ isUpdating: t, handleClick: e, className: n, ...r }) { return /* @__PURE__ */ i( - wt, + mt, { - className: N( + className: k( "tw-h-8 tw-rounded-md tw-bg-blue-600 tw-px-4 tw-text-white tw-transition tw-duration-300 tw-ease-in-out hover:tw-bg-blue-700 hover:tw-text-white", { "tw-cursor-not-allowed tw-bg-blue-700": t @@ -10187,20 +10187,20 @@ function Uh({ ), onClick: e, ...r, - children: t ? /* @__PURE__ */ y(ie, { children: [ - /* @__PURE__ */ i(_e, { size: 15, className: "tw-mr-1 tw-text-white" }), + children: t ? /* @__PURE__ */ y(de, { children: [ + /* @__PURE__ */ i($e, { size: 15, className: "tw-mr-1 tw-text-white" }), "Updating..." ] }) : "Update" } ); } -function Gh({ +function Hh({ id: t, markdown: e, className: n, anchorTarget: r }) { - const o = Nt( + const o = Tt( () => ({ overrides: { a: { @@ -10212,19 +10212,19 @@ function Gh({ }), [r] ); - return /* @__PURE__ */ i("div", { id: t, className: N("pr-twp tw-prose", n), children: /* @__PURE__ */ i(ac, { options: o, children: e }) }); + return /* @__PURE__ */ i("div", { id: t, className: k("pr-twp tw-prose", n), children: /* @__PURE__ */ i(lc, { options: o, children: e }) }); } -const Gm = pr((t, e) => /* @__PURE__ */ y( - wt, +const Wm = lr((t, e) => /* @__PURE__ */ y( + mt, { ref: e, className: "tw-rounded-md tw-border tw-border-dashed tw-border-gray-400 tw-bg-white tw-px-4 tw-py-2 tw-text-black tw-transition tw-duration-300 tw-ease-in-out hover:tw-border-blue-600 hover:tw-bg-white hover:tw-text-blue-600", ...t, children: [ - /* @__PURE__ */ i(Rl, { size: 16, className: "tw-mr-2 tw-h-4 tw-w-4 tw-text-gray-700 hover:tw-text-blue-600" }), + /* @__PURE__ */ i(Pl, { size: 16, className: "tw-mr-2 tw-h-4 tw-w-4 tw-text-gray-700 hover:tw-text-blue-600" }), "Filter", /* @__PURE__ */ i( - Ue, + On, { size: 16, className: "tw-ml-2 tw-h-4 tw-w-4 tw-text-gray-700 hover:tw-text-blue-600" @@ -10233,28 +10233,28 @@ const Gm = pr((t, e) => /* @__PURE__ */ y( ] } )); -var Xm = /* @__PURE__ */ ((t) => (t[t.Check = 0] = "Check", t[t.Radio = 1] = "Radio", t))(Xm || {}); -function Xh({ id: t, groups: e }) { - return /* @__PURE__ */ i("div", { id: t, children: /* @__PURE__ */ y(En, { children: [ - /* @__PURE__ */ i(rr, { asChild: !0, children: /* @__PURE__ */ i(Gm, {}) }), - /* @__PURE__ */ i(Ge, { children: e.map((n) => /* @__PURE__ */ y("div", { children: [ +var qm = /* @__PURE__ */ ((t) => (t[t.Check = 0] = "Check", t[t.Radio = 1] = "Radio", t))(qm || {}); +function Yh({ id: t, groups: e }) { + return /* @__PURE__ */ i("div", { id: t, children: /* @__PURE__ */ y(dr, { children: [ + /* @__PURE__ */ i(mo, { asChild: !0, children: /* @__PURE__ */ i(Wm, {}) }), + /* @__PURE__ */ i(_n, { children: e.map((n) => /* @__PURE__ */ y("div", { children: [ /* @__PURE__ */ i(Pn, { children: n.label }), - /* @__PURE__ */ i(cc, { children: n.items.map((r) => /* @__PURE__ */ i("div", { children: r.itemType === 0 ? /* @__PURE__ */ i(fr, { onClick: r.onClick, children: r.label }) : /* @__PURE__ */ i(Ni, { onClick: r.onClick, value: r.label, children: r.label }) }, r.label)) }), + /* @__PURE__ */ i(pc, { children: n.items.map((r) => /* @__PURE__ */ i("div", { children: r.itemType === 0 ? /* @__PURE__ */ i(ho, { onClick: r.onClick, children: r.label }) : /* @__PURE__ */ i(Ei, { onClick: r.onClick, value: r.label, children: r.label }) }, r.label)) }), /* @__PURE__ */ i($n, {}) ] }, n.label)) }) ] }) }); } -function Hh({ id: t, message: e }) { +function Wh({ id: t, message: e }) { return /* @__PURE__ */ i("div", { id: t, className: "tw-mb-20 tw-mt-20 tw-flex tw-items-center tw-justify-center", children: /* @__PURE__ */ i("div", { className: "tw-w-3/4 tw-rounded-lg tw-bg-gray-100 tw-p-8 tw-text-center", children: /* @__PURE__ */ i("p", { className: "tw-text-lg tw-text-gray-800", children: e }) }) }); } -function Yh({ +function qh({ id: t, category: e, downloads: n, languages: r, moreInfoUrl: o }) { - const a = new zl("en", { + const a = new Ul("en", { notation: "compact", compactDisplay: "short" }).format(Object.values(n).reduce((l, c) => l + c, 0)), s = () => { @@ -10273,7 +10273,7 @@ function Yh({ /* @__PURE__ */ i("div", { className: "tw-mx-2 tw-h-10 tw-border-l tw-border-gray-300" }), /* @__PURE__ */ y("div", { className: "tw-flex tw-flex-col tw-items-center", children: [ /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center tw-rounded-md tw-bg-gray-100 tw-px-2 tw-py-1", children: [ - /* @__PURE__ */ i(_l, { className: "tw-mr-1 tw-h-4 tw-w-4" }), + /* @__PURE__ */ i($l, { className: "tw-mr-1 tw-h-4 tw-w-4" }), /* @__PURE__ */ i("span", { className: "tw-text-xs tw-font-semibold tw-text-gray-700", children: a }) ] }), /* @__PURE__ */ i("span", { className: "tw-text-xs tw-text-gray-500", children: "USERS" }) @@ -10313,7 +10313,7 @@ function Yh({ className: "tw-flex tw-items-center tw-text-xs tw-font-semibold tw-text-gray-500 tw-underline", children: [ "Website", - /* @__PURE__ */ i(Pl, { className: "tw-ml-1 tw-inline tw-h-4 tw-w-4" }) + /* @__PURE__ */ i(Il, { className: "tw-ml-1 tw-inline tw-h-4 tw-w-4" }) ] } ), @@ -10326,7 +10326,7 @@ function Yh({ className: "tw-flex tw-items-center tw-text-xs tw-font-semibold tw-text-gray-500 tw-underline", children: [ "Support", - /* @__PURE__ */ i($l, { className: "tw-ml-1 tw-inline tw-h-4 tw-w-4" }) + /* @__PURE__ */ i(Al, { className: "tw-ml-1 tw-inline tw-h-4 tw-w-4" }) ] } ) @@ -10335,8 +10335,8 @@ function Yh({ } ); } -function Hm({ id: t, versionHistory: e }) { - const [n, r] = it(!1), o = /* @__PURE__ */ new Date(); +function Km({ id: t, versionHistory: e }) { + const [n, r] = st(!1), o = /* @__PURE__ */ new Date(); function a(l) { const c = new Date(l), d = new Date(o.getTime() - c.getTime()), u = d.getUTCFullYear() - 1970, f = d.getUTCMonth(), w = d.getUTCDate() - 1; let g = ""; @@ -10366,19 +10366,19 @@ function Hm({ id: t, versionHistory: e }) { ) ] }); } -function Wh({ +function Kh({ id: t, publisherDisplayName: e, fileSize: n, locales: r, versionHistory: o }) { - const a = Nt(() => Ll(n), [n]), l = ((c) => { + const a = Tt(() => Gl(n), [n]), l = ((c) => { const d = new Intl.DisplayNames(navigator.language, { type: "language" }); return c.map((u) => d.of(u)); })(r); return /* @__PURE__ */ i("div", { id: t, className: "tw-border-t tw-pb-4 tw-pt-4", children: /* @__PURE__ */ y("div", { className: "tw-md:flex-row tw-md:space-x-8 tw-flex tw-flex-col tw-space-x-0", children: [ - /* @__PURE__ */ i(Hm, { versionHistory: o }), + /* @__PURE__ */ i(Km, { versionHistory: o }), /* @__PURE__ */ i("div", { className: "tw-md:border-t-0 tw-md:border-l tw-md-h-auto tw-md-ml-8 tw-mt-4 tw-border-t tw-border-gray-300" }), /* @__PURE__ */ y("div", { className: "tw-md:mt-0 tw-mt-4 tw-flex-1 tw-space-y-3", children: [ /* @__PURE__ */ i("h2", { className: "tw-text-md tw-font-semibold", children: "Information" }), @@ -10397,217 +10397,277 @@ function Wh({ ] }) ] }) }); } -const qh = [ +function ci({ + entries: t, + getEntriesCount: e, + selected: n, + onChange: r, + placeholder: o, + commandEmptyMessage: a, + customSelectedText: s, + sortSelected: l, + icon: c, + className: d, + badgesPlaceholder: u +}) { + return /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center tw-gap-2", children: [ + /* @__PURE__ */ i( + dd, + { + entries: t, + getEntriesCount: e, + selected: n, + onChange: r, + placeholder: o, + commandEmptyMessage: a, + customSelectedText: s, + sortSelected: l, + icon: c, + className: d + } + ), + n.length > 0 ? /* @__PURE__ */ i("div", { className: "tw-flex tw-flex-wrap tw-items-center tw-gap-2", children: n.map((f) => { + var w; + return /* @__PURE__ */ y(Fm, { variant: "muted", className: "tw-flex tw-items-center tw-gap-1", children: [ + /* @__PURE__ */ i( + mt, + { + variant: "ghost", + size: "icon", + className: "tw-h-4 tw-w-4 tw-p-0 hover:tw-bg-transparent", + onClick: () => r(n.filter((g) => g !== f)), + children: /* @__PURE__ */ i(po, { className: "tw-h-3 tw-w-3" }) + } + ), + (w = t.find((g) => g.value === f)) == null ? void 0 : w.label + ] }, f); + }) }) : /* @__PURE__ */ i(Ct, { children: u }) + ] }); +} +const Jh = [ "%resources_action%", + "%resources_any%", "%resources_dialog_subtitle%", "%resources_dialog_title%", + "%resources_filterBy%", "%resources_filterInput%", "%resources_fullName%", "%resources_get%", "%resources_installed%", "%resources_language%", - "%resources_languageFilter%", + "%resources_languages%", "%resources_loadingResources%", "%resources_noResults%", "%resources_open%", "%resources_remove%", + "%resources_results%", + "%resources_showing%", "%resources_size%", "%resources_type%", + "%resources_types%", "%resources_type_DBL%", "%resources_type_ER%", "%resources_type_SLR%", "%resources_type_XR%", "%resources_type_unknown%", "%resources_update%" -], Ym = (t, e) => { +], Jm = (t, e) => { const n = Array.from( - new Set(t.map((o) => o.bestLanguageName)) - ), r = new Set( - e.concat( - t.filter((o) => o.installed).map((o) => o.bestLanguageName) + new Set( + t.map((s) => s.bestLanguageName) ) - ); - return n.sort((o, a) => { - const s = r.has(o), l = r.has(a); - return s && l ? o.localeCompare(a) : s ? -1 : l ? 1 : o.localeCompare(a); - }); -}, ci = (t, e, n) => /* @__PURE__ */ i(wt, { variant: "outline", onClick: () => n(t.dblEntryUid, "install"), children: e }), Wm = (t, e, n, r, o, a) => e.includes(t.dblEntryUid) ? /* @__PURE__ */ i(wt, { variant: "outline", children: /* @__PURE__ */ i(_e, { className: "tw-h-5 tw-py-[1px]" }) }) : t.installed ? t.updateAvailable ? ci(t, r, a) : /* @__PURE__ */ i(St, { className: "tw-my-2 tw-flex tw-h-6 tw-items-center", children: o }) : ci(t, n, a); -function Kh({ + ), r = new Set( + t.filter((s) => s.installed).map((s) => s.bestLanguageName) + ), o = new Set(e.concat(Array.from(r))); + return n.sort((s, l) => { + const c = o.has(s), d = o.has(l); + return c && d ? s.localeCompare(l) : c ? -1 : d ? 1 : s.localeCompare(l); + }).map((s) => ({ label: s, value: s, starred: r.has(s) })); +}, di = (t, e, n) => /* @__PURE__ */ i( + mt, + { + className: "tw-bg-muted", + variant: "ghost", + onClick: () => n(t.dblEntryUid, "install"), + children: e + } +), Zm = (t, e, n, r, o, a) => e.includes(t.dblEntryUid) ? /* @__PURE__ */ i(mt, { className: "tw-bg-muted", variant: "ghost", children: /* @__PURE__ */ i($e, { className: "tw-h-5 tw-py-[1px]" }) }) : t.installed ? t.updateAvailable ? di(t, r, a) : /* @__PURE__ */ i(Ct, { className: "tw-my-2 tw-flex tw-h-6 tw-items-center", children: o }) : di(t, n, a); +function Zh({ localizedStrings: t, - dblResources: e, - isLoadingDblResources: n, - typeFilter: r, - setTypeFilter: o, - languageFilter: a, - setLanguageFilter: s, + resources: e, + isLoadingResources: n, + selectedTypes: r, + setSelectedTypes: o, + selectedLanguages: a, + setSelectedLanguages: s, openResource: l, installResource: c, - uninstallResource: d + uninstallResource: d, + className: u }) { - const u = t["%resources_action%"], f = t["%resources_dialog_subtitle%"], w = t["%resources_dialog_title%"], g = t["%resources_filterInput%"], b = t["%resources_fullName%"], m = t["%resources_get%"], h = t["%resources_installed%"], k = t["%resources_language%"], P = t["%resources_languageFilter%"], C = t["%resources_loadingResources%"], E = t["%resources_noResults%"], v = t["%resources_open%"], $ = t["%resources_remove%"], X = t["%resources_size%"], _ = t["%resources_type%"], I = t["%resources_type_DBL%"], U = t["%resources_type_ER%"], B = t["%resources_type_SLR%"], M = t["%resources_type_XR%"], D = t["%resources_type_unknown%"], K = t["%resources_update%"], [H, z] = it([]), tt = (O, F) => { + const f = t["%resources_action%"], w = t["%resources_any%"], g = t["%resources_dialog_subtitle%"], v = t["%resources_dialog_title%"], m = t["%resources_filterInput%"], h = t["%resources_filterBy%"], N = t["%resources_fullName%"], S = t["%resources_get%"], C = t["%resources_installed%"], E = t["%resources_language%"], b = t["%resources_languages%"], P = t["%resources_loadingResources%"], L = t["%resources_noResults%"], _ = t["%resources_open%"], $ = t["%resources_remove%"], F = t["%resources_results%"], D = t["%resources_showing%"], A = t["%resources_size%"], M = t["%resources_type%"], Y = t["%resources_types%"], U = t["%resources_type_DBL%"], V = t["%resources_type_ER%"], tt = t["%resources_type_SLR%"], ot = t["%resources_type_XR%"], at = t["%resources_type_unknown%"], x = t["%resources_update%"], [O, G] = st(!1); + te(() => { + if (!O) { + if (a.length > 0) { + G(!0); + return; + } + e.length > 0 && a.length === 0 && (s( + Array.from( + new Set( + e.filter((J) => J.installed === !0).map((J) => J.bestLanguageName) + ) + ) + ), G(!0)); + } + }, [e, a.length, s, O, G]); + const [X, z] = st([]), q = (J, nt) => { if (!c || !d) return; - const S = { - dblEntryUid: O, - action: F === "install" ? "installing" : "removing" + const Nt = { + dblEntryUid: J, + action: nt === "install" ? "installing" : "removing" }; - z((V) => [...V, S]), (F === "install" ? c : d)(O).catch((V) => { - console.debug(Fl(V)); + z((Kt) => [...Kt, Nt]), (nt === "install" ? c : d)(J).catch((Kt) => { + console.debug(Xl(Kt)); }); }; - Jt(() => { + te(() => { z( - (O) => O.filter((F) => { - const S = e.find((ft) => ft.dblEntryUid === F.dblEntryUid); - return S ? !(F.action === "installing" && S.installed || F.action === "removing" && !S.installed) : !0; + (J) => J.filter((nt) => { + const Nt = e.find(($t) => $t.dblEntryUid === nt.dblEntryUid); + return Nt ? !(nt.action === "installing" && Nt.installed || nt.action === "removing" && !Nt.installed) : !0; }) ); }, [e]); - const [rt, ot] = it(""), x = Nt(() => e.filter((O) => { - const F = rt.toLowerCase(); - return O.displayName.toLowerCase().includes(F) || O.fullName.toLowerCase().includes(F) || O.bestLanguageName.toLowerCase().includes(F); - }), [e, rt]), R = Nt(() => [ - { type: "DBLResource", localizedValue: I }, - { type: "EnhancedResource", localizedValue: U }, - { type: "SourceLanguageResource", localizedValue: B }, - { type: "XmlResource", localizedValue: M } - ], [I, U, B, M]), W = (O) => { - const F = [...r]; - let S = []; - !F || F.length === 0 ? S = [O] : S = F.includes(O) ? F.filter((ft) => ft !== O) : [...F, O], o(S); - }, Y = Nt(() => x.filter((O) => r.includes(O.type)), [x, r]); - Jt(() => { - a.length === 0 && s( - e.filter((O) => O.installed === !0).map((O) => O.bestLanguageName) - ); - }, [e, a.length, s]); - const G = (O) => { - const F = [...a]; - let S = []; - !F || F.length === 0 ? S = [O] : S = F.includes(O) ? F.filter((ft) => ft !== O) : [...F, O], s(S); - }, J = Nt(() => Y.filter((O) => a.includes(O.bestLanguageName)), [a, Y]), [L, Z] = it({ + const [W, K] = st(""), H = Tt(() => e.filter((J) => { + const nt = W.toLowerCase(); + return J.displayName.toLowerCase().includes(nt) || J.fullName.toLowerCase().includes(nt) || J.bestLanguageName.toLowerCase().includes(nt); + }), [e, W]), Z = Tt(() => [ + { value: "DBLResource", label: U }, + { value: "EnhancedResource", label: V }, + { value: "SourceLanguageResource", label: tt }, + { value: "XmlResource", label: ot } + ], [U, V, tt, ot]), Q = Tt(() => r.length === 0 ? H : H.filter((J) => r.includes(J.type)), [H, r]), lt = Tt(() => a.length === 0 ? Q : Q.filter((J) => a.includes(J.bestLanguageName)), [a, Q]), [R, Et] = st({ key: "bestLanguageName", direction: "ascending" - }), q = Nt(() => [...J].sort((O, F) => { - const S = O[L.key], ft = F[L.key]; - return S < ft ? L.direction === "ascending" ? -1 : 1 : S > ft ? L.direction === "ascending" ? 1 : -1 : 0; - }), [L.direction, L.key, J]), Q = (O) => { - const F = { key: O, direction: "ascending" }; - L.key === O && L.direction === "ascending" && (F.direction = "descending"), Z(F); - }; - return /* @__PURE__ */ y(Gs, { className: "tw-rounded-none tw-border-0", children: [ - /* @__PURE__ */ i(Xs, { children: /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center", children: [ - /* @__PURE__ */ i(pa, { size: 36, className: "tw-mr-2" }), - /* @__PURE__ */ y("div", { children: [ - /* @__PURE__ */ i(Hs, { children: w }), - /* @__PURE__ */ i(Ys, { className: "tw-mt-1", children: f }) - ] }) - ] }) }), - /* @__PURE__ */ i(Ws, { children: n || !e ? /* @__PURE__ */ y("div", { className: "tw-flex tw-flex-col tw-items-center tw-gap-2", children: [ - /* @__PURE__ */ i(St, { children: C }), - /* @__PURE__ */ i(_e, {}) - ] }) : /* @__PURE__ */ y("div", { children: [ - /* @__PURE__ */ y("div", { className: "tw-mb-1 tw-flex tw-gap-1", children: [ - /* @__PURE__ */ y("div", { className: "tw-relative", children: [ + }), j = Tt(() => [...lt].sort((J, nt) => { + let Nt, $t; + return R.key === "action" ? (Nt = (J.installed ? 10 : 0) + (J.updateAvailable ? 1 : 0), $t = (nt.installed ? 10 : 0) + (nt.updateAvailable ? 1 : 0)) : (Nt = J[R.key], $t = nt[R.key]), Nt < $t ? R.direction === "ascending" ? -1 : 1 : Nt > $t ? R.direction === "ascending" ? 1 : -1 : 0; + }), [R.direction, R.key, lt]), xt = (J) => { + const nt = { key: J, direction: "ascending" }; + R.key === J && R.direction === "ascending" && (nt.direction = "descending"), Et(nt); + }, Ot = (J, nt) => /* @__PURE__ */ i(fe, { onClick: () => xt(J), children: /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center", children: [ + /* @__PURE__ */ i("div", { className: "tw-font-normal", children: nt }), + R.key !== J && /* @__PURE__ */ i(wo, { className: "tw-pl-1", size: 16 }), + R.key === J && (R.direction === "ascending" ? /* @__PURE__ */ i(fi, { className: "tw-pl-1", size: 16 }) : /* @__PURE__ */ i(On, { className: "tw-pl-1", size: 16 })) + ] }) }), oe = (J) => e.filter((nt) => nt.type === J.value).length ?? 0, _t = (J) => e.filter((nt) => nt.bestLanguageName === J.value).length ?? 0; + return /* @__PURE__ */ i("div", { className: u, children: /* @__PURE__ */ y(Xs, { className: "tw-flex tw-h-screen tw-flex-col tw-rounded-none tw-border-0", children: [ + /* @__PURE__ */ i(Hs, { className: "tw-flex-shrink-0", children: /* @__PURE__ */ y("div", { className: "tw-flex", children: [ + /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center tw-pr-4", children: [ + /* @__PURE__ */ i(pa, { size: 36, className: "tw-me-4" }), + /* @__PURE__ */ y("div", { className: "tw-flex tw-flex-col tw-gap-2", children: [ + /* @__PURE__ */ i(Ys, { children: v }), + /* @__PURE__ */ i(Ws, { className: "tw-mt-1", children: g }), /* @__PURE__ */ i( - Re, - { - type: "text", - className: "tw-box-border tw-min-w-72 tw-gap-2.5 tw-rounded-lg tw-border tw-border-solid tw-bg-background tw-py-2 tw-pl-4 tw-pr-3 tw-shadow-none tw-outline-none", - onChange: (O) => ot(O.target.value), - value: rt, - placeholder: g - } - ), - /* @__PURE__ */ i(ho, { className: "tw-absolute tw-right-3 tw-top-1/2 tw-h-4 tw-w-4 tw--translate-y-1/2 tw-transform tw-text-muted-foreground" }) - ] }), - /* @__PURE__ */ y(En, { children: [ - /* @__PURE__ */ i(rr, { asChild: !0, children: /* @__PURE__ */ y(wt, { variant: "outline", children: [ - /* @__PURE__ */ i(Il, { className: "tw-mr-2 tw-w-4" }), - _ - ] }) }), - /* @__PURE__ */ i(Ge, { align: "start", children: R.map((O) => /* @__PURE__ */ i( - fr, + Co, { - checked: r.includes(O.type), - onClick: (F) => { - F.preventDefault(), W(O.type); - }, - children: /* @__PURE__ */ i("span", { children: O.localizedValue }) + className: "tw-min-w-72", + onSearch: K, + placeholder: m } - )) }) - ] }), + ) + ] }) + ] }), + /* @__PURE__ */ y("div", { className: "tw-flex tw-flex-col tw-gap-1", children: [ + /* @__PURE__ */ i(Ct, { className: "tw-mb-2 tw-text-muted-foreground", children: h }), /* @__PURE__ */ i( - ar, + ci, { - className: "tw-w-auto tw-min-w-10 tw-flex-shrink", - buttonPlaceholder: k, - textPlaceholder: P, - value: a[0], - options: Ym(e, a), - onChange: G + entries: Z, + getEntriesCount: oe, + selected: r, + onChange: o, + placeholder: Y, + icon: /* @__PURE__ */ i(Ml, {}), + badgesPlaceholder: w + } + ), + /* @__PURE__ */ i( + ci, + { + entries: Jm(e, a), + getEntriesCount: _t, + selected: a, + onChange: s, + placeholder: b, + sortSelected: !0, + icon: /* @__PURE__ */ i(Dl, {}), + badgesPlaceholder: w } ) - ] }), - q.length === 0 ? /* @__PURE__ */ i("div", { className: "tw-m-4 tw-flex tw-w-full tw-justify-center", children: /* @__PURE__ */ i(St, { children: E }) }) : /* @__PURE__ */ y(In, { stickyHeader: !0, children: [ - /* @__PURE__ */ i(An, { className: "tw-bg-none", stickyHeader: !0, children: /* @__PURE__ */ y(qt, { children: [ - /* @__PURE__ */ i(zt, {}), - /* @__PURE__ */ i(zt, {}), - /* @__PURE__ */ i(zt, { onClick: () => Q("fullName"), children: /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center", children: [ - b, - L.key !== "fullName" && /* @__PURE__ */ i(nr, { className: "tw-pl-1", size: 16 }), - L.key === "fullName" && (L.direction === "ascending" ? /* @__PURE__ */ i(Jr, { className: "tw-pl-1", size: 16 }) : /* @__PURE__ */ i(Ue, { className: "tw-pl-1", size: 16 })) - ] }) }), - /* @__PURE__ */ i(zt, { onClick: () => Q("bestLanguageName"), children: /* @__PURE__ */ y("div", { className: "tw-flex tw-items-center", children: [ - k, - L.key !== "bestLanguageName" && /* @__PURE__ */ i(nr, { className: "tw-pl-1", size: 16 }), - L.key === "bestLanguageName" && (L.direction === "ascending" ? /* @__PURE__ */ i(Jr, { className: "tw-pl-1", size: 16 }) : /* @__PURE__ */ i(Ue, { className: "tw-pl-1", size: 16 })) - ] }) }), - /* @__PURE__ */ i(zt, { children: _ }), - /* @__PURE__ */ i(zt, { children: X }), - /* @__PURE__ */ i(zt, { children: u }) - ] }) }), - /* @__PURE__ */ i(Mn, { children: q.map((O) => { - var F; - return /* @__PURE__ */ y(qt, { children: [ - /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ i(pa, { className: "tw-pr-0", size: 18 }) }), - /* @__PURE__ */ i(Mt, { children: O.displayName }), - /* @__PURE__ */ i(Mt, { className: "tw-font-medium", children: O.fullName }), - /* @__PURE__ */ i(Mt, { children: O.bestLanguageName }), - /* @__PURE__ */ i(Mt, { children: ((F = R.find((S) => S.type === O.type)) == null ? void 0 : F.localizedValue) ?? D }), - /* @__PURE__ */ i(Mt, { children: O.size }), - /* @__PURE__ */ i(Mt, { children: /* @__PURE__ */ y("div", { className: "tw-flex tw-justify-between", children: [ - Wm( - O, - H.map((S) => S.dblEntryUid), - m, - K, - h, - tt - ), - O.installed && /* @__PURE__ */ y(En, { children: [ - /* @__PURE__ */ i(rr, { asChild: !0, children: /* @__PURE__ */ i(wt, { variant: "ghost", children: /* @__PURE__ */ i(Al, { className: "tw-w-4" }) }) }), - /* @__PURE__ */ y(Ge, { align: "start", children: [ - /* @__PURE__ */ i(or, { onClick: () => l(O.projectId), children: /* @__PURE__ */ i("span", { children: v }) }), - /* @__PURE__ */ i($n, {}), - /* @__PURE__ */ i( - or, - { - onClick: () => tt(O.dblEntryUid, "remove"), - children: /* @__PURE__ */ i("span", { children: $ }) - } - ) - ] }) - ] }) - ] }) }) - ] }, O.displayName + O.fullName); - }) }) ] }) - ] }) }) - ] }); + ] }) }), + /* @__PURE__ */ i(qs, { className: "tw-flex-grow tw-overflow-auto", children: n || !e ? /* @__PURE__ */ y("div", { className: "tw-flex tw-flex-col tw-items-center tw-gap-2", children: [ + /* @__PURE__ */ i(Ct, { children: P }), + /* @__PURE__ */ i($e, {}) + ] }) : /* @__PURE__ */ i("div", { children: j.length === 0 ? /* @__PURE__ */ i("div", { className: "tw-m-4 tw-flex tw-justify-center", children: /* @__PURE__ */ i(Ct, { children: L }) }) : /* @__PURE__ */ y(In, { stickyHeader: !0, children: [ + /* @__PURE__ */ i(An, { className: "tw-bg-none", stickyHeader: !0, children: /* @__PURE__ */ y(Zt, { children: [ + /* @__PURE__ */ i(fe, {}), + /* @__PURE__ */ i(fe, {}), + Ot("fullName", N), + Ot("bestLanguageName", E), + Ot("type", M), + Ot("size", A), + Ot("action", f) + ] }) }), + /* @__PURE__ */ i(Mn, { children: j.map((J) => { + var nt; + return /* @__PURE__ */ y(Zt, { children: [ + /* @__PURE__ */ i(zt, { children: /* @__PURE__ */ i(pa, { className: "tw-pr-0", size: 18 }) }), + /* @__PURE__ */ i(zt, { children: J.displayName }), + /* @__PURE__ */ i(zt, { className: "tw-font-medium", children: J.fullName }), + /* @__PURE__ */ i(zt, { children: J.bestLanguageName }), + /* @__PURE__ */ i(zt, { children: ((nt = Z.find((Nt) => Nt.value === J.type)) == null ? void 0 : nt.label) ?? at }), + /* @__PURE__ */ i(zt, { children: J.size }), + /* @__PURE__ */ i(zt, { children: /* @__PURE__ */ y("div", { className: "tw-flex tw-justify-between", children: [ + Zm( + J, + X.map((Nt) => Nt.dblEntryUid), + S, + x, + C, + q + ), + J.installed && /* @__PURE__ */ y(dr, { children: [ + /* @__PURE__ */ i(mo, { asChild: !0, children: /* @__PURE__ */ i(mt, { variant: "ghost", children: /* @__PURE__ */ i(Bl, { className: "tw-w-4" }) }) }), + /* @__PURE__ */ y(_n, { align: "start", children: [ + /* @__PURE__ */ i( + er, + { + onClick: () => l(J.projectId), + children: /* @__PURE__ */ i("span", { children: _ }) + } + ), + /* @__PURE__ */ i($n, {}), + /* @__PURE__ */ i( + er, + { + onClick: () => q(J.dblEntryUid, "remove"), + children: /* @__PURE__ */ i("span", { children: $ }) + } + ) + ] }) + ] }) + ] }) }) + ] }, J.displayName + J.fullName); + }) }) + ] }) }) }), + /* @__PURE__ */ i(Ks, { className: "tw-flex-shrink-0 tw-justify-center tw-border-t tw-p-4", children: j.length > 0 && /* @__PURE__ */ i(Ct, { className: "tw-font-normal", children: `${D} ${j.length} ${F}` }) }) + ] }) }); } -const qm = (t, e) => t[e] ?? e; -function Jh({ +const Qm = (t, e) => t[e] ?? e; +function Qh({ knownUiLanguages: t, primaryLanguage: e = "en", fallbackLanguages: n = [], @@ -10617,19 +10677,19 @@ function Jh({ localizedStrings: s, className: l }) { - const c = qm( + const c = Qm( s, "%settings_uiLanguageSelector_selectFallbackLanguages%" - ), [d, u] = it(!1), f = (g) => { - o && o(g), r && r([g, ...n.filter((b) => b !== g)]), a && n.find((b) => b === g) && a([...n.filter((b) => b !== g)]), u(!1); - }, w = (g, b) => { - var h, k, P, C, E, v; - const m = b !== g ? ((k = (h = t[g]) == null ? void 0 : h.uiNames) == null ? void 0 : k[b]) ?? ((C = (P = t[g]) == null ? void 0 : P.uiNames) == null ? void 0 : C.en) : void 0; - return m ? `${(E = t[g]) == null ? void 0 : E.autonym} (${m})` : (v = t[g]) == null ? void 0 : v.autonym; + ), [d, u] = st(!1), f = (g) => { + o && o(g), r && r([g, ...n.filter((v) => v !== g)]), a && n.find((v) => v === g) && a([...n.filter((v) => v !== g)]), u(!1); + }, w = (g, v) => { + var h, N, S, C, E, b; + const m = v !== g ? ((N = (h = t[g]) == null ? void 0 : h.uiNames) == null ? void 0 : N[v]) ?? ((C = (S = t[g]) == null ? void 0 : S.uiNames) == null ? void 0 : C.en) : void 0; + return m ? `${(E = t[g]) == null ? void 0 : E.autonym} (${m})` : (b = t[g]) == null ? void 0 : b.autonym; }; - return /* @__PURE__ */ y("div", { className: N("pr-twp tw-max-w-sm", l), children: [ + return /* @__PURE__ */ y("div", { className: k("pr-twp tw-max-w-sm", l), children: [ /* @__PURE__ */ y( - Xe, + Ue, { name: "uiLanguage", value: e, @@ -10637,20 +10697,20 @@ function Jh({ open: d, onOpenChange: (g) => u(g), children: [ - /* @__PURE__ */ i(Ee, { children: /* @__PURE__ */ i(He, {}) }), + /* @__PURE__ */ i(Ce, { children: /* @__PURE__ */ i(Ge, {}) }), /* @__PURE__ */ i( - Te, + Oe, { className: "tw-z-[250]", - children: Object.keys(t).map((g) => /* @__PURE__ */ i(Vt, { value: g, children: w(g, e) }, g)) + children: Object.keys(t).map((g) => /* @__PURE__ */ i(Gt, { value: g, children: w(g, e) }, g)) } ) ] } ), - e !== "en" && /* @__PURE__ */ y(ie, { children: [ - /* @__PURE__ */ i(St, { className: "tw-ms-3", children: c }), - /* @__PURE__ */ i("div", { className: "tw-ms-3", children: /* @__PURE__ */ y(St, { children: [ + e !== "en" && /* @__PURE__ */ y(de, { children: [ + /* @__PURE__ */ i(Ct, { className: "tw-ms-3", children: c }), + /* @__PURE__ */ i("div", { className: "tw-ms-3", children: /* @__PURE__ */ y(Ct, { children: [ "Currently:", " ", (n == null ? void 0 : n.length) > 0 ? `${n.map((g) => w(g, e)).join(", ")}` : `default (${t.en.autonym})` @@ -10658,8 +10718,8 @@ function Jh({ ] }) ] }); } -const Zh = (t, e) => { - Jt(() => { +const tg = (t, e) => { + te(() => { if (!t) return () => { }; @@ -10668,30 +10728,30 @@ const Zh = (t, e) => { n(); }; }, [t, e]); -}, Kr = () => !1, Qh = (t, e) => { - const [n] = mo( - Tt(async () => { +}, Hr = () => !1, eg = (t, e) => { + const [n] = uo( + Pt(async () => { if (!t) - return Kr; + return Hr; const r = await Promise.resolve(t(e)); return async () => r(); }, [e, t]), - Kr, + Hr, // We want the unsubscriber to return to default value immediately upon changing subscription // So the useEffect below will unsubscribe asap { preserveValue: !1 } ); - Jt(() => () => { - n !== Kr && n(); + te(() => () => { + n !== Hr && n(); }, [n]); }; -function Km(t, e = "top") { +function th(t, e = "top") { if (!t || typeof document > "u") return; const n = document.head || document.querySelector("head"), r = n.querySelector(":first-child"), o = document.createElement("style"); o.appendChild(document.createTextNode(t)), e === "top" && r ? n.insertBefore(o, r) : n.appendChild(o); } -Km(`*, ::before, ::after { +th(`*, ::before, ::after { --tw-border-spacing-x: 0; --tw-border-spacing-y: 0; --tw-translate-x: 0; @@ -11179,7 +11239,7 @@ video:where(.pr-twp,.pr-twp *) { } /* Make elements with the HTML hidden attribute stay hidden by default */ -[hidden]:where(.pr-twp,.pr-twp *) { +[hidden]:where(:not([hidden="until-found"])):where(.pr-twp,.pr-twp *) { display: none; } /* Adding the preflight selector (pr-twp) to components was not changing the font as desired. @@ -11771,9 +11831,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-left-0 { left: 0px; } -.tw-left-1\\/2 { - left: 50%; -} .tw-left-3 { left: 0.75rem; } @@ -11819,9 +11876,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-top-4 { top: 1rem; } -.tw-top-48 { - top: 12rem; -} .tw-top-\\[-1px\\] { top: -1px; } @@ -11874,10 +11928,6 @@ video:where(.pr-twp,.pr-twp *) { margin-left: 0.875rem; margin-right: 0.875rem; } -.tw-mx-auto { - margin-left: auto; - margin-right: auto; -} .tw-my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; @@ -11899,12 +11949,12 @@ video:where(.pr-twp,.pr-twp *) { .tw-mb-20 { margin-bottom: 5rem; } -.tw-mb-6 { - margin-bottom: 1.5rem; -} .tw-me-2 { margin-inline-end: 0.5rem; } +.tw-me-4 { + margin-inline-end: 1rem; +} .tw-ml-1 { margin-left: 0.25rem; } @@ -12062,15 +12112,15 @@ video:where(.pr-twp,.pr-twp *) { .tw-h-\\[var\\(--radix-select-trigger-height\\)\\] { height: var(--radix-select-trigger-height); } -.tw-h-auto { - height: auto; -} .tw-h-full { height: 100%; } .tw-h-px { height: 1px; } +.tw-h-screen { + height: 100vh; +} .tw-h-svh { height: 100svh; } @@ -12179,9 +12229,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-w-\\[300px\\] { width: 300px; } -.tw-w-\\[30px\\] { - width: 30px; -} .tw-w-\\[350px\\] { width: 350px; } @@ -12200,9 +12247,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-min-w-0 { min-width: 0px; } -.tw-min-w-10 { - min-width: 2.5rem; -} .tw-min-w-5 { min-width: 1.25rem; } @@ -12215,9 +12259,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-min-w-\\[var\\(--radix-select-trigger-width\\)\\] { min-width: var(--radix-select-trigger-width); } -.tw-max-w-4xl { - max-width: 56rem; -} .tw-max-w-64 { max-width: 16rem; } @@ -12233,9 +12274,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-flex-1 { flex: 1 1 0%; } -.tw-flex-shrink { - flex-shrink: 1; -} .tw-flex-shrink-0 { flex-shrink: 0; } @@ -12345,9 +12383,6 @@ video:where(.pr-twp,.pr-twp *) { .tw-auto-rows-max { grid-auto-rows: max-content; } -.tw-grid-cols-1 { - grid-template-columns: repeat(1, minmax(0, 1fr)); -} .tw-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } @@ -12573,22 +12608,22 @@ video:where(.pr-twp,.pr-twp *) { } .tw-border-black { --tw-border-opacity: 1; - border-color: rgb(0 0 0 / var(--tw-border-opacity)); + border-color: rgb(0 0 0 / var(--tw-border-opacity, 1)); } .tw-border-blue-500 { --tw-border-opacity: 1; - border-color: rgb(59 130 246 / var(--tw-border-opacity)); + border-color: rgb(59 130 246 / var(--tw-border-opacity, 1)); } .tw-border-destructive\\/50 { border-color: hsl(var(--destructive) / 0.5); } .tw-border-gray-300 { --tw-border-opacity: 1; - border-color: rgb(209 213 219 / var(--tw-border-opacity)); + border-color: rgb(209 213 219 / var(--tw-border-opacity, 1)); } .tw-border-gray-400 { --tw-border-opacity: 1; - border-color: rgb(156 163 175 / var(--tw-border-opacity)); + border-color: rgb(156 163 175 / var(--tw-border-opacity, 1)); } .tw-border-input { border-color: hsl(var(--input)); @@ -12598,7 +12633,7 @@ video:where(.pr-twp,.pr-twp *) { } .tw-border-red-600 { --tw-border-opacity: 1; - border-color: rgb(220 38 38 / var(--tw-border-opacity)); + border-color: rgb(220 38 38 / var(--tw-border-opacity, 1)); } .tw-border-sidebar-border { border-color: hsl(var(--sidebar-border)); @@ -12608,15 +12643,15 @@ video:where(.pr-twp,.pr-twp *) { } .tw-border-s-indigo-200 { --tw-border-opacity: 1; - border-inline-start-color: rgb(199 210 254 / var(--tw-border-opacity)); + border-inline-start-color: rgb(199 210 254 / var(--tw-border-opacity, 1)); } .tw-border-s-purple-200 { --tw-border-opacity: 1; - border-inline-start-color: rgb(233 213 255 / var(--tw-border-opacity)); + border-inline-start-color: rgb(233 213 255 / var(--tw-border-opacity, 1)); } .tw-border-s-red-200 { --tw-border-opacity: 1; - border-inline-start-color: rgb(254 202 202 / var(--tw-border-opacity)); + border-inline-start-color: rgb(254 202 202 / var(--tw-border-opacity, 1)); } .tw-bg-accent { background-color: hsl(var(--accent)); @@ -12626,15 +12661,15 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-amber-100 { --tw-bg-opacity: 1; - background-color: rgb(254 243 199 / var(--tw-bg-opacity)); + background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1)); } .tw-bg-amber-200 { --tw-bg-opacity: 1; - background-color: rgb(253 230 138 / var(--tw-bg-opacity)); + background-color: rgb(253 230 138 / var(--tw-bg-opacity, 1)); } .tw-bg-amber-50 { --tw-bg-opacity: 1; - background-color: rgb(255 251 235 / var(--tw-bg-opacity)); + background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1)); } .tw-bg-background { background-color: hsl(var(--background)); @@ -12644,11 +12679,11 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-blue-600 { --tw-bg-opacity: 1; - background-color: rgb(37 99 235 / var(--tw-bg-opacity)); + background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1)); } .tw-bg-blue-700 { --tw-bg-opacity: 1; - background-color: rgb(29 78 216 / var(--tw-bg-opacity)); + background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1)); } .tw-bg-border { background-color: hsl(var(--border)); @@ -12670,15 +12705,15 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-gray-100 { --tw-bg-opacity: 1; - background-color: rgb(243 244 246 / var(--tw-bg-opacity)); + background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1)); } .tw-bg-gray-300 { --tw-bg-opacity: 1; - background-color: rgb(209 213 219 / var(--tw-bg-opacity)); + background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1)); } .tw-bg-gray-400 { --tw-bg-opacity: 1; - background-color: rgb(156 163 175 / var(--tw-bg-opacity)); + background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1)); } .tw-bg-input { background-color: hsl(var(--input)); @@ -12697,7 +12732,7 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-neutral-300 { --tw-bg-opacity: 1; - background-color: rgb(212 212 212 / var(--tw-bg-opacity)); + background-color: rgb(212 212 212 / var(--tw-bg-opacity, 1)); } .tw-bg-popover { background-color: hsl(var(--popover)); @@ -12728,14 +12763,14 @@ video:where(.pr-twp,.pr-twp *) { } .tw-bg-slate-100 { --tw-bg-opacity: 1; - background-color: rgb(241 245 249 / var(--tw-bg-opacity)); + background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1)); } .tw-bg-transparent { background-color: transparent; } .tw-bg-white { --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); + background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); } .tw-bg-none { background-image: none; @@ -12989,19 +13024,19 @@ video:where(.pr-twp,.pr-twp *) { } .tw-text-amber-800 { --tw-text-opacity: 1; - color: rgb(146 64 14 / var(--tw-text-opacity)); + color: rgb(146 64 14 / var(--tw-text-opacity, 1)); } .tw-text-amber-900 { --tw-text-opacity: 1; - color: rgb(120 53 15 / var(--tw-text-opacity)); + color: rgb(120 53 15 / var(--tw-text-opacity, 1)); } .tw-text-black { --tw-text-opacity: 1; - color: rgb(0 0 0 / var(--tw-text-opacity)); + color: rgb(0 0 0 / var(--tw-text-opacity, 1)); } .tw-text-blue-600 { --tw-text-opacity: 1; - color: rgb(37 99 235 / var(--tw-text-opacity)); + color: rgb(37 99 235 / var(--tw-text-opacity, 1)); } .tw-text-card-foreground { color: hsl(var(--card-foreground)); @@ -13023,27 +13058,27 @@ video:where(.pr-twp,.pr-twp *) { } .tw-text-gray-400 { --tw-text-opacity: 1; - color: rgb(156 163 175 / var(--tw-text-opacity)); + color: rgb(156 163 175 / var(--tw-text-opacity, 1)); } .tw-text-gray-500 { --tw-text-opacity: 1; - color: rgb(107 114 128 / var(--tw-text-opacity)); + color: rgb(107 114 128 / var(--tw-text-opacity, 1)); } .tw-text-gray-600 { --tw-text-opacity: 1; - color: rgb(75 85 99 / var(--tw-text-opacity)); + color: rgb(75 85 99 / var(--tw-text-opacity, 1)); } .tw-text-gray-700 { --tw-text-opacity: 1; - color: rgb(55 65 81 / var(--tw-text-opacity)); + color: rgb(55 65 81 / var(--tw-text-opacity, 1)); } .tw-text-gray-800 { --tw-text-opacity: 1; - color: rgb(31 41 55 / var(--tw-text-opacity)); + color: rgb(31 41 55 / var(--tw-text-opacity, 1)); } .tw-text-gray-900 { --tw-text-opacity: 1; - color: rgb(17 24 39 / var(--tw-text-opacity)); + color: rgb(17 24 39 / var(--tw-text-opacity, 1)); } .tw-text-inherit { color: inherit; @@ -13062,11 +13097,11 @@ video:where(.pr-twp,.pr-twp *) { } .tw-text-red-500 { --tw-text-opacity: 1; - color: rgb(239 68 68 / var(--tw-text-opacity)); + color: rgb(239 68 68 / var(--tw-text-opacity, 1)); } .tw-text-red-600 { --tw-text-opacity: 1; - color: rgb(220 38 38 / var(--tw-text-opacity)); + color: rgb(220 38 38 / var(--tw-text-opacity, 1)); } .tw-text-secondary-foreground { color: hsl(var(--secondary-foreground)); @@ -13079,15 +13114,15 @@ video:where(.pr-twp,.pr-twp *) { } .tw-text-slate-900 { --tw-text-opacity: 1; - color: rgb(15 23 42 / var(--tw-text-opacity)); + color: rgb(15 23 42 / var(--tw-text-opacity, 1)); } .tw-text-white { --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); + color: rgb(255 255 255 / var(--tw-text-opacity, 1)); } .tw-text-yellow-900 { --tw-text-opacity: 1; - color: rgb(113 63 18 / var(--tw-text-opacity)); + color: rgb(113 63 18 / var(--tw-text-opacity, 1)); } .tw-underline { text-decoration-line: underline; @@ -13237,18 +13272,12 @@ video:where(.pr-twp,.pr-twp *) { --tw-enter-translate-x: initial; --tw-enter-translate-y: initial; } -.tw-fade-in { - --tw-enter-opacity: 0; -} .tw-fade-in-0 { --tw-enter-opacity: 0; } .tw-zoom-in-95 { --tw-enter-scale: .95; } -.tw-slide-in-from-bottom-4 { - --tw-enter-translate-y: 1rem; -} .tw-duration-200 { animation-duration: 200ms; } @@ -13326,7 +13355,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-border-blue-600:hover { --tw-border-opacity: 1; - border-color: rgb(37 99 235 / var(--tw-border-opacity)); + border-color: rgb(37 99 235 / var(--tw-border-opacity, 1)); } .hover\\:tw-bg-accent:hover { @@ -13335,7 +13364,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-bg-blue-700:hover { --tw-bg-opacity: 1; - background-color: rgb(29 78 216 / var(--tw-bg-opacity)); + background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1)); } .hover\\:tw-bg-destructive\\/80:hover { @@ -13348,7 +13377,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-bg-gray-400:hover { --tw-bg-opacity: 1; - background-color: rgb(156 163 175 / var(--tw-bg-opacity)); + background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1)); } .hover\\:tw-bg-muted:hover { @@ -13385,7 +13414,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-bg-white:hover { --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); + background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); } .hover\\:tw-text-accent-foreground:hover { @@ -13394,7 +13423,7 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-text-blue-600:hover { --tw-text-opacity: 1; - color: rgb(37 99 235 / var(--tw-text-opacity)); + color: rgb(37 99 235 / var(--tw-text-opacity, 1)); } .hover\\:tw-text-foreground:hover { @@ -13403,24 +13432,20 @@ video:where(.pr-twp,.pr-twp *) { .hover\\:tw-text-gray-900:hover { --tw-text-opacity: 1; - color: rgb(17 24 39 / var(--tw-text-opacity)); + color: rgb(17 24 39 / var(--tw-text-opacity, 1)); } .hover\\:tw-text-muted-foreground:hover { color: hsl(var(--muted-foreground)); } -.hover\\:tw-text-primary:hover { - color: hsl(var(--primary)); -} - .hover\\:tw-text-sidebar-accent-foreground:hover { color: hsl(var(--sidebar-accent-foreground)); } .hover\\:tw-text-white:hover { --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); + color: rgb(255 255 255 / var(--tw-text-opacity, 1)); } .hover\\:tw-underline:hover { @@ -13488,7 +13513,7 @@ video:where(.pr-twp,.pr-twp *) { .focus-visible\\:tw-ring-\\[color\\:hsl\\(2400o2c 5\\%0o2c 64\\.9\\%\\)\\]:focus-visible { --tw-ring-opacity: 1; - --tw-ring-color: hsl(240 5% 64.9% / var(--tw-ring-opacity)); + --tw-ring-color: hsl(240 5% 64.9% / var(--tw-ring-opacity, 1)); } .focus-visible\\:tw-ring-ring:focus-visible { @@ -13513,7 +13538,7 @@ video:where(.pr-twp,.pr-twp *) { .active\\:tw-bg-white:active { --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); + background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); } .active\\:tw-text-sidebar-accent-foreground:active { @@ -13609,7 +13634,7 @@ video:where(.pr-twp,.pr-twp *) { .data-\\[highlighted\\]\\:tw-bg-amber-100[data-highlighted] { --tw-bg-opacity: 1; - background-color: rgb(254 243 199 / var(--tw-bg-opacity)); + background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1)); } .data-\\[selected\\=true\\]\\:tw-bg-accent[data-selected="true"] { @@ -13989,10 +14014,6 @@ video:where(.pr-twp,.pr-twp *) { flex-grow: 0; } - .md\\:tw-grid-cols-3 { - grid-template-columns: repeat(3, minmax(0, 1fr)); - } - .md\\:tw-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @@ -14340,36 +14361,6 @@ video:where(.pr-twp,.pr-twp *) { background-color: greenyellow; color: darkgreen; } -.papi-menu-item { - background-color: transparent; -} - -.papi-menu-icon-trailing { - margin-left: 10px; - place-content: flex-end; -} - -.papi-menu-item img { - max-width: 24px; - max-height: 24px; -} -.banded-row:hover { - cursor: pointer; -} - -.banded-row[data-state='selected']:hover { - cursor: default; -} -.papi-menu-drawer-paper { - height: fit-content !important; - position: absolute !important; -} - -.papi-toolbar-children { - padding: 10px; - display: flex; - gap: 8px; -} .papi-multi-column-menu { background-color: rgb(222, 222, 222); display: flex; @@ -14404,126 +14395,157 @@ video:where(.pr-twp,.pr-twp *) { color: rgb(76, 106, 76); background-color: rgb(214, 255, 152); } +.papi-menu-item { + background-color: transparent; +} + +.papi-menu-icon-trailing { + margin-left: 10px; + place-content: flex-end; +} + +.papi-menu-item img { + max-width: 24px; + max-height: 24px; +} +.banded-row:hover { + cursor: pointer; +} + +.banded-row[data-state='selected']:hover { + cursor: default; +} +.papi-menu-drawer-paper { + height: fit-content !important; + position: absolute !important; +} + +.papi-toolbar-children { + padding: 10px; + display: flex; + gap: 8px; +} `, "top"); export { - Am as Alert, - Dm as AlertDescription, - Mm as AlertTitle, - bh as BOOK_SELECTOR_STRING_KEYS, - Bh as Badge, - gh as BookChapterControl, - Gc as BookSelectionMode, - vh as BookSelector, - wt as Button, - Gs as Card, - Ws as CardContent, - Ys as CardDescription, - jm as CardFooter, - Xs as CardHeader, - Hs as CardTitle, - Uc as ChapterRangeSelector, - Co as Checkbox, - Ih as Checklist, - ar as ComboBox, - Zc as DataTable, - Fh as DisableButton, - En as DropdownMenu, - fr as DropdownMenuCheckboxItem, - Ge as DropdownMenuContent, - cc as DropdownMenuGroup, - or as DropdownMenuItem, - Xm as DropdownMenuItemType, + jm as Alert, + zm as AlertDescription, + Vm as AlertTitle, + Nh as BOOK_SELECTOR_STRING_KEYS, + Fm as Badge, + xh as BookChapterControl, + Yc as BookSelectionMode, + kh as BookSelector, + mt as Button, + Xs as Card, + qs as CardContent, + Ws as CardDescription, + Ks as CardFooter, + Hs as CardHeader, + Ys as CardTitle, + Hc as ChapterRangeSelector, + So as Checkbox, + Dh as Checklist, + Jr as ComboBox, + ed as DataTable, + Gh as DisableButton, + dr as DropdownMenu, + ho as DropdownMenuCheckboxItem, + _n as DropdownMenuContent, + pc as DropdownMenuGroup, + er as DropdownMenuItem, + qm as DropdownMenuItemType, Pn as DropdownMenuLabel, - wh as DropdownMenuPortal, - mh as DropdownMenuRadioGroup, - Ni as DropdownMenuRadioItem, + gh as DropdownMenuPortal, + vh as DropdownMenuRadioGroup, + Ei as DropdownMenuRadioItem, $n as DropdownMenuSeparator, - pc as DropdownMenuShortcut, - fh as DropdownMenuSub, - uc as DropdownMenuSubContent, - dc as DropdownMenuSubTrigger, - rr as DropdownMenuTrigger, - Lh as EnableButton, - qh as FILTERABLE_RESOURCE_LIST_STRING_KEYS, - Gm as FilterButton, - Xh as FilterDropdown, - Kh as FilterableResourceList, - Wh as Footer, - Rm as GridMenu, - $m as HamburgerMenuButton, - kh as INVENTORY_STRING_KEYS, - Ah as IconButton, - Re as Input, - zh as InstallButton, - Eh as Inventory, - St as Label, - Gh as MarkdownRenderer, - Ls as MenuItem, - Yh as MoreInfo, - Th as MultiSelectComboBox, - Sh as NavigationContentSearch, - Hh as NoExtensionsFound, - Ri as RadioGroup, - eo as RadioGroupItem, - Oh as ScriptureResultsViewer, - Rh as ScrollGroupSelector, - Vi as SearchBar, - Xe as Select, - Te as SelectContent, - Hc as SelectGroup, - Vt as SelectItem, - Yc as SelectLabel, - Mi as SelectScrollDownButton, - Ai as SelectScrollUpButton, - Wc as SelectSeparator, - Ee as SelectTrigger, - He as SelectValue, + mc as DropdownMenuShortcut, + bh as DropdownMenuSub, + fc as DropdownMenuSubContent, + wc as DropdownMenuSubTrigger, + mo as DropdownMenuTrigger, + Uh as EnableButton, + Jh as FILTERABLE_RESOURCE_LIST_STRING_KEYS, + ci as Filter, + Wm as FilterButton, + Yh as FilterDropdown, + Zh as FilterableResourceList, + Kh as Footer, + Im as GridMenu, + Dm as HamburgerMenuButton, + Ch as INVENTORY_STRING_KEYS, + Bh as IconButton, + Qe as Input, + Fh as InstallButton, + Oh as Inventory, + Ct as Label, + Hh as MarkdownRenderer, + Fs as MenuItem, + qh as MoreInfo, + dd as MultiSelectComboBox, + Rh as NavigationContentSearch, + Wh as NoExtensionsFound, + Pi as RadioGroup, + Kr as RadioGroupItem, + Ph as ScriptureResultsViewer, + $h as ScrollGroupSelector, + Co as SearchBar, + Ue as Select, + Oe as SelectContent, + qc as SelectGroup, + Gt as SelectItem, + Kc as SelectLabel, + Bi as SelectScrollDownButton, + Di as SelectScrollUpButton, + Jc as SelectSeparator, + Ce as SelectTrigger, + Ge as SelectValue, Oo as Separator, - _h as SettingsList, - $h as SettingsListHeader, - Ph as SettingsListItem, - Cd as SettingsSidebar, - Ch as SettingsSidebarContentSearch, - Vm as Slider, - jh as Sonner, - _e as Spinner, - zm as Switch, + Ih as SettingsList, + Mh as SettingsListHeader, + Ah as SettingsListItem, + Pd as SettingsSidebar, + _h as SettingsSidebarContentSearch, + Um as Slider, + zh as Sonner, + $e as Spinner, + Gm as Switch, In as Table, Mn as TableBody, - Jc as TableCaption, - Mt as TableCell, - Kc as TableFooter, - zt as TableHead, + td as TableCaption, + zt as TableCell, + Qc as TableFooter, + fe as TableHead, An as TableHeader, - qt as TableRow, - Vh as Tabs, - Um as TabsContent, - Lm as TabsList, - Fm as TabsTrigger, - Mh as TextField, - ji as ToggleGroup, - Zn as ToggleGroupItem, - Dh as Toolbar, - Jh as UiLanguageSelector, - Uh as UpdateButton, - Hm as VersionHistory, - zi as VerticalTabs, - Fi as VerticalTabsContent, - Li as VerticalTabsList, - sd as VerticalTabsTrigger, - Bm as badgeVariants, - Mc as buttonVariants, - N as cn, - ed as getBookNumFromId, - td as getLinesFromUSFM, + Zt as TableRow, + Lh as Tabs, + Ym as TabsContent, + Xm as TabsList, + Hm as TabsTrigger, + jh as TextField, + zi as ToggleGroup, + Jn as ToggleGroupItem, + Vh as Toolbar, + Qh as UiLanguageSelector, + Xh as UpdateButton, + Km as VersionHistory, + Li as VerticalTabs, + Ui as VerticalTabsContent, + Fi as VerticalTabsList, + ud as VerticalTabsTrigger, + Lm as badgeVariants, + jc as buttonVariants, + k as cn, + od as getBookNumFromId, + rd as getLinesFromUSFM, ha as getNumberFromUSFM, - nd as getStatusForItem, - xh as inventoryCountColumn, - yh as inventoryItemColumn, - Nh as inventoryStatusColumn, - ng as sonner, - Zh as useEvent, - Qh as useEventAsync, - mo as usePromise + ad as getStatusForItem, + Th as inventoryCountColumn, + Eh as inventoryItemColumn, + Sh as inventoryStatusColumn, + og as sonner, + tg as useEvent, + eg as useEventAsync, + uo as usePromise }; //# sourceMappingURL=index.js.map diff --git a/lib/platform-bible-react/dist/index.js.map b/lib/platform-bible-react/dist/index.js.map index cc8032251b..e32462c3cc 100644 --- a/lib/platform-bible-react/dist/index.js.map +++ b/lib/platform-bible-react/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../src/utils/shadcn-ui.util.ts","../src/components/shadcn-ui/input.tsx","../src/utils/dir-helper.util.ts","../src/components/advanced/book-chapter-control/book-chapter-input.component.tsx","../src/components/shadcn-ui/dropdown-menu.tsx","../../../node_modules/@sillsdev/scripture/dist/index.es.js","../src/components/advanced/book-chapter-control/book-menu-item.component.tsx","../src/components/advanced/book-chapter-control/chapter-select.component.tsx","../src/components/advanced/book-chapter-control/go-to-menu-item.component.tsx","../src/components/advanced/book-chapter-control/book-chapter-control.component.tsx","../src/components/shadcn-ui/button.tsx","../src/components/shadcn-ui/label.tsx","../src/components/shadcn-ui/radio-group.tsx","../src/components/shadcn-ui/popover.tsx","../src/components/shadcn-ui/dialog.tsx","../src/components/shadcn-ui/command.tsx","../src/components/basics/combo-box.component.tsx","../src/components/basics/chapter-range-selector.component.tsx","../src/components/advanced/book-selector.component.tsx","../src/components/advanced/data-table/data-table-column-toggle.component.tsx","../src/components/shadcn-ui/select.tsx","../src/components/advanced/data-table/data-table-pagination.component.tsx","../src/components/shadcn-ui/table.tsx","../src/components/advanced/data-table/data-table.component.tsx","../src/components/advanced/inventory/occurrences-table.component.tsx","../src/components/shadcn-ui/checkbox.tsx","../src/components/advanced/inventory/inventory-utils.ts","../src/components/shadcn-ui/toggle.tsx","../src/components/shadcn-ui/toggle-group.tsx","../src/components/advanced/inventory/inventory-columns.tsx","../src/components/advanced/inventory/inventory.component.tsx","../src/components/advanced/multi-select-combo-box.tsx","../src/components/basics/search-bar.component.tsx","../src/components/basics/tabs-vertical.tsx","../src/components/advanced/tab-navigation-content-search.component.tsx","../src/components/shadcn-ui/separator.tsx","../src/components/shadcn-ui/skeleton.tsx","../src/components/shadcn-ui/tooltip.tsx","../src/components/shadcn-ui/sidebar.tsx","../src/components/advanced/settings-components/settings-sidebar.component.tsx","../src/components/advanced/settings-components/settings-sidebar-content-search.component.tsx","../src/components/advanced/scripture-results-viewer/scripture-results-viewer.component.tsx","../src/components/advanced/scroll-group-selector.component.tsx","../src/components/advanced/settings-components/settings-list.component.tsx","../src/components/basics/checklist.component.tsx","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/index.js","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/esm/createTheme/shape.js","../../../node_modules/@mui/system/esm/responsivePropType.js","../../../node_modules/@mui/system/esm/merge.js","../../../node_modules/@mui/system/esm/breakpoints.js","../../../node_modules/@mui/system/esm/style.js","../../../node_modules/@mui/system/esm/memoize.js","../../../node_modules/@mui/system/esm/spacing.js","../../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../../node_modules/@mui/system/esm/compose.js","../../../node_modules/@mui/system/esm/borders.js","../../../node_modules/@mui/system/esm/cssGrid.js","../../../node_modules/@mui/system/esm/palette.js","../../../node_modules/@mui/system/esm/sizing.js","../../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../../node_modules/@mui/system/esm/useTheme.js","../../../node_modules/@mui/system/esm/createStyled.js","../../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/esm/colorManipulator.js","../../../node_modules/@mui/material/styles/createMixins.js","../../../node_modules/@mui/material/colors/common.js","../../../node_modules/@mui/material/colors/grey.js","../../../node_modules/@mui/material/colors/purple.js","../../../node_modules/@mui/material/colors/red.js","../../../node_modules/@mui/material/colors/orange.js","../../../node_modules/@mui/material/colors/blue.js","../../../node_modules/@mui/material/colors/lightBlue.js","../../../node_modules/@mui/material/colors/green.js","../../../node_modules/@mui/material/styles/createPalette.js","../../../node_modules/@mui/material/styles/createTypography.js","../../../node_modules/@mui/material/styles/shadows.js","../../../node_modules/@mui/material/styles/createTransitions.js","../../../node_modules/@mui/material/styles/zIndex.js","../../../node_modules/@mui/material/styles/createTheme.js","../../../node_modules/@mui/material/styles/defaultTheme.js","../../../node_modules/@mui/material/styles/identifier.js","../../../node_modules/@mui/material/styles/useThemeProps.js","../../../node_modules/@mui/material/styles/styled.js","../../../node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/utils/createSvgIcon.js","../../../node_modules/@mui/material/utils/index.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/@mui/icons-material/ArrowRight.js","../../../node_modules/@mui/base/utils/isHostComponent.js","../../../node_modules/@mui/base/utils/appendOwnerState.js","../../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/utils/extractEventHandlers.js","../../../node_modules/@mui/base/utils/resolveComponentProps.js","../../../node_modules/@mui/base/utils/omitEventHandlers.js","../../../node_modules/@mui/base/utils/mergeSlotProps.js","../../../node_modules/@mui/base/utils/useSlotProps.js","../../../node_modules/@mui/base/generateUtilityClass/index.js","../../../node_modules/@mui/base/generateUtilityClasses/index.js","../../../node_modules/@mui/base/Portal/Portal.js","../../../node_modules/@popperjs/core/lib/enums.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../node_modules/@popperjs/core/lib/utils/math.js","../../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../node_modules/@popperjs/core/lib/utils/within.js","../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../node_modules/@popperjs/core/lib/utils/debounce.js","../../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../node_modules/@popperjs/core/lib/createPopper.js","../../../node_modules/@popperjs/core/lib/popper.js","../../../node_modules/@mui/base/Popper/popperClasses.js","../../../node_modules/@mui/base/Popper/Popper.js","../../../node_modules/@mui/material/styles/useTheme.js","../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../node_modules/react-transition-group/esm/config.js","../../../node_modules/react-transition-group/esm/utils/PropTypes.js","../../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../node_modules/react-transition-group/esm/utils/reflow.js","../../../node_modules/react-transition-group/esm/Transition.js","../../../node_modules/@mui/material/transitions/utils.js","../../../node_modules/@mui/material/Grow/Grow.js","../../../node_modules/@mui/material/Popper/Popper.js","../../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../node_modules/@mui/material/Tooltip/Tooltip.js","../src/components/mui/menu-item.component.tsx","../src/components/mui/grouped-menu-item-list.component.tsx","../src/components/mui/top-level-menu.component.tsx","../src/components/mui/grid-menu.component.tsx","../src/hooks/use-promise.hook.ts","../../../node_modules/@mui/icons-material/esm/Menu.js","../src/components/mui/hamburger-menu-button.component.tsx","../src/components/mui/icon-button.component.tsx","../src/components/basics/spinner.component.tsx","../src/components/basics/text-field.component.tsx","../src/components/mui/toolbar.component.tsx","../src/components/shadcn-ui/alert.tsx","../src/components/shadcn-ui/badge.tsx","../src/components/shadcn-ui/card.tsx","../src/components/shadcn-ui/sonner.tsx","../src/components/shadcn-ui/slider.tsx","../src/components/shadcn-ui/switch.tsx","../src/components/shadcn-ui/tabs.tsx","../src/components/advanced/extension-marketplace/buttons/install-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/enable-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/disable-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/update-button.component.tsx","../src/components/advanced/extension-marketplace/markdown-renderer.component.tsx","../src/components/advanced/extension-marketplace/buttons/filter-button.component.tsx","../src/components/advanced/extension-marketplace/filter-dropdown.component.tsx","../src/components/advanced/extension-marketplace/no-extensions-found.component.tsx","../src/components/advanced/extension-marketplace/more-info.component.tsx","../src/components/advanced/extension-marketplace/version-history.component.tsx","../src/components/advanced/extension-marketplace/footer.component.tsx","../src/components/advanced/filterable-resource-list/filterable-resource-list.component.tsx","../src/components/advanced/ui-language-selector.component.tsx","../src/hooks/use-event.hook.ts","../src/hooks/use-event-async.hook.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\nconst twMergeCustom = extendTailwindMerge({ prefix: 'tw-' });\n\n/**\n * Tailwind and CSS class application helper function. Uses\n * [`clsx`](https://www.npmjs.com/package/clsx) to make it easy to apply classes conditionally using\n * object syntax, and uses [`tailwind-merge`](https://www.npmjs.com/package/tailwind-merge) to make\n * it easy to merge/overwrite Tailwind classes in a programmer-logic-friendly way.\n *\n * Note: `tailwind-merge` is configured to use the prefix `tw-`, so you must use the same prefix\n * with any Tailwind classes you use with this function to successfully overwrite other Tailwind\n * classes. `platform-bible-react` is configured to use `tw-` as its Tailwind prefix, so any\n * Tailwind classes you pass into `platform-bible-react` components will be compared using the `tw-`\n * prefix.\n *\n * This function was popularized by\n * [shadcn/ui](https://ui.shadcn.com/docs/installation/manual#add-a-cn-helper). See [ByteGrad's\n * explanation video](https://www.youtube.com/watch?v=re2JFITR7TI) for more information.\n *\n * @example\n *\n * ```typescript\n * const borderShouldBeBlue = true;\n * const textShouldBeRed = true;\n * const heightShouldBe20 = false;\n * const classString = cn(\n * 'tw-bg-primary tw-h-10 tw-text-primary-foreground',\n * 'tw-bg-secondary',\n * {\n * 'tw-border-blue-500': borderShouldBeBlue,\n * 'tw-text-red-500': textShouldBeRed,\n * 'tw-h-20': heightShouldBe20,\n * },\n * 'some-class',\n * );\n * ```\n *\n * The resulting `classString` is `'tw-h-10 tw-bg-secondary tw-border-blue-500 tw-text-red-500\n * some-class'`\n *\n * - Notice that `'tw-bg-secondary'`, specified later, overwrote `'tw-bg-primary'`, specified earlier,\n * because they are Tailwind classes that affect the same css property\n * - Notice that `'tw-text-red-500'`, specified later, overwrote `'tw-text-primary-foreground'`,\n * specified earlier, because they are Tailwind classes that affect the same css property\n * - Notice that `'tw-h-20'`, specified later, did not overwrite `'tw-h-10'`, specified earlier,\n * because `'tw-h-20'` is part of a conditional class object and its value evaluated to `false`;\n * therefore it was not applied\n * - Notice that `'some-class'` was applied. This function is not limited only to Tailwind classes.\n *\n *\n * @param inputs Class strings or `clsx` conditional class objects to merge. Tailwind classes\n * specified later in the arguments overwrite similar Tailwind classes specified earlier in the\n * arguments\n * @returns Class string containing all applicable classes from the arguments based on the rules\n * described above\n */\n// shadcn/ui uses this export in its boilerplate code\n// eslint-disable-next-line import/prefer-default-export\nexport function cn(...inputs: ClassValue[]) {\n return twMergeCustom(clsx(inputs));\n}\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport interface InputProps extends React.InputHTMLAttributes {}\n\nexport const Input = React.forwardRef(\n ({ className, type, ...props }, ref) => {\n return (\n \n );\n },\n);\nInput.displayName = 'Input';\n","/** Text and layout direction */\nexport type Direction = 'rtl' | 'ltr';\n\nconst STORAGE_KEY: string = 'layoutDirection';\n\n/** Read layout direction from localStorage or return 'ltr' */\nexport function readDirection(): Direction {\n const retrieved = localStorage.getItem(STORAGE_KEY);\n if (retrieved === 'rtl') {\n return retrieved;\n }\n return 'ltr';\n}\n\n/** Write layout direction to localStorage */\nexport function persistDirection(dir: Direction): void {\n localStorage.setItem(STORAGE_KEY, dir);\n}\n","import { FocusEventHandler, forwardRef, KeyboardEvent, MouseEventHandler } from 'react';\nimport { History } from 'lucide-react';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport type BookChapterInputProps = {\n handleSearch: (searchString: string) => void;\n handleKeyDown: (event: KeyboardEvent) => void;\n handleOnClick: MouseEventHandler;\n handleSubmit: () => void;\n onFocus?: FocusEventHandler;\n value: string;\n placeholder: string;\n};\n\n// Shadcn Input sets type to \"button\"- HAVE to prop spread before setting type\nconst BookChapterInput = forwardRef(\n (\n { handleSearch, handleKeyDown, handleOnClick, handleSubmit, ...props }: BookChapterInputProps,\n ref,\n ) => {\n const dir: Direction = readDirection();\n return (\n
    \n handleSearch(event.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n handleSubmit();\n }\n handleKeyDown(e);\n }}\n onClick={handleOnClick}\n ref={ref}\n />\n {\n // eslint-disable-next-line no-console\n console.log('back in history');\n }}\n />\n
    \n );\n },\n);\n\nexport default BookChapterInput;\n","import React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nexport const DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nexport type DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n className?: string;\n};\n\nexport type DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n className?: string;\n sideOffset?: number;\n};\n\nexport type DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n className?: string;\n checked?: boolean;\n};\n\nexport type DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.RadioItem\n> & {\n className?: string;\n};\n\nexport type DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n className?: string;\n};\n\nexport type DropdownMenuShortcutProps = React.HTMLAttributes & {\n className?: string;\n};\n\nexport const DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubTriggerProps\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nexport const DropdownMenuSubContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubContentProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* TODO: bug in shadcn component: DropdownMenuContent does not support a dir prop.\nFor the content we can work around this by adding a div with dir, but that would not cause\nthe scrollbar to appear left in an rtl layout (e.g. see book-chapter-control.component) */\nexport const DropdownMenuContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuContentProps\n>(({ className, sideOffset = 4, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n
    {children}
    \n \n
    \n );\n});\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport const DropdownMenuItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuItemProps\n>(({ className, inset, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nexport const DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuCheckboxItemProps\n>(({ className, children, checked, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nexport const DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuRadioItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nexport const DropdownMenuLabel = React.forwardRef<\n React.ElementRef,\n DropdownMenuLabelProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nexport const DropdownMenuSeparator = React.forwardRef<\n React.ElementRef,\n DropdownMenuSeparatorProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nexport function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps) {\n return (\n \n );\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n","var P = Object.defineProperty;\nvar R = (t, e, s) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;\nvar n = (t, e, s) => R(t, typeof e != \"symbol\" ? e + \"\" : e, s);\nclass _ {\n constructor() {\n n(this, \"books\");\n n(this, \"firstSelectedBookNum\");\n n(this, \"lastSelectedBookNum\");\n n(this, \"count\");\n n(this, \"selectedBookNumbers\");\n n(this, \"selectedBookIds\");\n }\n}\nconst N = [\n \"GEN\",\n \"EXO\",\n \"LEV\",\n \"NUM\",\n \"DEU\",\n \"JOS\",\n \"JDG\",\n \"RUT\",\n \"1SA\",\n \"2SA\",\n // 10\n \"1KI\",\n \"2KI\",\n \"1CH\",\n \"2CH\",\n \"EZR\",\n \"NEH\",\n \"EST\",\n \"JOB\",\n \"PSA\",\n \"PRO\",\n // 20\n \"ECC\",\n \"SNG\",\n \"ISA\",\n \"JER\",\n \"LAM\",\n \"EZK\",\n \"DAN\",\n \"HOS\",\n \"JOL\",\n \"AMO\",\n // 30\n \"OBA\",\n \"JON\",\n \"MIC\",\n \"NAM\",\n \"HAB\",\n \"ZEP\",\n \"HAG\",\n \"ZEC\",\n \"MAL\",\n \"MAT\",\n // 40\n \"MRK\",\n \"LUK\",\n \"JHN\",\n \"ACT\",\n \"ROM\",\n \"1CO\",\n \"2CO\",\n \"GAL\",\n \"EPH\",\n \"PHP\",\n // 50\n \"COL\",\n \"1TH\",\n \"2TH\",\n \"1TI\",\n \"2TI\",\n \"TIT\",\n \"PHM\",\n \"HEB\",\n \"JAS\",\n \"1PE\",\n // 60\n \"2PE\",\n \"1JN\",\n \"2JN\",\n \"3JN\",\n \"JUD\",\n \"REV\",\n \"TOB\",\n \"JDT\",\n \"ESG\",\n \"WIS\",\n // 70\n \"SIR\",\n \"BAR\",\n \"LJE\",\n \"S3Y\",\n \"SUS\",\n \"BEL\",\n \"1MA\",\n \"2MA\",\n \"3MA\",\n \"4MA\",\n // 80\n \"1ES\",\n \"2ES\",\n \"MAN\",\n \"PS2\",\n \"ODA\",\n \"PSS\",\n \"JSA\",\n // actual variant text for JOS, now in LXA text\n \"JDB\",\n // actual variant text for JDG, now in LXA text\n \"TBS\",\n // actual variant text for TOB, now in LXA text\n \"SST\",\n // actual variant text for SUS, now in LXA text // 90\n \"DNT\",\n // actual variant text for DAN, now in LXA text\n \"BLT\",\n // actual variant text for BEL, now in LXA text\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n // 100\n \"BAK\",\n \"OTH\",\n \"3ES\",\n // Used previously but really should be 2ES\n \"EZA\",\n // Used to be called 4ES, but not actually in any known project\n \"5EZ\",\n // Used to be called 5ES, but not actually in any known project\n \"6EZ\",\n // Used to be called 6ES, but not actually in any known project\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n // 110\n \"NDX\",\n \"DAG\",\n \"PS3\",\n \"2BA\",\n \"LBA\",\n \"JUB\",\n \"ENO\",\n \"1MQ\",\n \"2MQ\",\n \"3MQ\",\n // 120\n \"REP\",\n \"4BA\",\n \"LAO\"\n], B = [\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n \"BAK\",\n \"OTH\",\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n \"NDX\"\n], O = [\n \"Genesis\",\n \"Exodus\",\n \"Leviticus\",\n \"Numbers\",\n \"Deuteronomy\",\n \"Joshua\",\n \"Judges\",\n \"Ruth\",\n \"1 Samuel\",\n \"2 Samuel\",\n \"1 Kings\",\n \"2 Kings\",\n \"1 Chronicles\",\n \"2 Chronicles\",\n \"Ezra\",\n \"Nehemiah\",\n \"Esther (Hebrew)\",\n \"Job\",\n \"Psalms\",\n \"Proverbs\",\n \"Ecclesiastes\",\n \"Song of Songs\",\n \"Isaiah\",\n \"Jeremiah\",\n \"Lamentations\",\n \"Ezekiel\",\n \"Daniel (Hebrew)\",\n \"Hosea\",\n \"Joel\",\n \"Amos\",\n \"Obadiah\",\n \"Jonah\",\n \"Micah\",\n \"Nahum\",\n \"Habakkuk\",\n \"Zephaniah\",\n \"Haggai\",\n \"Zechariah\",\n \"Malachi\",\n \"Matthew\",\n \"Mark\",\n \"Luke\",\n \"John\",\n \"Acts\",\n \"Romans\",\n \"1 Corinthians\",\n \"2 Corinthians\",\n \"Galatians\",\n \"Ephesians\",\n \"Philippians\",\n \"Colossians\",\n \"1 Thessalonians\",\n \"2 Thessalonians\",\n \"1 Timothy\",\n \"2 Timothy\",\n \"Titus\",\n \"Philemon\",\n \"Hebrews\",\n \"James\",\n \"1 Peter\",\n \"2 Peter\",\n \"1 John\",\n \"2 John\",\n \"3 John\",\n \"Jude\",\n \"Revelation\",\n \"Tobit\",\n \"Judith\",\n \"Esther Greek\",\n \"Wisdom of Solomon\",\n \"Sirach (Ecclesiasticus)\",\n \"Baruch\",\n \"Letter of Jeremiah\",\n \"Song of 3 Young Men\",\n \"Susanna\",\n \"Bel and the Dragon\",\n \"1 Maccabees\",\n \"2 Maccabees\",\n \"3 Maccabees\",\n \"4 Maccabees\",\n \"1 Esdras (Greek)\",\n \"2 Esdras (Latin)\",\n \"Prayer of Manasseh\",\n \"Psalm 151\",\n \"Odes\",\n \"Psalms of Solomon\",\n // WARNING, if you change the spelling of the *obsolete* tag be sure to update\n // IsObsolete routine\n \"Joshua A. *obsolete*\",\n \"Judges B. *obsolete*\",\n \"Tobit S. *obsolete*\",\n \"Susanna Th. *obsolete*\",\n \"Daniel Th. *obsolete*\",\n \"Bel Th. *obsolete*\",\n \"Extra A\",\n \"Extra B\",\n \"Extra C\",\n \"Extra D\",\n \"Extra E\",\n \"Extra F\",\n \"Extra G\",\n \"Front Matter\",\n \"Back Matter\",\n \"Other Matter\",\n \"3 Ezra *obsolete*\",\n \"Apocalypse of Ezra\",\n \"5 Ezra (Latin Prologue)\",\n \"6 Ezra (Latin Epilogue)\",\n \"Introduction\",\n \"Concordance \",\n \"Glossary \",\n \"Topical Index\",\n \"Names Index\",\n \"Daniel Greek\",\n \"Psalms 152-155\",\n \"2 Baruch (Apocalypse)\",\n \"Letter of Baruch\",\n \"Jubilees\",\n \"Enoch\",\n \"1 Meqabyan\",\n \"2 Meqabyan\",\n \"3 Meqabyan\",\n \"Reproof (Proverbs 25-31)\",\n \"4 Baruch (Rest of Baruch)\",\n \"Laodiceans\"\n], S = K();\nfunction g(t, e = !0) {\n return e && (t = t.toUpperCase()), t in S ? S[t] : 0;\n}\nfunction k(t) {\n return g(t) > 0;\n}\nfunction x(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return e >= 40 && e <= 66;\n}\nfunction T(t) {\n return (typeof t == \"string\" ? g(t) : t) <= 39;\n}\nfunction X(t) {\n return t <= 66;\n}\nfunction V(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return w(e) && !X(e);\n}\nfunction* L() {\n for (let t = 1; t <= N.length; t++) yield t;\n}\nconst G = 1, A = N.length;\nfunction H() {\n return [\"XXA\", \"XXB\", \"XXC\", \"XXD\", \"XXE\", \"XXF\", \"XXG\"];\n}\nfunction C(t, e = \"***\") {\n const s = t - 1;\n return s < 0 || s >= N.length ? e : N[s];\n}\nfunction I(t) {\n return t <= 0 || t > A ? \"******\" : O[t - 1];\n}\nfunction y(t) {\n return I(g(t));\n}\nfunction w(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && !B.includes(e);\n}\nfunction q(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && B.includes(e);\n}\nfunction U(t) {\n return O[t - 1].includes(\"*obsolete*\");\n}\nfunction K() {\n const t = {};\n for (let e = 0; e < N.length; e++)\n t[N[e]] = e + 1;\n return t;\n}\nconst m = {\n allBookIds: N,\n nonCanonicalIds: B,\n bookIdToNumber: g,\n isBookIdValid: k,\n isBookNT: x,\n isBookOT: T,\n isBookOTNT: X,\n isBookDC: V,\n allBookNumbers: L,\n firstBook: G,\n lastBook: A,\n extraBooks: H,\n bookNumberToId: C,\n bookNumberToEnglishName: I,\n bookIdToEnglishName: y,\n isCanonical: w,\n isExtraMaterial: q,\n isObsolete: U\n};\nvar l = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = \"Unknown\", t[t.Original = 1] = \"Original\", t[t.Septuagint = 2] = \"Septuagint\", t[t.Vulgate = 3] = \"Vulgate\", t[t.English = 4] = \"English\", t[t.RussianProtestant = 5] = \"RussianProtestant\", t[t.RussianOrthodox = 6] = \"RussianOrthodox\", t))(l || {});\nconst h = class h {\n // private versInfo: Versification;\n constructor(e) {\n n(this, \"name\");\n n(this, \"fullPath\");\n n(this, \"isPresent\");\n n(this, \"hasVerseSegments\");\n n(this, \"isCustomized\");\n n(this, \"baseVersification\");\n n(this, \"scriptureBooks\");\n n(this, \"_type\");\n if (e == null)\n throw new Error(\"Argument undefined\");\n typeof e == \"string\" ? (this.name = e, this._type = l[e]) : (this._type = e, this.name = l[e]);\n }\n get type() {\n return this._type;\n }\n equals(e) {\n return !e.type || !this.type ? !1 : e.type === this.type;\n }\n};\nn(h, \"Original\", new h(l.Original)), n(h, \"Septuagint\", new h(l.Septuagint)), n(h, \"Vulgate\", new h(l.Vulgate)), n(h, \"English\", new h(l.English)), n(h, \"RussianProtestant\", new h(l.RussianProtestant)), n(h, \"RussianOrthodox\", new h(l.RussianOrthodox));\nlet c = h;\nfunction E(t, e) {\n const s = e[0];\n for (let r = 1; r < e.length; r++)\n t = t.split(e[r]).join(s);\n return t.split(s);\n}\nvar D = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = \"Valid\", t[t.UnknownVersification = 1] = \"UnknownVersification\", t[t.OutOfRange = 2] = \"OutOfRange\", t[t.VerseOutOfOrder = 3] = \"VerseOutOfOrder\", t[t.VerseRepeated = 4] = \"VerseRepeated\", t))(D || {});\nconst i = class i {\n constructor(e, s, r, a) {\n /** Not yet implemented. */\n n(this, \"firstChapter\");\n /** Not yet implemented. */\n n(this, \"lastChapter\");\n /** Not yet implemented. */\n n(this, \"lastVerse\");\n /** Not yet implemented. */\n n(this, \"hasSegmentsDefined\");\n /** Not yet implemented. */\n n(this, \"text\");\n /** Not yet implemented. */\n n(this, \"BBBCCCVVVS\");\n /** Not yet implemented. */\n n(this, \"longHashCode\");\n /** The versification of the reference. */\n n(this, \"versification\");\n n(this, \"rtlMark\", \"‏\");\n n(this, \"_bookNum\", 0);\n n(this, \"_chapterNum\", 0);\n n(this, \"_verseNum\", 0);\n n(this, \"_verse\");\n if (r == null && a == null)\n if (e != null && typeof e == \"string\") {\n const o = e, u = s != null && s instanceof c ? s : void 0;\n this.setEmpty(u), this.parse(o);\n } else if (e != null && typeof e == \"number\") {\n const o = s != null && s instanceof c ? s : void 0;\n this.setEmpty(o), this._verseNum = e % i.chapterDigitShifter, this._chapterNum = Math.floor(\n e % i.bookDigitShifter / i.chapterDigitShifter\n ), this._bookNum = Math.floor(e / i.bookDigitShifter);\n } else if (s == null)\n if (e != null && e instanceof i) {\n const o = e;\n this._bookNum = o.bookNum, this._chapterNum = o.chapterNum, this._verseNum = o.verseNum, this._verse = o.verse, this.versification = o.versification;\n } else {\n if (e == null) return;\n const o = e instanceof c ? e : i.defaultVersification;\n this.setEmpty(o);\n }\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else if (e != null && s != null && r != null)\n if (typeof e == \"string\" && typeof s == \"string\" && typeof r == \"string\")\n this.setEmpty(a), this.updateInternal(e, s, r);\n else if (typeof e == \"number\" && typeof s == \"number\" && typeof r == \"number\")\n this._bookNum = e, this._chapterNum = s, this._verseNum = r, this.versification = a ?? i.defaultVersification;\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else\n throw new Error(\"VerseRef constructor not supported.\");\n }\n /**\n * Determines if the verse string is in a valid format (does not consider versification).\n */\n static isVerseParseable(e) {\n return e.length > 0 && \"0123456789\".includes(e[0]) && !e.endsWith(this.verseRangeSeparator) && !e.endsWith(this.verseSequenceIndicator);\n }\n /**\n * Tries to parse the specified string into a verse reference.\n * @param str - The string to attempt to parse.\n * @returns success: `true` if the specified string was successfully parsed, `false` otherwise.\n * @returns verseRef: The result of the parse if successful, or empty VerseRef if it failed\n */\n static tryParse(e) {\n let s;\n try {\n return s = new i(e), { success: !0, verseRef: s };\n } catch (r) {\n if (r instanceof v)\n return s = new i(), { success: !1, verseRef: s };\n throw r;\n }\n }\n /**\n * Gets the reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n * @param bookNum - Book number (this is 1-based, not an index).\n * @param chapterNum - Chapter number.\n * @param verseNum - Verse number.\n * @returns The reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n */\n static getBBBCCCVVV(e, s, r) {\n return e % i.bcvMaxValue * i.bookDigitShifter + (s >= 0 ? s % i.bcvMaxValue * i.chapterDigitShifter : 0) + (r >= 0 ? r % i.bcvMaxValue : 0);\n }\n /**\n * Deserializes a serialized VerseRef.\n * @param serializedVerseRef - Serialized VerseRef to create from.\n * @returns the deserialized VerseRef.\n */\n static fromJSON(e) {\n const { book: s, chapterNum: r, verseNum: a, verse: o, versificationStr: u } = e, f = o || a.toString();\n let d;\n return u && (d = new c(u)), s ? new i(s, r.toString(), f, d) : new i();\n }\n /**\n * Parses a verse string and gets the leading numeric portion as a number.\n * @param verseStr - verse string to parse\n * @returns true if the entire string could be parsed as a single, simple verse number (1-999);\n * false if the verse string represented a verse bridge, contained segment letters, or was invalid\n */\n static tryGetVerseNum(e) {\n let s;\n if (!e)\n return s = -1, { success: !0, vNum: s };\n s = 0;\n let r;\n for (let a = 0; a < e.length; a++) {\n if (r = e[a], r < \"0\" || r > \"9\")\n return a === 0 && (s = -1), { success: !1, vNum: s };\n if (s = s * 10 + +r - 0, s > i.bcvMaxValue)\n return s = -1, { success: !1, vNum: s };\n }\n return { success: !0, vNum: s };\n }\n /**\n * Checks to see if a VerseRef hasn't been set - all values are the default.\n */\n get isDefault() {\n return this.bookNum === 0 && this.chapterNum === 0 && this.verseNum === 0 && this.versification == null;\n }\n /**\n * Gets whether the verse contains multiple verses.\n */\n get hasMultiple() {\n return this._verse != null && (this._verse.includes(i.verseRangeSeparator) || this._verse.includes(i.verseSequenceIndicator));\n }\n /**\n * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters,\n * e.g. `'MAT'`.\n */\n get book() {\n return m.bookNumberToId(this.bookNum, \"\");\n }\n set book(e) {\n this.bookNum = m.bookIdToNumber(e);\n }\n /**\n * Gets or sets the chapter of the reference,. e.g. `'3'`.\n */\n get chapter() {\n return this.isDefault || this._chapterNum < 0 ? \"\" : this._chapterNum.toString();\n }\n set chapter(e) {\n const s = +e;\n this._chapterNum = Number.isInteger(s) ? s : -1;\n }\n /**\n * Gets or sets the verse of the reference, including range, segments, and sequences, e.g. `'4'`,\n * or `'4b-5a, 7'`.\n */\n get verse() {\n return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? \"\" : this._verseNum.toString();\n }\n set verse(e) {\n const { success: s, vNum: r } = i.tryGetVerseNum(e);\n this._verse = s ? void 0 : e.replace(this.rtlMark, \"\"), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = i.tryGetVerseNum(this._verse));\n }\n /**\n * Get or set Book based on book number, e.g. `42`.\n */\n get bookNum() {\n return this._bookNum;\n }\n set bookNum(e) {\n if (e <= 0 || e > m.lastBook)\n throw new v(\n \"BookNum must be greater than zero and less than or equal to last book\"\n );\n this._bookNum = e;\n }\n /**\n * Gets or sets the chapter number, e.g. `3`. `-1` if not valid.\n */\n get chapterNum() {\n return this._chapterNum;\n }\n set chapterNum(e) {\n this.chapterNum = e;\n }\n /**\n * Gets or sets verse start number, e.g. `4`. `-1` if not valid.\n */\n get verseNum() {\n return this._verseNum;\n }\n set verseNum(e) {\n this._verseNum = e;\n }\n /**\n * String representing the versification (should ONLY be used for serialization/deserialization).\n *\n * @remarks This is for backwards compatibility when ScrVers was an enumeration.\n */\n get versificationStr() {\n var e;\n return (e = this.versification) == null ? void 0 : e.name;\n }\n set versificationStr(e) {\n this.versification = this.versification != null ? new c(e) : void 0;\n }\n /**\n * Determines if the reference is valid.\n */\n get valid() {\n return this.validStatus === 0;\n }\n /**\n * Get the valid status for this reference.\n */\n get validStatus() {\n return this.validateVerse(i.verseRangeSeparators, i.verseSequenceIndicators);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits and the verse is 0.\n */\n get BBBCCC() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, 0);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits. If verse is not null\n * (i.e., this reference represents a complex reference with verse\n * segments or bridge) this cannot be used for an exact comparison.\n */\n get BBBCCCVVV() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum);\n }\n /**\n * Gets whether the verse is defined as an excluded verse in the versification.\n * Does not handle verse ranges.\n */\n // eslint-disable-next-line @typescript-eslint/class-literal-property-style\n get isExcluded() {\n return !1;\n }\n /**\n * Parses the reference in the specified string.\n * Optionally versification can follow reference as in GEN 3:11/4\n * Throw an exception if\n * - invalid book name\n * - chapter number is missing or not a number\n * - verse number is missing or does not start with a number\n * - versification is invalid\n * @param verseStr - string to parse e.g. 'MAT 3:11'\n */\n parse(e) {\n if (e = e.replace(this.rtlMark, \"\"), e.includes(\"/\")) {\n const o = e.split(\"/\");\n if (e = o[0], o.length > 1)\n try {\n const u = +o[1].trim();\n this.versification = new c(l[u]);\n } catch {\n throw new v(\"Invalid reference : \" + e);\n }\n }\n const s = e.trim().split(\" \");\n if (s.length !== 2)\n throw new v(\"Invalid reference : \" + e);\n const r = s[1].split(\":\"), a = +r[0];\n if (r.length !== 2 || m.bookIdToNumber(s[0]) === 0 || !Number.isInteger(a) || a < 0 || !i.isVerseParseable(r[1]))\n throw new v(\"Invalid reference : \" + e);\n this.updateInternal(s[0], r[0], r[1]);\n }\n /**\n * Simplifies this verse ref so that it has no bridging of verses or\n * verse segments like `'1a'`.\n */\n simplify() {\n this._verse = void 0;\n }\n /**\n * Makes a clone of the reference.\n *\n * @returns The cloned VerseRef.\n */\n clone() {\n return new i(this);\n }\n toString() {\n const e = this.book;\n return e === \"\" ? \"\" : `${e} ${this.chapter}:${this.verse}`;\n }\n toJSON() {\n let e = this.verse;\n (e === \"\" || e === this.verseNum.toString()) && (e = void 0);\n const s = {\n book: this.book,\n chapterNum: this.chapterNum,\n verseNum: this.verseNum,\n verse: e,\n versificationStr: this.versificationStr\n };\n return e || delete s.verse, s;\n }\n /**\n * Compares this `VerseRef` with supplied one.\n * @param verseRef - object to compare this one to.\n * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise.\n */\n equals(e) {\n return e instanceof i ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1;\n }\n /**\n * Enumerate all individual verses contained in a VerseRef.\n * Verse ranges are indicated by \"-\" and consecutive verses by \",\"s.\n * Examples:\n * GEN 1:2 returns GEN 1:2\n * GEN 1:1a-3b,5 returns GEN 1:1a, GEN 1:2, GEN 1:3b, GEN 1:5\n * GEN 1:2a-2c returns //! ??????\n *\n * @param specifiedVersesOnly - if set to true return only verses that are\n * explicitly specified only, not verses within a range. Defaults to `false`.\n * @param verseRangeSeparators - Verse range separators.\n * Defaults to `VerseRef.verseRangeSeparators`.\n * @param verseSequenceSeparators - Verse sequence separators.\n * Defaults to `VerseRef.verseSequenceIndicators`.\n * @returns An array of all single verse references in this VerseRef.\n */\n allVerses(e = !1, s = i.verseRangeSeparators, r = i.verseSequenceIndicators) {\n if (this._verse == null || this.chapterNum <= 0)\n return [this.clone()];\n const a = [], o = E(this._verse, r);\n for (const u of o.map((f) => E(f, s))) {\n const f = this.clone();\n f.verse = u[0];\n const d = f.verseNum;\n if (a.push(f), u.length > 1) {\n const b = this.clone();\n if (b.verse = u[1], !e)\n for (let p = d + 1; p < b.verseNum; p++) {\n const J = new i(\n this._bookNum,\n this._chapterNum,\n p,\n this.versification\n );\n this.isExcluded || a.push(J);\n }\n a.push(b);\n }\n }\n return a;\n }\n /**\n * Validates a verse number using the supplied separators rather than the defaults.\n */\n validateVerse(e, s) {\n if (!this.verse)\n return this.internalValid;\n let r = 0;\n for (const a of this.allVerses(!0, e, s)) {\n const o = a.internalValid;\n if (o !== 0)\n return o;\n const u = a.BBBCCCVVV;\n if (r > u)\n return 3;\n if (r === u)\n return 4;\n r = u;\n }\n return 0;\n }\n /**\n * Gets whether a single verse reference is valid.\n */\n get internalValid() {\n return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > m.lastBook ? 2 : (m.isCanonical(this._bookNum), 0);\n }\n setEmpty(e = i.defaultVersification) {\n this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = e;\n }\n updateInternal(e, s, r) {\n this.bookNum = m.bookIdToNumber(e), this.chapter = s, this.verse = r;\n }\n};\nn(i, \"defaultVersification\", c.English), n(i, \"verseRangeSeparator\", \"-\"), n(i, \"verseSequenceIndicator\", \",\"), n(i, \"verseRangeSeparators\", [i.verseRangeSeparator]), n(i, \"verseSequenceIndicators\", [i.verseSequenceIndicator]), n(i, \"chapterDigitShifter\", 1e3), n(i, \"bookDigitShifter\", i.chapterDigitShifter * i.chapterDigitShifter), n(i, \"bcvMaxValue\", i.chapterDigitShifter - 1), /**\n * The valid status of the VerseRef.\n */\nn(i, \"ValidStatusType\", D);\nlet M = i;\nclass v extends Error {\n}\nexport {\n _ as BookSet,\n m as Canon,\n c as ScrVers,\n l as ScrVersType,\n M as VerseRef,\n v as VerseRefException\n};\n//# sourceMappingURL=index.es.js.map\n","import { DropdownMenuItem } from '@/components/shadcn-ui/dropdown-menu';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Canon } from '@sillsdev/scripture';\nimport { KeyboardEvent, PropsWithChildren, forwardRef } from 'react';\n\nexport type BookType = 'OT' | 'NT' | 'DC';\n\ntype BookMenuItemProps = PropsWithChildren<{\n /** String id of book */\n bookId: string;\n /** Callback to run when a book menu item is selected */\n handleSelectBook: () => void;\n /** Indicates if this menu item is currently selected */\n isSelected: boolean;\n /** Function that is called upon highlighting a book in the dropdown menu */\n handleHighlightBook: () => void;\n /**\n * Function that is called on pressing a key\n *\n * @param event Event that contains information about the key stroke\n */\n handleKeyDown: (event: KeyboardEvent) => void;\n /**\n * Type of book associated with this menu item, coordinates color labels ? Mock up has the labels\n * coordinated to genre\n */\n bookType: BookType;\n}>;\n\nconst BookMenuItem = forwardRef(\n (\n {\n bookId,\n handleSelectBook,\n isSelected,\n handleHighlightBook,\n handleKeyDown,\n bookType,\n children,\n }: BookMenuItemProps,\n ref,\n ) => {\n return (\n {\n // preventDefault() here prevents the entire dropdown menu from closing when selecting this item\n event.preventDefault();\n handleSelectBook();\n }}\n onKeyDown={(event: KeyboardEvent) => {\n handleKeyDown(event);\n }}\n onFocus={handleHighlightBook}\n onMouseMove={handleHighlightBook}\n >\n \n {Canon.bookIdToEnglishName(bookId)}\n \n {isSelected &&
    {children}
    }\n \n );\n },\n);\n\nexport default BookMenuItem;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type ChapterSelectProps = {\n /**\n * Callback to run when a chapter div is selected\n *\n * @param chapterNumber Number of the chapter that has been selected\n */\n handleSelectChapter: (chapterNumber: number) => void;\n /** The highest chapter number in the book (of course equal to number of chapters in the book) */\n endChapter: number;\n /** The chapter number that is currently selected */\n activeChapter: number;\n /** The chapter number that is currently highlighted using keyboard or mouse navigation */\n highlightedChapter: number;\n /**\n * Callback to run when a chapter is highlighted by the user\n *\n * @param chapterNumber The chapter that is highlighted\n */\n handleHighlightedChapter: (chapterNumber: number) => void;\n};\n\nfunction ChapterSelect({\n handleSelectChapter,\n endChapter,\n activeChapter,\n highlightedChapter,\n handleHighlightedChapter,\n}: ChapterSelectProps) {\n const chapters = Array.from({ length: endChapter }, (_, i) => i + 1);\n\n const handleMouse = useCallback(\n (chapterNumber: number) => {\n handleHighlightedChapter(chapterNumber);\n },\n [handleHighlightedChapter],\n );\n\n return (\n
    \n {chapters.map((chapter) => (\n {\n event.preventDefault();\n event.stopPropagation();\n handleSelectChapter(chapter);\n }}\n role=\"button\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n handleSelectChapter(chapter);\n }\n }}\n tabIndex={0}\n onMouseMove={() => handleMouse(chapter)}\n >\n {chapter}\n
    \n ))}\n
    \n );\n}\n\nexport default ChapterSelect;\n","import { DropdownMenuLabel } from '@/components/shadcn-ui/dropdown-menu';\nimport { Bookmark, Clock, ArrowDownWideNarrow } from 'lucide-react';\n\nexport type GoToMenuItemProps = {\n handleSort: () => void;\n handleLocationHistory: () => void;\n handleBookmarks: () => void;\n};\n\nfunction GoToMenuItem({ handleSort, handleLocationHistory, handleBookmarks }: GoToMenuItemProps) {\n return (\n \n

    Go To

    \n
    \n \n \n \n
    \n
    \n );\n}\n\nexport default GoToMenuItem;\n","import BookChapterInput from '@/components/advanced/book-chapter-control/book-chapter-input.component';\nimport BookMenuItem, {\n BookType,\n} from '@/components/advanced/book-chapter-control/book-menu-item.component';\nimport ChapterSelect from '@/components/advanced/book-chapter-control/chapter-select.component';\nimport GoToMenuItem from '@/components/advanced/book-chapter-control/go-to-menu-item.component';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference, getChaptersForBook } from 'platform-bible-utils';\nimport {\n KeyboardEvent as ReactKeyboardEvent,\n useCallback,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\n\ntype BookTypeLabels = {\n [bookType in BookType]: string;\n};\ntype BookChapterControlProps = {\n scrRef: ScriptureReference;\n handleSubmit: (scrRef: ScriptureReference) => void;\n};\n\nconst ALL_BOOK_IDS = Canon.allBookIds;\nconst BOOK_TYPE_LABELS: BookTypeLabels = {\n OT: 'Old Testament',\n NT: 'New Testament',\n DC: 'Deuterocanon',\n};\nconst BOOK_TYPE_ARRAY: BookType[] = ['OT', 'NT', 'DC'];\n// This is the height of three menu items to offset scrolling to the selected menu item\n// If you use menuItemRef.clientHeight- includes height of chapter div which is too big\nconst SCROLL_OFFSET = 32 + 32 + 32;\nconst SEARCH_QUERY_FORMATS = [\n /^(\\w+)$/i, // Matches a single word (book name or id)\n /^(\\w+)(?:\\s(\\d+))$/i, // Matches a word followed by a chapter number\n /^(\\w+)(?:\\s(\\d+):(\\d+))$/i, // Matches a word followed by a chapter and verse number\n];\nconst fetchGroupedBooks = (bookType: BookType) => {\n const groupedBooks = {\n OT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookOT(bookId)),\n NT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookNT(bookId)),\n DC: ALL_BOOK_IDS.filter((bookId) => Canon.isBookDC(bookId)),\n };\n return groupedBooks[bookType];\n};\nconst fetchEndChapter = (bookId: string) => {\n // getChaptersForBook returns -1 if not found in scrBookData\n // scrBookData only includes OT and NT, so all DC will return -1\n return getChaptersForBook(Canon.bookIdToNumber(bookId));\n};\n\n/**\n * Gets all of the English names from book ids\n *\n * @returns String[]\n */\nfunction getAllEnglishNames(): string[] {\n const allEnglishNames = ALL_BOOK_IDS.map((bookId) => {\n return Canon.bookIdToEnglishName(bookId);\n });\n return allEnglishNames;\n}\n\n/**\n * Determines if bookName is in allEnglishNames\n *\n * @param bookName Book English name\n * @returns True if bookName is included, false otherwise\n */\nfunction isValidBookEnglishName(bookName: string): boolean {\n return getAllEnglishNames().includes(bookName);\n}\n\n/**\n * Gets a bookId from given English name\n *\n * @param bookName Book English name\n * @returns BookId of provided bookName, undefined otherwise\n */\nfunction getBookIdFromEnglishName(bookName: string): string | undefined {\n // Convert bookName to lowercase and then capitalize the first letter\n const formattedBookName = bookName.toLowerCase().replace(/^\\w/, (c) => c.toUpperCase());\n\n if (isValidBookEnglishName(formattedBookName)) {\n const matchingBookId = ALL_BOOK_IDS.find((bookId) => {\n return Canon.bookIdToEnglishName(bookId) === formattedBookName;\n });\n return matchingBookId;\n }\n\n return undefined;\n}\n\nfunction BookChapterControl({ scrRef, handleSubmit }: BookChapterControlProps) {\n const dir: Direction = readDirection();\n const [searchQuery, setSearchQuery] = useState('');\n const [selectedBookId, setSelectedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [highlightedChapter, setHighlightedChapter] = useState(scrRef.chapterNum ?? 0);\n const [highlightedBookId, setHighlightedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [isContentOpen, setIsContentOpen] = useState(false);\n const [isContentOpenDelayed, setIsContentOpenDelayed] = useState(isContentOpen);\n\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const inputRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const contentRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const menuItemRef = useRef(undefined!);\n\n const fetchFilteredBooks = useCallback(\n (bookType: BookType) => {\n return fetchGroupedBooks(bookType).filter((bookId: string) => {\n const englishNameLowerCase = Canon.bookIdToEnglishName(bookId).toLowerCase();\n const normalizedQuery = searchQuery.replace(/[^a-zA-Z]/g, '').toLowerCase();\n return (\n englishNameLowerCase.includes(normalizedQuery) || // Match book name\n bookId.toLowerCase().includes(normalizedQuery) // Match book ID\n );\n });\n },\n [searchQuery],\n );\n\n const handleSearchInput = (searchString: string) => {\n setSearchQuery(searchString);\n };\n\n /**\n * Whether to prevent radix's logic from closing the dropdown. This is important because radix\n * tries to close the dropdown when the input first focuses, and we don't want it to do that. But\n * we don't want to prevent the dropdown from closing when we click away from the input, so we\n * don't want to just keep it open if the input is focused\n */\n const shouldPreventAutoClosing = useRef(false);\n\n const controlMenuState = useCallback((open: boolean) => {\n if (shouldPreventAutoClosing.current) {\n shouldPreventAutoClosing.current = false;\n return;\n }\n setIsContentOpen(open);\n }, []);\n\n const updateReference = useCallback(\n (bookId: string, shouldClose: boolean, chapter?: number, verse?: number) => {\n setHighlightedChapter(\n Canon.bookNumberToId(scrRef.bookNum) !== bookId ? 1 : scrRef.chapterNum,\n );\n\n if (shouldClose || fetchEndChapter(bookId) === -1) {\n handleSubmit({\n bookNum: Canon.bookIdToNumber(bookId),\n chapterNum: chapter || 1,\n verseNum: verse || 1,\n });\n\n setIsContentOpen(false);\n setSearchQuery('');\n return;\n }\n\n setSelectedBookId(selectedBookId !== bookId ? bookId : '');\n setIsContentOpen(!shouldClose);\n },\n [handleSubmit, scrRef.bookNum, scrRef.chapterNum, selectedBookId],\n );\n\n const handleSelectChapter = (chapterNumber: number) => {\n if (chapterNumber <= 0 || chapterNumber > fetchEndChapter(selectedBookId)) {\n return;\n }\n updateReference(selectedBookId, true, chapterNumber);\n };\n\n const handleInputSubmit = useCallback(() => {\n SEARCH_QUERY_FORMATS.forEach((format) => {\n const matches = searchQuery.match(format);\n if (matches) {\n // Book should be a bookId or an english name\n const [book, chapter = undefined, verse = undefined] = matches.slice(1);\n const englishName = getBookIdFromEnglishName(book);\n\n if (Canon.isBookIdValid(book) || englishName) {\n updateReference(\n englishName ?? book,\n true,\n chapter ? parseInt(chapter, 10) : 1,\n verse ? parseInt(verse, 10) : 1,\n );\n }\n }\n });\n }, [updateReference, searchQuery]);\n\n const handleKeyDownInput = useCallback(\n (event: ReactKeyboardEvent) => {\n if (!isContentOpen) {\n setIsContentOpen(true);\n } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (\n typeof menuItemRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n menuItemRef.current !== null\n ) {\n menuItemRef.current.focus();\n } else if (\n typeof contentRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n contentRef.current !== null\n ) {\n contentRef.current.focus();\n }\n event.preventDefault();\n }\n },\n [isContentOpen],\n );\n\n const handleKeyDownContent = (event: ReactKeyboardEvent) => {\n // When the dropdown menu has focus, key strokes should give focus to the input component,\n // unless they're navigation keys (arrows and enter)\n const { key } = event;\n if (\n key === 'ArrowRight' ||\n key === 'ArrowLeft' ||\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter'\n ) {\n return;\n }\n\n inputRef.current.dispatchEvent(new KeyboardEvent('keydown', { key }));\n inputRef.current.focus();\n };\n\n const handleKeyDownMenuItem = (event: ReactKeyboardEvent) => {\n const { key } = event;\n if (highlightedBookId === selectedBookId) {\n if (key === 'Enter') {\n event.preventDefault();\n updateReference(selectedBookId, true, highlightedChapter);\n return;\n }\n\n const upOneChapter =\n (key === 'ArrowRight' && !dir) ||\n (key === 'ArrowRight' && dir === 'ltr') ||\n (key === 'ArrowLeft' && dir === 'rtl');\n const downOneChapter =\n (key === 'ArrowLeft' && !dir) ||\n (key === 'ArrowLeft' && dir === 'ltr') ||\n (key === 'ArrowRight' && dir === 'rtl');\n let chapterOffSet = 0;\n if (upOneChapter) {\n if (highlightedChapter < fetchEndChapter(highlightedBookId)) {\n chapterOffSet = 1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (downOneChapter) {\n if (highlightedChapter > 1) {\n chapterOffSet = -1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowDown') {\n chapterOffSet = 6;\n } else if (key === 'ArrowUp') {\n chapterOffSet = -6;\n }\n if (\n highlightedChapter + chapterOffSet <= 0 ||\n highlightedChapter + chapterOffSet > fetchEndChapter(highlightedBookId)\n ) {\n setHighlightedChapter(0);\n } else if (chapterOffSet !== 0) {\n setHighlightedChapter(highlightedChapter + chapterOffSet);\n event.preventDefault();\n }\n }\n };\n\n useEffect(() => {\n if (selectedBookId === highlightedBookId) {\n if (selectedBookId === Canon.bookNumberToId(scrRef.bookNum)) {\n setHighlightedChapter(scrRef.chapterNum);\n } else {\n setHighlightedChapter(1);\n }\n } else {\n setHighlightedChapter(0);\n }\n }, [highlightedBookId, scrRef.bookNum, scrRef.chapterNum, selectedBookId]);\n\n // The purpose of these useLayoutEffects and timeout is to delay the scroll just\n // enough so that the refs are defined and available when they are used after the timeout\n useLayoutEffect(() => {\n setIsContentOpenDelayed(isContentOpen);\n }, [isContentOpen]);\n\n useLayoutEffect(() => {\n const scrollTimeout = setTimeout(() => {\n if (isContentOpenDelayed && contentRef.current && menuItemRef.current) {\n const menuItemOffsetTop = menuItemRef.current.offsetTop;\n const scrollPosition = menuItemOffsetTop - SCROLL_OFFSET;\n contentRef.current.scrollTo({ top: scrollPosition, behavior: 'instant' });\n }\n }, 10);\n return () => {\n clearTimeout(scrollTimeout);\n };\n }, [isContentOpenDelayed]);\n\n return (\n
    \n \n \n {\n setSelectedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedChapter(scrRef.chapterNum > 0 ? scrRef.chapterNum : 0);\n setIsContentOpen(true);\n inputRef.current.focus();\n }}\n onFocus={() => {\n // Radix thinks we want to close because the input is being focused. Prevent that\n shouldPreventAutoClosing.current = true;\n }}\n handleSubmit={handleInputSubmit}\n placeholder={`${Canon.bookNumberToEnglishName(scrRef.bookNum)} ${scrRef.chapterNum}:${scrRef.verseNum}`}\n />\n \n \n {/* work around until DropdownMenuContent supports a dir prop */}\n
    \n console.log('sorting')}\n handleLocationHistory={() => console.log('location history')}\n handleBookmarks={() => console.log('bookmarks')}\n />\n {BOOK_TYPE_ARRAY.map(\n (bookType, bookTypeIndex) =>\n fetchFilteredBooks(bookType).length > 0 && (\n
    \n \n {BOOK_TYPE_LABELS[bookType]}\n \n\n {fetchFilteredBooks(bookType).map((bookId) => (\n
    \n updateReference(bookId, false)}\n isSelected={selectedBookId === bookId}\n handleHighlightBook={() => setHighlightedBookId(bookId)}\n handleKeyDown={handleKeyDownMenuItem}\n bookType={bookType}\n ref={(element: HTMLDivElement) => {\n if (selectedBookId === bookId) menuItemRef.current = element;\n }}\n >\n {\n setHighlightedChapter(chapterNumber);\n }}\n />\n \n
    \n ))}\n {BOOK_TYPE_ARRAY.length - 1 !== bookTypeIndex ? (\n \n ) : undefined}\n
    \n ),\n )}\n
    \n \n
    \n
    \n );\n}\n\nexport default BookChapterControl;\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const buttonVariants = cva(\n 'pr-twp tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50',\n {\n variants: {\n variant: {\n default: 'tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/90',\n destructive: 'tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/90',\n outline:\n 'tw-border tw-border-input tw-bg-background hover:tw-bg-accent hover:tw-text-accent-foreground',\n secondary: 'tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80',\n ghost: 'hover:tw-bg-accent hover:tw-text-accent-foreground',\n link: 'tw-text-primary tw-underline-offset-4 hover:tw-underline',\n },\n size: {\n default: 'tw-h-10 tw-px-4 tw-py-2',\n sm: 'tw-h-9 tw-rounded-md tw-px-3',\n lg: 'tw-h-11 tw-rounded-md tw-px-8',\n icon: 'tw-h-10 tw-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n return (\n \n );\n },\n);\nButton.displayName = 'Button';\n","import React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst labelVariants = cva(\n 'tw-text-sm tw-font-medium tw-leading-none peer-disabled:tw-cursor-not-allowed peer-disabled:tw-opacity-70',\n);\n\nexport const Label = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, ...props }, ref) => (\n \n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n","import React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n return (\n \n \n \n \n \n );\n});\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n","import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport React from 'react';\n\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n );\n});\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverContent, PopoverTrigger };\n","import React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { readDirection } from '@/utils/dir-helper.util';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => {\n const dir = readDirection();\n return (\n \n \n \n {children}\n \n \n Close\n \n \n \n );\n});\nDialogContent.displayName = DialogPrimitive.Content.displayName;\nfunction DialogHeader({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nDialogHeader.displayName = 'DialogHeader';\n\nfunction DialogFooter({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n};\n","import React from 'react';\nimport { type DialogProps } from '@radix-ui/react-dialog';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Search } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Dialog, DialogContent } from '@/components/shadcn-ui/dialog';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Command = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nCommand.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {}\n\nfunction CommandDialog({ children, ...props }: CommandDialogProps) {\n return (\n \n \n \n {children}\n \n \n \n );\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n
    \n \n \n
    \n );\n});\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst CommandList = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>((props, ref) => (\n \n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst CommandItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nfunction CommandShortcut({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n};\n","import { ReactNode, useState } from 'react';\nimport { Check, ChevronsUpDown } from 'lucide-react';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover';\nimport {\n Command,\n CommandEmpty,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/components/shadcn-ui/command';\nimport { PopoverProps } from '@radix-ui/react-popover';\n\nexport type ComboBoxLabelOption = { label: string };\nexport type ComboBoxOption = string | number | ComboBoxLabelOption;\n\nexport type ComboBoxProps = {\n /** Optional unique identifier */\n id?: string;\n /** Text label title for combobox */\n /** List of available options for the dropdown menu */\n options?: readonly T[];\n /** @deprecated 3 December 2024. Renamed to {@link buttonClassName} */\n className?: string;\n /** Additional css classes to help with unique styling of the combo box button */\n buttonClassName?: string;\n /** Additional css classes to help with unique styling of the combo box popover */\n popoverContentClassName?: string;\n /**\n * The selected value that the combo box currently holds. Must be shallow equal to one of the\n * options entries.\n */\n value?: T;\n /** Triggers when content of textfield is changed */\n onChange?: (newValue: T) => void;\n /** Used to determine the string value for a given option. */\n getOptionLabel?: (option: ComboBoxOption) => string;\n /** Icon to be displayed on the trigger */\n icon?: ReactNode;\n /** Text displayed on button if `value` is undefined */\n buttonPlaceholder?: string;\n /** Placeholder text for text field */\n textPlaceholder?: string;\n /** Text to display when no options match input */\n commandEmptyMessage?: string;\n /** Variant of button */\n buttonVariant?: ButtonProps['variant'];\n /** Control how the popover menu should be aligned. Defaults to start */\n alignDropDown?: 'start' | 'center' | 'end';\n /** Optional boolean to set if trigger should be disabled */\n isDisabled?: boolean;\n} & PopoverProps;\n\nfunction getOptionLabelDefault(option: ComboBoxOption): string {\n if (typeof option === 'string') {\n return option;\n }\n if (typeof option === 'number') {\n return option.toString();\n }\n return option.label;\n}\n\n/**\n * Autocomplete input and command palette with a list of suggestions.\n *\n * Thanks to Shadcn for heavy inspiration and documentation\n * https://ui.shadcn.com/docs/components/combobox\n */\nfunction ComboBox({\n id,\n options = [],\n className,\n buttonClassName,\n popoverContentClassName,\n value,\n onChange = () => {},\n getOptionLabel = getOptionLabelDefault,\n icon = undefined,\n buttonPlaceholder = '',\n textPlaceholder = '',\n commandEmptyMessage = 'No option found',\n buttonVariant = 'outline',\n alignDropDown = 'start',\n isDisabled = false,\n ...props\n}: ComboBoxProps) {\n const [open, setOpen] = useState(false);\n\n return (\n \n \n \n
    \n {icon &&
    {icon}
    }\n \n {value ? getOptionLabel(value) : buttonPlaceholder}\n \n
    \n\n \n \n
    \n \n \n \n {commandEmptyMessage}\n \n {options.map((option) => (\n {\n onChange(option);\n setOpen(false);\n }}\n >\n \n {getOptionLabel(option)}\n \n ))}\n \n \n \n
    \n );\n}\n\nexport default ComboBox;\n","import ComboBox from '@/components/basics/combo-box.component';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { useMemo } from 'react';\n\nexport type ChapterRangeSelectorProps = {\n startChapter: number;\n endChapter: number;\n handleSelectStartChapter: (chapter: number) => void;\n handleSelectEndChapter: (chapter: number) => void;\n isDisabled?: boolean;\n chapterCount: number;\n};\n\nexport default function ChapterRangeSelector({\n startChapter,\n endChapter,\n handleSelectStartChapter,\n handleSelectEndChapter,\n isDisabled = false,\n chapterCount,\n}: ChapterRangeSelectorProps) {\n const chapterOptions = useMemo(\n () => Array.from({ length: chapterCount }, (_, index) => index + 1),\n [chapterCount],\n );\n\n const onChangeStartChapter = (value: number) => {\n handleSelectStartChapter(value);\n if (value > endChapter) {\n handleSelectEndChapter(value);\n }\n };\n\n const onChangeEndChapter = (value: number) => {\n handleSelectEndChapter(value);\n if (value < startChapter) {\n handleSelectStartChapter(value);\n }\n };\n\n return (\n <>\n \n option.toString()}\n value={startChapter}\n />\n\n \n option.toString()}\n value={endChapter}\n />\n \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { RadioGroup, RadioGroupItem } from '@/components/shadcn-ui/radio-group';\nimport { Canon } from '@sillsdev/scripture';\nimport { LocalizedStringValue } from 'platform-bible-utils';\nimport { useState } from 'react';\nimport ChapterRangeSelector, {\n ChapterRangeSelectorProps,\n} from '../basics/chapter-range-selector.component';\n\nexport enum BookSelectionMode {\n CURRENT_BOOK = 'current book',\n CHOOSE_BOOKS = 'choose books',\n}\n\n/**\n * Object containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const BOOK_SELECTOR_STRING_KEYS = Object.freeze([\n '%webView_bookSelector_currentBook%',\n '%webView_bookSelector_choose%',\n '%webView_bookSelector_chooseBooks%',\n] as const);\n\nexport type BookSelectorLocalizedStrings = {\n [localizedBookSelectorKey in (typeof BOOK_SELECTOR_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: BookSelectorLocalizedStrings,\n key: keyof BookSelectorLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\ntype BookSelectorProps = ChapterRangeSelectorProps & {\n handleBookSelectionModeChange: (newMode: BookSelectionMode) => void;\n currentBookName: string;\n onSelectBooks: () => void;\n selectedBookIds: string[];\n localizedStrings: BookSelectorLocalizedStrings;\n};\n\nexport default function BookSelector({\n handleBookSelectionModeChange,\n currentBookName,\n onSelectBooks,\n selectedBookIds,\n chapterCount,\n endChapter,\n handleSelectEndChapter,\n startChapter,\n handleSelectStartChapter,\n localizedStrings,\n}: BookSelectorProps) {\n const currentBookText = localizeString(localizedStrings, '%webView_bookSelector_currentBook%');\n const chooseText = localizeString(localizedStrings, '%webView_bookSelector_choose%');\n const chooseBooksText = localizeString(localizedStrings, '%webView_bookSelector_chooseBooks%');\n\n const [bookSelectionMode, setBookSelectionMode] = useState(\n BookSelectionMode.CURRENT_BOOK,\n );\n\n const onSelectionModeChange = (newMode: BookSelectionMode) => {\n setBookSelectionMode(newMode);\n handleBookSelectionModeChange(newMode);\n };\n\n return (\n onSelectionModeChange(value as BookSelectionMode)}\n >\n
    \n
    \n
    \n \n \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n \n \n
    \n \n onSelectBooks()}\n >\n {chooseText}\n \n
    \n
    \n \n );\n}\n","import { DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';\nimport { FilterIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\n\ninterface DataTableViewOptionsProps {\n table: Table;\n}\n\nfunction DataTableViewOptions({ table }: DataTableViewOptionsProps) {\n return (\n \n \n \n \n \n Toggle columns\n \n {table\n .getAllColumns()\n .filter((column) => column.getCanHide())\n .map((column) => {\n return (\n column.toggleVisibility(!!value)}\n >\n {column.id}\n \n );\n })}\n \n \n );\n}\n\nexport default DataTableViewOptions;\n","import React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n span]:tw-line-clamp-1',\n className,\n )}\n {...props}\n dir={dir}\n >\n {children}\n \n \n \n \n );\n});\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = 'popper', ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n \n
    {children}
    \n \n \n \n
    \n );\n});\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n\n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { ChevronLeftIcon, ChevronRightIcon, ArrowLeftIcon, ArrowRightIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\n\ninterface DataTablePaginationProps {\n table: Table;\n}\n\nfunction DataTablePagination({ table }: DataTablePaginationProps) {\n return (\n
    \n
    \n
    \n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected\n
    \n
    \n

    Rows per page

    \n {\n table.setPageSize(Number(value));\n }}\n >\n \n \n \n \n {[10, 20, 30, 40, 50].map((pageSize) => (\n \n {pageSize}\n \n ))}\n \n \n
    \n
    \n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n
    \n
    \n table.setPageIndex(0)}\n disabled={!table.getCanPreviousPage()}\n >\n Go to first page\n \n \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Go to previous page\n \n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Go to next page\n \n \n table.setPageIndex(table.getPageCount() - 1)}\n disabled={!table.getCanNextPage()}\n >\n Go to last page\n \n \n
    \n
    \n
    \n );\n}\n\nexport default DataTablePagination;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Table = React.forwardRef<\n HTMLTableElement,\n React.HTMLAttributes & { stickyHeader?: boolean }\n>(({ className, stickyHeader, ...props }, ref) => (\n
    \n \n
    \n));\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes & { stickyHeader?: boolean }\n>(({ className, stickyHeader, ...props }, ref) => (\n \n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n tr]:last:tw-border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","import { useState } from 'react';\n\nimport {\n ColumnFiltersState,\n flexRender,\n getCoreRowModel,\n getFilteredRowModel,\n getPaginationRowModel,\n getSortedRowModel,\n SortingState,\n ColumnDef as TSColumnDef,\n Row as TSRow,\n RowSelectionState as TSRowSelectionState,\n SortDirection as TSSortDirection,\n Table as TSTable,\n useReactTable,\n VisibilityState,\n} from '@tanstack/react-table';\n\nimport DataTableViewOptions from '@/components/advanced/data-table/data-table-column-toggle.component';\nimport DataTablePagination from '@/components/advanced/data-table/data-table-pagination.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\n\nexport type ColumnDef = TSColumnDef;\nexport type RowContents = TSRow;\nexport type TableContents = TSTable;\nexport type SortDirection = TSSortDirection;\nexport type RowSelectionState = TSRowSelectionState;\n\ninterface DataTableProps {\n columns: ColumnDef[];\n data: TData[];\n enablePagination?: boolean;\n showPaginationControls?: boolean;\n showColumnVisibilityControls?: boolean;\n stickyHeader?: boolean;\n onRowClickHandler?: (row: RowContents, table: TableContents) => void;\n}\n\n/**\n * Feature-rich table component that infuses our basic shadcn-based Table component with features\n * from TanStack's React Table library\n */\nfunction DataTable({\n columns,\n data,\n enablePagination = false,\n showPaginationControls = false,\n showColumnVisibilityControls = false,\n stickyHeader = false,\n onRowClickHandler = () => {},\n}: DataTableProps) {\n const [sorting, setSorting] = useState([]);\n const [columnFilters, setColumnFilters] = useState([]);\n const [columnVisibility, setColumnVisibility] = useState({});\n const [rowSelection, setRowSelection] = useState({});\n\n const table = useReactTable({\n data,\n columns,\n getCoreRowModel: getCoreRowModel(),\n ...(enablePagination && { getPaginationRowModel: getPaginationRowModel() }),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n onColumnFiltersChange: setColumnFilters,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnVisibilityChange: setColumnVisibility,\n onRowSelectionChange: setRowSelection,\n state: {\n sorting,\n columnFilters,\n columnVisibility,\n rowSelection,\n },\n });\n\n return (\n
    \n {showColumnVisibilityControls && }\n \n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers.map((header) => {\n return (\n \n {header.isPlaceholder\n ? undefined\n : flexRender(header.column.columnDef.header, header.getContext())}\n \n );\n })}\n \n ))}\n \n \n {table.getRowModel().rows?.length ? (\n table.getRowModel().rows.map((row) => (\n onRowClickHandler(row, table)}\n key={row.id}\n data-state={row.getIsSelected() && 'selected'}\n >\n {row.getVisibleCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n ) : (\n \n \n No results.\n \n \n )}\n \n
    \n {enablePagination && (\n
    \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Previous\n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Next\n \n
    \n )}\n {enablePagination && showPaginationControls && }\n
    \n );\n}\n\nexport default DataTable;\n","import {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { Canon } from '@sillsdev/scripture';\nimport { deepEqual, LanguageStrings, ScriptureReference } from 'platform-bible-utils';\nimport { useMemo } from 'react';\nimport { InventoryItemOccurrence } from './inventory-utils';\n\n/** Props for the OccurrencesTable component */\ntype OccurrencesTableProps = {\n /** Data that contains scriptures references and snippets of scripture */\n occurrenceData: InventoryItemOccurrence[];\n /** Callback function that is executed when the scripture reference is changed */\n setScriptureReference: (scriptureReference: ScriptureReference) => void;\n /**\n * Object with all localized strings that the OccurrencesTable needs to work well across multiple\n * languages\n */\n localizedStrings: LanguageStrings;\n};\n\n/**\n * Table that shows occurrences of specified inventory item(s). The first column shows the related\n * scripture reference. The second column shows the snippet of scripture that contains the specified\n * inventory item\n */\nfunction OccurrencesTable({\n occurrenceData,\n setScriptureReference,\n localizedStrings,\n}: OccurrencesTableProps) {\n const referenceHeaderText =\n localizedStrings['%webView_inventory_occurrences_table_header_reference%'];\n const occurrenceHeaderText =\n localizedStrings['%webView_inventory_occurrences_table_header_occurrence%'];\n\n const occurrences: InventoryItemOccurrence[] = useMemo(() => {\n const uniqueOccurrences: InventoryItemOccurrence[] = [];\n\n occurrenceData.forEach((occurrence) => {\n if (!uniqueOccurrences.some((uniqueOccurrence) => deepEqual(uniqueOccurrence, occurrence))) {\n uniqueOccurrences.push(occurrence);\n }\n });\n\n return uniqueOccurrences;\n }, [occurrenceData]);\n\n return (\n \n \n \n {referenceHeaderText}\n {occurrenceHeaderText}\n \n \n \n {occurrences.length > 0 &&\n occurrences.map((occurrence) => (\n {\n setScriptureReference(occurrence.reference);\n }}\n >\n {`${Canon.bookNumberToEnglishName(occurrence.reference.bookNum)} ${occurrence.reference.chapterNum}:${occurrence.reference.verseNum}`}\n {occurrence.text}\n \n ))}\n \n
    \n );\n}\n\nexport default OccurrencesTable;\n","import React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Checkbox = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport default Checkbox;\n","import { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference } from 'platform-bible-utils';\n\n/* #region Types */\n\n/**\n * Status of items that appear in inventories. 'approved' and 'unapproved' items are defined in the\n * project's `Settings.xml`. All other items are defined as 'unknown'\n */\nexport type Status = 'approved' | 'unapproved' | 'unknown';\n\n/** Occurrence of item in inventory. Primarily used by table that shows occurrences */\nexport type InventoryItemOccurrence = {\n /** Reference to scripture where the item appears */\n reference: ScriptureReference;\n /** Snippet of scripture that contains the occurrence */\n text: string;\n};\n\n/** Data structure that contains all information on an item that is shown in an inventory */\nexport type InventoryTableData = {\n /**\n * The item (e.g. a character in the characters inventory, a marker in the marker inventory) In\n * most cases the array will only have one element. In case of additional items (e.g. the\n * preceding marker in the markers check), the primary item should be stored in the first index.\n * To show additional items in the inventory, make sure to configure the `additionalItemsLabels`\n * prop for the Inventory component\n */\n items: string[];\n /** The number of times this item occurs in the selected scope */\n count: number;\n /** The status of this item (see documentation for `Status` type for more information) */\n status: Status;\n /** Occurrences of this item in the scripture text for the selected scope */\n occurrences: InventoryItemOccurrence[];\n};\n\n/* #endregion */\n\n/* #region Functions */\n\n/**\n * Splits USFM string into shorter line-like segments\n *\n * @param text A single (likely very large) USFM string\n * @returns An array containing the input text, split into shorter segments\n */\nexport const getLinesFromUSFM = (text: string) => {\n // Splits on (CR)LF, CR, \\v, \\c and \\id\n return text.split(/(?:\\r?\\n|\\r)|(?=(?:\\\\(?:v|c|id)))/g);\n};\n\n/**\n * Extracts chapter or verse number from USFM strings that start with a \\c or \\v marker\n *\n * @param text USFM string that is expected to start with \\c or \\v marker\n * @returns Chapter or verse number if one is found. Else returns 0.\n */\nexport const getNumberFromUSFM = (text: string): number | undefined => {\n // Captures all digits that follow \\v or \\c markers followed by whitespace located at the start of a string\n const regex = /^\\\\[vc]\\s+(\\d+)/;\n const match = text.match(regex);\n\n if (match) {\n return +match[1];\n }\n return undefined;\n};\n\n/**\n * Gets book ID from USFM string that starts with the \\id marker, and returns book number for it\n *\n * @param text USFM string that is expected to start with \\id marker\n * @returns Book number corresponding to the \\id marker in the input text. Returns 0 if no marker is\n * found or the marker is not valid\n */\nexport const getBookNumFromId = (text: string): number => {\n // Captures all digits that follow an \\id marker followed by whitespace located at the start of a string\n const match = text.match(/^\\\\id\\s+([A-Za-z]+)/);\n if (match) {\n return Canon.bookIdToNumber(match[1]);\n }\n return 0;\n};\n\n/**\n * Gets the status for an item, typically used in the Inventory component\n *\n * @param item The item for which the status is being requested\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @returns The status for the specified item\n */\nexport const getStatusForItem = (\n item: string,\n approvedItems: string[],\n unapprovedItems: string[],\n): Status => {\n if (unapprovedItems.includes(item)) return 'unapproved';\n if (approvedItems.includes(item)) return 'approved';\n return 'unknown';\n};\n\n/* #endregion */\n","import React from 'react';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst toggleVariants = cva(\n 'pr-twp tw-inline-flex tw-items-center tw-justify-center tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors hover:tw-bg-muted hover:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=on]:tw-bg-accent data-[state=on]:tw-text-accent-foreground',\n {\n variants: {\n variant: {\n default: 'tw-bg-transparent',\n outline:\n 'tw-border tw-border-input tw-bg-transparent hover:tw-bg-accent hover:tw-text-accent-foreground',\n },\n size: {\n default: 'tw-h-10 tw-px-3',\n sm: 'tw-h-9 tw-px-2.5',\n lg: 'tw-h-11 tw-px-5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nconst Toggle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, variant, size, ...props }, ref) => (\n \n));\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\nexport { Toggle, toggleVariants };\n","import React from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { toggleVariants } from '@/components/shadcn-ui/toggle';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst ToggleGroupContext = React.createContext>({\n size: 'default',\n variant: 'default',\n});\n\nconst ToggleGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef &\n VariantProps\n>(({ className, variant, size, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n {children}\n \n \n );\n});\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;\n\nconst ToggleGroupItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef &\n VariantProps\n>(({ className, children, variant, size, ...props }, ref) => {\n const context = React.useContext(ToggleGroupContext);\n\n return (\n \n {children}\n \n );\n});\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;\n\nexport { ToggleGroup, ToggleGroupItem };\n","import { ColumnDef, SortDirection } from '@/components/advanced/data-table/data-table.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport { ToggleGroup, ToggleGroupItem } from '@/components/shadcn-ui/toggle-group';\nimport {\n ArrowDownIcon,\n ArrowUpDownIcon,\n ArrowUpIcon,\n CircleCheckIcon,\n CircleHelpIcon,\n CircleXIcon,\n} from 'lucide-react';\nimport { ReactNode } from 'react';\nimport { InventoryTableData, Status } from './inventory-utils';\n\n/**\n * Gets an icon that indicates the current sorting direction based on the provided input\n *\n * @param sortDirection Sorting direction. Can be ascending ('asc'), descending ('desc') or false (\n * i.e. not sorted)\n * @returns The appropriate sorting icon for the provided sorting direction\n */\nconst getSortingIcon = (sortDirection: false | SortDirection): ReactNode => {\n if (sortDirection === 'asc') {\n return ;\n }\n if (sortDirection === 'desc') {\n return ;\n }\n return ;\n};\n\n/**\n * Function that creates the item column for inventories\n *\n * @param itemLabel Localized label for the item column (e.g. 'Character', 'Repeated Word', etc.)\n * @returns Column that shows the inventory items. Should be used with the DataTable component\n */\nexport const inventoryItemColumn = (itemLabel: string): ColumnDef => {\n return {\n accessorKey: 'item',\n accessorFn: (row: InventoryTableData) => row.items[0],\n header: ({ column }) => (\n \n ),\n };\n};\n\n/**\n * Function that creates the additional item columns for inventories\n *\n * @param additionalItemLabel Localized label for the additional item column (e.g. 'Preceding\n * Marker')\n * @param additionalItemIndex Index that locates the desired item in the items array of the\n * inventory\n * @returns Column that shows additional inventory items. Should be used with the DataTable\n * component\n */\nexport const inventoryAdditionalItemColumn = (\n additionalItemLabel: string,\n additionalItemIndex: number,\n): ColumnDef => {\n return {\n accessorKey: `item${additionalItemIndex}`,\n accessorFn: (row: InventoryTableData) => row.items[additionalItemIndex],\n header: ({ column }) => (\n \n ),\n };\n};\n\n/**\n * Function that creates the count column for inventories. Should be used with the DataTable\n * component.\n *\n * @param itemLabel Localized label for the count column\n * @returns Column that shows the number of occurrences of the related inventory items\n */\nexport const inventoryCountColumn = (countLabel: string): ColumnDef => {\n return {\n accessorKey: 'count',\n header: ({ column }) => (\n
    \n \n
    \n ),\n cell: ({ row }) =>
    {row.getValue('count')}
    ,\n };\n};\n\n/**\n * Function that updates project settings when status for item(s) changes\n *\n * @param changedItems Array of items for which the status is being updated\n * @param newStatus The status that the items are being given\n * @param approvedItems Array of currently approved items\n * @param onApprovedItemsChange Callback function that stores the updated list of approved items\n * @param unapprovedItems Array of currently unapproved items\n * @param onUnapprovedItemsChange Callback function that stores the updated list of unapproved items\n */\nconst statusChangeHandler = (\n changedItems: string[],\n newStatus: Status,\n approvedItems: string[],\n onApprovedItemsChange: (items: string[]) => void,\n unapprovedItems: string[],\n onUnapprovedItemsChange: (items: string[]) => void,\n) => {\n let newApprovedItems: string[] = [...approvedItems];\n changedItems.forEach((item) => {\n if (newStatus === 'approved') {\n if (!newApprovedItems.includes(item)) {\n newApprovedItems.push(item);\n }\n } else {\n newApprovedItems = newApprovedItems.filter((validItem) => validItem !== item);\n }\n });\n onApprovedItemsChange(newApprovedItems);\n\n let newUnapprovedItems: string[] = [...unapprovedItems];\n changedItems.forEach((item) => {\n if (newStatus === 'unapproved') {\n if (!newUnapprovedItems.includes(item)) {\n newUnapprovedItems.push(item);\n }\n } else {\n newUnapprovedItems = newUnapprovedItems.filter((unapprovedItem) => unapprovedItem !== item);\n }\n });\n onUnapprovedItemsChange(newUnapprovedItems);\n};\n\n/**\n * Function that creates the status column for inventories. Should be used with the DataTable\n * component.\n *\n * @param statusLabel Localized label for the status column\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param onApprovedItemsChange Callback function that stores the updated list of approved items\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @param onUnapprovedItemsChange Callback function that stores the updated list of unapproved items\n * @returns Column that shows the status buttons for the related inventory item. The button for the\n * current status of the item is selected\n */\nexport const inventoryStatusColumn = (\n statusLabel: string,\n approvedItems: string[],\n onApprovedItemsChange: (items: string[]) => void,\n unapprovedItems: string[],\n onUnapprovedItemsChange: (items: string[]) => void,\n): ColumnDef => {\n return {\n accessorKey: 'status',\n header: ({ column }) => {\n return (\n
    \n \n
    \n );\n },\n cell: ({ row }) => {\n const status: Status = row.getValue('status');\n const item: string = row.getValue('item');\n return (\n \n \n statusChangeHandler(\n [item],\n 'approved',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"approved\"\n >\n \n \n \n statusChangeHandler(\n [item],\n 'unapproved',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"unapproved\"\n >\n \n \n \n statusChangeHandler(\n [item],\n 'unknown',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"unknown\"\n >\n \n \n \n );\n },\n };\n};\n","import DataTable, {\n ColumnDef,\n RowContents,\n RowSelectionState,\n TableContents,\n} from '@/components/advanced/data-table/data-table.component';\nimport OccurrencesTable from '@/components/advanced/inventory/occurrences-table.component';\nimport Checkbox from '@/components/shadcn-ui/checkbox';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Label } from '@/components/shadcn-ui/label';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport {\n deepEqual,\n LocalizedStringValue,\n ScriptureReference,\n substring,\n} from 'platform-bible-utils';\nimport { useEffect, useMemo, useState } from 'react';\nimport {\n getBookNumFromId,\n getLinesFromUSFM,\n getNumberFromUSFM,\n getStatusForItem,\n InventoryItemOccurrence,\n InventoryTableData,\n Status,\n} from './inventory-utils';\nimport { inventoryAdditionalItemColumn } from './inventory-columns';\n\n/**\n * Object containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const INVENTORY_STRING_KEYS = Object.freeze([\n '%webView_inventory_all%',\n '%webView_inventory_approved%',\n '%webView_inventory_unapproved%',\n '%webView_inventory_unknown%',\n '%webView_inventory_scope_currentBook%',\n '%webView_inventory_scope_chapter%',\n '%webView_inventory_scope_verse%',\n '%webView_inventory_filter_text%',\n '%webView_inventory_show_additional_items%',\n '%webView_inventory_occurrences_table_header_reference%',\n '%webView_inventory_occurrences_table_header_occurrence%',\n] as const);\n\nexport type InventoryLocalizedStrings = {\n [localizedInventoryKey in (typeof INVENTORY_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/** Scope of scripture that the inventory can operate on */\nexport type Scope = 'book' | 'chapter' | 'verse';\n\n/** Status values that the status filter can select from */\ntype StatusFilter = Status | 'all';\n\n/** Text labels for the inventory columns and the control components of additional inventory items */\ntype AdditionalItemsLabels = {\n checkboxText?: string;\n tableHeaders?: string[];\n};\n\n/**\n * Filters data that is shown in the DataTable section of the Inventory\n *\n * @param itemData All inventory items and their related information\n * @param statusFilter Allows filtering by status (i.e. show all items, or only items that are\n * 'approved', 'unapproved' or 'unknown')\n * @param textFilter Allows filtering by text. All items that include the filter text will be\n * selected.\n * @returns Array of items and their related information that are matched by the specified filters\n */\nconst filterItemData = (\n itemData: InventoryTableData[],\n statusFilter: StatusFilter,\n textFilter: string,\n): InventoryTableData[] => {\n let filteredItemData: InventoryTableData[] = itemData;\n\n if (statusFilter !== 'all') {\n filteredItemData = filteredItemData.filter(\n (item) =>\n (statusFilter === 'approved' && item.status === 'approved') ||\n (statusFilter === 'unapproved' && item.status === 'unapproved') ||\n (statusFilter === 'unknown' && item.status === 'unknown'),\n );\n }\n\n if (textFilter !== '')\n filteredItemData = filteredItemData.filter((item) => item.items[0].includes(textFilter));\n\n return filteredItemData;\n};\n\n/**\n * Turns array of strings into array of inventory items, along with their count and status\n *\n * @param text The source scripture text that is searched for inventory items\n * @param scriptureRef The scripture reference that the application is currently set to\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @param itemRegex Regular expression that describes what items this Inventory should extract from\n * the provided scripture text\n * @returns Array of inventory items, along with their count and status\n */\nconst createTableData = (\n text: string | undefined,\n scriptureRef: ScriptureReference,\n approvedItems: string[],\n unapprovedItems: string[],\n itemRegex: RegExp,\n): InventoryTableData[] => {\n if (!text) return [];\n\n const tableData: InventoryTableData[] = [];\n\n let currentBook: number | undefined = scriptureRef.bookNum;\n let currentChapter: number | undefined = scriptureRef.chapterNum;\n let currentVerse: number | undefined = scriptureRef.verseNum;\n\n const lines = getLinesFromUSFM(text);\n\n lines.forEach((line: string) => {\n if (line.startsWith('\\\\id')) {\n currentBook = getBookNumFromId(line);\n currentChapter = 0;\n currentVerse = 0;\n }\n if (line.startsWith('\\\\c')) {\n currentChapter = getNumberFromUSFM(line);\n currentVerse = 0;\n }\n if (line.startsWith('\\\\v')) {\n currentVerse = getNumberFromUSFM(line);\n if (currentChapter === 0) {\n currentChapter = scriptureRef.chapterNum;\n }\n }\n\n let match: RegExpExecArray | undefined = itemRegex.exec(line) ?? undefined;\n while (match) {\n const items: string[] = [];\n match.forEach((item) => items.push(item));\n const itemIndex = match.index;\n const existingItem = tableData.find((tableEntry) => deepEqual(tableEntry.items, items));\n const newReference: InventoryItemOccurrence = {\n reference: {\n bookNum: currentBook !== undefined ? currentBook : -1,\n chapterNum: currentChapter !== undefined ? currentChapter : -1,\n verseNum: currentVerse !== undefined ? currentVerse : -1,\n },\n text: substring(line, Math.max(0, itemIndex - 25), Math.min(itemIndex + 25, line.length)),\n };\n if (existingItem) {\n existingItem.count += 1;\n existingItem.occurrences.push(newReference);\n } else {\n const newItem: InventoryTableData = {\n items,\n count: 1,\n status: getStatusForItem(items[0], approvedItems, unapprovedItems),\n occurrences: [newReference],\n };\n tableData.push(newItem);\n }\n\n match = itemRegex.exec(line) ?? undefined;\n }\n });\n\n return tableData;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: InventoryLocalizedStrings,\n key: keyof InventoryLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\n/** Props for the Inventory component */\ntype InventoryProps = {\n /** The scripture reference that the application is currently set to */\n scriptureReference: ScriptureReference;\n /** Callback function that is executed when the scripture reference is changed */\n setScriptureReference: (scriptureReference: ScriptureReference) => void;\n /**\n * Object with all localized strings that the Inventory needs to work well across multiple\n * languages. When using this component with Platform.Bible, you can import\n * `INVENTORY_STRING_KEYS` from this library, pass it in to the Platform's localization hook, and\n * pass the localized keys that are returned by the hook into this prop.\n */\n localizedStrings: InventoryLocalizedStrings;\n /**\n * The logic that finds the desired items in the source text. This can either be a Regular\n * expression that captures one or multiple items (preferred), or a custom function that builds\n * and return an InventoryDataTable[] manually. Note: In case the logic captures more than one\n * item (i.e. InventoryTableData.items has a length greater than 1), you must provide text labels\n * for the related columns and control elements to show by setting the `additionalItemsLabels`\n * prop\n */\n extractItems:\n | RegExp\n | ((\n text: string | undefined,\n scriptureRef: ScriptureReference,\n approvedItems: string[],\n unapprovedItems: string[],\n ) => InventoryTableData[]);\n /**\n * Text labels for control elements and additional column headers in case your Inventory has more\n * than one item to show (e.g. The 'Preceding Marker' in the Markers Inventory)\n */\n additionalItemsLabels?: AdditionalItemsLabels;\n /** Array of approved items, typically as defined in `Settings.xml` */\n approvedItems: string[];\n /** Array of unapproved items, typically as defined in `Settings.xml` */\n unapprovedItems: string[];\n /** The source scripture text that is searched for in inventory items */\n text: string | undefined;\n /** Scope of scripture that the inventory will operate on */\n scope: Scope;\n /** Callback function that is executed when the scope is changed from the Inventory */\n onScopeChange: (scope: Scope) => void;\n /**\n * Column definitions for the Inventory data table. The most commonly used column definitions are\n * pre-configured for your convenience and can be imported (e.g. inventoryItemColumn,\n * inventoryAdditionalItemColumn inventoryCountColumn, and inventoryStatusColumn). If you need any\n * other columns you can add these yourself\n */\n columns: ColumnDef[];\n};\n\n/** Inventory component that is used to view and control the status of provided project settings */\nexport default function Inventory({\n scriptureReference,\n setScriptureReference,\n localizedStrings,\n extractItems,\n additionalItemsLabels,\n approvedItems,\n unapprovedItems,\n text,\n scope,\n onScopeChange,\n columns,\n}: InventoryProps) {\n const allItemsText = localizeString(localizedStrings, '%webView_inventory_all%');\n const approvedItemsText = localizeString(localizedStrings, '%webView_inventory_approved%');\n const unapprovedItemsText = localizeString(localizedStrings, '%webView_inventory_unapproved%');\n const unknownItemsText = localizeString(localizedStrings, '%webView_inventory_unknown%');\n const scopeBookText = localizeString(localizedStrings, '%webView_inventory_scope_currentBook%');\n const scopeChapterText = localizeString(localizedStrings, '%webView_inventory_scope_chapter%');\n const scopeVerseText = localizeString(localizedStrings, '%webView_inventory_scope_verse%');\n const filterText = localizeString(localizedStrings, '%webView_inventory_filter_text%');\n const showAdditionalItemsText = localizeString(\n localizedStrings,\n '%webView_inventory_show_additional_items%',\n );\n\n const [showAdditionalItems, setShowAdditionalItems] = useState(false);\n const [statusFilter, setStatusFilter] = useState('all');\n const [textFilter, setTextFilter] = useState('');\n const [selectedItem, setSelectedItem] = useState([]);\n\n const tableData: InventoryTableData[] = useMemo(() => {\n if (!text) return [];\n if (extractItems instanceof RegExp)\n return createTableData(\n text,\n scriptureReference,\n approvedItems,\n unapprovedItems,\n extractItems,\n );\n return extractItems(text, scriptureReference, approvedItems, unapprovedItems);\n }, [text, extractItems, scriptureReference, approvedItems, unapprovedItems]);\n\n const reducedTableData: InventoryTableData[] = useMemo(() => {\n if (showAdditionalItems) return tableData;\n\n const newTableData: InventoryTableData[] = [];\n\n tableData.forEach((tableEntry) => {\n const firstItem = tableEntry.items[0];\n\n const existingEntry = newTableData.find(\n (newTableEntry) => newTableEntry.items[0] === firstItem,\n );\n\n if (existingEntry) {\n existingEntry.count += tableEntry.count;\n existingEntry.occurrences = existingEntry.occurrences.concat(tableEntry.occurrences);\n } else {\n newTableData.push({\n items: [firstItem],\n count: tableEntry.count,\n occurrences: tableEntry.occurrences,\n status: tableEntry.status,\n });\n }\n });\n\n return newTableData;\n }, [showAdditionalItems, tableData]);\n\n const filteredTableData: InventoryTableData[] = useMemo(() => {\n return filterItemData(reducedTableData, statusFilter, textFilter);\n }, [reducedTableData, statusFilter, textFilter]);\n\n const allColumns: ColumnDef[] = useMemo(() => {\n if (!showAdditionalItems) return columns;\n\n const numberOfAdditionalItems = additionalItemsLabels?.tableHeaders?.length;\n if (!numberOfAdditionalItems) return columns;\n\n const additionalColumns: ColumnDef[] = [];\n\n for (let index = 0; index < numberOfAdditionalItems; index++) {\n additionalColumns.push(\n inventoryAdditionalItemColumn(\n additionalItemsLabels?.tableHeaders?.[index] || 'Additional Item',\n index + 1,\n ),\n );\n }\n\n return [...additionalColumns, ...columns];\n }, [additionalItemsLabels?.tableHeaders, columns, showAdditionalItems]);\n\n useEffect(() => {\n setSelectedItem([]);\n }, [filteredTableData]);\n\n const rowClickHandler = (\n row: RowContents,\n table: TableContents,\n ) => {\n table.setRowSelection(() => {\n const newSelection: RowSelectionState = {};\n newSelection[row.index] = true;\n return newSelection;\n });\n\n setSelectedItem(row.original.items);\n };\n\n const handleScopeChange = (value: string) => {\n if (value === 'book' || value === 'chapter' || value === 'verse') {\n onScopeChange(value);\n } else {\n throw new Error(`Invalid scope value: ${value}`);\n }\n };\n\n const handleStatusFilterChange = (value: string) => {\n if (value === 'all' || value === 'approved' || value === 'unapproved' || value === 'unknown') {\n setStatusFilter(value);\n } else {\n throw new Error(`Invalid status filter value: ${value}`);\n }\n };\n\n const occurrenceData: InventoryItemOccurrence[] = useMemo(() => {\n if (reducedTableData.length === 0 || selectedItem.length === 0) return [];\n const occurrence = reducedTableData.filter((tableEntry: InventoryTableData) => {\n return deepEqual(\n showAdditionalItems ? tableEntry.items : [tableEntry.items[0]],\n selectedItem,\n );\n });\n if (occurrence.length > 1) throw new Error('Selected item is not unique');\n return occurrence[0].occurrences;\n }, [selectedItem, showAdditionalItems, reducedTableData]);\n\n return (\n
    \n
    \n handleStatusFilterChange(value)}\n defaultValue={statusFilter}\n >\n \n \n \n \n {allItemsText}\n {approvedItemsText}\n {unapprovedItemsText}\n {unknownItemsText}\n \n \n \n {\n setTextFilter(event.target.value);\n }}\n />\n {additionalItemsLabels && (\n
    \n {\n setSelectedItem([]);\n setShowAdditionalItems(checked);\n }}\n />\n \n
    \n )}\n
    \n
    \n \n
    \n {occurrenceData.length > 0 && (\n
    \n \n
    \n )}\n
    \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/components/shadcn-ui/command';\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Check, ChevronsUpDown, Star } from 'lucide-react';\nimport { ReactNode, useCallback, useMemo, useState } from 'react';\n\ntype MultiSelectComboBoxEntry = {\n value: string;\n label: string;\n starred?: boolean;\n};\n\ninterface MultiSelectComboBoxProps {\n entries: MultiSelectComboBoxEntry[];\n getEntriesCount?: (option: MultiSelectComboBoxEntry) => number;\n selected: string[];\n onChange: (values: string[]) => void;\n placeholder: string;\n commandEmptyMessage?: string;\n customSelectedText?: string;\n sortSelected?: boolean;\n icon?: ReactNode;\n}\n\nfunction MultiSelectComboBox({\n entries,\n getEntriesCount = undefined,\n selected,\n onChange,\n placeholder,\n commandEmptyMessage = 'No entries found',\n customSelectedText,\n sortSelected = false,\n icon = undefined,\n}: MultiSelectComboBoxProps) {\n const [open, setOpen] = useState(false);\n\n const handleSelect = useCallback(\n (value: string) => {\n onChange(\n selected.includes(value) ? selected.filter((item) => item !== value) : [...selected, value],\n );\n },\n [selected, onChange],\n );\n\n const getPlaceholderText = () => {\n if (selected.length === 1)\n return entries.find((option) => option.value === selected[0])?.label ?? placeholder;\n if (customSelectedText) return customSelectedText;\n return placeholder;\n };\n\n const sortedOptions = useMemo(() => {\n if (!sortSelected) return entries;\n\n const starredItems = entries\n .filter((opt) => opt.starred)\n .sort((a, b) => a.label.localeCompare(b.label));\n const nonStarredItems = entries\n .filter((opt) => !opt.starred)\n .sort((a, b) => {\n const aSelected = selected.includes(a.value);\n const bSelected = selected.includes(b.value);\n if (aSelected && !bSelected) return -1;\n if (!aSelected && bSelected) return 1;\n return a.label.localeCompare(b.label);\n });\n\n return [...starredItems, ...nonStarredItems];\n }, [entries, selected, sortSelected]);\n\n return (\n \n \n 0 && selected.length < entries.length && 'tw-border-primary',\n 'tw-group',\n )}\n >\n
    \n
    \n \n {icon}\n \n
    \n \n {getPlaceholderText()}\n
    \n
    \n \n \n \n \n \n \n \n {commandEmptyMessage}\n \n {sortedOptions.map((option) => {\n const count: number | undefined = getEntriesCount\n ? getEntriesCount(option)\n : undefined;\n return (\n \n
    \n \n
    \n
    \n {option.starred && }\n
    \n
    {option.label}
    \n {getEntriesCount && (\n
    {count}
    \n )}\n \n );\n })}\n
    \n
    \n
    \n
    \n \n );\n}\n\nexport default MultiSelectComboBox;\n","import { Button } from '@/components/shadcn-ui/button';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Search, X } from 'lucide-react';\nimport { useState } from 'react';\n\n/** Props for the SearchBar component. */\nexport type SearchBarProps = {\n /**\n * Callback fired to handle the search query when button pressed\n *\n * @param searchQuery\n */\n onSearch: (searchQuery: string) => void;\n\n /** Optional string that appears in the search bar without a search string */\n placeholder?: string;\n\n /** Optional boolean to set the input base to full width */\n isFullWidth?: boolean;\n\n /** Additional css classes to help with unique styling of the search bar */\n className?: string;\n};\n\nexport default function SearchBar({\n onSearch,\n placeholder,\n isFullWidth,\n className,\n}: SearchBarProps) {\n const [searchQuery, setSearchQuery] = useState('');\n\n const handleInputChange = (searchString: string) => {\n setSearchQuery(searchString);\n onSearch(searchString);\n };\n\n const dir: Direction = readDirection();\n\n return (\n
    \n \n handleInputChange(e.target.value)}\n />\n {searchQuery && (\n {\n handleInputChange('');\n }}\n >\n \n Clear\n \n )}\n
    \n );\n}\n","// adapted from: https://github.com/shadcn-ui/ui/discussions/752\n\n'use client';\n\nimport { TabsContentProps, TabsListProps, TabsTriggerProps } from '@/components/shadcn-ui/tabs';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport React from 'react';\n\nexport type VerticalTabsProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type LeftTabsTriggerProps = TabsTriggerProps & {\n value: string;\n ref?: React.Ref;\n};\n\nexport const VerticalTabs = React.forwardRef<\n React.ElementRef,\n VerticalTabsProps\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\n\nVerticalTabs.displayName = TabsPrimitive.List.displayName;\n\nexport const VerticalTabsList = React.forwardRef<\n React.ElementRef,\n TabsListProps\n>(({ className, ...props }, ref) => (\n \n));\nVerticalTabsList.displayName = TabsPrimitive.List.displayName;\n\nexport const VerticalTabsTrigger = React.forwardRef<\n React.ElementRef,\n LeftTabsTriggerProps\n>(({ className, ...props }, ref) => (\n \n));\n\nexport const VerticalTabsContent = React.forwardRef<\n React.ElementRef,\n TabsContentProps\n>(({ className, ...props }, ref) => (\n \n));\nVerticalTabsContent.displayName = TabsPrimitive.Content.displayName;\n","import SearchBar from '@/components/basics/search-bar.component';\nimport {\n VerticalTabs,\n VerticalTabsContent,\n VerticalTabsList,\n VerticalTabsTrigger,\n} from '@/components/basics/tabs-vertical';\nimport { ReactNode } from 'react';\n\nexport type TabKeyValueContent = {\n key: string;\n value: string;\n content: ReactNode;\n};\n\nexport type TabNavigationContentSearchProps = {\n /** List of values and keys for each tab this component should provide */\n tabList: TabKeyValueContent[];\n\n /** Handler to run when the value of the search bar changes */\n onSearch: (searchQuery: string) => void;\n\n /** Optional placeholder for the search bar */\n searchPlaceholder?: string;\n\n /** Optional title to include in the header */\n headerTitle?: string;\n\n /** Optional className to modify the search input */\n searchClassName?: string;\n};\n\nexport default function TabNavigationContentSearch({\n tabList,\n onSearch,\n searchPlaceholder,\n headerTitle,\n searchClassName,\n}: TabNavigationContentSearchProps) {\n return (\n
    \n
    \n {headerTitle ?

    {headerTitle}

    : ''}\n \n
    \n \n \n {tabList.map((tab) => (\n \n {tab.value}\n \n ))}\n \n {tabList.map((tab) => (\n \n {tab.content}\n \n ))}\n \n
    \n );\n}\n","import React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Separator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n \n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nfunction Skeleton({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\n\nexport { Skeleton };\n","import React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst TooltipProvider = TooltipPrimitive.Provider;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { VariantProps, cva } from 'class-variance-authority';\nimport { PanelLeft, PanelRight } from 'lucide-react';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Separator } from '@/components/shadcn-ui/separator';\nimport { Skeleton } from '@/components/shadcn-ui/skeleton';\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '@/components/shadcn-ui/tooltip';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\n/**\n * CUSTOM: Changes from the original code from Shadcn- Removed uses of useIsMobile, Sheet, and\n * SheetContent. Also removed the parts setting COOKIES.\n */\n\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_ICON = '3rem';\n// CUSTOM: Commented this out pending a discussion with UX about keyboard shortcuts\n// const SIDEBAR_KEYBOARD_SHORTCUT = 'b';\n\ntype Side = 'primary' | 'secondary';\n\ntype SidebarContextProps = {\n state: 'expanded' | 'collapsed';\n open: boolean;\n setOpen: (open: boolean) => void;\n toggleSidebar: () => void;\n // CUSTOM: this was moved from Sidebar to SidebarProvider to also be able to flip the icon based on the side\n side: Side;\n};\n\nconst SidebarContext = React.createContext(undefined);\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext);\n if (!context) {\n throw new Error('useSidebar must be used within a SidebarProvider.');\n }\n\n return context;\n}\n\nconst SidebarProvider = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n defaultOpen?: boolean;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n side?: Side;\n }\n>(\n (\n {\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n children,\n side = 'primary',\n ...props\n },\n ref,\n ) => {\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = React.useState(defaultOpen);\n const isOpen = openProp ?? _open;\n const setOpen = React.useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === 'function' ? value(isOpen) : value;\n if (setOpenProp) {\n setOpenProp(openState);\n } else {\n _setOpen(openState);\n }\n },\n [setOpenProp, isOpen],\n );\n\n // Helper to toggle the sidebar.\n const toggleSidebar = React.useCallback(() => {\n return setOpen((open) => !open);\n }, [setOpen]);\n\n // CUSTOM: Commented this out pending a discussion with UX about keyboard shortcuts\n // Adds a keyboard shortcut to toggle the sidebar.\n // React.useEffect(() => {\n // const handleKeyDown = (event: KeyboardEvent) => {\n // if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n // event.preventDefault();\n // toggleSidebar();\n // }\n // };\n\n // window.addEventListener('keydown', handleKeyDown);\n // return () => window.removeEventListener('keydown', handleKeyDown);\n // }, [toggleSidebar]);\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = isOpen ? 'expanded' : 'collapsed';\n\n const dir: Direction = readDirection();\n const oppositeSide: Side = side === 'primary' ? 'secondary' : 'primary';\n const directionAwareSide = dir === 'ltr' ? side : oppositeSide;\n\n const contextValue = React.useMemo(\n () => ({\n state,\n open: isOpen,\n setOpen,\n toggleSidebar,\n side: directionAwareSide,\n }),\n [state, isOpen, setOpen, toggleSidebar, directionAwareSide],\n );\n\n return (\n \n \n \n {children}\n
    \n \n \n );\n },\n);\nSidebarProvider.displayName = 'SidebarProvider';\n\nconst Sidebar = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n variant?: 'sidebar' | 'floating' | 'inset';\n collapsible?: 'offcanvas' | 'icon' | 'none';\n }\n>(({ variant = 'sidebar', collapsible = 'offcanvas', className, children, ...props }, ref) => {\n const context = useSidebar();\n\n if (collapsible === 'none') {\n return (\n \n {children}\n
    \n );\n }\n\n return (\n \n {/* This is what handles the sidebar gap on desktop */}\n \n \n \n {children}\n
    \n
    \n
    \n );\n});\nSidebar.displayName = 'Sidebar';\n\nconst SidebarTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, onClick, ...props }, ref) => {\n const context = useSidebar();\n\n return (\n {\n onClick?.(event);\n context.toggleSidebar();\n }}\n {...props}\n >\n {context.side === 'primary' ? : }\n Toggle Sidebar\n \n );\n});\nSidebarTrigger.displayName = 'SidebarTrigger';\n\nconst SidebarRail = React.forwardRef>(\n ({ className, ...props }, ref) => {\n const { toggleSidebar } = useSidebar();\n\n return (\n \n );\n },\n);\nSidebarRail.displayName = 'SidebarRail';\n\nconst SidebarInset = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarInset.displayName = 'SidebarInset';\n\nconst SidebarInput = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, ...props }, ref) => {\n return (\n \n );\n});\nSidebarInput.displayName = 'SidebarInput';\n\nconst SidebarHeader = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarHeader.displayName = 'SidebarHeader';\n\nconst SidebarFooter = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarFooter.displayName = 'SidebarFooter';\n\nconst SidebarSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, ...props }, ref) => {\n return (\n \n );\n});\nSidebarSeparator.displayName = 'SidebarSeparator';\n\nconst SidebarContent = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarContent.displayName = 'SidebarContent';\n\nconst SidebarGroup = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarGroup.displayName = 'SidebarGroup';\n\nconst SidebarGroupLabel = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'div';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n 'group-data-[collapsible=icon]:tw--mt-8 group-data-[collapsible=icon]:tw-opacity-0',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupLabel.displayName = 'SidebarGroupLabel';\n\nconst SidebarGroupAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:tw-absolute after:tw--inset-2 after:md:tw-hidden',\n 'group-data-[collapsible=icon]:tw-hidden',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupAction.displayName = 'SidebarGroupAction';\n\nconst SidebarGroupContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarGroupContent.displayName = 'SidebarGroupContent';\n\nconst SidebarMenu = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenu.displayName = 'SidebarMenu';\n\nconst SidebarMenuItem = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuItem.displayName = 'SidebarMenuItem';\n\nconst sidebarMenuButtonVariants = cva(\n // CUSTOM: Removed data-[active=true]:tw-bg-sidebar-accent\n 'tw-peer/menu-button tw-flex tw-w-full tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-p-2 tw-text-left tw-text-sm tw-outline-none tw-ring-sidebar-ring tw-transition-[width,height,padding] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 tw-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 data-[active=true]:tw-font-medium data-[active=true]:tw-text-sidebar-accent-foreground data-[state=open]:hover:tw-bg-sidebar-accent data-[state=open]:hover:tw-text-sidebar-accent-foreground group-data-[collapsible=icon]:tw-!size-8 group-data-[collapsible=icon]:tw-!p-2 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0',\n {\n variants: {\n variant: {\n default: 'hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground',\n outline:\n 'tw-bg-background tw-shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground hover:tw-shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n default: 'tw-h-8 tw-text-sm',\n sm: 'tw-h-7 tw-text-xs',\n lg: 'tw-h-12 tw-text-sm group-data-[collapsible=icon]:tw-!p-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nconst SidebarMenuButton = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & {\n asChild?: boolean;\n isActive?: boolean;\n tooltip?: string | React.ComponentProps;\n } & VariantProps\n>(\n (\n {\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'default',\n tooltip,\n className,\n ...props\n },\n ref,\n ) => {\n const Comp = asChild ? Slot : 'button';\n const { state } = useSidebar();\n\n const button = (\n \n );\n\n if (!tooltip) {\n return button;\n }\n\n if (typeof tooltip === 'string') {\n // eslint-disable-next-line no-param-reassign\n tooltip = {\n children: tooltip,\n };\n }\n\n return (\n \n {button}\n \n );\n },\n);\nSidebarMenuButton.displayName = 'SidebarMenuButton';\n\nconst SidebarMenuAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & {\n asChild?: boolean;\n showOnHover?: boolean;\n }\n>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:tw-absolute after:tw--inset-2 after:md:tw-hidden',\n 'tw-peer-data-[size=sm]/menu-button:top-1',\n 'tw-peer-data-[size=default]/menu-button:top-1.5',\n 'tw-peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:tw-hidden',\n showOnHover &&\n 'tw-group-focus-within/menu-item:opacity-100 tw-group-hover/menu-item:opacity-100 tw-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:tw-opacity-100 md:tw-opacity-0',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuAction.displayName = 'SidebarMenuAction';\n\nconst SidebarMenuBadge = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuBadge.displayName = 'SidebarMenuBadge';\n\nconst SidebarMenuSkeleton = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n showIcon?: boolean;\n }\n>(({ className, showIcon = false, ...props }, ref) => {\n // Random width between 50 to 90%.\n const width = React.useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`;\n }, []);\n\n return (\n \n {showIcon && (\n \n )}\n \n
    \n );\n});\nSidebarMenuSkeleton.displayName = 'SidebarMenuSkeleton';\n\nconst SidebarMenuSub = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuSub.displayName = 'SidebarMenuSub';\n\nconst SidebarMenuSubItem = React.forwardRef>(\n ({ ...props }, ref) =>
  • ,\n);\nSidebarMenuSubItem.displayName = 'SidebarMenuSubItem';\n\nconst SidebarMenuSubButton = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentProps<'a'> & {\n asChild?: boolean;\n size?: 'sm' | 'md';\n isActive?: boolean;\n }\n>(({ asChild = false, size = 'md', isActive, className, ...props }, ref) => {\n const Comp = asChild ? Slot : 'a';\n\n return (\n span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0 [&>svg]:tw-text-sidebar-accent-foreground',\n 'data-[active=true]:tw-bg-sidebar-accent data-[active=true]:tw-text-sidebar-accent-foreground',\n size === 'sm' && 'tw-text-xs',\n size === 'md' && 'tw-text-sm',\n 'group-data-[collapsible=icon]:tw-hidden',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuSubButton.displayName = 'SidebarMenuSubButton';\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n};\n","import ComboBox, { ComboBoxOption } from '@/components/basics/combo-box.component';\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuItem,\n SidebarMenuButton,\n} from '@/components/shadcn-ui/sidebar';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type SelectedSettingsSidebarItem = {\n label: string;\n projectId?: string;\n};\n\nexport type ProjectInfo = { projectId: string; projectName: string };\n\nexport type SettingsSidebarProps = {\n /** Optional id for testing */\n id?: string;\n\n /** Extension labels from contribution */\n extensionLabels: string[];\n\n /** Project names and ids */\n projectInfo: ProjectInfo[];\n\n /** Handler for selecting a sidebar item */\n handleSelectSidebarItem: (key: string, projectId?: string) => void;\n\n /** The current selected value in the sidebar */\n selectedSidebarItem: SelectedSettingsSidebarItem;\n\n /** Label for the group of extensions setting groups */\n extensionsSidebarGroupLabel: string;\n\n /** Label for the group of projects settings */\n projectsSidebarGroupLabel: string;\n\n /** Placeholder text for the button */\n buttonPlaceholderText: string;\n};\n\nexport default function SettingsSidebar({\n id,\n extensionLabels,\n projectInfo,\n handleSelectSidebarItem,\n selectedSidebarItem,\n extensionsSidebarGroupLabel,\n projectsSidebarGroupLabel,\n buttonPlaceholderText,\n}: SettingsSidebarProps) {\n const handleSelectItem = useCallback(\n (item: string, projectId?: string) => {\n handleSelectSidebarItem(item, projectId);\n },\n [handleSelectSidebarItem],\n );\n\n const getProjectNameFromProjectId = useCallback(\n (projectId: string) => {\n const project = projectInfo.find((info) => info.projectId === projectId);\n return project ? project.projectName : projectId;\n },\n [projectInfo],\n );\n\n const getIsActive: (label: string) => boolean = useCallback(\n (label: string) => !selectedSidebarItem.projectId && label === selectedSidebarItem.label,\n [selectedSidebarItem],\n );\n\n return (\n \n \n \n \n {extensionsSidebarGroupLabel}\n \n \n \n {extensionLabels.map((label) => (\n \n handleSelectItem(label)}\n isActive={getIsActive(label)}\n >\n {label}\n \n \n ))}\n \n \n \n \n \n {projectsSidebarGroupLabel}\n \n \n info.projectId)}\n getOptionLabel={(projectId: ComboBoxOption) => {\n // This function expects a ComboBoxOption, but we know it is a string\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n return getProjectNameFromProjectId(projectId as string);\n }}\n buttonPlaceholder={buttonPlaceholderText}\n onChange={(projectId: string) => {\n const selectedProjectName = getProjectNameFromProjectId(projectId);\n handleSelectItem(selectedProjectName, projectId);\n }}\n value={selectedSidebarItem?.projectId ?? undefined}\n />\n \n \n \n \n );\n}\n","import { SidebarInset, SidebarProvider } from '@/components/shadcn-ui/sidebar';\nimport { PropsWithChildren } from 'react';\nimport SearchBar from '@/components/basics/search-bar.component';\nimport SettingsSidebar, { SettingsSidebarProps } from './settings-sidebar.component';\n\nexport type SettingsSidebarContentSearchProps = SettingsSidebarProps &\n PropsWithChildren & {\n /** Optional id for testing */\n id?: string;\n\n /** Handler to run when the value of the search bar changes */\n onSearch: (searchQuery: string) => void;\n };\n\nexport default function SettingsSidebarContentSearch({\n id,\n extensionLabels,\n projectInfo,\n children,\n handleSelectSidebarItem,\n selectedSidebarItem,\n onSearch,\n extensionsSidebarGroupLabel,\n projectsSidebarGroupLabel,\n buttonPlaceholderText,\n}: SettingsSidebarContentSearchProps) {\n return (\n
    \n
    \n \n
    \n \n \n {children}\n \n
    \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Canon } from '@sillsdev/scripture';\nimport {\n Cell,\n ColumnDef,\n flexRender,\n getCoreRowModel,\n getExpandedRowModel,\n getGroupedRowModel,\n getSortedRowModel,\n GroupingState,\n Row,\n RowSelectionState,\n SortingState,\n useReactTable,\n} from '@tanstack/react-table';\nimport '@/components/advanced/scripture-results-viewer/scripture-results-viewer.component.css';\nimport {\n compareScrRefs,\n formatScrRef,\n ScriptureSelection,\n scrRefToBBBCCCVVV,\n} from 'platform-bible-utils';\nimport { MouseEvent, useEffect, useMemo, useState } from 'react';\nimport { ChevronDown, ChevronLeft, ChevronRight } from 'lucide-react';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\n/**\n * Information (e.g., a checking error or some other type of \"transient\" annotation) about something\n * noteworthy at a specific place in an instance of the Scriptures.\n */\nexport type ScriptureItemDetail = ScriptureSelection & {\n /**\n * Text of the error, note, etc. In the future, we might want to support something more than just\n * text so that a JSX element could be provided with a link or some other controls related to the\n * issue being reported.\n */\n detail: string;\n};\n\n/**\n * A uniquely identifiable source of results that can be displayed in the ScriptureResultsViewer.\n * Generally, the source will be a particular Scripture check, but there may be other types of\n * sources.\n */\nexport type ResultsSource = {\n /**\n * Uniquely identifies the source.\n *\n * @type {string}\n */\n id: string;\n\n /**\n * Name (potentially localized) of the source, suitable for display in the UI.\n *\n * @type {string}\n */\n displayName: string;\n};\n\nexport type ScriptureSrcItemDetail = ScriptureItemDetail & {\n /** Source/type of detail. Can be used for grouping. */\n source: ResultsSource;\n};\n\n/**\n * Represents a set of results keyed by Scripture reference. Generally, the source will be a\n * particular Scripture check, but this type also allows for other types of uniquely identifiable\n * sources.\n */\nexport type ResultsSet = {\n /**\n * The backing source associated with this set of results.\n *\n * @type {ResultsSource}\n */\n source: ResultsSource;\n\n /**\n * Array of Scripture item details (messages keyed by Scripture reference).\n *\n * @type {ScriptureItemDetail[]}\n */\n data: ScriptureItemDetail[];\n};\n\nconst scrBookColId = 'scrBook';\nconst scrRefColId = 'scrRef';\nconst typeColId = 'source';\nconst detailsColId = 'details';\n\nconst defaultScrRefColumnName = 'Scripture Reference';\nconst defaultScrBookGroupName = 'Scripture Book';\nconst defaultTypeColumnName = 'Type';\nconst defaultDetailsColumnName = 'Details';\n\nexport type ScriptureResultsViewerColumnInfo = {\n /** Optional header to display for the Reference column. Default value: 'Scripture Reference'. */\n scriptureReferenceColumnName?: string;\n\n /** Optional text to display to refer to the Scripture book group. Default value: 'Scripture Book'. */\n scriptureBookGroupName?: string;\n\n /** Optional header to display for the Type column. Default value: 'Type'. */\n typeColumnName?: string;\n\n /** Optional header to display for the Details column. Default value: 'Details' */\n detailsColumnName?: string;\n};\n\nexport type ScriptureResultsViewerProps = ScriptureResultsViewerColumnInfo & {\n /** Groups of ScriptureItemDetail objects from particular sources (e.g., Scripture checks) */\n sources: ResultsSet[];\n\n /** Flag indicating whether to display column headers. Default is false. */\n showColumnHeaders?: boolean;\n\n /** Flag indicating whether to display source column. Default is false. */\n showSourceColumn?: boolean;\n\n /** Callback function to notify when a row is selected */\n onRowSelected?: (selectedRow: ScriptureSrcItemDetail | undefined) => void;\n};\n\nfunction getColumns(\n colInfo?: ScriptureResultsViewerColumnInfo,\n showSourceColumn?: boolean,\n): ColumnDef[] {\n const showSrcCol = showSourceColumn ?? false;\n return [\n {\n accessorFn: (row) =>\n `${Canon.bookNumberToId(row.start.bookNum)} ${row.start.chapterNum}:${row.start.verseNum}`,\n id: scrBookColId,\n header: colInfo?.scriptureReferenceColumnName ?? defaultScrRefColumnName,\n cell: (info) => {\n const row = info.row.original;\n if (info.row.getIsGrouped()) {\n return Canon.bookNumberToEnglishName(row.start.bookNum);\n }\n return info.row.groupingColumnId === scrBookColId ? formatScrRef(row.start) : undefined;\n },\n getGroupingValue: (row) => row.start.bookNum,\n sortingFn: (a, b) => {\n return compareScrRefs(a.original.start, b.original.start);\n },\n enableGrouping: true,\n },\n {\n accessorFn: (row) => formatScrRef(row.start),\n id: scrRefColId,\n header: undefined,\n cell: (info) => {\n const row = info.row.original;\n return info.row.getIsGrouped() ? undefined : formatScrRef(row.start);\n },\n sortingFn: (a, b) => {\n return compareScrRefs(a.original.start, b.original.start);\n },\n enableGrouping: false,\n },\n {\n accessorFn: (row) => row.source.displayName,\n id: typeColId,\n header: showSrcCol ? (colInfo?.typeColumnName ?? defaultTypeColumnName) : undefined,\n cell: (info) => (showSrcCol || info.row.getIsGrouped() ? info.getValue() : undefined),\n getGroupingValue: (row) => row.source.id,\n sortingFn: (a, b) =>\n a.original.source.displayName.localeCompare(b.original.source.displayName),\n enableGrouping: true,\n },\n {\n accessorFn: (row) => row.detail,\n id: detailsColId,\n header: colInfo?.detailsColumnName ?? defaultDetailsColumnName,\n cell: (info) => info.getValue(),\n enableGrouping: false,\n },\n ];\n}\n\nconst toRefOrRange = (scriptureSelection: ScriptureSelection) => {\n if (!('offset' in scriptureSelection.start))\n throw new Error('No offset available in range start');\n if (scriptureSelection.end && !('offset' in scriptureSelection.end))\n throw new Error('No offset available in range end');\n const { offset: offsetStart } = scriptureSelection.start;\n let offsetEnd: number = 0;\n if (scriptureSelection.end) ({ offset: offsetEnd } = scriptureSelection.end);\n if (\n !scriptureSelection.end ||\n compareScrRefs(scriptureSelection.start, scriptureSelection.end) === 0\n )\n return `${scrRefToBBBCCCVVV(scriptureSelection.start)}+${offsetStart}`;\n return `${scrRefToBBBCCCVVV(scriptureSelection.start)}+${offsetStart}-${scrRefToBBBCCCVVV(scriptureSelection.end)}+${offsetEnd}`;\n};\n\nconst getRowKey = (row: ScriptureSrcItemDetail) =>\n `${toRefOrRange({ start: row.start, end: row.end })} ${row.source.displayName} ${row.detail}`;\n\n/**\n * Component to display a combined list of detailed items from one or more sources, where the items\n * are keyed primarily by Scripture reference. This is particularly useful for displaying a list of\n * results from Scripture checks, but more generally could be used to display any \"results\" from any\n * source(s). The component allows for grouping by Scripture book, source, or both. By default, it\n * displays somewhat \"tree-like\" which allows it to be more horizontally compact and intuitive. But\n * it also has the option of displaying as a traditional table with column headings (with or without\n * the source column showing).\n */\nexport default function ScriptureResultsViewer({\n sources,\n showColumnHeaders = false,\n showSourceColumn = false,\n scriptureReferenceColumnName,\n scriptureBookGroupName,\n typeColumnName,\n detailsColumnName,\n onRowSelected,\n}: ScriptureResultsViewerProps) {\n const [grouping, setGrouping] = useState([]);\n const [sorting, setSorting] = useState([{ id: scrBookColId, desc: false }]);\n const [rowSelection, setRowSelection] = useState({});\n\n const scriptureResults = useMemo(\n () =>\n sources.flatMap((source) => {\n return source.data.map((item) => ({\n ...item,\n source: source.source,\n }));\n }),\n [sources],\n );\n\n const columns = useMemo(\n () =>\n getColumns(\n {\n scriptureReferenceColumnName,\n typeColumnName,\n detailsColumnName,\n },\n showSourceColumn,\n ),\n [scriptureReferenceColumnName, typeColumnName, detailsColumnName, showSourceColumn],\n );\n\n useEffect(() => {\n // Ensure sorting is applied correctly when grouped by type\n if (grouping.includes(typeColId)) {\n setSorting([\n { id: typeColId, desc: false },\n { id: scrBookColId, desc: false },\n ]);\n } else {\n setSorting([{ id: scrBookColId, desc: false }]);\n }\n }, [grouping]);\n\n const table = useReactTable({\n data: scriptureResults,\n columns,\n state: {\n grouping,\n sorting,\n rowSelection,\n },\n onGroupingChange: setGrouping,\n onSortingChange: setSorting,\n onRowSelectionChange: setRowSelection,\n getExpandedRowModel: getExpandedRowModel(),\n getGroupedRowModel: getGroupedRowModel(),\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n getRowId: getRowKey,\n autoResetExpanded: false,\n enableMultiRowSelection: false,\n enableSubRowSelection: false,\n });\n\n useEffect(() => {\n if (onRowSelected) {\n const selectedRows = table.getSelectedRowModel().rowsById;\n const keys = Object.keys(selectedRows);\n if (keys.length === 1) {\n const selectedRow = scriptureResults.find((row) => getRowKey(row) === keys[0]) || undefined;\n if (selectedRow) onRowSelected(selectedRow);\n }\n }\n }, [rowSelection, scriptureResults, onRowSelected, table]);\n\n // Define possible grouping options\n const scrBookGroupName = scriptureBookGroupName ?? defaultScrBookGroupName;\n const typeGroupName = typeColumnName ?? defaultTypeColumnName;\n\n const groupingOptions = [\n { label: 'No Grouping', value: [] },\n { label: `Group by ${scrBookGroupName}`, value: [scrBookColId] },\n { label: `Group by ${typeGroupName}`, value: [typeColId] },\n {\n label: `Group by ${scrBookGroupName} and ${typeGroupName}`,\n value: [scrBookColId, typeColId],\n },\n {\n label: `Group by ${typeGroupName} and ${scrBookGroupName}`,\n value: [typeColId, scrBookColId],\n },\n ];\n\n const handleSelectChange = (selectedGrouping: string) => {\n setGrouping(JSON.parse(selectedGrouping));\n };\n\n const handleRowClick = (row: Row, event: MouseEvent) => {\n if (!row.getIsGrouped() && !row.getIsSelected()) {\n row.getToggleSelectedHandler()(event);\n }\n };\n\n const getEvenOrOddBandingStyle = (row: Row, index: number) => {\n if (row.getIsGrouped()) return '';\n // UX has now said they don't think they want banding. I'm leaving in the code to\n // set even and odd styles, but there's nothing in the CSS to style them differently.\n // The \"even\" style used to also have tw-bg-neutral-300 (along with even) to create\n // a visual banding effect. That could be added back in if UX changes the decision.\n return cn('banded-row', index % 2 === 0 ? 'even' : 'odd');\n };\n\n const getIndent = (\n groupingState: GroupingState,\n row: Row,\n cell: Cell,\n ) => {\n if (groupingState?.length === 0 || row.depth < cell.column.getGroupedIndex()) return undefined;\n if (row.getIsGrouped()) {\n switch (row.depth) {\n case 1:\n return 'tw-ps-4';\n default:\n return undefined;\n }\n }\n switch (row.depth) {\n case 1:\n return 'tw-ps-8';\n case 2:\n return 'tw-ps-12';\n default:\n return undefined;\n }\n };\n\n return (\n
    \n {!showColumnHeaders && (\n {\n handleSelectChange(value);\n }}\n >\n \n \n \n \n \n {groupingOptions.map((option) => (\n \n {option.label}\n \n ))}\n \n \n \n )}\n \n {showColumnHeaders && (\n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers\n .filter((h) => h.column.columnDef.header)\n .map((header) => (\n /* For sticky column headers to work, we probably need to change the default definition of the shadcn Table component. See https://github.com/shadcn-ui/ui/issues/1151 */\n \n {header.isPlaceholder ? undefined : (\n
    \n {header.column.getCanGroup() ? (\n \n {header.column.getIsGrouped() ? `🛑` : `👊 `}\n \n ) : undefined}{' '}\n {flexRender(header.column.columnDef.header, header.getContext())}\n
    \n )}\n
    \n ))}\n
    \n ))}\n
    \n )}\n \n {table.getRowModel().rows.map((row, rowIndex) => {\n const dir: Direction = readDirection();\n return (\n handleRowClick(row, event)}\n >\n {row.getVisibleCells().map((cell) => {\n if (\n cell.getIsPlaceholder() ||\n (cell.column.columnDef.enableGrouping &&\n !cell.getIsGrouped() &&\n (cell.column.columnDef.id !== typeColId || !showSourceColumn))\n )\n return undefined;\n return (\n \n {(() => {\n if (cell.getIsGrouped()) {\n return (\n \n {row.getIsExpanded() && }\n {!row.getIsExpanded() &&\n (dir === 'ltr' ? : )}{' '}\n {flexRender(cell.column.columnDef.cell, cell.getContext())} (\n {row.subRows.length})\n \n );\n }\n\n // if (cell.getIsAggregated()) {\n // flexRender(\n // cell.column.columnDef.aggregatedCell ?? cell.column.columnDef.cell,\n // cell.getContext(),\n // );\n // }\n\n return flexRender(cell.column.columnDef.cell, cell.getContext());\n })()}\n \n );\n })}\n \n );\n })}\n \n
    \n
    \n );\n}\n","import {\n getLocalizeKeyForScrollGroupId,\n LanguageStrings,\n ScrollGroupId,\n} from 'platform-bible-utils';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS = {\n [getLocalizeKeyForScrollGroupId('undefined')]: 'Ø',\n [getLocalizeKeyForScrollGroupId(0)]: 'A',\n [getLocalizeKeyForScrollGroupId(1)]: 'B',\n [getLocalizeKeyForScrollGroupId(2)]: 'C',\n [getLocalizeKeyForScrollGroupId(3)]: 'D',\n [getLocalizeKeyForScrollGroupId(4)]: 'E',\n [getLocalizeKeyForScrollGroupId(5)]: 'F',\n [getLocalizeKeyForScrollGroupId(6)]: 'G',\n [getLocalizeKeyForScrollGroupId(7)]: 'H',\n [getLocalizeKeyForScrollGroupId(8)]: 'I',\n [getLocalizeKeyForScrollGroupId(9)]: 'J',\n [getLocalizeKeyForScrollGroupId(10)]: 'K',\n [getLocalizeKeyForScrollGroupId(11)]: 'L',\n [getLocalizeKeyForScrollGroupId(12)]: 'M',\n [getLocalizeKeyForScrollGroupId(13)]: 'N',\n [getLocalizeKeyForScrollGroupId(14)]: 'O',\n [getLocalizeKeyForScrollGroupId(15)]: 'P',\n [getLocalizeKeyForScrollGroupId(16)]: 'Q',\n [getLocalizeKeyForScrollGroupId(17)]: 'R',\n [getLocalizeKeyForScrollGroupId(18)]: 'S',\n [getLocalizeKeyForScrollGroupId(19)]: 'T',\n [getLocalizeKeyForScrollGroupId(20)]: 'U',\n [getLocalizeKeyForScrollGroupId(21)]: 'V',\n [getLocalizeKeyForScrollGroupId(22)]: 'W',\n [getLocalizeKeyForScrollGroupId(23)]: 'X',\n [getLocalizeKeyForScrollGroupId(24)]: 'Y',\n [getLocalizeKeyForScrollGroupId(25)]: 'Z',\n};\n\nexport type ScrollGroupSelectorProps = {\n /**\n * List of scroll group ids to show to the user. Either a {@link ScrollGroupId} or `undefined` for\n * no scroll group\n */\n availableScrollGroupIds: (ScrollGroupId | undefined)[];\n /** Currently selected scroll group id. `undefined` for no scroll group */\n scrollGroupId: ScrollGroupId | undefined;\n /** Callback function run when the user tries to change the scroll group id */\n onChangeScrollGroupId: (newScrollGroupId: ScrollGroupId | undefined) => void;\n /**\n * Localized strings to use for displaying scroll group ids. Must be an object whose keys are\n * `getLocalizeKeyForScrollGroupId(scrollGroupId)` for all scroll group ids (and `undefined` if\n * included) in {@link ScrollGroupSelectorProps.availableScrollGroupIds} and whose values are the\n * localized strings to use for those scroll group ids.\n *\n * Defaults to English localizations of English alphabet for scroll groups 0-25 (e.g. 0 is A) and\n * Ø for `undefined`. Will fill in any that are not provided with these English localizations.\n * Also, if any values match the keys, the English localization will be used. This is useful in\n * case you want to pass in a temporary version of the localized strings while your localized\n * strings load.\n *\n * @example\n *\n * ```typescript\n * const myScrollGroupIdLocalizedStrings = {\n * [getLocalizeKeyForScrollGroupId('undefined')]: 'Ø',\n * [getLocalizeKeyForScrollGroupId(0)]: 'A',\n * [getLocalizeKeyForScrollGroupId(1)]: 'B',\n * [getLocalizeKeyForScrollGroupId(2)]: 'C',\n * [getLocalizeKeyForScrollGroupId(3)]: 'D',\n * [getLocalizeKeyForScrollGroupId(4)]: 'E',\n * };\n * ```\n *\n * @example\n *\n * ```tsx\n * const availableScrollGroupIds = [undefined, 0, 1, 2, 3, 4];\n *\n * const localizeKeys = getLocalizeKeysForScrollGroupIds();\n *\n * const [localizedStrings] = useLocalizedStrings(localizeKeys);\n *\n * ...\n *\n * \n * ```\n */\n localizedStrings?: LanguageStrings;\n};\n\n/** Selector component for choosing a scroll group */\nexport default function ScrollGroupSelector({\n availableScrollGroupIds,\n scrollGroupId,\n onChangeScrollGroupId,\n localizedStrings = {},\n}: ScrollGroupSelectorProps) {\n const localizedStringsDefaulted = {\n ...DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS,\n ...Object.fromEntries(\n Object.entries(localizedStrings).map(\n ([localizedStringKey, localizedStringValue]: [string, string]) => [\n localizedStringKey,\n localizedStringKey === localizedStringValue &&\n localizedStringKey in DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS\n ? DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS[localizedStringKey]\n : localizedStringValue,\n ],\n ),\n ),\n };\n\n const dir: Direction = readDirection();\n\n return (\n \n onChangeScrollGroupId(\n newScrollGroupString === 'undefined' ? undefined : parseInt(newScrollGroupString, 10),\n )\n }\n >\n \n \n \n \n {availableScrollGroupIds.map((scrollGroupOptionId) => (\n \n {localizedStringsDefaulted[getLocalizeKeyForScrollGroupId(scrollGroupOptionId)]}\n \n ))}\n \n \n );\n}\n","import { PropsWithChildren } from 'react';\nimport { Separator } from '@/components/shadcn-ui/separator';\n\n/** Props for the SettingsList component, currently just children */\ntype SettingsListProps = PropsWithChildren;\n\n/**\n * SettingsList component is a wrapper for list items. Rendered with a formatted div\n *\n * @param children To populate the list with\n * @returns Formatted div encompassing the children\n */\nexport function SettingsList({ children }: SettingsListProps) {\n return
    {children}
    ;\n}\n\n/** Props for SettingsListItem component */\ntype SettingsListItemProps = PropsWithChildren & {\n /** Primary text of the list item */\n primary: string;\n\n /** Optional text of the list item */\n secondary?: string | undefined;\n\n /** Optional boolean to display a message if the children aren't loaded yet. Defaults to false */\n isLoading?: boolean;\n\n /** Optional message to display if isLoading */\n loadingMessage?: string;\n};\n\n/**\n * SettingsListItem component is a common list item. Rendered with a formatted div\n *\n * @param primary Primary text of the list item\n * @param secondary Optional secondary text of the list item\n * @param isLoading Optional, to display a message if the action component isn't generated yet,\n * defaults to false\n * @param children The action component(s) to provide for this item\n * @param loadingMessage Optional, message to display if isLoading\n * @returns Formatted div encompassing the list item content\n */\nexport function SettingsListItem({\n primary,\n secondary,\n children,\n isLoading = false,\n loadingMessage,\n}: SettingsListItemProps) {\n return (\n
    \n
    \n

    {primary}

    \n

    \n {secondary}\n

    \n
    \n\n {isLoading ? (\n

    {loadingMessage}

    \n ) : (\n
    {children}
    \n )}\n
    \n );\n}\n\n/** Props for SettingsListHeader component */\ntype SettingsListHeaderProps = {\n /** The primary text of the list header */\n primary: string;\n\n /** Optional secondary text of the list header */\n secondary?: string | undefined;\n\n /** Optional boolean to include a separator underneath the secondary text. Defaults to false */\n includeSeparator?: boolean;\n};\n\n/**\n * SettingsListHeader component displays text above the list\n *\n * @param primary The primary text of the list header\n * @param secondary Optional secondary text of the list header\n * @param includeSeparator Optional boolean to include a separator underneath the secondary text.\n * Defaults to false\n * @returns Formatted div with list header content\n */\nexport function SettingsListHeader({\n primary,\n secondary,\n includeSeparator = false,\n}: SettingsListHeaderProps) {\n return (\n
    \n
    \n

    {primary}

    \n

    {secondary}

    \n
    \n {includeSeparator ? : ''}\n
    \n );\n}\n","import Checkbox from '@/components/shadcn-ui/checkbox';\nimport { Label } from '@/components/shadcn-ui/label';\n\nexport type ChecklistProps = {\n /** Optional string representing the id attribute of the Checklist */\n id?: string;\n /** Optional string representing CSS class name(s) for styling */\n className?: string;\n /** Array of strings representing the checkable items */\n listItems: string[];\n /** Array of strings representing the checked items */\n selectedListItems: string[];\n /**\n * Function that is called when a checkbox item is selected or deselected\n *\n * @param item The string description for this item\n * @param selected True if selected, false if not selected\n */\n handleSelectListItem: (item: string, selected: boolean) => void;\n\n /**\n * Optional function creates a label for a provided checkable item\n *\n * @param item The item for which a label is to be created\n * @returns A string representing the label text for the checkbox associated with that item\n */\n createLabel?: (item: string) => string;\n};\n\n/** Renders a list of checkboxes. Each checkbox corresponds to an item from the `listItems` array. */\nexport default function Checklist({\n id,\n className,\n listItems,\n selectedListItems,\n handleSelectListItem,\n createLabel,\n}: ChecklistProps) {\n return (\n
    \n {listItems.map((item) => (\n
    \n handleSelectListItem(item, value)}\n />\n \n
    \n ))}\n
    \n );\n}\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return _extends({}, propTypes, {\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n });\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n const match = `${fn}`.match(fnNameMatchRegex);\n const name = match && match[1];\n return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return (props, propName, componentName, location, propFullName) => {\n const componentNameSafe = componentName || '<>';\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n }\n return null;\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n var _muiName, _element$type;\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example
    \n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n }\n return null;\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n constructor() {\n this.currentId = null;\n this.clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n this.disposeEffect = () => {\n return this.clear;\n };\n }\n static create() {\n return new Timeout();\n }\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"values\", \"unit\", \"step\"];\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return _extends({}, acc, {\n [obj.key]: obj.val\n });\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5\n } = breakpoints,\n other = _objectWithoutPropertiesLoose(breakpoints, _excluded);\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return _extends({\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit\n }, other);\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from './merge';\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n // key is breakpoint\n if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n theme\n }, props[key]));\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n var _breakpointsInput$key;\n const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nimport { getPath } from './style';\nimport merge from './merge';\nimport memoize from './memoize';\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n var _getPath;\n const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;\n if (typeof themeSpacing === 'number') {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof abs !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);\n }\n }\n return themeSpacing * abs;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n return themeSpacing[abs];\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n const abs = Math.abs(propValue);\n const transformed = transformer(abs);\n if (propValue >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n return `-${transformed}`;\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (keys.indexOf(prop) === -1) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","import { createUnarySpacing } from '../spacing';\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n\n // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n // Smaller components, such as icons, can align to a 4dp grid.\n // https://m2.material.io/design/layout/understanding-layout.html\n const transform = createUnarySpacing({\n spacing: spacingInput\n });\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import merge from './merge';\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nimport responsivePropType from './responsivePropType';\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from './style';\nimport compose from './compose';\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from './style';\nimport compose from './compose';\nimport { handleBreakpoints, values as breakpointsValues } from './breakpoints';\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n var _props$theme, _props$theme2;\n const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from '../spacing';\nimport { borderRadius, borderTransform } from '../borders';\nimport { gap, rowGap, columnGap } from '../cssGrid';\nimport { paletteTransform } from '../palette';\nimport { maxWidth, sizingTransform } from '../sizing';\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from '../merge';\nimport { getPath, getStyleValue as getValue } from '../style';\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from '../breakpoints';\nimport defaultSxConfig from './defaultSxConfig';\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n var _theme$unstable_sxCon;\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return removeUnusedBreakpoints(breakpointsKeys, css);\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n *\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars && typeof theme.getColorSchemeSelector === 'function') {\n // If CssVarsProvider is used as a provider,\n // returns '* :where([data-mui-color-scheme=\"light|dark\"]) &'\n const selector = theme.getColorSchemeSelector(key).replace(/(\\[[^\\]]+\\])/, '*:where($1)');\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"breakpoints\", \"palette\", \"spacing\", \"shape\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from './createBreakpoints';\nimport shape from './shape';\nimport createSpacing from './createSpacing';\nimport styleFunctionSx from '../styleFunctionSx/styleFunctionSx';\nimport defaultSxConfig from '../styleFunctionSx/defaultSxConfig';\nimport applyStyles from './applyStyles';\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: _extends({\n mode: 'light'\n }, paletteInput),\n spacing,\n shape: _extends({}, shape, shapeInput)\n }, other);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from './createTheme';\nimport useThemeWithoutDefault from './useThemeWithoutDefault';\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nimport styledEngineStyled, { internal_processStyles as processStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from './createTheme';\nimport styleFunctionSx from './styleFunctionSx';\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport const systemDefaultTheme = createTheme();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref) {\n let {\n ownerState\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, _extends({\n ownerState\n }, props)));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props(_extends({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n result.push(typeof variant.style === 'function' ? variant.style(_extends({\n ownerState\n }, props, ownerState)) : variant.style);\n }\n });\n return result;\n }\n return resolvedStylesArg;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return styleFunctionSx(_extends({}, props, {\n theme: resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = _objectWithoutPropertiesLoose(inputOptions, _excluded3);\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, _extends({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || isPlainObject(stylesArg)) {\n return props => processStyleArg(stylesArg, _extends({}, props, {\n theme: resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n })\n }));\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, _extends({}, props, {\n theme\n }));\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, _extends({}, props, {\n theme\n }));\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${capitalize(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${getDisplayName(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport getThemeProps from './getThemeProps';\nimport useTheme from '../useTheme';\nexport default function useThemeProps({\n props,\n name,\n defaultTheme,\n themeId\n}) {\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n const mergedProps = getThemeProps({\n theme,\n name,\n props\n });\n return mergedProps;\n}","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : _formatMuiErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : _formatMuiErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.indexOf('rgb') !== -1) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.indexOf('hsl') !== -1) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.indexOf('color') !== -1) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.indexOf('#') === 0) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function createMixins(breakpoints, mixins) {\n return _extends({\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n }\n }, mixins);\n}","const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;","const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;","const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"mode\", \"contrastThreshold\", \"tonalOffset\"];\nimport { deepmerge } from '@mui/utils';\nimport { darken, getContrastRatio, lighten } from '@mui/system';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport purple from '../colors/purple';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport lightBlue from '../colors/lightBlue';\nimport green from '../colors/green';\nexport const light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexport const dark = {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2\n } = palette,\n other = _objectWithoutPropertiesLoose(palette, _excluded);\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = _extends({}, color);\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\nThe color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from \"@mui/material/colors\";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });` : _formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n const modes = {\n dark,\n light\n };\n if (process.env.NODE_ENV !== 'production') {\n if (!modes[mode]) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge(_extends({\n // A collection of common colors.\n common: _extends({}, common),\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset\n }, modes[mode]), other);\n return paletteOutput;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"];\nimport { deepmerge } from '@mui/utils';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const _ref = typeof typography === 'function' ? typography(palette) : typography,\n {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight\n }, fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}, casing, allVariants);\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge(_extends({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold\n }, variants), other, {\n clone: false // No need to clone deep\n });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"duration\", \"easing\", \"delay\"];\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = _extends({}, easing, inputTransitions.easing);\n const mergedDuration = _extends({}, duration, inputTransitions.duration);\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n // IE11 support, replace with Number.isNaN\n // eslint-disable-next-line no-restricted-globals\n const isNumber = value => !isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return _extends({\n getAutoHeightDuration,\n create\n }, inputTransitions, {\n easing: mergedEasing,\n duration: mergedDuration\n });\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"breakpoints\", \"mixins\", \"spacing\", \"palette\", \"transitions\", \"typography\", \"shape\"];\nimport { deepmerge } from '@mui/utils';\nimport { createTheme as systemCreateTheme, unstable_defaultSxConfig as defaultSxConfig, unstable_styleFunctionSx as styleFunctionSx } from '@mui/system';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport createTransitions from './createTransitions';\nimport zIndex from './zIndex';\nfunction createTheme(options = {}, ...args) {\n const {\n mixins: mixinsInput = {},\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (options.vars) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`vars\\` is a private field used for CSS variables support.\nPlease use another name.` : _formatMuiErrorMessage(18));\n }\n const palette = createPalette(paletteInput);\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: _extends({}, zIndex)\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (key in node) {\n const child = node[key];\n if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.indexOf('Mui') === 0) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nlet warnedOnce = false;\nexport function createMuiTheme(...args) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@mui/material/styles'`\"].join('\\n'));\n }\n }\n return createTheme(...args);\n}\nexport default createTheme;","'use client';\n\nimport createTheme from './createTheme';\nconst defaultTheme = createTheme();\nexport default defaultTheme;","export default '$$material';","'use client';\n\nimport { useThemeProps as systemUseThemeProps } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useThemeProps({\n props,\n name\n}) {\n return systemUseThemeProps({\n props,\n name,\n defaultTheme,\n themeId: THEME_ID\n });\n}","'use client';\n\nimport { createStyled, shouldForwardProp } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';\nexport const slotShouldForwardProp = shouldForwardProp;\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"inheritViewBox\", \"titleAccess\", \"viewBox\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport useThemeProps from '../styles/useThemeProps';\nimport styled from '../styles/styled';\nimport { getSvgIconUtilityClass } from './svgIconClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(({\n theme,\n ownerState\n}) => {\n var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;\n return {\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n // the will define the property that has `currentColor`\n // e.g. heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',\n flexShrink: 0,\n transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {\n duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter\n }),\n fontSize: {\n inherit: 'inherit',\n small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',\n medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',\n large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'\n }[ownerState.fontSize],\n // TODO v5 deprecate, v6 remove for sx\n color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {\n action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,\n disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,\n inherit: undefined\n }[ownerState.color]\n };\n});\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = _extends({}, props, {\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n });\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, _extends({\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref\n }, more, other, hasSvgAsChild && children.props, {\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport SvgIcon from '../SvgIcon';\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, _extends({\n \"data-testid\": `${displayName}Icon`,\n ref: ref\n }, props, {\n children: path\n }));\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));\n}","'use client';\n\nimport { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/base/ClassNameGenerator';\nexport { default as capitalize } from './capitalize';\nexport { default as createChainedFunction } from './createChainedFunction';\nexport { default as createSvgIcon } from './createSvgIcon';\nexport { default as debounce } from './debounce';\nexport { default as deprecatedPropType } from './deprecatedPropType';\nexport { default as isMuiElement } from './isMuiElement';\nexport { default as ownerDocument } from './ownerDocument';\nexport { default as ownerWindow } from './ownerWindow';\nexport { default as requirePropFactory } from './requirePropFactory';\nexport { default as setRef } from './setRef';\nexport { default as unstable_useEnhancedEffect } from './useEnhancedEffect';\nexport { default as unstable_useId } from './useId';\nexport { default as unsupportedProp } from './unsupportedProp';\nexport { default as useControlled } from './useControlled';\nexport { default as useEventCallback } from './useEventCallback';\nexport { default as useForkRef } from './useForkRef';\nexport { default as useIsFocusVisible } from './useIsFocusVisible';\n// TODO: remove this export once ClassNameGenerator is stable\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const unstable_ClassNameGenerator = {\n configure: generator => {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(['MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.', '', \"You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead\", '', 'The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401', '', 'The updated documentation: https://mui.com/guides/classname-generator/'].join('\\n'));\n }\n ClassNameGenerator.configure(generator);\n }\n};","\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _utils.createSvgIcon;\n }\n});\nvar _utils = require(\"@mui/material/utils\");","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m10 17 5-5-5-5z\"\n}), 'ArrowRight');","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","import { globalStateClasses } from '@mui/utils/generateUtilityClass';\nconst GLOBAL_CLASS_PREFIX = 'base';\nfunction buildStateClass(state) {\n return `${GLOBAL_CLASS_PREFIX}--${state}`;\n}\nfunction buildSlotClass(componentName, slot) {\n return `${GLOBAL_CLASS_PREFIX}-${componentName}-${slot}`;\n}\nexport function generateUtilityClass(componentName, slot) {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? buildStateClass(globalStateClass) : buildSlotClass(componentName, slot);\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import { generateUtilityClass } from '../generateUtilityClass';\nexport function generateUtilityClasses(componentName, slots) {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot);\n });\n return result;\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { exactProp, HTMLElementType, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef, unstable_setRef as setRef } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\n\n/**\n * Portals provide a first-class way to render children into a DOM node\n * that exists outside the DOM hierarchy of the parent component.\n *\n * Demos:\n *\n * - [Portal](https://mui.com/base-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://mui.com/base-ui/react-portal/components-api/#portal)\n */\nconst Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {\n const {\n children,\n container,\n disablePortal = false\n } = props;\n const [mountNode, setMountNode] = React.useState(null);\n // @ts-expect-error TODO upstream fix\n const handleRef = useForkRef( /*#__PURE__*/React.isValidElement(children) ? children.ref : null, forwardedRef);\n useEnhancedEffect(() => {\n if (!disablePortal) {\n setMountNode(getContainer(container) || document.body);\n }\n }, [container, disablePortal]);\n useEnhancedEffect(() => {\n if (mountNode && !disablePortal) {\n setRef(forwardedRef, mountNode);\n return () => {\n setRef(forwardedRef, null);\n };\n }\n return undefined;\n }, [forwardedRef, mountNode, disablePortal]);\n if (disablePortal) {\n if ( /*#__PURE__*/React.isValidElement(children)) {\n const newProps = {\n ref: handleRef\n };\n return /*#__PURE__*/React.cloneElement(children, newProps);\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: children\n });\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Portal.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The children to render into the `container`.\n */\n children: PropTypes.node,\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n Portal['propTypes' + ''] = exactProp(Portal.propTypes);\n}\nexport { Portal };","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import { generateUtilityClass } from '../generateUtilityClass';\nimport { generateUtilityClasses } from '../generateUtilityClasses';\nconst COMPONENT_NAME = 'Popper';\nexport function getPopperUtilityClass(slot) {\n return generateUtilityClass(COMPONENT_NAME, slot);\n}\nexport const popperClasses = generateUtilityClasses(COMPONENT_NAME, ['root']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"children\", \"direction\", \"disablePortal\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"slotProps\", \"slots\", \"TransitionProps\", \"ownerState\"],\n _excluded2 = [\"anchorEl\", \"children\", \"container\", \"direction\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"style\", \"transition\", \"slotProps\", \"slots\"];\nimport * as React from 'react';\nimport { chainPropTypes, HTMLElementType, refType, unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { createPopper } from '@popperjs/core';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses } from '../composeClasses';\nimport { Portal } from '../Portal';\nimport { getPopperUtilityClass } from './popperClasses';\nimport { useSlotProps } from '../utils';\nimport { useClassNamesOverride } from '../utils/ClassNameConfigurator';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction flipPlacement(placement, direction) {\n if (direction === 'ltr') {\n return placement;\n }\n switch (placement) {\n case 'bottom-end':\n return 'bottom-start';\n case 'bottom-start':\n return 'bottom-end';\n case 'top-end':\n return 'top-start';\n case 'top-start':\n return 'top-end';\n default:\n return placement;\n }\n}\nfunction resolveAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nfunction isHTMLElement(element) {\n return element.nodeType !== undefined;\n}\nfunction isVirtualElement(element) {\n return !isHTMLElement(element);\n}\nconst useUtilityClasses = () => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));\n};\nconst defaultPopperOptions = {};\nconst PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {\n var _slots$root;\n const {\n anchorEl,\n children,\n direction,\n disablePortal,\n modifiers,\n open,\n placement: initialPlacement,\n popperOptions,\n popperRef: popperRefProp,\n slotProps = {},\n slots = {},\n TransitionProps\n // @ts-ignore internal logic\n // prevent from spreading to DOM, it can come from the parent component e.g. Select.\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const tooltipRef = React.useRef(null);\n const ownRef = useForkRef(tooltipRef, forwardedRef);\n const popperRef = React.useRef(null);\n const handlePopperRef = useForkRef(popperRef, popperRefProp);\n const handlePopperRefRef = React.useRef(handlePopperRef);\n useEnhancedEffect(() => {\n handlePopperRefRef.current = handlePopperRef;\n }, [handlePopperRef]);\n React.useImperativeHandle(popperRefProp, () => popperRef.current, []);\n const rtlPlacement = flipPlacement(initialPlacement, direction);\n /**\n * placement initialized from prop but can change during lifetime if modifiers.flip.\n * modifiers.flip is essentially a flip for controlled/uncontrolled behavior\n */\n const [placement, setPlacement] = React.useState(rtlPlacement);\n const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));\n React.useEffect(() => {\n if (popperRef.current) {\n popperRef.current.forceUpdate();\n }\n });\n React.useEffect(() => {\n if (anchorEl) {\n setResolvedAnchorElement(resolveAnchorEl(anchorEl));\n }\n }, [anchorEl]);\n useEnhancedEffect(() => {\n if (!resolvedAnchorElement || !open) {\n return undefined;\n }\n const handlePopperUpdate = data => {\n setPlacement(data.placement);\n };\n if (process.env.NODE_ENV !== 'production') {\n if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {\n const box = resolvedAnchorElement.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n }\n let popperModifiers = [{\n name: 'preventOverflow',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'flip',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'onUpdate',\n enabled: true,\n phase: 'afterWrite',\n fn: ({\n state\n }) => {\n handlePopperUpdate(state);\n }\n }];\n if (modifiers != null) {\n popperModifiers = popperModifiers.concat(modifiers);\n }\n if (popperOptions && popperOptions.modifiers != null) {\n popperModifiers = popperModifiers.concat(popperOptions.modifiers);\n }\n const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({\n placement: rtlPlacement\n }, popperOptions, {\n modifiers: popperModifiers\n }));\n handlePopperRefRef.current(popper);\n return () => {\n popper.destroy();\n handlePopperRefRef.current(null);\n };\n }, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);\n const childProps = {\n placement: placement\n };\n if (TransitionProps !== null) {\n childProps.TransitionProps = TransitionProps;\n }\n const classes = useUtilityClasses();\n const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps.root,\n externalForwardedProps: other,\n additionalProps: {\n role: 'tooltip',\n ref: ownRef\n },\n ownerState: props,\n className: classes.root\n });\n return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n children: typeof children === 'function' ? children(childProps) : children\n }));\n});\n\n/**\n * Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.\n *\n * Demos:\n *\n * - [Popper](https://mui.com/base-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/base-ui/react-popper/components-api/#popper)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {\n const {\n anchorEl,\n children,\n container: containerProp,\n direction = 'ltr',\n disablePortal = false,\n keepMounted = false,\n modifiers,\n open,\n placement = 'bottom',\n popperOptions = defaultPopperOptions,\n popperRef,\n style,\n transition = false,\n slotProps = {},\n slots = {}\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [exited, setExited] = React.useState(true);\n const handleEnter = () => {\n setExited(false);\n };\n const handleExited = () => {\n setExited(true);\n };\n if (!keepMounted && !open && (!transition || exited)) {\n return null;\n }\n\n // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n let container;\n if (containerProp) {\n container = containerProp;\n } else if (anchorEl) {\n const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;\n }\n const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;\n const transitionProps = transition ? {\n in: open,\n onEnter: handleEnter,\n onExited: handleExited\n } : undefined;\n return /*#__PURE__*/_jsx(Portal, {\n disablePortal: disablePortal,\n container: container,\n children: /*#__PURE__*/_jsx(PopperTooltip, _extends({\n anchorEl: anchorEl,\n direction: direction,\n disablePortal: disablePortal,\n modifiers: modifiers,\n ref: forwardedRef,\n open: transition ? !exited : open,\n placement: placement,\n popperOptions: popperOptions,\n popperRef: popperRef,\n slotProps: slotProps,\n slots: slots\n }, other, {\n style: _extends({\n // Prevents scroll issue, waiting for Popper.js to add this style once initiated.\n position: 'fixed',\n // Fix Popper.js display issue\n top: 0,\n left: 0,\n display\n }, style),\n TransitionProps: transitionProps,\n children: children\n }))\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {\n if (props.open) {\n const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {\n const box = resolvedAnchorEl.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * Direction of the text.\n * @default 'ltr'\n */\n direction: PropTypes.oneOf(['ltr', 'rtl']),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport { Popper };","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","export default {\n disabled: false\n};","import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n enter: PropTypes.number,\n exit: PropTypes.number,\n appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string,\n active: PropTypes.string\n}), PropTypes.shape({\n enter: PropTypes.string,\n enterDone: PropTypes.string,\n enterActive: PropTypes.string,\n exit: PropTypes.string,\n exitDone: PropTypes.string,\n exitActive: PropTypes.string\n})]) : null;","import React from 'react';\nexport default React.createContext(null);","export var forceReflow = function forceReflow(node) {\n return node.scrollTop;\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n *
    \n * I'm a fade Transition!\n *
    \n * )}\n *
    \n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
    \n * \n * {state => (\n * // ...\n * )}\n * \n * \n *
    \n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export const reflow = node => node.scrollTop;\nexport function getTransitionProps(props, options) {\n var _style$transitionDura, _style$transitionTimi;\n const {\n timeout,\n easing,\n style = {}\n } = props;\n return {\n duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,\n easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,\n delay: style.transitionDelay\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { elementAcceptingRef, unstable_useTimeout as useTimeout } from '@mui/utils';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps, reflow } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = 'auto',\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const timer = useTimeout();\n const autoTimeout = React.useRef();\n const theme = useTheme();\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, children.ref, ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay,\n easing: transitionTimingFunction\n })].join(',');\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay: isWebKit154 ? delay : delay || duration * 0.333,\n easing: transitionTimingFunction\n })].join(',');\n node.style.opacity = 0;\n node.style.transform = getScale(0.75);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.start(autoTimeout.current || 0, next);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout === 'auto' ? null : timeout\n }, other, {\n children: (state, childProps) => {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n }\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"component\", \"components\", \"componentsProps\", \"container\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"transition\", \"slots\", \"slotProps\"];\nimport { Popper as BasePopper } from '@mui/base/Popper';\nimport { useThemeWithoutDefault as useTheme } from '@mui/system';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { styled, useThemeProps } from '../styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopperRoot = styled(BasePopper, {\n name: 'MuiPopper',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\n\n/**\n *\n * Demos:\n *\n * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)\n * - [Menu](https://mui.com/material-ui/react-menu/)\n * - [Popper](https://mui.com/material-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/material-ui/api/popper/)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {\n var _slots$root;\n const theme = useTheme();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPopper'\n });\n const {\n anchorEl,\n component,\n components,\n componentsProps,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;\n const otherProps = _extends({\n anchorEl,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition\n }, other);\n return /*#__PURE__*/_jsx(PopperRoot, _extends({\n as: component,\n direction: theme == null ? void 0 : theme.direction,\n slots: {\n root: RootComponent\n },\n slotProps: slotProps != null ? slotProps : componentsProps\n }, otherProps, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport default Popper;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTooltipUtilityClass(slot) {\n return generateUtilityClass('MuiTooltip', slot);\n}\nconst tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);\nexport default tooltipClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"arrow\", \"children\", \"classes\", \"components\", \"componentsProps\", \"describeChild\", \"disableFocusListener\", \"disableHoverListener\", \"disableInteractive\", \"disableTouchListener\", \"enterDelay\", \"enterNextDelay\", \"enterTouchDelay\", \"followCursor\", \"id\", \"leaveDelay\", \"leaveTouchDelay\", \"onClose\", \"onOpen\", \"open\", \"placement\", \"PopperComponent\", \"PopperProps\", \"slotProps\", \"slots\", \"title\", \"TransitionComponent\", \"TransitionProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { elementAcceptingRef, unstable_useTimeout as useTimeout, unstable_Timeout as Timeout } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses, appendOwnerState } from '@mui/base';\nimport { alpha } from '@mui/system';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport useThemeProps from '../styles/useThemeProps';\nimport capitalize from '../utils/capitalize';\nimport Grow from '../Grow';\nimport Popper from '../Popper';\nimport useEventCallback from '../utils/useEventCallback';\nimport useForkRef from '../utils/useForkRef';\nimport useId from '../utils/useId';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport useControlled from '../utils/useControlled';\nimport tooltipClasses, { getTooltipUtilityClass } from './tooltipClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableInteractive,\n arrow,\n touch,\n placement\n } = ownerState;\n const slots = {\n popper: ['popper', !disableInteractive && 'popperInteractive', arrow && 'popperArrow'],\n tooltip: ['tooltip', arrow && 'tooltipArrow', touch && 'touch', `tooltipPlacement${capitalize(placement.split('-')[0])}`],\n arrow: ['arrow']\n };\n return composeClasses(slots, getTooltipUtilityClass, classes);\n};\nconst TooltipPopper = styled(Popper, {\n name: 'MuiTooltip',\n slot: 'Popper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];\n }\n})(({\n theme,\n ownerState,\n open\n}) => _extends({\n zIndex: (theme.vars || theme).zIndex.tooltip,\n pointerEvents: 'none'\n}, !ownerState.disableInteractive && {\n pointerEvents: 'auto'\n}, !open && {\n pointerEvents: 'none'\n}, ownerState.arrow && {\n [`&[data-popper-placement*=\"bottom\"] .${tooltipClasses.arrow}`]: {\n top: 0,\n marginTop: '-0.71em',\n '&::before': {\n transformOrigin: '0 100%'\n }\n },\n [`&[data-popper-placement*=\"top\"] .${tooltipClasses.arrow}`]: {\n bottom: 0,\n marginBottom: '-0.71em',\n '&::before': {\n transformOrigin: '100% 0'\n }\n },\n [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n left: 0,\n marginLeft: '-0.71em'\n } : {\n right: 0,\n marginRight: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '100% 100%'\n }\n }),\n [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n right: 0,\n marginRight: '-0.71em'\n } : {\n left: 0,\n marginLeft: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '0 0'\n }\n })\n}));\nconst TooltipTooltip = styled('div', {\n name: 'MuiTooltip',\n slot: 'Tooltip',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles[`tooltipPlacement${capitalize(ownerState.placement.split('-')[0])}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),\n borderRadius: (theme.vars || theme).shape.borderRadius,\n color: (theme.vars || theme).palette.common.white,\n fontFamily: theme.typography.fontFamily,\n padding: '4px 8px',\n fontSize: theme.typography.pxToRem(11),\n maxWidth: 300,\n margin: 2,\n wordWrap: 'break-word',\n fontWeight: theme.typography.fontWeightMedium\n}, ownerState.arrow && {\n position: 'relative',\n margin: 0\n}, ownerState.touch && {\n padding: '8px 16px',\n fontSize: theme.typography.pxToRem(14),\n lineHeight: `${round(16 / 14)}em`,\n fontWeight: theme.typography.fontWeightRegular\n}, {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: _extends({\n transformOrigin: 'right center'\n }, !ownerState.isRtl ? _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n }) : _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: _extends({\n transformOrigin: 'left center'\n }, !ownerState.isRtl ? _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n }) : _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: _extends({\n transformOrigin: 'center bottom',\n marginBottom: '14px'\n }, ownerState.touch && {\n marginBottom: '24px'\n }),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: _extends({\n transformOrigin: 'center top',\n marginTop: '14px'\n }, ownerState.touch && {\n marginTop: '24px'\n })\n}));\nconst TooltipArrow = styled('span', {\n name: 'MuiTooltip',\n slot: 'Arrow',\n overridesResolver: (props, styles) => styles.arrow\n})(({\n theme\n}) => ({\n overflow: 'hidden',\n position: 'absolute',\n width: '1em',\n height: '0.71em' /* = width / sqrt(2) = (length of the hypotenuse) */,\n boxSizing: 'border-box',\n color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),\n '&::before': {\n content: '\"\"',\n margin: 'auto',\n display: 'block',\n width: '100%',\n height: '100%',\n backgroundColor: 'currentColor',\n transform: 'rotate(45deg)'\n }\n}));\nlet hystersisOpen = false;\nconst hystersisTimer = new Timeout();\nlet cursorPosition = {\n x: 0,\n y: 0\n};\nexport function testReset() {\n hystersisOpen = false;\n hystersisTimer.clear();\n}\nfunction composeEventHandler(handler, eventHandler) {\n return event => {\n if (eventHandler) {\n eventHandler(event);\n }\n handler(event);\n };\n}\n\n// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.\nconst Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {\n var _ref, _slots$popper, _ref2, _ref3, _slots$transition, _ref4, _slots$tooltip, _ref5, _slots$arrow, _slotProps$popper, _ref6, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref7, _slotProps$tooltip2, _slotProps$arrow, _ref8, _slotProps$arrow2;\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTooltip'\n });\n const {\n arrow = false,\n children: childrenProp,\n components = {},\n componentsProps = {},\n describeChild = false,\n disableFocusListener = false,\n disableHoverListener = false,\n disableInteractive: disableInteractiveProp = false,\n disableTouchListener = false,\n enterDelay = 100,\n enterNextDelay = 0,\n enterTouchDelay = 700,\n followCursor = false,\n id: idProp,\n leaveDelay = 0,\n leaveTouchDelay = 1500,\n onClose,\n onOpen,\n open: openProp,\n placement = 'bottom',\n PopperComponent: PopperComponentProp,\n PopperProps = {},\n slotProps = {},\n slots = {},\n title,\n TransitionComponent: TransitionComponentProp = Grow,\n TransitionProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // to prevent runtime errors, developers will need to provide a child as a React element anyway.\n const children = /*#__PURE__*/React.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/_jsx(\"span\", {\n children: childrenProp\n });\n const theme = useTheme();\n const isRtl = theme.direction === 'rtl';\n const [childNode, setChildNode] = React.useState();\n const [arrowRef, setArrowRef] = React.useState(null);\n const ignoreNonTouchEvents = React.useRef(false);\n const disableInteractive = disableInteractiveProp || followCursor;\n const closeTimer = useTimeout();\n const enterTimer = useTimeout();\n const leaveTimer = useTimeout();\n const touchTimer = useTimeout();\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: false,\n name: 'Tooltip',\n state: 'open'\n });\n let open = openState;\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const {\n current: isControlled\n } = React.useRef(openProp !== undefined);\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {\n console.error(['MUI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', \"Tooltip needs to listen to the child element's events to display the title.\", '', 'Add a simple wrapper element, such as a `span`.'].join('\\n'));\n }\n }, [title, childNode, isControlled]);\n }\n const id = useId(idProp);\n const prevUserSelect = React.useRef();\n const stopTouchInteraction = useEventCallback(() => {\n if (prevUserSelect.current !== undefined) {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n prevUserSelect.current = undefined;\n }\n touchTimer.clear();\n });\n React.useEffect(() => stopTouchInteraction, [stopTouchInteraction]);\n const handleOpen = event => {\n hystersisTimer.clear();\n hystersisOpen = true;\n\n // The mouseover event will trigger for every nested element in the tooltip.\n // We can skip rerendering when the tooltip is already open.\n // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue.\n setOpenState(true);\n if (onOpen && !open) {\n onOpen(event);\n }\n };\n const handleClose = useEventCallback(\n /**\n * @param {React.SyntheticEvent | Event} event\n */\n event => {\n hystersisTimer.start(800 + leaveDelay, () => {\n hystersisOpen = false;\n });\n setOpenState(false);\n if (onClose && open) {\n onClose(event);\n }\n closeTimer.start(theme.transitions.duration.shortest, () => {\n ignoreNonTouchEvents.current = false;\n });\n });\n const handleEnter = event => {\n if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {\n return;\n }\n\n // Remove the title ahead of time.\n // We don't want to wait for the next render commit.\n // We would risk displaying two tooltips at the same time (native + this one).\n if (childNode) {\n childNode.removeAttribute('title');\n }\n enterTimer.clear();\n leaveTimer.clear();\n if (enterDelay || hystersisOpen && enterNextDelay) {\n enterTimer.start(hystersisOpen ? enterNextDelay : enterDelay, () => {\n handleOpen(event);\n });\n } else {\n handleOpen(event);\n }\n };\n const handleLeave = event => {\n enterTimer.clear();\n leaveTimer.start(leaveDelay, () => {\n handleClose(event);\n });\n };\n const {\n isFocusVisibleRef,\n onBlur: handleBlurVisible,\n onFocus: handleFocusVisible,\n ref: focusVisibleRef\n } = useIsFocusVisible();\n // We don't necessarily care about the focusVisible state (which is safe to access via ref anyway).\n // We just need to re-render the Tooltip if the focus-visible state changes.\n const [, setChildIsFocusVisible] = React.useState(false);\n const handleBlur = event => {\n handleBlurVisible(event);\n if (isFocusVisibleRef.current === false) {\n setChildIsFocusVisible(false);\n handleLeave(event);\n }\n };\n const handleFocus = event => {\n // Workaround for https://github.com/facebook/react/issues/7769\n // The autoFocus of React might trigger the event before the componentDidMount.\n // We need to account for this eventuality.\n if (!childNode) {\n setChildNode(event.currentTarget);\n }\n handleFocusVisible(event);\n if (isFocusVisibleRef.current === true) {\n setChildIsFocusVisible(true);\n handleEnter(event);\n }\n };\n const detectTouchStart = event => {\n ignoreNonTouchEvents.current = true;\n const childrenProps = children.props;\n if (childrenProps.onTouchStart) {\n childrenProps.onTouchStart(event);\n }\n };\n const handleMouseOver = handleEnter;\n const handleMouseLeave = handleLeave;\n const handleTouchStart = event => {\n detectTouchStart(event);\n leaveTimer.clear();\n closeTimer.clear();\n stopTouchInteraction();\n prevUserSelect.current = document.body.style.WebkitUserSelect;\n // Prevent iOS text selection on long-tap.\n document.body.style.WebkitUserSelect = 'none';\n touchTimer.start(enterTouchDelay, () => {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n handleEnter(event);\n });\n };\n const handleTouchEnd = event => {\n if (children.props.onTouchEnd) {\n children.props.onTouchEnd(event);\n }\n stopTouchInteraction();\n leaveTimer.start(leaveTouchDelay, () => {\n handleClose(event);\n });\n };\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n /**\n * @param {KeyboardEvent} nativeEvent\n */\n function handleKeyDown(nativeEvent) {\n // IE11, Edge (prior to using Bink?) use 'Esc'\n if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {\n handleClose(nativeEvent);\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [handleClose, open]);\n const handleRef = useForkRef(children.ref, focusVisibleRef, setChildNode, ref);\n\n // There is no point in displaying an empty tooltip.\n // So we exclude all falsy values, except 0, which is valid.\n if (!title && title !== 0) {\n open = false;\n }\n const popperRef = React.useRef();\n const handleMouseMove = event => {\n const childrenProps = children.props;\n if (childrenProps.onMouseMove) {\n childrenProps.onMouseMove(event);\n }\n cursorPosition = {\n x: event.clientX,\n y: event.clientY\n };\n if (popperRef.current) {\n popperRef.current.update();\n }\n };\n const nameOrDescProps = {};\n const titleIsString = typeof title === 'string';\n if (describeChild) {\n nameOrDescProps.title = !open && titleIsString && !disableHoverListener ? title : null;\n nameOrDescProps['aria-describedby'] = open ? id : null;\n } else {\n nameOrDescProps['aria-label'] = titleIsString ? title : null;\n nameOrDescProps['aria-labelledby'] = open && !titleIsString ? id : null;\n }\n const childrenProps = _extends({}, nameOrDescProps, other, children.props, {\n className: clsx(other.className, children.props.className),\n onTouchStart: detectTouchStart,\n ref: handleRef\n }, followCursor ? {\n onMouseMove: handleMouseMove\n } : {});\n if (process.env.NODE_ENV !== 'production') {\n childrenProps['data-mui-internal-clone-element'] = true;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && !childNode.getAttribute('data-mui-internal-clone-element')) {\n console.error(['MUI: The `children` component of the Tooltip is not forwarding its props correctly.', 'Please make sure that props are spread on the same element that the ref is applied to.'].join('\\n'));\n }\n }, [childNode]);\n }\n const interactiveWrapperListeners = {};\n if (!disableTouchListener) {\n childrenProps.onTouchStart = handleTouchStart;\n childrenProps.onTouchEnd = handleTouchEnd;\n }\n if (!disableHoverListener) {\n childrenProps.onMouseOver = composeEventHandler(handleMouseOver, childrenProps.onMouseOver);\n childrenProps.onMouseLeave = composeEventHandler(handleMouseLeave, childrenProps.onMouseLeave);\n if (!disableInteractive) {\n interactiveWrapperListeners.onMouseOver = handleMouseOver;\n interactiveWrapperListeners.onMouseLeave = handleMouseLeave;\n }\n }\n if (!disableFocusListener) {\n childrenProps.onFocus = composeEventHandler(handleFocus, childrenProps.onFocus);\n childrenProps.onBlur = composeEventHandler(handleBlur, childrenProps.onBlur);\n if (!disableInteractive) {\n interactiveWrapperListeners.onFocus = handleFocus;\n interactiveWrapperListeners.onBlur = handleBlur;\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (children.props.title) {\n console.error(['MUI: You have provided a `title` prop to the child of .', `Remove this title prop \\`${children.props.title}\\` or the Tooltip component.`].join('\\n'));\n }\n }\n const popperOptions = React.useMemo(() => {\n var _PopperProps$popperOp;\n let tooltipModifiers = [{\n name: 'arrow',\n enabled: Boolean(arrowRef),\n options: {\n element: arrowRef,\n padding: 4\n }\n }];\n if ((_PopperProps$popperOp = PopperProps.popperOptions) != null && _PopperProps$popperOp.modifiers) {\n tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);\n }\n return _extends({}, PopperProps.popperOptions, {\n modifiers: tooltipModifiers\n });\n }, [arrowRef, PopperProps]);\n const ownerState = _extends({}, props, {\n isRtl,\n arrow,\n disableInteractive,\n placement,\n PopperComponentProp,\n touch: ignoreNonTouchEvents.current\n });\n const classes = useUtilityClasses(ownerState);\n const PopperComponent = (_ref = (_slots$popper = slots.popper) != null ? _slots$popper : components.Popper) != null ? _ref : TooltipPopper;\n const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow;\n const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;\n const ArrowComponent = (_ref5 = (_slots$arrow = slots.arrow) != null ? _slots$arrow : components.Arrow) != null ? _ref5 : TooltipArrow;\n const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {\n className: clsx(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_ref6 = (_slotProps$popper2 = slotProps.popper) != null ? _slotProps$popper2 : componentsProps.popper) == null ? void 0 : _ref6.className)\n }), ownerState);\n const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);\n const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {\n className: clsx(classes.tooltip, (_ref7 = (_slotProps$tooltip2 = slotProps.tooltip) != null ? _slotProps$tooltip2 : componentsProps.tooltip) == null ? void 0 : _ref7.className)\n }), ownerState);\n const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {\n className: clsx(classes.arrow, (_ref8 = (_slotProps$arrow2 = slotProps.arrow) != null ? _slotProps$arrow2 : componentsProps.arrow) == null ? void 0 : _ref8.className)\n }), ownerState);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/_jsx(PopperComponent, _extends({\n as: PopperComponentProp != null ? PopperComponentProp : Popper,\n placement: placement,\n anchorEl: followCursor ? {\n getBoundingClientRect: () => ({\n top: cursorPosition.y,\n left: cursorPosition.x,\n right: cursorPosition.x,\n bottom: cursorPosition.y,\n width: 0,\n height: 0\n })\n } : childNode,\n popperRef: popperRef,\n open: childNode ? open : false,\n id: id,\n transition: true\n }, interactiveWrapperListeners, popperProps, {\n popperOptions: popperOptions,\n children: ({\n TransitionProps: TransitionPropsInner\n }) => /*#__PURE__*/_jsx(TransitionComponent, _extends({\n timeout: theme.transitions.duration.shorter\n }, TransitionPropsInner, transitionProps, {\n children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {\n children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {\n ref: setArrowRef\n })) : null]\n }))\n }))\n }))]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tooltip.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, adds an arrow to the tooltip.\n * @default false\n */\n arrow: PropTypes.bool,\n /**\n * Tooltip reference element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `slots` prop.\n * It's recommended to use the `slots` prop instead.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Arrow: PropTypes.elementType,\n Popper: PropTypes.elementType,\n Tooltip: PropTypes.elementType,\n Transition: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `slotProps` prop.\n * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * Set to `true` if the `title` acts as an accessible description.\n * By default the `title` acts as an accessible label for the child.\n * @default false\n */\n describeChild: PropTypes.bool,\n /**\n * Do not respond to focus-visible events.\n * @default false\n */\n disableFocusListener: PropTypes.bool,\n /**\n * Do not respond to hover events.\n * @default false\n */\n disableHoverListener: PropTypes.bool,\n /**\n * Makes a tooltip not interactive, i.e. it will close when the user\n * hovers over the tooltip before the `leaveDelay` is expired.\n * @default false\n */\n disableInteractive: PropTypes.bool,\n /**\n * Do not respond to long press touch events.\n * @default false\n */\n disableTouchListener: PropTypes.bool,\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This prop won't impact the enter touch delay (`enterTouchDelay`).\n * @default 100\n */\n enterDelay: PropTypes.number,\n /**\n * The number of milliseconds to wait before showing the tooltip when one was already recently opened.\n * @default 0\n */\n enterNextDelay: PropTypes.number,\n /**\n * The number of milliseconds a user must touch the element before showing the tooltip.\n * @default 700\n */\n enterTouchDelay: PropTypes.number,\n /**\n * If `true`, the tooltip follow the cursor over the wrapped element.\n * @default false\n */\n followCursor: PropTypes.bool,\n /**\n * This prop is used to help implement the accessibility logic.\n * If you don't provide this prop. It falls back to a randomly generated id.\n */\n id: PropTypes.string,\n /**\n * The number of milliseconds to wait before hiding the tooltip.\n * This prop won't impact the leave touch delay (`leaveTouchDelay`).\n * @default 0\n */\n leaveDelay: PropTypes.number,\n /**\n * The number of milliseconds after the user stops touching an element before hiding the tooltip.\n * @default 1500\n */\n leaveTouchDelay: PropTypes.number,\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the component requests to be open.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * Tooltip placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * The component used for the popper.\n * @default Popper\n */\n PopperComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Popper`](/material-ui/api/popper/) element.\n * @default {}\n */\n PopperProps: PropTypes.object,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n arrow: PropTypes.elementType,\n popper: PropTypes.elementType,\n tooltip: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.\n */\n title: PropTypes.node,\n /**\n * The component used for the transition.\n * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Grow\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Tooltip;","import '@/components/mui/menu-item.component.css';\nimport ArrowRightIcon from '@mui/icons-material/ArrowRight';\nimport {\n ListItemIcon as MuiListItemIcon,\n ListItemText as MuiListItemText,\n MenuItem as MuiMenuItem,\n} from '@mui/material';\nimport Tooltip from '@mui/material/Tooltip';\nimport { Localized, ReferencedItem, SingleColumnMenu } from 'platform-bible-utils';\nimport { MouseEvent, PropsWithChildren } from 'react';\n\ntype MenuItemInfoBase = {\n /** Text (displayable in the UI) as the name of the menu item */\n label: string;\n /** Text to display when the mouse hovers over the menu item */\n tooltip?: string;\n};\n\nexport type Command = MenuItemInfoBase & {\n /** Command to execute (string.string) */\n command: string;\n};\n\ntype SubMenu = MenuItemInfoBase & {\n /** Command to execute (string.string) */\n items: MenuItemInfo[];\n};\n\nexport interface CommandHandler {\n (command: Command): void;\n}\n\nexport type MenuPropsBase = {\n /*\n * The JSON defining the menu whose items are to be rendered. This will typically be one of the\n * menus in the \"defs\" in a Platform.Bible menu (see PlatformMenus). The schema for this is\n * menuDocumentSchema (at the end of menus.model.ts). Note that while this is a\n * \"SingleColumnMenu\", somewhat bizarrely, a MultiColumnMenu is a SingleColumnMenu, so it really\n * could be a MultiColumnMenu, in which case, column had better be defined so it can be used\n * to filter out the actual groups and items to display on the column.\n */\n menuDefinition: Localized;\n\n commandHandler: CommandHandler;\n\n /**\n * Additional action to perform when any menu item is clicked. Allows the caller to handle event\n * (e.g., to close the menu).\n */\n onClick?: (event: MouseEvent) => void;\n};\n\nexport type MenuItemListProps = MenuPropsBase & {\n /** Optional unique (column) identifier */\n columnId?: ReferencedItem;\n};\n\nexport type MenuItemProps = Omit &\n PropsWithChildren<{\n /** Optional unique identifier */\n id?: string;\n\n onClick: (event: MouseEvent) => void;\n }>;\n\ntype MenuItemInfo = (Command | SubMenu) & {\n /**\n * If specified, menu item will be inset if it does not have a leading icon.\n *\n * @default true\n */\n allowForLeadingIcons?: boolean;\n /**\n * If specified, the path to the icon image to display on the leading side of the menu text.\n *\n * @default undefined (no leading icon will be shown)\n */\n iconPathBefore?: string;\n /**\n * If specified, the path to the icon image to display on the trailing side of the menu text.\n *\n * @default undefined (no trailing icon will be shown)\n */\n iconPathAfter?: string;\n /**\n * If true, list item is focused during the first mount\n *\n * @default false\n */\n hasAutoFocus?: boolean;\n\n /** Additional css classes to help with unique styling of the menu item */\n className?: string;\n\n /**\n * If true, the menu item will appear disabled and it will not respond to clicks or mouse hovers.\n *\n * @default false\n */\n isDisabled?: boolean;\n\n /**\n * If true, compact vertical padding designed for keyboard and mouse input is used.\n *\n * @default true\n */\n isDense?: boolean;\n\n /**\n * If true, a right-arrow icon will be displayed (iconPathAfter, if specified, will be ignored).\n *\n * @default false\n */\n isSubMenuParent?: boolean;\n\n /**\n * If true, the left and right padding is removed\n *\n * @default false\n */\n hasDisabledGutters?: boolean;\n\n /**\n * If true, a 1px light border is added to bottom of menu item\n *\n * @default false\n */\n hasDivider?: boolean;\n\n /** Help identify which element has keyboard focus */\n focusVisibleClassName?: string;\n\n /** If it's a submenu, it should have the items property */\n items?: MenuItemInfo[];\n};\n\nfunction getIcon(icon: string | undefined, menuLabel: string, leading: boolean) {\n return icon ? (\n \n {`${leading\n \n ) : undefined;\n}\n\nexport default function MenuItem(props: MenuItemProps) {\n const {\n onClick,\n label,\n tooltip,\n allowForLeadingIcons = true,\n iconPathBefore = undefined,\n iconPathAfter = undefined,\n hasAutoFocus = false,\n className,\n isDisabled = false,\n isDense = true,\n isSubMenuParent = false,\n hasDisabledGutters = false,\n hasDivider = false,\n focusVisibleClassName,\n id,\n children,\n } = props;\n\n const menuItem = (\n \n {label ? (\n <>\n {getIcon(iconPathBefore, label, true)}\n \n {isSubMenuParent ? (\n \n \n \n ) : (\n getIcon(iconPathAfter, label, false)\n )}\n \n ) : (\n children\n )}\n \n );\n\n return tooltip ? (\n \n
    {menuItem}
    \n
    \n ) : (\n menuItem\n );\n}\n","import MenuItem, {\n MenuItemListProps,\n MenuItemProps,\n MenuPropsBase,\n} from '@/components/mui/menu-item.component';\nimport { Menu } from '@mui/material';\nimport {\n Localized,\n MenuGroupDetailsInSubMenu,\n MenuItemContainingCommand,\n MenuItemContainingSubmenu,\n OrderedExtensibleContainer,\n ReferencedItem,\n SingleColumnMenu,\n} from 'platform-bible-utils';\nimport { MouseEvent, useMemo, useState } from 'react';\n\n/**\n * All the exported types in this file should be regarded as \"internal\" (i.e., they should not be\n * exposed via index.ts).\n */\n\nexport type GroupedMenuPropsBase = MenuPropsBase & {\n /** Optional unique (column) identifier */\n columnId?: ReferencedItem;\n};\n\nexport type GroupedMenuItemListProps = MenuItemListProps & {\n /**\n * If the menuDefinition includes \"top-level\" groups (i.e., those that belong to a column as\n * opposed to those that belong to a submenu) that should not be included in the list, then this\n * array specifies which groups to include. Likewise, for a submenu, this list indicates which\n * groups are pertinent for that submenu. So then for a context menu this property need not be\n * specified since it is a top-level menu based on a \"true\" SingleColumnMenu (i.e., one that is\n * not a MultiColumnMenu).\n */\n includedGroups?: {\n id: string;\n group: Localized;\n }[];\n};\n\ninterface ItemInfo {\n item: Localized;\n isLastItemInGroup: boolean;\n}\n\ntype SubMenuProps = MenuPropsBase & {\n parentMenuItem: Localized;\n parentItemProps: Omit, 'iconPathAfter'>;\n};\n\nfunction getAllGroups(menuDefinition: Localized) {\n const groupEntries = Object.entries(menuDefinition.groups);\n // Convert array of entries to array of objects with id and group properties\n return groupEntries.map(([key, value]) => ({ id: key, group: value }));\n}\n\nfunction SubMenu(props: SubMenuProps) {\n const [anchorEl, setAnchorEl] = useState(undefined);\n\n const { parentMenuItem, parentItemProps, menuDefinition } = props;\n\n const handleParentMenuItemClick = (event: MouseEvent) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(undefined);\n };\n\n const renderSubMenuItems = () => {\n let includedGroups = getAllGroups(menuDefinition).filter((g) => 'menuItem' in g.group);\n\n // Ensure valid parent menu was provided. (If not, submenu will contain all groups!)\n if (!parentMenuItem?.id) throw new Error('A valid parent menu item is required for submenus.');\n\n // When laying out a submenu, only include groups associated with the provided parent menu.\n // Note: without the (annoying) redundant check that the included groups\n // have the menuItem field, TS doesn't think it exists.\n includedGroups = includedGroups.filter(\n (group) => 'menuItem' in group.group && group.group.menuItem === parentMenuItem.id,\n );\n\n return ;\n };\n\n return (\n <>\n \n \n {renderSubMenuItems()}\n \n \n );\n}\n\nconst getOrderedGroupItems = (\n groupId: string,\n allItems: Localized[],\n) => {\n // Filter items that belong to the specified group\n const itemsForGroup = allItems.filter((item) => item.group === groupId);\n // Sort items based on order\n const sortedItems = itemsForGroup.sort((a, b) => (a.order || 0) - (b.order || 0));\n return sortedItems;\n};\n\n/**\n * This component is internal; it does not need to be exposed to the outside world since it is not\n * useful on its own. It is used to generate and lay out the MenuItems that appear either on a\n * top-level menu (in a GridMenu or ContextMenu) or in a submenu.\n */\nexport default function GroupedMenuItemList(menuProps: GroupedMenuItemListProps) {\n const { menuDefinition, onClick, commandHandler, includedGroups } = menuProps;\n\n const { items, allowForLeadingIcons } = useMemo(() => {\n const groupsToInclude =\n includedGroups && includedGroups.length > 0\n ? includedGroups\n : // We're apparently laying out a single-column menu (presumably a context menu). In this\n // case, all groups should be included except ones that belong to a submenu.\n getAllGroups(menuDefinition).filter((g) => !('menuItem' in g.group));\n\n const sortedGroups = Object.values(groupsToInclude).sort(\n (a, b) => (a.group.order || 0) - (b.group.order || 0),\n );\n\n const itemArray: ItemInfo[] = [];\n\n sortedGroups.forEach((group) => {\n getOrderedGroupItems(group.id, menuDefinition.items).forEach((item) =>\n itemArray.push({ item, isLastItemInGroup: false }),\n );\n if (itemArray.length > 0) itemArray[itemArray.length - 1].isLastItemInGroup = true;\n });\n\n // No divider after last item in final group.\n if (itemArray.length > 0) itemArray[itemArray.length - 1].isLastItemInGroup = false;\n\n const allowSpaceForLeadingIcons = itemArray.some(\n (i) => 'iconPathBefore' in i.item && i.item.iconPathBefore,\n );\n\n return { items: itemArray, allowForLeadingIcons: allowSpaceForLeadingIcons };\n }, [includedGroups, menuDefinition]);\n\n // Create props for MenuItem component including setting hasDivider for the last item in a group\n const createMenuItemProps = ({ item, isLastItemInGroup }: ItemInfo) => {\n const menuItemProps = {\n className: 'papi-menu-item',\n label: item.label,\n tooltip: item.tooltip,\n iconPathBefore: 'iconPathBefore' in item ? item.iconPathBefore : undefined,\n iconPathAfter: 'iconPathAfter' in item ? item.iconPathAfter : undefined,\n hasDivider: isLastItemInGroup, // Set hasDivider to true for the last item in a group\n allowForLeadingIcons,\n };\n\n return menuItemProps;\n };\n\n const [firstItem] = items;\n\n if (!firstItem) return
    ;\n\n const divKey = firstItem.item.group;\n\n return (\n
    \n {items.map((itemInfo, index) => {\n const { item } = itemInfo;\n const menuItemProps = createMenuItemProps(itemInfo);\n if ('command' in item) {\n const key = item.group + index;\n return (\n ) => {\n onClick?.(event);\n commandHandler(item);\n }}\n {...menuItemProps}\n />\n );\n }\n return (\n \n );\n })}\n
    \n );\n}\n","import GroupedMenuItemList from '@/components/mui/grouped-menu-item-list.component';\nimport { MenuItemListProps } from '@/components/mui/menu-item.component';\nimport { MultiColumnMenu } from 'platform-bible-utils';\n\n/**\n * This component is internal; it does not need to be exposed to the outside world since it is not\n * useful on its own. Use either GridMenu or ContextMenu.\n */\nexport default function TopLevelMenu(props: MenuItemListProps) {\n const { menuDefinition, columnId } = props;\n\n const groupEntries = Object.entries(menuDefinition.groups);\n // Convert array of entries to array of objects with id and group properties\n const groups = groupEntries.map(([key, value]) => ({ id: key, group: value }));\n let includedGroups = groups.filter((g) => 'column' in g.group);\n\n // Check if column is provided and menuDefinition is a MultiColumnMenu\n if (\n columnId &&\n 'columns' in menuDefinition &&\n // Without this type assertion, TS doesn't know what columns is.\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n (menuDefinition as MultiColumnMenu).columns[columnId]\n ) {\n // When laying out a single column in a MultiColumnMenu, only include groups associated with\n // the provided column. Note: without the (annoying) redundant check that the included groups\n // have the colum field, TS doesn't think it exists.\n includedGroups = includedGroups.filter(\n (g) => 'column' in g.group && g.group.column === columnId,\n );\n }\n\n return ;\n}\n","import '@/components/mui/grid-menu.component.css';\nimport { GroupedMenuPropsBase } from '@/components/mui/grouped-menu-item-list.component';\nimport { CommandHandler } from '@/components/mui/menu-item.component';\nimport TopLevelMenu from '@/components/mui/top-level-menu.component';\nimport { Grid, List } from '@mui/material';\nimport {\n Localized,\n MenuColumnWithHeader,\n MultiColumnMenu,\n ReferencedItem,\n} from 'platform-bible-utils';\nimport { useMemo } from 'react';\n\ntype ColumnInfo = {\n /*\n * The ID (`${string}.${string}`) of a specific menu column.\n */\n id: ReferencedItem;\n\n /*\n * Metadata (label, order, etc.) for a specific menu column.\n */\n metadata: Localized;\n};\n\ntype MenuColumnProps = ColumnInfo &\n GroupedMenuPropsBase & {\n /** Additional css classes to help with unique styling of the menu column */\n className?: string;\n };\n\nexport type GridMenuInfo = {\n /** The menu object containing information about the columns, groups, and items to display. */\n multiColumnMenu: Localized;\n};\n\nexport type GridMenuProps = GridMenuInfo & {\n /** Optional unique identifier */\n id?: string;\n\n commandHandler: CommandHandler;\n\n /** Additional css classes to help with unique styling of the grid menu */\n className?: string;\n};\n\nfunction MenuColumn({\n commandHandler,\n menuDefinition,\n id,\n metadata,\n onClick,\n className,\n}: MenuColumnProps) {\n return (\n \n

    \n {metadata.label}\n

    \n {/* It would seem as though this List component were unnecessary, since it only contains one\n thing, but the \"dense\" property does affect the layout of the items (in a way I don't fully\n understand). There might be a better way. */}\n \n \n \n \n );\n}\n\nexport default function GridMenu({\n commandHandler,\n className,\n multiColumnMenu,\n id,\n}: GridMenuProps) {\n const { columns } = multiColumnMenu;\n\n const sortedColumns = useMemo(() => {\n const columnNumbers = new Map();\n Object.getOwnPropertyNames(columns).forEach((columnName: string) => {\n // We know for sure there is a (boolean) property 'isExtensible' that we are not interested in.\n if (columnName === 'isExtensible') return;\n // TS doesn't allow `columnName` above to be a ReferencedItem even though the type says it is\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const columnId = columnName as ReferencedItem;\n const column = columns[columnId];\n // As of right now (and hopefully forever after), all remaining properties of the\n // ColumnsWithHeaders object are columns whose property names are the IDs of the columns.\n // This is an additional (redundant) sanity check. Specifically we're interested in\n // MenuColumnWithHeader objects, which TypeScript now \"knows\" we have, but at runtime all we\n // can check for is that it's an object with a valid numeric order field. That's likely good\n // enough.\n if (\n typeof column === 'object' &&\n typeof column.order === 'number' &&\n !Number.isNaN(column.order)\n )\n columnNumbers.set(column.order, { id: columnId, metadata: column });\n else\n console.warn(\n `Property ${columnName} (${typeof column}) on menu ${id} is not a valid column and is being ignored. This might indicate data corruption`,\n );\n });\n\n // Extract values and sort them based on the 'order' property\n return Array.from(columnNumbers.values()).sort((a, b) => {\n return (a.metadata.order || 0) - (b.metadata.order || 0);\n });\n }, [columns, id]);\n\n // We might need something like this if we need to be able to prevent empty columns\n // sortedColumns.filter((c) => multiColumnMenu.groups.some((g) => 'column' in g && (g as .column)...\n\n return (\n \n {sortedColumns.map((col, index) => (\n \n ))}\n \n );\n}\n","import { useEffect, useRef, useState } from 'react';\n\nexport type UsePromiseOptions = {\n /**\n * Whether to leave the value as the most recent resolved promise value or set it back to\n * defaultValue while running the promise again. Defaults to true\n */\n preserveValue?: boolean;\n};\n\n/** Set up defaults for options for usePromise hook */\nfunction getUsePromiseOptionsDefaults(options: UsePromiseOptions): UsePromiseOptions {\n return {\n preserveValue: true,\n ...options,\n };\n}\n\n/**\n * Awaits a promise and returns a loading value while the promise is unresolved\n *\n * @param promiseFactoryCallback A function that returns the promise to await. If this callback is\n * undefined, the current value will be returned (defaultValue unless it was previously changed\n * and `options.preserveValue` is true), and there will be no loading.\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n * @param defaultValue The initial value to return while first awaiting the promise. If\n * `options.preserveValue` is false, this value is also shown while awaiting the promise on\n * subsequent calls.\n *\n * Note: this parameter is internally assigned to a `ref`, so changing it will not cause any hooks\n * to re-run with its new value. This means that, if the `promiseFactoryCallback` changes and\n * `options.preserveValue` is `false`, the returned value will be set to the current\n * `defaultValue`. However, the returned value will not be updated if`defaultValue` changes.\n * @param options Various options for adjusting how this hook runs the `promiseFactoryCallback`\n *\n * Note: this parameter is internally assigned to a `ref`, so changing it will not cause any hooks\n * to re-run with its new value. However, the latest `options.preserveValue` will always be used\n * appropriately to determine whether to preserve the returned value when changing the\n * `promiseFactoryCallback`\n * @returns `[value, isLoading]`\n *\n * - `value`: the current value for the promise, either the defaultValue or the resolved promise value\n * - `isLoading`: whether the promise is waiting to be resolved\n */\nconst usePromise = (\n promiseFactoryCallback: (() => Promise) | undefined,\n defaultValue: T,\n options: UsePromiseOptions = {},\n): [value: T, isLoading: boolean] => {\n // Use defaultValue as a ref so it doesn't update dependency arrays\n const defaultValueRef = useRef(defaultValue);\n defaultValueRef.current = defaultValue;\n // Use options as a ref so it doesn't update dependency arrays\n const optionsDefaultedRef = useRef(options);\n optionsDefaultedRef.current = getUsePromiseOptionsDefaults(optionsDefaultedRef.current);\n\n const [value, setValue] = useState(() => defaultValueRef.current);\n const [isLoading, setIsLoading] = useState(true);\n useEffect(() => {\n let promiseIsCurrent = true;\n // If a promiseFactoryCallback was provided, we are loading. Otherwise, there is no loading to do\n setIsLoading(!!promiseFactoryCallback);\n (async () => {\n // If there is a callback to run, run it\n if (promiseFactoryCallback) {\n const result = await promiseFactoryCallback();\n // If the promise was not already replaced, update the value\n if (promiseIsCurrent) {\n setValue(() => result);\n setIsLoading(false);\n }\n }\n })();\n\n return () => {\n // Mark this promise as old and not to be used\n promiseIsCurrent = false;\n if (!optionsDefaultedRef.current.preserveValue) setValue(() => defaultValueRef.current);\n };\n }, [promiseFactoryCallback]);\n\n return [value, isLoading];\n};\nexport default usePromise;\n","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z\"\n}), 'Menu');","import GridMenu from '@/components/mui/grid-menu.component';\nimport { Command, CommandHandler } from '@/components/mui/menu-item.component';\nimport usePromise from '@/hooks/use-promise.hook';\nimport { Menu as MenuIcon } from '@mui/icons-material';\nimport { Drawer, IconButton } from '@mui/material';\nimport { Localized, MultiColumnMenu } from 'platform-bible-utils';\nimport {\n MouseEvent,\n MutableRefObject,\n PropsWithChildren,\n useCallback,\n useEffect,\n useState,\n} from 'react';\n\nexport interface MultiColumnMenuProvider {\n (isSupportAndDevelopment: boolean): Promise>;\n}\n\nexport type HamburgerMenuButtonProps = PropsWithChildren & {\n /** The handler to use for menu commands (and eventually toolbar commands). */\n commandHandler: CommandHandler;\n\n /**\n * Optional reference to the \"div\" container that determines the where the menu should appear. If\n * not defined, then (1,1) used.\n */\n containerRef?: MutableRefObject;\n\n /**\n * The delegate to use to get the menu data. If not specified or if it returns undefined, the data\n * in normalMenu or fullMenu property will be used.\n */\n menuProvider?: MultiColumnMenuProvider;\n\n /**\n * The menu data to show when the menu is opened if the menuProvider property is not defined.\n * (This allows for a default or test-only static menu to be used.)\n */\n normalMenu?: Localized;\n\n /**\n * The menu data to show for \"full\" menu (when opened with the SHIFT key pressed) if the\n * menuProvider property is not defined. (This allows for a default or test-only static menu to be\n * used.)\n */\n fullMenu?: Localized;\n\n /** Additional css class(es) to help with unique styling of the sub-components */\n className?: string;\n\n /** Value to use as prefix for ARIA labels on interactive sub-components */\n ariaLabelPrefix?: string;\n};\n\nexport default function HamburgerMenuButton({\n menuProvider,\n normalMenu,\n fullMenu,\n commandHandler,\n containerRef,\n className,\n ariaLabelPrefix,\n children,\n}: HamburgerMenuButtonProps) {\n const [isMenuOpen, setMenuOpen] = useState(false);\n const [showFullMenu, setShowFullMenu] = useState(false);\n\n const handleMenuItemClick = useCallback(() => {\n if (isMenuOpen) setMenuOpen(false);\n setShowFullMenu(false);\n }, [isMenuOpen]);\n\n const handleMenuButtonClick = useCallback((e: MouseEvent) => {\n e.stopPropagation();\n setMenuOpen((prevIsOpen) => {\n const isOpening = !prevIsOpen;\n if (isOpening && e.shiftKey) setShowFullMenu(true);\n else if (!isOpening) setShowFullMenu(false);\n return isOpening;\n });\n }, []);\n\n const menuCommandHandler = useCallback(\n (command: Command) => {\n handleMenuItemClick();\n return commandHandler(command);\n },\n [commandHandler, handleMenuItemClick],\n );\n\n const [offset, setOffset] = useState({ top: 1, left: 1 });\n\n useEffect(() => {\n if (isMenuOpen) {\n const node = containerRef?.current;\n if (node) {\n const rect = node.getBoundingClientRect();\n const scrollTop = window.scrollY;\n const scrollLeft = window.scrollX;\n const top = rect.top + scrollTop + node.clientHeight;\n const left = rect.left + scrollLeft;\n setOffset({ top, left });\n }\n }\n }, [isMenuOpen, containerRef]);\n\n const [normalMenuData] = usePromise(\n useCallback(async () => {\n return menuProvider?.(false) ?? normalMenu;\n // isMenuOpen needs to be included for the menu contents to reevaluate when reopened\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [menuProvider, normalMenu, isMenuOpen]),\n normalMenu,\n );\n\n const [fullMenuData] = usePromise(\n useCallback(async () => {\n return menuProvider?.(true) ?? fullMenu ?? normalMenuData;\n // isMenuOpen needs to be included for the menu contents to reevaluate when reopened\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [menuProvider, fullMenu, normalMenuData, isMenuOpen]),\n fullMenu ?? normalMenuData,\n );\n\n const menu = showFullMenu && fullMenuData ? fullMenuData : normalMenuData;\n\n return (\n <>\n \n {children ?? }\n \n \n {menu ? (\n \n ) : undefined}\n \n \n );\n}\n","import '@/components/mui/icon-button.component.css';\nimport { IconButton as MuiIconButton } from '@mui/material';\nimport { MouseEventHandler, PropsWithChildren } from 'react';\n\nexport type IconButtonProps = PropsWithChildren<{\n /** Optional unique identifier */\n id?: string;\n /**\n * Required. Used as both the tooltip (aka, title) and the aria-label (used for accessibility,\n * testing, etc.), unless a distinct tooltip is supplied.\n */\n label: string;\n /**\n * Enabled status of button\n *\n * @default false\n */\n isDisabled?: boolean;\n /** Optional tooltip to display if different from the aria-label. */\n tooltip?: string;\n /** If true, no tooltip will be displayed. */\n isTooltipSuppressed?: boolean;\n /**\n * If given, uses a negative margin to counteract the padding on one side (this is often helpful\n * for aligning the left or right side of the icon with content above or below, without ruining\n * the border size and shape).\n *\n * @default false\n */\n adjustMarginToAlignToEdge?: 'end' | 'start' | false;\n /**\n * The size of the component. small is equivalent to the dense button styling.\n *\n * @default false\n */\n size: 'small' | 'medium' | 'large';\n /** Additional css classes to help with unique styling of the button */\n className?: string;\n /** Optional click handler */\n onClick?: MouseEventHandler;\n}>;\n\n/**\n * Iconic button a user can click to do something\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction IconButton({\n id,\n label,\n isDisabled = false,\n tooltip,\n isTooltipSuppressed = false,\n adjustMarginToAlignToEdge = false,\n size = 'medium',\n className,\n onClick,\n children,\n}: IconButtonProps) {\n return (\n \n {children /* the icon to display */}\n \n );\n}\n\nexport default IconButton;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { LoaderCircle, LucideProps } from 'lucide-react';\nimport { forwardRef } from 'react';\n\nexport type SpinnerProps = LucideProps;\n\nconst Spinner = forwardRef(({ className, ...props }, ref) => {\n return (\n \n );\n});\n\nSpinner.displayName = 'Spinner';\n\nexport default Spinner;\n","import { Input as ShadInput } from '@/components/shadcn-ui/input';\nimport { Label as ShadLabel } from '@/components/shadcn-ui/label';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { ChangeEventHandler, FocusEventHandler } from 'react';\n\nexport type TextFieldProps = {\n /** Optional unique identifier */\n id?: string;\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * If `true`, the label is displayed in an error state.\n *\n * @default false\n */\n hasError?: boolean;\n /**\n * If `true`, the input will take up the full width of its container.\n *\n * @default false\n */\n isFullWidth?: boolean;\n /** Text that gives the user instructions on what contents the TextField expects */\n helperText?: string;\n /** The title of the TextField */\n label?: string;\n /** The short hint displayed in the `input` before the user enters a value. */\n placeholder?: string;\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n *\n * @default false\n */\n isRequired?: boolean;\n /** Additional css classes to help with unique styling of the text field */\n className?: string;\n /** Starting value for the text field if it is not controlled */\n defaultValue?: string | number;\n /** Value of the text field if controlled */\n value?: string | number;\n /** Triggers when content of textfield is changed */\n onChange?: ChangeEventHandler;\n /** Triggers when textfield gets focus */\n onFocus?: FocusEventHandler;\n /** Triggers when textfield loses focus */\n onBlur?: FocusEventHandler;\n};\n\n/**\n * Text input field\n *\n * Thanks to Shadcn for heavy inspiration and documentation\n * https://ui.shadcn.com/docs/components/input#with-label\n */\nfunction TextField({\n id,\n isDisabled = false,\n hasError = false,\n isFullWidth = false,\n helperText,\n label,\n placeholder,\n isRequired = false,\n className,\n defaultValue,\n value,\n onChange,\n onFocus,\n onBlur,\n}: TextFieldProps) {\n return (\n
    \n {`${label}${isRequired ? '*' : ''}`}\n \n

    {helperText}

    \n
    \n );\n}\n\nexport default TextField;\n","import HamburgerMenuButton, {\n MultiColumnMenuProvider,\n} from '@/components/mui/hamburger-menu-button.component';\nimport { CommandHandler } from '@/components/mui/menu-item.component';\nimport '@/components/mui/toolbar.component.css';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { AppBar, Toolbar as MuiToolbar } from '@mui/material';\nimport { PropsWithChildren, useRef } from 'react';\n\nexport type ToolbarProps = PropsWithChildren<{\n /** The handler to use for menu commands (and eventually toolbar commands). */\n commandHandler: CommandHandler;\n\n /**\n * The optional delegate to use to get the menu data. If not specified, the \"hamburger\" menu will\n * not display.\n */\n menuProvider?: MultiColumnMenuProvider;\n\n /** Optional unique identifier */\n id?: string;\n\n /** Additional css classes to help with unique styling of the toolbar */\n className?: string;\n}>;\n\nexport default function Toolbar({\n menuProvider,\n commandHandler,\n className,\n id,\n children,\n}: ToolbarProps) {\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const containerRef = useRef(undefined!);\n\n return (\n
    \n \n \n {menuProvider ? (\n \n ) : undefined}\n {children ?
    {children}
    : undefined}\n \n
    \n
    \n );\n}\n","import React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst alertVariants = cva(\n 'tw-relative tw-w-full tw-rounded-lg tw-border tw-p-4 [&>svg~*]:tw-pl-7 [&>svg+div]:tw-translate-y-[-3px] [&>svg]:tw-absolute [&>svg]:tw-left-4 [&>svg]:tw-top-4 [&>svg]:tw-text-foreground',\n {\n variants: {\n variant: {\n default: 'tw-bg-background tw-text-foreground',\n destructive:\n 'tw-border-destructive/50 tw-text-destructive dark:tw-border-destructive [&>svg]:tw-text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes & VariantProps\n>(({ className, variant, ...props }, ref) => (\n
    \n));\nAlert.displayName = 'Alert';\n\nconst AlertTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}{' '}\n \n ),\n);\nAlertTitle.displayName = 'AlertTitle';\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
    \n));\nAlertDescription.displayName = 'AlertDescription';\n\nexport { Alert, AlertTitle, AlertDescription };\n","import { cva, type VariantProps } from 'class-variance-authority';\nimport React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst badgeVariants = cva(\n 'tw-inline-flex tw-items-center tw-rounded-full tw-border tw-px-2.5 tw-py-0.5 tw-text-xs tw-font-semibold tw-transition-colors focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2',\n {\n variants: {\n variant: {\n default:\n 'tw-border-transparent tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/80',\n secondary:\n 'tw-border-transparent tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80',\n muted: 'tw-border-transparent tw-bg-muted tw-text-muted-foreground hover:tw-bg-muted/80',\n destructive:\n 'tw-border-transparent tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/80',\n outline: 'tw-text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nexport interface BadgeProps\n extends React.HTMLAttributes,\n VariantProps {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return
    ;\n}\n\nexport { Badge, badgeVariants };\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Card = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCard.displayName = 'Card';\n\nconst CardHeader = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}\n \n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n

    \n));\nCardDescription.displayName = 'CardDescription';\n\nconst CardContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n

    \n ),\n);\nCardContent.displayName = 'CardContent';\n\nconst CardFooter = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardFooter.displayName = 'CardFooter';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n","import { ComponentProps } from 'react';\nimport { toast as sonner, Toaster } from 'sonner';\n\ntype SonnerProps = ComponentProps;\n\nfunction Sonner({ ...props }: SonnerProps) {\n return (\n \n );\n}\n\n// The re-export of the sonner function was added manually\nexport { Sonner, sonner };\n","import React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Slider = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n \n \n \n );\n});\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider };\n","import * as SwitchPrimitives from '@radix-ui/react-switch';\nimport React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Switch = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n );\n});\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n","import React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport const Tabs = TabsPrimitive.Root;\n\nexport type TabsListProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type TabsTriggerProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type TabsContentProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport const TabsList = React.forwardRef<\n React.ElementRef,\n TabsListProps\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nexport const TabsTrigger = React.forwardRef<\n React.ElementRef,\n TabsTriggerProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nexport const TabsContent = React.forwardRef<\n React.ElementRef,\n TabsContentProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Download } from 'lucide-react';\n\ntype InstallButtonProps = {\n /** The installing boolean value determines the state of the button. */\n isInstalling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n /** Optional text for the button. */\n buttonText?: string;\n} & ButtonProps;\n\n/**\n * The InstallButton component is a button designed for initiating installs. It includes visuals for\n * active installing and idle states.\n *\n * @param isInstalling The installing boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @param buttonText Optional text for the button.\n * @returns A install button.\n */\nexport default function InstallButton({\n isInstalling,\n handleClick,\n buttonText,\n className,\n ...props\n}: InstallButtonProps) {\n return (\n \n {isInstalling ? (\n \n ) : (\n <>\n \n {buttonText}\n \n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype EnableButtonProps = {\n /** The enabling boolean value determines the state of the button. */\n isEnabling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The EnableButton component is a button designed for initiating enabling of downloads. It includes\n * visuals for active enabling and idle states.\n *\n * @param isEnabling The enabling boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to enable.\n */\nexport default function EnableButton({\n isEnabling,\n handleClick,\n className,\n ...props\n}: EnableButtonProps) {\n return (\n \n {isEnabling ? (\n <>\n \n Enabling...\n \n ) : (\n 'Enable'\n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype DisableButtonProps = {\n /** The disabling boolean value determines the state of the button. */\n isDisabling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The DisableButton component is a button designed for initiating disabling of downloads. It\n * includes visuals for active disabling and idle states.\n *\n * @param isDisabling The disabling boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to disable.\n */\nexport default function DisableButton({\n isDisabling,\n handleClick,\n className,\n ...props\n}: DisableButtonProps) {\n return (\n \n {isDisabling ? (\n <>\n \n Disabling...\n \n ) : (\n 'Disable'\n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype UpdateButtonProps = {\n /** The updating boolean value determines the state of the button. */\n isUpdating: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The UpdateButton component is a button designed for initiating updates for downloaded extensions.\n * It includes visuals for active updating and idle states.\n *\n * @param isUpdating The updating boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to update.\n */\nexport default function UpdateButton({\n isUpdating,\n handleClick,\n className,\n ...props\n}: UpdateButtonProps) {\n return (\n \n {isUpdating ? (\n <>\n \n Updating...\n \n ) : (\n 'Update'\n )}\n \n );\n}\n","import { cn } from '@/utils/shadcn-ui.util';\nimport Markdown, { MarkdownToJSX } from 'markdown-to-jsx';\nimport { useMemo } from 'react';\n\ninterface MarkdownRendererProps {\n /** Optional unique identifier */\n id?: string;\n /** The markdown string to render */\n markdown: string;\n className?: string;\n /**\n * The [`target` attribute for `a` html\n * tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target). Defaults to not\n * adding a `target` to `a` tags\n */\n anchorTarget?: string;\n}\n\n/**\n * This component renders markdown content given a markdown string. It uses typography styles from\n * the platform.\n *\n * @param markdown The markdown string to render.\n * @param id Optional unique identifier\n * @returns A div containing the rendered markdown content.\n */\nexport default function MarkdownRenderer({\n id,\n markdown,\n className,\n anchorTarget,\n}: MarkdownRendererProps) {\n const options: MarkdownToJSX.Options = useMemo(\n () => ({\n overrides: {\n a: {\n props: {\n target: anchorTarget,\n },\n },\n },\n }),\n [anchorTarget],\n );\n return (\n
    \n {markdown}\n
    \n );\n}\n","import { Filter, ChevronDown } from 'lucide-react';\nimport { forwardRef } from 'react';\nimport { Button } from '@/components/shadcn-ui/button';\n\n/**\n * The FilterButton component is a button designed for initiating filtering of data. It is designed\n * to be used with the dropdown menu. It uses forwardRef to pass the button to the dropdown trigger\n * asChild.\n *\n * @returns A button that can be used to filter.\n */\nconst FilterButton = forwardRef((props, ref) => {\n return (\n \n \n Filter\n \n \n );\n});\n\nexport default FilterButton;\n","import {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuGroup,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport FilterButton from './buttons/filter-button.component';\n\nexport enum DropdownMenuItemType {\n Check,\n Radio,\n}\n\nexport type DropdownItem = {\n /** The label is the text that will be displayed on the dropdown item. */\n label: string;\n /** The itemType determines the DropdownMenuItemType type as either Check or Radio. */\n itemType: DropdownMenuItemType;\n /** The onClick function is called when the item is clicked. */\n onClick: () => void;\n};\n\nexport type DropdownGroup = {\n /**\n * The label is the text that will be displayed on the dropdown group. It is used to categorize\n * the items in the group.\n */\n label: string;\n /** The items array contains the items that will be displayed in the dropdown group */\n items: DropdownItem[];\n};\n\nexport type FilterDropdownProps = {\n /** Object unique identifier */\n id?: string;\n /** The groups array contains the groups that will be displayed in the dropdown */\n groups: DropdownGroup[];\n}; // TODO: extend the props later\n\n/**\n * The FilterDropdown component is a dropdown designed for filtering content. It includes groups of\n * items that can be checkboxes or radio items.\n *\n * @param id Optional unique identifier\n * @param groups The groups array contains the groups that will be displayed in the dropdown\n * @returns A filter dropdown.\n */\nexport default function FilterDropdown({ id, groups }: FilterDropdownProps) {\n return (\n
    \n {/* TODO: remove this once the DropDown Menu shadcn has an id prop */}\n \n \n \n \n \n {groups.map((group) => (\n
    \n {group.label}\n \n {group.items.map((item) => (\n
    \n {item.itemType === DropdownMenuItemType.Check ? (\n \n {item.label}\n \n ) : (\n \n {item.label}\n \n )}\n
    \n ))}\n
    \n \n
    \n ))}\n
    \n
    \n
    \n );\n}\n","interface NoExtensionsFoundProps {\n /** Optional unique identifier */\n id?: string;\n /** The message to display */\n message: string;\n}\n/**\n * This component displays a message to the user when no extensions are found in the marketplace.\n *\n * @param id Optional unique identifier\n * @param message The message to display.\n * @returns {JSX.Element} - Returns the message component that displays the message to the user.\n */\nexport default function NoExtensionsFound({ id, message }: NoExtensionsFoundProps) {\n return (\n
    \n
    \n

    {message}

    \n
    \n
    \n );\n}\n","import { CircleHelp, Link as LucideLink, User } from 'lucide-react';\nimport { NumberFormat } from 'platform-bible-utils';\n\n/** Interface that stores the parameters passed to the More Info component */\ninterface MoreInfoProps {\n /** Optional unique identifier */\n id?: string;\n /** The category of the extension */\n category: string;\n /** The number of downloads for the extension */\n downloads: Record;\n /** The languages supported by the extension */\n languages: string[];\n /** The URL to the more info page of the extension */\n moreInfoUrl: string;\n}\n/**\n * This component displays the more info section of the extension which includes the category,\n * number of downloads, languages, and links to the website and support\n *\n * @param id Optional unique identifier\n * @param category The category of the extension\n * @param downloads The number of downloads for the extension\n * @param languages The languages supported by the extension\n * @param moreInfoUrl The URL to the more info page of the extension\n * @returns {JSX.Element} - Returns the more info component that displays the category, number of\n * downloads, languages, and links to the website and support\n */\nexport default function MoreInfo({\n id,\n category,\n downloads,\n languages,\n moreInfoUrl,\n}: MoreInfoProps) {\n /**\n * This constant formats the number of downloads into a more readable format.\n *\n * @example 1000 -> 1K\n *\n * @example 1000000 -> 1M\n *\n * @returns The formatted number of downloads\n */\n const numberFormatted = new NumberFormat('en', {\n notation: 'compact',\n compactDisplay: 'short',\n }).format(Object.values(downloads).reduce((a: number, b: number) => a + b, 0));\n\n /** This function scrolls the window to the bottom of the page. */\n const handleScrollToBottom = () => {\n window.scrollTo(0, document.body.scrollHeight);\n };\n\n return (\n \n
    \n
    \n {category}\n
    \n CATEGORY\n
    \n
    \n
    \n
    \n \n {numberFormatted}\n
    \n USERS\n
    \n
    \n
    \n
    \n {languages.slice(0, 3).map((locale) => (\n \n {locale.toUpperCase()}\n \n ))}\n
    \n {languages.length > 3 && (\n handleScrollToBottom()}\n className=\"tw-text-xs tw-text-gray-500 tw-underline\"\n >\n +{languages.length - 3} more languages\n \n )}\n
    \n
    \n
    \n \n Website\n \n \n \n Support\n \n \n
    \n
    \n );\n}\n","import { useState } from 'react';\n\nexport type VersionInformation = {\n /** Date the version was published */\n date: string;\n /** Description of the changes in the version */\n description: string;\n};\n\n/** Type to store the version history information */\nexport type VersionHistoryType = Record;\n\n/** Interface that stores the parameters passed to the Version History component */\ninterface VersionHistoryProps {\n /** Optional unique identifier */\n id?: string;\n /** Object containing the versions mapped with their information */\n versionHistory: VersionHistoryType;\n}\n\n/**\n * Component to render the version history information shown in the footer component. Lists the 5\n * most recent versions, with the options to show all versions by pressing a button.\n *\n * @param versionHistory Object containing the versions mapped with their information\n * @param id Optional unique identifier\n * @returns Rendered version history for the Footer component\n */\nexport default function VersionHistory({ id, versionHistory }: VersionHistoryProps) {\n const [showAllVersions, setShowAllVersions] = useState(false);\n const currentDate = new Date();\n\n /**\n * Function to format the time string for the version history in the form of 'X year(s) ago'.\n *\n * @param dateString ISO Date string to determine the time string from\n * @returns Formatted time string\n */\n function formatTimeString(dateString: string) {\n const date = new Date(dateString);\n const dateDiff = new Date(currentDate.getTime() - date.getTime());\n const yearDiff = dateDiff.getUTCFullYear() - 1970;\n const monthDiff = dateDiff.getUTCMonth();\n const dayDiff = dateDiff.getUTCDate() - 1;\n\n // Determines how long ago the version was published\n let timeString = '';\n if (yearDiff > 0) {\n timeString = `${yearDiff.toString()} year${yearDiff === 1 ? '' : 's'} ago`;\n } else if (monthDiff > 0) {\n timeString = `${monthDiff.toString()} month${monthDiff === 1 ? '' : 's'} ago`;\n } else if (dayDiff === 0) {\n timeString = 'today';\n } else {\n timeString = `${dayDiff.toString()} day${dayDiff === 1 ? '' : 's'} ago`;\n }\n\n return timeString;\n }\n\n // Sorts the version history by version number\n const sortedEntries = Object.entries(versionHistory).sort((a, b) => b[0].localeCompare(a[0]));\n\n return (\n
    \n

    What`s New

    \n
      \n {(showAllVersions ? sortedEntries : sortedEntries.slice(0, 5)).map((entry) => (\n
      \n
      \n
    • \n {entry[1].description}\n
    • \n
      \n
      \n
      Version {entry[0]}
      \n
      {formatTimeString(entry[1].date)}
      \n
      \n
      \n ))}\n
    \n {sortedEntries.length > 5 && (\n setShowAllVersions(!showAllVersions)}\n className=\"tw-text-xs tw-text-gray-500 tw-underline\"\n >\n {showAllVersions ? 'Show Less Version History' : 'Show All Version History'}\n \n )}\n
    \n );\n}\n","import { useMemo } from 'react';\nimport { formatBytes } from 'platform-bible-utils';\nimport VersionHistory, { VersionHistoryType } from './version-history.component';\n\n/** Interface to store the parameters passed to the Footer component */\ninterface FooterProps {\n /** Optional unique identifier */\n id?: string;\n /** Name of the publisher */\n publisherDisplayName: string;\n /** Size of the extension file in bytes */\n fileSize: number;\n /** List of language codes supported by the extension */\n locales: string[];\n /** Object containing the version history mapped with their information */\n versionHistory: VersionHistoryType;\n}\n\n/**\n * Component to render the footer for the extension details which contains information on the\n * publisher, version history, languages, and file size.\n *\n * @param id Optional unique identifier\n * @param publisherDisplayName Name of the publisher\n * @param fileSize Size of the extension file in bytes\n * @param locales List of language codes supported by the extension\n * @param versionHistory Object containing the version history mapped with their information\n * @returns The rendered Footer component\n */\nexport default function Footer({\n id,\n publisherDisplayName,\n fileSize,\n locales,\n versionHistory,\n}: FooterProps) {\n /** Formats the file size into a human-readable format */\n const formattedFileSize = useMemo(() => formatBytes(fileSize), [fileSize]);\n\n /**\n * This function gets the display names of the languages based on the language codes.\n *\n * @param codes The list of language codes\n * @returns The list of language names\n */\n const getLanguageNames = (codes: string[]) => {\n const displayNames = new Intl.DisplayNames(navigator.language, { type: 'language' });\n return codes.map((code) => displayNames.of(code));\n };\n\n const languageNames = getLanguageNames(locales);\n\n return (\n
    \n
    \n \n
    \n
    \n

    Information

    \n
    \n

    \n Publisher\n {publisherDisplayName}\n Size\n {formattedFileSize}\n

    \n
    \n

    \n Languages\n {languageNames.join(', ')}\n

    \n
    \n
    \n
    \n
    \n
    \n );\n}\n","import ComboBox from '@/components/basics/combo-box.component';\nimport Spinner from '@/components/basics/spinner.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Card,\n CardContent,\n CardDescription,\n CardHeader,\n CardTitle,\n} from '@/components/shadcn-ui/card';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Label } from '@/components/shadcn-ui/label';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport {\n BookOpen,\n ChevronDown,\n ChevronsUpDown,\n ChevronUp,\n Ellipsis,\n Loader,\n Search,\n} from 'lucide-react';\n\nimport {\n DblResourceData,\n getErrorMessage,\n LanguageStrings,\n LocalizeKey,\n ResourceType,\n} from 'platform-bible-utils';\nimport { useEffect, useMemo, useState } from 'react';\n\nexport const FILTERABLE_RESOURCE_LIST_STRING_KEYS: LocalizeKey[] = [\n '%resources_action%',\n '%resources_dialog_subtitle%',\n '%resources_dialog_title%',\n '%resources_filterInput%',\n '%resources_fullName%',\n '%resources_get%',\n '%resources_installed%',\n '%resources_language%',\n '%resources_languageFilter%',\n '%resources_loadingResources%',\n '%resources_noResults%',\n '%resources_open%',\n '%resources_remove%',\n '%resources_size%',\n '%resources_type%',\n '%resources_type_DBL%',\n '%resources_type_ER%',\n '%resources_type_SLR%',\n '%resources_type_XR%',\n '%resources_type_unknown%',\n '%resources_update%',\n];\n\ntype InstallInfo = {\n dblEntryUid: string;\n action: 'installing' | 'removing';\n};\n\ntype SortConfig = {\n key: 'fullName' | 'bestLanguageName';\n direction: 'ascending' | 'descending';\n};\n\ntype TypeOptions = {\n type: ResourceType;\n localizedValue: string;\n};\n\nconst getLanguageOptions = (\n dblResources: DblResourceData[],\n languageFilter: string[],\n): string[] => {\n const sortedLanguages = Array.from(\n new Set(dblResources.map((resource) => resource.bestLanguageName)),\n );\n\n const prioritizedLanguages = new Set(\n languageFilter.concat(\n dblResources\n .filter((resource) => resource.installed)\n .map((resource) => resource.bestLanguageName),\n ),\n );\n\n return sortedLanguages.sort((a, b) => {\n const aIsPrioritized = prioritizedLanguages.has(a);\n const bIsPrioritized = prioritizedLanguages.has(b);\n\n if (aIsPrioritized && bIsPrioritized) {\n return a.localeCompare(b);\n }\n if (aIsPrioritized) return -1;\n if (bIsPrioritized) return 1;\n\n return a.localeCompare(b);\n });\n};\n\nconst getActionButtonContent = (\n resource: DblResourceData,\n buttonText: string,\n installResource: (dblEntryUid: string, action: 'install' | 'remove') => void,\n) => {\n return (\n \n );\n};\n\nconst getActionContent = (\n resource: DblResourceData,\n idsBeingHandled: string[],\n getText: string,\n updateText: string,\n installedText: string,\n installResource: (dblEntryUid: string, action: 'install' | 'remove') => void,\n) => {\n const isBeingHandled = idsBeingHandled.includes(resource.dblEntryUid);\n if (isBeingHandled) {\n return (\n \n );\n }\n if (!resource.installed) {\n return getActionButtonContent(resource, getText, installResource);\n }\n if (resource.updateAvailable) {\n return getActionButtonContent(resource, updateText, installResource);\n }\n return ;\n};\n\ntype FilterableResourceListProps = {\n localizedStrings: LanguageStrings;\n dblResources: DblResourceData[];\n isLoadingDblResources: boolean;\n typeFilter: ResourceType[];\n setTypeFilter: (stateValue: ResourceType[]) => void;\n languageFilter: string[];\n setLanguageFilter: (stateValue: string[]) => void;\n openResource: (projectId: string) => void;\n installResource: ((uid: string) => Promise) | undefined;\n uninstallResource: ((uid: string) => Promise) | undefined;\n};\n\nfunction FilterableResourceList({\n localizedStrings,\n dblResources,\n isLoadingDblResources,\n typeFilter,\n setTypeFilter,\n languageFilter,\n setLanguageFilter,\n openResource,\n installResource,\n uninstallResource,\n}: FilterableResourceListProps) {\n const actionText: string = localizedStrings['%resources_action%'];\n const dialogSubtitleText: string = localizedStrings['%resources_dialog_subtitle%'];\n const dialogTitleText: string = localizedStrings['%resources_dialog_title%'];\n const filterInputText: string = localizedStrings['%resources_filterInput%'];\n const fullNameText: string = localizedStrings['%resources_fullName%'];\n const getText: string = localizedStrings['%resources_get%'];\n const installedText: string = localizedStrings['%resources_installed%'];\n const languageText: string = localizedStrings['%resources_language%'];\n const languageFilterText: string = localizedStrings['%resources_languageFilter%'];\n const loadingResourcesText: string = localizedStrings['%resources_loadingResources%'];\n const noResultsText: string = localizedStrings['%resources_noResults%'];\n const openText: string = localizedStrings['%resources_open%'];\n const removeText: string = localizedStrings['%resources_remove%'];\n const sizeText: string = localizedStrings['%resources_size%'];\n const typeText: string = localizedStrings['%resources_type%'];\n const typeDblText: string = localizedStrings['%resources_type_DBL%'];\n const typeErText: string = localizedStrings['%resources_type_ER%'];\n const typeSlrText: string = localizedStrings['%resources_type_SLR%'];\n const typeXrText: string = localizedStrings['%resources_type_XR%'];\n const typeUnknownText: string = localizedStrings['%resources_type_unknown%'];\n const updateText: string = localizedStrings['%resources_update%'];\n\n const [installInfo, setInstallInfo] = useState([]);\n\n const installOrRemoveResource = (dblEntryUid: string, action: 'install' | 'remove'): void => {\n if (!installResource || !uninstallResource) return;\n const newInstallInfo: InstallInfo = {\n dblEntryUid,\n action: action === 'install' ? 'installing' : 'removing',\n };\n\n setInstallInfo((prevInfo) => [...prevInfo, newInstallInfo]);\n\n const actionFunction = action === 'install' ? installResource : uninstallResource;\n\n actionFunction(dblEntryUid).catch((error) => {\n console.debug(getErrorMessage(error));\n });\n };\n\n /** Removes resources from array of resources that are currently being handled */\n useEffect(() => {\n setInstallInfo((currentInstallInfo) =>\n currentInstallInfo.filter((info) => {\n const resource = dblResources.find((res) => res.dblEntryUid === info.dblEntryUid);\n\n if (!resource) return true;\n\n if (info.action === 'installing' && resource.installed) return false;\n if (info.action === 'removing' && !resource.installed) return false;\n\n return true;\n }),\n );\n }, [dblResources]);\n\n const [textFilter, setTextFilter] = useState('');\n\n const textFilteredResources = useMemo(() => {\n return dblResources.filter((resource) => {\n const filter = textFilter.toLowerCase();\n return (\n resource.displayName.toLowerCase().includes(filter) ||\n resource.fullName.toLowerCase().includes(filter) ||\n resource.bestLanguageName.toLowerCase().includes(filter)\n );\n });\n }, [dblResources, textFilter]);\n\n const typeOptions: TypeOptions[] = useMemo(() => {\n return [\n { type: 'DBLResource', localizedValue: typeDblText },\n { type: 'EnhancedResource', localizedValue: typeErText },\n { type: 'SourceLanguageResource', localizedValue: typeSlrText },\n { type: 'XmlResource', localizedValue: typeXrText },\n ];\n }, [typeDblText, typeErText, typeSlrText, typeXrText]);\n\n const typeFilterChangeHandler = (newType: ResourceType): void => {\n const prevTypeFilter: ResourceType[] = [...typeFilter];\n let newTypeFilter: ResourceType[] = [];\n\n if (!prevTypeFilter || prevTypeFilter.length === 0) {\n newTypeFilter = [newType];\n } else {\n newTypeFilter = prevTypeFilter.includes(newType)\n ? prevTypeFilter.filter((value) => value !== newType)\n : [...prevTypeFilter, newType];\n }\n setTypeFilter(newTypeFilter);\n };\n\n const textAndTypeFilteredResources = useMemo(() => {\n return textFilteredResources.filter((resource) => {\n return typeFilter.includes(resource.type);\n });\n }, [textFilteredResources, typeFilter]);\n\n useEffect(() => {\n if (languageFilter.length === 0) {\n setLanguageFilter(\n dblResources\n .filter((resource) => resource.installed === true)\n .map((resource) => resource.bestLanguageName),\n );\n }\n }, [dblResources, languageFilter.length, setLanguageFilter]);\n\n const languageFilterChangeHandler = (newLanguage: string): void => {\n const prevLanguageFilter: string[] = [...languageFilter];\n let newLanguageFilter: string[] = [];\n\n if (!prevLanguageFilter || prevLanguageFilter.length === 0) {\n newLanguageFilter = [newLanguage];\n } else {\n newLanguageFilter = prevLanguageFilter.includes(newLanguage)\n ? prevLanguageFilter.filter((value) => value !== newLanguage)\n : [...prevLanguageFilter, newLanguage];\n }\n setLanguageFilter(newLanguageFilter);\n };\n\n const textAndTypeAndLanguageFilteredResources = useMemo(() => {\n return textAndTypeFilteredResources.filter((resource) => {\n return languageFilter.includes(resource.bestLanguageName);\n });\n }, [languageFilter, textAndTypeFilteredResources]);\n\n const [sortConfig, setSortConfig] = useState({\n key: 'bestLanguageName',\n direction: 'ascending',\n });\n\n const sortedResources = useMemo(() => {\n return [...textAndTypeAndLanguageFilteredResources].sort((a, b) => {\n const aValue = a[sortConfig.key];\n const bValue = b[sortConfig.key];\n\n if (aValue < bValue) {\n return sortConfig.direction === 'ascending' ? -1 : 1;\n }\n if (aValue > bValue) {\n return sortConfig.direction === 'ascending' ? 1 : -1;\n }\n return 0;\n });\n }, [sortConfig.direction, sortConfig.key, textAndTypeAndLanguageFilteredResources]);\n\n const handleSort = (key: SortConfig['key']) => {\n const newSortConfig: SortConfig = { key, direction: 'ascending' };\n if (sortConfig.key === key && sortConfig.direction === 'ascending') {\n newSortConfig.direction = 'descending';\n }\n setSortConfig(newSortConfig);\n };\n\n return (\n \n \n
    \n \n
    \n {dialogTitleText}\n {dialogSubtitleText}\n
    \n
    \n
    \n \n {isLoadingDblResources || !dblResources ? (\n
    \n \n \n
    \n ) : (\n
    \n
    \n
    \n setTextFilter(event.target.value)}\n value={textFilter}\n placeholder={filterInputText}\n />\n \n
    \n \n \n \n \n \n {typeOptions.map((option) => (\n {\n e.preventDefault();\n typeFilterChangeHandler(option.type);\n }}\n >\n {option.localizedValue}\n \n ))}\n \n \n \n
    \n\n {sortedResources.length === 0 ? (\n
    \n \n
    \n ) : (\n \n \n \n \n \n handleSort('fullName')}>\n
    \n {fullNameText}\n {sortConfig.key !== 'fullName' && (\n \n )}\n {sortConfig.key === 'fullName' &&\n (sortConfig.direction === 'ascending' ? (\n \n ) : (\n \n ))}\n
    \n
    \n handleSort('bestLanguageName')}>\n
    \n {languageText}\n {sortConfig.key !== 'bestLanguageName' && (\n \n )}\n {sortConfig.key === 'bestLanguageName' &&\n (sortConfig.direction === 'ascending' ? (\n \n ) : (\n \n ))}\n
    \n
    \n {typeText}\n {sizeText}\n {actionText}\n
    \n
    \n \n {sortedResources.map((resource) => (\n \n \n \n \n {resource.displayName}\n {resource.fullName}\n {resource.bestLanguageName}\n \n {typeOptions.find((type) => type.type === resource.type)?.localizedValue ??\n typeUnknownText}\n \n {resource.size}\n \n
    \n {getActionContent(\n resource,\n installInfo.map((info) => info.dblEntryUid),\n getText,\n updateText,\n installedText,\n installOrRemoveResource,\n )}\n {resource.installed && (\n \n \n \n \n \n openResource(resource.projectId)}>\n {openText}\n \n\n \n \n installOrRemoveResource(resource.dblEntryUid, 'remove')\n }\n >\n {removeText}\n \n \n \n )}\n
    \n
    \n
    \n ))}\n
    \n
    \n )}\n
    \n )}\n
    \n
    \n );\n}\n\nexport default FilterableResourceList;\n","import { useState } from 'react';\nimport { LocalizedStringValue } from 'platform-bible-utils';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../shadcn-ui/select';\nimport { Label } from '../shadcn-ui/label';\n\n/**\n * Immutable array containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const UI_LANGUAGE_SELECTOR_STRING_KEYS = Object.freeze([\n '%settings_uiLanguageSelector_selectFallbackLanguages%',\n] as const);\n\nexport type UiLanguageSelectorLocalizedStrings = {\n [localizedUiLanguageSelectorKey in (typeof UI_LANGUAGE_SELECTOR_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: UiLanguageSelectorLocalizedStrings,\n key: keyof UiLanguageSelectorLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\nexport type LanguageInfo = {\n /** The name of the language to be displayed (in its native script) */\n autonym: string;\n /**\n * The name of the language in other languages, so that the language can also be displayed in the\n * current UI language, if known.\n */\n uiNames?: Record;\n /**\n * Other known names of the language (for searching). This can include pejorative names and should\n * never be displayed unless typed by the user.\n */\n otherNames?: string[];\n};\n\nexport type UiLanguageSelectorProps = {\n /** Full set of known languages to display. The keys are valid BCP-47 tags. */\n knownUiLanguages: Record;\n /** IETF BCP-47 language tag of the current primary UI language. `undefined` => 'en' */\n primaryLanguage: string;\n /**\n * Ordered list of fallback language tags to use if the localization key can't be found in the\n * current primary UI language. This list never contains English ('en') because it is the ultimate\n * fallback.\n */\n fallbackLanguages: string[] | undefined;\n /**\n * Handler for when either the primary or the fallback languages change (or both). For this\n * handler, the primary UI language is the first one in the array, followed by the fallback\n * languages in order of decreasing preference.\n */\n onLanguagesChange?: (newUiLanguages: string[]) => void;\n /** Handler for the primary language changes. */\n onPrimaryLanguageChange?: (newPrimaryUiLanguage: string) => void;\n /**\n * Handler for when the fallback languages change. The array contains the fallback languages in\n * order of decreasing preference.\n */\n onFallbackLanguagesChange?: (newFallbackLanguages: string[]) => void;\n /**\n * Map whose keys are localized string keys as contained in UI_LANGUAGE_SELECTOR_STRING_KEYS and\n * whose values are the localized strings (in the current UI language).\n */\n localizedStrings: UiLanguageSelectorLocalizedStrings;\n /** Additional css classes to help with unique styling of the control */\n className?: string;\n};\n\nexport default function UiLanguageSelector({\n knownUiLanguages,\n primaryLanguage = 'en',\n fallbackLanguages = [],\n onLanguagesChange,\n onPrimaryLanguageChange,\n onFallbackLanguagesChange,\n localizedStrings,\n className,\n}: UiLanguageSelectorProps) {\n const selectFallbackLanguagesText = localizeString(\n localizedStrings,\n '%settings_uiLanguageSelector_selectFallbackLanguages%',\n );\n const [isOpen, setIsOpen] = useState(false);\n\n const handleLanguageChange = (code: string) => {\n if (onPrimaryLanguageChange) onPrimaryLanguageChange(code);\n // REVIEW: Should fallback languages be preserved when primary language changes?\n if (onLanguagesChange)\n onLanguagesChange([code, ...fallbackLanguages.filter((lang) => lang !== code)]);\n if (onFallbackLanguagesChange && fallbackLanguages.find((l) => l === code))\n onFallbackLanguagesChange([...fallbackLanguages.filter((lang) => lang !== code)]);\n setIsOpen(false); // Close the dropdown when a selection is made\n };\n\n /**\n * Gets the display name for the given language. This will typically include the autonym (in the\n * native script), along with the name of the language in the current UI locale if known, with a\n * fallback to the English name (if known).\n *\n * @param {string} lang - The BCP-47 code of the language whose display name is being requested.\n * @param {string} uiLang - The BCP-47 code of the current user-interface language used used to\n * try to look up the name of the language in a form that is likely to be helpful to the user if\n * they do not recognize the autonym.\n * @returns {string} The display name of the language.\n */\n const getLanguageDisplayName = (lang: string, uiLang: string) => {\n const altName =\n uiLang !== lang\n ? (knownUiLanguages[lang]?.uiNames?.[uiLang] ?? knownUiLanguages[lang]?.uiNames?.en)\n : undefined;\n\n return altName\n ? `${knownUiLanguages[lang]?.autonym} (${altName})`\n : knownUiLanguages[lang]?.autonym;\n };\n\n return (\n
    \n {/* Language Selector */}\n setIsOpen(open)}\n >\n \n \n \n \n {Object.keys(knownUiLanguages).map((key) => {\n return (\n \n {getLanguageDisplayName(key, primaryLanguage)}\n \n );\n })}\n \n \n\n {/* Fallback Language Button */}\n {primaryLanguage !== 'en' && (\n <>\n \n
    \n {/* Do not localize or \"improve\". This label is temporary. */}\n \n {/* \n Something like this will be added once UX decides exactly what they want.\n */}\n
    \n \n )}\n
    \n );\n}\n","import { PlatformEvent, PlatformEventHandler } from 'platform-bible-utils';\nimport { useEffect } from 'react';\n\n/**\n * Adds an event handler to an event so the event handler runs when the event is emitted. Use\n * `papi.network.getNetworkEvent` to use a networked event with this hook.\n *\n * @param event The event to subscribe to.\n *\n * - If event is a `PlatformEvent`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEvent = (\n event: PlatformEvent | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n useEffect(() => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return () => {};\n\n const unsubscriber = event(eventHandler);\n return () => {\n unsubscriber();\n };\n }, [event, eventHandler]);\n};\nexport default useEvent;\n","import { useCallback, useEffect } from 'react';\nimport { PlatformEvent, PlatformEventAsync, PlatformEventHandler } from 'platform-bible-utils';\nimport usePromise from './use-promise.hook';\n\nconst noopUnsubscriber = () => false;\n\n/**\n * Adds an event handler to an asynchronously subscribing/unsubscribing event so the event handler\n * runs when the event is emitted. Use `papi.network.getNetworkEvent` to use a networked event with\n * this hook.\n *\n * @param event The asynchronously (un)subscribing event to subscribe to.\n *\n * - If event is a `PlatformEvent` or `PlatformEventAsync`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEventAsync = (\n event: PlatformEvent | PlatformEventAsync | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n // Subscribe to the event asynchronously\n const [unsubscribe] = usePromise(\n useCallback(async () => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return noopUnsubscriber;\n\n // Wrap subscribe and unsubscribe in promises to allow normal events to be used as well\n const unsub = await Promise.resolve(event(eventHandler));\n return async () => unsub();\n }, [eventHandler, event]),\n noopUnsubscriber,\n // We want the unsubscriber to return to default value immediately upon changing subscription\n // So the useEffect below will unsubscribe asap\n { preserveValue: false },\n );\n\n // Unsubscribe from the event asynchronously (but we aren't awaiting the unsub)\n useEffect(() => {\n return () => {\n if (unsubscribe !== noopUnsubscriber) {\n unsubscribe();\n }\n };\n }, [unsubscribe]);\n};\n\nexport default useEventAsync;\n"],"names":["twMergeCustom","extendTailwindMerge","cn","inputs","clsx","Input","React","className","type","props","ref","jsx","STORAGE_KEY","readDirection","retrieved","BookChapterInput","forwardRef","handleSearch","handleKeyDown","handleOnClick","handleSubmit","dir","jsxs","event","e","History","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","inset","children","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","P","R","s","n","N","B","O","S","K","g","k","x","T","X","V","w","L","G","A","H","C","I","y","q","U","m","l","h","c","E","D","i","a","o","u","v","f","d","b","p","J","BookMenuItem","bookId","handleSelectBook","isSelected","handleHighlightBook","bookType","Canon","ChapterSelect","handleSelectChapter","endChapter","activeChapter","highlightedChapter","handleHighlightedChapter","chapters","_","handleMouse","useCallback","chapterNumber","chapter","GoToMenuItem","handleSort","handleLocationHistory","handleBookmarks","ArrowDownWideNarrow","Clock","Bookmark","ALL_BOOK_IDS","BOOK_TYPE_LABELS","BOOK_TYPE_ARRAY","SCROLL_OFFSET","SEARCH_QUERY_FORMATS","fetchGroupedBooks","fetchEndChapter","getChaptersForBook","getAllEnglishNames","isValidBookEnglishName","bookName","getBookIdFromEnglishName","formattedBookName","BookChapterControl","scrRef","searchQuery","setSearchQuery","useState","selectedBookId","setSelectedBookId","setHighlightedChapter","highlightedBookId","setHighlightedBookId","isContentOpen","setIsContentOpen","isContentOpenDelayed","setIsContentOpenDelayed","inputRef","useRef","contentRef","menuItemRef","fetchFilteredBooks","englishNameLowerCase","normalizedQuery","handleSearchInput","searchString","shouldPreventAutoClosing","controlMenuState","open","updateReference","shouldClose","verse","handleInputSubmit","format","matches","book","englishName","handleKeyDownInput","handleKeyDownContent","key","handleKeyDownMenuItem","upOneChapter","downOneChapter","chapterOffSet","useEffect","useLayoutEffect","scrollTimeout","scrollPosition","bookTypeIndex","element","buttonVariants","cva","Button","variant","size","asChild","Slot","labelVariants","Label","LabelPrimitive","RadioGroup","RadioGroupPrimitive","RadioGroupItem","Popover","PopoverPrimitive","PopoverTrigger","PopoverContent","align","DialogPortal","DialogPrimitive","DialogOverlay","DialogContent","DialogTitle","DialogDescription","Command","CommandPrimitive","CommandInput","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","getOptionLabelDefault","option","ComboBox","id","options","buttonClassName","popoverContentClassName","value","onChange","getOptionLabel","icon","buttonPlaceholder","textPlaceholder","commandEmptyMessage","buttonVariant","alignDropDown","isDisabled","setOpen","ChevronsUpDown","ChapterRangeSelector","startChapter","handleSelectStartChapter","handleSelectEndChapter","chapterCount","chapterOptions","useMemo","index","Fragment","BookSelectionMode","BOOK_SELECTOR_STRING_KEYS","localizeString","strings","BookSelector","handleBookSelectionModeChange","currentBookName","onSelectBooks","selectedBookIds","localizedStrings","currentBookText","chooseText","chooseBooksText","bookSelectionMode","setBookSelectionMode","onSelectionModeChange","newMode","DataTableViewOptions","table","FilterIcon","column","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator","DataTablePagination","pageSize","ArrowLeftIcon","ChevronLeftIcon","ChevronRightIcon","ArrowRightIcon","Table","stickyHeader","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","DataTable","columns","data","enablePagination","showPaginationControls","showColumnVisibilityControls","onRowClickHandler","sorting","setSorting","columnFilters","setColumnFilters","columnVisibility","setColumnVisibility","rowSelection","setRowSelection","useReactTable","getCoreRowModel","getPaginationRowModel","getSortedRowModel","getFilteredRowModel","headerGroup","header","flexRender","_a","row","cell","OccurrencesTable","occurrenceData","setScriptureReference","referenceHeaderText","occurrenceHeaderText","occurrences","uniqueOccurrences","occurrence","uniqueOccurrence","deepEqual","Checkbox","CheckboxPrimitive","getLinesFromUSFM","text","getNumberFromUSFM","regex","match","getBookNumFromId","getStatusForItem","item","approvedItems","unapprovedItems","toggleVariants","Toggle","TogglePrimitive","ToggleGroupContext","ToggleGroup","ToggleGroupPrimitive","ToggleGroupItem","context","getSortingIcon","sortDirection","ArrowUpIcon","ArrowDownIcon","ArrowUpDownIcon","inventoryItemColumn","itemLabel","inventoryAdditionalItemColumn","additionalItemLabel","additionalItemIndex","inventoryCountColumn","countLabel","statusChangeHandler","changedItems","newStatus","onApprovedItemsChange","onUnapprovedItemsChange","newApprovedItems","validItem","newUnapprovedItems","unapprovedItem","inventoryStatusColumn","statusLabel","status","CircleCheckIcon","CircleXIcon","CircleHelpIcon","INVENTORY_STRING_KEYS","filterItemData","itemData","statusFilter","textFilter","filteredItemData","createTableData","scriptureRef","itemRegex","tableData","currentBook","currentChapter","currentVerse","line","items","itemIndex","existingItem","tableEntry","newReference","substring","newItem","Inventory","scriptureReference","extractItems","additionalItemsLabels","scope","onScopeChange","allItemsText","approvedItemsText","unapprovedItemsText","unknownItemsText","scopeBookText","scopeChapterText","scopeVerseText","filterText","showAdditionalItemsText","showAdditionalItems","setShowAdditionalItems","setStatusFilter","setTextFilter","selectedItem","setSelectedItem","reducedTableData","newTableData","firstItem","existingEntry","newTableEntry","filteredTableData","allColumns","numberOfAdditionalItems","additionalColumns","_b","rowClickHandler","newSelection","handleScopeChange","handleStatusFilterChange","MultiSelectComboBox","entries","getEntriesCount","selected","placeholder","customSelectedText","sortSelected","handleSelect","getPlaceholderText","sortedOptions","starredItems","opt","nonStarredItems","aSelected","bSelected","count","Star","SearchBar","onSearch","isFullWidth","handleInputChange","VerticalTabs","TabsPrimitive","VerticalTabsList","VerticalTabsTrigger","VerticalTabsContent","TabNavigationContentSearch","tabList","searchPlaceholder","headerTitle","searchClassName","tab","Separator","orientation","decorative","SeparatorPrimitive","Skeleton","TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","SIDEBAR_WIDTH","SIDEBAR_WIDTH_ICON","SidebarContext","useSidebar","SidebarProvider","defaultOpen","openProp","setOpenProp","style","side","_open","_setOpen","isOpen","openState","toggleSidebar","state","directionAwareSide","contextValue","Sidebar","collapsible","SidebarTrigger","onClick","PanelLeft","PanelRight","SidebarRail","SidebarInset","SidebarInput","SidebarHeader","SidebarFooter","SidebarSeparator","SidebarContent","SidebarGroup","SidebarGroupLabel","SidebarGroupAction","SidebarGroupContent","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","SidebarMenuButton","isActive","tooltip","Comp","button","SidebarMenuAction","showOnHover","SidebarMenuBadge","SidebarMenuSkeleton","showIcon","width","SidebarMenuSub","SidebarMenuSubItem","SidebarMenuSubButton","SettingsSidebar","extensionLabels","projectInfo","handleSelectSidebarItem","selectedSidebarItem","extensionsSidebarGroupLabel","projectsSidebarGroupLabel","buttonPlaceholderText","handleSelectItem","projectId","getProjectNameFromProjectId","project","info","getIsActive","label","selectedProjectName","SettingsSidebarContentSearch","scrBookColId","scrRefColId","typeColId","detailsColId","defaultScrRefColumnName","defaultScrBookGroupName","defaultTypeColumnName","defaultDetailsColumnName","getColumns","colInfo","showSourceColumn","showSrcCol","formatScrRef","compareScrRefs","toRefOrRange","scriptureSelection","offsetStart","offsetEnd","scrRefToBBBCCCVVV","getRowKey","ScriptureResultsViewer","sources","showColumnHeaders","scriptureReferenceColumnName","scriptureBookGroupName","typeColumnName","detailsColumnName","onRowSelected","grouping","setGrouping","scriptureResults","source","getExpandedRowModel","getGroupedRowModel","selectedRows","keys","selectedRow","scrBookGroupName","typeGroupName","groupingOptions","handleSelectChange","selectedGrouping","handleRowClick","getEvenOrOddBandingStyle","getIndent","groupingState","rowIndex","ChevronLeft","DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS","getLocalizeKeyForScrollGroupId","ScrollGroupSelector","availableScrollGroupIds","scrollGroupId","onChangeScrollGroupId","localizedStringsDefaulted","localizedStringKey","localizedStringValue","newScrollGroupString","scrollGroupOptionId","SettingsList","SettingsListItem","primary","secondary","isLoading","loadingMessage","SettingsListHeader","includeSeparator","Checklist","listItems","selectedListItems","handleSelectListItem","createLabel","_interopRequireDefault","obj","module","chainPropTypes","propType1","propType2","args","_extends","target","isPlainObject","prototype","deepClone","output","deepmerge","r","t","z","reactIs_production_min","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","require$$0","require$$1","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","order2","test3","letter","objectAssign","from","to","symbols","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","entry","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","isClassComponent","elementType","acceptingRef","safePropName","warningHint","elementAcceptingRef","PropTypes","elementAcceptingRef$1","specialProperty","exactProp","propTypes","unsupportedProps","prop","formatMuiErrorMessage","code","url","REACT_SERVER_CONTEXT_TYPE","REACT_OFFSCREEN_TYPE","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","SuspenseList","hasWarnedAboutDeprecatedIsConcurrentMode","isSuspenseList","fnNameMatchRegex","getFunctionName","fn","getFunctionComponentName","Component","fallback","getWrappedName","outerType","innerType","wrapperName","functionName","getDisplayName","HTMLElementType","refType","refType$1","capitalize","string","_formatMuiErrorMessage","createChainedFunction","funcs","acc","func","debounce","wait","timeout","debounced","later","deprecatedPropType","validator","reason","componentNameSafe","propFullNameSafe","isMuiElement","muiNames","_muiName","_element$type","ownerDocument","node","ownerWindow","requirePropFactory","componentNameInError","prevPropTypes","requiredProp","defaultTypeChecker","typeCheckerResult","setRef","useEnhancedEffect","useEnhancedEffect$1","globalId","useGlobalId","idOverride","defaultId","setDefaultId","maybeReactUseId","useId","reactId","unsupportedProp","useControlled","controlled","defaultProp","name","isControlled","valueState","setValue","defaultValue","setValueIfUncontrolled","newValue","useEventCallback","useForkRef","refs","instance","UNINITIALIZED","useLazyRef","init","initArg","EMPTY","useOnMount","Timeout","delay","useTimeout","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","focusTriggersKeyboardModality","tagName","handlePointerDown","handleVisibilityChange","prepare","doc","isFocusVisible","useIsFocusVisible","isFocusVisibleRef","handleBlurVisible","handleFocusVisible","resolveProps","defaultProps","defaultSlotProps","slotProps","slotPropName","composeClasses","slots","getUtilityClass","classes","slot","utilityClass","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","ClassNameGenerator$1","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","result","clamp","min","max","_objectWithoutPropertiesLoose","excluded","sourceKeys","_excluded","sortBreakpointsValues","breakpointsAsArray","breakpoint1","breakpoint2","createBreakpoints","breakpoints","unit","other","sortedValues","up","down","between","start","end","endIndex","only","not","keyIndex","shape","shape$1","responsivePropType","responsivePropType$1","merge","defaultBreakpoints","handleBreakpoints","styleFromPropValue","theme","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","getStyleValue","themeMapping","transform","propValueFinal","userValue","cssProperty","themeKey","memoize","cache","arg","properties","directions","aliases","getCssProperties","property","direction","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","_getPath","themeSpacing","abs","createUnarySpacing","getValue","transformer","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","padding","createSpacing","spacingInput","spacing","argsInput","argument","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","maxWidth","_props$theme","_props$theme2","breakpointsValues","minWidth","height","maxHeight","minHeight","boxSizing","defaultSxConfig","defaultSxConfig$1","objectsHaveSameKeys","objects","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","sx","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","css","styleKey","styleFunctionSx$1","applyStyles","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","defaultTheme","contextTheme","ThemeContext","systemDefaultTheme","useThemeWithoutDefault","_excluded2","_excluded3","isEmpty","isStringTag","tag","shouldForwardProp","lowercaseFirstLetter","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","_ref","ownerState","resolvedStylesArg","resolvedStyle","variants","isMatch","createStyled","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","inputOptions","processStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","skipVariantsResolver","skipSx","shouldForwardPropOption","defaultStyledResolver","styledEngineStyled","transformStyleArg","stylesArg","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","displayName","getThemeProps","params","useThemeProps","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","recomposeColor","hslToRgb","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","mixins","common","common$1","grey","grey$1","purple","purple$1","red","red$1","orange","orange$1","blue","blue$1","lightBlue","lightBlue$1","green","green$1","light","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","getDefaultPrimary","mode","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","palette","contrastThreshold","success","warning","getContrastText","contrastText","contrast","augmentColor","mainShade","lightShade","darkShade","modes","round","caseAllCaps","defaultFontFamily","createTypography","typography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","shadows$1","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","isString","isNumber","animatedProp","zIndex","zIndex$1","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","stateClasses","component","child","stateClass","defaultTheme$1","THEME_ID","systemUseThemeProps","styled","styled$1","getSvgIconUtilityClass","useUtilityClasses","SvgIconRoot","_theme$transitions","_theme$transitions$cr","_theme$transitions2","_theme$typography","_theme$typography$pxT","_theme$typography2","_theme$typography2$px","_theme$typography3","_theme$typography3$px","_palette$ownerState$c","_palette","_palette2","_palette3","SvgIcon","inProps","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","_jsxs","_jsx","SvgIcon$1","createSvgIcon","unstable_ClassNameGenerator","exports","_utils","ArrowRight","default_1","_createSvgIcon","_jsxRuntime","isHostComponent","appendOwnerState","otherProps","defaultContextValue","ClassNameConfiguratorContext","useClassNamesOverride","disableDefaultClasses","extractEventHandlers","excludeKeys","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","mergedProps","internalRef","GLOBAL_CLASS_PREFIX","buildStateClass","buildSlotClass","getContainer","container","forwardedRef","disablePortal","mountNode","setMountNode","handleRef","newProps","ReactDOM","top","bottom","right","left","auto","basePlacements","clippingParents","viewport","popper","reference","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","getWindow","OwnElement","isHTMLElement","isShadowRoot","attributes","effect","_ref2","initialStyles","styleProperties","attribute","applyStyles$1","getBasePlacement","getUAString","uaData","isLayoutViewport","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","visualViewport","addVisualOffsets","getLayoutRect","contains","parent","rootNode","next","getComputedStyle","isTableElement","getDocumentElement","getParentNode","getTrueOffsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","getOffsetParent","window","offsetParent","getMainAxisFromPlacement","within","mathMax","mathMin","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","hashMap","toPaddingObject","arrow","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","axis","isVertical","len","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","center","offset","axisProp","_options$element","arrow$1","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles$1","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","eventListeners","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","getViewportRect","strategy","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","rect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","_i","fittingPlacement","_ret","flip$1","getSideOffsets","preventedOffsets","isAnySideFullyClipped","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide$1","distanceAndSkiddingToXY","rects","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset$1","popperOffsets$1","getAltAxis","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","altAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow$1","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","documentElement","order","modifiers","map","visited","modifier","sort","requires","dep","depModifier","orderModifiers","orderedModifiers","phase","pending","resolve","mergeByName","merged","current","existing","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptionsAction","cleanupModifierEffects","runModifierEffects","_state$elements","_state$orderedModifie","_state$orderedModifie2","_ref$options","cleanupFn","noopFn","createPopper","COMPONENT_NAME","getPopperUtilityClass","flipPlacement","resolveAnchorEl","anchorEl","isVirtualElement","defaultPopperOptions","PopperTooltip","_slots$root","initialPlacement","popperOptions","popperRefProp","TransitionProps","tooltipRef","ownRef","popperRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","box","popperModifiers","childProps","Root","rootProps","Popper","containerProp","keepMounted","transition","exited","setExited","handleEnter","handleExited","resolvedAnchorEl","display","transitionProps","useThemeSystem","_setPrototypeOf","_inheritsLoose","subClass","superClass","setPrototypeOf","timeoutsShape","TransitionGroupContext","forceReflow","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","_this","parentGroup","appear","initialStatus","prevState","nextIn","_proto","prevProps","nextStatus","exit","enter","mounting","_this2","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","_this3","nextState","callback","_this4","active","handler","doesNotHaveTimeoutOrListener","maybeNextCallback","_this$props","pt","noop","Transition$1","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","getScale","isWebKit154","Grow","addEndListener","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","TransitionComponent","timer","autoTimeout","nodeRef","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","transitionDuration","transitionTimingFunction","handleEntered","handleExiting","handleExit","Grow$1","PopperRoot","BasePopper","components","componentsProps","RootComponent","Popper$1","getTooltipUtilityClass","tooltipClasses","tooltipClasses$1","disableInteractive","touch","TooltipPopper","TooltipTooltip","TooltipArrow","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onClose","onOpen","PopperComponentProp","PopperProps","title","TransitionComponentProp","isRtl","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","setOpenState","prevUserSelect","stopTouchInteraction","handleOpen","handleClose","handleLeave","focusVisibleRef","setChildIsFocusVisible","handleBlur","handleFocus","detectTouchStart","childrenProps","handleMouseOver","handleMouseLeave","handleTouchStart","handleTouchEnd","nativeEvent","handleMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","_PopperProps$popperOp","tooltipModifiers","PopperComponent","TooltipComponent","ArrowComponent","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip$1","getIcon","menuLabel","leading","MuiListItemIcon","MenuItem","allowForLeadingIcons","iconPathBefore","iconPathAfter","hasAutoFocus","isDense","isSubMenuParent","hasDisabledGutters","hasDivider","focusVisibleClassName","menuItem","MuiMenuItem","MuiListItemText","getAllGroups","menuDefinition","SubMenu","setAnchorEl","parentMenuItem","parentItemProps","handleParentMenuItemClick","renderSubMenuItems","includedGroups","group","GroupedMenuItemList","Menu","getOrderedGroupItems","groupId","allItems","menuProps","commandHandler","groupsToInclude","sortedGroups","itemArray","allowSpaceForLeadingIcons","createMenuItemProps","isLastItemInGroup","divKey","itemInfo","menuItemProps","TopLevelMenu","columnId","MenuColumn","metadata","Grid","List","GridMenu","multiColumnMenu","sortedColumns","columnNumbers","columnName","col","getUsePromiseOptionsDefaults","usePromise","promiseFactoryCallback","defaultValueRef","optionsDefaultedRef","setIsLoading","promiseIsCurrent","MenuIcon","HamburgerMenuButton","menuProvider","normalMenu","fullMenu","containerRef","ariaLabelPrefix","isMenuOpen","setMenuOpen","showFullMenu","setShowFullMenu","handleMenuItemClick","handleMenuButtonClick","prevIsOpen","isOpening","menuCommandHandler","command","setOffset","normalMenuData","fullMenuData","menu","IconButton","Drawer","isTooltipSuppressed","adjustMarginToAlignToEdge","MuiIconButton","Spinner","LoaderCircle","TextField","hasError","helperText","onFocus","onBlur","ShadLabel","ShadInput","Toolbar","AppBar","MuiToolbar","alertVariants","Alert","AlertTitle","AlertDescription","badgeVariants","Badge","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","Sonner","Toaster","Slider","SliderPrimitive","Switch","SwitchPrimitives","Tabs","TabsList","TabsTrigger","TabsContent","InstallButton","isInstalling","handleClick","buttonText","Download","EnableButton","isEnabling","DisableButton","isDisabling","UpdateButton","isUpdating","MarkdownRenderer","markdown","anchorTarget","Markdown","FilterButton","Filter","DropdownMenuItemType","DropdownMenuItemType2","FilterDropdown","groups","NoExtensionsFound","MoreInfo","category","downloads","languages","moreInfoUrl","numberFormatted","NumberFormat","handleScrollToBottom","User","locale","LucideLink","CircleHelp","VersionHistory","versionHistory","showAllVersions","setShowAllVersions","currentDate","formatTimeString","dateString","date","dateDiff","yearDiff","monthDiff","dayDiff","timeString","sortedEntries","Footer","publisherDisplayName","fileSize","locales","formattedFileSize","formatBytes","languageNames","codes","displayNames","FILTERABLE_RESOURCE_LIST_STRING_KEYS","getLanguageOptions","dblResources","languageFilter","sortedLanguages","resource","prioritizedLanguages","aIsPrioritized","bIsPrioritized","getActionButtonContent","installResource","getActionContent","idsBeingHandled","getText","updateText","installedText","FilterableResourceList","isLoadingDblResources","typeFilter","setTypeFilter","setLanguageFilter","openResource","uninstallResource","actionText","dialogSubtitleText","dialogTitleText","filterInputText","fullNameText","languageText","languageFilterText","loadingResourcesText","noResultsText","openText","removeText","sizeText","typeText","typeDblText","typeErText","typeSlrText","typeXrText","typeUnknownText","installInfo","setInstallInfo","installOrRemoveResource","dblEntryUid","action","newInstallInfo","prevInfo","getErrorMessage","currentInstallInfo","res","textFilteredResources","filter","typeOptions","typeFilterChangeHandler","newType","prevTypeFilter","newTypeFilter","textAndTypeFilteredResources","languageFilterChangeHandler","newLanguage","prevLanguageFilter","newLanguageFilter","textAndTypeAndLanguageFilteredResources","sortConfig","setSortConfig","sortedResources","aValue","bValue","newSortConfig","BookOpen","Loader","Ellipsis","UiLanguageSelector","knownUiLanguages","primaryLanguage","fallbackLanguages","onLanguagesChange","onPrimaryLanguageChange","onFallbackLanguagesChange","selectFallbackLanguagesText","setIsOpen","handleLanguageChange","lang","getLanguageDisplayName","uiLang","altName","_d","_c","_e","_f","useEvent","unsubscriber","noopUnsubscriber","useEventAsync","unsubscribe","unsub"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,MAAMA,KAAgBC,GAAoB,EAAE,QAAQ,MAAO,CAAA;AAyDpD,SAASC,KAAMC,GAAsB;AACnC,SAAAH,GAAcI,GAAKD,CAAM,CAAC;AACnC;ACzDO,MAAME,KAAQC,EAAM;AAAA,EACzB,CAAC,EAAE,WAAAC,GAAW,MAAAC,GAAM,GAAGC,EAAA,GAASC,MAE5B,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAAH;AAAA,MACA,WAAWN;AAAA,QACT;AAAA,QACAK;AAAA,MACF;AAAA,MACA,KAAAG;AAAA,MAEC,GAAGD;AAAA,IAAA;AAAA,EAAA;AAIZ;AACAJ,GAAM,cAAc;AClBpB,MAAMO,KAAsB;AAGrB,SAASC,KAA2B;AACnC,QAAAC,IAAY,aAAa,QAAQF,EAAW;AAClD,SAAIE,MAAc,QACTA,IAEF;AACT;ACKA,MAAMC,KAAmBC;AAAA,EACvB,CACE,EAAE,cAAAC,GAAc,eAAAC,GAAe,eAAAC,GAAe,cAAAC,GAAc,GAAGX,EAAM,GACrEC,MACG;AACH,UAAMW,IAAiBR;AAErB,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AAA,EACA;AAAA,EACA;AACF,GAAGC,KAAI;AAAA,EACL;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[5,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,228]} \ No newline at end of file +{"version":3,"file":"index.js","sources":["../src/utils/shadcn-ui.util.ts","../src/components/shadcn-ui/input.tsx","../src/utils/dir-helper.util.ts","../src/components/advanced/book-chapter-control/book-chapter-input.component.tsx","../src/components/shadcn-ui/dropdown-menu.tsx","../../../node_modules/@sillsdev/scripture/dist/index.es.js","../src/components/advanced/book-chapter-control/book-menu-item.component.tsx","../src/components/advanced/book-chapter-control/chapter-select.component.tsx","../src/components/advanced/book-chapter-control/go-to-menu-item.component.tsx","../src/components/advanced/book-chapter-control/book-chapter-control.component.tsx","../src/components/shadcn-ui/button.tsx","../src/components/shadcn-ui/label.tsx","../src/components/shadcn-ui/radio-group.tsx","../src/components/shadcn-ui/popover.tsx","../src/components/shadcn-ui/dialog.tsx","../src/components/shadcn-ui/command.tsx","../src/components/basics/combo-box.component.tsx","../src/components/basics/chapter-range-selector.component.tsx","../src/components/advanced/book-selector.component.tsx","../src/components/advanced/data-table/data-table-column-toggle.component.tsx","../src/components/shadcn-ui/select.tsx","../src/components/advanced/data-table/data-table-pagination.component.tsx","../src/components/shadcn-ui/table.tsx","../src/components/advanced/data-table/data-table.component.tsx","../src/components/advanced/inventory/occurrences-table.component.tsx","../src/components/shadcn-ui/checkbox.tsx","../src/components/advanced/inventory/inventory-utils.ts","../src/components/shadcn-ui/toggle.tsx","../src/components/shadcn-ui/toggle-group.tsx","../src/components/advanced/inventory/inventory-columns.tsx","../src/components/advanced/inventory/inventory.component.tsx","../src/components/advanced/multi-select-combo-box.component.tsx","../src/components/basics/search-bar.component.tsx","../src/components/basics/tabs-vertical.tsx","../src/components/advanced/tab-navigation-content-search.component.tsx","../src/components/shadcn-ui/separator.tsx","../src/components/shadcn-ui/skeleton.tsx","../src/components/shadcn-ui/tooltip.tsx","../src/components/shadcn-ui/sidebar.tsx","../src/components/advanced/settings-components/settings-sidebar.component.tsx","../src/components/advanced/settings-components/settings-sidebar-content-search.component.tsx","../src/components/advanced/scripture-results-viewer/scripture-results-viewer.component.tsx","../src/components/advanced/scroll-group-selector.component.tsx","../src/components/advanced/settings-components/settings-list.component.tsx","../src/components/basics/checklist.component.tsx","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@babel/runtime/helpers/esm/extends.js","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/index.js","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/esm/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/esm/createTheme/shape.js","../../../node_modules/@mui/system/esm/responsivePropType.js","../../../node_modules/@mui/system/esm/merge.js","../../../node_modules/@mui/system/esm/breakpoints.js","../../../node_modules/@mui/system/esm/style.js","../../../node_modules/@mui/system/esm/memoize.js","../../../node_modules/@mui/system/esm/spacing.js","../../../node_modules/@mui/system/esm/createTheme/createSpacing.js","../../../node_modules/@mui/system/esm/compose.js","../../../node_modules/@mui/system/esm/borders.js","../../../node_modules/@mui/system/esm/cssGrid.js","../../../node_modules/@mui/system/esm/palette.js","../../../node_modules/@mui/system/esm/sizing.js","../../../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/esm/createTheme/applyStyles.js","../../../node_modules/@mui/system/esm/createTheme/createTheme.js","../../../node_modules/@mui/system/esm/useThemeWithoutDefault.js","../../../node_modules/@mui/system/esm/useTheme.js","../../../node_modules/@mui/system/esm/createStyled.js","../../../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/esm/colorManipulator.js","../../../node_modules/@mui/material/styles/createMixins.js","../../../node_modules/@mui/material/colors/common.js","../../../node_modules/@mui/material/colors/grey.js","../../../node_modules/@mui/material/colors/purple.js","../../../node_modules/@mui/material/colors/red.js","../../../node_modules/@mui/material/colors/orange.js","../../../node_modules/@mui/material/colors/blue.js","../../../node_modules/@mui/material/colors/lightBlue.js","../../../node_modules/@mui/material/colors/green.js","../../../node_modules/@mui/material/styles/createPalette.js","../../../node_modules/@mui/material/styles/createTypography.js","../../../node_modules/@mui/material/styles/shadows.js","../../../node_modules/@mui/material/styles/createTransitions.js","../../../node_modules/@mui/material/styles/zIndex.js","../../../node_modules/@mui/material/styles/createTheme.js","../../../node_modules/@mui/material/styles/defaultTheme.js","../../../node_modules/@mui/material/styles/identifier.js","../../../node_modules/@mui/material/styles/useThemeProps.js","../../../node_modules/@mui/material/styles/styled.js","../../../node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/utils/createSvgIcon.js","../../../node_modules/@mui/material/utils/index.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/@mui/icons-material/ArrowRight.js","../../../node_modules/@mui/base/utils/isHostComponent.js","../../../node_modules/@mui/base/utils/appendOwnerState.js","../../../node_modules/@mui/base/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/utils/extractEventHandlers.js","../../../node_modules/@mui/base/utils/resolveComponentProps.js","../../../node_modules/@mui/base/utils/omitEventHandlers.js","../../../node_modules/@mui/base/utils/mergeSlotProps.js","../../../node_modules/@mui/base/utils/useSlotProps.js","../../../node_modules/@mui/base/generateUtilityClass/index.js","../../../node_modules/@mui/base/generateUtilityClasses/index.js","../../../node_modules/@mui/base/Portal/Portal.js","../../../node_modules/@popperjs/core/lib/enums.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../node_modules/@popperjs/core/lib/utils/math.js","../../../node_modules/@popperjs/core/lib/utils/userAgent.js","../../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../node_modules/@popperjs/core/lib/utils/within.js","../../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../node_modules/@popperjs/core/lib/utils/getVariation.js","../../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../node_modules/@popperjs/core/lib/modifiers/flip.js","../../../node_modules/@popperjs/core/lib/modifiers/hide.js","../../../node_modules/@popperjs/core/lib/modifiers/offset.js","../../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../node_modules/@popperjs/core/lib/utils/debounce.js","../../../node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../node_modules/@popperjs/core/lib/createPopper.js","../../../node_modules/@popperjs/core/lib/popper.js","../../../node_modules/@mui/base/Popper/popperClasses.js","../../../node_modules/@mui/base/Popper/Popper.js","../../../node_modules/@mui/material/styles/useTheme.js","../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../node_modules/react-transition-group/esm/config.js","../../../node_modules/react-transition-group/esm/utils/PropTypes.js","../../../node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../node_modules/react-transition-group/esm/utils/reflow.js","../../../node_modules/react-transition-group/esm/Transition.js","../../../node_modules/@mui/material/transitions/utils.js","../../../node_modules/@mui/material/Grow/Grow.js","../../../node_modules/@mui/material/Popper/Popper.js","../../../node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../node_modules/@mui/material/Tooltip/Tooltip.js","../src/components/mui/menu-item.component.tsx","../src/components/mui/grouped-menu-item-list.component.tsx","../src/components/mui/top-level-menu.component.tsx","../src/components/mui/grid-menu.component.tsx","../src/hooks/use-promise.hook.ts","../../../node_modules/@mui/icons-material/esm/Menu.js","../src/components/mui/hamburger-menu-button.component.tsx","../src/components/mui/icon-button.component.tsx","../src/components/basics/spinner.component.tsx","../src/components/basics/text-field.component.tsx","../src/components/mui/toolbar.component.tsx","../src/components/shadcn-ui/alert.tsx","../src/components/shadcn-ui/badge.tsx","../src/components/shadcn-ui/card.tsx","../src/components/shadcn-ui/sonner.tsx","../src/components/shadcn-ui/slider.tsx","../src/components/shadcn-ui/switch.tsx","../src/components/shadcn-ui/tabs.tsx","../src/components/advanced/extension-marketplace/buttons/install-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/enable-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/disable-button.component.tsx","../src/components/advanced/extension-marketplace/buttons/update-button.component.tsx","../src/components/advanced/extension-marketplace/markdown-renderer.component.tsx","../src/components/advanced/extension-marketplace/buttons/filter-button.component.tsx","../src/components/advanced/extension-marketplace/filter-dropdown.component.tsx","../src/components/advanced/extension-marketplace/no-extensions-found.component.tsx","../src/components/advanced/extension-marketplace/more-info.component.tsx","../src/components/advanced/extension-marketplace/version-history.component.tsx","../src/components/advanced/extension-marketplace/footer.component.tsx","../src/components/advanced/filterable-resource-list/filter.component.tsx","../src/components/advanced/filterable-resource-list/filterable-resource-list.component.tsx","../src/components/advanced/ui-language-selector.component.tsx","../src/hooks/use-event.hook.ts","../src/hooks/use-event-async.hook.ts"],"sourcesContent":["import { type ClassValue, clsx } from 'clsx';\nimport { extendTailwindMerge } from 'tailwind-merge';\n\nconst twMergeCustom = extendTailwindMerge({ prefix: 'tw-' });\n\n/**\n * Tailwind and CSS class application helper function. Uses\n * [`clsx`](https://www.npmjs.com/package/clsx) to make it easy to apply classes conditionally using\n * object syntax, and uses [`tailwind-merge`](https://www.npmjs.com/package/tailwind-merge) to make\n * it easy to merge/overwrite Tailwind classes in a programmer-logic-friendly way.\n *\n * Note: `tailwind-merge` is configured to use the prefix `tw-`, so you must use the same prefix\n * with any Tailwind classes you use with this function to successfully overwrite other Tailwind\n * classes. `platform-bible-react` is configured to use `tw-` as its Tailwind prefix, so any\n * Tailwind classes you pass into `platform-bible-react` components will be compared using the `tw-`\n * prefix.\n *\n * This function was popularized by\n * [shadcn/ui](https://ui.shadcn.com/docs/installation/manual#add-a-cn-helper). See [ByteGrad's\n * explanation video](https://www.youtube.com/watch?v=re2JFITR7TI) for more information.\n *\n * @example\n *\n * ```typescript\n * const borderShouldBeBlue = true;\n * const textShouldBeRed = true;\n * const heightShouldBe20 = false;\n * const classString = cn(\n * 'tw-bg-primary tw-h-10 tw-text-primary-foreground',\n * 'tw-bg-secondary',\n * {\n * 'tw-border-blue-500': borderShouldBeBlue,\n * 'tw-text-red-500': textShouldBeRed,\n * 'tw-h-20': heightShouldBe20,\n * },\n * 'some-class',\n * );\n * ```\n *\n * The resulting `classString` is `'tw-h-10 tw-bg-secondary tw-border-blue-500 tw-text-red-500\n * some-class'`\n *\n * - Notice that `'tw-bg-secondary'`, specified later, overwrote `'tw-bg-primary'`, specified earlier,\n * because they are Tailwind classes that affect the same css property\n * - Notice that `'tw-text-red-500'`, specified later, overwrote `'tw-text-primary-foreground'`,\n * specified earlier, because they are Tailwind classes that affect the same css property\n * - Notice that `'tw-h-20'`, specified later, did not overwrite `'tw-h-10'`, specified earlier,\n * because `'tw-h-20'` is part of a conditional class object and its value evaluated to `false`;\n * therefore it was not applied\n * - Notice that `'some-class'` was applied. This function is not limited only to Tailwind classes.\n *\n *\n * @param inputs Class strings or `clsx` conditional class objects to merge. Tailwind classes\n * specified later in the arguments overwrite similar Tailwind classes specified earlier in the\n * arguments\n * @returns Class string containing all applicable classes from the arguments based on the rules\n * described above\n */\n// shadcn/ui uses this export in its boilerplate code\n// eslint-disable-next-line import/prefer-default-export\nexport function cn(...inputs: ClassValue[]) {\n return twMergeCustom(clsx(inputs));\n}\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport interface InputProps extends React.InputHTMLAttributes {}\n\nexport const Input = React.forwardRef(\n ({ className, type, ...props }, ref) => {\n return (\n \n );\n },\n);\nInput.displayName = 'Input';\n","/** Text and layout direction */\nexport type Direction = 'rtl' | 'ltr';\n\nconst STORAGE_KEY: string = 'layoutDirection';\n\n/** Read layout direction from localStorage or return 'ltr' */\nexport function readDirection(): Direction {\n const retrieved = localStorage.getItem(STORAGE_KEY);\n if (retrieved === 'rtl') {\n return retrieved;\n }\n return 'ltr';\n}\n\n/** Write layout direction to localStorage */\nexport function persistDirection(dir: Direction): void {\n localStorage.setItem(STORAGE_KEY, dir);\n}\n","import { FocusEventHandler, forwardRef, KeyboardEvent, MouseEventHandler } from 'react';\nimport { History } from 'lucide-react';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport type BookChapterInputProps = {\n handleSearch: (searchString: string) => void;\n handleKeyDown: (event: KeyboardEvent) => void;\n handleOnClick: MouseEventHandler;\n handleSubmit: () => void;\n onFocus?: FocusEventHandler;\n value: string;\n placeholder: string;\n};\n\n// Shadcn Input sets type to \"button\"- HAVE to prop spread before setting type\nconst BookChapterInput = forwardRef(\n (\n { handleSearch, handleKeyDown, handleOnClick, handleSubmit, ...props }: BookChapterInputProps,\n ref,\n ) => {\n const dir: Direction = readDirection();\n return (\n
    \n handleSearch(event.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') {\n handleSubmit();\n }\n handleKeyDown(e);\n }}\n onClick={handleOnClick}\n ref={ref}\n />\n {\n // eslint-disable-next-line no-console\n console.log('back in history');\n }}\n />\n
    \n );\n },\n);\n\nexport default BookChapterInput;\n","import React from 'react';\nimport * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';\nimport { Check, ChevronRight, Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport const DropdownMenu = DropdownMenuPrimitive.Root;\n\nexport const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nexport const DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nexport const DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nexport const DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nexport const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nexport type DropdownMenuSubTriggerProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubTrigger\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSubContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.SubContent\n> & {\n className?: string;\n};\n\nexport type DropdownMenuContentProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Content\n> & {\n className?: string;\n sideOffset?: number;\n};\n\nexport type DropdownMenuItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuCheckboxItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.CheckboxItem\n> & {\n className?: string;\n checked?: boolean;\n};\n\nexport type DropdownMenuRadioItemProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.RadioItem\n> & {\n className?: string;\n};\n\nexport type DropdownMenuLabelProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Label\n> & {\n className?: string;\n inset?: boolean;\n};\n\nexport type DropdownMenuSeparatorProps = React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Separator\n> & {\n className?: string;\n};\n\nexport type DropdownMenuShortcutProps = React.HTMLAttributes & {\n className?: string;\n};\n\nexport const DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubTriggerProps\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n));\nDropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;\n\nexport const DropdownMenuSubContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuSubContentProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;\n\n/* TODO: bug in shadcn component: DropdownMenuContent does not support a dir prop.\nFor the content we can work around this by adding a div with dir, but that would not cause\nthe scrollbar to appear left in an rtl layout (e.g. see book-chapter-control.component) */\nexport const DropdownMenuContent = React.forwardRef<\n React.ElementRef,\n DropdownMenuContentProps\n>(({ className, sideOffset = 4, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n
    {children}
    \n \n
    \n );\n});\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport const DropdownMenuItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuItemProps\n>(({ className, inset, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nexport const DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuCheckboxItemProps\n>(({ className, children, checked, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;\n\nexport const DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef,\n DropdownMenuRadioItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nexport const DropdownMenuLabel = React.forwardRef<\n React.ElementRef,\n DropdownMenuLabelProps\n>(({ className, inset, ...props }, ref) => (\n \n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nexport const DropdownMenuSeparator = React.forwardRef<\n React.ElementRef,\n DropdownMenuSeparatorProps\n>(({ className, ...props }, ref) => (\n \n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\nexport function DropdownMenuShortcut({ className, ...props }: DropdownMenuShortcutProps) {\n return (\n \n );\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n","var P = Object.defineProperty;\nvar R = (t, e, s) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;\nvar n = (t, e, s) => R(t, typeof e != \"symbol\" ? e + \"\" : e, s);\nclass _ {\n constructor() {\n n(this, \"books\");\n n(this, \"firstSelectedBookNum\");\n n(this, \"lastSelectedBookNum\");\n n(this, \"count\");\n n(this, \"selectedBookNumbers\");\n n(this, \"selectedBookIds\");\n }\n}\nconst N = [\n \"GEN\",\n \"EXO\",\n \"LEV\",\n \"NUM\",\n \"DEU\",\n \"JOS\",\n \"JDG\",\n \"RUT\",\n \"1SA\",\n \"2SA\",\n // 10\n \"1KI\",\n \"2KI\",\n \"1CH\",\n \"2CH\",\n \"EZR\",\n \"NEH\",\n \"EST\",\n \"JOB\",\n \"PSA\",\n \"PRO\",\n // 20\n \"ECC\",\n \"SNG\",\n \"ISA\",\n \"JER\",\n \"LAM\",\n \"EZK\",\n \"DAN\",\n \"HOS\",\n \"JOL\",\n \"AMO\",\n // 30\n \"OBA\",\n \"JON\",\n \"MIC\",\n \"NAM\",\n \"HAB\",\n \"ZEP\",\n \"HAG\",\n \"ZEC\",\n \"MAL\",\n \"MAT\",\n // 40\n \"MRK\",\n \"LUK\",\n \"JHN\",\n \"ACT\",\n \"ROM\",\n \"1CO\",\n \"2CO\",\n \"GAL\",\n \"EPH\",\n \"PHP\",\n // 50\n \"COL\",\n \"1TH\",\n \"2TH\",\n \"1TI\",\n \"2TI\",\n \"TIT\",\n \"PHM\",\n \"HEB\",\n \"JAS\",\n \"1PE\",\n // 60\n \"2PE\",\n \"1JN\",\n \"2JN\",\n \"3JN\",\n \"JUD\",\n \"REV\",\n \"TOB\",\n \"JDT\",\n \"ESG\",\n \"WIS\",\n // 70\n \"SIR\",\n \"BAR\",\n \"LJE\",\n \"S3Y\",\n \"SUS\",\n \"BEL\",\n \"1MA\",\n \"2MA\",\n \"3MA\",\n \"4MA\",\n // 80\n \"1ES\",\n \"2ES\",\n \"MAN\",\n \"PS2\",\n \"ODA\",\n \"PSS\",\n \"JSA\",\n // actual variant text for JOS, now in LXA text\n \"JDB\",\n // actual variant text for JDG, now in LXA text\n \"TBS\",\n // actual variant text for TOB, now in LXA text\n \"SST\",\n // actual variant text for SUS, now in LXA text // 90\n \"DNT\",\n // actual variant text for DAN, now in LXA text\n \"BLT\",\n // actual variant text for BEL, now in LXA text\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n // 100\n \"BAK\",\n \"OTH\",\n \"3ES\",\n // Used previously but really should be 2ES\n \"EZA\",\n // Used to be called 4ES, but not actually in any known project\n \"5EZ\",\n // Used to be called 5ES, but not actually in any known project\n \"6EZ\",\n // Used to be called 6ES, but not actually in any known project\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n // 110\n \"NDX\",\n \"DAG\",\n \"PS3\",\n \"2BA\",\n \"LBA\",\n \"JUB\",\n \"ENO\",\n \"1MQ\",\n \"2MQ\",\n \"3MQ\",\n // 120\n \"REP\",\n \"4BA\",\n \"LAO\"\n], B = [\n \"XXA\",\n \"XXB\",\n \"XXC\",\n \"XXD\",\n \"XXE\",\n \"XXF\",\n \"XXG\",\n \"FRT\",\n \"BAK\",\n \"OTH\",\n \"INT\",\n \"CNC\",\n \"GLO\",\n \"TDX\",\n \"NDX\"\n], O = [\n \"Genesis\",\n \"Exodus\",\n \"Leviticus\",\n \"Numbers\",\n \"Deuteronomy\",\n \"Joshua\",\n \"Judges\",\n \"Ruth\",\n \"1 Samuel\",\n \"2 Samuel\",\n \"1 Kings\",\n \"2 Kings\",\n \"1 Chronicles\",\n \"2 Chronicles\",\n \"Ezra\",\n \"Nehemiah\",\n \"Esther (Hebrew)\",\n \"Job\",\n \"Psalms\",\n \"Proverbs\",\n \"Ecclesiastes\",\n \"Song of Songs\",\n \"Isaiah\",\n \"Jeremiah\",\n \"Lamentations\",\n \"Ezekiel\",\n \"Daniel (Hebrew)\",\n \"Hosea\",\n \"Joel\",\n \"Amos\",\n \"Obadiah\",\n \"Jonah\",\n \"Micah\",\n \"Nahum\",\n \"Habakkuk\",\n \"Zephaniah\",\n \"Haggai\",\n \"Zechariah\",\n \"Malachi\",\n \"Matthew\",\n \"Mark\",\n \"Luke\",\n \"John\",\n \"Acts\",\n \"Romans\",\n \"1 Corinthians\",\n \"2 Corinthians\",\n \"Galatians\",\n \"Ephesians\",\n \"Philippians\",\n \"Colossians\",\n \"1 Thessalonians\",\n \"2 Thessalonians\",\n \"1 Timothy\",\n \"2 Timothy\",\n \"Titus\",\n \"Philemon\",\n \"Hebrews\",\n \"James\",\n \"1 Peter\",\n \"2 Peter\",\n \"1 John\",\n \"2 John\",\n \"3 John\",\n \"Jude\",\n \"Revelation\",\n \"Tobit\",\n \"Judith\",\n \"Esther Greek\",\n \"Wisdom of Solomon\",\n \"Sirach (Ecclesiasticus)\",\n \"Baruch\",\n \"Letter of Jeremiah\",\n \"Song of 3 Young Men\",\n \"Susanna\",\n \"Bel and the Dragon\",\n \"1 Maccabees\",\n \"2 Maccabees\",\n \"3 Maccabees\",\n \"4 Maccabees\",\n \"1 Esdras (Greek)\",\n \"2 Esdras (Latin)\",\n \"Prayer of Manasseh\",\n \"Psalm 151\",\n \"Odes\",\n \"Psalms of Solomon\",\n // WARNING, if you change the spelling of the *obsolete* tag be sure to update\n // IsObsolete routine\n \"Joshua A. *obsolete*\",\n \"Judges B. *obsolete*\",\n \"Tobit S. *obsolete*\",\n \"Susanna Th. *obsolete*\",\n \"Daniel Th. *obsolete*\",\n \"Bel Th. *obsolete*\",\n \"Extra A\",\n \"Extra B\",\n \"Extra C\",\n \"Extra D\",\n \"Extra E\",\n \"Extra F\",\n \"Extra G\",\n \"Front Matter\",\n \"Back Matter\",\n \"Other Matter\",\n \"3 Ezra *obsolete*\",\n \"Apocalypse of Ezra\",\n \"5 Ezra (Latin Prologue)\",\n \"6 Ezra (Latin Epilogue)\",\n \"Introduction\",\n \"Concordance \",\n \"Glossary \",\n \"Topical Index\",\n \"Names Index\",\n \"Daniel Greek\",\n \"Psalms 152-155\",\n \"2 Baruch (Apocalypse)\",\n \"Letter of Baruch\",\n \"Jubilees\",\n \"Enoch\",\n \"1 Meqabyan\",\n \"2 Meqabyan\",\n \"3 Meqabyan\",\n \"Reproof (Proverbs 25-31)\",\n \"4 Baruch (Rest of Baruch)\",\n \"Laodiceans\"\n], S = K();\nfunction g(t, e = !0) {\n return e && (t = t.toUpperCase()), t in S ? S[t] : 0;\n}\nfunction k(t) {\n return g(t) > 0;\n}\nfunction x(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return e >= 40 && e <= 66;\n}\nfunction T(t) {\n return (typeof t == \"string\" ? g(t) : t) <= 39;\n}\nfunction X(t) {\n return t <= 66;\n}\nfunction V(t) {\n const e = typeof t == \"string\" ? g(t) : t;\n return w(e) && !X(e);\n}\nfunction* L() {\n for (let t = 1; t <= N.length; t++) yield t;\n}\nconst G = 1, A = N.length;\nfunction H() {\n return [\"XXA\", \"XXB\", \"XXC\", \"XXD\", \"XXE\", \"XXF\", \"XXG\"];\n}\nfunction C(t, e = \"***\") {\n const s = t - 1;\n return s < 0 || s >= N.length ? e : N[s];\n}\nfunction I(t) {\n return t <= 0 || t > A ? \"******\" : O[t - 1];\n}\nfunction y(t) {\n return I(g(t));\n}\nfunction w(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && !B.includes(e);\n}\nfunction q(t) {\n const e = typeof t == \"number\" ? C(t) : t;\n return k(e) && B.includes(e);\n}\nfunction U(t) {\n return O[t - 1].includes(\"*obsolete*\");\n}\nfunction K() {\n const t = {};\n for (let e = 0; e < N.length; e++)\n t[N[e]] = e + 1;\n return t;\n}\nconst m = {\n allBookIds: N,\n nonCanonicalIds: B,\n bookIdToNumber: g,\n isBookIdValid: k,\n isBookNT: x,\n isBookOT: T,\n isBookOTNT: X,\n isBookDC: V,\n allBookNumbers: L,\n firstBook: G,\n lastBook: A,\n extraBooks: H,\n bookNumberToId: C,\n bookNumberToEnglishName: I,\n bookIdToEnglishName: y,\n isCanonical: w,\n isExtraMaterial: q,\n isObsolete: U\n};\nvar l = /* @__PURE__ */ ((t) => (t[t.Unknown = 0] = \"Unknown\", t[t.Original = 1] = \"Original\", t[t.Septuagint = 2] = \"Septuagint\", t[t.Vulgate = 3] = \"Vulgate\", t[t.English = 4] = \"English\", t[t.RussianProtestant = 5] = \"RussianProtestant\", t[t.RussianOrthodox = 6] = \"RussianOrthodox\", t))(l || {});\nconst h = class h {\n // private versInfo: Versification;\n constructor(e) {\n n(this, \"name\");\n n(this, \"fullPath\");\n n(this, \"isPresent\");\n n(this, \"hasVerseSegments\");\n n(this, \"isCustomized\");\n n(this, \"baseVersification\");\n n(this, \"scriptureBooks\");\n n(this, \"_type\");\n if (e == null)\n throw new Error(\"Argument undefined\");\n typeof e == \"string\" ? (this.name = e, this._type = l[e]) : (this._type = e, this.name = l[e]);\n }\n get type() {\n return this._type;\n }\n equals(e) {\n return !e.type || !this.type ? !1 : e.type === this.type;\n }\n};\nn(h, \"Original\", new h(l.Original)), n(h, \"Septuagint\", new h(l.Septuagint)), n(h, \"Vulgate\", new h(l.Vulgate)), n(h, \"English\", new h(l.English)), n(h, \"RussianProtestant\", new h(l.RussianProtestant)), n(h, \"RussianOrthodox\", new h(l.RussianOrthodox));\nlet c = h;\nfunction E(t, e) {\n const s = e[0];\n for (let r = 1; r < e.length; r++)\n t = t.split(e[r]).join(s);\n return t.split(s);\n}\nvar D = /* @__PURE__ */ ((t) => (t[t.Valid = 0] = \"Valid\", t[t.UnknownVersification = 1] = \"UnknownVersification\", t[t.OutOfRange = 2] = \"OutOfRange\", t[t.VerseOutOfOrder = 3] = \"VerseOutOfOrder\", t[t.VerseRepeated = 4] = \"VerseRepeated\", t))(D || {});\nconst i = class i {\n constructor(e, s, r, a) {\n /** Not yet implemented. */\n n(this, \"firstChapter\");\n /** Not yet implemented. */\n n(this, \"lastChapter\");\n /** Not yet implemented. */\n n(this, \"lastVerse\");\n /** Not yet implemented. */\n n(this, \"hasSegmentsDefined\");\n /** Not yet implemented. */\n n(this, \"text\");\n /** Not yet implemented. */\n n(this, \"BBBCCCVVVS\");\n /** Not yet implemented. */\n n(this, \"longHashCode\");\n /** The versification of the reference. */\n n(this, \"versification\");\n n(this, \"rtlMark\", \"‏\");\n n(this, \"_bookNum\", 0);\n n(this, \"_chapterNum\", 0);\n n(this, \"_verseNum\", 0);\n n(this, \"_verse\");\n if (r == null && a == null)\n if (e != null && typeof e == \"string\") {\n const o = e, u = s != null && s instanceof c ? s : void 0;\n this.setEmpty(u), this.parse(o);\n } else if (e != null && typeof e == \"number\") {\n const o = s != null && s instanceof c ? s : void 0;\n this.setEmpty(o), this._verseNum = e % i.chapterDigitShifter, this._chapterNum = Math.floor(\n e % i.bookDigitShifter / i.chapterDigitShifter\n ), this._bookNum = Math.floor(e / i.bookDigitShifter);\n } else if (s == null)\n if (e != null && e instanceof i) {\n const o = e;\n this._bookNum = o.bookNum, this._chapterNum = o.chapterNum, this._verseNum = o.verseNum, this._verse = o.verse, this.versification = o.versification;\n } else {\n if (e == null) return;\n const o = e instanceof c ? e : i.defaultVersification;\n this.setEmpty(o);\n }\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else if (e != null && s != null && r != null)\n if (typeof e == \"string\" && typeof s == \"string\" && typeof r == \"string\")\n this.setEmpty(a), this.updateInternal(e, s, r);\n else if (typeof e == \"number\" && typeof s == \"number\" && typeof r == \"number\")\n this._bookNum = e, this._chapterNum = s, this._verseNum = r, this.versification = a ?? i.defaultVersification;\n else\n throw new Error(\"VerseRef constructor not supported.\");\n else\n throw new Error(\"VerseRef constructor not supported.\");\n }\n /**\n * Determines if the verse string is in a valid format (does not consider versification).\n */\n static isVerseParseable(e) {\n return e.length > 0 && \"0123456789\".includes(e[0]) && !e.endsWith(this.verseRangeSeparator) && !e.endsWith(this.verseSequenceIndicator);\n }\n /**\n * Tries to parse the specified string into a verse reference.\n * @param str - The string to attempt to parse.\n * @returns success: `true` if the specified string was successfully parsed, `false` otherwise.\n * @returns verseRef: The result of the parse if successful, or empty VerseRef if it failed\n */\n static tryParse(e) {\n let s;\n try {\n return s = new i(e), { success: !0, verseRef: s };\n } catch (r) {\n if (r instanceof v)\n return s = new i(), { success: !1, verseRef: s };\n throw r;\n }\n }\n /**\n * Gets the reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n * @param bookNum - Book number (this is 1-based, not an index).\n * @param chapterNum - Chapter number.\n * @param verseNum - Verse number.\n * @returns The reference as a comparable integer where the book, chapter, and verse each occupy 3\n * digits.\n */\n static getBBBCCCVVV(e, s, r) {\n return e % i.bcvMaxValue * i.bookDigitShifter + (s >= 0 ? s % i.bcvMaxValue * i.chapterDigitShifter : 0) + (r >= 0 ? r % i.bcvMaxValue : 0);\n }\n /**\n * Deserializes a serialized VerseRef.\n * @param serializedVerseRef - Serialized VerseRef to create from.\n * @returns the deserialized VerseRef.\n */\n static fromJSON(e) {\n const { book: s, chapterNum: r, verseNum: a, verse: o, versificationStr: u } = e, f = o || a.toString();\n let d;\n return u && (d = new c(u)), s ? new i(s, r.toString(), f, d) : new i();\n }\n /**\n * Parses a verse string and gets the leading numeric portion as a number.\n * @param verseStr - verse string to parse\n * @returns true if the entire string could be parsed as a single, simple verse number (1-999);\n * false if the verse string represented a verse bridge, contained segment letters, or was invalid\n */\n static tryGetVerseNum(e) {\n let s;\n if (!e)\n return s = -1, { success: !0, vNum: s };\n s = 0;\n let r;\n for (let a = 0; a < e.length; a++) {\n if (r = e[a], r < \"0\" || r > \"9\")\n return a === 0 && (s = -1), { success: !1, vNum: s };\n if (s = s * 10 + +r - 0, s > i.bcvMaxValue)\n return s = -1, { success: !1, vNum: s };\n }\n return { success: !0, vNum: s };\n }\n /**\n * Checks to see if a VerseRef hasn't been set - all values are the default.\n */\n get isDefault() {\n return this.bookNum === 0 && this.chapterNum === 0 && this.verseNum === 0 && this.versification == null;\n }\n /**\n * Gets whether the verse contains multiple verses.\n */\n get hasMultiple() {\n return this._verse != null && (this._verse.includes(i.verseRangeSeparator) || this._verse.includes(i.verseSequenceIndicator));\n }\n /**\n * Gets or sets the book of the reference. Book is the 3-letter abbreviation in capital letters,\n * e.g. `'MAT'`.\n */\n get book() {\n return m.bookNumberToId(this.bookNum, \"\");\n }\n set book(e) {\n this.bookNum = m.bookIdToNumber(e);\n }\n /**\n * Gets or sets the chapter of the reference,. e.g. `'3'`.\n */\n get chapter() {\n return this.isDefault || this._chapterNum < 0 ? \"\" : this._chapterNum.toString();\n }\n set chapter(e) {\n const s = +e;\n this._chapterNum = Number.isInteger(s) ? s : -1;\n }\n /**\n * Gets or sets the verse of the reference, including range, segments, and sequences, e.g. `'4'`,\n * or `'4b-5a, 7'`.\n */\n get verse() {\n return this._verse != null ? this._verse : this.isDefault || this._verseNum < 0 ? \"\" : this._verseNum.toString();\n }\n set verse(e) {\n const { success: s, vNum: r } = i.tryGetVerseNum(e);\n this._verse = s ? void 0 : e.replace(this.rtlMark, \"\"), this._verseNum = r, !(this._verseNum >= 0) && ({ vNum: this._verseNum } = i.tryGetVerseNum(this._verse));\n }\n /**\n * Get or set Book based on book number, e.g. `42`.\n */\n get bookNum() {\n return this._bookNum;\n }\n set bookNum(e) {\n if (e <= 0 || e > m.lastBook)\n throw new v(\n \"BookNum must be greater than zero and less than or equal to last book\"\n );\n this._bookNum = e;\n }\n /**\n * Gets or sets the chapter number, e.g. `3`. `-1` if not valid.\n */\n get chapterNum() {\n return this._chapterNum;\n }\n set chapterNum(e) {\n this.chapterNum = e;\n }\n /**\n * Gets or sets verse start number, e.g. `4`. `-1` if not valid.\n */\n get verseNum() {\n return this._verseNum;\n }\n set verseNum(e) {\n this._verseNum = e;\n }\n /**\n * String representing the versification (should ONLY be used for serialization/deserialization).\n *\n * @remarks This is for backwards compatibility when ScrVers was an enumeration.\n */\n get versificationStr() {\n var e;\n return (e = this.versification) == null ? void 0 : e.name;\n }\n set versificationStr(e) {\n this.versification = this.versification != null ? new c(e) : void 0;\n }\n /**\n * Determines if the reference is valid.\n */\n get valid() {\n return this.validStatus === 0;\n }\n /**\n * Get the valid status for this reference.\n */\n get validStatus() {\n return this.validateVerse(i.verseRangeSeparators, i.verseSequenceIndicators);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits and the verse is 0.\n */\n get BBBCCC() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, 0);\n }\n /**\n * Gets the reference as a comparable integer where the book,\n * chapter, and verse each occupy three digits. If verse is not null\n * (i.e., this reference represents a complex reference with verse\n * segments or bridge) this cannot be used for an exact comparison.\n */\n get BBBCCCVVV() {\n return i.getBBBCCCVVV(this._bookNum, this._chapterNum, this._verseNum);\n }\n /**\n * Gets whether the verse is defined as an excluded verse in the versification.\n * Does not handle verse ranges.\n */\n // eslint-disable-next-line @typescript-eslint/class-literal-property-style\n get isExcluded() {\n return !1;\n }\n /**\n * Parses the reference in the specified string.\n * Optionally versification can follow reference as in GEN 3:11/4\n * Throw an exception if\n * - invalid book name\n * - chapter number is missing or not a number\n * - verse number is missing or does not start with a number\n * - versification is invalid\n * @param verseStr - string to parse e.g. 'MAT 3:11'\n */\n parse(e) {\n if (e = e.replace(this.rtlMark, \"\"), e.includes(\"/\")) {\n const o = e.split(\"/\");\n if (e = o[0], o.length > 1)\n try {\n const u = +o[1].trim();\n this.versification = new c(l[u]);\n } catch {\n throw new v(\"Invalid reference : \" + e);\n }\n }\n const s = e.trim().split(\" \");\n if (s.length !== 2)\n throw new v(\"Invalid reference : \" + e);\n const r = s[1].split(\":\"), a = +r[0];\n if (r.length !== 2 || m.bookIdToNumber(s[0]) === 0 || !Number.isInteger(a) || a < 0 || !i.isVerseParseable(r[1]))\n throw new v(\"Invalid reference : \" + e);\n this.updateInternal(s[0], r[0], r[1]);\n }\n /**\n * Simplifies this verse ref so that it has no bridging of verses or\n * verse segments like `'1a'`.\n */\n simplify() {\n this._verse = void 0;\n }\n /**\n * Makes a clone of the reference.\n *\n * @returns The cloned VerseRef.\n */\n clone() {\n return new i(this);\n }\n toString() {\n const e = this.book;\n return e === \"\" ? \"\" : `${e} ${this.chapter}:${this.verse}`;\n }\n toJSON() {\n let e = this.verse;\n (e === \"\" || e === this.verseNum.toString()) && (e = void 0);\n const s = {\n book: this.book,\n chapterNum: this.chapterNum,\n verseNum: this.verseNum,\n verse: e,\n versificationStr: this.versificationStr\n };\n return e || delete s.verse, s;\n }\n /**\n * Compares this `VerseRef` with supplied one.\n * @param verseRef - object to compare this one to.\n * @returns `true` if this `VerseRef` is equal to the supplied one, `false` otherwise.\n */\n equals(e) {\n return e instanceof i ? e._bookNum === this._bookNum && e._chapterNum === this._chapterNum && e._verseNum === this._verseNum && e.verse === this.verse && (e.versification == null && this.versification == null || e.versification != null && this.versification != null && e.versification.equals(this.versification)) : !1;\n }\n /**\n * Enumerate all individual verses contained in a VerseRef.\n * Verse ranges are indicated by \"-\" and consecutive verses by \",\"s.\n * Examples:\n * GEN 1:2 returns GEN 1:2\n * GEN 1:1a-3b,5 returns GEN 1:1a, GEN 1:2, GEN 1:3b, GEN 1:5\n * GEN 1:2a-2c returns //! ??????\n *\n * @param specifiedVersesOnly - if set to true return only verses that are\n * explicitly specified only, not verses within a range. Defaults to `false`.\n * @param verseRangeSeparators - Verse range separators.\n * Defaults to `VerseRef.verseRangeSeparators`.\n * @param verseSequenceSeparators - Verse sequence separators.\n * Defaults to `VerseRef.verseSequenceIndicators`.\n * @returns An array of all single verse references in this VerseRef.\n */\n allVerses(e = !1, s = i.verseRangeSeparators, r = i.verseSequenceIndicators) {\n if (this._verse == null || this.chapterNum <= 0)\n return [this.clone()];\n const a = [], o = E(this._verse, r);\n for (const u of o.map((f) => E(f, s))) {\n const f = this.clone();\n f.verse = u[0];\n const d = f.verseNum;\n if (a.push(f), u.length > 1) {\n const b = this.clone();\n if (b.verse = u[1], !e)\n for (let p = d + 1; p < b.verseNum; p++) {\n const J = new i(\n this._bookNum,\n this._chapterNum,\n p,\n this.versification\n );\n this.isExcluded || a.push(J);\n }\n a.push(b);\n }\n }\n return a;\n }\n /**\n * Validates a verse number using the supplied separators rather than the defaults.\n */\n validateVerse(e, s) {\n if (!this.verse)\n return this.internalValid;\n let r = 0;\n for (const a of this.allVerses(!0, e, s)) {\n const o = a.internalValid;\n if (o !== 0)\n return o;\n const u = a.BBBCCCVVV;\n if (r > u)\n return 3;\n if (r === u)\n return 4;\n r = u;\n }\n return 0;\n }\n /**\n * Gets whether a single verse reference is valid.\n */\n get internalValid() {\n return this.versification == null ? 1 : this._bookNum <= 0 || this._bookNum > m.lastBook ? 2 : (m.isCanonical(this._bookNum), 0);\n }\n setEmpty(e = i.defaultVersification) {\n this._bookNum = 0, this._chapterNum = -1, this._verse = void 0, this.versification = e;\n }\n updateInternal(e, s, r) {\n this.bookNum = m.bookIdToNumber(e), this.chapter = s, this.verse = r;\n }\n};\nn(i, \"defaultVersification\", c.English), n(i, \"verseRangeSeparator\", \"-\"), n(i, \"verseSequenceIndicator\", \",\"), n(i, \"verseRangeSeparators\", [i.verseRangeSeparator]), n(i, \"verseSequenceIndicators\", [i.verseSequenceIndicator]), n(i, \"chapterDigitShifter\", 1e3), n(i, \"bookDigitShifter\", i.chapterDigitShifter * i.chapterDigitShifter), n(i, \"bcvMaxValue\", i.chapterDigitShifter - 1), /**\n * The valid status of the VerseRef.\n */\nn(i, \"ValidStatusType\", D);\nlet M = i;\nclass v extends Error {\n}\nexport {\n _ as BookSet,\n m as Canon,\n c as ScrVers,\n l as ScrVersType,\n M as VerseRef,\n v as VerseRefException\n};\n//# sourceMappingURL=index.es.js.map\n","import { DropdownMenuItem } from '@/components/shadcn-ui/dropdown-menu';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Canon } from '@sillsdev/scripture';\nimport { KeyboardEvent, PropsWithChildren, forwardRef } from 'react';\n\nexport type BookType = 'OT' | 'NT' | 'DC';\n\ntype BookMenuItemProps = PropsWithChildren<{\n /** String id of book */\n bookId: string;\n /** Callback to run when a book menu item is selected */\n handleSelectBook: () => void;\n /** Indicates if this menu item is currently selected */\n isSelected: boolean;\n /** Function that is called upon highlighting a book in the dropdown menu */\n handleHighlightBook: () => void;\n /**\n * Function that is called on pressing a key\n *\n * @param event Event that contains information about the key stroke\n */\n handleKeyDown: (event: KeyboardEvent) => void;\n /**\n * Type of book associated with this menu item, coordinates color labels ? Mock up has the labels\n * coordinated to genre\n */\n bookType: BookType;\n}>;\n\nconst BookMenuItem = forwardRef(\n (\n {\n bookId,\n handleSelectBook,\n isSelected,\n handleHighlightBook,\n handleKeyDown,\n bookType,\n children,\n }: BookMenuItemProps,\n ref,\n ) => {\n return (\n {\n // preventDefault() here prevents the entire dropdown menu from closing when selecting this item\n event.preventDefault();\n handleSelectBook();\n }}\n onKeyDown={(event: KeyboardEvent) => {\n handleKeyDown(event);\n }}\n onFocus={handleHighlightBook}\n onMouseMove={handleHighlightBook}\n >\n \n {Canon.bookIdToEnglishName(bookId)}\n \n {isSelected &&
    {children}
    }\n \n );\n },\n);\n\nexport default BookMenuItem;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type ChapterSelectProps = {\n /**\n * Callback to run when a chapter div is selected\n *\n * @param chapterNumber Number of the chapter that has been selected\n */\n handleSelectChapter: (chapterNumber: number) => void;\n /** The highest chapter number in the book (of course equal to number of chapters in the book) */\n endChapter: number;\n /** The chapter number that is currently selected */\n activeChapter: number;\n /** The chapter number that is currently highlighted using keyboard or mouse navigation */\n highlightedChapter: number;\n /**\n * Callback to run when a chapter is highlighted by the user\n *\n * @param chapterNumber The chapter that is highlighted\n */\n handleHighlightedChapter: (chapterNumber: number) => void;\n};\n\nfunction ChapterSelect({\n handleSelectChapter,\n endChapter,\n activeChapter,\n highlightedChapter,\n handleHighlightedChapter,\n}: ChapterSelectProps) {\n const chapters = Array.from({ length: endChapter }, (_, i) => i + 1);\n\n const handleMouse = useCallback(\n (chapterNumber: number) => {\n handleHighlightedChapter(chapterNumber);\n },\n [handleHighlightedChapter],\n );\n\n return (\n
    \n {chapters.map((chapter) => (\n {\n event.preventDefault();\n event.stopPropagation();\n handleSelectChapter(chapter);\n }}\n role=\"button\"\n onKeyDown={(event) => {\n if (event.key === 'Enter') {\n handleSelectChapter(chapter);\n }\n }}\n tabIndex={0}\n onMouseMove={() => handleMouse(chapter)}\n >\n {chapter}\n
    \n ))}\n
    \n );\n}\n\nexport default ChapterSelect;\n","import { DropdownMenuLabel } from '@/components/shadcn-ui/dropdown-menu';\nimport { Bookmark, Clock, ArrowDownWideNarrow } from 'lucide-react';\n\nexport type GoToMenuItemProps = {\n handleSort: () => void;\n handleLocationHistory: () => void;\n handleBookmarks: () => void;\n};\n\nfunction GoToMenuItem({ handleSort, handleLocationHistory, handleBookmarks }: GoToMenuItemProps) {\n return (\n \n

    Go To

    \n
    \n \n \n \n
    \n
    \n );\n}\n\nexport default GoToMenuItem;\n","import BookChapterInput from '@/components/advanced/book-chapter-control/book-chapter-input.component';\nimport BookMenuItem, {\n BookType,\n} from '@/components/advanced/book-chapter-control/book-menu-item.component';\nimport ChapterSelect from '@/components/advanced/book-chapter-control/chapter-select.component';\nimport GoToMenuItem from '@/components/advanced/book-chapter-control/go-to-menu-item.component';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference, getChaptersForBook } from 'platform-bible-utils';\nimport {\n KeyboardEvent as ReactKeyboardEvent,\n useCallback,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\n\ntype BookTypeLabels = {\n [bookType in BookType]: string;\n};\ntype BookChapterControlProps = {\n scrRef: ScriptureReference;\n handleSubmit: (scrRef: ScriptureReference) => void;\n};\n\nconst ALL_BOOK_IDS = Canon.allBookIds;\nconst BOOK_TYPE_LABELS: BookTypeLabels = {\n OT: 'Old Testament',\n NT: 'New Testament',\n DC: 'Deuterocanon',\n};\nconst BOOK_TYPE_ARRAY: BookType[] = ['OT', 'NT', 'DC'];\n// This is the height of three menu items to offset scrolling to the selected menu item\n// If you use menuItemRef.clientHeight- includes height of chapter div which is too big\nconst SCROLL_OFFSET = 32 + 32 + 32;\nconst SEARCH_QUERY_FORMATS = [\n /^(\\w+)$/i, // Matches a single word (book name or id)\n /^(\\w+)(?:\\s(\\d+))$/i, // Matches a word followed by a chapter number\n /^(\\w+)(?:\\s(\\d+):(\\d+))$/i, // Matches a word followed by a chapter and verse number\n];\nconst fetchGroupedBooks = (bookType: BookType) => {\n const groupedBooks = {\n OT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookOT(bookId)),\n NT: ALL_BOOK_IDS.filter((bookId) => Canon.isBookNT(bookId)),\n DC: ALL_BOOK_IDS.filter((bookId) => Canon.isBookDC(bookId)),\n };\n return groupedBooks[bookType];\n};\nconst fetchEndChapter = (bookId: string) => {\n // getChaptersForBook returns -1 if not found in scrBookData\n // scrBookData only includes OT and NT, so all DC will return -1\n return getChaptersForBook(Canon.bookIdToNumber(bookId));\n};\n\n/**\n * Gets all of the English names from book ids\n *\n * @returns String[]\n */\nfunction getAllEnglishNames(): string[] {\n const allEnglishNames = ALL_BOOK_IDS.map((bookId) => {\n return Canon.bookIdToEnglishName(bookId);\n });\n return allEnglishNames;\n}\n\n/**\n * Determines if bookName is in allEnglishNames\n *\n * @param bookName Book English name\n * @returns True if bookName is included, false otherwise\n */\nfunction isValidBookEnglishName(bookName: string): boolean {\n return getAllEnglishNames().includes(bookName);\n}\n\n/**\n * Gets a bookId from given English name\n *\n * @param bookName Book English name\n * @returns BookId of provided bookName, undefined otherwise\n */\nfunction getBookIdFromEnglishName(bookName: string): string | undefined {\n // Convert bookName to lowercase and then capitalize the first letter\n const formattedBookName = bookName.toLowerCase().replace(/^\\w/, (c) => c.toUpperCase());\n\n if (isValidBookEnglishName(formattedBookName)) {\n const matchingBookId = ALL_BOOK_IDS.find((bookId) => {\n return Canon.bookIdToEnglishName(bookId) === formattedBookName;\n });\n return matchingBookId;\n }\n\n return undefined;\n}\n\nfunction BookChapterControl({ scrRef, handleSubmit }: BookChapterControlProps) {\n const dir: Direction = readDirection();\n const [searchQuery, setSearchQuery] = useState('');\n const [selectedBookId, setSelectedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [highlightedChapter, setHighlightedChapter] = useState(scrRef.chapterNum ?? 0);\n const [highlightedBookId, setHighlightedBookId] = useState(\n Canon.bookNumberToId(scrRef.bookNum),\n );\n const [isContentOpen, setIsContentOpen] = useState(false);\n const [isContentOpenDelayed, setIsContentOpenDelayed] = useState(isContentOpen);\n\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const inputRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const contentRef = useRef(undefined!);\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const menuItemRef = useRef(undefined!);\n\n const fetchFilteredBooks = useCallback(\n (bookType: BookType) => {\n return fetchGroupedBooks(bookType).filter((bookId: string) => {\n const englishNameLowerCase = Canon.bookIdToEnglishName(bookId).toLowerCase();\n const normalizedQuery = searchQuery.replace(/[^a-zA-Z]/g, '').toLowerCase();\n return (\n englishNameLowerCase.includes(normalizedQuery) || // Match book name\n bookId.toLowerCase().includes(normalizedQuery) // Match book ID\n );\n });\n },\n [searchQuery],\n );\n\n const handleSearchInput = (searchString: string) => {\n setSearchQuery(searchString);\n };\n\n /**\n * Whether to prevent radix's logic from closing the dropdown. This is important because radix\n * tries to close the dropdown when the input first focuses, and we don't want it to do that. But\n * we don't want to prevent the dropdown from closing when we click away from the input, so we\n * don't want to just keep it open if the input is focused\n */\n const shouldPreventAutoClosing = useRef(false);\n\n const controlMenuState = useCallback((open: boolean) => {\n if (shouldPreventAutoClosing.current) {\n shouldPreventAutoClosing.current = false;\n return;\n }\n setIsContentOpen(open);\n }, []);\n\n const updateReference = useCallback(\n (bookId: string, shouldClose: boolean, chapter?: number, verse?: number) => {\n setHighlightedChapter(\n Canon.bookNumberToId(scrRef.bookNum) !== bookId ? 1 : scrRef.chapterNum,\n );\n\n if (shouldClose || fetchEndChapter(bookId) === -1) {\n handleSubmit({\n bookNum: Canon.bookIdToNumber(bookId),\n chapterNum: chapter || 1,\n verseNum: verse || 1,\n });\n\n setIsContentOpen(false);\n setSearchQuery('');\n return;\n }\n\n setSelectedBookId(selectedBookId !== bookId ? bookId : '');\n setIsContentOpen(!shouldClose);\n },\n [handleSubmit, scrRef.bookNum, scrRef.chapterNum, selectedBookId],\n );\n\n const handleSelectChapter = (chapterNumber: number) => {\n if (chapterNumber <= 0 || chapterNumber > fetchEndChapter(selectedBookId)) {\n return;\n }\n updateReference(selectedBookId, true, chapterNumber);\n };\n\n const handleInputSubmit = useCallback(() => {\n SEARCH_QUERY_FORMATS.forEach((format) => {\n const matches = searchQuery.match(format);\n if (matches) {\n // Book should be a bookId or an english name\n const [book, chapter = undefined, verse = undefined] = matches.slice(1);\n const englishName = getBookIdFromEnglishName(book);\n\n if (Canon.isBookIdValid(book) || englishName) {\n updateReference(\n englishName ?? book,\n true,\n chapter ? parseInt(chapter, 10) : 1,\n verse ? parseInt(verse, 10) : 1,\n );\n }\n }\n });\n }, [updateReference, searchQuery]);\n\n const handleKeyDownInput = useCallback(\n (event: ReactKeyboardEvent) => {\n if (!isContentOpen) {\n setIsContentOpen(true);\n } else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {\n if (\n typeof menuItemRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n menuItemRef.current !== null\n ) {\n menuItemRef.current.focus();\n } else if (\n typeof contentRef !== 'undefined' &&\n // Ref uses null\n // eslint-disable-next-line no-null/no-null\n contentRef.current !== null\n ) {\n contentRef.current.focus();\n }\n event.preventDefault();\n }\n },\n [isContentOpen],\n );\n\n const handleKeyDownContent = (event: ReactKeyboardEvent) => {\n // When the dropdown menu has focus, key strokes should give focus to the input component,\n // unless they're navigation keys (arrows and enter)\n const { key } = event;\n if (\n key === 'ArrowRight' ||\n key === 'ArrowLeft' ||\n key === 'ArrowDown' ||\n key === 'ArrowUp' ||\n key === 'Enter'\n ) {\n return;\n }\n\n inputRef.current.dispatchEvent(new KeyboardEvent('keydown', { key }));\n inputRef.current.focus();\n };\n\n const handleKeyDownMenuItem = (event: ReactKeyboardEvent) => {\n const { key } = event;\n if (highlightedBookId === selectedBookId) {\n if (key === 'Enter') {\n event.preventDefault();\n updateReference(selectedBookId, true, highlightedChapter);\n return;\n }\n\n const upOneChapter =\n (key === 'ArrowRight' && !dir) ||\n (key === 'ArrowRight' && dir === 'ltr') ||\n (key === 'ArrowLeft' && dir === 'rtl');\n const downOneChapter =\n (key === 'ArrowLeft' && !dir) ||\n (key === 'ArrowLeft' && dir === 'ltr') ||\n (key === 'ArrowRight' && dir === 'rtl');\n let chapterOffSet = 0;\n if (upOneChapter) {\n if (highlightedChapter < fetchEndChapter(highlightedBookId)) {\n chapterOffSet = 1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (downOneChapter) {\n if (highlightedChapter > 1) {\n chapterOffSet = -1;\n } else {\n event.preventDefault();\n return;\n }\n } else if (key === 'ArrowDown') {\n chapterOffSet = 6;\n } else if (key === 'ArrowUp') {\n chapterOffSet = -6;\n }\n if (\n highlightedChapter + chapterOffSet <= 0 ||\n highlightedChapter + chapterOffSet > fetchEndChapter(highlightedBookId)\n ) {\n setHighlightedChapter(0);\n } else if (chapterOffSet !== 0) {\n setHighlightedChapter(highlightedChapter + chapterOffSet);\n event.preventDefault();\n }\n }\n };\n\n useEffect(() => {\n if (selectedBookId === highlightedBookId) {\n if (selectedBookId === Canon.bookNumberToId(scrRef.bookNum)) {\n setHighlightedChapter(scrRef.chapterNum);\n } else {\n setHighlightedChapter(1);\n }\n } else {\n setHighlightedChapter(0);\n }\n }, [highlightedBookId, scrRef.bookNum, scrRef.chapterNum, selectedBookId]);\n\n // The purpose of these useLayoutEffects and timeout is to delay the scroll just\n // enough so that the refs are defined and available when they are used after the timeout\n useLayoutEffect(() => {\n setIsContentOpenDelayed(isContentOpen);\n }, [isContentOpen]);\n\n useLayoutEffect(() => {\n const scrollTimeout = setTimeout(() => {\n if (isContentOpenDelayed && contentRef.current && menuItemRef.current) {\n const menuItemOffsetTop = menuItemRef.current.offsetTop;\n const scrollPosition = menuItemOffsetTop - SCROLL_OFFSET;\n contentRef.current.scrollTo({ top: scrollPosition, behavior: 'instant' });\n }\n }, 10);\n return () => {\n clearTimeout(scrollTimeout);\n };\n }, [isContentOpenDelayed]);\n\n return (\n
    \n \n \n {\n setSelectedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedBookId(Canon.bookNumberToId(scrRef.bookNum));\n setHighlightedChapter(scrRef.chapterNum > 0 ? scrRef.chapterNum : 0);\n setIsContentOpen(true);\n inputRef.current.focus();\n }}\n onFocus={() => {\n // Radix thinks we want to close because the input is being focused. Prevent that\n shouldPreventAutoClosing.current = true;\n }}\n handleSubmit={handleInputSubmit}\n placeholder={`${Canon.bookNumberToEnglishName(scrRef.bookNum)} ${scrRef.chapterNum}:${scrRef.verseNum}`}\n />\n \n \n {/* work around until DropdownMenuContent supports a dir prop */}\n
    \n console.log('sorting')}\n handleLocationHistory={() => console.log('location history')}\n handleBookmarks={() => console.log('bookmarks')}\n />\n {BOOK_TYPE_ARRAY.map(\n (bookType, bookTypeIndex) =>\n fetchFilteredBooks(bookType).length > 0 && (\n
    \n \n {BOOK_TYPE_LABELS[bookType]}\n \n\n {fetchFilteredBooks(bookType).map((bookId) => (\n
    \n updateReference(bookId, false)}\n isSelected={selectedBookId === bookId}\n handleHighlightBook={() => setHighlightedBookId(bookId)}\n handleKeyDown={handleKeyDownMenuItem}\n bookType={bookType}\n ref={(element: HTMLDivElement) => {\n if (selectedBookId === bookId) menuItemRef.current = element;\n }}\n >\n {\n setHighlightedChapter(chapterNumber);\n }}\n />\n \n
    \n ))}\n {BOOK_TYPE_ARRAY.length - 1 !== bookTypeIndex ? (\n \n ) : undefined}\n
    \n ),\n )}\n
    \n \n
    \n
    \n );\n}\n\nexport default BookChapterControl;\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nexport const buttonVariants = cva(\n 'pr-twp tw-inline-flex tw-items-center tw-justify-center tw-whitespace-nowrap tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50',\n {\n variants: {\n variant: {\n default: 'tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/90',\n destructive: 'tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/90',\n outline:\n 'tw-border tw-border-input tw-bg-background hover:tw-bg-accent hover:tw-text-accent-foreground',\n secondary: 'tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80',\n ghost: 'hover:tw-bg-accent hover:tw-text-accent-foreground',\n link: 'tw-text-primary tw-underline-offset-4 hover:tw-underline',\n },\n size: {\n default: 'tw-h-10 tw-px-4 tw-py-2',\n sm: 'tw-h-9 tw-rounded-md tw-px-3',\n lg: 'tw-h-11 tw-rounded-md tw-px-8',\n icon: 'tw-h-10 tw-w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean;\n}\n\nexport const Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n return (\n \n );\n },\n);\nButton.displayName = 'Button';\n","import React from 'react';\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst labelVariants = cva(\n 'tw-text-sm tw-font-medium tw-leading-none peer-disabled:tw-cursor-not-allowed peer-disabled:tw-opacity-70',\n);\n\nexport const Label = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, ...props }, ref) => (\n \n));\nLabel.displayName = LabelPrimitive.Root.displayName;\n","import React from 'react';\nimport * as RadioGroupPrimitive from '@radix-ui/react-radio-group';\nimport { Circle } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName;\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n return (\n \n \n \n \n \n );\n});\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;\n\nexport { RadioGroup, RadioGroupItem };\n","import * as PopoverPrimitive from '@radix-ui/react-popover';\nimport React from 'react';\n\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Popover = PopoverPrimitive.Root;\n\nconst PopoverTrigger = PopoverPrimitive.Trigger;\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, align = 'center', sideOffset = 4, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n );\n});\nPopoverContent.displayName = PopoverPrimitive.Content.displayName;\n\nexport { Popover, PopoverContent, PopoverTrigger };\n","import React from 'react';\nimport * as DialogPrimitive from '@radix-ui/react-dialog';\nimport { X } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { readDirection } from '@/utils/dir-helper.util';\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName;\n\nconst DialogContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => {\n const dir = readDirection();\n return (\n \n \n \n {children}\n \n \n Close\n \n \n \n );\n});\nDialogContent.displayName = DialogPrimitive.Content.displayName;\nfunction DialogHeader({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nDialogHeader.displayName = 'DialogHeader';\n\nfunction DialogFooter({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogTitle.displayName = DialogPrimitive.Title.displayName;\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nDialogDescription.displayName = DialogPrimitive.Description.displayName;\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n};\n","import React from 'react';\nimport { type DialogProps } from '@radix-ui/react-dialog';\nimport { Command as CommandPrimitive } from 'cmdk';\nimport { Search } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Dialog, DialogContent } from '@/components/shadcn-ui/dialog';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Command = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nCommand.displayName = CommandPrimitive.displayName;\n\ninterface CommandDialogProps extends DialogProps {}\n\nfunction CommandDialog({ children, ...props }: CommandDialogProps) {\n return (\n \n \n \n {children}\n \n \n \n );\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n
    \n \n \n
    \n );\n});\n\nCommandInput.displayName = CommandPrimitive.Input.displayName;\n\nconst CommandList = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandList.displayName = CommandPrimitive.List.displayName;\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>((props, ref) => (\n \n));\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName;\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName;\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName;\n\nconst CommandItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\n\nCommandItem.displayName = CommandPrimitive.Item.displayName;\n\nfunction CommandShortcut({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\nCommandShortcut.displayName = 'CommandShortcut';\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n};\n","import { ReactNode, useState } from 'react';\nimport { Check, ChevronsUpDown } from 'lucide-react';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover';\nimport {\n Command,\n CommandEmpty,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/components/shadcn-ui/command';\nimport { PopoverProps } from '@radix-ui/react-popover';\n\nexport type ComboBoxLabelOption = { label: string };\nexport type ComboBoxOption = string | number | ComboBoxLabelOption;\n\nexport type ComboBoxProps = {\n /** Optional unique identifier */\n id?: string;\n /** Text label title for combobox */\n /** List of available options for the dropdown menu */\n options?: readonly T[];\n /** @deprecated 3 December 2024. Renamed to {@link buttonClassName} */\n className?: string;\n /** Additional css classes to help with unique styling of the combo box button */\n buttonClassName?: string;\n /** Additional css classes to help with unique styling of the combo box popover */\n popoverContentClassName?: string;\n /**\n * The selected value that the combo box currently holds. Must be shallow equal to one of the\n * options entries.\n */\n value?: T;\n /** Triggers when content of textfield is changed */\n onChange?: (newValue: T) => void;\n /** Used to determine the string value for a given option. */\n getOptionLabel?: (option: ComboBoxOption) => string;\n /** Icon to be displayed on the trigger */\n icon?: ReactNode;\n /** Text displayed on button if `value` is undefined */\n buttonPlaceholder?: string;\n /** Placeholder text for text field */\n textPlaceholder?: string;\n /** Text to display when no options match input */\n commandEmptyMessage?: string;\n /** Variant of button */\n buttonVariant?: ButtonProps['variant'];\n /** Control how the popover menu should be aligned. Defaults to start */\n alignDropDown?: 'start' | 'center' | 'end';\n /** Optional boolean to set if trigger should be disabled */\n isDisabled?: boolean;\n} & PopoverProps;\n\nfunction getOptionLabelDefault(option: ComboBoxOption): string {\n if (typeof option === 'string') {\n return option;\n }\n if (typeof option === 'number') {\n return option.toString();\n }\n return option.label;\n}\n\n/**\n * Autocomplete input and command palette with a list of suggestions.\n *\n * Thanks to Shadcn for heavy inspiration and documentation\n * https://ui.shadcn.com/docs/components/combobox\n */\nfunction ComboBox({\n id,\n options = [],\n className,\n buttonClassName,\n popoverContentClassName,\n value,\n onChange = () => {},\n getOptionLabel = getOptionLabelDefault,\n icon = undefined,\n buttonPlaceholder = '',\n textPlaceholder = '',\n commandEmptyMessage = 'No option found',\n buttonVariant = 'outline',\n alignDropDown = 'start',\n isDisabled = false,\n ...props\n}: ComboBoxProps) {\n const [open, setOpen] = useState(false);\n\n return (\n \n \n \n
    \n {icon &&
    {icon}
    }\n \n {value ? getOptionLabel(value) : buttonPlaceholder}\n \n
    \n\n \n \n
    \n \n \n \n {commandEmptyMessage}\n \n {options.map((option) => (\n {\n onChange(option);\n setOpen(false);\n }}\n >\n \n {getOptionLabel(option)}\n \n ))}\n \n \n \n
    \n );\n}\n\nexport default ComboBox;\n","import ComboBox from '@/components/basics/combo-box.component';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { useMemo } from 'react';\n\nexport type ChapterRangeSelectorProps = {\n startChapter: number;\n endChapter: number;\n handleSelectStartChapter: (chapter: number) => void;\n handleSelectEndChapter: (chapter: number) => void;\n isDisabled?: boolean;\n chapterCount: number;\n};\n\nexport default function ChapterRangeSelector({\n startChapter,\n endChapter,\n handleSelectStartChapter,\n handleSelectEndChapter,\n isDisabled = false,\n chapterCount,\n}: ChapterRangeSelectorProps) {\n const chapterOptions = useMemo(\n () => Array.from({ length: chapterCount }, (_, index) => index + 1),\n [chapterCount],\n );\n\n const onChangeStartChapter = (value: number) => {\n handleSelectStartChapter(value);\n if (value > endChapter) {\n handleSelectEndChapter(value);\n }\n };\n\n const onChangeEndChapter = (value: number) => {\n handleSelectEndChapter(value);\n if (value < startChapter) {\n handleSelectStartChapter(value);\n }\n };\n\n return (\n <>\n \n option.toString()}\n value={startChapter}\n />\n\n \n option.toString()}\n value={endChapter}\n />\n \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { RadioGroup, RadioGroupItem } from '@/components/shadcn-ui/radio-group';\nimport { Canon } from '@sillsdev/scripture';\nimport { LocalizedStringValue } from 'platform-bible-utils';\nimport { useState } from 'react';\nimport ChapterRangeSelector, {\n ChapterRangeSelectorProps,\n} from '../basics/chapter-range-selector.component';\n\nexport enum BookSelectionMode {\n CURRENT_BOOK = 'current book',\n CHOOSE_BOOKS = 'choose books',\n}\n\n/**\n * Object containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const BOOK_SELECTOR_STRING_KEYS = Object.freeze([\n '%webView_bookSelector_currentBook%',\n '%webView_bookSelector_choose%',\n '%webView_bookSelector_chooseBooks%',\n] as const);\n\nexport type BookSelectorLocalizedStrings = {\n [localizedBookSelectorKey in (typeof BOOK_SELECTOR_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: BookSelectorLocalizedStrings,\n key: keyof BookSelectorLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\ntype BookSelectorProps = ChapterRangeSelectorProps & {\n handleBookSelectionModeChange: (newMode: BookSelectionMode) => void;\n currentBookName: string;\n onSelectBooks: () => void;\n selectedBookIds: string[];\n localizedStrings: BookSelectorLocalizedStrings;\n};\n\nexport default function BookSelector({\n handleBookSelectionModeChange,\n currentBookName,\n onSelectBooks,\n selectedBookIds,\n chapterCount,\n endChapter,\n handleSelectEndChapter,\n startChapter,\n handleSelectStartChapter,\n localizedStrings,\n}: BookSelectorProps) {\n const currentBookText = localizeString(localizedStrings, '%webView_bookSelector_currentBook%');\n const chooseText = localizeString(localizedStrings, '%webView_bookSelector_choose%');\n const chooseBooksText = localizeString(localizedStrings, '%webView_bookSelector_chooseBooks%');\n\n const [bookSelectionMode, setBookSelectionMode] = useState(\n BookSelectionMode.CURRENT_BOOK,\n );\n\n const onSelectionModeChange = (newMode: BookSelectionMode) => {\n setBookSelectionMode(newMode);\n handleBookSelectionModeChange(newMode);\n };\n\n return (\n onSelectionModeChange(value as BookSelectionMode)}\n >\n
    \n
    \n
    \n \n \n
    \n \n
    \n \n
    \n
    \n
    \n
    \n \n \n
    \n \n onSelectBooks()}\n >\n {chooseText}\n \n
    \n
    \n \n );\n}\n","import { DropdownMenuTrigger } from '@radix-ui/react-dropdown-menu';\nimport { FilterIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\n\ninterface DataTableViewOptionsProps {\n table: Table;\n}\n\nfunction DataTableViewOptions({ table }: DataTableViewOptionsProps) {\n return (\n \n \n \n \n \n Toggle columns\n \n {table\n .getAllColumns()\n .filter((column) => column.getCanHide())\n .map((column) => {\n return (\n column.toggleVisibility(!!value)}\n >\n {column.id}\n \n );\n })}\n \n \n );\n}\n\nexport default DataTableViewOptions;\n","import React from 'react';\nimport * as SelectPrimitive from '@radix-ui/react-select';\nimport { Check, ChevronDown, ChevronUp } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Select = SelectPrimitive.Root;\n\nconst SelectGroup = SelectPrimitive.Group;\n\nconst SelectValue = SelectPrimitive.Value;\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n span]:tw-line-clamp-1',\n className,\n )}\n {...props}\n dir={dir}\n >\n {children}\n \n \n \n \n );\n});\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName;\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n));\nSelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = 'popper', ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n \n
    {children}
    \n \n \n \n
    \n );\n});\nSelectContent.displayName = SelectPrimitive.Content.displayName;\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectLabel.displayName = SelectPrimitive.Label.displayName;\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n\n {children}\n \n));\nSelectItem.displayName = SelectPrimitive.Item.displayName;\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n));\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName;\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n};\n","import { ChevronLeftIcon, ChevronRightIcon, ArrowLeftIcon, ArrowRightIcon } from 'lucide-react';\nimport { Table } from '@tanstack/react-table';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\n\ninterface DataTablePaginationProps {\n table: Table;\n}\n\nfunction DataTablePagination({ table }: DataTablePaginationProps) {\n return (\n
    \n
    \n
    \n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected\n
    \n
    \n

    Rows per page

    \n {\n table.setPageSize(Number(value));\n }}\n >\n \n \n \n \n {[10, 20, 30, 40, 50].map((pageSize) => (\n \n {pageSize}\n \n ))}\n \n \n
    \n
    \n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n
    \n
    \n table.setPageIndex(0)}\n disabled={!table.getCanPreviousPage()}\n >\n Go to first page\n \n \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Go to previous page\n \n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Go to next page\n \n \n table.setPageIndex(table.getPageCount() - 1)}\n disabled={!table.getCanNextPage()}\n >\n Go to last page\n \n \n
    \n
    \n
    \n );\n}\n\nexport default DataTablePagination;\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Table = React.forwardRef<\n HTMLTableElement,\n React.HTMLAttributes & { stickyHeader?: boolean }\n>(({ className, stickyHeader, ...props }, ref) => (\n
    \n \n
    \n));\nTable.displayName = 'Table';\n\nconst TableHeader = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes & { stickyHeader?: boolean }\n>(({ className, stickyHeader, ...props }, ref) => (\n \n));\nTableHeader.displayName = 'TableHeader';\n\nconst TableBody = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableBody.displayName = 'TableBody';\n\nconst TableFooter = React.forwardRef<\n HTMLTableSectionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n tr]:last:tw-border-b-0', className)}\n {...props}\n />\n));\nTableFooter.displayName = 'TableFooter';\n\nconst TableRow = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableRow.displayName = 'TableRow';\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n React.ThHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableHead.displayName = 'TableHead';\n\nconst TableCell = React.forwardRef<\n HTMLTableCellElement,\n React.TdHTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCell.displayName = 'TableCell';\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n));\nTableCaption.displayName = 'TableCaption';\n\nexport { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };\n","import { useState } from 'react';\n\nimport {\n ColumnFiltersState,\n flexRender,\n getCoreRowModel,\n getFilteredRowModel,\n getPaginationRowModel,\n getSortedRowModel,\n SortingState,\n ColumnDef as TSColumnDef,\n Row as TSRow,\n RowSelectionState as TSRowSelectionState,\n SortDirection as TSSortDirection,\n Table as TSTable,\n useReactTable,\n VisibilityState,\n} from '@tanstack/react-table';\n\nimport DataTableViewOptions from '@/components/advanced/data-table/data-table-column-toggle.component';\nimport DataTablePagination from '@/components/advanced/data-table/data-table-pagination.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\n\nexport type ColumnDef = TSColumnDef;\nexport type RowContents = TSRow;\nexport type TableContents = TSTable;\nexport type SortDirection = TSSortDirection;\nexport type RowSelectionState = TSRowSelectionState;\n\ninterface DataTableProps {\n columns: ColumnDef[];\n data: TData[];\n enablePagination?: boolean;\n showPaginationControls?: boolean;\n showColumnVisibilityControls?: boolean;\n stickyHeader?: boolean;\n onRowClickHandler?: (row: RowContents, table: TableContents) => void;\n}\n\n/**\n * Feature-rich table component that infuses our basic shadcn-based Table component with features\n * from TanStack's React Table library\n */\nfunction DataTable({\n columns,\n data,\n enablePagination = false,\n showPaginationControls = false,\n showColumnVisibilityControls = false,\n stickyHeader = false,\n onRowClickHandler = () => {},\n}: DataTableProps) {\n const [sorting, setSorting] = useState([]);\n const [columnFilters, setColumnFilters] = useState([]);\n const [columnVisibility, setColumnVisibility] = useState({});\n const [rowSelection, setRowSelection] = useState({});\n\n const table = useReactTable({\n data,\n columns,\n getCoreRowModel: getCoreRowModel(),\n ...(enablePagination && { getPaginationRowModel: getPaginationRowModel() }),\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n onColumnFiltersChange: setColumnFilters,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnVisibilityChange: setColumnVisibility,\n onRowSelectionChange: setRowSelection,\n state: {\n sorting,\n columnFilters,\n columnVisibility,\n rowSelection,\n },\n });\n\n return (\n
    \n {showColumnVisibilityControls && }\n \n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers.map((header) => {\n return (\n \n {header.isPlaceholder\n ? undefined\n : flexRender(header.column.columnDef.header, header.getContext())}\n \n );\n })}\n \n ))}\n \n \n {table.getRowModel().rows?.length ? (\n table.getRowModel().rows.map((row) => (\n onRowClickHandler(row, table)}\n key={row.id}\n data-state={row.getIsSelected() && 'selected'}\n >\n {row.getVisibleCells().map((cell) => (\n \n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n \n ))}\n \n ))\n ) : (\n \n \n No results.\n \n \n )}\n \n
    \n {enablePagination && (\n
    \n table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n Previous\n \n table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n Next\n \n
    \n )}\n {enablePagination && showPaginationControls && }\n
    \n );\n}\n\nexport default DataTable;\n","import {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { Canon } from '@sillsdev/scripture';\nimport { deepEqual, LanguageStrings, ScriptureReference } from 'platform-bible-utils';\nimport { useMemo } from 'react';\nimport { InventoryItemOccurrence } from './inventory-utils';\n\n/** Props for the OccurrencesTable component */\ntype OccurrencesTableProps = {\n /** Data that contains scriptures references and snippets of scripture */\n occurrenceData: InventoryItemOccurrence[];\n /** Callback function that is executed when the scripture reference is changed */\n setScriptureReference: (scriptureReference: ScriptureReference) => void;\n /**\n * Object with all localized strings that the OccurrencesTable needs to work well across multiple\n * languages\n */\n localizedStrings: LanguageStrings;\n};\n\n/**\n * Table that shows occurrences of specified inventory item(s). The first column shows the related\n * scripture reference. The second column shows the snippet of scripture that contains the specified\n * inventory item\n */\nfunction OccurrencesTable({\n occurrenceData,\n setScriptureReference,\n localizedStrings,\n}: OccurrencesTableProps) {\n const referenceHeaderText =\n localizedStrings['%webView_inventory_occurrences_table_header_reference%'];\n const occurrenceHeaderText =\n localizedStrings['%webView_inventory_occurrences_table_header_occurrence%'];\n\n const occurrences: InventoryItemOccurrence[] = useMemo(() => {\n const uniqueOccurrences: InventoryItemOccurrence[] = [];\n\n occurrenceData.forEach((occurrence) => {\n if (!uniqueOccurrences.some((uniqueOccurrence) => deepEqual(uniqueOccurrence, occurrence))) {\n uniqueOccurrences.push(occurrence);\n }\n });\n\n return uniqueOccurrences;\n }, [occurrenceData]);\n\n return (\n \n \n \n {referenceHeaderText}\n {occurrenceHeaderText}\n \n \n \n {occurrences.length > 0 &&\n occurrences.map((occurrence) => (\n {\n setScriptureReference(occurrence.reference);\n }}\n >\n {`${Canon.bookNumberToEnglishName(occurrence.reference.bookNum)} ${occurrence.reference.chapterNum}:${occurrence.reference.verseNum}`}\n {occurrence.text}\n \n ))}\n \n
    \n );\n}\n\nexport default OccurrencesTable;\n","import React from 'react';\nimport * as CheckboxPrimitive from '@radix-ui/react-checkbox';\nimport { Check } from 'lucide-react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Checkbox = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n));\nCheckbox.displayName = CheckboxPrimitive.Root.displayName;\n\nexport default Checkbox;\n","import { Canon } from '@sillsdev/scripture';\nimport { ScriptureReference } from 'platform-bible-utils';\n\n/* #region Types */\n\n/**\n * Status of items that appear in inventories. 'approved' and 'unapproved' items are defined in the\n * project's `Settings.xml`. All other items are defined as 'unknown'\n */\nexport type Status = 'approved' | 'unapproved' | 'unknown';\n\n/** Occurrence of item in inventory. Primarily used by table that shows occurrences */\nexport type InventoryItemOccurrence = {\n /** Reference to scripture where the item appears */\n reference: ScriptureReference;\n /** Snippet of scripture that contains the occurrence */\n text: string;\n};\n\n/** Data structure that contains all information on an item that is shown in an inventory */\nexport type InventoryTableData = {\n /**\n * The item (e.g. a character in the characters inventory, a marker in the marker inventory) In\n * most cases the array will only have one element. In case of additional items (e.g. the\n * preceding marker in the markers check), the primary item should be stored in the first index.\n * To show additional items in the inventory, make sure to configure the `additionalItemsLabels`\n * prop for the Inventory component\n */\n items: string[];\n /** The number of times this item occurs in the selected scope */\n count: number;\n /** The status of this item (see documentation for `Status` type for more information) */\n status: Status;\n /** Occurrences of this item in the scripture text for the selected scope */\n occurrences: InventoryItemOccurrence[];\n};\n\n/* #endregion */\n\n/* #region Functions */\n\n/**\n * Splits USFM string into shorter line-like segments\n *\n * @param text A single (likely very large) USFM string\n * @returns An array containing the input text, split into shorter segments\n */\nexport const getLinesFromUSFM = (text: string) => {\n // Splits on (CR)LF, CR, \\v, \\c and \\id\n return text.split(/(?:\\r?\\n|\\r)|(?=(?:\\\\(?:v|c|id)))/g);\n};\n\n/**\n * Extracts chapter or verse number from USFM strings that start with a \\c or \\v marker\n *\n * @param text USFM string that is expected to start with \\c or \\v marker\n * @returns Chapter or verse number if one is found. Else returns 0.\n */\nexport const getNumberFromUSFM = (text: string): number | undefined => {\n // Captures all digits that follow \\v or \\c markers followed by whitespace located at the start of a string\n const regex = /^\\\\[vc]\\s+(\\d+)/;\n const match = text.match(regex);\n\n if (match) {\n return +match[1];\n }\n return undefined;\n};\n\n/**\n * Gets book ID from USFM string that starts with the \\id marker, and returns book number for it\n *\n * @param text USFM string that is expected to start with \\id marker\n * @returns Book number corresponding to the \\id marker in the input text. Returns 0 if no marker is\n * found or the marker is not valid\n */\nexport const getBookNumFromId = (text: string): number => {\n // Captures all digits that follow an \\id marker followed by whitespace located at the start of a string\n const match = text.match(/^\\\\id\\s+([A-Za-z]+)/);\n if (match) {\n return Canon.bookIdToNumber(match[1]);\n }\n return 0;\n};\n\n/**\n * Gets the status for an item, typically used in the Inventory component\n *\n * @param item The item for which the status is being requested\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @returns The status for the specified item\n */\nexport const getStatusForItem = (\n item: string,\n approvedItems: string[],\n unapprovedItems: string[],\n): Status => {\n if (unapprovedItems.includes(item)) return 'unapproved';\n if (approvedItems.includes(item)) return 'approved';\n return 'unknown';\n};\n\n/* #endregion */\n","import React from 'react';\nimport * as TogglePrimitive from '@radix-ui/react-toggle';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst toggleVariants = cva(\n 'pr-twp tw-inline-flex tw-items-center tw-justify-center tw-rounded-md tw-text-sm tw-font-medium tw-ring-offset-background tw-transition-colors hover:tw-bg-muted hover:tw-text-muted-foreground focus-visible:tw-outline-none focus-visible:tw-ring-2 focus-visible:tw-ring-ring focus-visible:tw-ring-offset-2 disabled:tw-pointer-events-none disabled:tw-opacity-50 data-[state=on]:tw-bg-accent data-[state=on]:tw-text-accent-foreground',\n {\n variants: {\n variant: {\n default: 'tw-bg-transparent',\n outline:\n 'tw-border tw-border-input tw-bg-transparent hover:tw-bg-accent hover:tw-text-accent-foreground',\n },\n size: {\n default: 'tw-h-10 tw-px-3',\n sm: 'tw-h-9 tw-px-2.5',\n lg: 'tw-h-11 tw-px-5',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nconst Toggle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, variant, size, ...props }, ref) => (\n \n));\n\nToggle.displayName = TogglePrimitive.Root.displayName;\n\nexport { Toggle, toggleVariants };\n","import React from 'react';\nimport * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';\nimport { type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { toggleVariants } from '@/components/shadcn-ui/toggle';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst ToggleGroupContext = React.createContext>({\n size: 'default',\n variant: 'default',\n});\n\nconst ToggleGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef &\n VariantProps\n>(({ className, variant, size, children, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n {children}\n \n \n );\n});\n\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;\n\nconst ToggleGroupItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef &\n VariantProps\n>(({ className, children, variant, size, ...props }, ref) => {\n const context = React.useContext(ToggleGroupContext);\n\n return (\n \n {children}\n \n );\n});\n\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;\n\nexport { ToggleGroup, ToggleGroupItem };\n","import { ColumnDef, SortDirection } from '@/components/advanced/data-table/data-table.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport { ToggleGroup, ToggleGroupItem } from '@/components/shadcn-ui/toggle-group';\nimport {\n ArrowDownIcon,\n ArrowUpDownIcon,\n ArrowUpIcon,\n CircleCheckIcon,\n CircleHelpIcon,\n CircleXIcon,\n} from 'lucide-react';\nimport { ReactNode } from 'react';\nimport { InventoryTableData, Status } from './inventory-utils';\n\n/**\n * Gets an icon that indicates the current sorting direction based on the provided input\n *\n * @param sortDirection Sorting direction. Can be ascending ('asc'), descending ('desc') or false (\n * i.e. not sorted)\n * @returns The appropriate sorting icon for the provided sorting direction\n */\nconst getSortingIcon = (sortDirection: false | SortDirection): ReactNode => {\n if (sortDirection === 'asc') {\n return ;\n }\n if (sortDirection === 'desc') {\n return ;\n }\n return ;\n};\n\n/**\n * Function that creates the item column for inventories\n *\n * @param itemLabel Localized label for the item column (e.g. 'Character', 'Repeated Word', etc.)\n * @returns Column that shows the inventory items. Should be used with the DataTable component\n */\nexport const inventoryItemColumn = (itemLabel: string): ColumnDef => {\n return {\n accessorKey: 'item',\n accessorFn: (row: InventoryTableData) => row.items[0],\n header: ({ column }) => (\n \n ),\n };\n};\n\n/**\n * Function that creates the additional item columns for inventories\n *\n * @param additionalItemLabel Localized label for the additional item column (e.g. 'Preceding\n * Marker')\n * @param additionalItemIndex Index that locates the desired item in the items array of the\n * inventory\n * @returns Column that shows additional inventory items. Should be used with the DataTable\n * component\n */\nexport const inventoryAdditionalItemColumn = (\n additionalItemLabel: string,\n additionalItemIndex: number,\n): ColumnDef => {\n return {\n accessorKey: `item${additionalItemIndex}`,\n accessorFn: (row: InventoryTableData) => row.items[additionalItemIndex],\n header: ({ column }) => (\n \n ),\n };\n};\n\n/**\n * Function that creates the count column for inventories. Should be used with the DataTable\n * component.\n *\n * @param itemLabel Localized label for the count column\n * @returns Column that shows the number of occurrences of the related inventory items\n */\nexport const inventoryCountColumn = (countLabel: string): ColumnDef => {\n return {\n accessorKey: 'count',\n header: ({ column }) => (\n
    \n \n
    \n ),\n cell: ({ row }) =>
    {row.getValue('count')}
    ,\n };\n};\n\n/**\n * Function that updates project settings when status for item(s) changes\n *\n * @param changedItems Array of items for which the status is being updated\n * @param newStatus The status that the items are being given\n * @param approvedItems Array of currently approved items\n * @param onApprovedItemsChange Callback function that stores the updated list of approved items\n * @param unapprovedItems Array of currently unapproved items\n * @param onUnapprovedItemsChange Callback function that stores the updated list of unapproved items\n */\nconst statusChangeHandler = (\n changedItems: string[],\n newStatus: Status,\n approvedItems: string[],\n onApprovedItemsChange: (items: string[]) => void,\n unapprovedItems: string[],\n onUnapprovedItemsChange: (items: string[]) => void,\n) => {\n let newApprovedItems: string[] = [...approvedItems];\n changedItems.forEach((item) => {\n if (newStatus === 'approved') {\n if (!newApprovedItems.includes(item)) {\n newApprovedItems.push(item);\n }\n } else {\n newApprovedItems = newApprovedItems.filter((validItem) => validItem !== item);\n }\n });\n onApprovedItemsChange(newApprovedItems);\n\n let newUnapprovedItems: string[] = [...unapprovedItems];\n changedItems.forEach((item) => {\n if (newStatus === 'unapproved') {\n if (!newUnapprovedItems.includes(item)) {\n newUnapprovedItems.push(item);\n }\n } else {\n newUnapprovedItems = newUnapprovedItems.filter((unapprovedItem) => unapprovedItem !== item);\n }\n });\n onUnapprovedItemsChange(newUnapprovedItems);\n};\n\n/**\n * Function that creates the status column for inventories. Should be used with the DataTable\n * component.\n *\n * @param statusLabel Localized label for the status column\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param onApprovedItemsChange Callback function that stores the updated list of approved items\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @param onUnapprovedItemsChange Callback function that stores the updated list of unapproved items\n * @returns Column that shows the status buttons for the related inventory item. The button for the\n * current status of the item is selected\n */\nexport const inventoryStatusColumn = (\n statusLabel: string,\n approvedItems: string[],\n onApprovedItemsChange: (items: string[]) => void,\n unapprovedItems: string[],\n onUnapprovedItemsChange: (items: string[]) => void,\n): ColumnDef => {\n return {\n accessorKey: 'status',\n header: ({ column }) => {\n return (\n
    \n \n
    \n );\n },\n cell: ({ row }) => {\n const status: Status = row.getValue('status');\n const item: string = row.getValue('item');\n return (\n \n \n statusChangeHandler(\n [item],\n 'approved',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"approved\"\n >\n \n \n \n statusChangeHandler(\n [item],\n 'unapproved',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"unapproved\"\n >\n \n \n \n statusChangeHandler(\n [item],\n 'unknown',\n approvedItems,\n onApprovedItemsChange,\n unapprovedItems,\n onUnapprovedItemsChange,\n )\n }\n value=\"unknown\"\n >\n \n \n \n );\n },\n };\n};\n","import DataTable, {\n ColumnDef,\n RowContents,\n RowSelectionState,\n TableContents,\n} from '@/components/advanced/data-table/data-table.component';\nimport OccurrencesTable from '@/components/advanced/inventory/occurrences-table.component';\nimport Checkbox from '@/components/shadcn-ui/checkbox';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Label } from '@/components/shadcn-ui/label';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport {\n deepEqual,\n LocalizedStringValue,\n ScriptureReference,\n substring,\n} from 'platform-bible-utils';\nimport { useEffect, useMemo, useState } from 'react';\nimport {\n getBookNumFromId,\n getLinesFromUSFM,\n getNumberFromUSFM,\n getStatusForItem,\n InventoryItemOccurrence,\n InventoryTableData,\n Status,\n} from './inventory-utils';\nimport { inventoryAdditionalItemColumn } from './inventory-columns';\n\n/**\n * Object containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const INVENTORY_STRING_KEYS = Object.freeze([\n '%webView_inventory_all%',\n '%webView_inventory_approved%',\n '%webView_inventory_unapproved%',\n '%webView_inventory_unknown%',\n '%webView_inventory_scope_currentBook%',\n '%webView_inventory_scope_chapter%',\n '%webView_inventory_scope_verse%',\n '%webView_inventory_filter_text%',\n '%webView_inventory_show_additional_items%',\n '%webView_inventory_occurrences_table_header_reference%',\n '%webView_inventory_occurrences_table_header_occurrence%',\n] as const);\n\nexport type InventoryLocalizedStrings = {\n [localizedInventoryKey in (typeof INVENTORY_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/** Scope of scripture that the inventory can operate on */\nexport type Scope = 'book' | 'chapter' | 'verse';\n\n/** Status values that the status filter can select from */\ntype StatusFilter = Status | 'all';\n\n/** Text labels for the inventory columns and the control components of additional inventory items */\ntype AdditionalItemsLabels = {\n checkboxText?: string;\n tableHeaders?: string[];\n};\n\n/**\n * Filters data that is shown in the DataTable section of the Inventory\n *\n * @param itemData All inventory items and their related information\n * @param statusFilter Allows filtering by status (i.e. show all items, or only items that are\n * 'approved', 'unapproved' or 'unknown')\n * @param textFilter Allows filtering by text. All items that include the filter text will be\n * selected.\n * @returns Array of items and their related information that are matched by the specified filters\n */\nconst filterItemData = (\n itemData: InventoryTableData[],\n statusFilter: StatusFilter,\n textFilter: string,\n): InventoryTableData[] => {\n let filteredItemData: InventoryTableData[] = itemData;\n\n if (statusFilter !== 'all') {\n filteredItemData = filteredItemData.filter(\n (item) =>\n (statusFilter === 'approved' && item.status === 'approved') ||\n (statusFilter === 'unapproved' && item.status === 'unapproved') ||\n (statusFilter === 'unknown' && item.status === 'unknown'),\n );\n }\n\n if (textFilter !== '')\n filteredItemData = filteredItemData.filter((item) => item.items[0].includes(textFilter));\n\n return filteredItemData;\n};\n\n/**\n * Turns array of strings into array of inventory items, along with their count and status\n *\n * @param text The source scripture text that is searched for inventory items\n * @param scriptureRef The scripture reference that the application is currently set to\n * @param approvedItems Array of approved items, typically as defined in `Settings.xml`\n * @param unapprovedItems Array of unapproved items, typically as defined in `Settings.xml`\n * @param itemRegex Regular expression that describes what items this Inventory should extract from\n * the provided scripture text\n * @returns Array of inventory items, along with their count and status\n */\nconst createTableData = (\n text: string | undefined,\n scriptureRef: ScriptureReference,\n approvedItems: string[],\n unapprovedItems: string[],\n itemRegex: RegExp,\n): InventoryTableData[] => {\n if (!text) return [];\n\n const tableData: InventoryTableData[] = [];\n\n let currentBook: number | undefined = scriptureRef.bookNum;\n let currentChapter: number | undefined = scriptureRef.chapterNum;\n let currentVerse: number | undefined = scriptureRef.verseNum;\n\n const lines = getLinesFromUSFM(text);\n\n lines.forEach((line: string) => {\n if (line.startsWith('\\\\id')) {\n currentBook = getBookNumFromId(line);\n currentChapter = 0;\n currentVerse = 0;\n }\n if (line.startsWith('\\\\c')) {\n currentChapter = getNumberFromUSFM(line);\n currentVerse = 0;\n }\n if (line.startsWith('\\\\v')) {\n currentVerse = getNumberFromUSFM(line);\n if (currentChapter === 0) {\n currentChapter = scriptureRef.chapterNum;\n }\n }\n\n let match: RegExpExecArray | undefined = itemRegex.exec(line) ?? undefined;\n while (match) {\n const items: string[] = [];\n match.forEach((item) => items.push(item));\n const itemIndex = match.index;\n const existingItem = tableData.find((tableEntry) => deepEqual(tableEntry.items, items));\n const newReference: InventoryItemOccurrence = {\n reference: {\n bookNum: currentBook !== undefined ? currentBook : -1,\n chapterNum: currentChapter !== undefined ? currentChapter : -1,\n verseNum: currentVerse !== undefined ? currentVerse : -1,\n },\n text: substring(line, Math.max(0, itemIndex - 25), Math.min(itemIndex + 25, line.length)),\n };\n if (existingItem) {\n existingItem.count += 1;\n existingItem.occurrences.push(newReference);\n } else {\n const newItem: InventoryTableData = {\n items,\n count: 1,\n status: getStatusForItem(items[0], approvedItems, unapprovedItems),\n occurrences: [newReference],\n };\n tableData.push(newItem);\n }\n\n match = itemRegex.exec(line) ?? undefined;\n }\n });\n\n return tableData;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: InventoryLocalizedStrings,\n key: keyof InventoryLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\n/** Props for the Inventory component */\ntype InventoryProps = {\n /** The scripture reference that the application is currently set to */\n scriptureReference: ScriptureReference;\n /** Callback function that is executed when the scripture reference is changed */\n setScriptureReference: (scriptureReference: ScriptureReference) => void;\n /**\n * Object with all localized strings that the Inventory needs to work well across multiple\n * languages. When using this component with Platform.Bible, you can import\n * `INVENTORY_STRING_KEYS` from this library, pass it in to the Platform's localization hook, and\n * pass the localized keys that are returned by the hook into this prop.\n */\n localizedStrings: InventoryLocalizedStrings;\n /**\n * The logic that finds the desired items in the source text. This can either be a Regular\n * expression that captures one or multiple items (preferred), or a custom function that builds\n * and return an InventoryDataTable[] manually. Note: In case the logic captures more than one\n * item (i.e. InventoryTableData.items has a length greater than 1), you must provide text labels\n * for the related columns and control elements to show by setting the `additionalItemsLabels`\n * prop\n */\n extractItems:\n | RegExp\n | ((\n text: string | undefined,\n scriptureRef: ScriptureReference,\n approvedItems: string[],\n unapprovedItems: string[],\n ) => InventoryTableData[]);\n /**\n * Text labels for control elements and additional column headers in case your Inventory has more\n * than one item to show (e.g. The 'Preceding Marker' in the Markers Inventory)\n */\n additionalItemsLabels?: AdditionalItemsLabels;\n /** Array of approved items, typically as defined in `Settings.xml` */\n approvedItems: string[];\n /** Array of unapproved items, typically as defined in `Settings.xml` */\n unapprovedItems: string[];\n /** The source scripture text that is searched for in inventory items */\n text: string | undefined;\n /** Scope of scripture that the inventory will operate on */\n scope: Scope;\n /** Callback function that is executed when the scope is changed from the Inventory */\n onScopeChange: (scope: Scope) => void;\n /**\n * Column definitions for the Inventory data table. The most commonly used column definitions are\n * pre-configured for your convenience and can be imported (e.g. inventoryItemColumn,\n * inventoryAdditionalItemColumn inventoryCountColumn, and inventoryStatusColumn). If you need any\n * other columns you can add these yourself\n */\n columns: ColumnDef[];\n};\n\n/** Inventory component that is used to view and control the status of provided project settings */\nexport default function Inventory({\n scriptureReference,\n setScriptureReference,\n localizedStrings,\n extractItems,\n additionalItemsLabels,\n approvedItems,\n unapprovedItems,\n text,\n scope,\n onScopeChange,\n columns,\n}: InventoryProps) {\n const allItemsText = localizeString(localizedStrings, '%webView_inventory_all%');\n const approvedItemsText = localizeString(localizedStrings, '%webView_inventory_approved%');\n const unapprovedItemsText = localizeString(localizedStrings, '%webView_inventory_unapproved%');\n const unknownItemsText = localizeString(localizedStrings, '%webView_inventory_unknown%');\n const scopeBookText = localizeString(localizedStrings, '%webView_inventory_scope_currentBook%');\n const scopeChapterText = localizeString(localizedStrings, '%webView_inventory_scope_chapter%');\n const scopeVerseText = localizeString(localizedStrings, '%webView_inventory_scope_verse%');\n const filterText = localizeString(localizedStrings, '%webView_inventory_filter_text%');\n const showAdditionalItemsText = localizeString(\n localizedStrings,\n '%webView_inventory_show_additional_items%',\n );\n\n const [showAdditionalItems, setShowAdditionalItems] = useState(false);\n const [statusFilter, setStatusFilter] = useState('all');\n const [textFilter, setTextFilter] = useState('');\n const [selectedItem, setSelectedItem] = useState([]);\n\n const tableData: InventoryTableData[] = useMemo(() => {\n if (!text) return [];\n if (extractItems instanceof RegExp)\n return createTableData(\n text,\n scriptureReference,\n approvedItems,\n unapprovedItems,\n extractItems,\n );\n return extractItems(text, scriptureReference, approvedItems, unapprovedItems);\n }, [text, extractItems, scriptureReference, approvedItems, unapprovedItems]);\n\n const reducedTableData: InventoryTableData[] = useMemo(() => {\n if (showAdditionalItems) return tableData;\n\n const newTableData: InventoryTableData[] = [];\n\n tableData.forEach((tableEntry) => {\n const firstItem = tableEntry.items[0];\n\n const existingEntry = newTableData.find(\n (newTableEntry) => newTableEntry.items[0] === firstItem,\n );\n\n if (existingEntry) {\n existingEntry.count += tableEntry.count;\n existingEntry.occurrences = existingEntry.occurrences.concat(tableEntry.occurrences);\n } else {\n newTableData.push({\n items: [firstItem],\n count: tableEntry.count,\n occurrences: tableEntry.occurrences,\n status: tableEntry.status,\n });\n }\n });\n\n return newTableData;\n }, [showAdditionalItems, tableData]);\n\n const filteredTableData: InventoryTableData[] = useMemo(() => {\n return filterItemData(reducedTableData, statusFilter, textFilter);\n }, [reducedTableData, statusFilter, textFilter]);\n\n const allColumns: ColumnDef[] = useMemo(() => {\n if (!showAdditionalItems) return columns;\n\n const numberOfAdditionalItems = additionalItemsLabels?.tableHeaders?.length;\n if (!numberOfAdditionalItems) return columns;\n\n const additionalColumns: ColumnDef[] = [];\n\n for (let index = 0; index < numberOfAdditionalItems; index++) {\n additionalColumns.push(\n inventoryAdditionalItemColumn(\n additionalItemsLabels?.tableHeaders?.[index] || 'Additional Item',\n index + 1,\n ),\n );\n }\n\n return [...additionalColumns, ...columns];\n }, [additionalItemsLabels?.tableHeaders, columns, showAdditionalItems]);\n\n useEffect(() => {\n setSelectedItem([]);\n }, [filteredTableData]);\n\n const rowClickHandler = (\n row: RowContents,\n table: TableContents,\n ) => {\n table.setRowSelection(() => {\n const newSelection: RowSelectionState = {};\n newSelection[row.index] = true;\n return newSelection;\n });\n\n setSelectedItem(row.original.items);\n };\n\n const handleScopeChange = (value: string) => {\n if (value === 'book' || value === 'chapter' || value === 'verse') {\n onScopeChange(value);\n } else {\n throw new Error(`Invalid scope value: ${value}`);\n }\n };\n\n const handleStatusFilterChange = (value: string) => {\n if (value === 'all' || value === 'approved' || value === 'unapproved' || value === 'unknown') {\n setStatusFilter(value);\n } else {\n throw new Error(`Invalid status filter value: ${value}`);\n }\n };\n\n const occurrenceData: InventoryItemOccurrence[] = useMemo(() => {\n if (reducedTableData.length === 0 || selectedItem.length === 0) return [];\n const occurrence = reducedTableData.filter((tableEntry: InventoryTableData) => {\n return deepEqual(\n showAdditionalItems ? tableEntry.items : [tableEntry.items[0]],\n selectedItem,\n );\n });\n if (occurrence.length > 1) throw new Error('Selected item is not unique');\n return occurrence[0].occurrences;\n }, [selectedItem, showAdditionalItems, reducedTableData]);\n\n return (\n
    \n
    \n handleStatusFilterChange(value)}\n defaultValue={statusFilter}\n >\n \n \n \n \n {allItemsText}\n {approvedItemsText}\n {unapprovedItemsText}\n {unknownItemsText}\n \n \n \n {\n setTextFilter(event.target.value);\n }}\n />\n {additionalItemsLabels && (\n
    \n {\n setSelectedItem([]);\n setShowAdditionalItems(checked);\n }}\n />\n \n
    \n )}\n
    \n
    \n \n
    \n {occurrenceData.length > 0 && (\n
    \n \n
    \n )}\n
    \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport {\n Command,\n CommandEmpty,\n CommandGroup,\n CommandInput,\n CommandItem,\n CommandList,\n} from '@/components/shadcn-ui/command';\nimport { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Check, ChevronsUpDown, Star } from 'lucide-react';\nimport { ReactNode, useCallback, useMemo, useState } from 'react';\n\nexport type MultiSelectComboBoxEntry = {\n value: string;\n label: string;\n starred?: boolean;\n};\n\nexport interface MultiSelectComboBoxProps {\n entries: MultiSelectComboBoxEntry[];\n getEntriesCount?: (option: MultiSelectComboBoxEntry) => number;\n selected: string[];\n onChange: (values: string[]) => void;\n placeholder: string;\n commandEmptyMessage?: string;\n customSelectedText?: string;\n sortSelected?: boolean;\n icon?: ReactNode;\n className?: string;\n}\n\nfunction MultiSelectComboBox({\n entries,\n getEntriesCount = undefined,\n selected,\n onChange,\n placeholder,\n commandEmptyMessage = 'No entries found',\n customSelectedText,\n sortSelected = false,\n icon = undefined,\n className = undefined,\n}: MultiSelectComboBoxProps) {\n const [open, setOpen] = useState(false);\n\n const handleSelect = useCallback(\n (label: string) => {\n const value = entries.find((entry) => entry.label === label)?.value;\n if (!value) return;\n onChange(\n selected.includes(value) ? selected.filter((item) => item !== value) : [...selected, value],\n );\n },\n [entries, selected, onChange],\n );\n\n const getPlaceholderText = () => {\n if (customSelectedText) return customSelectedText;\n return placeholder;\n };\n\n const sortedOptions = useMemo(() => {\n if (!sortSelected) return entries;\n\n const starredItems = entries\n .filter((opt) => opt.starred)\n .sort((a, b) => a.label.localeCompare(b.label));\n const nonStarredItems = entries\n .filter((opt) => !opt.starred)\n .sort((a, b) => {\n const aSelected = selected.includes(a.value);\n const bSelected = selected.includes(b.value);\n if (aSelected && !bSelected) return -1;\n if (!aSelected && bSelected) return 1;\n return a.label.localeCompare(b.label);\n });\n\n return [...starredItems, ...nonStarredItems];\n }, [entries, selected, sortSelected]);\n\n return (\n
    \n \n \n 0 && selected.length < entries.length && 'tw-border-primary',\n 'tw-group',\n )}\n >\n
    \n
    \n \n {icon}\n \n
    \n \n
    {getPlaceholderText()}
    \n
    \n
    \n \n \n \n \n \n \n \n {commandEmptyMessage}\n \n {sortedOptions.map((option) => {\n const count: number | undefined = getEntriesCount\n ? getEntriesCount(option)\n : undefined;\n return (\n \n
    \n \n
    \n
    \n {option.starred && }\n
    \n
    {option.label}
    \n {getEntriesCount && (\n
    {count}
    \n )}\n \n );\n })}\n
    \n
    \n
    \n
    \n \n
    \n );\n}\n\nexport default MultiSelectComboBox;\n","import { Button } from '@/components/shadcn-ui/button';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Search, X } from 'lucide-react';\nimport { useState } from 'react';\n\n/** Props for the SearchBar component. */\nexport type SearchBarProps = {\n /**\n * Callback fired to handle the search query when button pressed\n *\n * @param searchQuery\n */\n onSearch: (searchQuery: string) => void;\n\n /** Optional string that appears in the search bar without a search string */\n placeholder?: string;\n\n /** Optional boolean to set the input base to full width */\n isFullWidth?: boolean;\n\n /** Additional css classes to help with unique styling of the search bar */\n className?: string;\n};\n\nexport default function SearchBar({\n onSearch,\n placeholder,\n isFullWidth,\n className,\n}: SearchBarProps) {\n const [searchQuery, setSearchQuery] = useState('');\n\n const handleInputChange = (searchString: string) => {\n setSearchQuery(searchString);\n onSearch(searchString);\n };\n\n const dir: Direction = readDirection();\n\n return (\n
    \n \n handleInputChange(e.target.value)}\n />\n {searchQuery && (\n {\n handleInputChange('');\n }}\n >\n \n Clear\n \n )}\n
    \n );\n}\n","// adapted from: https://github.com/shadcn-ui/ui/discussions/752\n\n'use client';\n\nimport { TabsContentProps, TabsListProps, TabsTriggerProps } from '@/components/shadcn-ui/tabs';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\nimport React from 'react';\n\nexport type VerticalTabsProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type LeftTabsTriggerProps = TabsTriggerProps & {\n value: string;\n ref?: React.Ref;\n};\n\nexport const VerticalTabs = React.forwardRef<\n React.ElementRef,\n VerticalTabsProps\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\n\nVerticalTabs.displayName = TabsPrimitive.List.displayName;\n\nexport const VerticalTabsList = React.forwardRef<\n React.ElementRef,\n TabsListProps\n>(({ className, ...props }, ref) => (\n \n));\nVerticalTabsList.displayName = TabsPrimitive.List.displayName;\n\nexport const VerticalTabsTrigger = React.forwardRef<\n React.ElementRef,\n LeftTabsTriggerProps\n>(({ className, ...props }, ref) => (\n \n));\n\nexport const VerticalTabsContent = React.forwardRef<\n React.ElementRef,\n TabsContentProps\n>(({ className, ...props }, ref) => (\n \n));\nVerticalTabsContent.displayName = TabsPrimitive.Content.displayName;\n","import SearchBar from '@/components/basics/search-bar.component';\nimport {\n VerticalTabs,\n VerticalTabsContent,\n VerticalTabsList,\n VerticalTabsTrigger,\n} from '@/components/basics/tabs-vertical';\nimport { ReactNode } from 'react';\n\nexport type TabKeyValueContent = {\n key: string;\n value: string;\n content: ReactNode;\n};\n\nexport type TabNavigationContentSearchProps = {\n /** List of values and keys for each tab this component should provide */\n tabList: TabKeyValueContent[];\n\n /** Handler to run when the value of the search bar changes */\n onSearch: (searchQuery: string) => void;\n\n /** Optional placeholder for the search bar */\n searchPlaceholder?: string;\n\n /** Optional title to include in the header */\n headerTitle?: string;\n\n /** Optional className to modify the search input */\n searchClassName?: string;\n};\n\nexport default function TabNavigationContentSearch({\n tabList,\n onSearch,\n searchPlaceholder,\n headerTitle,\n searchClassName,\n}: TabNavigationContentSearchProps) {\n return (\n
    \n
    \n {headerTitle ?

    {headerTitle}

    : ''}\n \n
    \n \n \n {tabList.map((tab) => (\n \n {tab.value}\n \n ))}\n \n {tabList.map((tab) => (\n \n {tab.content}\n \n ))}\n \n
    \n );\n}\n","import React from 'react';\nimport * as SeparatorPrimitive from '@radix-ui/react-separator';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Separator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, orientation = 'horizontal', decorative = true, ...props }, ref) => (\n \n));\nSeparator.displayName = SeparatorPrimitive.Root.displayName;\n\nexport { Separator };\n","import React from 'react';\nimport { cn } from '@/utils/shadcn-ui.util';\n\nfunction Skeleton({ className, ...props }: React.HTMLAttributes) {\n return (\n \n );\n}\n\nexport { Skeleton };\n","import React from 'react';\nimport * as TooltipPrimitive from '@radix-ui/react-tooltip';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst TooltipProvider = TooltipPrimitive.Provider;\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n));\nTooltipContent.displayName = TooltipPrimitive.Content.displayName;\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n","import React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { VariantProps, cva } from 'class-variance-authority';\nimport { PanelLeft, PanelRight } from 'lucide-react';\n\nimport { Button } from '@/components/shadcn-ui/button';\nimport { Input } from '@/components/shadcn-ui/input';\nimport { Separator } from '@/components/shadcn-ui/separator';\nimport { Skeleton } from '@/components/shadcn-ui/skeleton';\nimport {\n Tooltip,\n TooltipContent,\n TooltipProvider,\n TooltipTrigger,\n} from '@/components/shadcn-ui/tooltip';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\n/**\n * CUSTOM: Changes from the original code from Shadcn- Removed uses of useIsMobile, Sheet, and\n * SheetContent. Also removed the parts setting COOKIES.\n */\n\nconst SIDEBAR_WIDTH = '16rem';\nconst SIDEBAR_WIDTH_ICON = '3rem';\n// CUSTOM: Commented this out pending a discussion with UX about keyboard shortcuts\n// const SIDEBAR_KEYBOARD_SHORTCUT = 'b';\n\ntype Side = 'primary' | 'secondary';\n\ntype SidebarContextProps = {\n state: 'expanded' | 'collapsed';\n open: boolean;\n setOpen: (open: boolean) => void;\n toggleSidebar: () => void;\n // CUSTOM: this was moved from Sidebar to SidebarProvider to also be able to flip the icon based on the side\n side: Side;\n};\n\nconst SidebarContext = React.createContext(undefined);\n\nfunction useSidebar() {\n const context = React.useContext(SidebarContext);\n if (!context) {\n throw new Error('useSidebar must be used within a SidebarProvider.');\n }\n\n return context;\n}\n\nconst SidebarProvider = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n defaultOpen?: boolean;\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n side?: Side;\n }\n>(\n (\n {\n defaultOpen = true,\n open: openProp,\n onOpenChange: setOpenProp,\n className,\n style,\n children,\n side = 'primary',\n ...props\n },\n ref,\n ) => {\n // This is the internal state of the sidebar.\n // We use openProp and setOpenProp for control from outside the component.\n const [_open, _setOpen] = React.useState(defaultOpen);\n const isOpen = openProp ?? _open;\n const setOpen = React.useCallback(\n (value: boolean | ((value: boolean) => boolean)) => {\n const openState = typeof value === 'function' ? value(isOpen) : value;\n if (setOpenProp) {\n setOpenProp(openState);\n } else {\n _setOpen(openState);\n }\n },\n [setOpenProp, isOpen],\n );\n\n // Helper to toggle the sidebar.\n const toggleSidebar = React.useCallback(() => {\n return setOpen((open) => !open);\n }, [setOpen]);\n\n // CUSTOM: Commented this out pending a discussion with UX about keyboard shortcuts\n // Adds a keyboard shortcut to toggle the sidebar.\n // React.useEffect(() => {\n // const handleKeyDown = (event: KeyboardEvent) => {\n // if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {\n // event.preventDefault();\n // toggleSidebar();\n // }\n // };\n\n // window.addEventListener('keydown', handleKeyDown);\n // return () => window.removeEventListener('keydown', handleKeyDown);\n // }, [toggleSidebar]);\n\n // We add a state so that we can do data-state=\"expanded\" or \"collapsed\".\n // This makes it easier to style the sidebar with Tailwind classes.\n const state = isOpen ? 'expanded' : 'collapsed';\n\n const dir: Direction = readDirection();\n const oppositeSide: Side = side === 'primary' ? 'secondary' : 'primary';\n const directionAwareSide = dir === 'ltr' ? side : oppositeSide;\n\n const contextValue = React.useMemo(\n () => ({\n state,\n open: isOpen,\n setOpen,\n toggleSidebar,\n side: directionAwareSide,\n }),\n [state, isOpen, setOpen, toggleSidebar, directionAwareSide],\n );\n\n return (\n \n \n \n {children}\n
    \n \n \n );\n },\n);\nSidebarProvider.displayName = 'SidebarProvider';\n\nconst Sidebar = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n variant?: 'sidebar' | 'floating' | 'inset';\n collapsible?: 'offcanvas' | 'icon' | 'none';\n }\n>(({ variant = 'sidebar', collapsible = 'offcanvas', className, children, ...props }, ref) => {\n const context = useSidebar();\n\n if (collapsible === 'none') {\n return (\n \n {children}\n
    \n );\n }\n\n return (\n \n {/* This is what handles the sidebar gap on desktop */}\n \n \n \n {children}\n
    \n
    \n
    \n );\n});\nSidebar.displayName = 'Sidebar';\n\nconst SidebarTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, onClick, ...props }, ref) => {\n const context = useSidebar();\n\n return (\n {\n onClick?.(event);\n context.toggleSidebar();\n }}\n {...props}\n >\n {context.side === 'primary' ? : }\n Toggle Sidebar\n \n );\n});\nSidebarTrigger.displayName = 'SidebarTrigger';\n\nconst SidebarRail = React.forwardRef>(\n ({ className, ...props }, ref) => {\n const { toggleSidebar } = useSidebar();\n\n return (\n \n );\n },\n);\nSidebarRail.displayName = 'SidebarRail';\n\nconst SidebarInset = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarInset.displayName = 'SidebarInset';\n\nconst SidebarInput = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, ...props }, ref) => {\n return (\n \n );\n});\nSidebarInput.displayName = 'SidebarInput';\n\nconst SidebarHeader = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarHeader.displayName = 'SidebarHeader';\n\nconst SidebarFooter = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarFooter.displayName = 'SidebarFooter';\n\nconst SidebarSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentProps\n>(({ className, ...props }, ref) => {\n return (\n \n );\n});\nSidebarSeparator.displayName = 'SidebarSeparator';\n\nconst SidebarContent = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarContent.displayName = 'SidebarContent';\n\nconst SidebarGroup = React.forwardRef>(\n ({ className, ...props }, ref) => {\n return (\n \n );\n },\n);\nSidebarGroup.displayName = 'SidebarGroup';\n\nconst SidebarGroupLabel = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'div';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n 'group-data-[collapsible=icon]:tw--mt-8 group-data-[collapsible=icon]:tw-opacity-0',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupLabel.displayName = 'SidebarGroupLabel';\n\nconst SidebarGroupAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & { asChild?: boolean }\n>(({ className, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:tw-absolute after:tw--inset-2 after:md:tw-hidden',\n 'group-data-[collapsible=icon]:tw-hidden',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarGroupAction.displayName = 'SidebarGroupAction';\n\nconst SidebarGroupContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarGroupContent.displayName = 'SidebarGroupContent';\n\nconst SidebarMenu = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenu.displayName = 'SidebarMenu';\n\nconst SidebarMenuItem = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuItem.displayName = 'SidebarMenuItem';\n\nconst sidebarMenuButtonVariants = cva(\n // CUSTOM: Removed data-[active=true]:tw-bg-sidebar-accent\n 'tw-peer/menu-button tw-flex tw-w-full tw-items-center tw-gap-2 tw-overflow-hidden tw-rounded-md tw-p-2 tw-text-left tw-text-sm tw-outline-none tw-ring-sidebar-ring tw-transition-[width,height,padding] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground focus-visible:tw-ring-2 active:tw-bg-sidebar-accent active:tw-text-sidebar-accent-foreground disabled:tw-pointer-events-none disabled:tw-opacity-50 tw-group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:tw-pointer-events-none aria-disabled:tw-opacity-50 data-[active=true]:tw-font-medium data-[active=true]:tw-text-sidebar-accent-foreground data-[state=open]:hover:tw-bg-sidebar-accent data-[state=open]:hover:tw-text-sidebar-accent-foreground group-data-[collapsible=icon]:tw-!size-8 group-data-[collapsible=icon]:tw-!p-2 [&>span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0',\n {\n variants: {\n variant: {\n default: 'hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground',\n outline:\n 'tw-bg-background tw-shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:tw-bg-sidebar-accent hover:tw-text-sidebar-accent-foreground hover:tw-shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]',\n },\n size: {\n default: 'tw-h-8 tw-text-sm',\n sm: 'tw-h-7 tw-text-xs',\n lg: 'tw-h-12 tw-text-sm group-data-[collapsible=icon]:tw-!p-0',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n },\n);\n\nconst SidebarMenuButton = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & {\n asChild?: boolean;\n isActive?: boolean;\n tooltip?: string | React.ComponentProps;\n } & VariantProps\n>(\n (\n {\n asChild = false,\n isActive = false,\n variant = 'default',\n size = 'default',\n tooltip,\n className,\n ...props\n },\n ref,\n ) => {\n const Comp = asChild ? Slot : 'button';\n const { state } = useSidebar();\n\n const button = (\n \n );\n\n if (!tooltip) {\n return button;\n }\n\n if (typeof tooltip === 'string') {\n // eslint-disable-next-line no-param-reassign\n tooltip = {\n children: tooltip,\n };\n }\n\n return (\n \n {button}\n \n );\n },\n);\nSidebarMenuButton.displayName = 'SidebarMenuButton';\n\nconst SidebarMenuAction = React.forwardRef<\n HTMLButtonElement,\n React.ComponentProps<'button'> & {\n asChild?: boolean;\n showOnHover?: boolean;\n }\n>(({ className, asChild = false, showOnHover = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n\n return (\n svg]:tw-size-4 [&>svg]:tw-shrink-0',\n // Increases the hit area of the button on mobile.\n 'after:tw-absolute after:tw--inset-2 after:md:tw-hidden',\n 'tw-peer-data-[size=sm]/menu-button:top-1',\n 'tw-peer-data-[size=default]/menu-button:top-1.5',\n 'tw-peer-data-[size=lg]/menu-button:top-2.5',\n 'group-data-[collapsible=icon]:tw-hidden',\n showOnHover &&\n 'tw-group-focus-within/menu-item:opacity-100 tw-group-hover/menu-item:opacity-100 tw-peer-data-[active=true]/menu-button:text-sidebar-accent-foreground data-[state=open]:tw-opacity-100 md:tw-opacity-0',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuAction.displayName = 'SidebarMenuAction';\n\nconst SidebarMenuBadge = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuBadge.displayName = 'SidebarMenuBadge';\n\nconst SidebarMenuSkeleton = React.forwardRef<\n HTMLDivElement,\n React.ComponentProps<'div'> & {\n showIcon?: boolean;\n }\n>(({ className, showIcon = false, ...props }, ref) => {\n // Random width between 50 to 90%.\n const width = React.useMemo(() => {\n return `${Math.floor(Math.random() * 40) + 50}%`;\n }, []);\n\n return (\n \n {showIcon && (\n \n )}\n \n
    \n );\n});\nSidebarMenuSkeleton.displayName = 'SidebarMenuSkeleton';\n\nconst SidebarMenuSub = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nSidebarMenuSub.displayName = 'SidebarMenuSub';\n\nconst SidebarMenuSubItem = React.forwardRef>(\n ({ ...props }, ref) =>
  • ,\n);\nSidebarMenuSubItem.displayName = 'SidebarMenuSubItem';\n\nconst SidebarMenuSubButton = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentProps<'a'> & {\n asChild?: boolean;\n size?: 'sm' | 'md';\n isActive?: boolean;\n }\n>(({ asChild = false, size = 'md', isActive, className, ...props }, ref) => {\n const Comp = asChild ? Slot : 'a';\n\n return (\n span:last-child]:tw-truncate [&>svg]:tw-size-4 [&>svg]:tw-shrink-0 [&>svg]:tw-text-sidebar-accent-foreground',\n 'data-[active=true]:tw-bg-sidebar-accent data-[active=true]:tw-text-sidebar-accent-foreground',\n size === 'sm' && 'tw-text-xs',\n size === 'md' && 'tw-text-sm',\n 'group-data-[collapsible=icon]:tw-hidden',\n className,\n )}\n {...props}\n />\n );\n});\nSidebarMenuSubButton.displayName = 'SidebarMenuSubButton';\n\nexport {\n Sidebar,\n SidebarContent,\n SidebarFooter,\n SidebarGroup,\n SidebarGroupAction,\n SidebarGroupContent,\n SidebarGroupLabel,\n SidebarHeader,\n SidebarInput,\n SidebarInset,\n SidebarMenu,\n SidebarMenuAction,\n SidebarMenuBadge,\n SidebarMenuButton,\n SidebarMenuItem,\n SidebarMenuSkeleton,\n SidebarMenuSub,\n SidebarMenuSubButton,\n SidebarMenuSubItem,\n SidebarProvider,\n SidebarRail,\n SidebarSeparator,\n SidebarTrigger,\n useSidebar,\n};\n","import ComboBox, { ComboBoxOption } from '@/components/basics/combo-box.component';\nimport {\n Sidebar,\n SidebarContent,\n SidebarGroup,\n SidebarGroupLabel,\n SidebarGroupContent,\n SidebarMenu,\n SidebarMenuItem,\n SidebarMenuButton,\n} from '@/components/shadcn-ui/sidebar';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { useCallback } from 'react';\n\nexport type SelectedSettingsSidebarItem = {\n label: string;\n projectId?: string;\n};\n\nexport type ProjectInfo = { projectId: string; projectName: string };\n\nexport type SettingsSidebarProps = {\n /** Optional id for testing */\n id?: string;\n\n /** Extension labels from contribution */\n extensionLabels: string[];\n\n /** Project names and ids */\n projectInfo: ProjectInfo[];\n\n /** Handler for selecting a sidebar item */\n handleSelectSidebarItem: (key: string, projectId?: string) => void;\n\n /** The current selected value in the sidebar */\n selectedSidebarItem: SelectedSettingsSidebarItem;\n\n /** Label for the group of extensions setting groups */\n extensionsSidebarGroupLabel: string;\n\n /** Label for the group of projects settings */\n projectsSidebarGroupLabel: string;\n\n /** Placeholder text for the button */\n buttonPlaceholderText: string;\n};\n\nexport default function SettingsSidebar({\n id,\n extensionLabels,\n projectInfo,\n handleSelectSidebarItem,\n selectedSidebarItem,\n extensionsSidebarGroupLabel,\n projectsSidebarGroupLabel,\n buttonPlaceholderText,\n}: SettingsSidebarProps) {\n const handleSelectItem = useCallback(\n (item: string, projectId?: string) => {\n handleSelectSidebarItem(item, projectId);\n },\n [handleSelectSidebarItem],\n );\n\n const getProjectNameFromProjectId = useCallback(\n (projectId: string) => {\n const project = projectInfo.find((info) => info.projectId === projectId);\n return project ? project.projectName : projectId;\n },\n [projectInfo],\n );\n\n const getIsActive: (label: string) => boolean = useCallback(\n (label: string) => !selectedSidebarItem.projectId && label === selectedSidebarItem.label,\n [selectedSidebarItem],\n );\n\n return (\n \n \n \n \n {extensionsSidebarGroupLabel}\n \n \n \n {extensionLabels.map((label) => (\n \n handleSelectItem(label)}\n isActive={getIsActive(label)}\n >\n {label}\n \n \n ))}\n \n \n \n \n \n {projectsSidebarGroupLabel}\n \n \n info.projectId)}\n getOptionLabel={(projectId: ComboBoxOption) => {\n // This function expects a ComboBoxOption, but we know it is a string\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n return getProjectNameFromProjectId(projectId as string);\n }}\n buttonPlaceholder={buttonPlaceholderText}\n onChange={(projectId: string) => {\n const selectedProjectName = getProjectNameFromProjectId(projectId);\n handleSelectItem(selectedProjectName, projectId);\n }}\n value={selectedSidebarItem?.projectId ?? undefined}\n />\n \n \n \n \n );\n}\n","import { SidebarInset, SidebarProvider } from '@/components/shadcn-ui/sidebar';\nimport { PropsWithChildren } from 'react';\nimport SearchBar from '@/components/basics/search-bar.component';\nimport SettingsSidebar, { SettingsSidebarProps } from './settings-sidebar.component';\n\nexport type SettingsSidebarContentSearchProps = SettingsSidebarProps &\n PropsWithChildren & {\n /** Optional id for testing */\n id?: string;\n\n /** Handler to run when the value of the search bar changes */\n onSearch: (searchQuery: string) => void;\n };\n\nexport default function SettingsSidebarContentSearch({\n id,\n extensionLabels,\n projectInfo,\n children,\n handleSelectSidebarItem,\n selectedSidebarItem,\n onSearch,\n extensionsSidebarGroupLabel,\n projectsSidebarGroupLabel,\n buttonPlaceholderText,\n}: SettingsSidebarContentSearchProps) {\n return (\n
    \n
    \n \n
    \n \n \n {children}\n \n
    \n );\n}\n","import { Button } from '@/components/shadcn-ui/button';\nimport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Canon } from '@sillsdev/scripture';\nimport {\n Cell,\n ColumnDef,\n flexRender,\n getCoreRowModel,\n getExpandedRowModel,\n getGroupedRowModel,\n getSortedRowModel,\n GroupingState,\n Row,\n RowSelectionState,\n SortingState,\n useReactTable,\n} from '@tanstack/react-table';\nimport '@/components/advanced/scripture-results-viewer/scripture-results-viewer.component.css';\nimport {\n compareScrRefs,\n formatScrRef,\n ScriptureSelection,\n scrRefToBBBCCCVVV,\n} from 'platform-bible-utils';\nimport { MouseEvent, useEffect, useMemo, useState } from 'react';\nimport { ChevronDown, ChevronLeft, ChevronRight } from 'lucide-react';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\n/**\n * Information (e.g., a checking error or some other type of \"transient\" annotation) about something\n * noteworthy at a specific place in an instance of the Scriptures.\n */\nexport type ScriptureItemDetail = ScriptureSelection & {\n /**\n * Text of the error, note, etc. In the future, we might want to support something more than just\n * text so that a JSX element could be provided with a link or some other controls related to the\n * issue being reported.\n */\n detail: string;\n};\n\n/**\n * A uniquely identifiable source of results that can be displayed in the ScriptureResultsViewer.\n * Generally, the source will be a particular Scripture check, but there may be other types of\n * sources.\n */\nexport type ResultsSource = {\n /**\n * Uniquely identifies the source.\n *\n * @type {string}\n */\n id: string;\n\n /**\n * Name (potentially localized) of the source, suitable for display in the UI.\n *\n * @type {string}\n */\n displayName: string;\n};\n\nexport type ScriptureSrcItemDetail = ScriptureItemDetail & {\n /** Source/type of detail. Can be used for grouping. */\n source: ResultsSource;\n};\n\n/**\n * Represents a set of results keyed by Scripture reference. Generally, the source will be a\n * particular Scripture check, but this type also allows for other types of uniquely identifiable\n * sources.\n */\nexport type ResultsSet = {\n /**\n * The backing source associated with this set of results.\n *\n * @type {ResultsSource}\n */\n source: ResultsSource;\n\n /**\n * Array of Scripture item details (messages keyed by Scripture reference).\n *\n * @type {ScriptureItemDetail[]}\n */\n data: ScriptureItemDetail[];\n};\n\nconst scrBookColId = 'scrBook';\nconst scrRefColId = 'scrRef';\nconst typeColId = 'source';\nconst detailsColId = 'details';\n\nconst defaultScrRefColumnName = 'Scripture Reference';\nconst defaultScrBookGroupName = 'Scripture Book';\nconst defaultTypeColumnName = 'Type';\nconst defaultDetailsColumnName = 'Details';\n\nexport type ScriptureResultsViewerColumnInfo = {\n /** Optional header to display for the Reference column. Default value: 'Scripture Reference'. */\n scriptureReferenceColumnName?: string;\n\n /** Optional text to display to refer to the Scripture book group. Default value: 'Scripture Book'. */\n scriptureBookGroupName?: string;\n\n /** Optional header to display for the Type column. Default value: 'Type'. */\n typeColumnName?: string;\n\n /** Optional header to display for the Details column. Default value: 'Details' */\n detailsColumnName?: string;\n};\n\nexport type ScriptureResultsViewerProps = ScriptureResultsViewerColumnInfo & {\n /** Groups of ScriptureItemDetail objects from particular sources (e.g., Scripture checks) */\n sources: ResultsSet[];\n\n /** Flag indicating whether to display column headers. Default is false. */\n showColumnHeaders?: boolean;\n\n /** Flag indicating whether to display source column. Default is false. */\n showSourceColumn?: boolean;\n\n /** Callback function to notify when a row is selected */\n onRowSelected?: (selectedRow: ScriptureSrcItemDetail | undefined) => void;\n};\n\nfunction getColumns(\n colInfo?: ScriptureResultsViewerColumnInfo,\n showSourceColumn?: boolean,\n): ColumnDef[] {\n const showSrcCol = showSourceColumn ?? false;\n return [\n {\n accessorFn: (row) =>\n `${Canon.bookNumberToId(row.start.bookNum)} ${row.start.chapterNum}:${row.start.verseNum}`,\n id: scrBookColId,\n header: colInfo?.scriptureReferenceColumnName ?? defaultScrRefColumnName,\n cell: (info) => {\n const row = info.row.original;\n if (info.row.getIsGrouped()) {\n return Canon.bookNumberToEnglishName(row.start.bookNum);\n }\n return info.row.groupingColumnId === scrBookColId ? formatScrRef(row.start) : undefined;\n },\n getGroupingValue: (row) => row.start.bookNum,\n sortingFn: (a, b) => {\n return compareScrRefs(a.original.start, b.original.start);\n },\n enableGrouping: true,\n },\n {\n accessorFn: (row) => formatScrRef(row.start),\n id: scrRefColId,\n header: undefined,\n cell: (info) => {\n const row = info.row.original;\n return info.row.getIsGrouped() ? undefined : formatScrRef(row.start);\n },\n sortingFn: (a, b) => {\n return compareScrRefs(a.original.start, b.original.start);\n },\n enableGrouping: false,\n },\n {\n accessorFn: (row) => row.source.displayName,\n id: typeColId,\n header: showSrcCol ? (colInfo?.typeColumnName ?? defaultTypeColumnName) : undefined,\n cell: (info) => (showSrcCol || info.row.getIsGrouped() ? info.getValue() : undefined),\n getGroupingValue: (row) => row.source.id,\n sortingFn: (a, b) =>\n a.original.source.displayName.localeCompare(b.original.source.displayName),\n enableGrouping: true,\n },\n {\n accessorFn: (row) => row.detail,\n id: detailsColId,\n header: colInfo?.detailsColumnName ?? defaultDetailsColumnName,\n cell: (info) => info.getValue(),\n enableGrouping: false,\n },\n ];\n}\n\nconst toRefOrRange = (scriptureSelection: ScriptureSelection) => {\n if (!('offset' in scriptureSelection.start))\n throw new Error('No offset available in range start');\n if (scriptureSelection.end && !('offset' in scriptureSelection.end))\n throw new Error('No offset available in range end');\n const { offset: offsetStart } = scriptureSelection.start;\n let offsetEnd: number = 0;\n if (scriptureSelection.end) ({ offset: offsetEnd } = scriptureSelection.end);\n if (\n !scriptureSelection.end ||\n compareScrRefs(scriptureSelection.start, scriptureSelection.end) === 0\n )\n return `${scrRefToBBBCCCVVV(scriptureSelection.start)}+${offsetStart}`;\n return `${scrRefToBBBCCCVVV(scriptureSelection.start)}+${offsetStart}-${scrRefToBBBCCCVVV(scriptureSelection.end)}+${offsetEnd}`;\n};\n\nconst getRowKey = (row: ScriptureSrcItemDetail) =>\n `${toRefOrRange({ start: row.start, end: row.end })} ${row.source.displayName} ${row.detail}`;\n\n/**\n * Component to display a combined list of detailed items from one or more sources, where the items\n * are keyed primarily by Scripture reference. This is particularly useful for displaying a list of\n * results from Scripture checks, but more generally could be used to display any \"results\" from any\n * source(s). The component allows for grouping by Scripture book, source, or both. By default, it\n * displays somewhat \"tree-like\" which allows it to be more horizontally compact and intuitive. But\n * it also has the option of displaying as a traditional table with column headings (with or without\n * the source column showing).\n */\nexport default function ScriptureResultsViewer({\n sources,\n showColumnHeaders = false,\n showSourceColumn = false,\n scriptureReferenceColumnName,\n scriptureBookGroupName,\n typeColumnName,\n detailsColumnName,\n onRowSelected,\n}: ScriptureResultsViewerProps) {\n const [grouping, setGrouping] = useState([]);\n const [sorting, setSorting] = useState([{ id: scrBookColId, desc: false }]);\n const [rowSelection, setRowSelection] = useState({});\n\n const scriptureResults = useMemo(\n () =>\n sources.flatMap((source) => {\n return source.data.map((item) => ({\n ...item,\n source: source.source,\n }));\n }),\n [sources],\n );\n\n const columns = useMemo(\n () =>\n getColumns(\n {\n scriptureReferenceColumnName,\n typeColumnName,\n detailsColumnName,\n },\n showSourceColumn,\n ),\n [scriptureReferenceColumnName, typeColumnName, detailsColumnName, showSourceColumn],\n );\n\n useEffect(() => {\n // Ensure sorting is applied correctly when grouped by type\n if (grouping.includes(typeColId)) {\n setSorting([\n { id: typeColId, desc: false },\n { id: scrBookColId, desc: false },\n ]);\n } else {\n setSorting([{ id: scrBookColId, desc: false }]);\n }\n }, [grouping]);\n\n const table = useReactTable({\n data: scriptureResults,\n columns,\n state: {\n grouping,\n sorting,\n rowSelection,\n },\n onGroupingChange: setGrouping,\n onSortingChange: setSorting,\n onRowSelectionChange: setRowSelection,\n getExpandedRowModel: getExpandedRowModel(),\n getGroupedRowModel: getGroupedRowModel(),\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n getRowId: getRowKey,\n autoResetExpanded: false,\n enableMultiRowSelection: false,\n enableSubRowSelection: false,\n });\n\n useEffect(() => {\n if (onRowSelected) {\n const selectedRows = table.getSelectedRowModel().rowsById;\n const keys = Object.keys(selectedRows);\n if (keys.length === 1) {\n const selectedRow = scriptureResults.find((row) => getRowKey(row) === keys[0]) || undefined;\n if (selectedRow) onRowSelected(selectedRow);\n }\n }\n }, [rowSelection, scriptureResults, onRowSelected, table]);\n\n // Define possible grouping options\n const scrBookGroupName = scriptureBookGroupName ?? defaultScrBookGroupName;\n const typeGroupName = typeColumnName ?? defaultTypeColumnName;\n\n const groupingOptions = [\n { label: 'No Grouping', value: [] },\n { label: `Group by ${scrBookGroupName}`, value: [scrBookColId] },\n { label: `Group by ${typeGroupName}`, value: [typeColId] },\n {\n label: `Group by ${scrBookGroupName} and ${typeGroupName}`,\n value: [scrBookColId, typeColId],\n },\n {\n label: `Group by ${typeGroupName} and ${scrBookGroupName}`,\n value: [typeColId, scrBookColId],\n },\n ];\n\n const handleSelectChange = (selectedGrouping: string) => {\n setGrouping(JSON.parse(selectedGrouping));\n };\n\n const handleRowClick = (row: Row, event: MouseEvent) => {\n if (!row.getIsGrouped() && !row.getIsSelected()) {\n row.getToggleSelectedHandler()(event);\n }\n };\n\n const getEvenOrOddBandingStyle = (row: Row, index: number) => {\n if (row.getIsGrouped()) return '';\n // UX has now said they don't think they want banding. I'm leaving in the code to\n // set even and odd styles, but there's nothing in the CSS to style them differently.\n // The \"even\" style used to also have tw-bg-neutral-300 (along with even) to create\n // a visual banding effect. That could be added back in if UX changes the decision.\n return cn('banded-row', index % 2 === 0 ? 'even' : 'odd');\n };\n\n const getIndent = (\n groupingState: GroupingState,\n row: Row,\n cell: Cell,\n ) => {\n if (groupingState?.length === 0 || row.depth < cell.column.getGroupedIndex()) return undefined;\n if (row.getIsGrouped()) {\n switch (row.depth) {\n case 1:\n return 'tw-ps-4';\n default:\n return undefined;\n }\n }\n switch (row.depth) {\n case 1:\n return 'tw-ps-8';\n case 2:\n return 'tw-ps-12';\n default:\n return undefined;\n }\n };\n\n return (\n
    \n {!showColumnHeaders && (\n {\n handleSelectChange(value);\n }}\n >\n \n \n \n \n \n {groupingOptions.map((option) => (\n \n {option.label}\n \n ))}\n \n \n \n )}\n \n {showColumnHeaders && (\n \n {table.getHeaderGroups().map((headerGroup) => (\n \n {headerGroup.headers\n .filter((h) => h.column.columnDef.header)\n .map((header) => (\n /* For sticky column headers to work, we probably need to change the default definition of the shadcn Table component. See https://github.com/shadcn-ui/ui/issues/1151 */\n \n {header.isPlaceholder ? undefined : (\n
    \n {header.column.getCanGroup() ? (\n \n {header.column.getIsGrouped() ? `🛑` : `👊 `}\n \n ) : undefined}{' '}\n {flexRender(header.column.columnDef.header, header.getContext())}\n
    \n )}\n
    \n ))}\n
    \n ))}\n
    \n )}\n \n {table.getRowModel().rows.map((row, rowIndex) => {\n const dir: Direction = readDirection();\n return (\n handleRowClick(row, event)}\n >\n {row.getVisibleCells().map((cell) => {\n if (\n cell.getIsPlaceholder() ||\n (cell.column.columnDef.enableGrouping &&\n !cell.getIsGrouped() &&\n (cell.column.columnDef.id !== typeColId || !showSourceColumn))\n )\n return undefined;\n return (\n \n {(() => {\n if (cell.getIsGrouped()) {\n return (\n \n {row.getIsExpanded() && }\n {!row.getIsExpanded() &&\n (dir === 'ltr' ? : )}{' '}\n {flexRender(cell.column.columnDef.cell, cell.getContext())} (\n {row.subRows.length})\n \n );\n }\n\n // if (cell.getIsAggregated()) {\n // flexRender(\n // cell.column.columnDef.aggregatedCell ?? cell.column.columnDef.cell,\n // cell.getContext(),\n // );\n // }\n\n return flexRender(cell.column.columnDef.cell, cell.getContext());\n })()}\n \n );\n })}\n \n );\n })}\n \n
    \n
    \n );\n}\n","import {\n getLocalizeKeyForScrollGroupId,\n LanguageStrings,\n ScrollGroupId,\n} from 'platform-bible-utils';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/shadcn-ui/select';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS = {\n [getLocalizeKeyForScrollGroupId('undefined')]: 'Ø',\n [getLocalizeKeyForScrollGroupId(0)]: 'A',\n [getLocalizeKeyForScrollGroupId(1)]: 'B',\n [getLocalizeKeyForScrollGroupId(2)]: 'C',\n [getLocalizeKeyForScrollGroupId(3)]: 'D',\n [getLocalizeKeyForScrollGroupId(4)]: 'E',\n [getLocalizeKeyForScrollGroupId(5)]: 'F',\n [getLocalizeKeyForScrollGroupId(6)]: 'G',\n [getLocalizeKeyForScrollGroupId(7)]: 'H',\n [getLocalizeKeyForScrollGroupId(8)]: 'I',\n [getLocalizeKeyForScrollGroupId(9)]: 'J',\n [getLocalizeKeyForScrollGroupId(10)]: 'K',\n [getLocalizeKeyForScrollGroupId(11)]: 'L',\n [getLocalizeKeyForScrollGroupId(12)]: 'M',\n [getLocalizeKeyForScrollGroupId(13)]: 'N',\n [getLocalizeKeyForScrollGroupId(14)]: 'O',\n [getLocalizeKeyForScrollGroupId(15)]: 'P',\n [getLocalizeKeyForScrollGroupId(16)]: 'Q',\n [getLocalizeKeyForScrollGroupId(17)]: 'R',\n [getLocalizeKeyForScrollGroupId(18)]: 'S',\n [getLocalizeKeyForScrollGroupId(19)]: 'T',\n [getLocalizeKeyForScrollGroupId(20)]: 'U',\n [getLocalizeKeyForScrollGroupId(21)]: 'V',\n [getLocalizeKeyForScrollGroupId(22)]: 'W',\n [getLocalizeKeyForScrollGroupId(23)]: 'X',\n [getLocalizeKeyForScrollGroupId(24)]: 'Y',\n [getLocalizeKeyForScrollGroupId(25)]: 'Z',\n};\n\nexport type ScrollGroupSelectorProps = {\n /**\n * List of scroll group ids to show to the user. Either a {@link ScrollGroupId} or `undefined` for\n * no scroll group\n */\n availableScrollGroupIds: (ScrollGroupId | undefined)[];\n /** Currently selected scroll group id. `undefined` for no scroll group */\n scrollGroupId: ScrollGroupId | undefined;\n /** Callback function run when the user tries to change the scroll group id */\n onChangeScrollGroupId: (newScrollGroupId: ScrollGroupId | undefined) => void;\n /**\n * Localized strings to use for displaying scroll group ids. Must be an object whose keys are\n * `getLocalizeKeyForScrollGroupId(scrollGroupId)` for all scroll group ids (and `undefined` if\n * included) in {@link ScrollGroupSelectorProps.availableScrollGroupIds} and whose values are the\n * localized strings to use for those scroll group ids.\n *\n * Defaults to English localizations of English alphabet for scroll groups 0-25 (e.g. 0 is A) and\n * Ø for `undefined`. Will fill in any that are not provided with these English localizations.\n * Also, if any values match the keys, the English localization will be used. This is useful in\n * case you want to pass in a temporary version of the localized strings while your localized\n * strings load.\n *\n * @example\n *\n * ```typescript\n * const myScrollGroupIdLocalizedStrings = {\n * [getLocalizeKeyForScrollGroupId('undefined')]: 'Ø',\n * [getLocalizeKeyForScrollGroupId(0)]: 'A',\n * [getLocalizeKeyForScrollGroupId(1)]: 'B',\n * [getLocalizeKeyForScrollGroupId(2)]: 'C',\n * [getLocalizeKeyForScrollGroupId(3)]: 'D',\n * [getLocalizeKeyForScrollGroupId(4)]: 'E',\n * };\n * ```\n *\n * @example\n *\n * ```tsx\n * const availableScrollGroupIds = [undefined, 0, 1, 2, 3, 4];\n *\n * const localizeKeys = getLocalizeKeysForScrollGroupIds();\n *\n * const [localizedStrings] = useLocalizedStrings(localizeKeys);\n *\n * ...\n *\n * \n * ```\n */\n localizedStrings?: LanguageStrings;\n};\n\n/** Selector component for choosing a scroll group */\nexport default function ScrollGroupSelector({\n availableScrollGroupIds,\n scrollGroupId,\n onChangeScrollGroupId,\n localizedStrings = {},\n}: ScrollGroupSelectorProps) {\n const localizedStringsDefaulted = {\n ...DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS,\n ...Object.fromEntries(\n Object.entries(localizedStrings).map(\n ([localizedStringKey, localizedStringValue]: [string, string]) => [\n localizedStringKey,\n localizedStringKey === localizedStringValue &&\n localizedStringKey in DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS\n ? DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS[localizedStringKey]\n : localizedStringValue,\n ],\n ),\n ),\n };\n\n const dir: Direction = readDirection();\n\n return (\n \n onChangeScrollGroupId(\n newScrollGroupString === 'undefined' ? undefined : parseInt(newScrollGroupString, 10),\n )\n }\n >\n \n \n \n \n {availableScrollGroupIds.map((scrollGroupOptionId) => (\n \n {localizedStringsDefaulted[getLocalizeKeyForScrollGroupId(scrollGroupOptionId)]}\n \n ))}\n \n \n );\n}\n","import { PropsWithChildren } from 'react';\nimport { Separator } from '@/components/shadcn-ui/separator';\n\n/** Props for the SettingsList component, currently just children */\ntype SettingsListProps = PropsWithChildren;\n\n/**\n * SettingsList component is a wrapper for list items. Rendered with a formatted div\n *\n * @param children To populate the list with\n * @returns Formatted div encompassing the children\n */\nexport function SettingsList({ children }: SettingsListProps) {\n return
    {children}
    ;\n}\n\n/** Props for SettingsListItem component */\ntype SettingsListItemProps = PropsWithChildren & {\n /** Primary text of the list item */\n primary: string;\n\n /** Optional text of the list item */\n secondary?: string | undefined;\n\n /** Optional boolean to display a message if the children aren't loaded yet. Defaults to false */\n isLoading?: boolean;\n\n /** Optional message to display if isLoading */\n loadingMessage?: string;\n};\n\n/**\n * SettingsListItem component is a common list item. Rendered with a formatted div\n *\n * @param primary Primary text of the list item\n * @param secondary Optional secondary text of the list item\n * @param isLoading Optional, to display a message if the action component isn't generated yet,\n * defaults to false\n * @param children The action component(s) to provide for this item\n * @param loadingMessage Optional, message to display if isLoading\n * @returns Formatted div encompassing the list item content\n */\nexport function SettingsListItem({\n primary,\n secondary,\n children,\n isLoading = false,\n loadingMessage,\n}: SettingsListItemProps) {\n return (\n
    \n
    \n

    {primary}

    \n

    \n {secondary}\n

    \n
    \n\n {isLoading ? (\n

    {loadingMessage}

    \n ) : (\n
    {children}
    \n )}\n
    \n );\n}\n\n/** Props for SettingsListHeader component */\ntype SettingsListHeaderProps = {\n /** The primary text of the list header */\n primary: string;\n\n /** Optional secondary text of the list header */\n secondary?: string | undefined;\n\n /** Optional boolean to include a separator underneath the secondary text. Defaults to false */\n includeSeparator?: boolean;\n};\n\n/**\n * SettingsListHeader component displays text above the list\n *\n * @param primary The primary text of the list header\n * @param secondary Optional secondary text of the list header\n * @param includeSeparator Optional boolean to include a separator underneath the secondary text.\n * Defaults to false\n * @returns Formatted div with list header content\n */\nexport function SettingsListHeader({\n primary,\n secondary,\n includeSeparator = false,\n}: SettingsListHeaderProps) {\n return (\n
    \n
    \n

    {primary}

    \n

    {secondary}

    \n
    \n {includeSeparator ? : ''}\n
    \n );\n}\n","import Checkbox from '@/components/shadcn-ui/checkbox';\nimport { Label } from '@/components/shadcn-ui/label';\n\nexport type ChecklistProps = {\n /** Optional string representing the id attribute of the Checklist */\n id?: string;\n /** Optional string representing CSS class name(s) for styling */\n className?: string;\n /** Array of strings representing the checkable items */\n listItems: string[];\n /** Array of strings representing the checked items */\n selectedListItems: string[];\n /**\n * Function that is called when a checkbox item is selected or deselected\n *\n * @param item The string description for this item\n * @param selected True if selected, false if not selected\n */\n handleSelectListItem: (item: string, selected: boolean) => void;\n\n /**\n * Optional function creates a label for a provided checkable item\n *\n * @param item The item for which a label is to be created\n * @returns A string representing the label text for the checkbox associated with that item\n */\n createLabel?: (item: string) => string;\n};\n\n/** Renders a list of checkboxes. Each checkbox corresponds to an item from the `listItems` array. */\nexport default function Checklist({\n id,\n className,\n listItems,\n selectedListItems,\n handleSelectListItem,\n createLabel,\n}: ChecklistProps) {\n return (\n
    \n {listItems.map((item) => (\n
    \n handleSelectListItem(item, value)}\n />\n \n
    \n ))}\n
    \n );\n}\n","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (!isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? _extends({}, target) : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n // Avoid prototype pollution\n if (key === '__proto__') {\n return;\n }\n if (isPlainObject(source[key]) && key in target && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","import PropTypes from 'prop-types';\nimport chainPropTypes from '../chainPropTypes';\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction acceptingRef(props, propName, componentName, location, propFullName) {\n const element = props[propName];\n const safePropName = propFullName || propName;\n if (element == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for Emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n const elementType = element.type;\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof elementType === 'function' && !isClassComponent(elementType)) {\n warningHint = 'Did you accidentally use a plain function component for an element instead?';\n }\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element that can hold a ref. ${warningHint} ` + 'For more information see https://mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nconst elementAcceptingRef = chainPropTypes(PropTypes.element, acceptingRef);\nelementAcceptingRef.isRequired = chainPropTypes(PropTypes.element.isRequired, acceptingRef);\nexport default elementAcceptingRef;","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// This module is based on https://github.com/airbnb/prop-types-exact repository.\n// However, in order to reduce the number of dependencies and to remove some extra safe checks\n// the module was forked.\n\nconst specialProperty = 'exact-prop: \\u200b';\nexport default function exactProp(propTypes) {\n if (process.env.NODE_ENV === 'production') {\n return propTypes;\n }\n return _extends({}, propTypes, {\n [specialProperty]: props => {\n const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));\n if (unsupportedProps.length > 0) {\n return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\\`${prop}\\``).join(', ')}. Please remove them.`);\n }\n return null;\n }\n });\n}","/**\n * WARNING: Don't import this directly.\n * Use `MuiError` from `@mui/internal-babel-macros/MuiError.macro` instead.\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code) {\n // Apply babel-plugin-transform-template-literals in loose mode\n // loose mode is safe if we're concatenating primitives\n // see https://babeljs.io/docs/en/babel-plugin-transform-template-literals#loose\n /* eslint-disable prefer-template */\n let url = 'https://mui.com/production-error/?code=' + code;\n for (let i = 1; i < arguments.length; i += 1) {\n // rest params over-transpile for this case\n // eslint-disable-next-line prefer-rest-params\n url += '&args[]=' + encodeURIComponent(arguments[i]);\n }\n return 'Minified MUI error #' + code + '; visit ' + url + ' for the full message.';\n /* eslint-enable prefer-template */\n}","/**\n * @license React\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var b=Symbol.for(\"react.element\"),c=Symbol.for(\"react.portal\"),d=Symbol.for(\"react.fragment\"),e=Symbol.for(\"react.strict_mode\"),f=Symbol.for(\"react.profiler\"),g=Symbol.for(\"react.provider\"),h=Symbol.for(\"react.context\"),k=Symbol.for(\"react.server_context\"),l=Symbol.for(\"react.forward_ref\"),m=Symbol.for(\"react.suspense\"),n=Symbol.for(\"react.suspense_list\"),p=Symbol.for(\"react.memo\"),q=Symbol.for(\"react.lazy\"),t=Symbol.for(\"react.offscreen\"),u;u=Symbol.for(\"react.module.reference\");\nfunction v(a){if(\"object\"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}exports.ContextConsumer=h;exports.ContextProvider=g;exports.Element=b;exports.ForwardRef=l;exports.Fragment=d;exports.Lazy=q;exports.Memo=p;exports.Portal=c;exports.Profiler=f;exports.StrictMode=e;exports.Suspense=m;\nexports.SuspenseList=n;exports.isAsyncMode=function(){return!1};exports.isConcurrentMode=function(){return!1};exports.isContextConsumer=function(a){return v(a)===h};exports.isContextProvider=function(a){return v(a)===g};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===b};exports.isForwardRef=function(a){return v(a)===l};exports.isFragment=function(a){return v(a)===d};exports.isLazy=function(a){return v(a)===q};exports.isMemo=function(a){return v(a)===p};\nexports.isPortal=function(a){return v(a)===c};exports.isProfiler=function(a){return v(a)===f};exports.isStrictMode=function(a){return v(a)===e};exports.isSuspense=function(a){return v(a)===m};exports.isSuspenseList=function(a){return v(a)===n};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||\"object\"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};exports.typeOf=v;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_SERVER_CONTEXT_TYPE:\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\nvar hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isConcurrentMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsConcurrentMode) {\n hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');\n }\n }\n\n return false;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\nfunction isSuspenseList(object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n}\n\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.SuspenseList = SuspenseList;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isSuspenseList = isSuspenseList;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import { ForwardRef, Memo } from 'react-is';\n\n// Simplified polyfill for IE11 support\n// https://github.com/JamesMGreene/Function.name/blob/58b314d4a983110c3682f1228f845d39ccca1817/Function.name.js#L3\nconst fnNameMatchRegex = /^\\s*function(?:\\s|\\s*\\/\\*.*\\*\\/\\s*)+([^(\\s/]*)\\s*/;\nexport function getFunctionName(fn) {\n const match = `${fn}`.match(fnNameMatchRegex);\n const name = match && match[1];\n return name || '';\n}\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || getFunctionName(Component) || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName with added IE11 support\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","export default function HTMLElementType(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null) {\n return null;\n }\n if (propValue && propValue.nodeType !== 1) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an HTMLElement.`);\n }\n return null;\n}","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`capitalize(string)\\` expects a string argument.` : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/**\n * Safe chained function.\n *\n * Will only create a new function if needed,\n * otherwise will pass back existing functions or null.\n */\nexport default function createChainedFunction(...funcs) {\n return funcs.reduce((acc, func) => {\n if (func == null) {\n return acc;\n }\n return function chainedFunction(...args) {\n acc.apply(this, args);\n func.apply(this, args);\n };\n }, () => {});\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function deprecatedPropType(validator, reason) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return (props, propName, componentName, location, propFullName) => {\n const componentNameSafe = componentName || '<>';\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The ${location} \\`${propFullNameSafe}\\` of ` + `\\`${componentNameSafe}\\` is deprecated. ${reason}`);\n }\n return null;\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n var _muiName, _element$type;\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from '../ownerDocument';\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? _extends({}, Component.propTypes) : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes == null ? void 0 : prevPropTypes[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// downstream bundlers may remove unnecessary concatenation, but won't remove toString call -- Workaround for https://github.com/webpack/webpack/issues/14814\nconst maybeReactUseId = React['useId'.toString()];\n/**\n *\n * @example
    \n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride != null ? idOverride : reactId;\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","export default function unsupportedProp(props, propName, componentName, location, propFullName) {\n if (process.env.NODE_ENV === 'production') {\n return null;\n }\n const propFullNameSafe = propFullName || propName;\n if (typeof props[propName] !== 'undefined') {\n return new Error(`The prop \\`${propFullNameSafe}\\` is not supported. Please remove it.`);\n }\n return null;\n}","'use client';\n\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== defaultProp) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from '../useEnhancedEffect';\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from '../setRef';\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","'use client';\n\nimport * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from '../useLazyRef/useLazyRef';\nimport useOnMount from '../useOnMount/useOnMount';\nexport class Timeout {\n constructor() {\n this.currentId = null;\n this.clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n this.disposeEffect = () => {\n return this.clear;\n };\n }\n static create() {\n return new Timeout();\n }\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","'use client';\n\n// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js\nimport * as React from 'react';\nimport { Timeout } from '../useTimeout/useTimeout';\nlet hadKeyboardEvent = true;\nlet hadFocusVisibleRecently = false;\nconst hadFocusVisibleRecentlyTimeout = new Timeout();\nconst inputTypesWhitelist = {\n text: true,\n search: true,\n url: true,\n tel: true,\n email: true,\n password: true,\n number: true,\n date: true,\n month: true,\n week: true,\n time: true,\n datetime: true,\n 'datetime-local': true\n};\n\n/**\n * Computes whether the given element should automatically trigger the\n * `focus-visible` class being added, i.e. whether it should always match\n * `:focus-visible` when focused.\n * @param {Element} node\n * @returns {boolean}\n */\nfunction focusTriggersKeyboardModality(node) {\n const {\n type,\n tagName\n } = node;\n if (tagName === 'INPUT' && inputTypesWhitelist[type] && !node.readOnly) {\n return true;\n }\n if (tagName === 'TEXTAREA' && !node.readOnly) {\n return true;\n }\n if (node.isContentEditable) {\n return true;\n }\n return false;\n}\n\n/**\n * Keep track of our keyboard modality state with `hadKeyboardEvent`.\n * If the most recent user interaction was via the keyboard;\n * and the key press did not include a meta, alt/option, or control key;\n * then the modality is keyboard. Otherwise, the modality is not keyboard.\n * @param {KeyboardEvent} event\n */\nfunction handleKeyDown(event) {\n if (event.metaKey || event.altKey || event.ctrlKey) {\n return;\n }\n hadKeyboardEvent = true;\n}\n\n/**\n * If at any point a user clicks with a pointing device, ensure that we change\n * the modality away from keyboard.\n * This avoids the situation where a user presses a key on an already focused\n * element, and then clicks on a different element, focusing it with a\n * pointing device, while we still think we're in keyboard modality.\n */\nfunction handlePointerDown() {\n hadKeyboardEvent = false;\n}\nfunction handleVisibilityChange() {\n if (this.visibilityState === 'hidden') {\n // If the tab becomes active again, the browser will handle calling focus\n // on the element (Safari actually calls it twice).\n // If this tab change caused a blur on an element with focus-visible,\n // re-apply the class when the user switches back to the tab.\n if (hadFocusVisibleRecently) {\n hadKeyboardEvent = true;\n }\n }\n}\nfunction prepare(doc) {\n doc.addEventListener('keydown', handleKeyDown, true);\n doc.addEventListener('mousedown', handlePointerDown, true);\n doc.addEventListener('pointerdown', handlePointerDown, true);\n doc.addEventListener('touchstart', handlePointerDown, true);\n doc.addEventListener('visibilitychange', handleVisibilityChange, true);\n}\nexport function teardown(doc) {\n doc.removeEventListener('keydown', handleKeyDown, true);\n doc.removeEventListener('mousedown', handlePointerDown, true);\n doc.removeEventListener('pointerdown', handlePointerDown, true);\n doc.removeEventListener('touchstart', handlePointerDown, true);\n doc.removeEventListener('visibilitychange', handleVisibilityChange, true);\n}\nfunction isFocusVisible(event) {\n const {\n target\n } = event;\n try {\n return target.matches(':focus-visible');\n } catch (error) {\n // Browsers not implementing :focus-visible will throw a SyntaxError.\n // We use our own heuristic for those browsers.\n // Rethrow might be better if it's not the expected error but do we really\n // want to crash if focus-visible malfunctioned?\n }\n\n // No need for validFocusTarget check. The user does that by attaching it to\n // focusable events only.\n return hadKeyboardEvent || focusTriggersKeyboardModality(target);\n}\nexport default function useIsFocusVisible() {\n const ref = React.useCallback(node => {\n if (node != null) {\n prepare(node.ownerDocument);\n }\n }, []);\n const isFocusVisibleRef = React.useRef(false);\n\n /**\n * Should be called if a blur event is fired\n */\n function handleBlurVisible() {\n // checking against potential state variable does not suffice if we focus and blur synchronously.\n // React wouldn't have time to trigger a re-render so `focusVisible` would be stale.\n // Ideally we would adjust `isFocusVisible(event)` to look at `relatedTarget` for blur events.\n // This doesn't work in IE11 due to https://github.com/facebook/react/issues/3751\n // TODO: check again if React releases their internal changes to focus event handling (https://github.com/facebook/react/pull/19186).\n if (isFocusVisibleRef.current) {\n // To detect a tab/window switch, we look for a blur event followed\n // rapidly by a visibility change.\n // If we don't see a visibility change within 100ms, it's probably a\n // regular focus change.\n hadFocusVisibleRecently = true;\n hadFocusVisibleRecentlyTimeout.start(100, () => {\n hadFocusVisibleRecently = false;\n });\n isFocusVisibleRef.current = false;\n return true;\n }\n return false;\n }\n\n /**\n * Should be called if a blur event is fired\n */\n function handleFocusVisible(event) {\n if (isFocusVisible(event)) {\n isFocusVisibleRef.current = true;\n return true;\n }\n return false;\n }\n return {\n isFocusVisibleRef,\n onFocus: handleFocusVisible,\n onBlur: handleBlurVisible,\n ref\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param {object} defaultProps\n * @param {object} props\n * @returns {object} resolved props\n */\nexport default function resolveProps(defaultProps, props) {\n const output = _extends({}, props);\n Object.keys(defaultProps).forEach(propName => {\n if (propName.toString().match(/^(components|slots)$/)) {\n output[propName] = _extends({}, defaultProps[propName], output[propName]);\n } else if (propName.toString().match(/^(componentsProps|slotProps)$/)) {\n const defaultSlotProps = defaultProps[propName] || {};\n const slotProps = props[propName];\n output[propName] = {};\n if (!slotProps || !Object.keys(slotProps)) {\n // Reduce the iteration if the slot props is empty\n output[propName] = defaultSlotProps;\n } else if (!defaultSlotProps || !Object.keys(defaultSlotProps)) {\n // Reduce the iteration if the default slot props is empty\n output[propName] = slotProps;\n } else {\n output[propName] = _extends({}, slotProps);\n Object.keys(defaultSlotProps).forEach(slotPropName => {\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName]);\n });\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n });\n return output;\n}","export default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n Object.keys(slots).forEach(\n // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.\n // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208\n slot => {\n output[slot] = slots[slot].reduce((acc, key) => {\n if (key) {\n const utilityClass = getUtilityClass(key);\n if (utilityClass !== '') {\n acc.push(utilityClass);\n }\n if (classes && classes[key]) {\n acc.push(classes[key]);\n }\n }\n return acc;\n }, []).join(' ');\n });\n return output;\n}","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","import ClassNameGenerator from '../ClassNameGenerator';\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from '../generateUtilityClass';\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"values\", \"unit\", \"step\"];\n// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return _extends({}, acc, {\n [obj.key]: obj.val\n });\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5\n } = breakpoints,\n other = _objectWithoutPropertiesLoose(breakpoints, _excluded);\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return _extends({\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit\n }, other);\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from './merge';\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n // key is breakpoint\n if (Object.keys(themeBreakpoints.values || values).indexOf(breakpoint) !== -1) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction(_extends({\n theme\n }, props[key]));\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? _extends({}, styleFunction.propTypes, {\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n }) : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n var _breakpointsInput$key;\n const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import responsivePropType from './responsivePropType';\nimport { handleBreakpoints } from './breakpoints';\nimport { getPath } from './style';\nimport merge from './merge';\nimport memoize from './memoize';\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n var _getPath;\n const themeSpacing = (_getPath = getPath(theme, themeKey, false)) != null ? _getPath : defaultValue;\n if (typeof themeSpacing === 'number') {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof abs !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${abs}.`);\n }\n }\n return themeSpacing * abs;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return abs => {\n if (typeof abs === 'string') {\n return abs;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n return themeSpacing[abs];\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n const abs = Math.abs(propValue);\n const transformed = transformer(abs);\n if (propValue >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n return `-${transformed}`;\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (keys.indexOf(prop) === -1) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","import { createUnarySpacing } from '../spacing';\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n\n // Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n // Smaller components, such as icons, can align to a 4dp grid.\n // https://m2.material.io/design/layout/understanding-layout.html\n const transform = createUnarySpacing({\n spacing: spacingInput\n });\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","import merge from './merge';\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from './responsivePropType';\nimport style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from './style';\nimport compose from './compose';\nimport { createUnaryUnit, getValue } from './spacing';\nimport { handleBreakpoints } from './breakpoints';\nimport responsivePropType from './responsivePropType';\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from './style';\nimport compose from './compose';\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from './style';\nimport compose from './compose';\nimport { handleBreakpoints, values as breakpointsValues } from './breakpoints';\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n var _props$theme, _props$theme2;\n const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from '../spacing';\nimport { borderRadius, borderTransform } from '../borders';\nimport { gap, rowGap, columnGap } from '../cssGrid';\nimport { paletteTransform } from '../palette';\nimport { maxWidth, sizingTransform } from '../sizing';\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from '../merge';\nimport { getPath, getStyleValue as getValue } from '../style';\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from '../breakpoints';\nimport defaultSxConfig from './defaultSxConfig';\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n var _theme$unstable_sxCon;\n const {\n sx,\n theme = {}\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n return removeUnusedBreakpoints(breakpointsKeys, css);\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/experimental-api/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n *\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars && typeof theme.getColorSchemeSelector === 'function') {\n // If CssVarsProvider is used as a provider,\n // returns '* :where([data-mui-color-scheme=\"light|dark\"]) &'\n const selector = theme.getColorSchemeSelector(key).replace(/(\\[[^\\]]+\\])/, '*:where($1)');\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"breakpoints\", \"palette\", \"spacing\", \"shape\"];\nimport deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from './createBreakpoints';\nimport shape from './shape';\nimport createSpacing from './createSpacing';\nimport styleFunctionSx from '../styleFunctionSx/styleFunctionSx';\nimport defaultSxConfig from '../styleFunctionSx/defaultSxConfig';\nimport applyStyles from './applyStyles';\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: _extends({\n mode: 'light'\n }, paletteInput),\n spacing,\n shape: _extends({}, shape, shapeInput)\n }, other);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from './createTheme';\nimport useThemeWithoutDefault from './useThemeWithoutDefault';\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ownerState\"],\n _excluded2 = [\"variants\"],\n _excluded3 = [\"name\", \"slot\", \"skipVariantsResolver\", \"skipSx\", \"overridesResolver\"];\n/* eslint-disable no-underscore-dangle */\nimport styledEngineStyled, { internal_processStyles as processStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from './createTheme';\nimport styleFunctionSx from './styleFunctionSx';\nfunction isEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport const systemDefaultTheme = createTheme();\nconst lowercaseFirstLetter = string => {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n};\nfunction resolveTheme({\n defaultTheme,\n theme,\n themeId\n}) {\n return isEmpty(theme) ? defaultTheme : theme[themeId] || theme;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (props, styles) => styles[slot];\n}\nfunction processStyleArg(callableStyle, _ref) {\n let {\n ownerState\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n const resolvedStylesArg = typeof callableStyle === 'function' ? callableStyle(_extends({\n ownerState\n }, props)) : callableStyle;\n if (Array.isArray(resolvedStylesArg)) {\n return resolvedStylesArg.flatMap(resolvedStyle => processStyleArg(resolvedStyle, _extends({\n ownerState\n }, props)));\n }\n if (!!resolvedStylesArg && typeof resolvedStylesArg === 'object' && Array.isArray(resolvedStylesArg.variants)) {\n const {\n variants = []\n } = resolvedStylesArg,\n otherStyles = _objectWithoutPropertiesLoose(resolvedStylesArg, _excluded2);\n let result = otherStyles;\n variants.forEach(variant => {\n let isMatch = true;\n if (typeof variant.props === 'function') {\n isMatch = variant.props(_extends({\n ownerState\n }, props, ownerState));\n } else {\n Object.keys(variant.props).forEach(key => {\n if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {\n isMatch = false;\n }\n });\n }\n if (isMatch) {\n if (!Array.isArray(result)) {\n result = [result];\n }\n result.push(typeof variant.style === 'function' ? variant.style(_extends({\n ownerState\n }, props, ownerState)) : variant.style);\n }\n });\n return result;\n }\n return resolvedStylesArg;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n const systemSx = props => {\n return styleFunctionSx(_extends({}, props, {\n theme: resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }))\n }));\n };\n systemSx.__mui_systemSx = true;\n return (tag, inputOptions = {}) => {\n // Filter out the `sx` style function from the previous styled component to prevent unnecessary styles generated by the composite components.\n processStyles(tag, styles => styles.filter(style => !(style != null && style.__mui_systemSx)));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))\n } = inputOptions,\n options = _objectWithoutPropertiesLoose(inputOptions, _excluded3);\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, _extends({\n shouldForwardProp: shouldForwardPropOption,\n label\n }, options));\n const transformStyleArg = stylesArg => {\n // On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n if (typeof stylesArg === 'function' && stylesArg.__emotion_real !== stylesArg || isPlainObject(stylesArg)) {\n return props => processStyleArg(stylesArg, _extends({}, props, {\n theme: resolveTheme({\n theme: props.theme,\n defaultTheme,\n themeId\n })\n }));\n }\n return stylesArg;\n };\n const muiStyledResolver = (styleArg, ...expressions) => {\n let transformedStyleArg = transformStyleArg(styleArg);\n const expressionsWithDefaultTheme = expressions ? expressions.map(transformStyleArg) : [];\n if (componentName && overridesResolver) {\n expressionsWithDefaultTheme.push(props => {\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n if (!theme.components || !theme.components[componentName] || !theme.components[componentName].styleOverrides) {\n return null;\n }\n const styleOverrides = theme.components[componentName].styleOverrides;\n const resolvedStyleOverrides = {};\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n Object.entries(styleOverrides).forEach(([slotKey, slotStyle]) => {\n resolvedStyleOverrides[slotKey] = processStyleArg(slotStyle, _extends({}, props, {\n theme\n }));\n });\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsWithDefaultTheme.push(props => {\n var _theme$components;\n const theme = resolveTheme(_extends({}, props, {\n defaultTheme,\n themeId\n }));\n const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;\n return processStyleArg({\n variants: themeVariants\n }, _extends({}, props, {\n theme\n }));\n });\n }\n if (!skipSx) {\n expressionsWithDefaultTheme.push(systemSx);\n }\n const numOfCustomFnsApplied = expressionsWithDefaultTheme.length - expressions.length;\n if (Array.isArray(styleArg) && numOfCustomFnsApplied > 0) {\n const placeholders = new Array(numOfCustomFnsApplied).fill('');\n // If the type is array, than we need to add placeholders in the template for the overrides, variants and the sx styles.\n transformedStyleArg = [...styleArg, ...placeholders];\n transformedStyleArg.raw = [...styleArg.raw, ...placeholders];\n }\n const Component = defaultStyledResolver(transformedStyleArg, ...expressionsWithDefaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n let displayName;\n if (componentName) {\n displayName = `${componentName}${capitalize(componentSlot || '')}`;\n }\n if (displayName === undefined) {\n displayName = `Styled(${getDisplayName(tag)})`;\n }\n Component.displayName = displayName;\n }\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport getThemeProps from './getThemeProps';\nimport useTheme from '../useTheme';\nexport default function useThemeProps({\n props,\n name,\n defaultTheme,\n themeId\n}) {\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n const mergedProps = getThemeProps({\n theme,\n name,\n props\n });\n return mergedProps;\n}","import _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (['rgb', 'rgba', 'hsl', 'hsla', 'color'].indexOf(type) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : _formatMuiErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : _formatMuiErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.indexOf('hsl') !== -1 && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.indexOf('rgb') !== -1) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.indexOf('hsl') !== -1) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.indexOf('color') !== -1) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.indexOf('#') === 0) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.indexOf('rgb') !== -1 || color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.indexOf('hsl') !== -1) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.indexOf('rgb') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.indexOf('color') !== -1) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport default function createMixins(breakpoints, mixins) {\n return _extends({\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n }\n }, mixins);\n}","const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;","const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;","const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"mode\", \"contrastThreshold\", \"tonalOffset\"];\nimport { deepmerge } from '@mui/utils';\nimport { darken, getContrastRatio, lighten } from '@mui/system';\nimport common from '../colors/common';\nimport grey from '../colors/grey';\nimport purple from '../colors/purple';\nimport red from '../colors/red';\nimport orange from '../colors/orange';\nimport blue from '../colors/blue';\nimport lightBlue from '../colors/lightBlue';\nimport green from '../colors/green';\nexport const light = {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n};\nexport const dark = {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n};\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2\n } = palette,\n other = _objectWithoutPropertiesLoose(palette, _excluded);\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = _extends({}, color);\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\nThe color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from \"@mui/material/colors\";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });` : _formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n const modes = {\n dark,\n light\n };\n if (process.env.NODE_ENV !== 'production') {\n if (!modes[mode]) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge(_extends({\n // A collection of common colors.\n common: _extends({}, common),\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset\n }, modes[mode]), other);\n return paletteOutput;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"fontFamily\", \"fontSize\", \"fontWeightLight\", \"fontWeightRegular\", \"fontWeightMedium\", \"fontWeightBold\", \"htmlFontSize\", \"allVariants\", \"pxToRem\"];\nimport { deepmerge } from '@mui/utils';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const _ref = typeof typography === 'function' ? typography(palette) : typography,\n {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight\n }, fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}, casing, allVariants);\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge(_extends({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold\n }, variants), other, {\n clone: false // No need to clone deep\n });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"duration\", \"easing\", \"delay\"];\n// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.wolframalpha.com/input/?i=(4+%2B+15+*+(x+%2F+36+)+**+0.25+%2B+(x+%2F+36)+%2F+5)+*+10\n return Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = _extends({}, easing, inputTransitions.easing);\n const mergedDuration = _extends({}, duration, inputTransitions.duration);\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n // IE11 support, replace with Number.isNaN\n // eslint-disable-next-line no-restricted-globals\n const isNumber = value => !isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return _extends({\n getAutoHeightDuration,\n create\n }, inputTransitions, {\n easing: mergedEasing,\n duration: mergedDuration\n });\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _formatMuiErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nconst _excluded = [\"breakpoints\", \"mixins\", \"spacing\", \"palette\", \"transitions\", \"typography\", \"shape\"];\nimport { deepmerge } from '@mui/utils';\nimport { createTheme as systemCreateTheme, unstable_defaultSxConfig as defaultSxConfig, unstable_styleFunctionSx as styleFunctionSx } from '@mui/system';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from './createMixins';\nimport createPalette from './createPalette';\nimport createTypography from './createTypography';\nimport shadows from './shadows';\nimport createTransitions from './createTransitions';\nimport zIndex from './zIndex';\nfunction createTheme(options = {}, ...args) {\n const {\n mixins: mixinsInput = {},\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {}\n } = options,\n other = _objectWithoutPropertiesLoose(options, _excluded);\n if (options.vars) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: \\`vars\\` is a private field used for CSS variables support.\nPlease use another name.` : _formatMuiErrorMessage(18));\n }\n const palette = createPalette(paletteInput);\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: _extends({}, zIndex)\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in, no-restricted-syntax\n for (key in node) {\n const child = node[key];\n if (stateClasses.indexOf(key) !== -1 && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.indexOf('Mui') === 0) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nlet warnedOnce = false;\nexport function createMuiTheme(...args) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnce) {\n warnedOnce = true;\n console.error(['MUI: the createMuiTheme function was renamed to createTheme.', '', \"You should use `import { createTheme } from '@mui/material/styles'`\"].join('\\n'));\n }\n }\n return createTheme(...args);\n}\nexport default createTheme;","'use client';\n\nimport createTheme from './createTheme';\nconst defaultTheme = createTheme();\nexport default defaultTheme;","export default '$$material';","'use client';\n\nimport { useThemeProps as systemUseThemeProps } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useThemeProps({\n props,\n name\n}) {\n return systemUseThemeProps({\n props,\n name,\n defaultTheme,\n themeId: THEME_ID\n });\n}","'use client';\n\nimport { createStyled, shouldForwardProp } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';\nexport const slotShouldForwardProp = shouldForwardProp;\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"inheritViewBox\", \"titleAccess\", \"viewBox\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';\nimport capitalize from '../utils/capitalize';\nimport useThemeProps from '../styles/useThemeProps';\nimport styled from '../styles/styled';\nimport { getSvgIconUtilityClass } from './svgIconClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(({\n theme,\n ownerState\n}) => {\n var _theme$transitions, _theme$transitions$cr, _theme$transitions2, _theme$typography, _theme$typography$pxT, _theme$typography2, _theme$typography2$px, _theme$typography3, _theme$typography3$px, _palette$ownerState$c, _palette, _palette2, _palette3;\n return {\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n // the will define the property that has `currentColor`\n // e.g. heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',\n flexShrink: 0,\n transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {\n duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter\n }),\n fontSize: {\n inherit: 'inherit',\n small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',\n medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',\n large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'\n }[ownerState.fontSize],\n // TODO v5 deprecate, v6 remove for sx\n color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {\n action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,\n disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,\n inherit: undefined\n }[ownerState.color]\n };\n});\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = _extends({}, props, {\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n });\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, _extends({\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref\n }, more, other, hasSvgAsChild && children.props, {\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport SvgIcon from '../SvgIcon';\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, _extends({\n \"data-testid\": `${displayName}Icon`,\n ref: ref\n }, props, {\n children: path\n }));\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Component));\n}","'use client';\n\nimport { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/base/ClassNameGenerator';\nexport { default as capitalize } from './capitalize';\nexport { default as createChainedFunction } from './createChainedFunction';\nexport { default as createSvgIcon } from './createSvgIcon';\nexport { default as debounce } from './debounce';\nexport { default as deprecatedPropType } from './deprecatedPropType';\nexport { default as isMuiElement } from './isMuiElement';\nexport { default as ownerDocument } from './ownerDocument';\nexport { default as ownerWindow } from './ownerWindow';\nexport { default as requirePropFactory } from './requirePropFactory';\nexport { default as setRef } from './setRef';\nexport { default as unstable_useEnhancedEffect } from './useEnhancedEffect';\nexport { default as unstable_useId } from './useId';\nexport { default as unsupportedProp } from './unsupportedProp';\nexport { default as useControlled } from './useControlled';\nexport { default as useEventCallback } from './useEventCallback';\nexport { default as useForkRef } from './useForkRef';\nexport { default as useIsFocusVisible } from './useIsFocusVisible';\n// TODO: remove this export once ClassNameGenerator is stable\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const unstable_ClassNameGenerator = {\n configure: generator => {\n if (process.env.NODE_ENV !== 'production') {\n console.warn(['MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.', '', \"You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead\", '', 'The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401', '', 'The updated documentation: https://mui.com/guides/classname-generator/'].join('\\n'));\n }\n ClassNameGenerator.configure(generator);\n }\n};","\"use strict\";\n'use client';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return _utils.createSvgIcon;\n }\n});\nvar _utils = require(\"@mui/material/utils\");","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m10 17 5-5-5-5z\"\n}), 'ArrowRight');","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nexport function isHostComponent(element) {\n return typeof element === 'string';\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { isHostComponent } from './isHostComponent';\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nexport function appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return _extends({}, otherProps, {\n ownerState: _extends({}, otherProps.ownerState, ownerState)\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultContextValue = {\n disableDefaultClasses: false\n};\nconst ClassNameConfiguratorContext = /*#__PURE__*/React.createContext(defaultContextValue);\n/**\n * @ignore - internal hook.\n *\n * Wraps the `generateUtilityClass` function and controls how the classes are generated.\n * Currently it only affects whether the classes are applied or not.\n *\n * @returns Function to be called with the `generateUtilityClass` function specific to a component to generate the classes.\n */\nexport function useClassNamesOverride(generateUtilityClass) {\n const {\n disableDefaultClasses\n } = React.useContext(ClassNameConfiguratorContext);\n return slot => {\n if (disableDefaultClasses) {\n return '';\n }\n return generateUtilityClass(slot);\n };\n}\n\n/**\n * Allows to configure the components within to not apply any built-in classes.\n */\nexport function ClassNameConfigurator(props) {\n const {\n disableDefaultClasses,\n children\n } = props;\n const contextValue = React.useMemo(() => ({\n disableDefaultClasses: disableDefaultClasses != null ? disableDefaultClasses : false\n }), [disableDefaultClasses]);\n return /*#__PURE__*/_jsx(ClassNameConfiguratorContext.Provider, {\n value: contextValue,\n children: children\n });\n}","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nexport function extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nexport function resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nexport function omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport clsx from 'clsx';\nimport { extractEventHandlers } from './extractEventHandlers';\nimport { omitEventHandlers } from './omitEventHandlers';\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nexport function mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, additionalProps, externalForwardedProps, externalSlotProps);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers(_extends({}, externalForwardedProps, externalSlotProps));\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps == null ? void 0 : internalSlotProps.className, additionalProps == null ? void 0 : additionalProps.className, className, externalForwardedProps == null ? void 0 : externalForwardedProps.className, externalSlotProps == null ? void 0 : externalSlotProps.className);\n const mergedStyle = _extends({}, internalSlotProps == null ? void 0 : internalSlotProps.style, additionalProps == null ? void 0 : additionalProps.style, externalForwardedProps == null ? void 0 : externalForwardedProps.style, externalSlotProps == null ? void 0 : externalSlotProps.style);\n const props = _extends({}, internalSlotProps, additionalProps, otherPropsWithoutEventHandlers, componentsPropsWithoutEventHandlers);\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elementType\", \"externalSlotProps\", \"ownerState\", \"skipResolvingSlotProps\"];\nimport { unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { appendOwnerState } from './appendOwnerState';\nimport { mergeSlotProps } from './mergeSlotProps';\nimport { resolveComponentProps } from './resolveComponentProps';\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nexport function useSlotProps(parameters) {\n var _parameters$additiona;\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false\n } = parameters,\n rest = _objectWithoutPropertiesLoose(parameters, _excluded);\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps(_extends({}, rest, {\n externalSlotProps: resolvedComponentsProps\n }));\n const ref = useForkRef(internalRef, resolvedComponentsProps == null ? void 0 : resolvedComponentsProps.ref, (_parameters$additiona = parameters.additionalProps) == null ? void 0 : _parameters$additiona.ref);\n const props = appendOwnerState(elementType, _extends({}, mergedProps, {\n ref\n }), ownerState);\n return props;\n}","import { globalStateClasses } from '@mui/utils/generateUtilityClass';\nconst GLOBAL_CLASS_PREFIX = 'base';\nfunction buildStateClass(state) {\n return `${GLOBAL_CLASS_PREFIX}--${state}`;\n}\nfunction buildSlotClass(componentName, slot) {\n return `${GLOBAL_CLASS_PREFIX}-${componentName}-${slot}`;\n}\nexport function generateUtilityClass(componentName, slot) {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? buildStateClass(globalStateClass) : buildSlotClass(componentName, slot);\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import { generateUtilityClass } from '../generateUtilityClass';\nexport function generateUtilityClasses(componentName, slots) {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot);\n });\n return result;\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { exactProp, HTMLElementType, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef, unstable_setRef as setRef } from '@mui/utils';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getContainer(container) {\n return typeof container === 'function' ? container() : container;\n}\n\n/**\n * Portals provide a first-class way to render children into a DOM node\n * that exists outside the DOM hierarchy of the parent component.\n *\n * Demos:\n *\n * - [Portal](https://mui.com/base-ui/react-portal/)\n *\n * API:\n *\n * - [Portal API](https://mui.com/base-ui/react-portal/components-api/#portal)\n */\nconst Portal = /*#__PURE__*/React.forwardRef(function Portal(props, forwardedRef) {\n const {\n children,\n container,\n disablePortal = false\n } = props;\n const [mountNode, setMountNode] = React.useState(null);\n // @ts-expect-error TODO upstream fix\n const handleRef = useForkRef( /*#__PURE__*/React.isValidElement(children) ? children.ref : null, forwardedRef);\n useEnhancedEffect(() => {\n if (!disablePortal) {\n setMountNode(getContainer(container) || document.body);\n }\n }, [container, disablePortal]);\n useEnhancedEffect(() => {\n if (mountNode && !disablePortal) {\n setRef(forwardedRef, mountNode);\n return () => {\n setRef(forwardedRef, null);\n };\n }\n return undefined;\n }, [forwardedRef, mountNode, disablePortal]);\n if (disablePortal) {\n if ( /*#__PURE__*/React.isValidElement(children)) {\n const newProps = {\n ref: handleRef\n };\n return /*#__PURE__*/React.cloneElement(children, newProps);\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: children\n });\n }\n return /*#__PURE__*/_jsx(React.Fragment, {\n children: mountNode ? /*#__PURE__*/ReactDOM.createPortal(children, mountNode) : mountNode\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Portal.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The children to render into the `container`.\n */\n children: PropTypes.node,\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n Portal['propTypes' + ''] = exactProp(Portal.propTypes);\n}\nexport { Portal };","export var top = 'top';\nexport var bottom = 'bottom';\nexport var right = 'right';\nexport var left = 'left';\nexport var auto = 'auto';\nexport var basePlacements = [top, bottom, right, left];\nexport var start = 'start';\nexport var end = 'end';\nexport var clippingParents = 'clippingParents';\nexport var viewport = 'viewport';\nexport var popper = 'popper';\nexport var reference = 'reference';\nexport var variationPlacements = /*#__PURE__*/basePlacements.reduce(function (acc, placement) {\n return acc.concat([placement + \"-\" + start, placement + \"-\" + end]);\n}, []);\nexport var placements = /*#__PURE__*/[].concat(basePlacements, [auto]).reduce(function (acc, placement) {\n return acc.concat([placement, placement + \"-\" + start, placement + \"-\" + end]);\n}, []); // modifiers that need to read the DOM\n\nexport var beforeRead = 'beforeRead';\nexport var read = 'read';\nexport var afterRead = 'afterRead'; // pure-logic modifiers\n\nexport var beforeMain = 'beforeMain';\nexport var main = 'main';\nexport var afterMain = 'afterMain'; // modifier with the purpose to write to the DOM (or write into a framework state)\n\nexport var beforeWrite = 'beforeWrite';\nexport var write = 'write';\nexport var afterWrite = 'afterWrite';\nexport var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];","export default function getNodeName(element) {\n return element ? (element.nodeName || '').toLowerCase() : null;\n}","export default function getWindow(node) {\n if (node == null) {\n return window;\n }\n\n if (node.toString() !== '[object Window]') {\n var ownerDocument = node.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView || window : window;\n }\n\n return node;\n}","import getWindow from \"./getWindow.js\";\n\nfunction isElement(node) {\n var OwnElement = getWindow(node).Element;\n return node instanceof OwnElement || node instanceof Element;\n}\n\nfunction isHTMLElement(node) {\n var OwnElement = getWindow(node).HTMLElement;\n return node instanceof OwnElement || node instanceof HTMLElement;\n}\n\nfunction isShadowRoot(node) {\n // IE 11 has no ShadowRoot\n if (typeof ShadowRoot === 'undefined') {\n return false;\n }\n\n var OwnElement = getWindow(node).ShadowRoot;\n return node instanceof OwnElement || node instanceof ShadowRoot;\n}\n\nexport { isElement, isHTMLElement, isShadowRoot };","import getNodeName from \"../dom-utils/getNodeName.js\";\nimport { isHTMLElement } from \"../dom-utils/instanceOf.js\"; // This modifier takes the styles prepared by the `computeStyles` modifier\n// and applies them to the HTMLElements such as popper and arrow\n\nfunction applyStyles(_ref) {\n var state = _ref.state;\n Object.keys(state.elements).forEach(function (name) {\n var style = state.styles[name] || {};\n var attributes = state.attributes[name] || {};\n var element = state.elements[name]; // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n } // Flow doesn't support to extend this property, but it's the most\n // effective way to apply styles to an HTMLElement\n // $FlowFixMe[cannot-write]\n\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (name) {\n var value = attributes[name];\n\n if (value === false) {\n element.removeAttribute(name);\n } else {\n element.setAttribute(name, value === true ? '' : value);\n }\n });\n });\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state;\n var initialStyles = {\n popper: {\n position: state.options.strategy,\n left: '0',\n top: '0',\n margin: '0'\n },\n arrow: {\n position: 'absolute'\n },\n reference: {}\n };\n Object.assign(state.elements.popper.style, initialStyles.popper);\n state.styles = initialStyles;\n\n if (state.elements.arrow) {\n Object.assign(state.elements.arrow.style, initialStyles.arrow);\n }\n\n return function () {\n Object.keys(state.elements).forEach(function (name) {\n var element = state.elements[name];\n var attributes = state.attributes[name] || {};\n var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]); // Set all values to an empty string to unset them\n\n var style = styleProperties.reduce(function (style, property) {\n style[property] = '';\n return style;\n }, {}); // arrow is optional + virtual elements\n\n if (!isHTMLElement(element) || !getNodeName(element)) {\n return;\n }\n\n Object.assign(element.style, style);\n Object.keys(attributes).forEach(function (attribute) {\n element.removeAttribute(attribute);\n });\n });\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'applyStyles',\n enabled: true,\n phase: 'write',\n fn: applyStyles,\n effect: effect,\n requires: ['computeStyles']\n};","import { auto } from \"../enums.js\";\nexport default function getBasePlacement(placement) {\n return placement.split('-')[0];\n}","export var max = Math.max;\nexport var min = Math.min;\nexport var round = Math.round;","export default function getUAString() {\n var uaData = navigator.userAgentData;\n\n if (uaData != null && uaData.brands && Array.isArray(uaData.brands)) {\n return uaData.brands.map(function (item) {\n return item.brand + \"/\" + item.version;\n }).join(' ');\n }\n\n return navigator.userAgent;\n}","import getUAString from \"../utils/userAgent.js\";\nexport default function isLayoutViewport() {\n return !/^((?!chrome|android).)*safari/i.test(getUAString());\n}","import { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport { round } from \"../utils/math.js\";\nimport getWindow from \"./getWindow.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getBoundingClientRect(element, includeScale, isFixedStrategy) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n\n var clientRect = element.getBoundingClientRect();\n var scaleX = 1;\n var scaleY = 1;\n\n if (includeScale && isHTMLElement(element)) {\n scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;\n scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;\n }\n\n var _ref = isElement(element) ? getWindow(element) : window,\n visualViewport = _ref.visualViewport;\n\n var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;\n var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;\n var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;\n var width = clientRect.width / scaleX;\n var height = clientRect.height / scaleY;\n return {\n width: width,\n height: height,\n top: y,\n right: x + width,\n bottom: y + height,\n left: x,\n x: x,\n y: y\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\"; // Returns the layout rect of an element relative to its offsetParent. Layout\n// means it doesn't take into account transforms.\n\nexport default function getLayoutRect(element) {\n var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.\n // Fixes https://github.com/popperjs/popper-core/issues/1223\n\n var width = element.offsetWidth;\n var height = element.offsetHeight;\n\n if (Math.abs(clientRect.width - width) <= 1) {\n width = clientRect.width;\n }\n\n if (Math.abs(clientRect.height - height) <= 1) {\n height = clientRect.height;\n }\n\n return {\n x: element.offsetLeft,\n y: element.offsetTop,\n width: width,\n height: height\n };\n}","import { isShadowRoot } from \"./instanceOf.js\";\nexport default function contains(parent, child) {\n var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method\n\n if (parent.contains(child)) {\n return true;\n } // then fallback to custom implementation with Shadow DOM support\n else if (rootNode && isShadowRoot(rootNode)) {\n var next = child;\n\n do {\n if (next && parent.isSameNode(next)) {\n return true;\n } // $FlowFixMe[prop-missing]: need a better way to handle this...\n\n\n next = next.parentNode || next.host;\n } while (next);\n } // Give up, the result is false\n\n\n return false;\n}","import getWindow from \"./getWindow.js\";\nexport default function getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}","import getNodeName from \"./getNodeName.js\";\nexport default function isTableElement(element) {\n return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;\n}","import { isElement } from \"./instanceOf.js\";\nexport default function getDocumentElement(element) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]\n element.document) || window.document).documentElement;\n}","import getNodeName from \"./getNodeName.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport { isShadowRoot } from \"./instanceOf.js\";\nexport default function getParentNode(element) {\n if (getNodeName(element) === 'html') {\n return element;\n }\n\n return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle\n // $FlowFixMe[incompatible-return]\n // $FlowFixMe[prop-missing]\n element.assignedSlot || // step into the shadow DOM of the parent of a slotted node\n element.parentNode || ( // DOM Element detected\n isShadowRoot(element) ? element.host : null) || // ShadowRoot detected\n // $FlowFixMe[incompatible-call]: HTMLElement is a Node\n getDocumentElement(element) // fallback\n\n );\n}","import getWindow from \"./getWindow.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isHTMLElement, isShadowRoot } from \"./instanceOf.js\";\nimport isTableElement from \"./isTableElement.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getUAString from \"../utils/userAgent.js\";\n\nfunction getTrueOffsetParent(element) {\n if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837\n getComputedStyle(element).position === 'fixed') {\n return null;\n }\n\n return element.offsetParent;\n} // `.offsetParent` reports `null` for fixed elements, while absolute elements\n// return the containing block\n\n\nfunction getContainingBlock(element) {\n var isFirefox = /firefox/i.test(getUAString());\n var isIE = /Trident/i.test(getUAString());\n\n if (isIE && isHTMLElement(element)) {\n // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport\n var elementCss = getComputedStyle(element);\n\n if (elementCss.position === 'fixed') {\n return null;\n }\n }\n\n var currentNode = getParentNode(element);\n\n if (isShadowRoot(currentNode)) {\n currentNode = currentNode.host;\n }\n\n while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {\n var css = getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that\n // create a containing block.\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n\n if (css.transform !== 'none' || css.perspective !== 'none' || css.contain === 'paint' || ['transform', 'perspective'].indexOf(css.willChange) !== -1 || isFirefox && css.willChange === 'filter' || isFirefox && css.filter && css.filter !== 'none') {\n return currentNode;\n } else {\n currentNode = currentNode.parentNode;\n }\n }\n\n return null;\n} // Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\n\n\nexport default function getOffsetParent(element) {\n var window = getWindow(element);\n var offsetParent = getTrueOffsetParent(element);\n\n while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === 'static') {\n offsetParent = getTrueOffsetParent(offsetParent);\n }\n\n if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle(offsetParent).position === 'static')) {\n return window;\n }\n\n return offsetParent || getContainingBlock(element) || window;\n}","export default function getMainAxisFromPlacement(placement) {\n return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';\n}","import { max as mathMax, min as mathMin } from \"./math.js\";\nexport function within(min, value, max) {\n return mathMax(min, mathMin(value, max));\n}\nexport function withinMaxClamp(min, value, max) {\n var v = within(min, value, max);\n return v > max ? max : v;\n}","export default function getFreshSideObject() {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0\n };\n}","import getFreshSideObject from \"./getFreshSideObject.js\";\nexport default function mergePaddingObject(paddingObject) {\n return Object.assign({}, getFreshSideObject(), paddingObject);\n}","export default function expandToHashMap(value, keys) {\n return keys.reduce(function (hashMap, key) {\n hashMap[key] = value;\n return hashMap;\n }, {});\n}","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport contains from \"../dom-utils/contains.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport { within } from \"../utils/within.js\";\nimport mergePaddingObject from \"../utils/mergePaddingObject.js\";\nimport expandToHashMap from \"../utils/expandToHashMap.js\";\nimport { left, right, basePlacements, top, bottom } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar toPaddingObject = function toPaddingObject(padding, state) {\n padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {\n placement: state.placement\n })) : padding;\n return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n};\n\nfunction arrow(_ref) {\n var _state$modifiersData$;\n\n var state = _ref.state,\n name = _ref.name,\n options = _ref.options;\n var arrowElement = state.elements.arrow;\n var popperOffsets = state.modifiersData.popperOffsets;\n var basePlacement = getBasePlacement(state.placement);\n var axis = getMainAxisFromPlacement(basePlacement);\n var isVertical = [left, right].indexOf(basePlacement) >= 0;\n var len = isVertical ? 'height' : 'width';\n\n if (!arrowElement || !popperOffsets) {\n return;\n }\n\n var paddingObject = toPaddingObject(options.padding, state);\n var arrowRect = getLayoutRect(arrowElement);\n var minProp = axis === 'y' ? top : left;\n var maxProp = axis === 'y' ? bottom : right;\n var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];\n var startDiff = popperOffsets[axis] - state.rects.reference[axis];\n var arrowOffsetParent = getOffsetParent(arrowElement);\n var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;\n var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is\n // outside of the popper bounds\n\n var min = paddingObject[minProp];\n var max = clientSize - arrowRect[len] - paddingObject[maxProp];\n var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;\n var offset = within(min, center, max); // Prevents breaking syntax highlighting...\n\n var axisProp = axis;\n state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset, _state$modifiersData$.centerOffset = offset - center, _state$modifiersData$);\n}\n\nfunction effect(_ref2) {\n var state = _ref2.state,\n options = _ref2.options;\n var _options$element = options.element,\n arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element;\n\n if (arrowElement == null) {\n return;\n } // CSS selector\n\n\n if (typeof arrowElement === 'string') {\n arrowElement = state.elements.popper.querySelector(arrowElement);\n\n if (!arrowElement) {\n return;\n }\n }\n\n if (!contains(state.elements.popper, arrowElement)) {\n return;\n }\n\n state.elements.arrow = arrowElement;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'arrow',\n enabled: true,\n phase: 'main',\n fn: arrow,\n effect: effect,\n requires: ['popperOffsets'],\n requiresIfExists: ['preventOverflow']\n};","export default function getVariation(placement) {\n return placement.split('-')[1];\n}","import { top, left, right, bottom, end } from \"../enums.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport getWindow from \"../dom-utils/getWindow.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getComputedStyle from \"../dom-utils/getComputedStyle.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport { round } from \"../utils/math.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar unsetSides = {\n top: 'auto',\n right: 'auto',\n bottom: 'auto',\n left: 'auto'\n}; // Round the offsets to the nearest suitable subpixel based on the DPR.\n// Zooming can change the DPR, but it seems to report a value that will\n// cleanly divide the values into the appropriate subpixels.\n\nfunction roundOffsetsByDPR(_ref, win) {\n var x = _ref.x,\n y = _ref.y;\n var dpr = win.devicePixelRatio || 1;\n return {\n x: round(x * dpr) / dpr || 0,\n y: round(y * dpr) / dpr || 0\n };\n}\n\nexport function mapToStyles(_ref2) {\n var _Object$assign2;\n\n var popper = _ref2.popper,\n popperRect = _ref2.popperRect,\n placement = _ref2.placement,\n variation = _ref2.variation,\n offsets = _ref2.offsets,\n position = _ref2.position,\n gpuAcceleration = _ref2.gpuAcceleration,\n adaptive = _ref2.adaptive,\n roundOffsets = _ref2.roundOffsets,\n isFixed = _ref2.isFixed;\n var _offsets$x = offsets.x,\n x = _offsets$x === void 0 ? 0 : _offsets$x,\n _offsets$y = offsets.y,\n y = _offsets$y === void 0 ? 0 : _offsets$y;\n\n var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({\n x: x,\n y: y\n }) : {\n x: x,\n y: y\n };\n\n x = _ref3.x;\n y = _ref3.y;\n var hasX = offsets.hasOwnProperty('x');\n var hasY = offsets.hasOwnProperty('y');\n var sideX = left;\n var sideY = top;\n var win = window;\n\n if (adaptive) {\n var offsetParent = getOffsetParent(popper);\n var heightProp = 'clientHeight';\n var widthProp = 'clientWidth';\n\n if (offsetParent === getWindow(popper)) {\n offsetParent = getDocumentElement(popper);\n\n if (getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {\n heightProp = 'scrollHeight';\n widthProp = 'scrollWidth';\n }\n } // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it\n\n\n offsetParent = offsetParent;\n\n if (placement === top || (placement === left || placement === right) && variation === end) {\n sideY = bottom;\n var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]\n offsetParent[heightProp];\n y -= offsetY - popperRect.height;\n y *= gpuAcceleration ? 1 : -1;\n }\n\n if (placement === left || (placement === top || placement === bottom) && variation === end) {\n sideX = right;\n var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]\n offsetParent[widthProp];\n x -= offsetX - popperRect.width;\n x *= gpuAcceleration ? 1 : -1;\n }\n }\n\n var commonStyles = Object.assign({\n position: position\n }, adaptive && unsetSides);\n\n var _ref4 = roundOffsets === true ? roundOffsetsByDPR({\n x: x,\n y: y\n }, getWindow(popper)) : {\n x: x,\n y: y\n };\n\n x = _ref4.x;\n y = _ref4.y;\n\n if (gpuAcceleration) {\n var _Object$assign;\n\n return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? \"translate(\" + x + \"px, \" + y + \"px)\" : \"translate3d(\" + x + \"px, \" + y + \"px, 0)\", _Object$assign));\n }\n\n return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + \"px\" : '', _Object$assign2[sideX] = hasX ? x + \"px\" : '', _Object$assign2.transform = '', _Object$assign2));\n}\n\nfunction computeStyles(_ref5) {\n var state = _ref5.state,\n options = _ref5.options;\n var _options$gpuAccelerat = options.gpuAcceleration,\n gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,\n _options$adaptive = options.adaptive,\n adaptive = _options$adaptive === void 0 ? true : _options$adaptive,\n _options$roundOffsets = options.roundOffsets,\n roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;\n var commonStyles = {\n placement: getBasePlacement(state.placement),\n variation: getVariation(state.placement),\n popper: state.elements.popper,\n popperRect: state.rects.popper,\n gpuAcceleration: gpuAcceleration,\n isFixed: state.options.strategy === 'fixed'\n };\n\n if (state.modifiersData.popperOffsets != null) {\n state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.popperOffsets,\n position: state.options.strategy,\n adaptive: adaptive,\n roundOffsets: roundOffsets\n })));\n }\n\n if (state.modifiersData.arrow != null) {\n state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {\n offsets: state.modifiersData.arrow,\n position: 'absolute',\n adaptive: false,\n roundOffsets: roundOffsets\n })));\n }\n\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-placement': state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'computeStyles',\n enabled: true,\n phase: 'beforeWrite',\n fn: computeStyles,\n data: {}\n};","import getWindow from \"../dom-utils/getWindow.js\"; // eslint-disable-next-line import/no-unused-modules\n\nvar passive = {\n passive: true\n};\n\nfunction effect(_ref) {\n var state = _ref.state,\n instance = _ref.instance,\n options = _ref.options;\n var _options$scroll = options.scroll,\n scroll = _options$scroll === void 0 ? true : _options$scroll,\n _options$resize = options.resize,\n resize = _options$resize === void 0 ? true : _options$resize;\n var window = getWindow(state.elements.popper);\n var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);\n\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.addEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.addEventListener('resize', instance.update, passive);\n }\n\n return function () {\n if (scroll) {\n scrollParents.forEach(function (scrollParent) {\n scrollParent.removeEventListener('scroll', instance.update, passive);\n });\n }\n\n if (resize) {\n window.removeEventListener('resize', instance.update, passive);\n }\n };\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'eventListeners',\n enabled: true,\n phase: 'write',\n fn: function fn() {},\n effect: effect,\n data: {}\n};","var hash = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nexport default function getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}","var hash = {\n start: 'end',\n end: 'start'\n};\nexport default function getOppositeVariationPlacement(placement) {\n return placement.replace(/start|end/g, function (matched) {\n return hash[matched];\n });\n}","import getWindow from \"./getWindow.js\";\nexport default function getWindowScroll(node) {\n var win = getWindow(node);\n var scrollLeft = win.pageXOffset;\n var scrollTop = win.pageYOffset;\n return {\n scrollLeft: scrollLeft,\n scrollTop: scrollTop\n };\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nexport default function getWindowScrollBarX(element) {\n // If has a CSS width greater than the viewport, then this will be\n // incorrect for RTL.\n // Popper 1 is broken in this case and never had a bug report so let's assume\n // it's not an issue. I don't think anyone ever specifies width on \n // anyway.\n // Browsers where the left scrollbar doesn't cause an issue report `0` for\n // this (e.g. Edge 2019, IE11, Safari)\n return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;\n}","import getWindow from \"./getWindow.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport isLayoutViewport from \"./isLayoutViewport.js\";\nexport default function getViewportRect(element, strategy) {\n var win = getWindow(element);\n var html = getDocumentElement(element);\n var visualViewport = win.visualViewport;\n var width = html.clientWidth;\n var height = html.clientHeight;\n var x = 0;\n var y = 0;\n\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n var layoutViewport = isLayoutViewport();\n\n if (layoutViewport || !layoutViewport && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n\n return {\n width: width,\n height: height,\n x: x + getWindowScrollBarX(element),\n y: y\n };\n}","import getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getWindowScroll from \"./getWindowScroll.js\";\nimport { max } from \"../utils/math.js\"; // Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable\n\nexport default function getDocumentRect(element) {\n var _element$ownerDocumen;\n\n var html = getDocumentElement(element);\n var winScroll = getWindowScroll(element);\n var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;\n var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);\n var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);\n var x = -winScroll.scrollLeft + getWindowScrollBarX(element);\n var y = -winScroll.scrollTop;\n\n if (getComputedStyle(body || html).direction === 'rtl') {\n x += max(html.clientWidth, body ? body.clientWidth : 0) - width;\n }\n\n return {\n width: width,\n height: height,\n x: x,\n y: y\n };\n}","import getComputedStyle from \"./getComputedStyle.js\";\nexport default function isScrollParent(element) {\n // Firefox wants us to check `-x` and `-y` variations as well\n var _getComputedStyle = getComputedStyle(element),\n overflow = _getComputedStyle.overflow,\n overflowX = _getComputedStyle.overflowX,\n overflowY = _getComputedStyle.overflowY;\n\n return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);\n}","import getParentNode from \"./getParentNode.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nexport default function getScrollParent(node) {\n if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {\n // $FlowFixMe[incompatible-return]: assume body is always available\n return node.ownerDocument.body;\n }\n\n if (isHTMLElement(node) && isScrollParent(node)) {\n return node;\n }\n\n return getScrollParent(getParentNode(node));\n}","import getScrollParent from \"./getScrollParent.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport getWindow from \"./getWindow.js\";\nimport isScrollParent from \"./isScrollParent.js\";\n/*\ngiven a DOM element, return the list of all scroll parents, up the list of ancesors\nuntil we get to the top window object. This list is what we attach scroll listeners\nto, because if any of these parent elements scroll, we'll need to re-calculate the\nreference element's position.\n*/\n\nexport default function listScrollParents(element, list) {\n var _element$ownerDocumen;\n\n if (list === void 0) {\n list = [];\n }\n\n var scrollParent = getScrollParent(element);\n var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);\n var win = getWindow(scrollParent);\n var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;\n var updatedList = list.concat(target);\n return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here\n updatedList.concat(listScrollParents(getParentNode(target)));\n}","export default function rectToClientRect(rect) {\n return Object.assign({}, rect, {\n left: rect.x,\n top: rect.y,\n right: rect.x + rect.width,\n bottom: rect.y + rect.height\n });\n}","import { viewport } from \"../enums.js\";\nimport getViewportRect from \"./getViewportRect.js\";\nimport getDocumentRect from \"./getDocumentRect.js\";\nimport listScrollParents from \"./listScrollParents.js\";\nimport getOffsetParent from \"./getOffsetParent.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport getComputedStyle from \"./getComputedStyle.js\";\nimport { isElement, isHTMLElement } from \"./instanceOf.js\";\nimport getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getParentNode from \"./getParentNode.js\";\nimport contains from \"./contains.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport rectToClientRect from \"../utils/rectToClientRect.js\";\nimport { max, min } from \"../utils/math.js\";\n\nfunction getInnerBoundingClientRect(element, strategy) {\n var rect = getBoundingClientRect(element, false, strategy === 'fixed');\n rect.top = rect.top + element.clientTop;\n rect.left = rect.left + element.clientLeft;\n rect.bottom = rect.top + element.clientHeight;\n rect.right = rect.left + element.clientWidth;\n rect.width = element.clientWidth;\n rect.height = element.clientHeight;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nfunction getClientRectFromMixedType(element, clippingParent, strategy) {\n return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));\n} // A \"clipping parent\" is an overflowable container with the characteristic of\n// clipping (or hiding) overflowing elements with a position different from\n// `initial`\n\n\nfunction getClippingParents(element) {\n var clippingParents = listScrollParents(getParentNode(element));\n var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle(element).position) >= 0;\n var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;\n\n if (!isElement(clipperElement)) {\n return [];\n } // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414\n\n\n return clippingParents.filter(function (clippingParent) {\n return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';\n });\n} // Gets the maximum area that the element is visible in due to any number of\n// clipping parents\n\n\nexport default function getClippingRect(element, boundary, rootBoundary, strategy) {\n var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);\n var clippingParents = [].concat(mainClippingParents, [rootBoundary]);\n var firstClippingParent = clippingParents[0];\n var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {\n var rect = getClientRectFromMixedType(element, clippingParent, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromMixedType(element, firstClippingParent, strategy));\n clippingRect.width = clippingRect.right - clippingRect.left;\n clippingRect.height = clippingRect.bottom - clippingRect.top;\n clippingRect.x = clippingRect.left;\n clippingRect.y = clippingRect.top;\n return clippingRect;\n}","import getBasePlacement from \"./getBasePlacement.js\";\nimport getVariation from \"./getVariation.js\";\nimport getMainAxisFromPlacement from \"./getMainAxisFromPlacement.js\";\nimport { top, right, bottom, left, start, end } from \"../enums.js\";\nexport default function computeOffsets(_ref) {\n var reference = _ref.reference,\n element = _ref.element,\n placement = _ref.placement;\n var basePlacement = placement ? getBasePlacement(placement) : null;\n var variation = placement ? getVariation(placement) : null;\n var commonX = reference.x + reference.width / 2 - element.width / 2;\n var commonY = reference.y + reference.height / 2 - element.height / 2;\n var offsets;\n\n switch (basePlacement) {\n case top:\n offsets = {\n x: commonX,\n y: reference.y - element.height\n };\n break;\n\n case bottom:\n offsets = {\n x: commonX,\n y: reference.y + reference.height\n };\n break;\n\n case right:\n offsets = {\n x: reference.x + reference.width,\n y: commonY\n };\n break;\n\n case left:\n offsets = {\n x: reference.x - element.width,\n y: commonY\n };\n break;\n\n default:\n offsets = {\n x: reference.x,\n y: reference.y\n };\n }\n\n var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;\n\n if (mainAxis != null) {\n var len = mainAxis === 'y' ? 'height' : 'width';\n\n switch (variation) {\n case start:\n offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);\n break;\n\n case end:\n offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);\n break;\n\n default:\n }\n }\n\n return offsets;\n}","import getClippingRect from \"../dom-utils/getClippingRect.js\";\nimport getDocumentElement from \"../dom-utils/getDocumentElement.js\";\nimport getBoundingClientRect from \"../dom-utils/getBoundingClientRect.js\";\nimport computeOffsets from \"./computeOffsets.js\";\nimport rectToClientRect from \"./rectToClientRect.js\";\nimport { clippingParents, reference, popper, bottom, top, right, basePlacements, viewport } from \"../enums.js\";\nimport { isElement } from \"../dom-utils/instanceOf.js\";\nimport mergePaddingObject from \"./mergePaddingObject.js\";\nimport expandToHashMap from \"./expandToHashMap.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport default function detectOverflow(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$placement = _options.placement,\n placement = _options$placement === void 0 ? state.placement : _options$placement,\n _options$strategy = _options.strategy,\n strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,\n _options$boundary = _options.boundary,\n boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,\n _options$rootBoundary = _options.rootBoundary,\n rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary,\n _options$elementConte = _options.elementContext,\n elementContext = _options$elementConte === void 0 ? popper : _options$elementConte,\n _options$altBoundary = _options.altBoundary,\n altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary,\n _options$padding = _options.padding,\n padding = _options$padding === void 0 ? 0 : _options$padding;\n var paddingObject = mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));\n var altContext = elementContext === popper ? reference : popper;\n var popperRect = state.rects.popper;\n var element = state.elements[altBoundary ? altContext : elementContext];\n var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);\n var referenceClientRect = getBoundingClientRect(state.elements.reference);\n var popperOffsets = computeOffsets({\n reference: referenceClientRect,\n element: popperRect,\n strategy: 'absolute',\n placement: placement\n });\n var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));\n var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect\n // 0 or negative = within the clipping rect\n\n var overflowOffsets = {\n top: clippingClientRect.top - elementClientRect.top + paddingObject.top,\n bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,\n left: clippingClientRect.left - elementClientRect.left + paddingObject.left,\n right: elementClientRect.right - clippingClientRect.right + paddingObject.right\n };\n var offsetData = state.modifiersData.offset; // Offsets can be applied only to the popper element\n\n if (elementContext === popper && offsetData) {\n var offset = offsetData[placement];\n Object.keys(overflowOffsets).forEach(function (key) {\n var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;\n var axis = [top, bottom].indexOf(key) >= 0 ? 'y' : 'x';\n overflowOffsets[key] += offset[axis] * multiply;\n });\n }\n\n return overflowOffsets;\n}","import getVariation from \"./getVariation.js\";\nimport { variationPlacements, basePlacements, placements as allPlacements } from \"../enums.js\";\nimport detectOverflow from \"./detectOverflow.js\";\nimport getBasePlacement from \"./getBasePlacement.js\";\nexport default function computeAutoPlacement(state, options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n placement = _options.placement,\n boundary = _options.boundary,\n rootBoundary = _options.rootBoundary,\n padding = _options.padding,\n flipVariations = _options.flipVariations,\n _options$allowedAutoP = _options.allowedAutoPlacements,\n allowedAutoPlacements = _options$allowedAutoP === void 0 ? allPlacements : _options$allowedAutoP;\n var variation = getVariation(placement);\n var placements = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {\n return getVariation(placement) === variation;\n }) : basePlacements;\n var allowedPlacements = placements.filter(function (placement) {\n return allowedAutoPlacements.indexOf(placement) >= 0;\n });\n\n if (allowedPlacements.length === 0) {\n allowedPlacements = placements;\n } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...\n\n\n var overflows = allowedPlacements.reduce(function (acc, placement) {\n acc[placement] = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding\n })[getBasePlacement(placement)];\n return acc;\n }, {});\n return Object.keys(overflows).sort(function (a, b) {\n return overflows[a] - overflows[b];\n });\n}","import getOppositePlacement from \"../utils/getOppositePlacement.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getOppositeVariationPlacement from \"../utils/getOppositeVariationPlacement.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport computeAutoPlacement from \"../utils/computeAutoPlacement.js\";\nimport { bottom, top, start, right, left, auto } from \"../enums.js\";\nimport getVariation from \"../utils/getVariation.js\"; // eslint-disable-next-line import/no-unused-modules\n\nfunction getExpandedFallbackPlacements(placement) {\n if (getBasePlacement(placement) === auto) {\n return [];\n }\n\n var oppositePlacement = getOppositePlacement(placement);\n return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];\n}\n\nfunction flip(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n\n if (state.modifiersData[name]._skip) {\n return;\n }\n\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis,\n specifiedFallbackPlacements = options.fallbackPlacements,\n padding = options.padding,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n _options$flipVariatio = options.flipVariations,\n flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio,\n allowedAutoPlacements = options.allowedAutoPlacements;\n var preferredPlacement = state.options.placement;\n var basePlacement = getBasePlacement(preferredPlacement);\n var isBasePlacement = basePlacement === preferredPlacement;\n var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));\n var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {\n return acc.concat(getBasePlacement(placement) === auto ? computeAutoPlacement(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n flipVariations: flipVariations,\n allowedAutoPlacements: allowedAutoPlacements\n }) : placement);\n }, []);\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var checksMap = new Map();\n var makeFallbackChecks = true;\n var firstFittingPlacement = placements[0];\n\n for (var i = 0; i < placements.length; i++) {\n var placement = placements[i];\n\n var _basePlacement = getBasePlacement(placement);\n\n var isStartVariation = getVariation(placement) === start;\n var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;\n var len = isVertical ? 'width' : 'height';\n var overflow = detectOverflow(state, {\n placement: placement,\n boundary: boundary,\n rootBoundary: rootBoundary,\n altBoundary: altBoundary,\n padding: padding\n });\n var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;\n\n if (referenceRect[len] > popperRect[len]) {\n mainVariationSide = getOppositePlacement(mainVariationSide);\n }\n\n var altVariationSide = getOppositePlacement(mainVariationSide);\n var checks = [];\n\n if (checkMainAxis) {\n checks.push(overflow[_basePlacement] <= 0);\n }\n\n if (checkAltAxis) {\n checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);\n }\n\n if (checks.every(function (check) {\n return check;\n })) {\n firstFittingPlacement = placement;\n makeFallbackChecks = false;\n break;\n }\n\n checksMap.set(placement, checks);\n }\n\n if (makeFallbackChecks) {\n // `2` may be desired in some cases – research later\n var numberOfChecks = flipVariations ? 3 : 1;\n\n var _loop = function _loop(_i) {\n var fittingPlacement = placements.find(function (placement) {\n var checks = checksMap.get(placement);\n\n if (checks) {\n return checks.slice(0, _i).every(function (check) {\n return check;\n });\n }\n });\n\n if (fittingPlacement) {\n firstFittingPlacement = fittingPlacement;\n return \"break\";\n }\n };\n\n for (var _i = numberOfChecks; _i > 0; _i--) {\n var _ret = _loop(_i);\n\n if (_ret === \"break\") break;\n }\n }\n\n if (state.placement !== firstFittingPlacement) {\n state.modifiersData[name]._skip = true;\n state.placement = firstFittingPlacement;\n state.reset = true;\n }\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'flip',\n enabled: true,\n phase: 'main',\n fn: flip,\n requiresIfExists: ['offset'],\n data: {\n _skip: false\n }\n};","import { top, bottom, left, right } from \"../enums.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\n\nfunction getSideOffsets(overflow, rect, preventedOffsets) {\n if (preventedOffsets === void 0) {\n preventedOffsets = {\n x: 0,\n y: 0\n };\n }\n\n return {\n top: overflow.top - rect.height - preventedOffsets.y,\n right: overflow.right - rect.width + preventedOffsets.x,\n bottom: overflow.bottom - rect.height + preventedOffsets.y,\n left: overflow.left - rect.width - preventedOffsets.x\n };\n}\n\nfunction isAnySideFullyClipped(overflow) {\n return [top, right, bottom, left].some(function (side) {\n return overflow[side] >= 0;\n });\n}\n\nfunction hide(_ref) {\n var state = _ref.state,\n name = _ref.name;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var preventedOffsets = state.modifiersData.preventOverflow;\n var referenceOverflow = detectOverflow(state, {\n elementContext: 'reference'\n });\n var popperAltOverflow = detectOverflow(state, {\n altBoundary: true\n });\n var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);\n var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);\n var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);\n var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);\n state.modifiersData[name] = {\n referenceClippingOffsets: referenceClippingOffsets,\n popperEscapeOffsets: popperEscapeOffsets,\n isReferenceHidden: isReferenceHidden,\n hasPopperEscaped: hasPopperEscaped\n };\n state.attributes.popper = Object.assign({}, state.attributes.popper, {\n 'data-popper-reference-hidden': isReferenceHidden,\n 'data-popper-escaped': hasPopperEscaped\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'hide',\n enabled: true,\n phase: 'main',\n requiresIfExists: ['preventOverflow'],\n fn: hide\n};","import getBasePlacement from \"../utils/getBasePlacement.js\";\nimport { top, left, right, placements } from \"../enums.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport function distanceAndSkiddingToXY(placement, rects, offset) {\n var basePlacement = getBasePlacement(placement);\n var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;\n\n var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {\n placement: placement\n })) : offset,\n skidding = _ref[0],\n distance = _ref[1];\n\n skidding = skidding || 0;\n distance = (distance || 0) * invertDistance;\n return [left, right].indexOf(basePlacement) >= 0 ? {\n x: distance,\n y: skidding\n } : {\n x: skidding,\n y: distance\n };\n}\n\nfunction offset(_ref2) {\n var state = _ref2.state,\n options = _ref2.options,\n name = _ref2.name;\n var _options$offset = options.offset,\n offset = _options$offset === void 0 ? [0, 0] : _options$offset;\n var data = placements.reduce(function (acc, placement) {\n acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset);\n return acc;\n }, {});\n var _data$state$placement = data[state.placement],\n x = _data$state$placement.x,\n y = _data$state$placement.y;\n\n if (state.modifiersData.popperOffsets != null) {\n state.modifiersData.popperOffsets.x += x;\n state.modifiersData.popperOffsets.y += y;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'offset',\n enabled: true,\n phase: 'main',\n requires: ['popperOffsets'],\n fn: offset\n};","import computeOffsets from \"../utils/computeOffsets.js\";\n\nfunction popperOffsets(_ref) {\n var state = _ref.state,\n name = _ref.name;\n // Offsets are the actual position the popper needs to have to be\n // properly positioned near its reference element\n // This is the most basic placement, and will be adjusted by\n // the modifiers in the next step\n state.modifiersData[name] = computeOffsets({\n reference: state.rects.reference,\n element: state.rects.popper,\n strategy: 'absolute',\n placement: state.placement\n });\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'popperOffsets',\n enabled: true,\n phase: 'read',\n fn: popperOffsets,\n data: {}\n};","export default function getAltAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}","import { top, left, right, bottom, start } from \"../enums.js\";\nimport getBasePlacement from \"../utils/getBasePlacement.js\";\nimport getMainAxisFromPlacement from \"../utils/getMainAxisFromPlacement.js\";\nimport getAltAxis from \"../utils/getAltAxis.js\";\nimport { within, withinMaxClamp } from \"../utils/within.js\";\nimport getLayoutRect from \"../dom-utils/getLayoutRect.js\";\nimport getOffsetParent from \"../dom-utils/getOffsetParent.js\";\nimport detectOverflow from \"../utils/detectOverflow.js\";\nimport getVariation from \"../utils/getVariation.js\";\nimport getFreshSideObject from \"../utils/getFreshSideObject.js\";\nimport { min as mathMin, max as mathMax } from \"../utils/math.js\";\n\nfunction preventOverflow(_ref) {\n var state = _ref.state,\n options = _ref.options,\n name = _ref.name;\n var _options$mainAxis = options.mainAxis,\n checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis,\n _options$altAxis = options.altAxis,\n checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis,\n boundary = options.boundary,\n rootBoundary = options.rootBoundary,\n altBoundary = options.altBoundary,\n padding = options.padding,\n _options$tether = options.tether,\n tether = _options$tether === void 0 ? true : _options$tether,\n _options$tetherOffset = options.tetherOffset,\n tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;\n var overflow = detectOverflow(state, {\n boundary: boundary,\n rootBoundary: rootBoundary,\n padding: padding,\n altBoundary: altBoundary\n });\n var basePlacement = getBasePlacement(state.placement);\n var variation = getVariation(state.placement);\n var isBasePlacement = !variation;\n var mainAxis = getMainAxisFromPlacement(basePlacement);\n var altAxis = getAltAxis(mainAxis);\n var popperOffsets = state.modifiersData.popperOffsets;\n var referenceRect = state.rects.reference;\n var popperRect = state.rects.popper;\n var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {\n placement: state.placement\n })) : tetherOffset;\n var normalizedTetherOffsetValue = typeof tetherOffsetValue === 'number' ? {\n mainAxis: tetherOffsetValue,\n altAxis: tetherOffsetValue\n } : Object.assign({\n mainAxis: 0,\n altAxis: 0\n }, tetherOffsetValue);\n var offsetModifierState = state.modifiersData.offset ? state.modifiersData.offset[state.placement] : null;\n var data = {\n x: 0,\n y: 0\n };\n\n if (!popperOffsets) {\n return;\n }\n\n if (checkMainAxis) {\n var _offsetModifierState$;\n\n var mainSide = mainAxis === 'y' ? top : left;\n var altSide = mainAxis === 'y' ? bottom : right;\n var len = mainAxis === 'y' ? 'height' : 'width';\n var offset = popperOffsets[mainAxis];\n var min = offset + overflow[mainSide];\n var max = offset - overflow[altSide];\n var additive = tether ? -popperRect[len] / 2 : 0;\n var minLen = variation === start ? referenceRect[len] : popperRect[len];\n var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go\n // outside the reference bounds\n\n var arrowElement = state.elements.arrow;\n var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {\n width: 0,\n height: 0\n };\n var arrowPaddingObject = state.modifiersData['arrow#persistent'] ? state.modifiersData['arrow#persistent'].padding : getFreshSideObject();\n var arrowPaddingMin = arrowPaddingObject[mainSide];\n var arrowPaddingMax = arrowPaddingObject[altSide]; // If the reference length is smaller than the arrow length, we don't want\n // to include its full size in the calculation. If the reference is small\n // and near the edge of a boundary, the popper can overflow even if the\n // reference is not overflowing as well (e.g. virtual elements with no\n // width or height)\n\n var arrowLen = within(0, referenceRect[len], arrowRect[len]);\n var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;\n var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;\n var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);\n var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;\n var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;\n var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;\n var tetherMax = offset + maxOffset - offsetModifierValue;\n var preventedOffset = within(tether ? mathMin(min, tetherMin) : min, offset, tether ? mathMax(max, tetherMax) : max);\n popperOffsets[mainAxis] = preventedOffset;\n data[mainAxis] = preventedOffset - offset;\n }\n\n if (checkAltAxis) {\n var _offsetModifierState$2;\n\n var _mainSide = mainAxis === 'x' ? top : left;\n\n var _altSide = mainAxis === 'x' ? bottom : right;\n\n var _offset = popperOffsets[altAxis];\n\n var _len = altAxis === 'y' ? 'height' : 'width';\n\n var _min = _offset + overflow[_mainSide];\n\n var _max = _offset - overflow[_altSide];\n\n var isOriginSide = [top, left].indexOf(basePlacement) !== -1;\n\n var _offsetModifierValue = (_offsetModifierState$2 = offsetModifierState == null ? void 0 : offsetModifierState[altAxis]) != null ? _offsetModifierState$2 : 0;\n\n var _tetherMin = isOriginSide ? _min : _offset - referenceRect[_len] - popperRect[_len] - _offsetModifierValue + normalizedTetherOffsetValue.altAxis;\n\n var _tetherMax = isOriginSide ? _offset + referenceRect[_len] + popperRect[_len] - _offsetModifierValue - normalizedTetherOffsetValue.altAxis : _max;\n\n var _preventedOffset = tether && isOriginSide ? withinMaxClamp(_tetherMin, _offset, _tetherMax) : within(tether ? _tetherMin : _min, _offset, tether ? _tetherMax : _max);\n\n popperOffsets[altAxis] = _preventedOffset;\n data[altAxis] = _preventedOffset - _offset;\n }\n\n state.modifiersData[name] = data;\n} // eslint-disable-next-line import/no-unused-modules\n\n\nexport default {\n name: 'preventOverflow',\n enabled: true,\n phase: 'main',\n fn: preventOverflow,\n requiresIfExists: ['offset']\n};","export default function getHTMLElementScroll(element) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n}","import getWindowScroll from \"./getWindowScroll.js\";\nimport getWindow from \"./getWindow.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getHTMLElementScroll from \"./getHTMLElementScroll.js\";\nexport default function getNodeScroll(node) {\n if (node === getWindow(node) || !isHTMLElement(node)) {\n return getWindowScroll(node);\n } else {\n return getHTMLElementScroll(node);\n }\n}","import getBoundingClientRect from \"./getBoundingClientRect.js\";\nimport getNodeScroll from \"./getNodeScroll.js\";\nimport getNodeName from \"./getNodeName.js\";\nimport { isHTMLElement } from \"./instanceOf.js\";\nimport getWindowScrollBarX from \"./getWindowScrollBarX.js\";\nimport getDocumentElement from \"./getDocumentElement.js\";\nimport isScrollParent from \"./isScrollParent.js\";\nimport { round } from \"../utils/math.js\";\n\nfunction isElementScaled(element) {\n var rect = element.getBoundingClientRect();\n var scaleX = round(rect.width) / element.offsetWidth || 1;\n var scaleY = round(rect.height) / element.offsetHeight || 1;\n return scaleX !== 1 || scaleY !== 1;\n} // Returns the composite rect of an element relative to its offsetParent.\n// Composite means it takes into account transforms as well as layout.\n\n\nexport default function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n\n var isOffsetParentAnElement = isHTMLElement(offsetParent);\n var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);\n var documentElement = getDocumentElement(offsetParent);\n var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);\n var scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n var offsets = {\n x: 0,\n y: 0\n };\n\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078\n isScrollParent(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n\n if (isHTMLElement(offsetParent)) {\n offsets = getBoundingClientRect(offsetParent, true);\n offsets.x += offsetParent.clientLeft;\n offsets.y += offsetParent.clientTop;\n } else if (documentElement) {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n }\n\n return {\n x: rect.left + scroll.scrollLeft - offsets.x,\n y: rect.top + scroll.scrollTop - offsets.y,\n width: rect.width,\n height: rect.height\n };\n}","import { modifierPhases } from \"../enums.js\"; // source: https://stackoverflow.com/questions/49875255\n\nfunction order(modifiers) {\n var map = new Map();\n var visited = new Set();\n var result = [];\n modifiers.forEach(function (modifier) {\n map.set(modifier.name, modifier);\n }); // On visiting object, check for its dependencies and visit them recursively\n\n function sort(modifier) {\n visited.add(modifier.name);\n var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);\n requires.forEach(function (dep) {\n if (!visited.has(dep)) {\n var depModifier = map.get(dep);\n\n if (depModifier) {\n sort(depModifier);\n }\n }\n });\n result.push(modifier);\n }\n\n modifiers.forEach(function (modifier) {\n if (!visited.has(modifier.name)) {\n // check for visited object\n sort(modifier);\n }\n });\n return result;\n}\n\nexport default function orderModifiers(modifiers) {\n // order based on dependencies\n var orderedModifiers = order(modifiers); // order based on phase\n\n return modifierPhases.reduce(function (acc, phase) {\n return acc.concat(orderedModifiers.filter(function (modifier) {\n return modifier.phase === phase;\n }));\n }, []);\n}","export default function debounce(fn) {\n var pending;\n return function () {\n if (!pending) {\n pending = new Promise(function (resolve) {\n Promise.resolve().then(function () {\n pending = undefined;\n resolve(fn());\n });\n });\n }\n\n return pending;\n };\n}","export default function mergeByName(modifiers) {\n var merged = modifiers.reduce(function (merged, current) {\n var existing = merged[current.name];\n merged[current.name] = existing ? Object.assign({}, existing, current, {\n options: Object.assign({}, existing.options, current.options),\n data: Object.assign({}, existing.data, current.data)\n }) : current;\n return merged;\n }, {}); // IE11 does not support Object.values\n\n return Object.keys(merged).map(function (key) {\n return merged[key];\n });\n}","import getCompositeRect from \"./dom-utils/getCompositeRect.js\";\nimport getLayoutRect from \"./dom-utils/getLayoutRect.js\";\nimport listScrollParents from \"./dom-utils/listScrollParents.js\";\nimport getOffsetParent from \"./dom-utils/getOffsetParent.js\";\nimport orderModifiers from \"./utils/orderModifiers.js\";\nimport debounce from \"./utils/debounce.js\";\nimport mergeByName from \"./utils/mergeByName.js\";\nimport detectOverflow from \"./utils/detectOverflow.js\";\nimport { isElement } from \"./dom-utils/instanceOf.js\";\nvar DEFAULT_OPTIONS = {\n placement: 'bottom',\n modifiers: [],\n strategy: 'absolute'\n};\n\nfunction areValidElements() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return !args.some(function (element) {\n return !(element && typeof element.getBoundingClientRect === 'function');\n });\n}\n\nexport function popperGenerator(generatorOptions) {\n if (generatorOptions === void 0) {\n generatorOptions = {};\n }\n\n var _generatorOptions = generatorOptions,\n _generatorOptions$def = _generatorOptions.defaultModifiers,\n defaultModifiers = _generatorOptions$def === void 0 ? [] : _generatorOptions$def,\n _generatorOptions$def2 = _generatorOptions.defaultOptions,\n defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;\n return function createPopper(reference, popper, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var state = {\n placement: 'bottom',\n orderedModifiers: [],\n options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),\n modifiersData: {},\n elements: {\n reference: reference,\n popper: popper\n },\n attributes: {},\n styles: {}\n };\n var effectCleanupFns = [];\n var isDestroyed = false;\n var instance = {\n state: state,\n setOptions: function setOptions(setOptionsAction) {\n var options = typeof setOptionsAction === 'function' ? setOptionsAction(state.options) : setOptionsAction;\n cleanupModifierEffects();\n state.options = Object.assign({}, defaultOptions, state.options, options);\n state.scrollParents = {\n reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],\n popper: listScrollParents(popper)\n }; // Orders the modifiers based on their dependencies and `phase`\n // properties\n\n var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers, state.options.modifiers))); // Strip out disabled modifiers\n\n state.orderedModifiers = orderedModifiers.filter(function (m) {\n return m.enabled;\n });\n runModifierEffects();\n return instance.update();\n },\n // Sync update – it will always be executed, even if not necessary. This\n // is useful for low frequency updates where sync behavior simplifies the\n // logic.\n // For high frequency updates (e.g. `resize` and `scroll` events), always\n // prefer the async Popper#update method\n forceUpdate: function forceUpdate() {\n if (isDestroyed) {\n return;\n }\n\n var _state$elements = state.elements,\n reference = _state$elements.reference,\n popper = _state$elements.popper; // Don't proceed if `reference` or `popper` are not valid elements\n // anymore\n\n if (!areValidElements(reference, popper)) {\n return;\n } // Store the reference and popper rects to be read by modifiers\n\n\n state.rects = {\n reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),\n popper: getLayoutRect(popper)\n }; // Modifiers have the ability to reset the current update cycle. The\n // most common use case for this is the `flip` modifier changing the\n // placement, which then needs to re-run all the modifiers, because the\n // logic was previously ran for the previous placement and is therefore\n // stale/incorrect\n\n state.reset = false;\n state.placement = state.options.placement; // On each update cycle, the `modifiersData` property for each modifier\n // is filled with the initial data specified by the modifier. This means\n // it doesn't persist and is fresh on each update.\n // To ensure persistent data, use `${name}#persistent`\n\n state.orderedModifiers.forEach(function (modifier) {\n return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);\n });\n\n for (var index = 0; index < state.orderedModifiers.length; index++) {\n if (state.reset === true) {\n state.reset = false;\n index = -1;\n continue;\n }\n\n var _state$orderedModifie = state.orderedModifiers[index],\n fn = _state$orderedModifie.fn,\n _state$orderedModifie2 = _state$orderedModifie.options,\n _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2,\n name = _state$orderedModifie.name;\n\n if (typeof fn === 'function') {\n state = fn({\n state: state,\n options: _options,\n name: name,\n instance: instance\n }) || state;\n }\n }\n },\n // Async and optimistically optimized update – it will not be executed if\n // not necessary (debounced to run at most once-per-tick)\n update: debounce(function () {\n return new Promise(function (resolve) {\n instance.forceUpdate();\n resolve(state);\n });\n }),\n destroy: function destroy() {\n cleanupModifierEffects();\n isDestroyed = true;\n }\n };\n\n if (!areValidElements(reference, popper)) {\n return instance;\n }\n\n instance.setOptions(options).then(function (state) {\n if (!isDestroyed && options.onFirstUpdate) {\n options.onFirstUpdate(state);\n }\n }); // Modifiers have the ability to execute arbitrary code before the first\n // update cycle runs. They will be executed in the same order as the update\n // cycle. This is useful when a modifier adds some persistent data that\n // other modifiers need to use, but the modifier is run after the dependent\n // one.\n\n function runModifierEffects() {\n state.orderedModifiers.forEach(function (_ref) {\n var name = _ref.name,\n _ref$options = _ref.options,\n options = _ref$options === void 0 ? {} : _ref$options,\n effect = _ref.effect;\n\n if (typeof effect === 'function') {\n var cleanupFn = effect({\n state: state,\n name: name,\n instance: instance,\n options: options\n });\n\n var noopFn = function noopFn() {};\n\n effectCleanupFns.push(cleanupFn || noopFn);\n }\n });\n }\n\n function cleanupModifierEffects() {\n effectCleanupFns.forEach(function (fn) {\n return fn();\n });\n effectCleanupFns = [];\n }\n\n return instance;\n };\n}\nexport var createPopper = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules\n\nexport { detectOverflow };","import { popperGenerator, detectOverflow } from \"./createPopper.js\";\nimport eventListeners from \"./modifiers/eventListeners.js\";\nimport popperOffsets from \"./modifiers/popperOffsets.js\";\nimport computeStyles from \"./modifiers/computeStyles.js\";\nimport applyStyles from \"./modifiers/applyStyles.js\";\nimport offset from \"./modifiers/offset.js\";\nimport flip from \"./modifiers/flip.js\";\nimport preventOverflow from \"./modifiers/preventOverflow.js\";\nimport arrow from \"./modifiers/arrow.js\";\nimport hide from \"./modifiers/hide.js\";\nvar defaultModifiers = [eventListeners, popperOffsets, computeStyles, applyStyles, offset, flip, preventOverflow, arrow, hide];\nvar createPopper = /*#__PURE__*/popperGenerator({\n defaultModifiers: defaultModifiers\n}); // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper, popperGenerator, defaultModifiers, detectOverflow }; // eslint-disable-next-line import/no-unused-modules\n\nexport { createPopper as createPopperLite } from \"./popper-lite.js\"; // eslint-disable-next-line import/no-unused-modules\n\nexport * from \"./modifiers/index.js\";","import { generateUtilityClass } from '../generateUtilityClass';\nimport { generateUtilityClasses } from '../generateUtilityClasses';\nconst COMPONENT_NAME = 'Popper';\nexport function getPopperUtilityClass(slot) {\n return generateUtilityClass(COMPONENT_NAME, slot);\n}\nexport const popperClasses = generateUtilityClasses(COMPONENT_NAME, ['root']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"children\", \"direction\", \"disablePortal\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"slotProps\", \"slots\", \"TransitionProps\", \"ownerState\"],\n _excluded2 = [\"anchorEl\", \"children\", \"container\", \"direction\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"style\", \"transition\", \"slotProps\", \"slots\"];\nimport * as React from 'react';\nimport { chainPropTypes, HTMLElementType, refType, unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { createPopper } from '@popperjs/core';\nimport PropTypes from 'prop-types';\nimport { unstable_composeClasses as composeClasses } from '../composeClasses';\nimport { Portal } from '../Portal';\nimport { getPopperUtilityClass } from './popperClasses';\nimport { useSlotProps } from '../utils';\nimport { useClassNamesOverride } from '../utils/ClassNameConfigurator';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction flipPlacement(placement, direction) {\n if (direction === 'ltr') {\n return placement;\n }\n switch (placement) {\n case 'bottom-end':\n return 'bottom-start';\n case 'bottom-start':\n return 'bottom-end';\n case 'top-end':\n return 'top-start';\n case 'top-start':\n return 'top-end';\n default:\n return placement;\n }\n}\nfunction resolveAnchorEl(anchorEl) {\n return typeof anchorEl === 'function' ? anchorEl() : anchorEl;\n}\nfunction isHTMLElement(element) {\n return element.nodeType !== undefined;\n}\nfunction isVirtualElement(element) {\n return !isHTMLElement(element);\n}\nconst useUtilityClasses = () => {\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, useClassNamesOverride(getPopperUtilityClass));\n};\nconst defaultPopperOptions = {};\nconst PopperTooltip = /*#__PURE__*/React.forwardRef(function PopperTooltip(props, forwardedRef) {\n var _slots$root;\n const {\n anchorEl,\n children,\n direction,\n disablePortal,\n modifiers,\n open,\n placement: initialPlacement,\n popperOptions,\n popperRef: popperRefProp,\n slotProps = {},\n slots = {},\n TransitionProps\n // @ts-ignore internal logic\n // prevent from spreading to DOM, it can come from the parent component e.g. Select.\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const tooltipRef = React.useRef(null);\n const ownRef = useForkRef(tooltipRef, forwardedRef);\n const popperRef = React.useRef(null);\n const handlePopperRef = useForkRef(popperRef, popperRefProp);\n const handlePopperRefRef = React.useRef(handlePopperRef);\n useEnhancedEffect(() => {\n handlePopperRefRef.current = handlePopperRef;\n }, [handlePopperRef]);\n React.useImperativeHandle(popperRefProp, () => popperRef.current, []);\n const rtlPlacement = flipPlacement(initialPlacement, direction);\n /**\n * placement initialized from prop but can change during lifetime if modifiers.flip.\n * modifiers.flip is essentially a flip for controlled/uncontrolled behavior\n */\n const [placement, setPlacement] = React.useState(rtlPlacement);\n const [resolvedAnchorElement, setResolvedAnchorElement] = React.useState(resolveAnchorEl(anchorEl));\n React.useEffect(() => {\n if (popperRef.current) {\n popperRef.current.forceUpdate();\n }\n });\n React.useEffect(() => {\n if (anchorEl) {\n setResolvedAnchorElement(resolveAnchorEl(anchorEl));\n }\n }, [anchorEl]);\n useEnhancedEffect(() => {\n if (!resolvedAnchorElement || !open) {\n return undefined;\n }\n const handlePopperUpdate = data => {\n setPlacement(data.placement);\n };\n if (process.env.NODE_ENV !== 'production') {\n if (resolvedAnchorElement && isHTMLElement(resolvedAnchorElement) && resolvedAnchorElement.nodeType === 1) {\n const box = resolvedAnchorElement.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n console.warn(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n }\n }\n let popperModifiers = [{\n name: 'preventOverflow',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'flip',\n options: {\n altBoundary: disablePortal\n }\n }, {\n name: 'onUpdate',\n enabled: true,\n phase: 'afterWrite',\n fn: ({\n state\n }) => {\n handlePopperUpdate(state);\n }\n }];\n if (modifiers != null) {\n popperModifiers = popperModifiers.concat(modifiers);\n }\n if (popperOptions && popperOptions.modifiers != null) {\n popperModifiers = popperModifiers.concat(popperOptions.modifiers);\n }\n const popper = createPopper(resolvedAnchorElement, tooltipRef.current, _extends({\n placement: rtlPlacement\n }, popperOptions, {\n modifiers: popperModifiers\n }));\n handlePopperRefRef.current(popper);\n return () => {\n popper.destroy();\n handlePopperRefRef.current(null);\n };\n }, [resolvedAnchorElement, disablePortal, modifiers, open, popperOptions, rtlPlacement]);\n const childProps = {\n placement: placement\n };\n if (TransitionProps !== null) {\n childProps.TransitionProps = TransitionProps;\n }\n const classes = useUtilityClasses();\n const Root = (_slots$root = slots.root) != null ? _slots$root : 'div';\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps.root,\n externalForwardedProps: other,\n additionalProps: {\n role: 'tooltip',\n ref: ownRef\n },\n ownerState: props,\n className: classes.root\n });\n return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n children: typeof children === 'function' ? children(childProps) : children\n }));\n});\n\n/**\n * Poppers rely on the 3rd party library [Popper.js](https://popper.js.org/docs/v2/) for positioning.\n *\n * Demos:\n *\n * - [Popper](https://mui.com/base-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/base-ui/react-popper/components-api/#popper)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(props, forwardedRef) {\n const {\n anchorEl,\n children,\n container: containerProp,\n direction = 'ltr',\n disablePortal = false,\n keepMounted = false,\n modifiers,\n open,\n placement = 'bottom',\n popperOptions = defaultPopperOptions,\n popperRef,\n style,\n transition = false,\n slotProps = {},\n slots = {}\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [exited, setExited] = React.useState(true);\n const handleEnter = () => {\n setExited(false);\n };\n const handleExited = () => {\n setExited(true);\n };\n if (!keepMounted && !open && (!transition || exited)) {\n return null;\n }\n\n // If the container prop is provided, use that\n // If the anchorEl prop is provided, use its parent body element as the container\n // If neither are provided let the Modal take care of choosing the container\n let container;\n if (containerProp) {\n container = containerProp;\n } else if (anchorEl) {\n const resolvedAnchorEl = resolveAnchorEl(anchorEl);\n container = resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) ? ownerDocument(resolvedAnchorEl).body : ownerDocument(null).body;\n }\n const display = !open && keepMounted && (!transition || exited) ? 'none' : undefined;\n const transitionProps = transition ? {\n in: open,\n onEnter: handleEnter,\n onExited: handleExited\n } : undefined;\n return /*#__PURE__*/_jsx(Portal, {\n disablePortal: disablePortal,\n container: container,\n children: /*#__PURE__*/_jsx(PopperTooltip, _extends({\n anchorEl: anchorEl,\n direction: direction,\n disablePortal: disablePortal,\n modifiers: modifiers,\n ref: forwardedRef,\n open: transition ? !exited : open,\n placement: placement,\n popperOptions: popperOptions,\n popperRef: popperRef,\n slotProps: slotProps,\n slots: slots\n }, other, {\n style: _extends({\n // Prevents scroll issue, waiting for Popper.js to add this style once initiated.\n position: 'fixed',\n // Fix Popper.js display issue\n top: 0,\n left: 0,\n display\n }, style),\n TransitionProps: transitionProps,\n children: children\n }))\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: chainPropTypes(PropTypes.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]), props => {\n if (props.open) {\n const resolvedAnchorEl = resolveAnchorEl(props.anchorEl);\n if (resolvedAnchorEl && isHTMLElement(resolvedAnchorEl) && resolvedAnchorEl.nodeType === 1) {\n const box = resolvedAnchorEl.getBoundingClientRect();\n if (process.env.NODE_ENV !== 'test' && box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'The anchor element should be part of the document layout.', \"Make sure the element is present in the document or that it's not display none.\"].join('\\n'));\n }\n } else if (!resolvedAnchorEl || typeof resolvedAnchorEl.getBoundingClientRect !== 'function' || isVirtualElement(resolvedAnchorEl) && resolvedAnchorEl.contextElement != null && resolvedAnchorEl.contextElement.nodeType !== 1) {\n return new Error(['MUI: The `anchorEl` prop provided to the component is invalid.', 'It should be an HTML element instance or a virtualElement ', '(https://popper.js.org/docs/v2/virtual-elements/).'].join('\\n'));\n }\n }\n return null;\n }),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * Direction of the text.\n * @default 'ltr'\n */\n direction: PropTypes.oneOf(['ltr', 'rtl']),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport { Popper };","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from './defaultTheme';\nimport THEME_ID from './identifier';\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}","import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}","export default {\n disabled: false\n};","import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n enter: PropTypes.number,\n exit: PropTypes.number,\n appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string,\n active: PropTypes.string\n}), PropTypes.shape({\n enter: PropTypes.string,\n enterDone: PropTypes.string,\n enterActive: PropTypes.string,\n exit: PropTypes.string,\n exitDone: PropTypes.string,\n exitActive: PropTypes.string\n})]) : null;","import React from 'react';\nexport default React.createContext(null);","export var forceReflow = function forceReflow(node) {\n return node.scrollTop;\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _inheritsLoose from \"@babel/runtime/helpers/esm/inheritsLoose\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport config from './config';\nimport { timeoutsShape } from './utils/PropTypes';\nimport TransitionGroupContext from './TransitionGroupContext';\nimport { forceReflow } from './utils/reflow';\nexport var UNMOUNTED = 'unmounted';\nexport var EXITED = 'exited';\nexport var ENTERING = 'entering';\nexport var ENTERED = 'entered';\nexport var EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 1 },\n * entered: { opacity: 1 },\n * exiting: { opacity: 0 },\n * exited: { opacity: 0 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {state => (\n *
    \n * I'm a fade Transition!\n *
    \n * )}\n *
    \n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n *
    \n * \n * {state => (\n * // ...\n * )}\n * \n * \n *
    \n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nvar Transition = /*#__PURE__*/function (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n } // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n ;\n\n var _proto = Transition.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n if (nextStatus === ENTERING) {\n if (this.props.unmountOnExit || this.props.mountOnEnter) {\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749\n // With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.\n // To make the animation happen, we have to separate each rendering and avoid being processed as batched.\n\n if (node) forceReflow(node);\n }\n\n this.performEnter(mounting);\n } else {\n this.performExit();\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context ? this.context.isMounting : mounting;\n\n var _ref2 = this.props.nodeRef ? [appearing] : [ReactDOM.findDOMNode(this), appearing],\n maybeNode = _ref2[0],\n maybeAppearing = _ref2[1];\n\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter || config.disabled) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode);\n });\n return;\n }\n\n this.props.onEnter(maybeNode, maybeAppearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(maybeNode, maybeAppearing);\n\n _this2.onTransitionEnd(enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(maybeNode, maybeAppearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit() {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts();\n var maybeNode = this.props.nodeRef ? undefined : ReactDOM.findDOMNode(this); // no exit animation skip right to EXITED\n\n if (!exit || config.disabled) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n return;\n }\n\n this.props.onExit(maybeNode);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(maybeNode);\n\n _this3.onTransitionEnd(timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(maybeNode);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(timeout, handler) {\n this.setNextCallback(handler);\n var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM.findDOMNode(this);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n var _ref3 = this.props.nodeRef ? [this.nextCallback] : [node, this.nextCallback],\n maybeNode = _ref3[0],\n maybeNextCallback = _ref3[1];\n\n this.props.addEndListener(maybeNode, maybeNextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n _in = _this$props.in,\n _mountOnEnter = _this$props.mountOnEnter,\n _unmountOnExit = _this$props.unmountOnExit,\n _appear = _this$props.appear,\n _enter = _this$props.enter,\n _exit = _this$props.exit,\n _timeout = _this$props.timeout,\n _addEndListener = _this$props.addEndListener,\n _onEnter = _this$props.onEnter,\n _onEntering = _this$props.onEntering,\n _onEntered = _this$props.onEntered,\n _onExit = _this$props.onExit,\n _onExiting = _this$props.onExiting,\n _onExited = _this$props.onExited,\n _nodeRef = _this$props.nodeRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\", \"mountOnEnter\", \"unmountOnExit\", \"appear\", \"enter\", \"exit\", \"timeout\", \"addEndListener\", \"onEnter\", \"onEntering\", \"onEntered\", \"onExit\", \"onExiting\", \"onExited\", \"nodeRef\"]);\n\n return (\n /*#__PURE__*/\n // allows for nested Transitions\n React.createElement(TransitionGroupContext.Provider, {\n value: null\n }, typeof children === 'function' ? children(status, childProps) : React.cloneElement(React.Children.only(children), childProps))\n );\n };\n\n return Transition;\n}(React.Component);\n\nTransition.contextType = TransitionGroupContext;\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A React reference to DOM element that need to transition:\n * https://stackoverflow.com/a/51127130/4671932\n *\n * - When `nodeRef` prop is used, `node` is not passed to callback functions\n * (e.g. `onEnter`) because user already has direct access to the node.\n * - When changing `key` prop of `Transition` in a `TransitionGroup` a new\n * `nodeRef` need to be provided to `Transition` with changed `key` prop\n * (see\n * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).\n */\n nodeRef: PropTypes.shape({\n current: typeof Element === 'undefined' ? PropTypes.any : function (propValue, key, componentName, location, propFullName, secret) {\n var value = propValue[key];\n return PropTypes.instanceOf(value && 'ownerDocument' in value ? value.ownerDocument.defaultView.Element : Element)(propValue, key, componentName, location, propFullName, secret);\n }\n }),\n\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * \n * {state => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * By default the child component does not perform the enter transition when\n * it first mounts, regardless of the value of `in`. If you want this\n * behavior, set both `appear` and `in` to `true`.\n *\n * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop\n * > only adds an additional enter transition. However, in the\n * > `` component that first enter transition does result in\n * > additional `.appear-*` classes, that way you can choose to style it\n * > differently.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. Timeouts are still used as a fallback if provided.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * **Note**: when `nodeRef` prop is passed, `node` is not passed\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func\n} : {}; // Name the function so it is clearer in the documentation\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = UNMOUNTED;\nTransition.EXITED = EXITED;\nTransition.ENTERING = ENTERING;\nTransition.ENTERED = ENTERED;\nTransition.EXITING = EXITING;\nexport default Transition;","export const reflow = node => node.scrollTop;\nexport function getTransitionProps(props, options) {\n var _style$transitionDura, _style$transitionTimi;\n const {\n timeout,\n easing,\n style = {}\n } = props;\n return {\n duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,\n easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,\n delay: style.transitionDelay\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"addEndListener\", \"appear\", \"children\", \"easing\", \"in\", \"onEnter\", \"onEntered\", \"onEntering\", \"onExit\", \"onExited\", \"onExiting\", \"style\", \"timeout\", \"TransitionComponent\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { elementAcceptingRef, unstable_useTimeout as useTimeout } from '@mui/utils';\nimport { Transition } from 'react-transition-group';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps, reflow } from '../transitions/utils';\nimport useForkRef from '../utils/useForkRef';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getScale(value) {\n return `scale(${value}, ${value ** 2})`;\n}\nconst styles = {\n entering: {\n opacity: 1,\n transform: getScale(1)\n },\n entered: {\n opacity: 1,\n transform: 'none'\n }\n};\n\n/*\n TODO v6: remove\n Conditionally apply a workaround for the CSS transition bug in Safari 15.4 / WebKit browsers.\n */\nconst isWebKit154 = typeof navigator !== 'undefined' && /^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent) && /(os |version\\/)15(.|_)4/i.test(navigator.userAgent);\n\n/**\n * The Grow transition is used by the [Tooltip](/material-ui/react-tooltip/) and\n * [Popover](/material-ui/react-popover/) components.\n * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.\n */\nconst Grow = /*#__PURE__*/React.forwardRef(function Grow(props, ref) {\n const {\n addEndListener,\n appear = true,\n children,\n easing,\n in: inProp,\n onEnter,\n onEntered,\n onEntering,\n onExit,\n onExited,\n onExiting,\n style,\n timeout = 'auto',\n // eslint-disable-next-line react/prop-types\n TransitionComponent = Transition\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const timer = useTimeout();\n const autoTimeout = React.useRef();\n const theme = useTheme();\n const nodeRef = React.useRef(null);\n const handleRef = useForkRef(nodeRef, children.ref, ref);\n const normalizedTransitionCallback = callback => maybeIsAppearing => {\n if (callback) {\n const node = nodeRef.current;\n\n // onEnterXxx and onExitXxx callbacks have a different arguments.length value.\n if (maybeIsAppearing === undefined) {\n callback(node);\n } else {\n callback(node, maybeIsAppearing);\n }\n }\n };\n const handleEntering = normalizedTransitionCallback(onEntering);\n const handleEnter = normalizedTransitionCallback((node, isAppearing) => {\n reflow(node); // So the animation always start from the start.\n\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'enter'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay,\n easing: transitionTimingFunction\n })].join(',');\n if (onEnter) {\n onEnter(node, isAppearing);\n }\n });\n const handleEntered = normalizedTransitionCallback(onEntered);\n const handleExiting = normalizedTransitionCallback(onExiting);\n const handleExit = normalizedTransitionCallback(node => {\n const {\n duration: transitionDuration,\n delay,\n easing: transitionTimingFunction\n } = getTransitionProps({\n style,\n timeout,\n easing\n }, {\n mode: 'exit'\n });\n let duration;\n if (timeout === 'auto') {\n duration = theme.transitions.getAutoHeightDuration(node.clientHeight);\n autoTimeout.current = duration;\n } else {\n duration = transitionDuration;\n }\n node.style.transition = [theme.transitions.create('opacity', {\n duration,\n delay\n }), theme.transitions.create('transform', {\n duration: isWebKit154 ? duration : duration * 0.666,\n delay: isWebKit154 ? delay : delay || duration * 0.333,\n easing: transitionTimingFunction\n })].join(',');\n node.style.opacity = 0;\n node.style.transform = getScale(0.75);\n if (onExit) {\n onExit(node);\n }\n });\n const handleExited = normalizedTransitionCallback(onExited);\n const handleAddEndListener = next => {\n if (timeout === 'auto') {\n timer.start(autoTimeout.current || 0, next);\n }\n if (addEndListener) {\n // Old call signature before `react-transition-group` implemented `nodeRef`\n addEndListener(nodeRef.current, next);\n }\n };\n return /*#__PURE__*/_jsx(TransitionComponent, _extends({\n appear: appear,\n in: inProp,\n nodeRef: nodeRef,\n onEnter: handleEnter,\n onEntered: handleEntered,\n onEntering: handleEntering,\n onExit: handleExit,\n onExited: handleExited,\n onExiting: handleExiting,\n addEndListener: handleAddEndListener,\n timeout: timeout === 'auto' ? null : timeout\n }, other, {\n children: (state, childProps) => {\n return /*#__PURE__*/React.cloneElement(children, _extends({\n style: _extends({\n opacity: 0,\n transform: getScale(0.75),\n visibility: state === 'exited' && !inProp ? 'hidden' : undefined\n }, styles[state], style, children.props.style),\n ref: handleRef\n }, childProps));\n }\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Grow.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Add a custom transition end trigger. Called with the transitioning DOM\n * node and a done callback. Allows for more fine grained transition end\n * logic. Note: Timeouts are still used as a fallback if provided.\n */\n addEndListener: PropTypes.func,\n /**\n * Perform the enter transition when it first mounts if `in` is also `true`.\n * Set this to `false` to disable this behavior.\n * @default true\n */\n appear: PropTypes.bool,\n /**\n * A single child content element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * The transition timing function.\n * You may specify a single easing or a object containing enter and exit values.\n */\n easing: PropTypes.oneOfType([PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string\n }), PropTypes.string]),\n /**\n * If `true`, the component will transition in.\n */\n in: PropTypes.bool,\n /**\n * @ignore\n */\n onEnter: PropTypes.func,\n /**\n * @ignore\n */\n onEntered: PropTypes.func,\n /**\n * @ignore\n */\n onEntering: PropTypes.func,\n /**\n * @ignore\n */\n onExit: PropTypes.func,\n /**\n * @ignore\n */\n onExited: PropTypes.func,\n /**\n * @ignore\n */\n onExiting: PropTypes.func,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n *\n * Set to 'auto' to automatically calculate transition time based on height.\n * @default 'auto'\n */\n timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })])\n} : void 0;\nGrow.muiSupportAuto = true;\nexport default Grow;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"anchorEl\", \"component\", \"components\", \"componentsProps\", \"container\", \"disablePortal\", \"keepMounted\", \"modifiers\", \"open\", \"placement\", \"popperOptions\", \"popperRef\", \"transition\", \"slots\", \"slotProps\"];\nimport { Popper as BasePopper } from '@mui/base/Popper';\nimport { useThemeWithoutDefault as useTheme } from '@mui/system';\nimport { HTMLElementType, refType } from '@mui/utils';\nimport PropTypes from 'prop-types';\nimport * as React from 'react';\nimport { styled, useThemeProps } from '../styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PopperRoot = styled(BasePopper, {\n name: 'MuiPopper',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\n\n/**\n *\n * Demos:\n *\n * - [Autocomplete](https://mui.com/material-ui/react-autocomplete/)\n * - [Menu](https://mui.com/material-ui/react-menu/)\n * - [Popper](https://mui.com/material-ui/react-popper/)\n *\n * API:\n *\n * - [Popper API](https://mui.com/material-ui/api/popper/)\n */\nconst Popper = /*#__PURE__*/React.forwardRef(function Popper(inProps, ref) {\n var _slots$root;\n const theme = useTheme();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPopper'\n });\n const {\n anchorEl,\n component,\n components,\n componentsProps,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;\n const otherProps = _extends({\n anchorEl,\n container,\n disablePortal,\n keepMounted,\n modifiers,\n open,\n placement,\n popperOptions,\n popperRef,\n transition\n }, other);\n return /*#__PURE__*/_jsx(PopperRoot, _extends({\n as: component,\n direction: theme == null ? void 0 : theme.direction,\n slots: {\n root: RootComponent\n },\n slotProps: slotProps != null ? slotProps : componentsProps\n }, otherProps, {\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Popper.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),\n * or a function that returns either.\n * It's used to set the position of the popper.\n * The return value will passed as the reference object of the Popper instance.\n */\n anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),\n /**\n * Popper render function or node.\n */\n children: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.node, PropTypes.func]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * An HTML element or function that returns one.\n * The `container` will have the portal children appended to it.\n *\n * You can also provide a callback, which is called in a React layout effect.\n * This lets you set the container from a ref, and also makes server-side rendering possible.\n *\n * By default, it uses the body of the top-level document object,\n * so it's simply `document.body` most of the time.\n */\n container: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.func]),\n /**\n * The `children` will be under the DOM hierarchy of the parent component.\n * @default false\n */\n disablePortal: PropTypes.bool,\n /**\n * Always keep the children in the DOM.\n * This prop can be useful in SEO situation or\n * when you want to maximize the responsiveness of the Popper.\n * @default false\n */\n keepMounted: PropTypes.bool,\n /**\n * Popper.js is based on a \"plugin-like\" architecture,\n * most of its features are fully encapsulated \"modifiers\".\n *\n * A modifier is a function that is called each time Popper.js needs to\n * compute the position of the popper.\n * For this reason, modifiers should be very performant to avoid bottlenecks.\n * To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).\n */\n modifiers: PropTypes.arrayOf(PropTypes.shape({\n data: PropTypes.object,\n effect: PropTypes.func,\n enabled: PropTypes.bool,\n fn: PropTypes.func,\n name: PropTypes.any,\n options: PropTypes.object,\n phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),\n requires: PropTypes.arrayOf(PropTypes.string),\n requiresIfExists: PropTypes.arrayOf(PropTypes.string)\n })),\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool.isRequired,\n /**\n * Popper placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.\n * @default {}\n */\n popperOptions: PropTypes.shape({\n modifiers: PropTypes.array,\n onFirstUpdate: PropTypes.func,\n placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n strategy: PropTypes.oneOf(['absolute', 'fixed'])\n }),\n /**\n * A ref that points to the used popper instance.\n */\n popperRef: refType,\n /**\n * The props used for each slot inside the Popper.\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside the Popper.\n * Either a string to use a HTML element or a component.\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Help supporting a react-transition-group/Transition component.\n * @default false\n */\n transition: PropTypes.bool\n} : void 0;\nexport default Popper;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTooltipUtilityClass(slot) {\n return generateUtilityClass('MuiTooltip', slot);\n}\nconst tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);\nexport default tooltipClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"arrow\", \"children\", \"classes\", \"components\", \"componentsProps\", \"describeChild\", \"disableFocusListener\", \"disableHoverListener\", \"disableInteractive\", \"disableTouchListener\", \"enterDelay\", \"enterNextDelay\", \"enterTouchDelay\", \"followCursor\", \"id\", \"leaveDelay\", \"leaveTouchDelay\", \"onClose\", \"onOpen\", \"open\", \"placement\", \"PopperComponent\", \"PopperProps\", \"slotProps\", \"slots\", \"title\", \"TransitionComponent\", \"TransitionProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { elementAcceptingRef, unstable_useTimeout as useTimeout, unstable_Timeout as Timeout } from '@mui/utils';\nimport { unstable_composeClasses as composeClasses, appendOwnerState } from '@mui/base';\nimport { alpha } from '@mui/system';\nimport styled from '../styles/styled';\nimport useTheme from '../styles/useTheme';\nimport useThemeProps from '../styles/useThemeProps';\nimport capitalize from '../utils/capitalize';\nimport Grow from '../Grow';\nimport Popper from '../Popper';\nimport useEventCallback from '../utils/useEventCallback';\nimport useForkRef from '../utils/useForkRef';\nimport useId from '../utils/useId';\nimport useIsFocusVisible from '../utils/useIsFocusVisible';\nimport useControlled from '../utils/useControlled';\nimport tooltipClasses, { getTooltipUtilityClass } from './tooltipClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableInteractive,\n arrow,\n touch,\n placement\n } = ownerState;\n const slots = {\n popper: ['popper', !disableInteractive && 'popperInteractive', arrow && 'popperArrow'],\n tooltip: ['tooltip', arrow && 'tooltipArrow', touch && 'touch', `tooltipPlacement${capitalize(placement.split('-')[0])}`],\n arrow: ['arrow']\n };\n return composeClasses(slots, getTooltipUtilityClass, classes);\n};\nconst TooltipPopper = styled(Popper, {\n name: 'MuiTooltip',\n slot: 'Popper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.popper, !ownerState.disableInteractive && styles.popperInteractive, ownerState.arrow && styles.popperArrow, !ownerState.open && styles.popperClose];\n }\n})(({\n theme,\n ownerState,\n open\n}) => _extends({\n zIndex: (theme.vars || theme).zIndex.tooltip,\n pointerEvents: 'none'\n}, !ownerState.disableInteractive && {\n pointerEvents: 'auto'\n}, !open && {\n pointerEvents: 'none'\n}, ownerState.arrow && {\n [`&[data-popper-placement*=\"bottom\"] .${tooltipClasses.arrow}`]: {\n top: 0,\n marginTop: '-0.71em',\n '&::before': {\n transformOrigin: '0 100%'\n }\n },\n [`&[data-popper-placement*=\"top\"] .${tooltipClasses.arrow}`]: {\n bottom: 0,\n marginBottom: '-0.71em',\n '&::before': {\n transformOrigin: '100% 0'\n }\n },\n [`&[data-popper-placement*=\"right\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n left: 0,\n marginLeft: '-0.71em'\n } : {\n right: 0,\n marginRight: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '100% 100%'\n }\n }),\n [`&[data-popper-placement*=\"left\"] .${tooltipClasses.arrow}`]: _extends({}, !ownerState.isRtl ? {\n right: 0,\n marginRight: '-0.71em'\n } : {\n left: 0,\n marginLeft: '-0.71em'\n }, {\n height: '1em',\n width: '0.71em',\n '&::before': {\n transformOrigin: '0 0'\n }\n })\n}));\nconst TooltipTooltip = styled('div', {\n name: 'MuiTooltip',\n slot: 'Tooltip',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.tooltip, ownerState.touch && styles.touch, ownerState.arrow && styles.tooltipArrow, styles[`tooltipPlacement${capitalize(ownerState.placement.split('-')[0])}`]];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n backgroundColor: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.92),\n borderRadius: (theme.vars || theme).shape.borderRadius,\n color: (theme.vars || theme).palette.common.white,\n fontFamily: theme.typography.fontFamily,\n padding: '4px 8px',\n fontSize: theme.typography.pxToRem(11),\n maxWidth: 300,\n margin: 2,\n wordWrap: 'break-word',\n fontWeight: theme.typography.fontWeightMedium\n}, ownerState.arrow && {\n position: 'relative',\n margin: 0\n}, ownerState.touch && {\n padding: '8px 16px',\n fontSize: theme.typography.pxToRem(14),\n lineHeight: `${round(16 / 14)}em`,\n fontWeight: theme.typography.fontWeightRegular\n}, {\n [`.${tooltipClasses.popper}[data-popper-placement*=\"left\"] &`]: _extends({\n transformOrigin: 'right center'\n }, !ownerState.isRtl ? _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n }) : _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"right\"] &`]: _extends({\n transformOrigin: 'left center'\n }, !ownerState.isRtl ? _extends({\n marginLeft: '14px'\n }, ownerState.touch && {\n marginLeft: '24px'\n }) : _extends({\n marginRight: '14px'\n }, ownerState.touch && {\n marginRight: '24px'\n })),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"top\"] &`]: _extends({\n transformOrigin: 'center bottom',\n marginBottom: '14px'\n }, ownerState.touch && {\n marginBottom: '24px'\n }),\n [`.${tooltipClasses.popper}[data-popper-placement*=\"bottom\"] &`]: _extends({\n transformOrigin: 'center top',\n marginTop: '14px'\n }, ownerState.touch && {\n marginTop: '24px'\n })\n}));\nconst TooltipArrow = styled('span', {\n name: 'MuiTooltip',\n slot: 'Arrow',\n overridesResolver: (props, styles) => styles.arrow\n})(({\n theme\n}) => ({\n overflow: 'hidden',\n position: 'absolute',\n width: '1em',\n height: '0.71em' /* = width / sqrt(2) = (length of the hypotenuse) */,\n boxSizing: 'border-box',\n color: theme.vars ? theme.vars.palette.Tooltip.bg : alpha(theme.palette.grey[700], 0.9),\n '&::before': {\n content: '\"\"',\n margin: 'auto',\n display: 'block',\n width: '100%',\n height: '100%',\n backgroundColor: 'currentColor',\n transform: 'rotate(45deg)'\n }\n}));\nlet hystersisOpen = false;\nconst hystersisTimer = new Timeout();\nlet cursorPosition = {\n x: 0,\n y: 0\n};\nexport function testReset() {\n hystersisOpen = false;\n hystersisTimer.clear();\n}\nfunction composeEventHandler(handler, eventHandler) {\n return event => {\n if (eventHandler) {\n eventHandler(event);\n }\n handler(event);\n };\n}\n\n// TODO v6: Remove PopperComponent, PopperProps, TransitionComponent and TransitionProps.\nconst Tooltip = /*#__PURE__*/React.forwardRef(function Tooltip(inProps, ref) {\n var _ref, _slots$popper, _ref2, _ref3, _slots$transition, _ref4, _slots$tooltip, _ref5, _slots$arrow, _slotProps$popper, _ref6, _slotProps$popper2, _slotProps$transition, _slotProps$tooltip, _ref7, _slotProps$tooltip2, _slotProps$arrow, _ref8, _slotProps$arrow2;\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTooltip'\n });\n const {\n arrow = false,\n children: childrenProp,\n components = {},\n componentsProps = {},\n describeChild = false,\n disableFocusListener = false,\n disableHoverListener = false,\n disableInteractive: disableInteractiveProp = false,\n disableTouchListener = false,\n enterDelay = 100,\n enterNextDelay = 0,\n enterTouchDelay = 700,\n followCursor = false,\n id: idProp,\n leaveDelay = 0,\n leaveTouchDelay = 1500,\n onClose,\n onOpen,\n open: openProp,\n placement = 'bottom',\n PopperComponent: PopperComponentProp,\n PopperProps = {},\n slotProps = {},\n slots = {},\n title,\n TransitionComponent: TransitionComponentProp = Grow,\n TransitionProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // to prevent runtime errors, developers will need to provide a child as a React element anyway.\n const children = /*#__PURE__*/React.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/_jsx(\"span\", {\n children: childrenProp\n });\n const theme = useTheme();\n const isRtl = theme.direction === 'rtl';\n const [childNode, setChildNode] = React.useState();\n const [arrowRef, setArrowRef] = React.useState(null);\n const ignoreNonTouchEvents = React.useRef(false);\n const disableInteractive = disableInteractiveProp || followCursor;\n const closeTimer = useTimeout();\n const enterTimer = useTimeout();\n const leaveTimer = useTimeout();\n const touchTimer = useTimeout();\n const [openState, setOpenState] = useControlled({\n controlled: openProp,\n default: false,\n name: 'Tooltip',\n state: 'open'\n });\n let open = openState;\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const {\n current: isControlled\n } = React.useRef(openProp !== undefined);\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && childNode.disabled && !isControlled && title !== '' && childNode.tagName.toLowerCase() === 'button') {\n console.error(['MUI: You are providing a disabled `button` child to the Tooltip component.', 'A disabled element does not fire events.', \"Tooltip needs to listen to the child element's events to display the title.\", '', 'Add a simple wrapper element, such as a `span`.'].join('\\n'));\n }\n }, [title, childNode, isControlled]);\n }\n const id = useId(idProp);\n const prevUserSelect = React.useRef();\n const stopTouchInteraction = useEventCallback(() => {\n if (prevUserSelect.current !== undefined) {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n prevUserSelect.current = undefined;\n }\n touchTimer.clear();\n });\n React.useEffect(() => stopTouchInteraction, [stopTouchInteraction]);\n const handleOpen = event => {\n hystersisTimer.clear();\n hystersisOpen = true;\n\n // The mouseover event will trigger for every nested element in the tooltip.\n // We can skip rerendering when the tooltip is already open.\n // We are using the mouseover event instead of the mouseenter event to fix a hide/show issue.\n setOpenState(true);\n if (onOpen && !open) {\n onOpen(event);\n }\n };\n const handleClose = useEventCallback(\n /**\n * @param {React.SyntheticEvent | Event} event\n */\n event => {\n hystersisTimer.start(800 + leaveDelay, () => {\n hystersisOpen = false;\n });\n setOpenState(false);\n if (onClose && open) {\n onClose(event);\n }\n closeTimer.start(theme.transitions.duration.shortest, () => {\n ignoreNonTouchEvents.current = false;\n });\n });\n const handleEnter = event => {\n if (ignoreNonTouchEvents.current && event.type !== 'touchstart') {\n return;\n }\n\n // Remove the title ahead of time.\n // We don't want to wait for the next render commit.\n // We would risk displaying two tooltips at the same time (native + this one).\n if (childNode) {\n childNode.removeAttribute('title');\n }\n enterTimer.clear();\n leaveTimer.clear();\n if (enterDelay || hystersisOpen && enterNextDelay) {\n enterTimer.start(hystersisOpen ? enterNextDelay : enterDelay, () => {\n handleOpen(event);\n });\n } else {\n handleOpen(event);\n }\n };\n const handleLeave = event => {\n enterTimer.clear();\n leaveTimer.start(leaveDelay, () => {\n handleClose(event);\n });\n };\n const {\n isFocusVisibleRef,\n onBlur: handleBlurVisible,\n onFocus: handleFocusVisible,\n ref: focusVisibleRef\n } = useIsFocusVisible();\n // We don't necessarily care about the focusVisible state (which is safe to access via ref anyway).\n // We just need to re-render the Tooltip if the focus-visible state changes.\n const [, setChildIsFocusVisible] = React.useState(false);\n const handleBlur = event => {\n handleBlurVisible(event);\n if (isFocusVisibleRef.current === false) {\n setChildIsFocusVisible(false);\n handleLeave(event);\n }\n };\n const handleFocus = event => {\n // Workaround for https://github.com/facebook/react/issues/7769\n // The autoFocus of React might trigger the event before the componentDidMount.\n // We need to account for this eventuality.\n if (!childNode) {\n setChildNode(event.currentTarget);\n }\n handleFocusVisible(event);\n if (isFocusVisibleRef.current === true) {\n setChildIsFocusVisible(true);\n handleEnter(event);\n }\n };\n const detectTouchStart = event => {\n ignoreNonTouchEvents.current = true;\n const childrenProps = children.props;\n if (childrenProps.onTouchStart) {\n childrenProps.onTouchStart(event);\n }\n };\n const handleMouseOver = handleEnter;\n const handleMouseLeave = handleLeave;\n const handleTouchStart = event => {\n detectTouchStart(event);\n leaveTimer.clear();\n closeTimer.clear();\n stopTouchInteraction();\n prevUserSelect.current = document.body.style.WebkitUserSelect;\n // Prevent iOS text selection on long-tap.\n document.body.style.WebkitUserSelect = 'none';\n touchTimer.start(enterTouchDelay, () => {\n document.body.style.WebkitUserSelect = prevUserSelect.current;\n handleEnter(event);\n });\n };\n const handleTouchEnd = event => {\n if (children.props.onTouchEnd) {\n children.props.onTouchEnd(event);\n }\n stopTouchInteraction();\n leaveTimer.start(leaveTouchDelay, () => {\n handleClose(event);\n });\n };\n React.useEffect(() => {\n if (!open) {\n return undefined;\n }\n\n /**\n * @param {KeyboardEvent} nativeEvent\n */\n function handleKeyDown(nativeEvent) {\n // IE11, Edge (prior to using Bink?) use 'Esc'\n if (nativeEvent.key === 'Escape' || nativeEvent.key === 'Esc') {\n handleClose(nativeEvent);\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [handleClose, open]);\n const handleRef = useForkRef(children.ref, focusVisibleRef, setChildNode, ref);\n\n // There is no point in displaying an empty tooltip.\n // So we exclude all falsy values, except 0, which is valid.\n if (!title && title !== 0) {\n open = false;\n }\n const popperRef = React.useRef();\n const handleMouseMove = event => {\n const childrenProps = children.props;\n if (childrenProps.onMouseMove) {\n childrenProps.onMouseMove(event);\n }\n cursorPosition = {\n x: event.clientX,\n y: event.clientY\n };\n if (popperRef.current) {\n popperRef.current.update();\n }\n };\n const nameOrDescProps = {};\n const titleIsString = typeof title === 'string';\n if (describeChild) {\n nameOrDescProps.title = !open && titleIsString && !disableHoverListener ? title : null;\n nameOrDescProps['aria-describedby'] = open ? id : null;\n } else {\n nameOrDescProps['aria-label'] = titleIsString ? title : null;\n nameOrDescProps['aria-labelledby'] = open && !titleIsString ? id : null;\n }\n const childrenProps = _extends({}, nameOrDescProps, other, children.props, {\n className: clsx(other.className, children.props.className),\n onTouchStart: detectTouchStart,\n ref: handleRef\n }, followCursor ? {\n onMouseMove: handleMouseMove\n } : {});\n if (process.env.NODE_ENV !== 'production') {\n childrenProps['data-mui-internal-clone-element'] = true;\n\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useEffect(() => {\n if (childNode && !childNode.getAttribute('data-mui-internal-clone-element')) {\n console.error(['MUI: The `children` component of the Tooltip is not forwarding its props correctly.', 'Please make sure that props are spread on the same element that the ref is applied to.'].join('\\n'));\n }\n }, [childNode]);\n }\n const interactiveWrapperListeners = {};\n if (!disableTouchListener) {\n childrenProps.onTouchStart = handleTouchStart;\n childrenProps.onTouchEnd = handleTouchEnd;\n }\n if (!disableHoverListener) {\n childrenProps.onMouseOver = composeEventHandler(handleMouseOver, childrenProps.onMouseOver);\n childrenProps.onMouseLeave = composeEventHandler(handleMouseLeave, childrenProps.onMouseLeave);\n if (!disableInteractive) {\n interactiveWrapperListeners.onMouseOver = handleMouseOver;\n interactiveWrapperListeners.onMouseLeave = handleMouseLeave;\n }\n }\n if (!disableFocusListener) {\n childrenProps.onFocus = composeEventHandler(handleFocus, childrenProps.onFocus);\n childrenProps.onBlur = composeEventHandler(handleBlur, childrenProps.onBlur);\n if (!disableInteractive) {\n interactiveWrapperListeners.onFocus = handleFocus;\n interactiveWrapperListeners.onBlur = handleBlur;\n }\n }\n if (process.env.NODE_ENV !== 'production') {\n if (children.props.title) {\n console.error(['MUI: You have provided a `title` prop to the child of .', `Remove this title prop \\`${children.props.title}\\` or the Tooltip component.`].join('\\n'));\n }\n }\n const popperOptions = React.useMemo(() => {\n var _PopperProps$popperOp;\n let tooltipModifiers = [{\n name: 'arrow',\n enabled: Boolean(arrowRef),\n options: {\n element: arrowRef,\n padding: 4\n }\n }];\n if ((_PopperProps$popperOp = PopperProps.popperOptions) != null && _PopperProps$popperOp.modifiers) {\n tooltipModifiers = tooltipModifiers.concat(PopperProps.popperOptions.modifiers);\n }\n return _extends({}, PopperProps.popperOptions, {\n modifiers: tooltipModifiers\n });\n }, [arrowRef, PopperProps]);\n const ownerState = _extends({}, props, {\n isRtl,\n arrow,\n disableInteractive,\n placement,\n PopperComponentProp,\n touch: ignoreNonTouchEvents.current\n });\n const classes = useUtilityClasses(ownerState);\n const PopperComponent = (_ref = (_slots$popper = slots.popper) != null ? _slots$popper : components.Popper) != null ? _ref : TooltipPopper;\n const TransitionComponent = (_ref2 = (_ref3 = (_slots$transition = slots.transition) != null ? _slots$transition : components.Transition) != null ? _ref3 : TransitionComponentProp) != null ? _ref2 : Grow;\n const TooltipComponent = (_ref4 = (_slots$tooltip = slots.tooltip) != null ? _slots$tooltip : components.Tooltip) != null ? _ref4 : TooltipTooltip;\n const ArrowComponent = (_ref5 = (_slots$arrow = slots.arrow) != null ? _slots$arrow : components.Arrow) != null ? _ref5 : TooltipArrow;\n const popperProps = appendOwnerState(PopperComponent, _extends({}, PopperProps, (_slotProps$popper = slotProps.popper) != null ? _slotProps$popper : componentsProps.popper, {\n className: clsx(classes.popper, PopperProps == null ? void 0 : PopperProps.className, (_ref6 = (_slotProps$popper2 = slotProps.popper) != null ? _slotProps$popper2 : componentsProps.popper) == null ? void 0 : _ref6.className)\n }), ownerState);\n const transitionProps = appendOwnerState(TransitionComponent, _extends({}, TransitionProps, (_slotProps$transition = slotProps.transition) != null ? _slotProps$transition : componentsProps.transition), ownerState);\n const tooltipProps = appendOwnerState(TooltipComponent, _extends({}, (_slotProps$tooltip = slotProps.tooltip) != null ? _slotProps$tooltip : componentsProps.tooltip, {\n className: clsx(classes.tooltip, (_ref7 = (_slotProps$tooltip2 = slotProps.tooltip) != null ? _slotProps$tooltip2 : componentsProps.tooltip) == null ? void 0 : _ref7.className)\n }), ownerState);\n const tooltipArrowProps = appendOwnerState(ArrowComponent, _extends({}, (_slotProps$arrow = slotProps.arrow) != null ? _slotProps$arrow : componentsProps.arrow, {\n className: clsx(classes.arrow, (_ref8 = (_slotProps$arrow2 = slotProps.arrow) != null ? _slotProps$arrow2 : componentsProps.arrow) == null ? void 0 : _ref8.className)\n }), ownerState);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/React.cloneElement(children, childrenProps), /*#__PURE__*/_jsx(PopperComponent, _extends({\n as: PopperComponentProp != null ? PopperComponentProp : Popper,\n placement: placement,\n anchorEl: followCursor ? {\n getBoundingClientRect: () => ({\n top: cursorPosition.y,\n left: cursorPosition.x,\n right: cursorPosition.x,\n bottom: cursorPosition.y,\n width: 0,\n height: 0\n })\n } : childNode,\n popperRef: popperRef,\n open: childNode ? open : false,\n id: id,\n transition: true\n }, interactiveWrapperListeners, popperProps, {\n popperOptions: popperOptions,\n children: ({\n TransitionProps: TransitionPropsInner\n }) => /*#__PURE__*/_jsx(TransitionComponent, _extends({\n timeout: theme.transitions.duration.shorter\n }, TransitionPropsInner, transitionProps, {\n children: /*#__PURE__*/_jsxs(TooltipComponent, _extends({}, tooltipProps, {\n children: [title, arrow ? /*#__PURE__*/_jsx(ArrowComponent, _extends({}, tooltipArrowProps, {\n ref: setArrowRef\n })) : null]\n }))\n }))\n }))]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Tooltip.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, adds an arrow to the tooltip.\n * @default false\n */\n arrow: PropTypes.bool,\n /**\n * Tooltip reference element.\n */\n children: elementAcceptingRef.isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `slots` prop.\n * It's recommended to use the `slots` prop instead.\n *\n * @default {}\n */\n components: PropTypes.shape({\n Arrow: PropTypes.elementType,\n Popper: PropTypes.elementType,\n Tooltip: PropTypes.elementType,\n Transition: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `slotProps` prop.\n * It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.\n *\n * @default {}\n */\n componentsProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * Set to `true` if the `title` acts as an accessible description.\n * By default the `title` acts as an accessible label for the child.\n * @default false\n */\n describeChild: PropTypes.bool,\n /**\n * Do not respond to focus-visible events.\n * @default false\n */\n disableFocusListener: PropTypes.bool,\n /**\n * Do not respond to hover events.\n * @default false\n */\n disableHoverListener: PropTypes.bool,\n /**\n * Makes a tooltip not interactive, i.e. it will close when the user\n * hovers over the tooltip before the `leaveDelay` is expired.\n * @default false\n */\n disableInteractive: PropTypes.bool,\n /**\n * Do not respond to long press touch events.\n * @default false\n */\n disableTouchListener: PropTypes.bool,\n /**\n * The number of milliseconds to wait before showing the tooltip.\n * This prop won't impact the enter touch delay (`enterTouchDelay`).\n * @default 100\n */\n enterDelay: PropTypes.number,\n /**\n * The number of milliseconds to wait before showing the tooltip when one was already recently opened.\n * @default 0\n */\n enterNextDelay: PropTypes.number,\n /**\n * The number of milliseconds a user must touch the element before showing the tooltip.\n * @default 700\n */\n enterTouchDelay: PropTypes.number,\n /**\n * If `true`, the tooltip follow the cursor over the wrapped element.\n * @default false\n */\n followCursor: PropTypes.bool,\n /**\n * This prop is used to help implement the accessibility logic.\n * If you don't provide this prop. It falls back to a randomly generated id.\n */\n id: PropTypes.string,\n /**\n * The number of milliseconds to wait before hiding the tooltip.\n * This prop won't impact the leave touch delay (`leaveTouchDelay`).\n * @default 0\n */\n leaveDelay: PropTypes.number,\n /**\n * The number of milliseconds after the user stops touching an element before hiding the tooltip.\n * @default 1500\n */\n leaveTouchDelay: PropTypes.number,\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the component requests to be open.\n *\n * @param {React.SyntheticEvent} event The event source of the callback.\n */\n onOpen: PropTypes.func,\n /**\n * If `true`, the component is shown.\n */\n open: PropTypes.bool,\n /**\n * Tooltip placement.\n * @default 'bottom'\n */\n placement: PropTypes.oneOf(['bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),\n /**\n * The component used for the popper.\n * @default Popper\n */\n PopperComponent: PropTypes.elementType,\n /**\n * Props applied to the [`Popper`](/material-ui/api/popper/) element.\n * @default {}\n */\n PopperProps: PropTypes.object,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n arrow: PropTypes.object,\n popper: PropTypes.object,\n tooltip: PropTypes.object,\n transition: PropTypes.object\n }),\n /**\n * The components used for each slot inside.\n *\n * This prop is an alias for the `components` prop, which will be deprecated in the future.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n arrow: PropTypes.elementType,\n popper: PropTypes.elementType,\n tooltip: PropTypes.elementType,\n transition: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Tooltip title. Zero-length titles string, undefined, null and false are never displayed.\n */\n title: PropTypes.node,\n /**\n * The component used for the transition.\n * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.\n * @default Grow\n */\n TransitionComponent: PropTypes.elementType,\n /**\n * Props applied to the transition element.\n * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.\n */\n TransitionProps: PropTypes.object\n} : void 0;\nexport default Tooltip;","import '@/components/mui/menu-item.component.css';\nimport ArrowRightIcon from '@mui/icons-material/ArrowRight';\nimport {\n ListItemIcon as MuiListItemIcon,\n ListItemText as MuiListItemText,\n MenuItem as MuiMenuItem,\n} from '@mui/material';\nimport Tooltip from '@mui/material/Tooltip';\nimport { Localized, ReferencedItem, SingleColumnMenu } from 'platform-bible-utils';\nimport { MouseEvent, PropsWithChildren } from 'react';\n\ntype MenuItemInfoBase = {\n /** Text (displayable in the UI) as the name of the menu item */\n label: string;\n /** Text to display when the mouse hovers over the menu item */\n tooltip?: string;\n};\n\nexport type Command = MenuItemInfoBase & {\n /** Command to execute (string.string) */\n command: string;\n};\n\ntype SubMenu = MenuItemInfoBase & {\n /** Command to execute (string.string) */\n items: MenuItemInfo[];\n};\n\nexport interface CommandHandler {\n (command: Command): void;\n}\n\nexport type MenuPropsBase = {\n /*\n * The JSON defining the menu whose items are to be rendered. This will typically be one of the\n * menus in the \"defs\" in a Platform.Bible menu (see PlatformMenus). The schema for this is\n * menuDocumentSchema (at the end of menus.model.ts). Note that while this is a\n * \"SingleColumnMenu\", somewhat bizarrely, a MultiColumnMenu is a SingleColumnMenu, so it really\n * could be a MultiColumnMenu, in which case, column had better be defined so it can be used\n * to filter out the actual groups and items to display on the column.\n */\n menuDefinition: Localized;\n\n commandHandler: CommandHandler;\n\n /**\n * Additional action to perform when any menu item is clicked. Allows the caller to handle event\n * (e.g., to close the menu).\n */\n onClick?: (event: MouseEvent) => void;\n};\n\nexport type MenuItemListProps = MenuPropsBase & {\n /** Optional unique (column) identifier */\n columnId?: ReferencedItem;\n};\n\nexport type MenuItemProps = Omit &\n PropsWithChildren<{\n /** Optional unique identifier */\n id?: string;\n\n onClick: (event: MouseEvent) => void;\n }>;\n\ntype MenuItemInfo = (Command | SubMenu) & {\n /**\n * If specified, menu item will be inset if it does not have a leading icon.\n *\n * @default true\n */\n allowForLeadingIcons?: boolean;\n /**\n * If specified, the path to the icon image to display on the leading side of the menu text.\n *\n * @default undefined (no leading icon will be shown)\n */\n iconPathBefore?: string;\n /**\n * If specified, the path to the icon image to display on the trailing side of the menu text.\n *\n * @default undefined (no trailing icon will be shown)\n */\n iconPathAfter?: string;\n /**\n * If true, list item is focused during the first mount\n *\n * @default false\n */\n hasAutoFocus?: boolean;\n\n /** Additional css classes to help with unique styling of the menu item */\n className?: string;\n\n /**\n * If true, the menu item will appear disabled and it will not respond to clicks or mouse hovers.\n *\n * @default false\n */\n isDisabled?: boolean;\n\n /**\n * If true, compact vertical padding designed for keyboard and mouse input is used.\n *\n * @default true\n */\n isDense?: boolean;\n\n /**\n * If true, a right-arrow icon will be displayed (iconPathAfter, if specified, will be ignored).\n *\n * @default false\n */\n isSubMenuParent?: boolean;\n\n /**\n * If true, the left and right padding is removed\n *\n * @default false\n */\n hasDisabledGutters?: boolean;\n\n /**\n * If true, a 1px light border is added to bottom of menu item\n *\n * @default false\n */\n hasDivider?: boolean;\n\n /** Help identify which element has keyboard focus */\n focusVisibleClassName?: string;\n\n /** If it's a submenu, it should have the items property */\n items?: MenuItemInfo[];\n};\n\nfunction getIcon(icon: string | undefined, menuLabel: string, leading: boolean) {\n return icon ? (\n \n {`${leading\n \n ) : undefined;\n}\n\nexport default function MenuItem(props: MenuItemProps) {\n const {\n onClick,\n label,\n tooltip,\n allowForLeadingIcons = true,\n iconPathBefore = undefined,\n iconPathAfter = undefined,\n hasAutoFocus = false,\n className,\n isDisabled = false,\n isDense = true,\n isSubMenuParent = false,\n hasDisabledGutters = false,\n hasDivider = false,\n focusVisibleClassName,\n id,\n children,\n } = props;\n\n const menuItem = (\n \n {label ? (\n <>\n {getIcon(iconPathBefore, label, true)}\n \n {isSubMenuParent ? (\n \n \n \n ) : (\n getIcon(iconPathAfter, label, false)\n )}\n \n ) : (\n children\n )}\n \n );\n\n return tooltip ? (\n \n
    {menuItem}
    \n
    \n ) : (\n menuItem\n );\n}\n","import MenuItem, {\n MenuItemListProps,\n MenuItemProps,\n MenuPropsBase,\n} from '@/components/mui/menu-item.component';\nimport { Menu } from '@mui/material';\nimport {\n Localized,\n MenuGroupDetailsInSubMenu,\n MenuItemContainingCommand,\n MenuItemContainingSubmenu,\n OrderedExtensibleContainer,\n ReferencedItem,\n SingleColumnMenu,\n} from 'platform-bible-utils';\nimport { MouseEvent, useMemo, useState } from 'react';\n\n/**\n * All the exported types in this file should be regarded as \"internal\" (i.e., they should not be\n * exposed via index.ts).\n */\n\nexport type GroupedMenuPropsBase = MenuPropsBase & {\n /** Optional unique (column) identifier */\n columnId?: ReferencedItem;\n};\n\nexport type GroupedMenuItemListProps = MenuItemListProps & {\n /**\n * If the menuDefinition includes \"top-level\" groups (i.e., those that belong to a column as\n * opposed to those that belong to a submenu) that should not be included in the list, then this\n * array specifies which groups to include. Likewise, for a submenu, this list indicates which\n * groups are pertinent for that submenu. So then for a context menu this property need not be\n * specified since it is a top-level menu based on a \"true\" SingleColumnMenu (i.e., one that is\n * not a MultiColumnMenu).\n */\n includedGroups?: {\n id: string;\n group: Localized;\n }[];\n};\n\ninterface ItemInfo {\n item: Localized;\n isLastItemInGroup: boolean;\n}\n\ntype SubMenuProps = MenuPropsBase & {\n parentMenuItem: Localized;\n parentItemProps: Omit, 'iconPathAfter'>;\n};\n\nfunction getAllGroups(menuDefinition: Localized) {\n const groupEntries = Object.entries(menuDefinition.groups);\n // Convert array of entries to array of objects with id and group properties\n return groupEntries.map(([key, value]) => ({ id: key, group: value }));\n}\n\nfunction SubMenu(props: SubMenuProps) {\n const [anchorEl, setAnchorEl] = useState(undefined);\n\n const { parentMenuItem, parentItemProps, menuDefinition } = props;\n\n const handleParentMenuItemClick = (event: MouseEvent) => {\n setAnchorEl(event.currentTarget);\n };\n\n const handleClose = () => {\n setAnchorEl(undefined);\n };\n\n const renderSubMenuItems = () => {\n let includedGroups = getAllGroups(menuDefinition).filter((g) => 'menuItem' in g.group);\n\n // Ensure valid parent menu was provided. (If not, submenu will contain all groups!)\n if (!parentMenuItem?.id) throw new Error('A valid parent menu item is required for submenus.');\n\n // When laying out a submenu, only include groups associated with the provided parent menu.\n // Note: without the (annoying) redundant check that the included groups\n // have the menuItem field, TS doesn't think it exists.\n includedGroups = includedGroups.filter(\n (group) => 'menuItem' in group.group && group.group.menuItem === parentMenuItem.id,\n );\n\n return ;\n };\n\n return (\n <>\n \n \n {renderSubMenuItems()}\n \n \n );\n}\n\nconst getOrderedGroupItems = (\n groupId: string,\n allItems: Localized[],\n) => {\n // Filter items that belong to the specified group\n const itemsForGroup = allItems.filter((item) => item.group === groupId);\n // Sort items based on order\n const sortedItems = itemsForGroup.sort((a, b) => (a.order || 0) - (b.order || 0));\n return sortedItems;\n};\n\n/**\n * This component is internal; it does not need to be exposed to the outside world since it is not\n * useful on its own. It is used to generate and lay out the MenuItems that appear either on a\n * top-level menu (in a GridMenu or ContextMenu) or in a submenu.\n */\nexport default function GroupedMenuItemList(menuProps: GroupedMenuItemListProps) {\n const { menuDefinition, onClick, commandHandler, includedGroups } = menuProps;\n\n const { items, allowForLeadingIcons } = useMemo(() => {\n const groupsToInclude =\n includedGroups && includedGroups.length > 0\n ? includedGroups\n : // We're apparently laying out a single-column menu (presumably a context menu). In this\n // case, all groups should be included except ones that belong to a submenu.\n getAllGroups(menuDefinition).filter((g) => !('menuItem' in g.group));\n\n const sortedGroups = Object.values(groupsToInclude).sort(\n (a, b) => (a.group.order || 0) - (b.group.order || 0),\n );\n\n const itemArray: ItemInfo[] = [];\n\n sortedGroups.forEach((group) => {\n getOrderedGroupItems(group.id, menuDefinition.items).forEach((item) =>\n itemArray.push({ item, isLastItemInGroup: false }),\n );\n if (itemArray.length > 0) itemArray[itemArray.length - 1].isLastItemInGroup = true;\n });\n\n // No divider after last item in final group.\n if (itemArray.length > 0) itemArray[itemArray.length - 1].isLastItemInGroup = false;\n\n const allowSpaceForLeadingIcons = itemArray.some(\n (i) => 'iconPathBefore' in i.item && i.item.iconPathBefore,\n );\n\n return { items: itemArray, allowForLeadingIcons: allowSpaceForLeadingIcons };\n }, [includedGroups, menuDefinition]);\n\n // Create props for MenuItem component including setting hasDivider for the last item in a group\n const createMenuItemProps = ({ item, isLastItemInGroup }: ItemInfo) => {\n const menuItemProps = {\n className: 'papi-menu-item',\n label: item.label,\n tooltip: item.tooltip,\n iconPathBefore: 'iconPathBefore' in item ? item.iconPathBefore : undefined,\n iconPathAfter: 'iconPathAfter' in item ? item.iconPathAfter : undefined,\n hasDivider: isLastItemInGroup, // Set hasDivider to true for the last item in a group\n allowForLeadingIcons,\n };\n\n return menuItemProps;\n };\n\n const [firstItem] = items;\n\n if (!firstItem) return
    ;\n\n const divKey = firstItem.item.group;\n\n return (\n
    \n {items.map((itemInfo, index) => {\n const { item } = itemInfo;\n const menuItemProps = createMenuItemProps(itemInfo);\n if ('command' in item) {\n const key = item.group + index;\n return (\n ) => {\n onClick?.(event);\n commandHandler(item);\n }}\n {...menuItemProps}\n />\n );\n }\n return (\n \n );\n })}\n
    \n );\n}\n","import GroupedMenuItemList from '@/components/mui/grouped-menu-item-list.component';\nimport { MenuItemListProps } from '@/components/mui/menu-item.component';\nimport { MultiColumnMenu } from 'platform-bible-utils';\n\n/**\n * This component is internal; it does not need to be exposed to the outside world since it is not\n * useful on its own. Use either GridMenu or ContextMenu.\n */\nexport default function TopLevelMenu(props: MenuItemListProps) {\n const { menuDefinition, columnId } = props;\n\n const groupEntries = Object.entries(menuDefinition.groups);\n // Convert array of entries to array of objects with id and group properties\n const groups = groupEntries.map(([key, value]) => ({ id: key, group: value }));\n let includedGroups = groups.filter((g) => 'column' in g.group);\n\n // Check if column is provided and menuDefinition is a MultiColumnMenu\n if (\n columnId &&\n 'columns' in menuDefinition &&\n // Without this type assertion, TS doesn't know what columns is.\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n (menuDefinition as MultiColumnMenu).columns[columnId]\n ) {\n // When laying out a single column in a MultiColumnMenu, only include groups associated with\n // the provided column. Note: without the (annoying) redundant check that the included groups\n // have the colum field, TS doesn't think it exists.\n includedGroups = includedGroups.filter(\n (g) => 'column' in g.group && g.group.column === columnId,\n );\n }\n\n return ;\n}\n","import '@/components/mui/grid-menu.component.css';\nimport { GroupedMenuPropsBase } from '@/components/mui/grouped-menu-item-list.component';\nimport { CommandHandler } from '@/components/mui/menu-item.component';\nimport TopLevelMenu from '@/components/mui/top-level-menu.component';\nimport { Grid, List } from '@mui/material';\nimport {\n Localized,\n MenuColumnWithHeader,\n MultiColumnMenu,\n ReferencedItem,\n} from 'platform-bible-utils';\nimport { useMemo } from 'react';\n\ntype ColumnInfo = {\n /*\n * The ID (`${string}.${string}`) of a specific menu column.\n */\n id: ReferencedItem;\n\n /*\n * Metadata (label, order, etc.) for a specific menu column.\n */\n metadata: Localized;\n};\n\ntype MenuColumnProps = ColumnInfo &\n GroupedMenuPropsBase & {\n /** Additional css classes to help with unique styling of the menu column */\n className?: string;\n };\n\nexport type GridMenuInfo = {\n /** The menu object containing information about the columns, groups, and items to display. */\n multiColumnMenu: Localized;\n};\n\nexport type GridMenuProps = GridMenuInfo & {\n /** Optional unique identifier */\n id?: string;\n\n commandHandler: CommandHandler;\n\n /** Additional css classes to help with unique styling of the grid menu */\n className?: string;\n};\n\nfunction MenuColumn({\n commandHandler,\n menuDefinition,\n id,\n metadata,\n onClick,\n className,\n}: MenuColumnProps) {\n return (\n \n

    \n {metadata.label}\n

    \n {/* It would seem as though this List component were unnecessary, since it only contains one\n thing, but the \"dense\" property does affect the layout of the items (in a way I don't fully\n understand). There might be a better way. */}\n \n \n \n \n );\n}\n\nexport default function GridMenu({\n commandHandler,\n className,\n multiColumnMenu,\n id,\n}: GridMenuProps) {\n const { columns } = multiColumnMenu;\n\n const sortedColumns = useMemo(() => {\n const columnNumbers = new Map();\n Object.getOwnPropertyNames(columns).forEach((columnName: string) => {\n // We know for sure there is a (boolean) property 'isExtensible' that we are not interested in.\n if (columnName === 'isExtensible') return;\n // TS doesn't allow `columnName` above to be a ReferencedItem even though the type says it is\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const columnId = columnName as ReferencedItem;\n const column = columns[columnId];\n // As of right now (and hopefully forever after), all remaining properties of the\n // ColumnsWithHeaders object are columns whose property names are the IDs of the columns.\n // This is an additional (redundant) sanity check. Specifically we're interested in\n // MenuColumnWithHeader objects, which TypeScript now \"knows\" we have, but at runtime all we\n // can check for is that it's an object with a valid numeric order field. That's likely good\n // enough.\n if (\n typeof column === 'object' &&\n typeof column.order === 'number' &&\n !Number.isNaN(column.order)\n )\n columnNumbers.set(column.order, { id: columnId, metadata: column });\n else\n console.warn(\n `Property ${columnName} (${typeof column}) on menu ${id} is not a valid column and is being ignored. This might indicate data corruption`,\n );\n });\n\n // Extract values and sort them based on the 'order' property\n return Array.from(columnNumbers.values()).sort((a, b) => {\n return (a.metadata.order || 0) - (b.metadata.order || 0);\n });\n }, [columns, id]);\n\n // We might need something like this if we need to be able to prevent empty columns\n // sortedColumns.filter((c) => multiColumnMenu.groups.some((g) => 'column' in g && (g as .column)...\n\n return (\n \n {sortedColumns.map((col, index) => (\n \n ))}\n \n );\n}\n","import { useEffect, useRef, useState } from 'react';\n\nexport type UsePromiseOptions = {\n /**\n * Whether to leave the value as the most recent resolved promise value or set it back to\n * defaultValue while running the promise again. Defaults to true\n */\n preserveValue?: boolean;\n};\n\n/** Set up defaults for options for usePromise hook */\nfunction getUsePromiseOptionsDefaults(options: UsePromiseOptions): UsePromiseOptions {\n return {\n preserveValue: true,\n ...options,\n };\n}\n\n/**\n * Awaits a promise and returns a loading value while the promise is unresolved\n *\n * @param promiseFactoryCallback A function that returns the promise to await. If this callback is\n * undefined, the current value will be returned (defaultValue unless it was previously changed\n * and `options.preserveValue` is true), and there will be no loading.\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n * @param defaultValue The initial value to return while first awaiting the promise. If\n * `options.preserveValue` is false, this value is also shown while awaiting the promise on\n * subsequent calls.\n *\n * Note: this parameter is internally assigned to a `ref`, so changing it will not cause any hooks\n * to re-run with its new value. This means that, if the `promiseFactoryCallback` changes and\n * `options.preserveValue` is `false`, the returned value will be set to the current\n * `defaultValue`. However, the returned value will not be updated if`defaultValue` changes.\n * @param options Various options for adjusting how this hook runs the `promiseFactoryCallback`\n *\n * Note: this parameter is internally assigned to a `ref`, so changing it will not cause any hooks\n * to re-run with its new value. However, the latest `options.preserveValue` will always be used\n * appropriately to determine whether to preserve the returned value when changing the\n * `promiseFactoryCallback`\n * @returns `[value, isLoading]`\n *\n * - `value`: the current value for the promise, either the defaultValue or the resolved promise value\n * - `isLoading`: whether the promise is waiting to be resolved\n */\nconst usePromise = (\n promiseFactoryCallback: (() => Promise) | undefined,\n defaultValue: T,\n options: UsePromiseOptions = {},\n): [value: T, isLoading: boolean] => {\n // Use defaultValue as a ref so it doesn't update dependency arrays\n const defaultValueRef = useRef(defaultValue);\n defaultValueRef.current = defaultValue;\n // Use options as a ref so it doesn't update dependency arrays\n const optionsDefaultedRef = useRef(options);\n optionsDefaultedRef.current = getUsePromiseOptionsDefaults(optionsDefaultedRef.current);\n\n const [value, setValue] = useState(() => defaultValueRef.current);\n const [isLoading, setIsLoading] = useState(true);\n useEffect(() => {\n let promiseIsCurrent = true;\n // If a promiseFactoryCallback was provided, we are loading. Otherwise, there is no loading to do\n setIsLoading(!!promiseFactoryCallback);\n (async () => {\n // If there is a callback to run, run it\n if (promiseFactoryCallback) {\n const result = await promiseFactoryCallback();\n // If the promise was not already replaced, update the value\n if (promiseIsCurrent) {\n setValue(() => result);\n setIsLoading(false);\n }\n }\n })();\n\n return () => {\n // Mark this promise as old and not to be used\n promiseIsCurrent = false;\n if (!optionsDefaultedRef.current.preserveValue) setValue(() => defaultValueRef.current);\n };\n }, [promiseFactoryCallback]);\n\n return [value, isLoading];\n};\nexport default usePromise;\n","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z\"\n}), 'Menu');","import GridMenu from '@/components/mui/grid-menu.component';\nimport { Command, CommandHandler } from '@/components/mui/menu-item.component';\nimport usePromise from '@/hooks/use-promise.hook';\nimport { Menu as MenuIcon } from '@mui/icons-material';\nimport { Drawer, IconButton } from '@mui/material';\nimport { Localized, MultiColumnMenu } from 'platform-bible-utils';\nimport {\n MouseEvent,\n MutableRefObject,\n PropsWithChildren,\n useCallback,\n useEffect,\n useState,\n} from 'react';\n\nexport interface MultiColumnMenuProvider {\n (isSupportAndDevelopment: boolean): Promise>;\n}\n\nexport type HamburgerMenuButtonProps = PropsWithChildren & {\n /** The handler to use for menu commands (and eventually toolbar commands). */\n commandHandler: CommandHandler;\n\n /**\n * Optional reference to the \"div\" container that determines the where the menu should appear. If\n * not defined, then (1,1) used.\n */\n containerRef?: MutableRefObject;\n\n /**\n * The delegate to use to get the menu data. If not specified or if it returns undefined, the data\n * in normalMenu or fullMenu property will be used.\n */\n menuProvider?: MultiColumnMenuProvider;\n\n /**\n * The menu data to show when the menu is opened if the menuProvider property is not defined.\n * (This allows for a default or test-only static menu to be used.)\n */\n normalMenu?: Localized;\n\n /**\n * The menu data to show for \"full\" menu (when opened with the SHIFT key pressed) if the\n * menuProvider property is not defined. (This allows for a default or test-only static menu to be\n * used.)\n */\n fullMenu?: Localized;\n\n /** Additional css class(es) to help with unique styling of the sub-components */\n className?: string;\n\n /** Value to use as prefix for ARIA labels on interactive sub-components */\n ariaLabelPrefix?: string;\n};\n\nexport default function HamburgerMenuButton({\n menuProvider,\n normalMenu,\n fullMenu,\n commandHandler,\n containerRef,\n className,\n ariaLabelPrefix,\n children,\n}: HamburgerMenuButtonProps) {\n const [isMenuOpen, setMenuOpen] = useState(false);\n const [showFullMenu, setShowFullMenu] = useState(false);\n\n const handleMenuItemClick = useCallback(() => {\n if (isMenuOpen) setMenuOpen(false);\n setShowFullMenu(false);\n }, [isMenuOpen]);\n\n const handleMenuButtonClick = useCallback((e: MouseEvent) => {\n e.stopPropagation();\n setMenuOpen((prevIsOpen) => {\n const isOpening = !prevIsOpen;\n if (isOpening && e.shiftKey) setShowFullMenu(true);\n else if (!isOpening) setShowFullMenu(false);\n return isOpening;\n });\n }, []);\n\n const menuCommandHandler = useCallback(\n (command: Command) => {\n handleMenuItemClick();\n return commandHandler(command);\n },\n [commandHandler, handleMenuItemClick],\n );\n\n const [offset, setOffset] = useState({ top: 1, left: 1 });\n\n useEffect(() => {\n if (isMenuOpen) {\n const node = containerRef?.current;\n if (node) {\n const rect = node.getBoundingClientRect();\n const scrollTop = window.scrollY;\n const scrollLeft = window.scrollX;\n const top = rect.top + scrollTop + node.clientHeight;\n const left = rect.left + scrollLeft;\n setOffset({ top, left });\n }\n }\n }, [isMenuOpen, containerRef]);\n\n const [normalMenuData] = usePromise(\n useCallback(async () => {\n return menuProvider?.(false) ?? normalMenu;\n // isMenuOpen needs to be included for the menu contents to reevaluate when reopened\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [menuProvider, normalMenu, isMenuOpen]),\n normalMenu,\n );\n\n const [fullMenuData] = usePromise(\n useCallback(async () => {\n return menuProvider?.(true) ?? fullMenu ?? normalMenuData;\n // isMenuOpen needs to be included for the menu contents to reevaluate when reopened\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [menuProvider, fullMenu, normalMenuData, isMenuOpen]),\n fullMenu ?? normalMenuData,\n );\n\n const menu = showFullMenu && fullMenuData ? fullMenuData : normalMenuData;\n\n return (\n <>\n \n {children ?? }\n \n \n {menu ? (\n \n ) : undefined}\n \n \n );\n}\n","import '@/components/mui/icon-button.component.css';\nimport { IconButton as MuiIconButton } from '@mui/material';\nimport { MouseEventHandler, PropsWithChildren } from 'react';\n\nexport type IconButtonProps = PropsWithChildren<{\n /** Optional unique identifier */\n id?: string;\n /**\n * Required. Used as both the tooltip (aka, title) and the aria-label (used for accessibility,\n * testing, etc.), unless a distinct tooltip is supplied.\n */\n label: string;\n /**\n * Enabled status of button\n *\n * @default false\n */\n isDisabled?: boolean;\n /** Optional tooltip to display if different from the aria-label. */\n tooltip?: string;\n /** If true, no tooltip will be displayed. */\n isTooltipSuppressed?: boolean;\n /**\n * If given, uses a negative margin to counteract the padding on one side (this is often helpful\n * for aligning the left or right side of the icon with content above or below, without ruining\n * the border size and shape).\n *\n * @default false\n */\n adjustMarginToAlignToEdge?: 'end' | 'start' | false;\n /**\n * The size of the component. small is equivalent to the dense button styling.\n *\n * @default false\n */\n size: 'small' | 'medium' | 'large';\n /** Additional css classes to help with unique styling of the button */\n className?: string;\n /** Optional click handler */\n onClick?: MouseEventHandler;\n}>;\n\n/**\n * Iconic button a user can click to do something\n *\n * Thanks to MUI for heavy inspiration and documentation\n * https://mui.com/material-ui/getting-started/overview/\n */\nfunction IconButton({\n id,\n label,\n isDisabled = false,\n tooltip,\n isTooltipSuppressed = false,\n adjustMarginToAlignToEdge = false,\n size = 'medium',\n className,\n onClick,\n children,\n}: IconButtonProps) {\n return (\n \n {children /* the icon to display */}\n \n );\n}\n\nexport default IconButton;\n","import { cn } from '@/utils/shadcn-ui.util';\nimport { LoaderCircle, LucideProps } from 'lucide-react';\nimport { forwardRef } from 'react';\n\nexport type SpinnerProps = LucideProps;\n\nconst Spinner = forwardRef(({ className, ...props }, ref) => {\n return (\n \n );\n});\n\nSpinner.displayName = 'Spinner';\n\nexport default Spinner;\n","import { Input as ShadInput } from '@/components/shadcn-ui/input';\nimport { Label as ShadLabel } from '@/components/shadcn-ui/label';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { ChangeEventHandler, FocusEventHandler } from 'react';\n\nexport type TextFieldProps = {\n /** Optional unique identifier */\n id?: string;\n /**\n * If `true`, the component is disabled.\n *\n * @default false\n */\n isDisabled?: boolean;\n /**\n * If `true`, the label is displayed in an error state.\n *\n * @default false\n */\n hasError?: boolean;\n /**\n * If `true`, the input will take up the full width of its container.\n *\n * @default false\n */\n isFullWidth?: boolean;\n /** Text that gives the user instructions on what contents the TextField expects */\n helperText?: string;\n /** The title of the TextField */\n label?: string;\n /** The short hint displayed in the `input` before the user enters a value. */\n placeholder?: string;\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n *\n * @default false\n */\n isRequired?: boolean;\n /** Additional css classes to help with unique styling of the text field */\n className?: string;\n /** Starting value for the text field if it is not controlled */\n defaultValue?: string | number;\n /** Value of the text field if controlled */\n value?: string | number;\n /** Triggers when content of textfield is changed */\n onChange?: ChangeEventHandler;\n /** Triggers when textfield gets focus */\n onFocus?: FocusEventHandler;\n /** Triggers when textfield loses focus */\n onBlur?: FocusEventHandler;\n};\n\n/**\n * Text input field\n *\n * Thanks to Shadcn for heavy inspiration and documentation\n * https://ui.shadcn.com/docs/components/input#with-label\n */\nfunction TextField({\n id,\n isDisabled = false,\n hasError = false,\n isFullWidth = false,\n helperText,\n label,\n placeholder,\n isRequired = false,\n className,\n defaultValue,\n value,\n onChange,\n onFocus,\n onBlur,\n}: TextFieldProps) {\n return (\n
    \n {`${label}${isRequired ? '*' : ''}`}\n \n

    {helperText}

    \n
    \n );\n}\n\nexport default TextField;\n","import HamburgerMenuButton, {\n MultiColumnMenuProvider,\n} from '@/components/mui/hamburger-menu-button.component';\nimport { CommandHandler } from '@/components/mui/menu-item.component';\nimport '@/components/mui/toolbar.component.css';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { AppBar, Toolbar as MuiToolbar } from '@mui/material';\nimport { PropsWithChildren, useRef } from 'react';\n\nexport type ToolbarProps = PropsWithChildren<{\n /** The handler to use for menu commands (and eventually toolbar commands). */\n commandHandler: CommandHandler;\n\n /**\n * The optional delegate to use to get the menu data. If not specified, the \"hamburger\" menu will\n * not display.\n */\n menuProvider?: MultiColumnMenuProvider;\n\n /** Optional unique identifier */\n id?: string;\n\n /** Additional css classes to help with unique styling of the toolbar */\n className?: string;\n}>;\n\nexport default function Toolbar({\n menuProvider,\n commandHandler,\n className,\n id,\n children,\n}: ToolbarProps) {\n // This ref will always be defined\n // eslint-disable-next-line no-type-assertion/no-type-assertion\n const containerRef = useRef(undefined!);\n\n return (\n
    \n \n \n {menuProvider ? (\n \n ) : undefined}\n {children ?
    {children}
    : undefined}\n \n
    \n
    \n );\n}\n","import React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst alertVariants = cva(\n 'tw-relative tw-w-full tw-rounded-lg tw-border tw-p-4 [&>svg~*]:tw-pl-7 [&>svg+div]:tw-translate-y-[-3px] [&>svg]:tw-absolute [&>svg]:tw-left-4 [&>svg]:tw-top-4 [&>svg]:tw-text-foreground',\n {\n variants: {\n variant: {\n default: 'tw-bg-background tw-text-foreground',\n destructive:\n 'tw-border-destructive/50 tw-text-destructive dark:tw-border-destructive [&>svg]:tw-text-destructive',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nconst Alert = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes & VariantProps\n>(({ className, variant, ...props }, ref) => (\n
    \n));\nAlert.displayName = 'Alert';\n\nconst AlertTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}{' '}\n \n ),\n);\nAlertTitle.displayName = 'AlertTitle';\n\nconst AlertDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
    \n));\nAlertDescription.displayName = 'AlertDescription';\n\nexport { Alert, AlertTitle, AlertDescription };\n","import { cva, type VariantProps } from 'class-variance-authority';\nimport React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst badgeVariants = cva(\n 'tw-inline-flex tw-items-center tw-rounded-full tw-border tw-px-2.5 tw-py-0.5 tw-text-xs tw-font-semibold tw-transition-colors focus:tw-outline-none focus:tw-ring-2 focus:tw-ring-ring focus:tw-ring-offset-2',\n {\n variants: {\n variant: {\n default:\n 'tw-border-transparent tw-bg-primary tw-text-primary-foreground hover:tw-bg-primary/80',\n secondary:\n 'tw-border-transparent tw-bg-secondary tw-text-secondary-foreground hover:tw-bg-secondary/80',\n muted: 'tw-border-transparent tw-bg-muted tw-text-muted-foreground hover:tw-bg-muted/80',\n destructive:\n 'tw-border-transparent tw-bg-destructive tw-text-destructive-foreground hover:tw-bg-destructive/80',\n outline: 'tw-text-foreground',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n },\n);\n\nexport interface BadgeProps\n extends React.HTMLAttributes,\n VariantProps {}\n\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return
    ;\n}\n\nexport { Badge, badgeVariants };\n","import React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\n\nconst Card = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCard.displayName = 'Card';\n\nconst CardHeader = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardHeader.displayName = 'CardHeader';\n\nconst CardTitle = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n {/* added because of https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/heading-has-content.md */}\n {props.children}\n \n ),\n);\nCardTitle.displayName = 'CardTitle';\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n

    \n));\nCardDescription.displayName = 'CardDescription';\n\nconst CardContent = React.forwardRef>(\n ({ className, ...props }, ref) => (\n

    \n ),\n);\nCardContent.displayName = 'CardContent';\n\nconst CardFooter = React.forwardRef>(\n ({ className, ...props }, ref) => (\n \n ),\n);\nCardFooter.displayName = 'CardFooter';\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };\n","import { ComponentProps } from 'react';\nimport { toast as sonner, Toaster } from 'sonner';\n\ntype SonnerProps = ComponentProps;\n\nfunction Sonner({ ...props }: SonnerProps) {\n return (\n \n );\n}\n\n// The re-export of the sonner function was added manually\nexport { Sonner, sonner };\n","import React from 'react';\nimport * as SliderPrimitive from '@radix-ui/react-slider';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Slider = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n \n \n \n );\n});\nSlider.displayName = SliderPrimitive.Root.displayName;\n\nexport { Slider };\n","import * as SwitchPrimitives from '@radix-ui/react-switch';\nimport React from 'react';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nconst Switch = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n \n \n );\n});\nSwitch.displayName = SwitchPrimitives.Root.displayName;\n\nexport { Switch };\n","import React from 'react';\nimport * as TabsPrimitive from '@radix-ui/react-tabs';\n\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Direction, readDirection } from '@/utils/dir-helper.util';\n\nexport const Tabs = TabsPrimitive.Root;\n\nexport type TabsListProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type TabsTriggerProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport type TabsContentProps = React.ComponentPropsWithoutRef & {\n className?: string;\n};\n\nexport const TabsList = React.forwardRef<\n React.ElementRef,\n TabsListProps\n>(({ className, ...props }, ref) => {\n const dir: Direction = readDirection();\n return (\n \n );\n});\nTabsList.displayName = TabsPrimitive.List.displayName;\n\nexport const TabsTrigger = React.forwardRef<\n React.ElementRef,\n TabsTriggerProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName;\n\nexport const TabsContent = React.forwardRef<\n React.ElementRef,\n TabsContentProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsContent.displayName = TabsPrimitive.Content.displayName;\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Download } from 'lucide-react';\n\ntype InstallButtonProps = {\n /** The installing boolean value determines the state of the button. */\n isInstalling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n /** Optional text for the button. */\n buttonText?: string;\n} & ButtonProps;\n\n/**\n * The InstallButton component is a button designed for initiating installs. It includes visuals for\n * active installing and idle states.\n *\n * @param isInstalling The installing boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @param buttonText Optional text for the button.\n * @returns A install button.\n */\nexport default function InstallButton({\n isInstalling,\n handleClick,\n buttonText,\n className,\n ...props\n}: InstallButtonProps) {\n return (\n \n {isInstalling ? (\n \n ) : (\n <>\n \n {buttonText}\n \n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype EnableButtonProps = {\n /** The enabling boolean value determines the state of the button. */\n isEnabling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The EnableButton component is a button designed for initiating enabling of downloads. It includes\n * visuals for active enabling and idle states.\n *\n * @param isEnabling The enabling boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to enable.\n */\nexport default function EnableButton({\n isEnabling,\n handleClick,\n className,\n ...props\n}: EnableButtonProps) {\n return (\n \n {isEnabling ? (\n <>\n \n Enabling...\n \n ) : (\n 'Enable'\n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype DisableButtonProps = {\n /** The disabling boolean value determines the state of the button. */\n isDisabling: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The DisableButton component is a button designed for initiating disabling of downloads. It\n * includes visuals for active disabling and idle states.\n *\n * @param isDisabling The disabling boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to disable.\n */\nexport default function DisableButton({\n isDisabling,\n handleClick,\n className,\n ...props\n}: DisableButtonProps) {\n return (\n \n {isDisabling ? (\n <>\n \n Disabling...\n \n ) : (\n 'Disable'\n )}\n \n );\n}\n","import { Button, ButtonProps } from '@/components/shadcn-ui/button';\nimport Spinner from '@/components/basics/spinner.component';\nimport { cn } from '@/utils/shadcn-ui.util';\n\ntype UpdateButtonProps = {\n /** The updating boolean value determines the state of the button. */\n isUpdating: boolean;\n /** The handleClick function is called when the button is clicked. */\n handleClick: () => void;\n} & ButtonProps;\n\n/**\n * The UpdateButton component is a button designed for initiating updates for downloaded extensions.\n * It includes visuals for active updating and idle states.\n *\n * @param isUpdating The updating boolean value determines the state of the button.\n * @param handleClick The handleClick function is called when the button is clicked.\n * @returns A button that can be used to update.\n */\nexport default function UpdateButton({\n isUpdating,\n handleClick,\n className,\n ...props\n}: UpdateButtonProps) {\n return (\n \n {isUpdating ? (\n <>\n \n Updating...\n \n ) : (\n 'Update'\n )}\n \n );\n}\n","import { cn } from '@/utils/shadcn-ui.util';\nimport Markdown, { MarkdownToJSX } from 'markdown-to-jsx';\nimport { useMemo } from 'react';\n\ninterface MarkdownRendererProps {\n /** Optional unique identifier */\n id?: string;\n /** The markdown string to render */\n markdown: string;\n className?: string;\n /**\n * The [`target` attribute for `a` html\n * tags](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#target). Defaults to not\n * adding a `target` to `a` tags\n */\n anchorTarget?: string;\n}\n\n/**\n * This component renders markdown content given a markdown string. It uses typography styles from\n * the platform.\n *\n * @param markdown The markdown string to render.\n * @param id Optional unique identifier\n * @returns A div containing the rendered markdown content.\n */\nexport default function MarkdownRenderer({\n id,\n markdown,\n className,\n anchorTarget,\n}: MarkdownRendererProps) {\n const options: MarkdownToJSX.Options = useMemo(\n () => ({\n overrides: {\n a: {\n props: {\n target: anchorTarget,\n },\n },\n },\n }),\n [anchorTarget],\n );\n return (\n
    \n {markdown}\n
    \n );\n}\n","import { Filter, ChevronDown } from 'lucide-react';\nimport { forwardRef } from 'react';\nimport { Button } from '@/components/shadcn-ui/button';\n\n/**\n * The FilterButton component is a button designed for initiating filtering of data. It is designed\n * to be used with the dropdown menu. It uses forwardRef to pass the button to the dropdown trigger\n * asChild.\n *\n * @returns A button that can be used to filter.\n */\nconst FilterButton = forwardRef((props, ref) => {\n return (\n \n \n Filter\n \n \n );\n});\n\nexport default FilterButton;\n","import {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuGroup,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuSeparator,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport FilterButton from './buttons/filter-button.component';\n\nexport enum DropdownMenuItemType {\n Check,\n Radio,\n}\n\nexport type DropdownItem = {\n /** The label is the text that will be displayed on the dropdown item. */\n label: string;\n /** The itemType determines the DropdownMenuItemType type as either Check or Radio. */\n itemType: DropdownMenuItemType;\n /** The onClick function is called when the item is clicked. */\n onClick: () => void;\n};\n\nexport type DropdownGroup = {\n /**\n * The label is the text that will be displayed on the dropdown group. It is used to categorize\n * the items in the group.\n */\n label: string;\n /** The items array contains the items that will be displayed in the dropdown group */\n items: DropdownItem[];\n};\n\nexport type FilterDropdownProps = {\n /** Object unique identifier */\n id?: string;\n /** The groups array contains the groups that will be displayed in the dropdown */\n groups: DropdownGroup[];\n}; // TODO: extend the props later\n\n/**\n * The FilterDropdown component is a dropdown designed for filtering content. It includes groups of\n * items that can be checkboxes or radio items.\n *\n * @param id Optional unique identifier\n * @param groups The groups array contains the groups that will be displayed in the dropdown\n * @returns A filter dropdown.\n */\nexport default function FilterDropdown({ id, groups }: FilterDropdownProps) {\n return (\n
    \n {/* TODO: remove this once the DropDown Menu shadcn has an id prop */}\n \n \n \n \n \n {groups.map((group) => (\n
    \n {group.label}\n \n {group.items.map((item) => (\n
    \n {item.itemType === DropdownMenuItemType.Check ? (\n \n {item.label}\n \n ) : (\n \n {item.label}\n \n )}\n
    \n ))}\n
    \n \n
    \n ))}\n
    \n
    \n
    \n );\n}\n","interface NoExtensionsFoundProps {\n /** Optional unique identifier */\n id?: string;\n /** The message to display */\n message: string;\n}\n/**\n * This component displays a message to the user when no extensions are found in the marketplace.\n *\n * @param id Optional unique identifier\n * @param message The message to display.\n * @returns {JSX.Element} - Returns the message component that displays the message to the user.\n */\nexport default function NoExtensionsFound({ id, message }: NoExtensionsFoundProps) {\n return (\n
    \n
    \n

    {message}

    \n
    \n
    \n );\n}\n","import { CircleHelp, Link as LucideLink, User } from 'lucide-react';\nimport { NumberFormat } from 'platform-bible-utils';\n\n/** Interface that stores the parameters passed to the More Info component */\ninterface MoreInfoProps {\n /** Optional unique identifier */\n id?: string;\n /** The category of the extension */\n category: string;\n /** The number of downloads for the extension */\n downloads: Record;\n /** The languages supported by the extension */\n languages: string[];\n /** The URL to the more info page of the extension */\n moreInfoUrl: string;\n}\n/**\n * This component displays the more info section of the extension which includes the category,\n * number of downloads, languages, and links to the website and support\n *\n * @param id Optional unique identifier\n * @param category The category of the extension\n * @param downloads The number of downloads for the extension\n * @param languages The languages supported by the extension\n * @param moreInfoUrl The URL to the more info page of the extension\n * @returns {JSX.Element} - Returns the more info component that displays the category, number of\n * downloads, languages, and links to the website and support\n */\nexport default function MoreInfo({\n id,\n category,\n downloads,\n languages,\n moreInfoUrl,\n}: MoreInfoProps) {\n /**\n * This constant formats the number of downloads into a more readable format.\n *\n * @example 1000 -> 1K\n *\n * @example 1000000 -> 1M\n *\n * @returns The formatted number of downloads\n */\n const numberFormatted = new NumberFormat('en', {\n notation: 'compact',\n compactDisplay: 'short',\n }).format(Object.values(downloads).reduce((a: number, b: number) => a + b, 0));\n\n /** This function scrolls the window to the bottom of the page. */\n const handleScrollToBottom = () => {\n window.scrollTo(0, document.body.scrollHeight);\n };\n\n return (\n \n
    \n
    \n {category}\n
    \n CATEGORY\n
    \n
    \n
    \n
    \n \n {numberFormatted}\n
    \n USERS\n
    \n
    \n
    \n
    \n {languages.slice(0, 3).map((locale) => (\n \n {locale.toUpperCase()}\n \n ))}\n
    \n {languages.length > 3 && (\n handleScrollToBottom()}\n className=\"tw-text-xs tw-text-gray-500 tw-underline\"\n >\n +{languages.length - 3} more languages\n \n )}\n
    \n
    \n
    \n \n Website\n \n \n \n Support\n \n \n
    \n
    \n );\n}\n","import { useState } from 'react';\n\nexport type VersionInformation = {\n /** Date the version was published */\n date: string;\n /** Description of the changes in the version */\n description: string;\n};\n\n/** Type to store the version history information */\nexport type VersionHistoryType = Record;\n\n/** Interface that stores the parameters passed to the Version History component */\ninterface VersionHistoryProps {\n /** Optional unique identifier */\n id?: string;\n /** Object containing the versions mapped with their information */\n versionHistory: VersionHistoryType;\n}\n\n/**\n * Component to render the version history information shown in the footer component. Lists the 5\n * most recent versions, with the options to show all versions by pressing a button.\n *\n * @param versionHistory Object containing the versions mapped with their information\n * @param id Optional unique identifier\n * @returns Rendered version history for the Footer component\n */\nexport default function VersionHistory({ id, versionHistory }: VersionHistoryProps) {\n const [showAllVersions, setShowAllVersions] = useState(false);\n const currentDate = new Date();\n\n /**\n * Function to format the time string for the version history in the form of 'X year(s) ago'.\n *\n * @param dateString ISO Date string to determine the time string from\n * @returns Formatted time string\n */\n function formatTimeString(dateString: string) {\n const date = new Date(dateString);\n const dateDiff = new Date(currentDate.getTime() - date.getTime());\n const yearDiff = dateDiff.getUTCFullYear() - 1970;\n const monthDiff = dateDiff.getUTCMonth();\n const dayDiff = dateDiff.getUTCDate() - 1;\n\n // Determines how long ago the version was published\n let timeString = '';\n if (yearDiff > 0) {\n timeString = `${yearDiff.toString()} year${yearDiff === 1 ? '' : 's'} ago`;\n } else if (monthDiff > 0) {\n timeString = `${monthDiff.toString()} month${monthDiff === 1 ? '' : 's'} ago`;\n } else if (dayDiff === 0) {\n timeString = 'today';\n } else {\n timeString = `${dayDiff.toString()} day${dayDiff === 1 ? '' : 's'} ago`;\n }\n\n return timeString;\n }\n\n // Sorts the version history by version number\n const sortedEntries = Object.entries(versionHistory).sort((a, b) => b[0].localeCompare(a[0]));\n\n return (\n
    \n

    What`s New

    \n
      \n {(showAllVersions ? sortedEntries : sortedEntries.slice(0, 5)).map((entry) => (\n
      \n
      \n
    • \n {entry[1].description}\n
    • \n
      \n
      \n
      Version {entry[0]}
      \n
      {formatTimeString(entry[1].date)}
      \n
      \n
      \n ))}\n
    \n {sortedEntries.length > 5 && (\n setShowAllVersions(!showAllVersions)}\n className=\"tw-text-xs tw-text-gray-500 tw-underline\"\n >\n {showAllVersions ? 'Show Less Version History' : 'Show All Version History'}\n \n )}\n
    \n );\n}\n","import { useMemo } from 'react';\nimport { formatBytes } from 'platform-bible-utils';\nimport VersionHistory, { VersionHistoryType } from './version-history.component';\n\n/** Interface to store the parameters passed to the Footer component */\ninterface FooterProps {\n /** Optional unique identifier */\n id?: string;\n /** Name of the publisher */\n publisherDisplayName: string;\n /** Size of the extension file in bytes */\n fileSize: number;\n /** List of language codes supported by the extension */\n locales: string[];\n /** Object containing the version history mapped with their information */\n versionHistory: VersionHistoryType;\n}\n\n/**\n * Component to render the footer for the extension details which contains information on the\n * publisher, version history, languages, and file size.\n *\n * @param id Optional unique identifier\n * @param publisherDisplayName Name of the publisher\n * @param fileSize Size of the extension file in bytes\n * @param locales List of language codes supported by the extension\n * @param versionHistory Object containing the version history mapped with their information\n * @returns The rendered Footer component\n */\nexport default function Footer({\n id,\n publisherDisplayName,\n fileSize,\n locales,\n versionHistory,\n}: FooterProps) {\n /** Formats the file size into a human-readable format */\n const formattedFileSize = useMemo(() => formatBytes(fileSize), [fileSize]);\n\n /**\n * This function gets the display names of the languages based on the language codes.\n *\n * @param codes The list of language codes\n * @returns The list of language names\n */\n const getLanguageNames = (codes: string[]) => {\n const displayNames = new Intl.DisplayNames(navigator.language, { type: 'language' });\n return codes.map((code) => displayNames.of(code));\n };\n\n const languageNames = getLanguageNames(locales);\n\n return (\n
    \n
    \n \n
    \n
    \n

    Information

    \n
    \n

    \n Publisher\n {publisherDisplayName}\n Size\n {formattedFileSize}\n

    \n
    \n

    \n Languages\n {languageNames.join(', ')}\n

    \n
    \n
    \n
    \n
    \n
    \n );\n}\n","import { Badge } from '@/components/shadcn-ui/badge';\nimport { Button } from '@/components/shadcn-ui/button';\nimport { Label } from '@/components/shadcn-ui/label';\nimport { X } from 'lucide-react';\nimport MultiSelectComboBox, { MultiSelectComboBoxProps } from '../multi-select-combo-box.component';\n\ninterface FilterProps extends MultiSelectComboBoxProps {\n badgesPlaceholder: string;\n}\n\nfunction Filter({\n entries,\n getEntriesCount,\n selected,\n onChange,\n placeholder,\n commandEmptyMessage,\n customSelectedText,\n sortSelected,\n icon,\n className,\n badgesPlaceholder,\n}: FilterProps) {\n return (\n
    \n \n {selected.length > 0 ? (\n
    \n {selected.map((type) => (\n \n onChange(selected.filter((selectedType) => selectedType !== type))}\n >\n \n \n {entries.find((t) => t.value === type)?.label}\n \n ))}\n
    \n ) : (\n \n )}\n
    \n );\n}\n\nexport default Filter;\n","import Spinner from '@/components/basics/spinner.component';\nimport { Button } from '@/components/shadcn-ui/button';\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from '@/components/shadcn-ui/card';\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/shadcn-ui/dropdown-menu';\nimport { Label } from '@/components/shadcn-ui/label';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '@/components/shadcn-ui/table';\nimport {\n BookOpen,\n ChevronDown,\n ChevronsUpDown,\n ChevronUp,\n Ellipsis,\n Globe,\n Shapes,\n} from 'lucide-react';\n\nimport Filter from '@/components/advanced/filterable-resource-list/filter.component';\nimport type { MultiSelectComboBoxEntry } from '@/components/advanced/multi-select-combo-box.component';\nimport {\n DblResourceData,\n getErrorMessage,\n LanguageStrings,\n LocalizeKey,\n} from 'platform-bible-utils';\nimport { useEffect, useMemo, useState } from 'react';\nimport SearchBar from '@/components/basics/search-bar.component';\n\nexport const FILTERABLE_RESOURCE_LIST_STRING_KEYS: LocalizeKey[] = [\n '%resources_action%',\n '%resources_any%',\n '%resources_dialog_subtitle%',\n '%resources_dialog_title%',\n '%resources_filterBy%',\n '%resources_filterInput%',\n '%resources_fullName%',\n '%resources_get%',\n '%resources_installed%',\n '%resources_language%',\n '%resources_languages%',\n '%resources_loadingResources%',\n '%resources_noResults%',\n '%resources_open%',\n '%resources_remove%',\n '%resources_results%',\n '%resources_showing%',\n '%resources_size%',\n '%resources_type%',\n '%resources_types%',\n '%resources_type_DBL%',\n '%resources_type_ER%',\n '%resources_type_SLR%',\n '%resources_type_XR%',\n '%resources_type_unknown%',\n '%resources_update%',\n];\n\ntype InstallInfo = {\n dblEntryUid: string;\n action: 'installing' | 'removing';\n};\n\ntype SortConfig = {\n key: 'fullName' | 'bestLanguageName' | 'type' | 'size' | 'action';\n direction: 'ascending' | 'descending';\n};\n\nconst getLanguageOptions = (\n resources: DblResourceData[],\n selectedLanguages: string[],\n): MultiSelectComboBoxEntry[] => {\n const allLanguages: string[] = Array.from(\n new Set(\n resources.map((resource) => {\n return resource.bestLanguageName;\n }),\n ),\n );\n\n const starredLanguages = new Set(\n resources.filter((resource) => resource.installed).map((resource) => resource.bestLanguageName),\n );\n\n const prioritizedLanguages = new Set(selectedLanguages.concat(Array.from(starredLanguages)));\n\n const sortedLanguages = allLanguages.sort((a, b) => {\n const aIsPrioritized = prioritizedLanguages.has(a);\n const bIsPrioritized = prioritizedLanguages.has(b);\n\n if (aIsPrioritized && bIsPrioritized) {\n return a.localeCompare(b);\n }\n if (aIsPrioritized) return -1;\n if (bIsPrioritized) return 1;\n\n return a.localeCompare(b);\n });\n\n return sortedLanguages.map((language) => {\n return { label: language, value: language, starred: starredLanguages.has(language) };\n });\n};\n\nconst getActionButtonContent = (\n resource: DblResourceData,\n buttonText: string,\n installResource: (dblEntryUid: string, action: 'install' | 'remove') => void,\n) => {\n return (\n installResource(resource.dblEntryUid, 'install')}\n >\n {buttonText}\n \n );\n};\n\nconst getActionContent = (\n resource: DblResourceData,\n idsBeingHandled: string[],\n getText: string,\n updateText: string,\n installedText: string,\n installResource: (dblEntryUid: string, action: 'install' | 'remove') => void,\n) => {\n const isBeingHandled = idsBeingHandled.includes(resource.dblEntryUid);\n if (isBeingHandled) {\n return (\n \n );\n }\n if (!resource.installed) {\n return getActionButtonContent(resource, getText, installResource);\n }\n if (resource.updateAvailable) {\n return getActionButtonContent(resource, updateText, installResource);\n }\n return ;\n};\n\ntype FilterableResourceListProps = {\n localizedStrings: LanguageStrings;\n resources: DblResourceData[];\n isLoadingResources: boolean;\n selectedTypes: string[];\n setSelectedTypes: (stateValue: string[]) => void;\n selectedLanguages: string[];\n setSelectedLanguages: (stateValue: string[]) => void;\n openResource: (projectId: string) => void;\n installResource: ((uid: string) => Promise) | undefined;\n uninstallResource: ((uid: string) => Promise) | undefined;\n className?: string;\n};\n\nfunction FilterableResourceList({\n localizedStrings,\n resources,\n isLoadingResources,\n selectedTypes,\n setSelectedTypes,\n selectedLanguages,\n setSelectedLanguages,\n openResource,\n installResource,\n uninstallResource,\n className,\n}: FilterableResourceListProps) {\n const actionText: string = localizedStrings['%resources_action%'];\n const anyText: string = localizedStrings['%resources_any%'];\n const dialogSubtitleText: string = localizedStrings['%resources_dialog_subtitle%'];\n const dialogTitleText: string = localizedStrings['%resources_dialog_title%'];\n const filterInputText: string = localizedStrings['%resources_filterInput%'];\n const filterByText: string = localizedStrings['%resources_filterBy%'];\n const fullNameText: string = localizedStrings['%resources_fullName%'];\n const getText: string = localizedStrings['%resources_get%'];\n const installedText: string = localizedStrings['%resources_installed%'];\n const languageText: string = localizedStrings['%resources_language%'];\n const languagesText: string = localizedStrings['%resources_languages%'];\n const loadingResourcesText: string = localizedStrings['%resources_loadingResources%'];\n const noResultsText: string = localizedStrings['%resources_noResults%'];\n const openText: string = localizedStrings['%resources_open%'];\n const removeText: string = localizedStrings['%resources_remove%'];\n const resultsText: string = localizedStrings['%resources_results%'];\n const showingText: string = localizedStrings['%resources_showing%'];\n const sizeText: string = localizedStrings['%resources_size%'];\n const typeText: string = localizedStrings['%resources_type%'];\n const typesText: string = localizedStrings['%resources_types%'];\n const typeDblText: string = localizedStrings['%resources_type_DBL%'];\n const typeErText: string = localizedStrings['%resources_type_ER%'];\n const typeSlrText: string = localizedStrings['%resources_type_SLR%'];\n const typeXrText: string = localizedStrings['%resources_type_XR%'];\n const typeUnknownText: string = localizedStrings['%resources_type_unknown%'];\n const updateText: string = localizedStrings['%resources_update%'];\n\n const [isInitialized, setIsInitialized] = useState(false);\n\n // When no languages are selected on the first render of this component, set default selection to\n // languages that have resources installed\n useEffect(() => {\n if (isInitialized) return;\n if (selectedLanguages.length > 0) {\n setIsInitialized(true);\n return;\n }\n if (resources.length > 0 && selectedLanguages.length === 0) {\n setSelectedLanguages(\n Array.from(\n new Set(\n resources\n .filter((resource) => resource.installed === true)\n .map((resource) => resource.bestLanguageName),\n ),\n ),\n );\n setIsInitialized(true);\n }\n }, [resources, selectedLanguages.length, setSelectedLanguages, isInitialized, setIsInitialized]);\n\n const [installInfo, setInstallInfo] = useState([]);\n\n const installOrRemoveResource = (dblEntryUid: string, action: 'install' | 'remove'): void => {\n if (!installResource || !uninstallResource) return;\n const newInstallInfo: InstallInfo = {\n dblEntryUid,\n action: action === 'install' ? 'installing' : 'removing',\n };\n\n setInstallInfo((prevInfo) => [...prevInfo, newInstallInfo]);\n\n const actionFunction = action === 'install' ? installResource : uninstallResource;\n\n actionFunction(dblEntryUid).catch((error) => {\n console.debug(getErrorMessage(error));\n });\n };\n\n /** Removes resources from array of resources that are currently being handled */\n useEffect(() => {\n setInstallInfo((currentInstallInfo) =>\n currentInstallInfo.filter((info) => {\n const resource = resources.find((res) => res.dblEntryUid === info.dblEntryUid);\n\n if (!resource) return true;\n\n if (info.action === 'installing' && resource.installed) return false;\n if (info.action === 'removing' && !resource.installed) return false;\n\n return true;\n }),\n );\n }, [resources]);\n\n const [textFilter, setTextFilter] = useState('');\n\n const textFilteredResources = useMemo(() => {\n return resources.filter((resource) => {\n const filter = textFilter.toLowerCase();\n return (\n resource.displayName.toLowerCase().includes(filter) ||\n resource.fullName.toLowerCase().includes(filter) ||\n resource.bestLanguageName.toLowerCase().includes(filter)\n );\n });\n }, [resources, textFilter]);\n\n const typeOptions: MultiSelectComboBoxEntry[] = useMemo(() => {\n return [\n { value: 'DBLResource', label: typeDblText },\n { value: 'EnhancedResource', label: typeErText },\n { value: 'SourceLanguageResource', label: typeSlrText },\n { value: 'XmlResource', label: typeXrText },\n ];\n }, [typeDblText, typeErText, typeSlrText, typeXrText]);\n\n const textAndTypeFilteredResources = useMemo(() => {\n if (selectedTypes.length === 0) return textFilteredResources;\n return textFilteredResources.filter((resource) => {\n return selectedTypes.includes(resource.type);\n });\n }, [textFilteredResources, selectedTypes]);\n\n const textAndTypeAndLanguageFilteredResources = useMemo(() => {\n if (selectedLanguages.length === 0) return textAndTypeFilteredResources;\n return textAndTypeFilteredResources.filter((resource) => {\n return selectedLanguages.includes(resource.bestLanguageName);\n });\n }, [selectedLanguages, textAndTypeFilteredResources]);\n\n const [sortConfig, setSortConfig] = useState({\n key: 'bestLanguageName',\n direction: 'ascending',\n });\n\n const sortedResources = useMemo(() => {\n return [...textAndTypeAndLanguageFilteredResources].sort((a, b) => {\n let aValue: string | number;\n let bValue: string | number;\n if (sortConfig.key === 'action') {\n aValue = (a.installed ? 10 : 0) + (a.updateAvailable ? 1 : 0);\n bValue = (b.installed ? 10 : 0) + (b.updateAvailable ? 1 : 0);\n } else {\n aValue = a[sortConfig.key];\n bValue = b[sortConfig.key];\n }\n\n if (aValue < bValue) {\n return sortConfig.direction === 'ascending' ? -1 : 1;\n }\n if (aValue > bValue) {\n return sortConfig.direction === 'ascending' ? 1 : -1;\n }\n return 0;\n });\n }, [sortConfig.direction, sortConfig.key, textAndTypeAndLanguageFilteredResources]);\n\n const handleSort = (key: SortConfig['key']) => {\n const newSortConfig: SortConfig = { key, direction: 'ascending' };\n if (sortConfig.key === key && sortConfig.direction === 'ascending') {\n newSortConfig.direction = 'descending';\n }\n setSortConfig(newSortConfig);\n };\n\n const buildTableHead = (key: SortConfig['key'], label: string) => (\n handleSort(key)}>\n
    \n
    {label}
    \n {sortConfig.key !== key && }\n {sortConfig.key === key &&\n (sortConfig.direction === 'ascending' ? (\n \n ) : (\n \n ))}\n
    \n
    \n );\n\n const getTypeCount = (option: MultiSelectComboBoxEntry): number => {\n return resources.filter((resource) => resource.type === option.value).length ?? 0;\n };\n\n const getLanguageCount = (option: MultiSelectComboBoxEntry): number => {\n return resources.filter((resource) => resource.bestLanguageName === option.value).length ?? 0;\n };\n\n return (\n
    \n \n \n
    \n
    \n \n
    \n {dialogTitleText}\n {dialogSubtitleText}\n \n
    \n
    \n
    \n \n }\n badgesPlaceholder={anyText}\n />\n\n }\n badgesPlaceholder={anyText}\n />\n
    \n
    \n
    \n \n {isLoadingResources || !resources ? (\n
    \n \n \n
    \n ) : (\n
    \n {sortedResources.length === 0 ? (\n
    \n \n
    \n ) : (\n \n \n \n \n \n {buildTableHead('fullName', fullNameText)}\n {buildTableHead('bestLanguageName', languageText)}\n {buildTableHead('type', typeText)}\n {buildTableHead('size', sizeText)}\n {buildTableHead('action', actionText)}\n \n \n \n {sortedResources.map((resource) => (\n \n \n \n \n {resource.displayName}\n {resource.fullName}\n {resource.bestLanguageName}\n \n {typeOptions.find((type) => type.value === resource.type)?.label ??\n typeUnknownText}\n \n {resource.size}\n \n
    \n {getActionContent(\n resource,\n installInfo.map((info) => info.dblEntryUid),\n getText,\n updateText,\n installedText,\n installOrRemoveResource,\n )}\n {resource.installed && (\n \n \n \n \n \n openResource(resource.projectId)}\n >\n {openText}\n \n\n \n \n installOrRemoveResource(resource.dblEntryUid, 'remove')\n }\n >\n {removeText}\n \n \n \n )}\n
    \n
    \n
    \n ))}\n
    \n
    \n )}\n
    \n )}\n
    \n \n {sortedResources.length > 0 && (\n \n )}\n \n
    \n
    \n );\n}\n\nexport default FilterableResourceList;\n","import { useState } from 'react';\nimport { LocalizedStringValue } from 'platform-bible-utils';\nimport { cn } from '@/utils/shadcn-ui.util';\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../shadcn-ui/select';\nimport { Label } from '../shadcn-ui/label';\n\n/**\n * Immutable array containing all keys used for localization in this component. If you're using this\n * component in an extension, you can pass it into the useLocalizedStrings hook to easily obtain the\n * localized strings and pass them into the localizedStrings prop of this component\n */\nexport const UI_LANGUAGE_SELECTOR_STRING_KEYS = Object.freeze([\n '%settings_uiLanguageSelector_selectFallbackLanguages%',\n] as const);\n\nexport type UiLanguageSelectorLocalizedStrings = {\n [localizedUiLanguageSelectorKey in (typeof UI_LANGUAGE_SELECTOR_STRING_KEYS)[number]]?: LocalizedStringValue;\n};\n\n/**\n * Gets the localized value for the provided key\n *\n * @param strings Object containing localized string\n * @param key Key for a localized string\n * @returns The localized value for the provided key, if available. Returns the key if no localized\n * value is available\n */\nconst localizeString = (\n strings: UiLanguageSelectorLocalizedStrings,\n key: keyof UiLanguageSelectorLocalizedStrings,\n) => {\n return strings[key] ?? key;\n};\n\nexport type LanguageInfo = {\n /** The name of the language to be displayed (in its native script) */\n autonym: string;\n /**\n * The name of the language in other languages, so that the language can also be displayed in the\n * current UI language, if known.\n */\n uiNames?: Record;\n /**\n * Other known names of the language (for searching). This can include pejorative names and should\n * never be displayed unless typed by the user.\n */\n otherNames?: string[];\n};\n\nexport type UiLanguageSelectorProps = {\n /** Full set of known languages to display. The keys are valid BCP-47 tags. */\n knownUiLanguages: Record;\n /** IETF BCP-47 language tag of the current primary UI language. `undefined` => 'en' */\n primaryLanguage: string;\n /**\n * Ordered list of fallback language tags to use if the localization key can't be found in the\n * current primary UI language. This list never contains English ('en') because it is the ultimate\n * fallback.\n */\n fallbackLanguages: string[] | undefined;\n /**\n * Handler for when either the primary or the fallback languages change (or both). For this\n * handler, the primary UI language is the first one in the array, followed by the fallback\n * languages in order of decreasing preference.\n */\n onLanguagesChange?: (newUiLanguages: string[]) => void;\n /** Handler for the primary language changes. */\n onPrimaryLanguageChange?: (newPrimaryUiLanguage: string) => void;\n /**\n * Handler for when the fallback languages change. The array contains the fallback languages in\n * order of decreasing preference.\n */\n onFallbackLanguagesChange?: (newFallbackLanguages: string[]) => void;\n /**\n * Map whose keys are localized string keys as contained in UI_LANGUAGE_SELECTOR_STRING_KEYS and\n * whose values are the localized strings (in the current UI language).\n */\n localizedStrings: UiLanguageSelectorLocalizedStrings;\n /** Additional css classes to help with unique styling of the control */\n className?: string;\n};\n\nexport default function UiLanguageSelector({\n knownUiLanguages,\n primaryLanguage = 'en',\n fallbackLanguages = [],\n onLanguagesChange,\n onPrimaryLanguageChange,\n onFallbackLanguagesChange,\n localizedStrings,\n className,\n}: UiLanguageSelectorProps) {\n const selectFallbackLanguagesText = localizeString(\n localizedStrings,\n '%settings_uiLanguageSelector_selectFallbackLanguages%',\n );\n const [isOpen, setIsOpen] = useState(false);\n\n const handleLanguageChange = (code: string) => {\n if (onPrimaryLanguageChange) onPrimaryLanguageChange(code);\n // REVIEW: Should fallback languages be preserved when primary language changes?\n if (onLanguagesChange)\n onLanguagesChange([code, ...fallbackLanguages.filter((lang) => lang !== code)]);\n if (onFallbackLanguagesChange && fallbackLanguages.find((l) => l === code))\n onFallbackLanguagesChange([...fallbackLanguages.filter((lang) => lang !== code)]);\n setIsOpen(false); // Close the dropdown when a selection is made\n };\n\n /**\n * Gets the display name for the given language. This will typically include the autonym (in the\n * native script), along with the name of the language in the current UI locale if known, with a\n * fallback to the English name (if known).\n *\n * @param {string} lang - The BCP-47 code of the language whose display name is being requested.\n * @param {string} uiLang - The BCP-47 code of the current user-interface language used used to\n * try to look up the name of the language in a form that is likely to be helpful to the user if\n * they do not recognize the autonym.\n * @returns {string} The display name of the language.\n */\n const getLanguageDisplayName = (lang: string, uiLang: string) => {\n const altName =\n uiLang !== lang\n ? (knownUiLanguages[lang]?.uiNames?.[uiLang] ?? knownUiLanguages[lang]?.uiNames?.en)\n : undefined;\n\n return altName\n ? `${knownUiLanguages[lang]?.autonym} (${altName})`\n : knownUiLanguages[lang]?.autonym;\n };\n\n return (\n
    \n {/* Language Selector */}\n setIsOpen(open)}\n >\n \n \n \n \n {Object.keys(knownUiLanguages).map((key) => {\n return (\n \n {getLanguageDisplayName(key, primaryLanguage)}\n \n );\n })}\n \n \n\n {/* Fallback Language Button */}\n {primaryLanguage !== 'en' && (\n <>\n \n
    \n {/* Do not localize or \"improve\". This label is temporary. */}\n \n {/* \n Something like this will be added once UX decides exactly what they want.\n */}\n
    \n \n )}\n
    \n );\n}\n","import { PlatformEvent, PlatformEventHandler } from 'platform-bible-utils';\nimport { useEffect } from 'react';\n\n/**\n * Adds an event handler to an event so the event handler runs when the event is emitted. Use\n * `papi.network.getNetworkEvent` to use a networked event with this hook.\n *\n * @param event The event to subscribe to.\n *\n * - If event is a `PlatformEvent`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEvent = (\n event: PlatformEvent | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n useEffect(() => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return () => {};\n\n const unsubscriber = event(eventHandler);\n return () => {\n unsubscriber();\n };\n }, [event, eventHandler]);\n};\nexport default useEvent;\n","import { useCallback, useEffect } from 'react';\nimport { PlatformEvent, PlatformEventAsync, PlatformEventHandler } from 'platform-bible-utils';\nimport usePromise from './use-promise.hook';\n\nconst noopUnsubscriber = () => false;\n\n/**\n * Adds an event handler to an asynchronously subscribing/unsubscribing event so the event handler\n * runs when the event is emitted. Use `papi.network.getNetworkEvent` to use a networked event with\n * this hook.\n *\n * @param event The asynchronously (un)subscribing event to subscribe to.\n *\n * - If event is a `PlatformEvent` or `PlatformEventAsync`, that event will be used\n * - If event is undefined, the callback will not be subscribed. Useful if the event is not yet\n * available for example\n *\n * @param eventHandler The callback to run when the event is emitted\n *\n * WARNING: MUST BE STABLE - const or wrapped in useCallback. The reference must not be updated\n * every render\n */\nconst useEventAsync = (\n event: PlatformEvent | PlatformEventAsync | undefined,\n eventHandler: PlatformEventHandler,\n) => {\n // Subscribe to the event asynchronously\n const [unsubscribe] = usePromise(\n useCallback(async () => {\n // Do nothing if the event is not provided (in case the event is not yet available, for example)\n if (!event) return noopUnsubscriber;\n\n // Wrap subscribe and unsubscribe in promises to allow normal events to be used as well\n const unsub = await Promise.resolve(event(eventHandler));\n return async () => unsub();\n }, [eventHandler, event]),\n noopUnsubscriber,\n // We want the unsubscriber to return to default value immediately upon changing subscription\n // So the useEffect below will unsubscribe asap\n { preserveValue: false },\n );\n\n // Unsubscribe from the event asynchronously (but we aren't awaiting the unsub)\n useEffect(() => {\n return () => {\n if (unsubscribe !== noopUnsubscriber) {\n unsubscribe();\n }\n };\n }, [unsubscribe]);\n};\n\nexport default useEventAsync;\n"],"names":["twMergeCustom","extendTailwindMerge","cn","inputs","clsx","Input","React","className","type","props","ref","jsx","STORAGE_KEY","readDirection","retrieved","BookChapterInput","forwardRef","handleSearch","handleKeyDown","handleOnClick","handleSubmit","dir","jsxs","event","e","History","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","inset","children","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","Circle","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","P","R","s","n","N","B","O","S","K","g","k","x","T","X","V","w","L","G","A","H","C","I","y","q","U","m","l","h","c","E","D","i","a","o","u","v","f","d","b","p","J","BookMenuItem","bookId","handleSelectBook","isSelected","handleHighlightBook","bookType","Canon","ChapterSelect","handleSelectChapter","endChapter","activeChapter","highlightedChapter","handleHighlightedChapter","chapters","_","handleMouse","useCallback","chapterNumber","chapter","GoToMenuItem","handleSort","handleLocationHistory","handleBookmarks","ArrowDownWideNarrow","Clock","Bookmark","ALL_BOOK_IDS","BOOK_TYPE_LABELS","BOOK_TYPE_ARRAY","SCROLL_OFFSET","SEARCH_QUERY_FORMATS","fetchGroupedBooks","fetchEndChapter","getChaptersForBook","getAllEnglishNames","isValidBookEnglishName","bookName","getBookIdFromEnglishName","formattedBookName","BookChapterControl","scrRef","searchQuery","setSearchQuery","useState","selectedBookId","setSelectedBookId","setHighlightedChapter","highlightedBookId","setHighlightedBookId","isContentOpen","setIsContentOpen","isContentOpenDelayed","setIsContentOpenDelayed","inputRef","useRef","contentRef","menuItemRef","fetchFilteredBooks","englishNameLowerCase","normalizedQuery","handleSearchInput","searchString","shouldPreventAutoClosing","controlMenuState","open","updateReference","shouldClose","verse","handleInputSubmit","format","matches","book","englishName","handleKeyDownInput","handleKeyDownContent","key","handleKeyDownMenuItem","upOneChapter","downOneChapter","chapterOffSet","useEffect","useLayoutEffect","scrollTimeout","scrollPosition","bookTypeIndex","element","buttonVariants","cva","Button","variant","size","asChild","Slot","labelVariants","Label","LabelPrimitive","RadioGroup","RadioGroupPrimitive","RadioGroupItem","Popover","PopoverPrimitive","PopoverTrigger","PopoverContent","align","DialogPortal","DialogPrimitive","DialogOverlay","DialogContent","DialogTitle","DialogDescription","Command","CommandPrimitive","CommandInput","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","getOptionLabelDefault","option","ComboBox","id","options","buttonClassName","popoverContentClassName","value","onChange","getOptionLabel","icon","buttonPlaceholder","textPlaceholder","commandEmptyMessage","buttonVariant","alignDropDown","isDisabled","setOpen","ChevronsUpDown","ChapterRangeSelector","startChapter","handleSelectStartChapter","handleSelectEndChapter","chapterCount","chapterOptions","useMemo","index","Fragment","BookSelectionMode","BOOK_SELECTOR_STRING_KEYS","localizeString","strings","BookSelector","handleBookSelectionModeChange","currentBookName","onSelectBooks","selectedBookIds","localizedStrings","currentBookText","chooseText","chooseBooksText","bookSelectionMode","setBookSelectionMode","onSelectionModeChange","newMode","DataTableViewOptions","table","FilterIcon","column","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator","DataTablePagination","pageSize","ArrowLeftIcon","ChevronLeftIcon","ChevronRightIcon","ArrowRightIcon","Table","stickyHeader","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption","DataTable","columns","data","enablePagination","showPaginationControls","showColumnVisibilityControls","onRowClickHandler","sorting","setSorting","columnFilters","setColumnFilters","columnVisibility","setColumnVisibility","rowSelection","setRowSelection","useReactTable","getCoreRowModel","getPaginationRowModel","getSortedRowModel","getFilteredRowModel","headerGroup","header","flexRender","_a","row","cell","OccurrencesTable","occurrenceData","setScriptureReference","referenceHeaderText","occurrenceHeaderText","occurrences","uniqueOccurrences","occurrence","uniqueOccurrence","deepEqual","Checkbox","CheckboxPrimitive","getLinesFromUSFM","text","getNumberFromUSFM","regex","match","getBookNumFromId","getStatusForItem","item","approvedItems","unapprovedItems","toggleVariants","Toggle","TogglePrimitive","ToggleGroupContext","ToggleGroup","ToggleGroupPrimitive","ToggleGroupItem","context","getSortingIcon","sortDirection","ArrowUpIcon","ArrowDownIcon","ArrowUpDownIcon","inventoryItemColumn","itemLabel","inventoryAdditionalItemColumn","additionalItemLabel","additionalItemIndex","inventoryCountColumn","countLabel","statusChangeHandler","changedItems","newStatus","onApprovedItemsChange","onUnapprovedItemsChange","newApprovedItems","validItem","newUnapprovedItems","unapprovedItem","inventoryStatusColumn","statusLabel","status","CircleCheckIcon","CircleXIcon","CircleHelpIcon","INVENTORY_STRING_KEYS","filterItemData","itemData","statusFilter","textFilter","filteredItemData","createTableData","scriptureRef","itemRegex","tableData","currentBook","currentChapter","currentVerse","line","items","itemIndex","existingItem","tableEntry","newReference","substring","newItem","Inventory","scriptureReference","extractItems","additionalItemsLabels","scope","onScopeChange","allItemsText","approvedItemsText","unapprovedItemsText","unknownItemsText","scopeBookText","scopeChapterText","scopeVerseText","filterText","showAdditionalItemsText","showAdditionalItems","setShowAdditionalItems","setStatusFilter","setTextFilter","selectedItem","setSelectedItem","reducedTableData","newTableData","firstItem","existingEntry","newTableEntry","filteredTableData","allColumns","numberOfAdditionalItems","additionalColumns","_b","rowClickHandler","newSelection","handleScopeChange","handleStatusFilterChange","MultiSelectComboBox","entries","getEntriesCount","selected","placeholder","customSelectedText","sortSelected","handleSelect","label","entry","getPlaceholderText","sortedOptions","starredItems","opt","nonStarredItems","aSelected","bSelected","count","Star","SearchBar","onSearch","isFullWidth","handleInputChange","VerticalTabs","TabsPrimitive","VerticalTabsList","VerticalTabsTrigger","VerticalTabsContent","TabNavigationContentSearch","tabList","searchPlaceholder","headerTitle","searchClassName","tab","Separator","orientation","decorative","SeparatorPrimitive","Skeleton","TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","SIDEBAR_WIDTH","SIDEBAR_WIDTH_ICON","SidebarContext","useSidebar","SidebarProvider","defaultOpen","openProp","setOpenProp","style","side","_open","_setOpen","isOpen","openState","toggleSidebar","state","directionAwareSide","contextValue","Sidebar","collapsible","SidebarTrigger","onClick","PanelLeft","PanelRight","SidebarRail","SidebarInset","SidebarInput","SidebarHeader","SidebarFooter","SidebarSeparator","SidebarContent","SidebarGroup","SidebarGroupLabel","SidebarGroupAction","SidebarGroupContent","SidebarMenu","SidebarMenuItem","sidebarMenuButtonVariants","SidebarMenuButton","isActive","tooltip","Comp","button","SidebarMenuAction","showOnHover","SidebarMenuBadge","SidebarMenuSkeleton","showIcon","width","SidebarMenuSub","SidebarMenuSubItem","SidebarMenuSubButton","SettingsSidebar","extensionLabels","projectInfo","handleSelectSidebarItem","selectedSidebarItem","extensionsSidebarGroupLabel","projectsSidebarGroupLabel","buttonPlaceholderText","handleSelectItem","projectId","getProjectNameFromProjectId","project","info","getIsActive","selectedProjectName","SettingsSidebarContentSearch","scrBookColId","scrRefColId","typeColId","detailsColId","defaultScrRefColumnName","defaultScrBookGroupName","defaultTypeColumnName","defaultDetailsColumnName","getColumns","colInfo","showSourceColumn","showSrcCol","formatScrRef","compareScrRefs","toRefOrRange","scriptureSelection","offsetStart","offsetEnd","scrRefToBBBCCCVVV","getRowKey","ScriptureResultsViewer","sources","showColumnHeaders","scriptureReferenceColumnName","scriptureBookGroupName","typeColumnName","detailsColumnName","onRowSelected","grouping","setGrouping","scriptureResults","source","getExpandedRowModel","getGroupedRowModel","selectedRows","keys","selectedRow","scrBookGroupName","typeGroupName","groupingOptions","handleSelectChange","selectedGrouping","handleRowClick","getEvenOrOddBandingStyle","getIndent","groupingState","rowIndex","ChevronLeft","DEFAULT_SCROLL_GROUP_LOCALIZED_STRINGS","getLocalizeKeyForScrollGroupId","ScrollGroupSelector","availableScrollGroupIds","scrollGroupId","onChangeScrollGroupId","localizedStringsDefaulted","localizedStringKey","localizedStringValue","newScrollGroupString","scrollGroupOptionId","SettingsList","SettingsListItem","primary","secondary","isLoading","loadingMessage","SettingsListHeader","includeSeparator","Checklist","listItems","selectedListItems","handleSelectListItem","createLabel","_interopRequireDefault","obj","module","chainPropTypes","propType1","propType2","args","_extends","target","isPlainObject","prototype","deepClone","output","deepmerge","r","t","z","reactIs_production_min","hasSymbol","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","object","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","require$$0","require$$1","getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","order2","test3","letter","objectAssign","from","to","symbols","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","isValidElement","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propName","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","isClassComponent","elementType","acceptingRef","safePropName","warningHint","elementAcceptingRef","PropTypes","elementAcceptingRef$1","specialProperty","exactProp","propTypes","unsupportedProps","prop","formatMuiErrorMessage","code","url","REACT_SERVER_CONTEXT_TYPE","REACT_OFFSCREEN_TYPE","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","SuspenseList","hasWarnedAboutDeprecatedIsConcurrentMode","isSuspenseList","fnNameMatchRegex","getFunctionName","fn","getFunctionComponentName","Component","fallback","getWrappedName","outerType","innerType","wrapperName","functionName","getDisplayName","HTMLElementType","refType","refType$1","capitalize","string","_formatMuiErrorMessage","createChainedFunction","funcs","acc","func","debounce","wait","timeout","debounced","later","deprecatedPropType","validator","reason","componentNameSafe","propFullNameSafe","isMuiElement","muiNames","_muiName","_element$type","ownerDocument","node","ownerWindow","requirePropFactory","componentNameInError","prevPropTypes","requiredProp","defaultTypeChecker","typeCheckerResult","setRef","useEnhancedEffect","useEnhancedEffect$1","globalId","useGlobalId","idOverride","defaultId","setDefaultId","maybeReactUseId","useId","reactId","unsupportedProp","useControlled","controlled","defaultProp","name","isControlled","valueState","setValue","defaultValue","setValueIfUncontrolled","newValue","useEventCallback","useForkRef","refs","instance","UNINITIALIZED","useLazyRef","init","initArg","EMPTY","useOnMount","Timeout","delay","useTimeout","hadKeyboardEvent","hadFocusVisibleRecently","hadFocusVisibleRecentlyTimeout","inputTypesWhitelist","focusTriggersKeyboardModality","tagName","handlePointerDown","handleVisibilityChange","prepare","doc","isFocusVisible","useIsFocusVisible","isFocusVisibleRef","handleBlurVisible","handleFocusVisible","resolveProps","defaultProps","defaultSlotProps","slotProps","slotPropName","composeClasses","slots","getUtilityClass","classes","slot","utilityClass","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","ClassNameGenerator$1","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","result","clamp","min","max","_objectWithoutPropertiesLoose","excluded","sourceKeys","_excluded","sortBreakpointsValues","breakpointsAsArray","breakpoint1","breakpoint2","createBreakpoints","breakpoints","unit","other","sortedValues","up","down","between","start","end","endIndex","only","not","keyIndex","shape","shape$1","responsivePropType","responsivePropType$1","merge","defaultBreakpoints","handleBreakpoints","styleFromPropValue","theme","themeBreakpoints","breakpoint","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","_breakpointsInput$key","breakpointStyleKey","removeUnusedBreakpoints","breakpointKeys","breakpointOutput","getPath","path","checkVars","getStyleValue","themeMapping","transform","propValueFinal","userValue","cssProperty","themeKey","memoize","cache","arg","properties","directions","aliases","getCssProperties","property","direction","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","_getPath","themeSpacing","abs","createUnarySpacing","getValue","transformer","transformed","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","padding","createSpacing","spacingInput","spacing","argsInput","argument","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","maxWidth","_props$theme","_props$theme2","breakpointsValues","minWidth","height","maxHeight","minHeight","boxSizing","defaultSxConfig","defaultSxConfig$1","objectsHaveSameKeys","objects","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","config","styleFunctionSx","_theme$unstable_sxCon","sx","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","css","styleKey","styleFunctionSx$1","applyStyles","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","defaultTheme","contextTheme","ThemeContext","systemDefaultTheme","useThemeWithoutDefault","_excluded2","_excluded3","isEmpty","isStringTag","tag","shouldForwardProp","lowercaseFirstLetter","resolveTheme","themeId","defaultOverridesResolver","processStyleArg","callableStyle","_ref","ownerState","resolvedStylesArg","resolvedStyle","variants","isMatch","createStyled","input","rootShouldForwardProp","slotShouldForwardProp","systemSx","inputOptions","processStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","skipVariantsResolver","skipSx","shouldForwardPropOption","defaultStyledResolver","styledEngineStyled","transformStyleArg","stylesArg","muiStyledResolver","styleArg","expressions","transformedStyleArg","expressionsWithDefaultTheme","styleOverrides","resolvedStyleOverrides","slotKey","slotStyle","_theme$components","themeVariants","numOfCustomFnsApplied","placeholders","displayName","getThemeProps","params","useThemeProps","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","recomposeColor","hslToRgb","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","darken","coefficient","lighten","createMixins","mixins","common","common$1","grey","grey$1","purple","purple$1","red","red$1","orange","orange$1","blue","blue$1","lightBlue","lightBlue$1","green","green$1","light","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","getDefaultPrimary","mode","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","createPalette","palette","contrastThreshold","success","warning","getContrastText","contrastText","contrast","augmentColor","mainShade","lightShade","darkShade","modes","round","caseAllCaps","defaultFontFamily","createTypography","typography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","shadows$1","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","isString","isNumber","animatedProp","zIndex","zIndex$1","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","stateClasses","component","child","stateClass","defaultTheme$1","THEME_ID","systemUseThemeProps","styled","styled$1","getSvgIconUtilityClass","useUtilityClasses","SvgIconRoot","_theme$transitions","_theme$transitions$cr","_theme$transitions2","_theme$typography","_theme$typography$pxT","_theme$typography2","_theme$typography2$px","_theme$typography3","_theme$typography3$px","_palette$ownerState$c","_palette","_palette2","_palette3","SvgIcon","inProps","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","_jsxs","_jsx","SvgIcon$1","createSvgIcon","unstable_ClassNameGenerator","exports","_utils","ArrowRight","default_1","_createSvgIcon","_jsxRuntime","isHostComponent","appendOwnerState","otherProps","defaultContextValue","ClassNameConfiguratorContext","useClassNamesOverride","disableDefaultClasses","extractEventHandlers","excludeKeys","resolveComponentProps","componentProps","slotState","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","useSlotProps","_parameters$additiona","skipResolvingSlotProps","rest","resolvedComponentsProps","mergedProps","internalRef","GLOBAL_CLASS_PREFIX","buildStateClass","buildSlotClass","getContainer","container","forwardedRef","disablePortal","mountNode","setMountNode","handleRef","newProps","ReactDOM","top","bottom","right","left","auto","basePlacements","clippingParents","viewport","popper","reference","variationPlacements","placement","placements","beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite","modifierPhases","getNodeName","getWindow","OwnElement","isHTMLElement","isShadowRoot","attributes","effect","_ref2","initialStyles","styleProperties","attribute","applyStyles$1","getBasePlacement","getUAString","uaData","isLayoutViewport","getBoundingClientRect","includeScale","isFixedStrategy","clientRect","scaleX","scaleY","visualViewport","addVisualOffsets","getLayoutRect","contains","parent","rootNode","next","getComputedStyle","isTableElement","getDocumentElement","getParentNode","getTrueOffsetParent","getContainingBlock","isFirefox","isIE","elementCss","currentNode","getOffsetParent","window","offsetParent","getMainAxisFromPlacement","within","mathMax","mathMin","withinMaxClamp","getFreshSideObject","mergePaddingObject","paddingObject","expandToHashMap","hashMap","toPaddingObject","arrow","_state$modifiersData$","arrowElement","popperOffsets","basePlacement","axis","isVertical","len","arrowRect","minProp","maxProp","endDiff","startDiff","arrowOffsetParent","clientSize","centerToReference","center","offset","axisProp","_options$element","arrow$1","getVariation","unsetSides","roundOffsetsByDPR","win","dpr","mapToStyles","_Object$assign2","popperRect","variation","offsets","gpuAcceleration","adaptive","roundOffsets","isFixed","_offsets$x","_offsets$y","_ref3","hasX","hasY","sideX","sideY","heightProp","widthProp","offsetY","offsetX","commonStyles","_ref4","_Object$assign","computeStyles","_ref5","_options$gpuAccelerat","_options$adaptive","_options$roundOffsets","computeStyles$1","passive","_options$scroll","scroll","_options$resize","resize","scrollParents","scrollParent","eventListeners","hash","getOppositePlacement","matched","getOppositeVariationPlacement","getWindowScroll","scrollLeft","scrollTop","getWindowScrollBarX","getViewportRect","strategy","html","layoutViewport","getDocumentRect","_element$ownerDocumen","winScroll","body","isScrollParent","_getComputedStyle","overflow","overflowX","overflowY","getScrollParent","listScrollParents","list","isBody","updatedList","rectToClientRect","rect","getInnerBoundingClientRect","getClientRectFromMixedType","clippingParent","getClippingParents","canEscapeClipping","clipperElement","getClippingRect","boundary","rootBoundary","mainClippingParents","firstClippingParent","clippingRect","accRect","computeOffsets","commonX","commonY","mainAxis","detectOverflow","_options","_options$placement","_options$strategy","_options$boundary","_options$rootBoundary","_options$elementConte","elementContext","_options$altBoundary","altBoundary","_options$padding","altContext","clippingClientRect","referenceClientRect","popperClientRect","elementClientRect","overflowOffsets","offsetData","multiply","computeAutoPlacement","flipVariations","_options$allowedAutoP","allowedAutoPlacements","allPlacements","allowedPlacements","overflows","getExpandedFallbackPlacements","oppositePlacement","flip","_options$mainAxis","checkMainAxis","_options$altAxis","checkAltAxis","specifiedFallbackPlacements","_options$flipVariatio","preferredPlacement","isBasePlacement","fallbackPlacements","referenceRect","checksMap","makeFallbackChecks","firstFittingPlacement","_basePlacement","isStartVariation","mainVariationSide","altVariationSide","checks","check","numberOfChecks","_loop","_i","fittingPlacement","_ret","flip$1","getSideOffsets","preventedOffsets","isAnySideFullyClipped","hide","referenceOverflow","popperAltOverflow","referenceClippingOffsets","popperEscapeOffsets","isReferenceHidden","hasPopperEscaped","hide$1","distanceAndSkiddingToXY","rects","invertDistance","skidding","distance","_options$offset","_data$state$placement","offset$1","popperOffsets$1","getAltAxis","preventOverflow","_options$tether","tether","_options$tetherOffset","tetherOffset","altAxis","tetherOffsetValue","normalizedTetherOffsetValue","offsetModifierState","_offsetModifierState$","mainSide","altSide","additive","minLen","maxLen","arrowPaddingObject","arrowPaddingMin","arrowPaddingMax","arrowLen","minOffset","maxOffset","clientOffset","offsetModifierValue","tetherMin","tetherMax","preventedOffset","_offsetModifierState$2","_mainSide","_altSide","_offset","_len","_min","_max","isOriginSide","_offsetModifierValue","_tetherMin","_tetherMax","_preventedOffset","preventOverflow$1","getHTMLElementScroll","getNodeScroll","isElementScaled","getCompositeRect","elementOrVirtualElement","isOffsetParentAnElement","offsetParentIsScaled","documentElement","order","modifiers","map","visited","modifier","sort","requires","dep","depModifier","orderModifiers","orderedModifiers","phase","pending","resolve","mergeByName","merged","current","existing","DEFAULT_OPTIONS","areValidElements","_key","popperGenerator","generatorOptions","_generatorOptions","_generatorOptions$def","defaultModifiers","_generatorOptions$def2","defaultOptions","effectCleanupFns","isDestroyed","setOptionsAction","cleanupModifierEffects","runModifierEffects","_state$elements","_state$orderedModifie","_state$orderedModifie2","_ref$options","cleanupFn","noopFn","createPopper","COMPONENT_NAME","getPopperUtilityClass","flipPlacement","resolveAnchorEl","anchorEl","isVirtualElement","defaultPopperOptions","PopperTooltip","_slots$root","initialPlacement","popperOptions","popperRefProp","TransitionProps","tooltipRef","ownRef","popperRef","handlePopperRef","handlePopperRefRef","rtlPlacement","setPlacement","resolvedAnchorElement","setResolvedAnchorElement","handlePopperUpdate","box","popperModifiers","childProps","Root","rootProps","Popper","containerProp","keepMounted","transition","exited","setExited","handleEnter","handleExited","resolvedAnchorEl","display","transitionProps","useThemeSystem","_setPrototypeOf","_inheritsLoose","subClass","superClass","setPrototypeOf","timeoutsShape","TransitionGroupContext","forceReflow","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","_React$Component","_this","parentGroup","appear","initialStatus","prevState","nextIn","_proto","prevProps","nextStatus","exit","enter","mounting","_this2","appearing","maybeNode","maybeAppearing","timeouts","enterTimeout","_this3","nextState","callback","_this4","active","handler","doesNotHaveTimeoutOrListener","maybeNextCallback","_this$props","pt","noop","Transition$1","reflow","getTransitionProps","_style$transitionDura","_style$transitionTimi","getScale","isWebKit154","Grow","addEndListener","inProp","onEnter","onEntered","onEntering","onExit","onExited","onExiting","TransitionComponent","timer","autoTimeout","nodeRef","normalizedTransitionCallback","maybeIsAppearing","handleEntering","isAppearing","transitionDuration","transitionTimingFunction","handleEntered","handleExiting","handleExit","Grow$1","PopperRoot","BasePopper","components","componentsProps","RootComponent","Popper$1","getTooltipUtilityClass","tooltipClasses","tooltipClasses$1","disableInteractive","touch","TooltipPopper","TooltipTooltip","TooltipArrow","hystersisOpen","hystersisTimer","cursorPosition","composeEventHandler","eventHandler","_slots$popper","_slots$transition","_slots$tooltip","_slots$arrow","_slotProps$popper","_ref6","_slotProps$popper2","_slotProps$transition","_slotProps$tooltip","_ref7","_slotProps$tooltip2","_slotProps$arrow","_ref8","_slotProps$arrow2","childrenProp","describeChild","disableFocusListener","disableHoverListener","disableInteractiveProp","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","idProp","leaveDelay","leaveTouchDelay","onClose","onOpen","PopperComponentProp","PopperProps","title","TransitionComponentProp","isRtl","childNode","setChildNode","arrowRef","setArrowRef","ignoreNonTouchEvents","closeTimer","enterTimer","leaveTimer","touchTimer","setOpenState","prevUserSelect","stopTouchInteraction","handleOpen","handleClose","handleLeave","focusVisibleRef","setChildIsFocusVisible","handleBlur","handleFocus","detectTouchStart","childrenProps","handleMouseOver","handleMouseLeave","handleTouchStart","handleTouchEnd","nativeEvent","handleMouseMove","nameOrDescProps","titleIsString","interactiveWrapperListeners","_PopperProps$popperOp","tooltipModifiers","PopperComponent","TooltipComponent","ArrowComponent","popperProps","tooltipProps","tooltipArrowProps","TransitionPropsInner","Tooltip$1","getIcon","menuLabel","leading","MuiListItemIcon","MenuItem","allowForLeadingIcons","iconPathBefore","iconPathAfter","hasAutoFocus","isDense","isSubMenuParent","hasDisabledGutters","hasDivider","focusVisibleClassName","menuItem","MuiMenuItem","MuiListItemText","getAllGroups","menuDefinition","SubMenu","setAnchorEl","parentMenuItem","parentItemProps","handleParentMenuItemClick","renderSubMenuItems","includedGroups","group","GroupedMenuItemList","Menu","getOrderedGroupItems","groupId","allItems","menuProps","commandHandler","groupsToInclude","sortedGroups","itemArray","allowSpaceForLeadingIcons","createMenuItemProps","isLastItemInGroup","divKey","itemInfo","menuItemProps","TopLevelMenu","columnId","MenuColumn","metadata","Grid","List","GridMenu","multiColumnMenu","sortedColumns","columnNumbers","columnName","col","getUsePromiseOptionsDefaults","usePromise","promiseFactoryCallback","defaultValueRef","optionsDefaultedRef","setIsLoading","promiseIsCurrent","MenuIcon","HamburgerMenuButton","menuProvider","normalMenu","fullMenu","containerRef","ariaLabelPrefix","isMenuOpen","setMenuOpen","showFullMenu","setShowFullMenu","handleMenuItemClick","handleMenuButtonClick","prevIsOpen","isOpening","menuCommandHandler","command","setOffset","normalMenuData","fullMenuData","menu","IconButton","Drawer","isTooltipSuppressed","adjustMarginToAlignToEdge","MuiIconButton","Spinner","LoaderCircle","TextField","hasError","helperText","onFocus","onBlur","ShadLabel","ShadInput","Toolbar","AppBar","MuiToolbar","alertVariants","Alert","AlertTitle","AlertDescription","badgeVariants","Badge","Card","CardHeader","CardTitle","CardDescription","CardContent","CardFooter","Sonner","Toaster","Slider","SliderPrimitive","Switch","SwitchPrimitives","Tabs","TabsList","TabsTrigger","TabsContent","InstallButton","isInstalling","handleClick","buttonText","Download","EnableButton","isEnabling","DisableButton","isDisabling","UpdateButton","isUpdating","MarkdownRenderer","markdown","anchorTarget","Markdown","FilterButton","Filter","DropdownMenuItemType","DropdownMenuItemType2","FilterDropdown","groups","NoExtensionsFound","MoreInfo","category","downloads","languages","moreInfoUrl","numberFormatted","NumberFormat","handleScrollToBottom","User","locale","LucideLink","CircleHelp","VersionHistory","versionHistory","showAllVersions","setShowAllVersions","currentDate","formatTimeString","dateString","date","dateDiff","yearDiff","monthDiff","dayDiff","timeString","sortedEntries","Footer","publisherDisplayName","fileSize","locales","formattedFileSize","formatBytes","languageNames","codes","displayNames","badgesPlaceholder","selectedType","FILTERABLE_RESOURCE_LIST_STRING_KEYS","getLanguageOptions","resources","selectedLanguages","allLanguages","resource","starredLanguages","prioritizedLanguages","aIsPrioritized","bIsPrioritized","language","getActionButtonContent","installResource","getActionContent","idsBeingHandled","getText","updateText","installedText","FilterableResourceList","isLoadingResources","selectedTypes","setSelectedTypes","setSelectedLanguages","openResource","uninstallResource","actionText","anyText","dialogSubtitleText","dialogTitleText","filterInputText","filterByText","fullNameText","languageText","languagesText","loadingResourcesText","noResultsText","openText","removeText","resultsText","showingText","sizeText","typeText","typesText","typeDblText","typeErText","typeSlrText","typeXrText","typeUnknownText","isInitialized","setIsInitialized","installInfo","setInstallInfo","installOrRemoveResource","dblEntryUid","action","newInstallInfo","prevInfo","getErrorMessage","currentInstallInfo","res","textFilteredResources","filter","typeOptions","textAndTypeFilteredResources","textAndTypeAndLanguageFilteredResources","sortConfig","setSortConfig","sortedResources","aValue","bValue","newSortConfig","buildTableHead","getTypeCount","getLanguageCount","BookOpen","Shapes","Globe","Ellipsis","UiLanguageSelector","knownUiLanguages","primaryLanguage","fallbackLanguages","onLanguagesChange","onPrimaryLanguageChange","onFallbackLanguagesChange","selectFallbackLanguagesText","setIsOpen","handleLanguageChange","lang","getLanguageDisplayName","uiLang","altName","_d","_c","_e","_f","useEvent","unsubscriber","noopUnsubscriber","useEventAsync","unsubscribe","unsub"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[5,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,228]} \ No newline at end of file diff --git a/lib/platform-bible-react/src/components/advanced/filterable-resource-list/filter.component.tsx b/lib/platform-bible-react/src/components/advanced/filterable-resource-list/filter.component.tsx new file mode 100644 index 0000000000..44d9a8b2d9 --- /dev/null +++ b/lib/platform-bible-react/src/components/advanced/filterable-resource-list/filter.component.tsx @@ -0,0 +1,61 @@ +import { Badge } from '@/components/shadcn-ui/badge'; +import { Button } from '@/components/shadcn-ui/button'; +import { Label } from '@/components/shadcn-ui/label'; +import { X } from 'lucide-react'; +import MultiSelectComboBox, { MultiSelectComboBoxProps } from '../multi-select-combo-box.component'; + +interface FilterProps extends MultiSelectComboBoxProps { + badgesPlaceholder: string; +} + +function Filter({ + entries, + getEntriesCount, + selected, + onChange, + placeholder, + commandEmptyMessage, + customSelectedText, + sortSelected, + icon, + className, + badgesPlaceholder, +}: FilterProps) { + return ( +
    + + {selected.length > 0 ? ( +
    + {selected.map((type) => ( + + + {entries.find((t) => t.value === type)?.label} + + ))} +
    + ) : ( + + )} +
    + ); +} + +export default Filter; diff --git a/lib/platform-bible-react/src/components/advanced/filterable-resource-list/filterable-resource-list.component.tsx b/lib/platform-bible-react/src/components/advanced/filterable-resource-list/filterable-resource-list.component.tsx index a438248637..b10b77d9b7 100644 --- a/lib/platform-bible-react/src/components/advanced/filterable-resource-list/filterable-resource-list.component.tsx +++ b/lib/platform-bible-react/src/components/advanced/filterable-resource-list/filterable-resource-list.component.tsx @@ -1,22 +1,20 @@ -import ComboBox from '@/components/basics/combo-box.component'; import Spinner from '@/components/basics/spinner.component'; import { Button } from '@/components/shadcn-ui/button'; import { Card, CardContent, CardDescription, + CardFooter, CardHeader, CardTitle, } from '@/components/shadcn-ui/card'; import { DropdownMenu, - DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from '@/components/shadcn-ui/dropdown-menu'; -import { Input } from '@/components/shadcn-ui/input'; import { Label } from '@/components/shadcn-ui/label'; import { Table, @@ -32,35 +30,42 @@ import { ChevronsUpDown, ChevronUp, Ellipsis, - Loader, - Search, + Globe, + Shapes, } from 'lucide-react'; +import Filter from '@/components/advanced/filterable-resource-list/filter.component'; +import type { MultiSelectComboBoxEntry } from '@/components/advanced/multi-select-combo-box.component'; import { DblResourceData, getErrorMessage, LanguageStrings, LocalizeKey, - ResourceType, } from 'platform-bible-utils'; import { useEffect, useMemo, useState } from 'react'; +import SearchBar from '@/components/basics/search-bar.component'; export const FILTERABLE_RESOURCE_LIST_STRING_KEYS: LocalizeKey[] = [ '%resources_action%', + '%resources_any%', '%resources_dialog_subtitle%', '%resources_dialog_title%', + '%resources_filterBy%', '%resources_filterInput%', '%resources_fullName%', '%resources_get%', '%resources_installed%', '%resources_language%', - '%resources_languageFilter%', + '%resources_languages%', '%resources_loadingResources%', '%resources_noResults%', '%resources_open%', '%resources_remove%', + '%resources_results%', + '%resources_showing%', '%resources_size%', '%resources_type%', + '%resources_types%', '%resources_type_DBL%', '%resources_type_ER%', '%resources_type_SLR%', @@ -75,32 +80,29 @@ type InstallInfo = { }; type SortConfig = { - key: 'fullName' | 'bestLanguageName'; + key: 'fullName' | 'bestLanguageName' | 'type' | 'size' | 'action'; direction: 'ascending' | 'descending'; }; -type TypeOptions = { - type: ResourceType; - localizedValue: string; -}; - const getLanguageOptions = ( - dblResources: DblResourceData[], - languageFilter: string[], -): string[] => { - const sortedLanguages = Array.from( - new Set(dblResources.map((resource) => resource.bestLanguageName)), + resources: DblResourceData[], + selectedLanguages: string[], +): MultiSelectComboBoxEntry[] => { + const allLanguages: string[] = Array.from( + new Set( + resources.map((resource) => { + return resource.bestLanguageName; + }), + ), ); - const prioritizedLanguages = new Set( - languageFilter.concat( - dblResources - .filter((resource) => resource.installed) - .map((resource) => resource.bestLanguageName), - ), + const starredLanguages = new Set( + resources.filter((resource) => resource.installed).map((resource) => resource.bestLanguageName), ); - return sortedLanguages.sort((a, b) => { + const prioritizedLanguages = new Set(selectedLanguages.concat(Array.from(starredLanguages))); + + const sortedLanguages = allLanguages.sort((a, b) => { const aIsPrioritized = prioritizedLanguages.has(a); const bIsPrioritized = prioritizedLanguages.has(b); @@ -112,6 +114,10 @@ const getLanguageOptions = ( return a.localeCompare(b); }); + + return sortedLanguages.map((language) => { + return { label: language, value: language, starred: starredLanguages.has(language) }; + }); }; const getActionButtonContent = ( @@ -120,7 +126,11 @@ const getActionButtonContent = ( installResource: (dblEntryUid: string, action: 'install' | 'remove') => void, ) => { return ( - ); @@ -137,7 +147,7 @@ const getActionContent = ( const isBeingHandled = idsBeingHandled.includes(resource.dblEntryUid); if (isBeingHandled) { return ( - ); @@ -153,44 +163,51 @@ const getActionContent = ( type FilterableResourceListProps = { localizedStrings: LanguageStrings; - dblResources: DblResourceData[]; - isLoadingDblResources: boolean; - typeFilter: ResourceType[]; - setTypeFilter: (stateValue: ResourceType[]) => void; - languageFilter: string[]; - setLanguageFilter: (stateValue: string[]) => void; + resources: DblResourceData[]; + isLoadingResources: boolean; + selectedTypes: string[]; + setSelectedTypes: (stateValue: string[]) => void; + selectedLanguages: string[]; + setSelectedLanguages: (stateValue: string[]) => void; openResource: (projectId: string) => void; installResource: ((uid: string) => Promise) | undefined; uninstallResource: ((uid: string) => Promise) | undefined; + className?: string; }; function FilterableResourceList({ localizedStrings, - dblResources, - isLoadingDblResources, - typeFilter, - setTypeFilter, - languageFilter, - setLanguageFilter, + resources, + isLoadingResources, + selectedTypes, + setSelectedTypes, + selectedLanguages, + setSelectedLanguages, openResource, installResource, uninstallResource, + className, }: FilterableResourceListProps) { const actionText: string = localizedStrings['%resources_action%']; + const anyText: string = localizedStrings['%resources_any%']; const dialogSubtitleText: string = localizedStrings['%resources_dialog_subtitle%']; const dialogTitleText: string = localizedStrings['%resources_dialog_title%']; const filterInputText: string = localizedStrings['%resources_filterInput%']; + const filterByText: string = localizedStrings['%resources_filterBy%']; const fullNameText: string = localizedStrings['%resources_fullName%']; const getText: string = localizedStrings['%resources_get%']; const installedText: string = localizedStrings['%resources_installed%']; const languageText: string = localizedStrings['%resources_language%']; - const languageFilterText: string = localizedStrings['%resources_languageFilter%']; + const languagesText: string = localizedStrings['%resources_languages%']; const loadingResourcesText: string = localizedStrings['%resources_loadingResources%']; const noResultsText: string = localizedStrings['%resources_noResults%']; const openText: string = localizedStrings['%resources_open%']; const removeText: string = localizedStrings['%resources_remove%']; + const resultsText: string = localizedStrings['%resources_results%']; + const showingText: string = localizedStrings['%resources_showing%']; const sizeText: string = localizedStrings['%resources_size%']; const typeText: string = localizedStrings['%resources_type%']; + const typesText: string = localizedStrings['%resources_types%']; const typeDblText: string = localizedStrings['%resources_type_DBL%']; const typeErText: string = localizedStrings['%resources_type_ER%']; const typeSlrText: string = localizedStrings['%resources_type_SLR%']; @@ -198,6 +215,30 @@ function FilterableResourceList({ const typeUnknownText: string = localizedStrings['%resources_type_unknown%']; const updateText: string = localizedStrings['%resources_update%']; + const [isInitialized, setIsInitialized] = useState(false); + + // When no languages are selected on the first render of this component, set default selection to + // languages that have resources installed + useEffect(() => { + if (isInitialized) return; + if (selectedLanguages.length > 0) { + setIsInitialized(true); + return; + } + if (resources.length > 0 && selectedLanguages.length === 0) { + setSelectedLanguages( + Array.from( + new Set( + resources + .filter((resource) => resource.installed === true) + .map((resource) => resource.bestLanguageName), + ), + ), + ); + setIsInitialized(true); + } + }, [resources, selectedLanguages.length, setSelectedLanguages, isInitialized, setIsInitialized]); + const [installInfo, setInstallInfo] = useState([]); const installOrRemoveResource = (dblEntryUid: string, action: 'install' | 'remove'): void => { @@ -220,7 +261,7 @@ function FilterableResourceList({ useEffect(() => { setInstallInfo((currentInstallInfo) => currentInstallInfo.filter((info) => { - const resource = dblResources.find((res) => res.dblEntryUid === info.dblEntryUid); + const resource = resources.find((res) => res.dblEntryUid === info.dblEntryUid); if (!resource) return true; @@ -230,12 +271,12 @@ function FilterableResourceList({ return true; }), ); - }, [dblResources]); + }, [resources]); const [textFilter, setTextFilter] = useState(''); const textFilteredResources = useMemo(() => { - return dblResources.filter((resource) => { + return resources.filter((resource) => { const filter = textFilter.toLowerCase(); return ( resource.displayName.toLowerCase().includes(filter) || @@ -243,66 +284,30 @@ function FilterableResourceList({ resource.bestLanguageName.toLowerCase().includes(filter) ); }); - }, [dblResources, textFilter]); + }, [resources, textFilter]); - const typeOptions: TypeOptions[] = useMemo(() => { + const typeOptions: MultiSelectComboBoxEntry[] = useMemo(() => { return [ - { type: 'DBLResource', localizedValue: typeDblText }, - { type: 'EnhancedResource', localizedValue: typeErText }, - { type: 'SourceLanguageResource', localizedValue: typeSlrText }, - { type: 'XmlResource', localizedValue: typeXrText }, + { value: 'DBLResource', label: typeDblText }, + { value: 'EnhancedResource', label: typeErText }, + { value: 'SourceLanguageResource', label: typeSlrText }, + { value: 'XmlResource', label: typeXrText }, ]; }, [typeDblText, typeErText, typeSlrText, typeXrText]); - const typeFilterChangeHandler = (newType: ResourceType): void => { - const prevTypeFilter: ResourceType[] = [...typeFilter]; - let newTypeFilter: ResourceType[] = []; - - if (!prevTypeFilter || prevTypeFilter.length === 0) { - newTypeFilter = [newType]; - } else { - newTypeFilter = prevTypeFilter.includes(newType) - ? prevTypeFilter.filter((value) => value !== newType) - : [...prevTypeFilter, newType]; - } - setTypeFilter(newTypeFilter); - }; - const textAndTypeFilteredResources = useMemo(() => { + if (selectedTypes.length === 0) return textFilteredResources; return textFilteredResources.filter((resource) => { - return typeFilter.includes(resource.type); + return selectedTypes.includes(resource.type); }); - }, [textFilteredResources, typeFilter]); - - useEffect(() => { - if (languageFilter.length === 0) { - setLanguageFilter( - dblResources - .filter((resource) => resource.installed === true) - .map((resource) => resource.bestLanguageName), - ); - } - }, [dblResources, languageFilter.length, setLanguageFilter]); - - const languageFilterChangeHandler = (newLanguage: string): void => { - const prevLanguageFilter: string[] = [...languageFilter]; - let newLanguageFilter: string[] = []; - - if (!prevLanguageFilter || prevLanguageFilter.length === 0) { - newLanguageFilter = [newLanguage]; - } else { - newLanguageFilter = prevLanguageFilter.includes(newLanguage) - ? prevLanguageFilter.filter((value) => value !== newLanguage) - : [...prevLanguageFilter, newLanguage]; - } - setLanguageFilter(newLanguageFilter); - }; + }, [textFilteredResources, selectedTypes]); const textAndTypeAndLanguageFilteredResources = useMemo(() => { + if (selectedLanguages.length === 0) return textAndTypeFilteredResources; return textAndTypeFilteredResources.filter((resource) => { - return languageFilter.includes(resource.bestLanguageName); + return selectedLanguages.includes(resource.bestLanguageName); }); - }, [languageFilter, textAndTypeFilteredResources]); + }, [selectedLanguages, textAndTypeFilteredResources]); const [sortConfig, setSortConfig] = useState({ key: 'bestLanguageName', @@ -311,8 +316,15 @@ function FilterableResourceList({ const sortedResources = useMemo(() => { return [...textAndTypeAndLanguageFilteredResources].sort((a, b) => { - const aValue = a[sortConfig.key]; - const bValue = b[sortConfig.key]; + let aValue: string | number; + let bValue: string | number; + if (sortConfig.key === 'action') { + aValue = (a.installed ? 10 : 0) + (a.updateAvailable ? 1 : 0); + bValue = (b.installed ? 10 : 0) + (b.updateAvailable ? 1 : 0); + } else { + aValue = a[sortConfig.key]; + bValue = b[sortConfig.key]; + } if (aValue < bValue) { return sortConfig.direction === 'ascending' ? -1 : 1; @@ -332,168 +344,162 @@ function FilterableResourceList({ setSortConfig(newSortConfig); }; + const buildTableHead = (key: SortConfig['key'], label: string) => ( + handleSort(key)}> +
    +
    {label}
    + {sortConfig.key !== key && } + {sortConfig.key === key && + (sortConfig.direction === 'ascending' ? ( + + ) : ( + + ))} +
    +
    + ); + + const getTypeCount = (option: MultiSelectComboBoxEntry): number => { + return resources.filter((resource) => resource.type === option.value).length ?? 0; + }; + + const getLanguageCount = (option: MultiSelectComboBoxEntry): number => { + return resources.filter((resource) => resource.bestLanguageName === option.value).length ?? 0; + }; + return ( - - -
    - -
    - {dialogTitleText} - {dialogSubtitleText} -
    -
    -
    - - {isLoadingDblResources || !dblResources ? ( -
    - - -
    - ) : ( -
    -
    -
    - setTextFilter(event.target.value)} - value={textFilter} +
    + + +
    +
    + +
    + {dialogTitleText} + {dialogSubtitleText} + -
    - - - - - - {typeOptions.map((option) => ( - { - e.preventDefault(); - typeFilterChangeHandler(option.type); - }} - > - {option.localizedValue} - - ))} - - -
    +
    + + } + badgesPlaceholder={anyText} + /> - {sortedResources.length === 0 ? ( -
    - -
    - ) : ( - - - - - - handleSort('fullName')}> -
    - {fullNameText} - {sortConfig.key !== 'fullName' && ( - - )} - {sortConfig.key === 'fullName' && - (sortConfig.direction === 'ascending' ? ( - - ) : ( - - ))} -
    -
    - handleSort('bestLanguageName')}> -
    - {languageText} - {sortConfig.key !== 'bestLanguageName' && ( - - )} - {sortConfig.key === 'bestLanguageName' && - (sortConfig.direction === 'ascending' ? ( - - ) : ( - - ))} -
    -
    - {typeText} - {sizeText} - {actionText} -
    -
    - - {sortedResources.map((resource) => ( - - - - - {resource.displayName} - {resource.fullName} - {resource.bestLanguageName} - - {typeOptions.find((type) => type.type === resource.type)?.localizedValue ?? - typeUnknownText} - - {resource.size} - -
    - {getActionContent( - resource, - installInfo.map((info) => info.dblEntryUid), - getText, - updateText, - installedText, - installOrRemoveResource, - )} - {resource.installed && ( - - - - - - openResource(resource.projectId)}> - {openText} - - - - - installOrRemoveResource(resource.dblEntryUid, 'remove') - } - > - {removeText} - - - - )} -
    -
    -
    - ))} -
    -
    - )} + } + badgesPlaceholder={anyText} + /> +
    - )} - -
    + + + {isLoadingResources || !resources ? ( +
    + + +
    + ) : ( +
    + {sortedResources.length === 0 ? ( +
    + +
    + ) : ( + + + + + + {buildTableHead('fullName', fullNameText)} + {buildTableHead('bestLanguageName', languageText)} + {buildTableHead('type', typeText)} + {buildTableHead('size', sizeText)} + {buildTableHead('action', actionText)} + + + + {sortedResources.map((resource) => ( + + + + + {resource.displayName} + {resource.fullName} + {resource.bestLanguageName} + + {typeOptions.find((type) => type.value === resource.type)?.label ?? + typeUnknownText} + + {resource.size} + +
    + {getActionContent( + resource, + installInfo.map((info) => info.dblEntryUid), + getText, + updateText, + installedText, + installOrRemoveResource, + )} + {resource.installed && ( + + + + + + openResource(resource.projectId)} + > + {openText} + + + + + installOrRemoveResource(resource.dblEntryUid, 'remove') + } + > + {removeText} + + + + )} +
    +
    +
    + ))} +
    +
    + )} +
    + )} +
    + + {sortedResources.length > 0 && ( + + )} + + +
    ); } diff --git a/lib/platform-bible-react/src/components/advanced/multi-select-combo-box.component.tsx b/lib/platform-bible-react/src/components/advanced/multi-select-combo-box.component.tsx new file mode 100644 index 0000000000..b91bf78c34 --- /dev/null +++ b/lib/platform-bible-react/src/components/advanced/multi-select-combo-box.component.tsx @@ -0,0 +1,159 @@ +import { Button } from '@/components/shadcn-ui/button'; +import { + Command, + CommandEmpty, + CommandGroup, + CommandInput, + CommandItem, + CommandList, +} from '@/components/shadcn-ui/command'; +import { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover'; +import { cn } from '@/utils/shadcn-ui.util'; +import { Check, ChevronsUpDown, Star } from 'lucide-react'; +import { ReactNode, useCallback, useMemo, useState } from 'react'; + +export type MultiSelectComboBoxEntry = { + value: string; + label: string; + starred?: boolean; +}; + +export interface MultiSelectComboBoxProps { + entries: MultiSelectComboBoxEntry[]; + getEntriesCount?: (option: MultiSelectComboBoxEntry) => number; + selected: string[]; + onChange: (values: string[]) => void; + placeholder: string; + commandEmptyMessage?: string; + customSelectedText?: string; + sortSelected?: boolean; + icon?: ReactNode; + className?: string; +} + +function MultiSelectComboBox({ + entries, + getEntriesCount = undefined, + selected, + onChange, + placeholder, + commandEmptyMessage = 'No entries found', + customSelectedText, + sortSelected = false, + icon = undefined, + className = undefined, +}: MultiSelectComboBoxProps) { + const [open, setOpen] = useState(false); + + const handleSelect = useCallback( + (label: string) => { + const value = entries.find((entry) => entry.label === label)?.value; + if (!value) return; + onChange( + selected.includes(value) ? selected.filter((item) => item !== value) : [...selected, value], + ); + }, + [entries, selected, onChange], + ); + + const getPlaceholderText = () => { + if (customSelectedText) return customSelectedText; + return placeholder; + }; + + const sortedOptions = useMemo(() => { + if (!sortSelected) return entries; + + const starredItems = entries + .filter((opt) => opt.starred) + .sort((a, b) => a.label.localeCompare(b.label)); + const nonStarredItems = entries + .filter((opt) => !opt.starred) + .sort((a, b) => { + const aSelected = selected.includes(a.value); + const bSelected = selected.includes(b.value); + if (aSelected && !bSelected) return -1; + if (!aSelected && bSelected) return 1; + return a.label.localeCompare(b.label); + }); + + return [...starredItems, ...nonStarredItems]; + }, [entries, selected, sortSelected]); + + return ( +
    + + + + + + + + + {commandEmptyMessage} + + {sortedOptions.map((option) => { + const count: number | undefined = getEntriesCount + ? getEntriesCount(option) + : undefined; + return ( + +
    + +
    +
    + {option.starred && } +
    +
    {option.label}
    + {getEntriesCount && ( +
    {count}
    + )} +
    + ); + })} +
    +
    +
    +
    +
    +
    + ); +} + +export default MultiSelectComboBox; diff --git a/lib/platform-bible-react/src/components/advanced/multi-select-combo-box.tsx b/lib/platform-bible-react/src/components/advanced/multi-select-combo-box.tsx deleted file mode 100644 index 3d19459abc..0000000000 --- a/lib/platform-bible-react/src/components/advanced/multi-select-combo-box.tsx +++ /dev/null @@ -1,155 +0,0 @@ -import { Button } from '@/components/shadcn-ui/button'; -import { - Command, - CommandEmpty, - CommandGroup, - CommandInput, - CommandItem, - CommandList, -} from '@/components/shadcn-ui/command'; -import { Popover, PopoverContent, PopoverTrigger } from '@/components/shadcn-ui/popover'; -import { cn } from '@/utils/shadcn-ui.util'; -import { Check, ChevronsUpDown, Star } from 'lucide-react'; -import { ReactNode, useCallback, useMemo, useState } from 'react'; - -type MultiSelectComboBoxEntry = { - value: string; - label: string; - starred?: boolean; -}; - -interface MultiSelectComboBoxProps { - entries: MultiSelectComboBoxEntry[]; - getEntriesCount?: (option: MultiSelectComboBoxEntry) => number; - selected: string[]; - onChange: (values: string[]) => void; - placeholder: string; - commandEmptyMessage?: string; - customSelectedText?: string; - sortSelected?: boolean; - icon?: ReactNode; -} - -function MultiSelectComboBox({ - entries, - getEntriesCount = undefined, - selected, - onChange, - placeholder, - commandEmptyMessage = 'No entries found', - customSelectedText, - sortSelected = false, - icon = undefined, -}: MultiSelectComboBoxProps) { - const [open, setOpen] = useState(false); - - const handleSelect = useCallback( - (value: string) => { - onChange( - selected.includes(value) ? selected.filter((item) => item !== value) : [...selected, value], - ); - }, - [selected, onChange], - ); - - const getPlaceholderText = () => { - if (selected.length === 1) - return entries.find((option) => option.value === selected[0])?.label ?? placeholder; - if (customSelectedText) return customSelectedText; - return placeholder; - }; - - const sortedOptions = useMemo(() => { - if (!sortSelected) return entries; - - const starredItems = entries - .filter((opt) => opt.starred) - .sort((a, b) => a.label.localeCompare(b.label)); - const nonStarredItems = entries - .filter((opt) => !opt.starred) - .sort((a, b) => { - const aSelected = selected.includes(a.value); - const bSelected = selected.includes(b.value); - if (aSelected && !bSelected) return -1; - if (!aSelected && bSelected) return 1; - return a.label.localeCompare(b.label); - }); - - return [...starredItems, ...nonStarredItems]; - }, [entries, selected, sortSelected]); - - return ( - - - - - - - - - {commandEmptyMessage} - - {sortedOptions.map((option) => { - const count: number | undefined = getEntriesCount - ? getEntriesCount(option) - : undefined; - return ( - -
    - -
    -
    - {option.starred && } -
    -
    {option.label}
    - {getEntriesCount && ( -
    {count}
    - )} -
    - ); - })} -
    -
    -
    -
    -
    - ); -} - -export default MultiSelectComboBox; diff --git a/lib/platform-bible-react/src/index.ts b/lib/platform-bible-react/src/index.ts index 3e5d56ee6c..11c69ab825 100644 --- a/lib/platform-bible-react/src/index.ts +++ b/lib/platform-bible-react/src/index.ts @@ -36,7 +36,10 @@ export { inventoryCountColumn, inventoryStatusColumn, } from './components/advanced/inventory/inventory-columns'; -export { default as MultiSelectComboBox } from './components/advanced/multi-select-combo-box'; +export { + default as MultiSelectComboBox, + type MultiSelectComboBoxEntry, +} from './components/advanced/multi-select-combo-box.component'; export { default as NavigationContentSearch, type TabKeyValueContent, @@ -144,6 +147,7 @@ export { type VersionHistoryType, } from './components/advanced/extension-marketplace/version-history.component'; export { default as Footer } from './components/advanced/extension-marketplace/footer.component'; +export { default as Filter } from './components/advanced/filterable-resource-list/filter.component'; export { default as FilterableResourceList } from './components/advanced/filterable-resource-list/filterable-resource-list.component'; export { FILTERABLE_RESOURCE_LIST_STRING_KEYS } from './components/advanced/filterable-resource-list/filterable-resource-list.component'; export { diff --git a/lib/platform-bible-react/src/preview/pages/components/advanced.component.tsx b/lib/platform-bible-react/src/preview/pages/components/advanced.component.tsx index 43089060d1..1e4e409aa8 100644 --- a/lib/platform-bible-react/src/preview/pages/components/advanced.component.tsx +++ b/lib/platform-bible-react/src/preview/pages/components/advanced.component.tsx @@ -11,6 +11,8 @@ import { import { defaultScrRef, ScrollGroupId } from 'platform-bible-utils'; import { useState } from 'react'; import BookSelectorExample from './advanced/book-selector-example.component'; +import FilterExample from './advanced/filter-example'; +import FilterableResourceListExample from './advanced/filterable-resource-list-example.component'; import InventoryExample from './advanced/inventory-example.component'; import MarkdownRendererExample from './advanced/markdown-renderer-example.component'; import MarketplaceButtonExamples from './advanced/marketplace-buttons.example.component'; @@ -18,8 +20,8 @@ import MarketplaceExamples from './advanced/marketplace.example.component'; import MultiSelectComboBoxExample from './advanced/multi-select-combo-box-example'; import ScriptureResultsViewerExample from './advanced/scripture-results-viewer.examples.component'; import SettingsListExamples from './advanced/settings-list.examples.component'; -import { columns, data } from './data-sources/data-table-content'; import UiLanguageSelectorExample from './advanced/ui-language-selector-example.component'; +import { columns, data } from './data-sources/data-table-content'; import SettingSidebarContentSearchExamples from './advanced/settings-sidebar-content-search.example.component'; function Compositions() { @@ -73,7 +75,11 @@ function Compositions() { Book Selector Data Table + Filter Inventory + + Filterable Resource List + Marketplace Multi-select Combo Box @@ -108,6 +114,10 @@ function Compositions() { + + + + @@ -137,6 +147,10 @@ function Compositions() { + + + + { + return resources.filter((resource) => resource.type === option.value).length ?? 0; +}; + +function FilterExample() { + const [selectedTypes, setSelectedTypes] = useState(types.map((type) => type.value)); + + return ( +
    +

    This component is a combination of the Multi-Select Combo Box and Badge components

    + } + badgesPlaceholder="Any" + /> +
    + ); +} + +export default FilterExample; diff --git a/lib/platform-bible-react/src/preview/pages/components/advanced/filterable-resource-list-example.component.tsx b/lib/platform-bible-react/src/preview/pages/components/advanced/filterable-resource-list-example.component.tsx new file mode 100644 index 0000000000..dfd87d5470 --- /dev/null +++ b/lib/platform-bible-react/src/preview/pages/components/advanced/filterable-resource-list-example.component.tsx @@ -0,0 +1,55 @@ +import { useState } from 'react'; +import FilterableResourceList from '@/components/advanced/filterable-resource-list/filterable-resource-list.component'; +import resourceExamples from './resource-examples'; + +const localizedStrings = { + '%resources_action%': 'Action', + '%resources_any%': 'Any', + '%resources_dialog_subtitle%': 'Add resources to Home', + '%resources_dialog_title%': 'Get Resources', + '%resources_filterBy%': 'Filter by', + '%resources_filterInput%': 'Search by name, language, type', + '%resources_fullName%': 'Full Name', + '%resources_get%': 'Get', + '%resources_installed%': 'Installed', + '%resources_language%': 'Language', + '%resources_languages%': 'Languages', + '%resources_loadingResources%': 'Loading resources...', + '%resources_noResults%': 'No results found', + '%resources_open%': 'Open', + '%resources_remove%': 'Remove', + '%resources_results%': 'results', + '%resources_showing%': 'Showing', + '%resources_size%': 'Size', + '%resources_type%': 'Type', + '%resources_types%': 'Types', + '%resources_type_DBL%': 'DBL Resource', + '%resources_type_ER%': 'Enhanced Resource', + '%resources_type_SLR%': 'Source Language Text', + '%resources_type_XR%': 'XML Resource', + '%resources_type_unknown%': 'Unknown resource type', + '%resources_update%': 'Update', +}; + +function FilterableResourceListExample() { + const [selectedTypes, setSelectedTypes] = useState(['DBLResource']); + + const [selectedLanguages, setSelectedLanguages] = useState([]); + + return ( + {}} + installResource={async () => {}} + uninstallResource={async () => {}} + /> + ); +} + +export default FilterableResourceListExample; diff --git a/lib/platform-bible-react/src/preview/pages/components/advanced/multi-select-combo-box-example.tsx b/lib/platform-bible-react/src/preview/pages/components/advanced/multi-select-combo-box-example.tsx index a640fcfae9..4a31381da0 100644 --- a/lib/platform-bible-react/src/preview/pages/components/advanced/multi-select-combo-box-example.tsx +++ b/lib/platform-bible-react/src/preview/pages/components/advanced/multi-select-combo-box-example.tsx @@ -1,13 +1,9 @@ -import MultiSelectComboBox from '@/components/advanced/multi-select-combo-box'; +import MultiSelectComboBox, { + MultiSelectComboBoxEntry, +} from '@/components/advanced/multi-select-combo-box.component'; import { Blocks } from 'lucide-react'; import { useState } from 'react'; -type MultiSelectComboBoxEntry = { - value: string; - label: string; - starred?: boolean; -}; - const types: MultiSelectComboBoxEntry[] = [ { value: 'resources', label: 'Resource', starred: true }, { value: 'enhanced-resources', label: 'Enhanced Resource' }, @@ -123,11 +119,20 @@ const resources = [ }, ]; +const getOptionsCount = (option: MultiSelectComboBoxEntry): number => { + return resources.filter((resource) => resource.type === option.value).length ?? 0; +}; + function MultiSelectComboBoxExample() { const [selectedTypes, setSelectedTypes] = useState(types.map((type) => type.value)); - const getOptionsCount = (option: MultiSelectComboBoxEntry): number => { - return resources.filter((resource) => resource.type === option.value).length ?? 0; + const getCustomSelectedText = () => { + if (selectedTypes.length === types.length || selectedTypes.length === 0) return 'Any type'; + if (selectedTypes.length === 1) { + const matchingType = types.find((type) => type.value === selectedTypes[0]); + if (matchingType) return matchingType.label; + } + return `${selectedTypes.length} type${selectedTypes.length > 1 ? 's' : ''}`; }; return ( @@ -138,12 +143,8 @@ function MultiSelectComboBoxExample() { getEntriesCount={getOptionsCount} selected={selectedTypes} onChange={setSelectedTypes} - placeholder="Select types" - customSelectedText={ - selectedTypes.length === types.length || selectedTypes.length === 0 - ? 'Any type' - : `${selectedTypes.length} type${selectedTypes.length > 1 ? 's' : ''}` - } + placeholder="Types" + customSelectedText={getCustomSelectedText()} icon={} />
    diff --git a/lib/platform-bible-react/src/preview/pages/components/advanced/resource-examples.ts b/lib/platform-bible-react/src/preview/pages/components/advanced/resource-examples.ts new file mode 100644 index 0000000000..d3eac2a19e --- /dev/null +++ b/lib/platform-bible-react/src/preview/pages/components/advanced/resource-examples.ts @@ -0,0 +1,25327 @@ +import { DblResourceData } from 'platform-bible-utils'; + +const resourceExamples: DblResourceData[] = [ + { + dblEntryUid: '6855dabfcb711cc2', + displayName: 'BLA', + fullName: 'Blackfoot Gospel of Matthew [bla] Canada', + bestLanguageName: 'Siksika (bla-Latn-019)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e01f11e9b4b8e338', + displayName: 'SobP15', + fullName: 'Sob Jonah and Luke', + bestLanguageName: 'Sop (urw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '324f457845cb5d21', + displayName: 'NgBV', + fullName: 'Nguu New Testament', + bestLanguageName: 'Nguu (ngp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '355792a03079ccdd', + displayName: 'PBV', + fullName: 'The New Testament in Pogoro', + bestLanguageName: 'Shipogoro (poy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e578524a0893c6b7', + displayName: 'DWRNT', + fullName: 'Dawro New Testament', + bestLanguageName: 'Dawro (dwr-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '29d55810bbb2fbcd', + displayName: 'TUT', + fullName: 'Tutsa: Bible Translation 1st Edition', + bestLanguageName: 'Tutsa Naga (tvt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c9f3cf58d557a9f3', + displayName: 'ZiBT', + fullName: 'The New Testament in Zigua', + bestLanguageName: 'Zigua (ziw-Latn-TZ)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0c2ff0a5c8b9069c', + displayName: 'NendNP03', + fullName: 'Nend Portions - Mark', + bestLanguageName: 'Nend (anh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'abf017938be72f46', + displayName: 'MKD', + fullName: 'Morokodo', + bestLanguageName: 'Morokodo (mgc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8a448a0135a6a70a', + displayName: 'yap', + fullName: 'Yapese Bible', + bestLanguageName: 'Yapese (yap)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f2f349d77ac8f8bc', + displayName: 'Kutu', + fullName: 'The New Testament in Kutu', + bestLanguageName: 'Kutu (kdc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '25210406001d9aae', + displayName: 'tonRWV', + fullName: 'Tongan Revised West Version', + bestLanguageName: 'Tonga (Tonga Islands) (ton)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '98d1c5bee401f80c', + displayName: 'LBV', + fullName: 'The New Testament in Lughuru', + bestLanguageName: 'Chilughuru (ruf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '51b16e0b4b7c9825', + displayName: 'SANURD', + fullName: 'Sanskrit Bible (NT) in Urdu Script (سَتْیَویدَح۔)', + bestLanguageName: 'Sanskrit (san-Arab-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2a65010324d677b6', + displayName: 'AkgPor10', + fullName: 'Akukem Portions for DBL', + bestLanguageName: 'Akukem (spm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2c500771ea16da93', + displayName: 'WLC', + fullName: 'Westminster Leningrad Codex', + bestLanguageName: 'Hebrew (heb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '90799bb5b996fddc', + displayName: 'TfTP', + fullName: 'Translation for Translators in Portuguese', + bestLanguageName: 'Portuguese (por)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '06995ce9cd23361b', + displayName: 'srp1865', + fullName: 'Serbian Bible (Vuk Karadžić, Đura Daničić) [srp] Serbia', + bestLanguageName: 'Serbian (srp-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '31ce26b5803b75dd', + displayName: 'SBT', + fullName: 'SOLI BIBLE TRANSLATION', + bestLanguageName: 'Soli (sby)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c315fa9f71d4af3a', + displayName: 'enggnv', + fullName: 'Geneva Bible 1599 [eng] Old English', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1c9761e0230da6e0', + displayName: 'polUBG', + fullName: 'UWSPÓŁCZEŚNIONA BIBLIA GDAŃSKA [pol]', + bestLanguageName: 'Polish (pol)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bf8f1c7f3f9045a5', + displayName: 'engojps', + fullName: 'Old JPS TaNaKH', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8d1ad2c921d811c3', + displayName: 'SANBEN', + fullName: 'Sanskrit Bible (NT) in Bengali Script (সত্যবেদঃ।)', + bestLanguageName: 'Sanskrit (san-Beng-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9449d4ad98193779', + displayName: 'SANBUR', + fullName: 'Sanskrit Bible (NT) in Burmese Script (သတျဝေဒး၊)', + bestLanguageName: 'Sanskrit (san-Zzzz-MM-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e9ea572977b4f504', + displayName: 'SANGUJ', + fullName: 'Sanskrit Bible (NT) in Gujarati Script (સત્યવેદઃ।)', + bestLanguageName: 'Sanskrit (san-Gujr-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f95e2d9b384f8e6e', + displayName: 'SHJ', + fullName: 'Caning Bible Translation', + bestLanguageName: 'Shatt (shj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bb3df4b7c8587c77', + displayName: 'SANASM', + fullName: 'Sanskrit Bible (NT) in Assamese Script (সত্যৱেদঃ।)', + bestLanguageName: 'Sanskrit (san-Beng-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '33b6449cacf22773', + displayName: 'SANCOL', + fullName: 'Sanskrit Bible (NT) in Cologne Script (satyavEdaH|)', + bestLanguageName: 'Sanskrit (san-Latn-001-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '143e0e03cf5b12ae', + displayName: 'SANTAM', + fullName: 'Sanskrit Bible (NT) in Tamil Script (ஸத்யவேத³​:।)', + bestLanguageName: 'Sanskrit (san-Taml-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '306d6ab1ca333a1e', + displayName: 'SANTHA', + fullName: 'Sanskrit Bible (NT) in Thai Script (สตฺยเวท:ฯ)', + bestLanguageName: 'Sanskrit (san-Thai-TH-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c1f49ed98a65a544', + displayName: 'SANKAN', + fullName: 'Sanskrit Bible (NT) in Kannada Script (ಸತ್ಯವೇದಃ।)', + bestLanguageName: 'Sanskrit (san-Knda-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '89007ccbb2eb5187', + displayName: 'SANHK', + fullName: 'Sanskrit Bible (NT) in Harvard-Kyoto Script (satyavedaH|)', + bestLanguageName: 'Sanskrit (san-Latn-001-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6bc5ae3d6dd9009a', + displayName: 'SANITR', + fullName: 'Sanskrit Bible (NT) in ITRANS Script (satyavedaH|)', + bestLanguageName: 'Sanskrit (san-Latn-001-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6bb8b0fa7aca67c6', + displayName: 'SANKHM', + fullName: 'Sanskrit Bible (NT) in Khmer Script (សត្យវេទះ។)', + bestLanguageName: 'Sanskrit (san-Zzzz-KH-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '119375d97b57cf04', + displayName: 'SANMAL', + fullName: 'Sanskrit Bible (NT) in Malayalam Script (സത്യവേദഃ।)', + bestLanguageName: 'Sanskrit (san-Mlym-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5a27fd2a2de187c8', + displayName: 'SANORI', + fullName: 'Sanskrit Bible (NT) in Oriya Script (ସତ୍ୟୱେଦଃ।)', + bestLanguageName: 'Sanskrit (san-Orya-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aa146959e1d39b78', + displayName: 'SANTEL', + fullName: 'Sanskrit Bible (NT) in Telugu Script (సత్యవేదః।)', + bestLanguageName: 'Sanskrit (san-Telu-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '07225eadadcb079a', + displayName: 'SANPUN', + fullName: 'Sanskrit Bible (NT) in Punjabi Script (ਸਤ੍ਯਵੇਦਃ।)', + bestLanguageName: 'Sanskrit (san-Zzzz-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2c2cf8df5a22a46e', + displayName: 'SANSIN', + fullName: 'Sanskrit Bible (NT) in Sinhala Script (සත්‍යවේදඃ।)', + bestLanguageName: 'Sanskrit (san-Zzzz-LK-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9915a49ed60cc12f', + displayName: 'GGMU', + fullName: 'Gamo Geesha Maxxafa New Testament', + bestLanguageName: 'Gamo (gmv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '018ff00d7f55cbc1', + displayName: 'SANTIB', + fullName: 'Sanskrit Bible (NT) in Tibetan Script (སཏྱཝེདཿ།)', + bestLanguageName: 'Sanskrit (san-Tibt-CN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0b07fcef627a2db2', + displayName: 'SANIAS', + fullName: 'Sanskrit Bible (NT) in IAST Script (satyavedaḥ|)', + bestLanguageName: 'Sanskrit (san-Latn-001-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da905e46720432e2', + displayName: 'MbKamNT', + fullName: 'Mborena Kam NT for DBL', + bestLanguageName: 'Borei (gai)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd4599ff3c6b97f3a', + displayName: 'SANISO', + fullName: 'Sanskrit Bible (NT) in ISO Script (satyavēdaḥ|)', + bestLanguageName: 'Sanskrit (san-Latn-001-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cb0425ae772bb042', + displayName: 'NdBV', + fullName: 'The New Testament in Ndamba', + bestLanguageName: 'Ndamba (ndj-Latn-TZ)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b52bc8b7af3bdc6f', + displayName: 'BBL', + fullName: 'Bible in belarusian', + bestLanguageName: 'Belarusian (bel-BY-tarask)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9a875168ff4df1a3', + displayName: 'SANVEL', + fullName: 'Sanskrit Bible (NT) in Velthuis Script (satyaveda.h|)', + bestLanguageName: 'Sanskrit (san-Latn-001-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9b076bc0f1856204', + displayName: 'PFJV', + fullName: 'Pular Fuuta-Jallon New Testament', + bestLanguageName: 'Fulah (fuf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e8b40ccabe793c0d', + displayName: 'SANDEV', + fullName: 'Sanskrit Bible (NT) in Devanagari Script (सत्यवेदः।)', + bestLanguageName: 'Sanskrit (san-Deva-IN-laukika)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '542b32484b6e38c2', + displayName: 'deutkw', + fullName: 'Textbibel von Kautzsch und Weizsäcker [deu] German', + bestLanguageName: 'German (deu)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '542B32484B6E38C29696ED65794740443B9BFD0FABCDEFFF', + }, + { + dblEntryUid: 'ba74d885b27806bb', + displayName: 'GOFNT', + fullName: 'Gofa New Testament', + bestLanguageName: 'Gofa (gof)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bed82ba57f117c16', + displayName: 'MNT', + fullName: 'Maale New Testament', + bestLanguageName: 'Male (Ethiopia) (mdy-Ethi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55bab459b716348c', + displayName: 'beo', + fullName: 'Bedamuni Bible [beo] Papua New Guinea', + bestLanguageName: 'Beami (beo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '65bfdebd704a8324', + displayName: 'engBrent', + fullName: 'Brenton English Septuagint', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6fc8bb188318063d', + displayName: 'YNT2018', + fullName: 'Yao Bible Version Translation Project', + bestLanguageName: 'Yao (yao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c114c33098c4fef1', + displayName: 'grcbrent', + fullName: 'Brenton Greek Text', + bestLanguageName: 'Greek, Ancient (grc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55ec700d9e0d77ea', + displayName: 'engEMTV', + fullName: 'English Majority Text Version', + bestLanguageName: 'English (eng-US)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ec290b5045ff54a5', + displayName: 'engOKE', + fullName: 'Targum Onkelos Etheridge', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c61908161b077c4c', + displayName: 'ces1613', + fullName: 'Czech Bible Kralická 1613 [ces] Czech Republic', + bestLanguageName: 'Czech (ces)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '41f25b97f468e10b', + displayName: 'DB1885', + fullName: 'Italian: Diodati Bible 1885', + bestLanguageName: 'Italian (ita)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5e29945cf530b0f6', + displayName: 'grcF35', + fullName: 'The Greek New Testament According to Family 35, Third Edition', + bestLanguageName: 'Greek, Ancient (grc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2f0fd81d7b85b923', + displayName: 'engF35', + fullName: 'The English New Testament According to Family 35', + bestLanguageName: 'English (eng-US)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55212e3cf5d04d49', + displayName: 'engKJVCPB', + fullName: 'The Cambridge Paragraph Bible of the Authorized English Version', + bestLanguageName: 'English (eng-US)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6bab4d6c61b31b80', + displayName: 'engLXXup', + fullName: 'Brenton English Septuagint (Updated Spelling and Formatting)', + bestLanguageName: 'English (eng-US)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '179568874c45066f', + displayName: 'engDRA', + fullName: 'Duay-Rheims American Edition 1899 [eng] USA', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7b1975ae4d11d931', + displayName: 'NTBPL20', + fullName: 'Bodo Parja: BOPO Bible', + bestLanguageName: 'Bodo Parja (bdv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ab8b84930a5ebb89', + displayName: 'NTLii20', + fullName: 'Lodhi New Testament', + bestLanguageName: 'Lodhi (lbm-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '472735b48a27b402', + displayName: 'NTAii20', + fullName: 'Ahirani New Testament', + bestLanguageName: 'Ahirani (ahr-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '604771cc77d9136d', + displayName: 'NTNii2020', + fullName: 'Nahali New Testament', + bestLanguageName: 'Nahali (nlx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8b4c1b146ad6508a', + displayName: 'NTPPt2020', + fullName: 'Paliya New Testament', + bestLanguageName: 'Bareli, Palya (bpx-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9dec3e0ffbd4386b', + displayName: 'NTHaa20', + fullName: 'Holiya New Testament', + bestLanguageName: 'Holiya (hoy-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '16fb881ce1e27a60', + displayName: 'NTKoo20', + fullName: 'Konda Porja New Testament', + bestLanguageName: 'Konda-Dora (kfc-Orya-034-x-konda)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ef899709a85822c3', + displayName: 'NTSaa20', + fullName: 'Sida New Testament', + bestLanguageName: 'Desiya (dso)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0aaff251e76ae6ba', + displayName: 'NTJaa20', + fullName: 'Juray Soura New Testament', + bestLanguageName: 'Juray (juy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '95947b59d0434ae6', + displayName: 'NTRuu20', + fullName: 'Rimu: Munda New Testament', + bestLanguageName: 'Munda (unx-Orya-034)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2193678febf23d26', + displayName: 'NTDaa20', + fullName: 'Dega: Gata Didayi New Testament', + bestLanguageName: 'Gata’ (gaq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0d5605ba6bf41754', + displayName: 'NTKaa20', + fullName: 'Koya New Testament', + bestLanguageName: 'Koya (kff-Orya-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c3c7dadacb71fb1e', + displayName: 'NTNoo20', + fullName: 'Nepo: Pengo New Testament', + bestLanguageName: 'Pengo (peg-Orya-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '95410db44ef800c1', + displayName: 'deuelo', + fullName: 'German Unrevised Elberfelder Bible [deu] Germany', + bestLanguageName: 'German, Standard (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2ef130d3485d3fe4', + displayName: 'BGC-NT', + fullName: 'Haryanvi Bible', + bestLanguageName: 'Haryanvi (bgc-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5cc7093967a0a392', + displayName: 'OVCB', + fullName: 'Biblica® Open Vietnamese Contemporary Bible 2015', + bestLanguageName: 'Vietnamese (vie)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '901dcd9744e1bf69', + displayName: 'grcBYZ1904', + fullName: '1904 Patriarchal Greek New Testament (with 20 corrections from later editions)', + bestLanguageName: 'Greek, Ancient (grc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e051b4f945d52400', + displayName: 'BGHNT', + fullName: 'Baghlayani NT', + bestLanguageName: 'Pahari, Mahasu (bfz-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b32b9d1b64b4ef29', + displayName: 'spabes', + fullName: 'La Biblia en Español Sencillo', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e952663db2e91691', + displayName: 'ZRB', + fullName: 'Carpathian Romani Bible', + bestLanguageName: 'Romany (rmc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f492a38d0e52db0f', + displayName: 'ELBBK', + fullName: 'Elberfelder Translation (Version of bibelkommentare.de)', + bestLanguageName: 'German, Standard (deu-DE)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '913473cd3c600aa8', + displayName: 'KhPB', + fullName: 'Khanty Bible', + bestLanguageName: 'Khanty (kca)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a36fc06b086699f1', + displayName: 'OICB', + fullName: 'Biblica® Open Igbo Contemporary Bible 2020', + bestLanguageName: 'Igbo (ibo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b8d1feac6e94bd74', + displayName: 'OYCB', + fullName: 'Biblica® Open Yoruba Contemporary Bible 2017', + bestLanguageName: 'Yoruba (yor)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4d4df8722134c5ee', + displayName: 'ONLT', + fullName: 'Biblica® Open New Luo Translation 2020', + bestLanguageName: 'Dholuo (luo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c2d042a913068a25', + displayName: 'BHD-NT', + fullName: 'Bhadrawahi Bible', + bestLanguageName: 'Bhadrawahi (bhd-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '98adf0b796dc9ff4', + displayName: 'AruBib20', + fullName: 'The Bible in Aruamu: Old Testament and New Testament', + bestLanguageName: 'Aruamu (msy-054)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '63d47dec7790e1cf', + displayName: 'BHTNT', + fullName: 'Bhattiyali New Testament', + bestLanguageName: 'Bhattiyali (bht-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd63894c8d9a7a503', + displayName: 'BLT', + fullName: 'Biblia Livre Para Todos', + bestLanguageName: 'Portuguese (por-BR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '44e37abe1fa39aab', + displayName: 'BrnNTLtn', + fullName: 'Borna New Testament Latin Version', + bestLanguageName: 'Borna (bwo-Latn-ET)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e3cd1d240c384e91', + displayName: 'RSM', + fullName: 'Meitei: Roman Script 1st Translation', + bestLanguageName: 'Meitei (mni)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b84c4908b73961ba', + displayName: 'DNT', + fullName: 'Dai-Chin: Bible Translation', + bestLanguageName: 'Chin, Daai (dao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '482ddd53705278cc', + displayName: 'VBL', + fullName: 'Versión Biblia Libre', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1e8ab327edbce67f', + displayName: 'IRVHin', + fullName: 'Indian Revised Version(IRV) Hindi - 2019', + bestLanguageName: 'Hindi (hin-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd199679f805f5b29', + displayName: 'IRVAsm', + fullName: 'Indian Revised Version (IRV) Assamese - 2019', + bestLanguageName: 'Assamese (asm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8c49129a458d4059', + displayName: 'IRVMar', + fullName: 'Indian Revised Version(IRV) Marathi - 2019', + bestLanguageName: 'Marathi (mar)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '03a021185023710b', + displayName: 'IRVTam', + fullName: 'Indian Revised Version (IRV) Tamil - 2019', + bestLanguageName: 'Tamil (tam)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'de0270810140edf9', + displayName: 'IRVUrd', + fullName: 'Indian Revised Version (IRV) Urdu - 2019', + bestLanguageName: 'Urdu (urd-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4c3eda00cd317568', + displayName: 'IRVBen', + fullName: 'Indian Revised Version (IRV) Bengali - 2019', + bestLanguageName: 'Bengali (ben)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a33a100f04f2752e', + displayName: 'IRVKan', + fullName: 'Indian Revised Version (IRV) Kannada - 2019', + bestLanguageName: 'Kannada (kan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b835ce16a1703ff', + displayName: 'IRVTel', + fullName: 'Indian Revised Version (IRV) Telugu - 2019', + bestLanguageName: 'Telugu (tel-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '03e08e889c768aa7', + displayName: 'IRVOry', + fullName: 'Indian Revised Version(IRV) Odia - 2021', + bestLanguageName: 'Oriya (macrolanguage) (ory)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a3644a98420c2703', + displayName: 'IRVGuj', + fullName: 'Indian Revised Version (IRV) Gujarati-2019', + bestLanguageName: 'Gujarati (guj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e2588ba61891daa5', + displayName: 'IRVPun', + fullName: 'Indian Revised Version (IRV) Punjabi - 2019', + bestLanguageName: 'Panjabi, Eastern (pan-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b7ad344da9c39262', + displayName: 'arp', + fullName: 'Arapaho Luke', + bestLanguageName: 'Arapaho (arp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'df7d5d71526afe9e', + displayName: 'kpg2014', + fullName: 'Kapingamarangi Bible', + bestLanguageName: 'Kapingamarangi (kpg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '312df00520eac624', + displayName: 'nho', + fullName: 'Takuu New Testament', + bestLanguageName: 'Takuu (nho)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2eb94132ad61ae75', + displayName: 'thaKJV', + fullName: 'Thai KJV', + bestLanguageName: 'Thai (tha)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bbeb583cd75c6356', + displayName: 'Susu', + fullName: 'Susu Translation', + bestLanguageName: 'Susu (sus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2d5220a02a7aaac6', + displayName: 'AKS', + fullName: 'Susu Arabic', + bestLanguageName: 'Susu (sus-Arab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'afe8f67d8ba9025c', + displayName: 'Yalunka', + fullName: 'Yalunka Bible', + bestLanguageName: 'Yalunka (yal)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e423bf8faef6643b', + displayName: 'ISVNag', + fullName: 'Indian Standard Version (ISV) Nagamese', + bestLanguageName: 'Naga Pidgin (nag)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e8b818f49c7c2835', + displayName: 'KirNT', + fullName: 'Kire NT for DBL', + bestLanguageName: 'Kire (geb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6aa52b968434d882', + displayName: 'KBNT', + fullName: 'Kianying Balang Mark for DBL', + bestLanguageName: 'Kyenele (kql)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd17f683e8977c58c', + displayName: 'ApalGENT', + fullName: 'Apal NT, Gen, Exo for DBL', + bestLanguageName: 'Apali (ena)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5591cba5ae063228', + displayName: 'MumNP18', + fullName: 'Mum NT Portions for DBL', + bestLanguageName: 'Mum (kqa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5e51f89e89947acb', + displayName: 'AruNT04', + fullName: 'Aruamu New Testament [msy] Papua New Guinea 2004 DBL', + bestLanguageName: 'Aruamu (msy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8e3b1a957009c6ca', + displayName: 'TayNT', + fullName: 'Tay NT for DBL', + bestLanguageName: 'Tai (taw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1f0fb3b67c603710', + displayName: 'HavOTS', + fullName: 'Havai', + bestLanguageName: 'Ambae, East (omb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1b878de073afef07', + displayName: 'vie1934', + fullName: 'Vietnamese Bible 1925 [vie] Vietnam', + bestLanguageName: 'Vietnamese (vie)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '04fb2bec0d582d1f', + displayName: 'FEB', + fullName: '免费的易读圣经 Free Easy-to-read Bible', + bestLanguageName: 'Chinese (cmn-Hans-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9d34f37a5e8e0bf5', + displayName: 'NB2020', + fullName: 'Ngoni Bible Version Translation Project', + bestLanguageName: 'Ngoni (Tanzania) (xnj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f638e44feb77f803', + displayName: 'Matumbi', + fullName: 'Matumbi Bible Version', + bestLanguageName: 'Matumbi (mgw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '385573d4ba3ff72a', + displayName: 'MB', + fullName: 'MAALE Bible', + bestLanguageName: 'Male (mdy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4ffcec8e8f3c33e7', + displayName: 'Sankaran', + fullName: 'Sankaran Translation Project', + bestLanguageName: 'Mandingo (msc-Latn-011-fonipa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a8a97eebae3c98e4', + displayName: 'OHD', + fullName: 'Biblica® Open Hebrew Living New Testament 2009', + bestLanguageName: 'Hebrew, Modern (heb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '47f396bad37936f0', + displayName: 'SRGNT', + fullName: "Solid Rock Greek New Testament, Scholar's Edition", + bestLanguageName: 'Greek, Ancient (grc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4a17130367646532', + displayName: 'GBLNT', + fullName: 'Gamit Bible', + bestLanguageName: 'Gamit (gbl-Gujr-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9d19c0063d291d7b', + displayName: 'KutuB', + fullName: 'Kutu Bible Version Translation Project', + bestLanguageName: 'Kutu (kdc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a5dafd48a13c6d9', + displayName: 'kbq', + fullName: 'AKBQ CChecked orginal with alphabet and revision changes', + bestLanguageName: 'Kamano (kbq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '30cb581bcc911c45', + displayName: 'GDZ', + fullName: 'Toma Bible', + bestLanguageName: 'Toma (tod)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a77409f7cf5be995', + displayName: 'QUTTOT22', + fullName: "Nuevo Testamento K'iche' of Totonicapan", + bestLanguageName: 'K’iche’ (quc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '40072c4a5aba4022', + displayName: 'engRV', + fullName: 'Revised Version 1885', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '65eec8e0b60e656b', + displayName: 'FBV', + fullName: 'Free Bible Version', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '33ac978af36830fa', + displayName: 'EMOU', + fullName: 'Eastern Slovak Romani Bible', + bestLanguageName: 'Romany (rmc-Latn-151)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0b262f1ed7f084a6', + displayName: 'hboWLC', + fullName: 'Westminister Leningrad Codex', + bestLanguageName: 'Hebrew, Ancient (hbo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '66b7cdcb10208504', + displayName: 'cug', + fullName: 'Chung New Testament', + bestLanguageName: 'Chungmboko (cug)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e1c5cd49c0757432', + displayName: 'PKP', + fullName: 'Piibel Kõigile', + bestLanguageName: 'Estonian (ekk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5a19af0cfc57ff3a', + displayName: 'BUG', + fullName: 'Bugun: Bible Translation 1st Edition', + bestLanguageName: 'Bugun (bgg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f258cb39615c351d', + displayName: 'KHMNT', + fullName: 'Kharam: Bible Translation 1st Edition, The NT in Kharam', + bestLanguageName: 'Naga, Kharam (kfw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '619fcff92275df23', + displayName: 'SAK', + fullName: 'Sakachep: Bible Translation 1st Edition', + bestLanguageName: 'Sakachep (sch)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7e7a704dd32c4280', + displayName: 'Zaramo20', + fullName: 'Zaramo New Testament', + bestLanguageName: 'Zaramo (zaj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'de4e12af7f28f599', + displayName: 'engKJV', + fullName: "King James Version [eng] without Strong's numbers, 1769 standardized text", + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4e901dfea8624ef8', + displayName: 'TAG', + fullName: 'Tagin: Bible Translation 1st Edition', + bestLanguageName: 'Tagin (tgj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3aefb10641485092', + displayName: 'GRCTR', + fullName: 'Greek Textus Receptus, including the variants of Elzevir, Scrivener, and Stephanus', + bestLanguageName: 'Greek, Ancient (grc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '828bd246c8dfd883', + displayName: 'Zaramo23', + fullName: 'Zaramo Bible Translation Project', + bestLanguageName: 'Zaramo (zaj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '01b29f4b342acc35', + displayName: 'LSV', + fullName: 'Literal Standard Version', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '71d2075d284c4eae', + displayName: 'Baga', + fullName: 'Baga Translation Unicode', + bestLanguageName: 'Baga Sitemu (bsp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6c018dd7a342aa63', + displayName: 'KRB', + fullName: 'Crimean Romani Bible', + bestLanguageName: 'Romany (rmn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5611c12a3dafb263', + displayName: 'SRB', + fullName: 'Servi Romani Bible', + bestLanguageName: 'Romany (rmy-UA)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '66c22495370cdfc0', + displayName: 'T4T', + fullName: 'Translation for Translators [eng] USA', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bba9f40183526463', + displayName: 'BSB', + fullName: 'Berean Standard Bible', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f6c04124034a114e', + displayName: 'LRB', + fullName: 'Lovari Romani Bible', + bestLanguageName: 'Romany (rmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4e046bd6977f26de', + displayName: 'VRB', + fullName: 'Vlakh Romani Bible', + bestLanguageName: 'Romany (rmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '926aa5efbc5e04e2', + displayName: 'deuL1912', + fullName: 'Die Heilige Bibel übersetzt von Martin Luther 1912 mit Strongs Zahlen', + bestLanguageName: 'German, Standard (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '34d2d843a792981b', + displayName: 'NTBTP23', + fullName: 'Bhumiya', + bestLanguageName: 'Bhunjia (bhu-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2c42bb3d1b8a3f1c', + displayName: 'NTPSP23', + fullName: 'Powari Standard Project', + bestLanguageName: 'Powari (pwr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '95d68d324dfb24f2', + displayName: 'NTRPT23', + fullName: 'RELLI', + bestLanguageName: 'Reli (rei-Telu-034)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '239e3e9e3b8aac2e', + displayName: 'NTSrr23', + fullName: 'Sikkiligar', + bestLanguageName: 'Sholaga (sle-Knda-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28d256cb603137cd', + displayName: 'NTGMi23', + fullName: 'Gawli Marathi', + bestLanguageName: 'Gowli (gok-Knda-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c35c4b5c6fa88595', + displayName: 'NTWVe23', + fullName: 'Waghri Vathe', + bestLanguageName: 'Vaagri Booli (vaa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ce3f125d36c1f562', + displayName: 'ncr', + fullName: 'Nchane New Testament', + bestLanguageName: 'Ncane (ncr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '17c44f6c89de00db', + displayName: 'BBB', + fullName: 'Bible (A.Bokun translation)', + bestLanguageName: 'Belarusan (bel)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f3aacac428127466', + displayName: 'zak', + fullName: 'Zanaki', + bestLanguageName: 'Zanaki (zak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '33e024fcc7010565', + displayName: 'KwerNT14', + fullName: 'New Testament in Kwere', + bestLanguageName: 'Kwere (cwe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dca01eb41e39d25d', + displayName: 'KwereB', + fullName: 'Kwere Bible Version', + bestLanguageName: 'Kwere (cwe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8f4e6c5be17e7e8c', + displayName: 'NTKii20', + fullName: 'Kuvi New Testament', + bestLanguageName: 'Kuvi (kxv-Orya-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fe748bbf75493adc', + displayName: 'lag', + fullName: 'Rangi New Testament', + bestLanguageName: 'Rangi (Langi) (lag)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0672868a4bdc7281', + displayName: 'NTKP24', + fullName: 'KOLAMI New Testament', + bestLanguageName: 'Kolami, Southeastern (nit)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3d4ad27248561990', + displayName: 'NTVII24', + fullName: 'Vagiri New Testament', + bestLanguageName: 'Vaghri (vgr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '00cdf9001d68edfa', + displayName: 'TKR', + fullName: 'Tsakhur', + bestLanguageName: 'Tsakhur (tkr-Latn-AZ)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da454744d693152c', + displayName: 'asj', + fullName: 'Sari New Testament', + bestLanguageName: 'Sari (asj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6dbbf2ccbe27d28b', + displayName: 'kos', + fullName: 'Kosraean Bible', + bestLanguageName: 'Kosraean (kos)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '32339cf2f720ff8e', + displayName: 'engTCENT', + fullName: 'The Text-Critical English New Testament', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7644de2e4c5188e5', + displayName: 'grcTCGNT', + fullName: 'The Text-Critical Greek New Testament', + bestLanguageName: 'Greek, Ancient (grc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a7dcdbdeda5e289e', + displayName: 'MKongoBu', + fullName: 'Projet de Traduction Bible en mashi du Congo', + bestLanguageName: 'Shi (shr-Latn-CD-x-public)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4fb78aec8de2b86a', + displayName: 'ponPD', + fullName: 'Old Pohnpeian NT+Psalms', + bestLanguageName: 'Pohnpeian (pon)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd59edc6260b31673', + displayName: 'ikz', + fullName: 'Ikizu NT', + bestLanguageName: 'Ikizu (ikz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '48acedcf8595c754', + displayName: 'spaPdDpt', + fullName: 'Palabra de Dios para ti', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '685d1470fe4d5c3b', + displayName: 'ASVBT', + fullName: 'American Standard Version (Byzantine Text with Apocrypha)', + bestLanguageName: 'English (eng-US)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '06125adad2d5898a', + displayName: 'engASV', + fullName: 'American Standard Version of 1901 [eng] ASV', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f6a5ef6e2e75a8b4', + displayName: 'OBTT', + fullName: 'Open Basic Turkish New Testament', + bestLanguageName: 'Turkish (tur)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'efd8a351a07d4264', + displayName: 'OBCV', + fullName: 'Biblica® Open Bengali Contemporary Version 2019', + bestLanguageName: 'Bengali (ben)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0de391111a4cac1e', + displayName: 'ONCB', + fullName: 'Biblica® Open Ndebele Contemporary Bible 2022', + bestLanguageName: 'Ndebele (nde)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b17e246951402e50', + displayName: 'ONAV', + fullName: 'Biblica® Open New Arabic Version 2012', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '032ec262506b719f', + displayName: 'OTCV', + fullName: 'Biblica® Open Indian Tamil Contemporary Version', + bestLanguageName: 'Tamil (tam-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '18f6cf27f7b43297', + displayName: 'OASCB', + fullName: 'Biblica® Open Asante Twi Contemporary Bible 2020', + bestLanguageName: 'Twi (twi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b6aee081108c0bc6', + displayName: 'OAKCB', + fullName: 'Biblica® Open Akuapem Twi Contemporary Bible 2020', + bestLanguageName: 'Twi (twi-akuapem)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7ea794434e9ea7ee', + displayName: 'OCCB', + fullName: 'Biblica® Open Chinese Contemporary Bible 2022 (Simplified)', + bestLanguageName: 'Chinese (cmn-Hans)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a6e06d2c5b90ad89', + displayName: 'OCCB', + fullName: 'Biblica® Open Chinese Contemporary Bible 2023 (Traditional)', + bestLanguageName: 'Chinese (cmn-Hant)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '43247c35dbe56e1c', + displayName: 'OCCL', + fullName: 'Biblica® Open Godʼs Word in Contemporary Chichewa', + bestLanguageName: 'Chichewa (nya)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c0209b58481727a2', + displayName: 'OSNC', + fullName: 'Biblica® Open Slovo na cestu (Czech Living New Testament)', + bestLanguageName: 'Czech (ces)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c1c43b459a6be524', + displayName: 'OECV', + fullName: 'Biblica® Open Estonian Contemporary New Testament 2022', + bestLanguageName: 'Estonian (ekk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ac90bfebd4ee9c4d', + displayName: 'OECS', + fullName: 'Biblica® Open Ewe Contemporary Scriptures 2020', + bestLanguageName: 'Éwé (ewe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7cd100148df29c08', + displayName: 'OPCB', + fullName: 'Biblica® Open Persian Contemporary Bible 2022', + bestLanguageName: 'Persian (pes)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c739534f6a23acb2', + displayName: 'OFLNT', + fullName: 'Biblica® Open Finnish Living News New Testament 1976', + bestLanguageName: 'Finnish (fin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0ab0c764d56a715d', + displayName: 'OHCB', + fullName: 'Biblica® Open Hausa Contemporary Bible 2020', + bestLanguageName: 'Hausa (hau)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2133003bb8b5e62b', + displayName: 'OHCV', + fullName: 'Biblica® Open Hindi Contemporary Version 2019', + bestLanguageName: 'Hindi (hin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fcfc25677b0a53c9', + displayName: 'OEIV', + fullName: 'Biblica® Open Hungarian New Testament: Life, Truth and Light 2003', + bestLanguageName: 'Hungarian (hun)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e4581313051f2861', + displayName: 'OLO', + fullName: 'Biblica® Open Icelandic Living New Testament and Psalms', + bestLanguageName: 'Icelandic (isl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '08389f036844c2de', + displayName: 'OKCV', + fullName: 'Biblica® Open Kannada Contemporary Version 2022', + bestLanguageName: 'Kannada (kan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'be8dc4ba39edf911', + displayName: 'OKGN', + fullName: 'Biblica® Open Kikuyu Holy Word of God 2013', + bestLanguageName: 'Gikuyu (kik)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9ab28a81b9c4587d', + displayName: 'OKSS', + fullName: 'Biblica® Open Kurdi Sorani Standard Version 2020', + bestLanguageName: 'Kurdish (ckb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ac6b6b7cd1e93057', + displayName: 'OLCB', + fullName: 'Biblica® Open Lingala Contemporary Bible 2020', + bestLanguageName: 'Lingala (lin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c6f92d2fda34d59d', + displayName: 'OJJP', + fullName: 'Biblica® Open Lithuanian Luke-Acts', + bestLanguageName: 'Lithuanian (lit)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f276be3571f516cb', + displayName: 'OLCB', + fullName: 'Biblica® Open Luganda Contemporary Bible 2014', + bestLanguageName: 'Ganda (lug)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'de295e9ba65f6d0f', + displayName: 'OMCV', + fullName: 'Biblica® Open Malayalam Contemporary Version 2020', + bestLanguageName: 'Malayalam (mal)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '246ad95eade0d0a1', + displayName: 'ONLNT', + fullName: 'Biblica® Open Norwegian Living New Testament 2005', + bestLanguageName: 'Norwegian Bokmål (nob)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1849509e461c9a00', + displayName: 'ONOCV', + fullName: 'Biblica® Open New Oromo Contemporary Version Latin 2022', + bestLanguageName: 'Oromo (gaz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fbb8b0e1943b417c', + displayName: 'OPLNT', + fullName: 'Biblica® Open Polish Living New Testament 2016', + bestLanguageName: 'Polish (pol)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4aa6a1001d427a40', + displayName: 'ONOCV', + fullName: 'Biblica® Open New Oromo Contemporary Version Ethiopic 2022', + bestLanguageName: 'Oromo (gaz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e8d99085dcb83ab5', + displayName: 'OSCB', + fullName: 'Biblica® Open Shona Contemporary Bible 2017', + bestLanguageName: 'Shona (sna)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7d49326ef827c7d1', + displayName: 'ONPK', + fullName: 'Biblica® Open Slovak Hope for All New Testament 2023', + bestLanguageName: 'Slovak (slk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '611f8eb23aec8f13', + displayName: 'ONEN', + fullName: 'Biblica® Open Kiswahili Contemporary Version (Neno) 2015', + bestLanguageName: 'Swahili (macrolanguage) (swh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '69e6826f010ee12a', + displayName: 'OLEF', + fullName: 'Biblica® Open Tswana Living New Testament', + bestLanguageName: 'Tswana (tsn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6c696cd1d82e2723', + displayName: 'ONPU', + fullName: 'Biblica® Open New Ukrainian Translation 2022 (New Testament and Psalms)', + bestLanguageName: 'Ukrainian (ukr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6f32a206da7dffb4', + displayName: 'ONWM', + fullName: 'Biblica® Open Kiyombe Contemporary New Testament and Psalms 2002', + bestLanguageName: 'Yombe (yom)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b00de703b3d02a5a', + displayName: 'OKOK', + fullName: 'Biblica® Open Croatian New Testament', + bestLanguageName: 'Croatian (hrv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd793a777cf6bef13', + displayName: 'SPBT', + fullName: 'Shwe Palaung Bible Translation', + bestLanguageName: 'Palaung, Shwe (pll-Mymr-MM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b6e21a7696dccae7', + displayName: 'OYBC', + fullName: 'Orthodox Yiddish Brit Chadasha New Testament', + bestLanguageName: 'Yiddish (ydd-Hebr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '44cb4cae1cae773f', + displayName: 'RUPF', + fullName: 'Aromanian Frasherot', + bestLanguageName: 'Aromanian (rup-Latn-039)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '805e795e07fb9422', + displayName: 'MAL', + fullName: 'Malayalam Bible 1910 - Revised and in Contemporary Orthography', + bestLanguageName: 'Malayalam (mal-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ee7bb119a707e1b0', + displayName: 'NTNdeBL2020', + fullName: 'The New Testament in Ndendeule', + bestLanguageName: 'Ndendeule (dne)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '40d98e98134138dc', + displayName: 'NTMBL2020', + fullName: 'New Testament in Matengo', + bestLanguageName: 'Matengo (mgv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '87888656306da642', + displayName: 'abc', + fullName: 'Ayta Ambala Retelling Version', + bestLanguageName: 'Ayta, Ambala (abc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3ea0147e32eebe47', + displayName: 'IRVMAL', + fullName: 'Indian Revised Version (IRV) Malayalam - 2019', + bestLanguageName: 'Malayalam (mal-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ead7b4cc5007389c', + displayName: 'nld1939', + fullName: 'De Heilige Schrift, Petrus Canisiusvertaling, 1939 [nld] Netherlands', + bestLanguageName: 'Dutch (nld)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: 'EAD7B4CC5007389C693333A73342709BBDEBFFE8ABCDEFFF', + }, + { + dblEntryUid: 'c1096b0470327a28', + displayName: 'ONST', + fullName: 'Biblica® Open New Serbian Translation Latin 2017', + bestLanguageName: 'Serbian (srp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b83db44e6dc39993', + displayName: 'ONSP', + fullName: 'Biblica® Open New Serbian Translation Cyrillic 2017', + bestLanguageName: 'Serbian (srp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '494329fa9b8f2892', + displayName: 'Gurbet', + fullName: 'Gurbet Bible', + bestLanguageName: 'Romany (rmy-Latn-039)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1c825c8591183bb0', + displayName: 'OMRCV', + fullName: 'Biblica® Open Marathi Contemporary Version', + bestLanguageName: 'Marathi (mar)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '81d6933d39d343f8', + displayName: 'OTSA', + fullName: 'Biblica® Open Telugu Contemporary Version', + bestLanguageName: 'Telugu (tel)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7a45ff3b316d0102', + displayName: 'OSCA', + fullName: 'Biblica® Open Chhattisgarhi Contemporary Version', + bestLanguageName: 'Chhattisgarhi (hne)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '800110289c624268', + displayName: 'ONCV', + fullName: 'Biblica® Open Nepali Contemporary Version', + bestLanguageName: 'Nepali (macrolanguage) (npi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aef465bcbe7d07dd', + displayName: 'DuyaNT', + fullName: 'Duya NT DBL', + bestLanguageName: 'Duya (ldb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd1a744f4df2b23f4', + displayName: 'STW', + fullName: 'Satawalese New Testament', + bestLanguageName: 'Satawalese (stw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2dd568eeff29fb3c', + displayName: 'TSI', + fullName: 'Plain Indonesian Translation Project', + bestLanguageName: 'Indonesian (ind)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eecbca904435fce9', + displayName: 'OUCV', + fullName: '‪Biblica® Open Urdu Contemporary Version 2024', + bestLanguageName: 'Urdu (urd-Aran)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '35e45eb48e8d8642', + displayName: 'klg', + fullName: 'Tagakaulo Version', + bestLanguageName: 'Tagakaulo (klg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '518c389e78cd3c2f', + displayName: 'SomGar24', + fullName: 'Sumau Garia Bible - Unicode', + bestLanguageName: 'Sumau (six)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cece7d68f343dc8a', + displayName: 'NTNHBL', + fullName: 'The New Testament in Ndonde Hamba', + bestLanguageName: 'Ndonde Hamba (njd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7e4317b668bc7a70', + displayName: 'NTMpBL2020', + fullName: 'The New Testament in Mpoto', + bestLanguageName: 'Mpoto (mpa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '59a8ea12c31950df', + displayName: 'Wrr', + fullName: 'Waddar', + bestLanguageName: 'Waddar (wbq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '48048a575c79f5c6', + displayName: 'UtMain', + fullName: "ut-Ma'in DBL", + bestLanguageName: 'ut-Ma’in (gel)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4dd847a4a799b2e6', + displayName: 'KTn', + fullName: 'Koda Translation', + bestLanguageName: 'Koda (cdz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '65ea8716231c480f', + displayName: 'bkw', + fullName: 'Bekwel Bible', + bestLanguageName: 'Bekwel (bkw-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '15ff63b842ada9e3', + displayName: 'SAV', + fullName: 'Saafi-Saafi Scripture for Digital', + bestLanguageName: 'Saafi-Saafi (sav-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9996f2ccb554747b', + displayName: 'iyx', + fullName: 'Yaka New Testament', + bestLanguageName: 'Yaka (iyx-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'be9e00b72104e120', + displayName: 'mzr', + fullName: 'Yové Koĩni Vana', + bestLanguageName: 'Marúbo (mzr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '537fba9248fba8e8', + displayName: 'KMW', + fullName: 'WolioNT', + bestLanguageName: 'Wolio (wlo-Latn-035)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ecab53fbf87d865a', + displayName: 'GM', + fullName: 'Gamo Full Bible Latin Version', + bestLanguageName: 'Gamo (gmv-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '69ffe7eecd894e52', + displayName: 'HASS', + fullName: 'Hassaniya', + bestLanguageName: 'Hassaniyya (mey)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '049346536ed7f260', + displayName: 'GaFBEV', + fullName: 'Gamo Full Bible Ethiopic Version', + bestLanguageName: 'Gamo (gmv-Ethi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c6b77ab417420c5', + displayName: 'urdgvh', + fullName: 'Urdu Geo Version (Hindi Script)', + bestLanguageName: 'Urdu (urd-Deva)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4b2019a039084853', + displayName: 'urdgvr', + fullName: 'Urdu Geo Version (Roman Script)', + bestLanguageName: 'Urdu (urd-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e9f42a314db2ec15', + displayName: 'GFBLVF', + fullName: 'Gofa Full Bible Latin Version Final', + bestLanguageName: 'Gofa (gof-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dc48e3dbec149793', + displayName: 'GFBEVF', + fullName: 'Gofa Full Bible Ethiopic Version', + bestLanguageName: 'Gofa (gof-Ethi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fa4317c59f0825e0', + displayName: 'skb', + fullName: 'Svenska Kärnbibeln', + bestLanguageName: 'Swedish (swe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2da2f2a6f713dfed', + displayName: 'sce', + fullName: 'DongXiang Sheng Jing NT', + bestLanguageName: 'Dongxiang (sce)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2a1480cfb6f181d7', + displayName: 'urdgvu', + fullName: 'Urdu Geo Version (Urdu Script)', + bestLanguageName: 'Urdu (urd-Aran)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0a0927a2e4c58318', + displayName: 'Arli', + fullName: 'Romani Arli Bible 2024', + bestLanguageName: 'Romany (rmn-Latn-039-x-vwa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd0fde80f8f7296ce', + displayName: 'LGA', + fullName: 'Luqa Full Bible', + bestLanguageName: 'Lungga (lga)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23b95e51ae5ff242', + displayName: 'YNS', + fullName: 'Bible Iyansi', + bestLanguageName: 'Yansi (yns)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '565b0b64938c2785', + displayName: 'GHN', + fullName: 'Kubokota Adapt New Testament', + bestLanguageName: 'Ghanongga (ghn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '69385f59b9556910', + displayName: 'NTSii24', + fullName: 'Siddi', + bestLanguageName: 'Kannada (kan-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6e4c66cc15134422', + displayName: 'NTGnn24', + fullName: 'Gowlan', + bestLanguageName: 'Gowlan (goj-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '65b675fa952d5d27', + displayName: 'Chergash', + fullName: 'Chergash New Testament', + bestLanguageName: 'Romany (rmy-Latn-039-x-vc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6463a3265d1b14e0', + displayName: 'NTDii20', + fullName: 'Dhankavi New Testament', + bestLanguageName: 'Dhanki (dhn-Deva)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fbac670922d42777', + displayName: 'NTMtP23', + fullName: 'Mehra', + bestLanguageName: 'Halbi (hlb-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd1cd841fb08f222e', + displayName: 'NTBSP23', + fullName: 'Bhilali', + bestLanguageName: 'Bhilali (bhi-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '41ca884edc327e9c', + displayName: 'NTRKB24', + fullName: 'Rakhine: Rakhine Bible', + bestLanguageName: 'Rakhine (rki-Mymr-MM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ba4ce1321bc1631e', + displayName: 'NTDWB24', + fullName: 'Tavoyan: Dawei Bible', + bestLanguageName: 'Tavoyan (tvn-Mymr-MM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c89622d31b60c444', + displayName: 'TOJB2011', + fullName: 'The Orthodox Jewish Bible', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2d75eb8fe5beaceb', + displayName: 'ThurM', + fullName: 'Thur', + bestLanguageName: 'Thur (lth)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '14a5a814d81264ac', + displayName: 'BayNTEth', + fullName: 'Bayso New Testament Ethiopic Version', + bestLanguageName: 'Baiso (bsw-Ethi-ET)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '455d100c7d3e4169', + displayName: 'NTRTu24', + fullName: 'Rana Tharu', + bestLanguageName: 'Tharu, Rana (thr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '81c7138182ee69f2', + displayName: 'nkn', + fullName: 'Nkangala Bible Translation Project', + bestLanguageName: 'Nkangala (nkn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c11c93a0b8a04496', + displayName: 'Makonde', + fullName: 'Makonde Bible Version', + bestLanguageName: 'Makonde (kde)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ed5744967fe39c8c', + displayName: 'Mwela', + fullName: 'Mwera Bible Version', + bestLanguageName: 'Mwera (mwe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c2d40ebca6db1ec5', + displayName: 'Vidunda', + fullName: 'Vidunda Bible Version', + bestLanguageName: 'Vidunda (vid)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2c2067480f069dad', + displayName: 'BayNT', + fullName: 'Bayso New Tetament', + bestLanguageName: 'Baiso (bsw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7c2039be44102b2b', + displayName: 'DFBLVL', + fullName: 'Dawuro Full Bible Latin Version Last', + bestLanguageName: 'Dawro (dwr-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '812ecd29a9e60fdc', + displayName: 'DFBE', + fullName: 'Dawro Full Bible Ethiopic', + bestLanguageName: 'Dawro (dwr-Ethi-x-fidel)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0cd52ddc726e2ee6', + displayName: 'ONMM', + fullName: 'Biblica® Open Kiswahili Contemporary Scriptures™ 2024', + bestLanguageName: 'Swahili (macrolanguage) (swh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd54168715a4548c2', + displayName: 'lyn', + fullName: 'Luyana Bible Translation Project', + bestLanguageName: 'Luyana (lyn-Latn-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b5105cd03c972046', + displayName: 'MNT15', + fullName: 'Makua New Testament 2015', + bestLanguageName: 'Makhuwa-Meetto (mgh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '31c1130475000445', + displayName: 'NNQNT', + fullName: 'Ngindo New Testament', + bestLanguageName: 'Ngindo (nnq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '18db7a26b5a73c74', + displayName: 'JBT', + fullName: 'Jumjum Bible Translation', + bestLanguageName: 'Jumjum (jum)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '496cafdffc23197b', + displayName: 'hatbsa', + fullName: 'Bib Sen An', + bestLanguageName: 'Haitian (hat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0de04e26388bb8c9', + displayName: 'mfmTNT', + fullName: 'Margi Tiwi Nga Tǝm [mfm]', + bestLanguageName: 'Marghi South (mfm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '46c4dade6d168e7a', + displayName: 'HBe', + fullName: 'Hruso Bible', + bestLanguageName: 'Hruso (hru)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '592420522e16049f', + displayName: 'RV09', + fullName: 'Reina Valera 1909', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4bad553ed9a7b5d2', + displayName: 'wja', + fullName: 'Waja', + bestLanguageName: 'Waja (wja)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0f8cdef1ba2120a5', + displayName: 'YAF', + fullName: 'Projet Yaka', + bestLanguageName: 'Yaka (yaf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f35902ba1a82ba42', + displayName: 'NTDNB24', + fullName: 'Danu: Danu Bible', + bestLanguageName: 'Danu (dnv-Mymr-MM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e3f3c722ead9ea74', + displayName: 'GLW', + fullName: 'Glavda', + bestLanguageName: 'Glavda (glw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '29f2d73fdf71a11e', + displayName: 'GDF', + fullName: 'Gava', + bestLanguageName: 'Guduf-Gava (gdf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '954f38404e05821b', + displayName: 'SUR', + fullName: 'Manji Yiljep', + bestLanguageName: 'Mwaghavul (sur-x-mupun)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '32664dc3288a28df', + displayName: 'engWEBUS', + fullName: "World English Bible USA without Strong's numbers", + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9879dbb7cfe39e4d', + displayName: 'WEB', + fullName: 'World English Bible (American Edition)', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7142879509583d59', + displayName: 'engWEBBE', + fullName: 'World English Bible British Edition', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '72f4e6dc683324df', + displayName: 'engWEBU', + fullName: 'World English Bible Update', + bestLanguageName: 'English (eng-US)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f72b840c855f362c', + displayName: 'engWMB', + fullName: 'World Messianic Bible (American English)', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '04da588535d2f823', + displayName: 'engWMBBE', + fullName: 'World Messianic Bible British Edition', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '085defac6e17b9eb', + displayName: 'turytc', + fullName: 'Yorumsuz Türkçe Çeviri (YTC)', + bestLanguageName: 'Turkish (tur)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '107c0b030eea6ace', + displayName: 'UTR', + fullName: 'Etulo', + bestLanguageName: 'Etulo (utr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eb8d44e6061b8452', + displayName: 'BGPU', + fullName: 'Gulmancema Protestant Bible Unicode', + bestLanguageName: 'Gourmanchéma (gux)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'db86ea13756289c9', + displayName: 'NBG1951', + fullName: 'NBG-vertaling 1951', + bestLanguageName: 'Dutch (nld)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: 'AB1B9DC5623CF813F1E111D16E3F2E880E629590ABCDEFFF', + }, + { + dblEntryUid: 'b4005868585e6970', + displayName: 'CHUJSM', + fullName: 'Biblia Chuj San Mateo', + bestLanguageName: 'Chuj (cac)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b02520a972bc4ca', + displayName: 'BTI', + fullName: 'La Biblia, Traducción Interconfesional (versión española)', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c085223045594907', + displayName: 'KAQCHI', + fullName: 'Kaqchikel Bible', + bestLanguageName: 'Kaqchikel (cak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a6da7acc3892c31c', + displayName: 'FAOV', + fullName: 'Father Afif Osayran Psalms', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fc898f8e7e747b72', + displayName: 'ROM07', + fullName: 'Romane Nuevo Testamento', + bestLanguageName: 'Romany (rmy-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3f54946cb4dc394e', + displayName: 'gdg', + fullName: "Ga'dang NT", + bestLanguageName: "Ga'dang (gdg)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bc2c2a9b54e31c9f', + displayName: 'THV12Hdb', + fullName: + "The Hakka Bible – Today's Taiwan Hakka Version, Old and New Testaments – Han Character Edition (2012)", + bestLanguageName: 'Chinese (hak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7be2171f944a7636', + displayName: 'IBN', + fullName: 'Igbo Bible NSO', + bestLanguageName: 'Igbo (ibo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '101023ba24b12632', + displayName: 'NTTS81', + fullName: 'Nuevo Testamento Toba Sur', + bestLanguageName: 'Toba (tob)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3fa4c85c95be3aa6', + displayName: 'CCL', + fullName: 'The Word of God in Contemporary Chichewa (Mawu a Mulungu mu Chichewa Chalero)', + bestLanguageName: 'Nyanja (nya)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c3b5bd720d61a236', + displayName: 'isd', + fullName: 'Isnag NT with Gen and Exo', + bestLanguageName: 'Isnag (isd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '93a285d4f20c46e0', + displayName: 'SAB', + fullName: 'Sharif Arabic Bible', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9419b482b6506691', + displayName: 'SBLGNT', + fullName: 'SBL Greek New Testament', + bestLanguageName: 'Greek: Ancient (grc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7f996672a9b6d67a', + displayName: 'MTDS', + fullName: 'Mushuj Testamento Diospaj Shimi (Quichua-Chimborazo NT)', + bestLanguageName: 'Quechua (qug)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '983df53a0007d0de', + displayName: 'SBCL', + fullName: 'Standard Bangla Common Language', + bestLanguageName: 'Bengali (ben)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0cb9808bb1a686ff', + displayName: 'GHB', + fullName: 'Garrad Holy Bible', + bestLanguageName: 'Burmese (mya)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9ec049e49030ee2f', + displayName: 'var', + fullName: 'Huarijío NT', + bestLanguageName: 'Huarijio (var)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bebe7d2e23926c2f', + displayName: 'HebOTbsi', + fullName: 'Hebrew Old Testament BSI - 2017', + bestLanguageName: 'Ancient Hebrew (hbo-Hebr-IL)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b7e3a865ae3a3f55', + displayName: 'odu', + fullName: 'Odual Nigeria', + bestLanguageName: 'Odual (odu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cf574dc23200ff94', + displayName: 'GNB1996', + fullName: 'Groot Nieuws Bijbel 1996', + bestLanguageName: 'Dutch (nld)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e3cb28f08102e0f3', + displayName: 'SRUV06', + fullName: 'Swahili: Swahili Revised Union Version', + bestLanguageName: 'Swahili (macrolanguage) (swh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '04c8a4b759e9b41c', + displayName: 'NIVAC', + fullName: 'Nivacle Bible 1994', + bestLanguageName: 'Nivaclé (cag)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '095bf21a0fbc1477', + displayName: 'nabNT', + fullName: 'Txa²wã¹sũ̱³na² Wãn³txa²', + bestLanguageName: 'Nambikuára, Southern (nab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e2b35a5f46e8f641', + displayName: 'QEQCH', + fullName: "Biblia Q'eqchi", + bestLanguageName: 'Kekchí (kek)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e28623261fa99eaa', + displayName: 'BHTI', + fullName: 'La Biblia Hispanoamericana (Traducción Interconfesional, versión hispanoamericana)', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e78ad0628fb0757b', + displayName: 'TSOUNT14', + fullName: 'The Tsou New Testament (2014)', + bestLanguageName: 'Tsou (tsu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f006bb19664958aa', + displayName: 'BlkNTP2000', + fullName: 'Balkar New Testament and Psalms 2000', + bestLanguageName: 'Karachay-Balkar (krc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '63a709d3eb50cf93', + displayName: 'QUICH1', + fullName: 'U Tzij Ri Dios pa quiche', + bestLanguageName: "K'iche' (quc)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6f9daa43905b6b6b', + displayName: 'BK98', + fullName: 'Biblia Kanjobal 1989', + bestLanguageName: "Q'anjob'al (kjb)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cb38452d1e7ef95d', + displayName: 'NTTO10', + fullName: 'Nuevo Testamento Toba del Oeste', + bestLanguageName: 'Toba (tob-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2bb63344c288fe07', + displayName: 'NEan', + fullName: 'Manx Gospel of John 1936', + bestLanguageName: 'Manx (glv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '149b1acebbc9a058', + displayName: 'GlossFR', + fullName: 'Glosses French', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '149B1ACEBBC9A058A03DE5D624A20E904392CD29ABCDEFFF', + }, + { + dblEntryUid: 'dcf8f591a97571b5', + displayName: 'BIV', + fullName: 'Birifor NT (Ghana)', + bestLanguageName: 'Southern Birifor (biv-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8676091b758f0d8d', + displayName: 'JCB', + fullName: 'Japanese Contemporary Bible (リビングバイブル) 2016', + bestLanguageName: 'Japanese (jpn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da0947e25c9636bb', + displayName: 'HFA', + fullName: 'Hoffnung für alle (Hope for all)', + bestLanguageName: 'German (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b5361478ae1d88bf', + displayName: 'ShekNT', + fullName: 'Shekkacho NT', + bestLanguageName: 'Shekkacho (moy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b00df52326f6705', + displayName: 'TAT15', + fullName: 'Tatar Bible 2015', + bestLanguageName: 'Tatar (tat-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '62e2052b806f5239', + displayName: 'FIN72', + fullName: 'Uusi Testamentti ja Psalmit Nykysuomeksi 1972', + bestLanguageName: 'Finnish (fin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3b39116007482d41', + displayName: 'BASSARDC', + fullName: 'Bassar Bible with DC', + bestLanguageName: 'Ntcham (bud)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8f34b7c7dc6c3cd3', + displayName: 'XALNT', + fullName: 'Kalmyk New Testament 2002', + bestLanguageName: 'Kalmyk (xal-Cyrl-RU)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6158d1b0fcb1c1a9', + displayName: 'EveLUK', + fullName: 'Even Luke 2001', + bestLanguageName: 'Even (eve)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '108aa0495c0f45fb', + displayName: 'CEVUK', + fullName: 'Contemporary English Version (Anglicised) 2012', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a64cea3a93ffc34f', + displayName: 'HMOTU93', + fullName: 'Hiri Motu Bible 1993', + bestLanguageName: 'Hiri Motu (hmo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7ece0a5d0ff00e67', + displayName: 'TCL02', + fullName: 'Turkish Bible 2001, 2008', + bestLanguageName: 'Turkish (tur)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '695aa4b9f902778f', + displayName: 'POKTACTIC', + fullName: 'Bíblia Poqomchí (orthografía reformada)', + bestLanguageName: "Poqomchi' (poh-Latn)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1d732114a8406ece', + displayName: 'NMV', + fullName: 'New Millennium Version', + bestLanguageName: 'Persian (pes)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2048238eee3592f8', + displayName: 'VUL83', + fullName: 'Latin: Biblia Sacra Vulgata 1983', + bestLanguageName: 'Latin (lat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '583ee11b14ef2652', + displayName: 'YAWO', + fullName: 'Chiyawo Bible', + bestLanguageName: 'Yao (yao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'acef2bc597c450a1', + displayName: 'NTLH00', + fullName: 'Nova Tradução na Linguagem de Hoje 2000', + bestLanguageName: 'Portuguese (por-BR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2543f6d53dc93b8c', + displayName: 'VULGP83', + fullName: 'Latin: Biblia Sacra Vulgata 1983 Greek Psalms', + bestLanguageName: 'Latin (lat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f5a49c9ba8b87806', + displayName: 'PBTB2', + fullName: 'Perjanjian Baru TB 1997', + bestLanguageName: 'Indonesian (ind)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '07676fc09ac6d76e', + displayName: 'KSTM', + fullName: 'Majang New Testament', + bestLanguageName: 'Majang (mpe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '043f34213156ec4b', + displayName: 'JAB', + fullName: 'Jesuit Arabic Bible', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '74a986a9a183ae1c', + displayName: 'ZB', + fullName: 'Slovenian Living New Testament', + bestLanguageName: 'Slovenian (slv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '39739f1a7dcfe810', + displayName: 'APSD-CEB', + fullName: 'Cebuano Contemporary Bible (Ang Pulong sa Dios)', + bestLanguageName: 'Cebuano (ceb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '99f345cb68365759', + displayName: 'MAYA', + fullName: 'Biblia Maya 1992', + bestLanguageName: 'Yucateco (yua-Latn-MX)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '73ebfde4ac938809', + displayName: 'MAMHUEAN', + fullName: 'Mam de Huehuetenango 2011 (ortografía reformada)', + bestLanguageName: 'Mam (mam)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd237b75b1095af18', + displayName: 'AKHAu', + fullName: 'Akha Bible (Latin Script)', + bestLanguageName: 'Akha (ahk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '517f2ffe6433ad18', + displayName: 'CCB-T', + fullName: 'Chinese Contemporary Bible (Traditional Script)', + bestLanguageName: 'Chinese (cmn-Hant)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ba04d26f0f66944e', + displayName: 'KilleC', + fullName: 'Koorete NT', + bestLanguageName: 'Koorete (kqy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '89bcafb653754564', + displayName: 'BLYDC', + fullName: 'Buku Loyera with DC', + bestLanguageName: 'Nyanja (nya-Latn-002-x-bantu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '476cd3c7fb62507c', + displayName: 'bdq', + fullName: 'Bahnar Bible', + bestLanguageName: 'Bahnar (bdq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '08e1527caeb9cf6a', + displayName: 'KCB', + fullName: 'Kahua Catholic Bible (Solomon Islands)', + bestLanguageName: 'Kahua (agw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0e0340b124e7ebdd', + displayName: 'JHV', + fullName: 'Jinghpaw Hanson Version', + bestLanguageName: 'Kachin (kac-Latn-035)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'df2d33ad51c1e86b', + displayName: 'AnyuB', + fullName: 'Anyuak Bible', + bestLanguageName: 'Anuak (anu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd09e9a676bf6592d', + displayName: 'TGVD', + fullName: "Today's Greek Version 2003", + bestLanguageName: 'Modern Greek (1453-) (ell)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '255618834395d3d2', + displayName: 'BLY', + fullName: 'Buku Loyera-Chewa Common Language', + bestLanguageName: 'Nyanja (nya)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '70275afb7ce45c88', + displayName: 'BUY1904', + fullName: 'Buyei (Chung Chia) Gospel of Matthew 1904', + bestLanguageName: 'Bouyei (pcc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0ef2fc0e45faedd5', + displayName: 'MOBANT07', + fullName: 'Moba-Lok NT 2007', + bestLanguageName: 'Moba (mfq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e84e7938ab6dd571', + displayName: 'BPKEST', + fullName: 'Papiamentu DC Study Bible 2017', + bestLanguageName: 'Papiamento (pap)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fa90620c52fb71b0', + displayName: 'Amh05', + fullName: 'Amharic Bible (CLT)', + bestLanguageName: 'Amharic (amh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '59ce49b29458b2d8', + displayName: 'ChvNT', + fullName: 'Chuvash IBT New Testament', + bestLanguageName: 'Chuvash (chv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4cff7c54d9133dea', + displayName: 'DHHE', + fullName: 'Dios Habla Hoy (Castillean Edition)', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '53a0e25b3ab6de91', + displayName: 'GNSBUK', + fullName: 'Good News Study Bible 2015', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f9af105ac9dfff5d', + displayName: 'VDCL', + fullName: 'Romanian Cornilescu Literal Translation 1931', + bestLanguageName: 'Romanian (ron)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '287fd486d73a894e', + displayName: 'WLNT', + fullName: 'Arsi-Bale Oromo New Testament - LTT', + bestLanguageName: 'Oromo (gax)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '655b8d0adbe7ca4b', + displayName: 'SHNCL', + fullName: 'The Holy Bible in Shan Common Language', + bestLanguageName: 'Shan (shn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '520019e7ac5949e3', + displayName: 'WHNT', + fullName: 'Arsi-Bale Oromo New Testament - CLT', + bestLanguageName: 'Oromo (gax)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3d69553fe5f0c02c', + displayName: 'BNT', + fullName: 'Basketo New Testament', + bestLanguageName: 'Basketo (bst)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cb09d08f864718a9', + displayName: 'VDCC', + fullName: 'Romanian Cornilescu Reference Bible 1924 in Cyrillic script (Moldova)', + bestLanguageName: 'Romanian (ron-Cyrl-MD)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7c0e173b4fde8af2', + displayName: 'bru', + fullName: 'Eastern Bru Bible', + bestLanguageName: 'Eastern Bru (bru)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7f26fc27ef1520e2', + displayName: 'ESVUS11', + fullName: 'English Standard Version', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8680ef6448f051ee', + displayName: 'gvc', + fullName: 'Guanano NT', + bestLanguageName: 'Guanano (gvc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '88073b9118528726', + displayName: 'iqw', + fullName: 'Ikwo Bible', + bestLanguageName: 'Ikwo (iqw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '92014bbe169b0f7d', + displayName: 'BskNT14', + fullName: 'Bashkir IBT New Testament 2014', + bestLanguageName: 'Bashkir (bak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e1592fe262f26754', + displayName: 'NBV', + fullName: 'New Living Bible (Nueva Biblia Viva)', + bestLanguageName: 'Spanish (spa-419)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: 'E1592FE262F2675454297CC682637AD54D1299F7ABCDEFFF', + }, + { + dblEntryUid: '7f70e690865fd234', + displayName: 'nusNHB', + fullName: 'Nuer Bible 2012', + bestLanguageName: 'Nuer (nus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0300b3bffeba677f', + displayName: 'dnj', + fullName: 'Dan (Western) NT', + bestLanguageName: 'Dan (dnj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b7112053bc602357', + displayName: 'dnj', + fullName: 'Dan (Eastern) NT', + bestLanguageName: 'Dan (daf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bad13e304c8aed1e', + displayName: 'bno', + fullName: 'Bantoanon NT with Gen and Exo', + bestLanguageName: 'Bantoanon (bno)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '745b1e89928f3f37', + displayName: 'SUB1949', + fullName: 'Original Shona Union Bible 1949 Doke orthography', + bestLanguageName: 'Shona (sna)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8c43d080f2856a7e', + displayName: 'TB15', + fullName: 'Tigrigna Holy Bible', + bestLanguageName: 'Tigrinya (tir)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '47056f296f507983', + displayName: 'BLP2018', + fullName: 'Buku Lopatulika- Revised Edition 2018', + bestLanguageName: 'Nyanja (nya-Latn-002-x-bantu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dd71865de1ef9c7a', + displayName: 'AgxLUK', + fullName: 'Aghul Luke (2005)', + bestLanguageName: 'Aghul (agx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5e522e2cdf7f6feb', + displayName: 'TabNT', + fullName: 'Tabassaran New Testament 2010', + bestLanguageName: 'Tabassaran (tab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aee9474b4a88eefb', + displayName: 'OL', + fullName: 'Portuguese-PT: O Livro 2017', + bestLanguageName: 'Portuguese (por)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7b708e013c1575e4', + displayName: 'PS1761', + fullName: 'Manx Metrical Psalms 1761', + bestLanguageName: 'Manx (glv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a7d2caa4b5b4bec', + displayName: 'BIB1819', + fullName: 'Yn Vible Casherick (Manx Bible) 1819', + bestLanguageName: 'Manx (glv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5a3dce3d1f52ebf3', + displayName: 'KakHaa', + fullName: 'Borana New Testament', + bestLanguageName: 'Oromo (gax)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd0b457adffa57d5e', + displayName: 'GuraB', + fullName: 'Gurage Bible', + bestLanguageName: 'Sebat Bet Gurage (sgw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2e3185bcb90f9381', + displayName: 'PSZ', + fullName: 'Polish Living New Testament', + bestLanguageName: 'Polish (pol)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f544448ff1326ad7', + displayName: 'Amh62', + fullName: 'Amharic 1962 Original', + bestLanguageName: 'Amharic (amh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '49011c1ecffb9ac7', + displayName: 'culNT', + fullName: 'Culina NT', + bestLanguageName: 'Culina (cul)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8d157691202518e4', + displayName: 'EIV', + fullName: 'Hungarian New Testament: Life, Truth and Light', + bestLanguageName: 'Hungarian (hun)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a1d56ff41fa079a4', + displayName: 'NWM', + fullName: 'Kiyombe Contemporary Version, New Testament and Psalms', + bestLanguageName: 'Yombe (yom)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5ff6be53cd0c510a', + displayName: 'TZEB', + fullName: 'Tzeltal Bachajon Biblia', + bestLanguageName: 'Tzeltal (tzh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '571698a943916776', + displayName: 'GCLNR00', + fullName: 'Gute Nachricht Bibel NR 2000', + bestLanguageName: 'German (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd6822d149ce300f9', + displayName: 'SenaMw', + fullName: 'Sena Bible 2006', + bestLanguageName: 'Malawi Sena (swk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b41fda6942b878eb', + displayName: 'KapPROLUK', + fullName: 'Bezhta (Kapuchi) Published Books: Luke, Proverbs', + bestLanguageName: 'Bezhta (kap)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '07ff1d5c6a53cb05', + displayName: 'TNCV', + fullName: 'Thai New Contemporary Version 2007', + bestLanguageName: 'Thai (tha)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da34f369635c82b8', + displayName: 'LCB', + fullName: 'Luganda Contemporary Bible', + bestLanguageName: 'Ganda (lug)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2cf0f5d6ce454c40', + displayName: 'BNP70', + fullName: 'Guarani Buenas Nuevas 1970', + bestLanguageName: 'Guarani (gug)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c6d3311681a81388', + displayName: 'BGDC', + fullName: 'Guarani Bible DC 2006', + bestLanguageName: 'Guarani (gug)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '61fd76eafa1577c2', + displayName: 'GNTD', + fullName: 'English: Good News Translation US 1992', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '66a62cc1db6e3ec6', + displayName: 'LU1545', + fullName: 'Lutherbibel 1545', + bestLanguageName: 'German (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4e0a7c6f912cb4ab', + displayName: 'AvrNT', + fullName: 'Avar New Testament 2008', + bestLanguageName: 'Avaric (ava)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd1fe6317fb2ec4ad', + displayName: 'BGE2014', + fullName: 'BIBLIA GITONGA EVANGÉLICA', + bestLanguageName: 'Gitonga (toh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11a3cadc0a00dc6c', + displayName: 'QCA10', + fullName: 'Biblia Quichua Cañar', + bestLanguageName: 'Quechua (qxr-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '300672556a449b25', + displayName: 'APSD', + fullName: 'Ang Pulong Sang Dios (Hiligaynon Bible)', + bestLanguageName: 'Hiligaynon (hil)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c9e70a9ad9689bdf', + displayName: 'GEN', + fullName: 'Mina Bible 2014', + bestLanguageName: 'Gen (gej)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ae97ee4b7199e15a', + displayName: 'dyi', + fullName: 'Djimini Bible', + bestLanguageName: 'Djimini Senoufo (dyi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '964c74dd217305b7', + displayName: 'terNT', + fullName: "Emo'u Itukó'oviti", + bestLanguageName: 'Terêna (ter)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a45adb20f641ce8d', + displayName: 'RC69', + fullName: 'Almeida Revista e Corrigida 1969', + bestLanguageName: 'Portuguese (por-BR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fa72cee2a6497eb8', + displayName: 'izrNT', + fullName: 'Izere New Testament - DBL', + bestLanguageName: 'Izere (izr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ba961d5e515978df', + displayName: 'NTMIXEMAZ', + fullName: 'Mixe de Mazatlan NT', + bestLanguageName: 'Mazatlán Mixe (mzl-Latn-MX)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c916b34131690f7e', + displayName: 'gul', + fullName: 'Gullah New Testament', + bestLanguageName: 'Sea Island Creole English (gul)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '221f66cab1c6f8a1', + displayName: 'pjt', + fullName: 'Pitjantjatjara Bible Translation Project', + bestLanguageName: 'Pitjantjatjara (pjt-Latn-AU)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6788d443de22f979', + displayName: 'UTT', + fullName: 'Ukrainian Bible LXX UkrBS', + bestLanguageName: 'Ukrainian (ukr-UA)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2fce6e88649551c0', + displayName: 'MCL', + fullName: 'Common Language Bible', + bestLanguageName: 'Burmese (mya)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c6defb2acee73d28', + displayName: 'bjv', + fullName: 'Bible Nangnda', + bestLanguageName: 'Bedjond (bjv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '88cc5ed496a50aab', + displayName: 'DHNT', + fullName: "Delitzsch's Hebrew NT 12th adition", + bestLanguageName: 'Hebrew (heb-IL)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cb6d2ea99b52fd86', + displayName: 'ROMURS', + fullName: 'Romani Ursari Gospel of Matthew 1996 (Romania)', + bestLanguageName: 'Romany (rmy-Latn-RO)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd009ab816e975cbb', + displayName: 'KWBU', + fullName: 'Kpelle Whole Bible Unicode', + bestLanguageName: 'Kpelle (xpe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '75a75f8742d7f40f', + displayName: 'TB', + fullName: 'Bíblia Sagrada Tradução Brasileira', + bestLanguageName: 'Portuguese (por-BR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bd9a8212895d8408', + displayName: 'IAB', + fullName: 'Iranian Azeri Bible', + bestLanguageName: 'Azerbaijani (azb-Arab-IR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '699b9e6b33aa2329', + displayName: 'NUB', + fullName: 'nuBibeln (Swedish Contemporary Bible)', + bestLanguageName: 'Swedish (swe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '524b0f0a4457738d', + displayName: 'FRC97', + fullName: 'Français courant 97 final version', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '524B0F0A4457738DB9E0D7E61E6E55757DD4A8BDABCDEFFF', + }, + { + dblEntryUid: '008ee554c0859eb6', + displayName: 'BurNT10', + fullName: 'Buryat IBT New Testament 2010', + bestLanguageName: 'Buriat (bxr-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '48be253d9a29faa0', + displayName: 'AdgNT14', + fullName: 'Adyghe New Testament', + bestLanguageName: 'Adyghe (ady)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b5e97cb268b34010', + displayName: 'ROMCAL', + fullName: 'Romani Kalderash Gospel of Mark 1996 (Romania)', + bestLanguageName: 'Romany (rmy-Latn-RO)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'afc24de218ef6e38', + displayName: 'ARA', + fullName: 'Almeida Revista e Atualizada 1993', + bestLanguageName: 'Portuguese (por-BR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '24722a3b9010fa47', + displayName: 'NAV', + fullName: 'New Arabic Version (Ketab El Hayat)', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '375e9833dfedd166', + displayName: 'Xamt', + fullName: 'Xamtanga NT', + bestLanguageName: 'Xamtanga (xan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28a529d49475e77e', + displayName: 'YRAPBCN', + fullName: 'The Apocrypha - Revised New Welsh Bible 2008', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '020f276ededf8807', + displayName: 'FAO1823', + fullName: 'Faroese Gospel of Matthew 1823', + bestLanguageName: 'Faroese (fao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ee025ca233928902', + displayName: 'CBCWNT', + fullName: 'Bridgman-Culbertson Wenli New Testament (1859) 裨治文-克陛存文理《新約全書》', + bestLanguageName: 'Chinese (lzh-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '58e62cbf25313022', + displayName: 'CIMB', + fullName: 'Cook Islands Maori Bible', + bestLanguageName: 'Rarotongan (rar)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eae3f81c889bc610', + displayName: 'CGJWNT', + fullName: 'Griffith JOHN, Wenli New Testament (1886) 楊格非文理《新約全書》', + bestLanguageName: 'Chinese (lzh-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e43806696ffca928', + displayName: 'CGJMNT', + fullName: 'Griffith JOHN, Mandarin New Testament (1892) 楊格非官話《新約全書》', + bestLanguageName: 'Chinese (cmn-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '173b6ec5bba026d2', + displayName: 'BGT', + fullName: 'Bijbel in Gewone Taal', + bestLanguageName: 'Dutch (nld)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a31452bf933bcd2d', + displayName: 'NBV', + fullName: 'Nieuwe Bijbelvertaling', + bestLanguageName: 'Dutch (nld)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '464C4AF85F842CEE0F21ABC0CE1F3C0BC8358654ABCDEFFF', + }, + { + dblEntryUid: '7e2a369bd0c76db5', + displayName: 'CHIOJNT', + fullName: 'Chinanteco, Ojitlán New Testament', + bestLanguageName: 'Ojitlán Chinantec (chj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ce70bbb2235fdab9', + displayName: 'TZOCHE', + fullName: 'Tzotzil Chenalhó DC Bible 1997', + bestLanguageName: 'Tzotzil (tzo-Latn-MX-x-chenalho)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6bf4f1cdec3ae21e', + displayName: 'MIXEQTZ', + fullName: 'Biblia Mixe de Quetzaltepec', + bestLanguageName: 'Quetzaltepec Mixe (pxm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '936187db1c77b032', + displayName: 'GEO02', + fullName: 'Georgian Bible (Stockholm Edition, 2002)', + bestLanguageName: 'Georgian (kat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2de34b7b7577b7a8', + displayName: 'CBCWOT', + fullName: 'Bridgman-Culbertson Wenli Old Testament (1863) 裨治文-克陛存文理《舊約全書》', + bestLanguageName: 'Chinese (lzh-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e24b405291c6f45f', + displayName: 'NDV', + fullName: 'Ngudradrekai Bible: Old and New Testaments', + bestLanguageName: 'Rukai (dru)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c77b87a6ad608d8c', + displayName: 'MNKBI', + fullName: 'Mandinka Bible', + bestLanguageName: 'Mandingo (mnk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ab4261bb84031c8d', + displayName: 'CRSB', + fullName: 'Contemporary Russian Study Bible', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd92d74d8082c773a', + displayName: 'SC', + fullName: 'Welsh Metrical Psalms 1621 (Edmwnd Prys)', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c59cf0d2e5f5d42d', + displayName: 'TBR', + fullName: 'Tedim Bible Revision 2011', + bestLanguageName: 'Tedim Chin (ctd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1dc90b2f2b5827e0', + displayName: 'UNT', + fullName: 'Umbundu Nova Tradução', + bestLanguageName: 'Umbundu (umb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '647a590c899b8b1a', + displayName: 'TZOCH', + fullName: 'Tzotzil Chamula BI 2000', + bestLanguageName: 'Tzotzil (tzo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '38c1dfebdc703386', + displayName: 'ZOQCNT', + fullName: 'Nuevo Testamento en Zoque Copainalá', + bestLanguageName: 'Copainalá Zoque (zoc-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3129f41d6c0103b0', + displayName: 'ARC', + fullName: 'Almeida Revista e Corrigida 2009', + bestLanguageName: 'Portuguese (por-BR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '820a40522ff21f98', + displayName: 'ATMK', + fullName: 'Atikamekw NT 2014', + bestLanguageName: 'Atikamekw (atj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9753be135075a49b', + displayName: 'wrk', + fullName: 'Garrwa NT', + bestLanguageName: 'Garrwa (wrk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '79674dcc03683d36', + displayName: 'CHUJSSC', + fullName: 'Chuj San Sebastian', + bestLanguageName: 'Chuj (cac-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e5317085e13e5a69', + displayName: 'SCN', + fullName: 'Welsh New Metrical Psalms 2008 (Gwynn ap Gwilym)', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '717f718a6e4de539', + displayName: 'JB08', + fullName: 'Jula Bible + DC 2008', + bestLanguageName: 'Dyula (dyu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f4130c32a476f720', + displayName: 'FLMBCL', + fullName: 'Falam Bible Revision', + bestLanguageName: 'Falam Chin (cfm-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b19fcf462065a794', + displayName: 'CARS', + fullName: 'Central Asian Russian Scriptures', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '54b8d8e29301a53f', + displayName: 'CARST', + fullName: 'Central Asian Russian Scriptures, for Tajikistan', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd9d0cd5c1bb43798', + displayName: 'CARSA', + fullName: 'Central Asian Russian Scriptures (TAZI)', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'de198d2d1e3c22c2', + displayName: 'GULB', + fullName: 'Gulmancema Bible', + bestLanguageName: 'Gourmanchéma (gux)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4d7dc5e452920481', + displayName: 'AYBOL1986', + fullName: 'Biblia Aymara 1986', + bestLanguageName: 'Aymara (ayr-Latn-BO)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '26216846b8f947a4', + displayName: 'BGB01', + fullName: 'Biblia Guaraní Bolivia', + bestLanguageName: 'Guarani (gui)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1acb90cd67653967', + displayName: 'NLB', + fullName: 'Norwegian Living Bible', + bestLanguageName: 'Norwegian Bokmål (nob)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c315622e66e68f12', + displayName: 'GAXNT', + fullName: 'Guji Oromo New Testament 2007', + bestLanguageName: 'Oromo (gax)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b9440e028243c012', + displayName: 'FNVDC12', + fullName: 'Fijian New Version including Deuterocanonical Books', + bestLanguageName: 'Fijian (fij)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '13475a8bd77a2523', + displayName: 'NVJOB', + fullName: 'Navajo Bible 2000', + bestLanguageName: 'Navajo (nav-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fb8475ebff44d58a', + displayName: 'CCCbst', + fullName: 'Four Gospels Interconfessional Version (2015) 四福音書 – 共同譯本', + bestLanguageName: 'Chinese (cmn-Hant)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '53c0ab16c88f4f7b', + displayName: 'TBI', + fullName: 'Terjemahan Baru Indonesia', + bestLanguageName: 'Indonesian (ind)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9ba896baa0ca6fdf', + displayName: 'MB', + fullName: 'Moru Bible', + bestLanguageName: 'Moru (mgd-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5d7dc1eff15fa51e', + displayName: 'gyrNT', + fullName: 'Nuevo Testamento Guarayo', + bestLanguageName: 'Guarayu (gyr-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b83c4bcb77428e5e', + displayName: 'ChNTGlos', + fullName: 'GNT-Chin NT Interlinear Gloss希臘文中文新約逐字對照詞匯', + bestLanguageName: 'Chinese (cmn-Hant-HK)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '593dd8478f017140', + displayName: 'QANT92', + fullName: 'Quechua Ancash New Testament 1992', + bestLanguageName: 'Quechua (qwh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '30b4124afa5d6430', + displayName: 'MAABI17', + fullName: 'The Bible of Mabaan', + bestLanguageName: 'Mabaan (mfz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd671096143a78cc1', + displayName: 'TOT11', + fullName: 'Tibetan Old Testament 2011', + bestLanguageName: 'Tibetan (bod-Deva)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c25e9f13f2d5272f', + displayName: 'TAM1952R', + fullName: 'Romanised Tamil Gospel of Mark 1952', + bestLanguageName: 'Tamil (tam-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4592e23bf2c5b26e', + displayName: 'VUL07', + fullName: 'Biblia Sacra Vulgata 2007', + bestLanguageName: 'Latin (lat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '382787f59ff1209d', + displayName: 'VUL07A', + fullName: 'Biblia Sacra Vulgata 2007 Alternative Texts', + bestLanguageName: 'Latin (lat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6eda79520b919447', + displayName: 'SCB', + fullName: 'Shona Contemporary Bible', + bestLanguageName: 'Shona (sna)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '162ece1620c53247', + displayName: 'FAO1908', + fullName: 'Faroese Gospel of John 1908', + bestLanguageName: 'Faroese (fao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eb779d9d3dc4fd6e', + displayName: 'VOL', + fullName: 'Volapük First Epistle of John 1888', + bestLanguageName: 'Volapük (vol)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6940dc5375661851', + displayName: 'LU84NR06', + fullName: 'Lutherbibel 1984 Neue Rechtschreibung 2006', + bestLanguageName: 'German (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4f632bbc83e31016', + displayName: 'SEB08', + fullName: 'Slovak Ecumenical Bible 2017', + bestLanguageName: 'Slovak (slk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8cc5a190bd023340', + displayName: 'gun', + fullName: 'Guaraní Mbyá Bible -Brazil 2004 (DBL 2014)', + bestLanguageName: 'Guarani (gun)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '84ce231fe5e2d3bb', + displayName: 'XKSNT', + fullName: 'Khakas New Testament 2009', + bestLanguageName: 'Khakas (kjh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'be732654d8fe41bd', + displayName: 'ODIAOVBSI', + fullName: 'Odia - OV (Re-edited) - (BSI)', + bestLanguageName: 'Oriya (macrolanguage) (ory)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '39966db4c1157343', + displayName: 'MCNT91', + fullName: 'Moose Cree New Testament', + bestLanguageName: 'Cree (crm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '56627b4580f64fcf', + displayName: 'LIHB08', + fullName: 'Labrador Inuttitut Heritage Bible', + bestLanguageName: 'Inuktitut (ike-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '71ca6e5894beeb82', + displayName: 'BALTROMR', + fullName: 'Baltic Romani Bible 2019 in Roman script', + bestLanguageName: 'Romany (rml)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0b4cb00127e2411f', + displayName: 'BALTROM', + fullName: 'Baltic Romani Bible 2019 in Cyrillic script', + bestLanguageName: 'Romany (rml)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a54171ab57ae91d2', + displayName: 'malclBSI', + fullName: 'Malayalam C.L. Bible (BSI)', + bestLanguageName: 'Malayalam (mal)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7db214bcc316fddc', + displayName: 'NCT', + fullName: 'New Chhattisghari Translation (Nawan Chhattisgarhi Anuwad) 2016', + bestLanguageName: 'Chhattisgarhi (hne)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6d3c4e577cecd222', + displayName: 'AMATNT', + fullName: 'Tzeltal de Amatenango Nuevo Testamento', + bestLanguageName: 'Tzeltal (tzh-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0848b63d9e2d1d53', + displayName: 'BYZ1904', + fullName: 'Byzantine Text 1904', + bestLanguageName: 'Ancient Greek (to 1453) (grc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c062e10edf74f809', + displayName: 'TCV2019T', + fullName: + "Chinese-Traditional Script: Today's Chinese Version 2019 《現代中文譯本2019--繁體版》", + bestLanguageName: 'Chinese (cmn-Hant)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '259eac377fda3ee8', + displayName: 'FAR61', + fullName: 'Faroese Bible 1961', + bestLanguageName: 'Faroese (fao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9b1c00cd27707b24', + displayName: 'BLNT74', + fullName: 'Baoulé NT 1974', + bestLanguageName: 'Baoulé (bci-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9e1088d1d95f3aa9', + displayName: 'RLV15', + fullName: 'Revised Lao Version 2015', + bestLanguageName: 'Lao (lao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e42d68c49d775346', + displayName: 'Bassa02', + fullName: 'Bassa Bible 2002', + bestLanguageName: 'Bassa (bsq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '76bc3a962669e6a4', + displayName: 'LBS21', + fullName: 'La Bible Segond 21', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '76BC3A962669E6A4461D9B7C759C499D601C89C0ABCDEFFF', + }, + { + dblEntryUid: 'd167bc7612458ae7', + displayName: 'RLV', + fullName: 'Latvian Bible', + bestLanguageName: 'Latvian (lvs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8055649c6e4bf2c2', + displayName: 'azo', + fullName: 'Awing Bible Translation', + bestLanguageName: 'Awing (azo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0c58aad1794dc647', + displayName: 'bbkDBLnt', + fullName: 'Babanki NT', + bestLanguageName: 'Babanki (bbk-x-baba-cm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '26dc77afbf1998d8', + displayName: 'bmv', + fullName: 'Bum New Testament', + bestLanguageName: 'Bum (bmv-Latn-CM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5e75197844fa7382', + displayName: 'yat', + fullName: 'Yambeta', + bestLanguageName: 'Yambeta (yat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f21704bf53d99ad0', + displayName: 'TLB', + fullName: 'The Living Bible', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9e9143e14787b913', + displayName: 'nvzDBLnt', + fullName: 'Mbembe NT', + bestLanguageName: 'Tigon Mbembe (nza-Latn-CM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'de225bac4d006ab7', + displayName: 'ozm', + fullName: 'Nzime Bible', + bestLanguageName: 'Koonzime (ozm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4927d702e2d77b70', + displayName: 'CS1751A', + fullName: 'Church Slavonic Elizabeth Bible 1751 (with Arabic numbers)', + bestLanguageName: 'Slavonic, Church (chu-Cyrs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '734ded0b4cd9214c', + displayName: 'CU2010S', + fullName: 'Chinese Union Version 2010 (Simplified Chinese) Shangti Edition', + bestLanguageName: 'Chinese (cmn-Hans)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8f175592caa38ef1', + displayName: 'dug', + fullName: 'Duruma Bible', + bestLanguageName: 'Chiduruma (dug)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '499d5bc03a0ca91d', + displayName: 'ANT', + fullName: 'Ajie New Testament', + bestLanguageName: 'Ajië (aji)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b183e39afa624efa', + displayName: 'BWM', + fullName: 'Apocrypha to the William Morgan Bible 1959 Edition', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a8931093e4e3baf3', + displayName: 'GUE1863', + fullName: 'Guernésiais Gospel of Matthew 1863 by Georges Métivier', + bestLanguageName: 'Jèrriais (nrf-Latn-GG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '339c6f391f16b17a', + displayName: 'CAC2012', + fullName: 'Chechen Bible 2012', + bestLanguageName: 'Chechen (che-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cc32e3b4a5f53210', + displayName: 'ThSV11', + fullName: 'Thai Standard Version 2011D', + bestLanguageName: 'Thai (tha)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3363efced3df18f1', + displayName: 'Th71', + fullName: 'Thai 1971 (Digital)', + bestLanguageName: 'Thai (tha)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ac205cc87ccadfd6', + displayName: 'DNT08', + fullName: 'Tlicho Genesis and New Testament', + bestLanguageName: 'Tlicho (dgr-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8fb588a91b9b2d67', + displayName: 'NLT96', + fullName: 'New Living Translation US 1996', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5e19f680f8ac6068', + displayName: 'NLT04', + fullName: 'New Living Translation Second Edition US 2004', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '12d5a0bd45b065d8', + displayName: 'CMPMV', + fullName: 'Peking Mandarin Version (1872/1874) 《北京官話譯本》', + bestLanguageName: 'Chinese (cmn-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0a2e6f8dc2986cac', + displayName: 'CMUV', + fullName: 'Chinese Union Mandarin Version (1919) 《官話和合譯本》', + bestLanguageName: 'Chinese (cmn-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9cbd6b370ae7f2c6', + displayName: 'CWONTP', + fullName: + 'Orthodox Wenli New Testament - Mandarin Psalters (1910) 俄羅斯正教文理《希臘原文新約聖經》附《官話聖詠經》', + bestLanguageName: 'Chinese (lzh-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'df0abae15aea1a5b', + displayName: 'CMWNT', + fullName: 'WANG Yuan Teh, Newly Punctuated New Testament (1933) 王元德官話《新式標點新約全書》', + bestLanguageName: 'Chinese (cmn-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '412b13943ebf2c85', + displayName: 'CWUV', + fullName: 'Chinese Union High Wenli Version (1919) 文理和合譯本《新舊約全書》', + bestLanguageName: 'Chinese (lzh-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c96524500d508d7', + displayName: 'CEWUNT', + fullName: 'Chinese Union Easy Wenli New Testament (1912) 淺文理和合《新約全書》', + bestLanguageName: 'Chinese (lzh-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b16e034cef345028', + displayName: 'CWCSNT', + fullName: 'Chalmers-Schaub Wenli New Testament (1897) 湛約翰-韶瑪亭文理《新約全書》', + bestLanguageName: 'Chinese (lzh-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'feb24cb32810fabf', + displayName: 'LOCUK', + fullName: 'The Life of Christ as God Inspired Luke in the Holy Injil (Anglicised)', + bestLanguageName: 'English (eng-GB)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd9f49e4ff03f8678', + displayName: 'LOC', + fullName: 'The Life of Christ as God Inspired Luke in the Holy Injil', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6485dfe4bc496863', + displayName: 'YCE', + fullName: 'Bible in Yoruba', + bestLanguageName: 'Yoruba (yor)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bccb633877cb31ac', + displayName: 'byx', + fullName: 'Qaqet (Baining) NT', + bestLanguageName: 'Qaqet (byx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6ede4093fc1b7c5d', + displayName: 'Synod', + fullName: 'Russian: Synodal Orthodox Version 1994', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '90d78ff124d0f024', + displayName: 'bor', + fullName: 'Bororo NT Unicode', + bestLanguageName: 'Borôro (bor)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c32862faa6482d4e', + displayName: 'NCG', + fullName: 'Nishga Scripture Selections 1890, 1897 (Canada)', + bestLanguageName: 'Nisga’a (ncg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ebaaec3f76ecd580', + displayName: 'Kwak', + fullName: "Kwak'wala 4 Gospels, Acts and Selections 1897 (Canada)", + bestLanguageName: 'Kwakiutl (kwk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '126a6072fca2e7b7', + displayName: 'BLA1890', + fullName: 'Blackfoot Scripture Selections 1890 (Canada)', + bestLanguageName: 'Blackfoot (bla-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f6772bcf1016ea18', + displayName: 'MOH1774', + fullName: 'Mohawk Gospel of Mark 1774 (Canada)', + bestLanguageName: 'Mohawk (moh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a5351e03c0944b14', + displayName: 'MOH1804', + fullName: 'Mohawk Gospel of Saint John 1804 (Canada)', + bestLanguageName: 'Mohawk (moh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fbb7cb98381228f4', + displayName: 'ONE', + fullName: 'Oneida Scripture Selections 1837', + bestLanguageName: 'Oneida (one)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '34fe56354c6a9b04', + displayName: 'NXQ1932', + fullName: 'Naxi Gospel of Mark 1932 (Fraser script)', + bestLanguageName: 'Naxi (nxq-Lisu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '30c2cb6eb0af331e', + displayName: 'WB2011', + fullName: 'Wallisien Bible 2011', + bestLanguageName: 'Wallisian (wls)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1df1c510631e6683', + displayName: 'URDRPs', + fullName: "Zabúr - Owen's Psalms 1863 (Roman Urdū)", + bestLanguageName: 'Urdu (urd-Latn-PK)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a1795ae662094ef', + displayName: 'PNBR12', + fullName: 'Panjabi 4 Gospels and Acts 1917-1927 (Roman Punjábí)', + bestLanguageName: 'Lahnda (pnb-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd1fccc984bafe524', + displayName: 'KAL', + fullName: 'Biibili', + bestLanguageName: 'Inuktitut, Greenlandic (kal)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fe285a2c56e574d6', + displayName: 'EJK2012', + fullName: 'Evangile selon Jean en Kiwongo', + bestLanguageName: 'Wongo (won)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e959e47176271f18', + displayName: 'KLB', + fullName: 'Korean Living Bible (현대인의 성경) 1985', + bestLanguageName: 'Korean (kor)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1478d85a54261302', + displayName: 'DBSV', + fullName: 'Bibelen - aut. 1992', + bestLanguageName: 'Danish (dan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c58d1973cf970993', + displayName: 'QUECUZ', + fullName: 'Revised Quechua Cuzco Bible 2004', + bestLanguageName: 'Quechua (quz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '993c134df59374e2', + displayName: 'JGO', + fullName: 'Ngomba NT unicode', + bestLanguageName: 'Ngomba (jgo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '442ecaa3d4259a37', + displayName: 'YAS', + fullName: 'Nugunu Unicode', + bestLanguageName: 'Nugunu (yas)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fdfdb3a2b491d1c6', + displayName: 'NLA', + fullName: 'Ngombale New Testament', + bestLanguageName: 'Ngombale (nla)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f3446ecd7af4f951', + displayName: 'oku', + fullName: 'OKU NT', + bestLanguageName: 'Oku (oku)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f78b2bbd9741699e', + displayName: 'tvu', + fullName: 'Tunen Nouveau Testament', + bestLanguageName: 'Tunen (tvu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ac6ae93f5c1d41f4', + displayName: 'KCL01', + fullName: 'Kinyarwanda Common Language Bible 2001', + bestLanguageName: 'Rwanda (kin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '14eeaba3d3a516e5', + displayName: 'agq', + fullName: 'Aghem Scriptures', + bestLanguageName: 'Aghem (agq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '72033ee56a9390e7', + displayName: 'DO92apo', + fullName: 'Bibelen – aut. 1992 (med apokryfer)', + bestLanguageName: 'Danish (dan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cb76dbe75cf9d621', + displayName: 'WCBr', + fullName: 'Western Cree Bible SRO', + bestLanguageName: 'Cree (crk-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '967c2d1304b66edf', + displayName: 'WCBs', + fullName: 'Western Cree Bible in Syllabics', + bestLanguageName: 'Cree (crk-Cans)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8b3683514906c8da', + displayName: 'GagNTC', + fullName: 'Gagauz New Testament (Cyrillic)', + bestLanguageName: 'Gagauz (gag-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b1e72ece415eb81e', + displayName: 'GagNTL', + fullName: 'Gagauz New Testament (Latin)', + bestLanguageName: 'Gagauz (gag-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0a7247b64e1551f3', + displayName: 'VIE2010', + fullName: 'The Revised Vietnamese Bible 2010', + bestLanguageName: 'Vietnamese (vie)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5c2399b2db07c98c', + displayName: 'REB89', + fullName: 'English: Revised English Bible 1989', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c552ccb9e7d40ce6', + displayName: 'gjnB', + fullName: 'Gonja Bible', + bestLanguageName: 'Gonja (gjn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2bcb0f5d5147e66c', + displayName: 'RAD2015', + fullName: 'The Rade Bible 2015', + bestLanguageName: 'Rade (rad)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '673327618b81251d', + displayName: 'NTB', + fullName: 'Nguna Togoa Bible', + bestLanguageName: 'Efate, North (llp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7173413d6e4027b9', + displayName: 'CU2010T', + fullName: 'Chinese Union 2010 (Traditional Chinese) Shangti Edition', + bestLanguageName: 'Chinese (cmn-Hant)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da36251aa0fb905a', + displayName: 'BNT93', + fullName: 'Nouveau Testament Birifor 1993', + bestLanguageName: 'Birifor, Malba (bfo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0851c4dcaee3893d', + displayName: 'NET08', + fullName: 'English: New English Translation (NET Bible) 1996 - pre July 2011 update', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1ff24938918bd69e', + displayName: 'HBKESP', + fullName: 'Spanish: Comentario para Exégesis y Traducción', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '24daa5f24f0020b3', + displayName: 'HBKPT', + fullName: "Translator's Handbook Series in Portuguese", + bestLanguageName: 'Portuguese (por-BR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b1bb2a840333b52f', + displayName: 'BCNen', + fullName: 'Biblical Culture Notes (eng)', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd825aeedcdfea7ae', + displayName: 'NTBN', + fullName: 'English: NT Background Notes - Craig Keener', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f187d7f7786a7cd1', + displayName: 'BG2001', + fullName: 'Biblia Garífuna', + bestLanguageName: 'Garifuna (cab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '270a3ec35df7ab70', + displayName: 'RCQ12', + fullName: 'Chuya Qellqa - La Biblia en Quechua de Ayacucho 2012', + bestLanguageName: 'Quechua (quy-Latn-005)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '19cd186174de646a', + displayName: 'KSS', + fullName: 'Kurdi Sorani Standard 2016', + bestLanguageName: 'Kurdish (ckb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '97d7037d99dd00e5', + displayName: 'JNT', + fullName: 'Jamaican Creole Translation Project', + bestLanguageName: 'Jamaican Creole English (jam)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ec0aee212b234f9e', + displayName: 'BYSB', + fullName: 'Kinyarwanda Protestant Bible', + bestLanguageName: 'Rwanda (kin-RW)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cc3bf6bded7d6257', + displayName: 'LTZSNG', + fullName: 'Song of Solomon in Transylvanian Saxon German 1787', + bestLanguageName: 'German, Standard (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '43e315b442a7c862', + displayName: 'NLTUK', + fullName: 'New Living Translation, Anglicised', + bestLanguageName: 'English (eng-001)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b8ee27bcd1cae43a', + displayName: 'NASB1995', + fullName: 'New American Standard Bible 1995', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd9610ffb2f032758', + displayName: 'LEF', + fullName: 'The Word: Living Tswana New Testament 1993', + bestLanguageName: 'Tswana (tsn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aeb0a77654ea0cef', + displayName: 'SgMV', + fullName: 'Sgaw Mason Bible', + bestLanguageName: "Karen S'gaw (ksw)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9ea7245a669aa0a0', + displayName: 'GW', + fullName: "GOD'S WORD", + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd7794536459724a8', + displayName: 'KANJVBSI', + fullName: 'Kannada J.V. Bible (BSI)', + bestLanguageName: 'Kannada (kan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e936f9967f00529a', + displayName: 'KANCLBSI', + fullName: 'Kannada Common Language Bible (BSI)', + bestLanguageName: 'Kannada (kan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2bd348d16e6b4158', + displayName: 'BOVBSI', + fullName: 'Bengali Old Version Bible (BSI)', + bestLanguageName: 'Bengali (ben)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4aee0c42a7278793', + displayName: 'BENCLBSI', + fullName: 'Bengali Common Language Bible (BSI)', + bestLanguageName: 'Bengali (ben)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a768d9a32a2f6c79', + displayName: 'GUJCL-BSI', + fullName: 'Gujarati Common Language Bible (BSI)', + bestLanguageName: 'Gujarati (guj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e81b7e4df27a977a', + displayName: 'CWBSV', + fullName: 'Basset-Su, Wenli NT (1707) 白日昇-徐約翰文理新約(缺)', + bestLanguageName: 'Chinese (lzh-Hant-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8d719a6999f69101', + displayName: 'MARVBSI', + fullName: 'Marathi RV (Re-edited) Bible (BSI)', + bestLanguageName: 'Marathi (mar)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '95617ff51f03b6b8', + displayName: 'ODCLBSI', + fullName: 'Odia (CL) New Testament (BSI)', + bestLanguageName: 'Oriya (macrolanguage) (ory)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b1625d1f4236ce5', + displayName: 'MNB', + fullName: 'Lingala New Testament and Psalms 2002', + bestLanguageName: 'Lingala (lin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c1b6163a681c54b2', + displayName: 'BHNSB', + fullName: 'Biblia Habari Njema Study Bible', + bestLanguageName: 'Swahili (macrolanguage) (swh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9da352a72ceb803d', + displayName: 'GUJOVBSI', + fullName: 'Gujarati OV Reference Bible (BSI)', + bestLanguageName: 'Gujarati (guj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0c8e333a7aa78c92', + displayName: 'HINCLBSI', + fullName: 'Hindi CL Bible (BSI)', + bestLanguageName: 'Hindi (hin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ef63a1b9522ec604', + displayName: 'MRI2012', + fullName: 'Maori DBL 2012', + bestLanguageName: 'Maori (mri)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cd9f60f4a5bee8b5', + displayName: 'PLGNT93', + fullName: 'Pilagá NT', + bestLanguageName: 'Pilagá (plg-Latn-AR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '893d9b34bc4c00b3', + displayName: 'TUV', + fullName: 'Tuvan Bible 2011', + bestLanguageName: 'Tuva (tyv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8696dc2214228215', + displayName: 'HRE', + fullName: 'Hrê Bible', + bestLanguageName: 'Hre (hre-Latn-VN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd0021819347249de', + displayName: 'POPSNT', + fullName: 'Nuevo Testamento en Popoluca de Sayula', + bestLanguageName: 'Popoluca, Sayula (pos)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23a6d2e91ed11a25', + displayName: 'NTPURHE', + fullName: 'Biblia Purhepecha', + bestLanguageName: 'Purepecha, Western Highland (pua)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1fd99b0d5841e19b', + displayName: 'NRSV', + fullName: 'English: New Revised Standard Version 1989', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '92c194887a6efbc6', + displayName: 'KBNT', + fullName: 'Kinyarwanda Bibiliya Ntagatifu Catholic Bible with DC', + bestLanguageName: 'Rwanda (kin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '31784715c01e694a', + displayName: 'SUV', + fullName: 'Swahili Union Version 1997', + bestLanguageName: 'Swahili (macrolanguage) (swh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '875766e910657889', + displayName: 'LOV1930', + fullName: 'Romani Lovari Gospel of John 1930', + bestLanguageName: 'Romany (rmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fffe2a897323ec82', + displayName: 'BPH', + fullName: 'Bibelen på hverdagsdansk (The Bible in Everyday Danish)', + bestLanguageName: 'Danish (dan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5542a8cd0429163d', + displayName: 'TCB', + fullName: 'Tagalog Contemporary Bible (Ang Salita ng Dios)', + bestLanguageName: 'Tagalog (tgl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ed484deed765564d', + displayName: 'VCB', + fullName: 'Vietnamese Contemporary Bible (Kinh Thánh Hiện Đại)', + bestLanguageName: 'Vietnamese (vie)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'af5ec0cf514e94ec', + displayName: 'KGN', + fullName: 'Kiugo Gĩtheru Kĩa Ngai (The Holy Word of God)', + bestLanguageName: 'Kikuyu (kik)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '87ca7abc83fd75cf', + displayName: 'TZOXCH', + fullName: 'Biblia en Tzeltal de Oxchuc y Tenejapa', + bestLanguageName: 'Tzeltal (tzh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a0eead58359eebd2', + displayName: 'PDV', + fullName: 'Parole de Vie 2017', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e95f4ff7407fc936', + displayName: 'PCB', + fullName: 'Persian Contemporary Bible', + bestLanguageName: 'Persian (pes)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '44ae4df1af9b8ffb', + displayName: 'NLB', + fullName: 'New Latvian Inter-confessional Bible with Deuterocanonicals', + bestLanguageName: 'Latvian (lvs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd125bceacf2fa912', + displayName: 'CCB', + fullName: 'Chinese Contemporary Bible', + bestLanguageName: 'Chinese (cmn-Hans)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3782e0008621be23', + displayName: 'MJL-NT', + fullName: 'Mandeali Bible', + bestLanguageName: 'Mandeali (mjl-Deva)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1b0724cf7f46ec67', + displayName: 'KFSNT', + fullName: 'Bilaspuri NT', + bestLanguageName: 'Bilaspuri (kfs-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '39d12631f9de2331', + displayName: 'NGNT', + fullName: 'Nogai New Testament 2011', + bestLanguageName: 'Nogai (nog)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b2229031b9bf2192', + displayName: 'BFZNT', + fullName: 'Pahari Mahasui NT', + bestLanguageName: 'Pahari, Mahasu (bfz-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e26825284e3583a8', + displayName: 'TGGNT4', + fullName: 'Textual Guide to the GNT', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '58bdcc2d5fa65c81', + displayName: 'EHVM', + fullName: 'Evangelical Heritage Version - Metric 2020', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dcb0d58ed8dfbec1', + displayName: 'HINOVBSI', + fullName: 'Hindi OV (Re-edited) Bible (BSI)', + bestLanguageName: 'Hindi (hin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '811a8f7f6693a4fd', + displayName: 'TCD', + fullName: 'Tegbo', + bestLanguageName: 'Tafi (tcd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd8e10d078df603c9', + displayName: 'MCV', + fullName: 'Malayalam Contemporary Version 2020', + bestLanguageName: 'Malayalam (mal)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e3bdfee84d52f7d8', + displayName: 'ESP', + fullName: 'Esperanto Bible 1926 (Londona Biblio)', + bestLanguageName: 'Esperanto (epo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f5da2844f221dcd4', + displayName: 'GNT11', + fullName: 'Ghale New Testament 2011', + bestLanguageName: 'Ghale, Southern (ghe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '891e16c5d3c480e5', + displayName: 'kmu', + fullName: 'Kanite NT', + bestLanguageName: 'Kanite (kmu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd5bbe298aa0ea6cb', + displayName: 'TPV', + fullName: "Today's Persian Version", + bestLanguageName: 'Persian (pes)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '922a818462b80e17', + displayName: 'LezNT', + fullName: 'Lezgi New Testament', + bestLanguageName: 'Lezgi (lez)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bd600cff7fab7616', + displayName: 'PBSU', + fullName: 'Pakistan Bible Society Urdu', + bestLanguageName: 'Urdu (urd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1ab80a37a12c47a2', + displayName: 'MJV', + fullName: 'Mannan New Testament', + bestLanguageName: 'Mannan (mjv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a76b73a5b59b52fd', + displayName: 'XNRNT', + fullName: 'Kangri NT', + bestLanguageName: 'Dogri (macrolanguage) (xnr-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4761dfda0fe61278', + displayName: 'OSJNT', + fullName: 'Kulvi Outer Seraji NT', + bestLanguageName: 'Pahari, Kullu (kfx-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b9bbb477440e054b', + displayName: 'DGONT', + fullName: 'Dogri NT', + bestLanguageName: 'Dogri (macrolanguage) (dgo-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5db76fcac9efe08a', + displayName: 'GBKNT', + fullName: 'Gaddi NT', + bestLanguageName: 'Gaddi (gbk-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8bb0428eaade1f46', + displayName: 'KbdNTGP2017', + fullName: 'Kabardian NT, Genesis, Psalms (Stockholm 2017)', + bestLanguageName: 'Kabardian (kbd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1103c3f806efa8a0', + displayName: 'BedAp', + fullName: 'Irish Gaelic Bedell Apocrypha', + bestLanguageName: 'Irish (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '56f4cab1f5ee7f80', + displayName: 'HAIDA', + fullName: 'Haida Matthew, Luke, John and Acts 1891-99 (Canada)', + bestLanguageName: 'Haida (hdn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f4ece3a4b49952a6', + displayName: 'PYPB', + fullName: 'Pakistani Yousafzai Pashto Bible', + bestLanguageName: 'Pushto (pbu-PK)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c0a72b15403d917d', + displayName: 'TEG', + fullName: 'Book of the prophet Isaiah into English 1830, 1842 (John Jones alias Tegid)', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b5674f77348ad856', + displayName: 'TT', + fullName: "Translator's Translation : New Testament 1973", + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f6149f4ea43c36ed', + displayName: 'MP1781', + fullName: 'Translations in Verse of Several Passages of Scripture 1781 (Scottish Paraphrases)', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd119b368463b3760', + displayName: 'VMK2021', + fullName: 'MAKHUA SHIRIMA BIBLE', + bestLanguageName: 'Makhuwa-Shirima (vmk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '99c8724862823aaa', + displayName: 'aca', + fullName: 'Achagua Partial NT', + bestLanguageName: 'Achagua (aca)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '547f9898e876f638', + displayName: 'BFB', + fullName: 'Bible Fulfulde Bénin', + bestLanguageName: 'Fulah (fue)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3633688b52355609', + displayName: 'BIMK', + fullName: 'Bahasa Indonesia Masa Kini', + bestLanguageName: 'Indonesian (ind)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '89773b1789fb9fc4', + displayName: 'MCSB', + fullName: 'Matupi Chin Standard Bible', + bestLanguageName: 'Chin, Matu (hlt-Latn-MM-alalc97)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1d7dff747b079530', + displayName: 'bfd', + fullName: 'Bafut NT', + bestLanguageName: 'Bafut (bfd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '637cee93e7af5423', + displayName: 'lnl', + fullName: 'Banda, South Central: Ngbugu NT', + bestLanguageName: 'Banda, South Central (lnl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c14f4f6453b74111', + displayName: 'MannNT', + fullName: 'Mann New Testament 1978', + bestLanguageName: 'Mano (mev)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8b8a62d2b9b1b634', + displayName: 'bss', + fullName: 'Akoose NT', + bestLanguageName: 'Akoose (bss)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4ce187c16004310e', + displayName: 'CUNP89S', + fullName: + 'Chinese-Simplified Script: Chinese Union New Punctuation, Shen Edition 1989 《新标点和合本--简体版》', + bestLanguageName: 'Chinese (cmn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f6b631eba4a066b5', + displayName: 'gnd', + fullName: 'Bible Zulgo', + bestLanguageName: 'Zulgo-Gemzek (gnd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5ad09ac1b8314808', + displayName: 'agn', + fullName: 'Agutaynen NT 2020', + bestLanguageName: 'Agutaynen (agn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9b96eb7d2ccbf944', + displayName: 'adj', + fullName: 'Adioukrou NT', + bestLanguageName: 'Adioukrou (adj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '971b6a2f44ec980f', + displayName: 'duo', + fullName: 'Agta, Dupaninan NT', + bestLanguageName: 'Agta, Dupaninan (duo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4b50e708d3938888', + displayName: 'dgc', + fullName: 'Casiguran Agta NT', + bestLanguageName: 'Agta, Casiguran Dumagat (dgc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a84d52e9f525de1e', + displayName: 'due', + fullName: 'Agta, Umiray Dumaget NT', + bestLanguageName: 'Agta, Umiray Dumaget (due)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd00192a2414f7567', + displayName: 'apy', + fullName: 'Apalaí Bible', + bestLanguageName: 'Apalaí (apy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '253ca6a6dfb917ab', + displayName: 'apu', + fullName: 'Apurinã NT', + bestLanguageName: 'Apurinã (apu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2f550a30b6fcba31', + displayName: 'ake', + fullName: 'Akawaio NT', + bestLanguageName: 'Akawaio (ake)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1b8cb338a2c33a6c', + displayName: 'alp', + fullName: 'Alune NT', + bestLanguageName: 'Alune (alp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e557bfd542d01d57', + displayName: 'knj', + fullName: 'Akateko Bible', + bestLanguageName: 'Akateko (knj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '79a0f4eff14dfc57', + displayName: 'cpc', + fullName: 'Ajyininka Apurucayali NT', + bestLanguageName: 'Ajyíninka Apurucayali (cpc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a6a425ca2a6a4060', + displayName: 'amr', + fullName: 'Amarakaeri NT', + bestLanguageName: 'Amarakaeri (amr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fab46b7e06007824', + displayName: 'amu', + fullName: 'Amuzgo, Guerrero NT', + bestLanguageName: 'Amuzgo, Guerrero (amu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd8290e45ed604a80', + displayName: 'cko', + fullName: 'Anufo NT', + bestLanguageName: 'Anufo (cko-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '51e46273bb4fdcd3', + displayName: 'amk', + fullName: 'Ambai NT', + bestLanguageName: 'Ambai (amk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '75161331411e33e8', + displayName: 'apn', + fullName: 'Apinayé NT', + bestLanguageName: 'Apinayé (apn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bfa09aed4ae23261', + displayName: 'luc', + fullName: 'Aringa NT+', + bestLanguageName: 'Aringa (luc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8fde322f27658262', + displayName: 'aia', + fullName: 'Arosi NT', + bestLanguageName: 'Arosi (aia)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '18b90e59aa1395ed', + displayName: 'cnl', + fullName: 'Chinanteco, Lalana NT', + bestLanguageName: 'Chinantec, Lalana (cnl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd74f395a3d239bd9', + displayName: 'cni', + fullName: 'Asháninca NT+', + bestLanguageName: 'Asháninka (cni)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3357b76c0cdb4ff6', + displayName: 'prq', + fullName: 'Ashéninka Perené NT + OT por.', + bestLanguageName: 'Ashéninka Perené (prq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9c3d25003083cccf', + displayName: 'cjo', + fullName: 'Ashéninka Pajonal NT', + bestLanguageName: 'Ashéninka Pajonal (cjo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3f811454ac4bedb1', + displayName: 'cpb', + fullName: 'Ashéninka, Ucayali-Yurúa NT', + bestLanguageName: 'Ashéninka, Ucayali-Yurúa (cpb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7febf30538f77cad', + displayName: 'att', + fullName: 'Atta, Pamplona NT', + bestLanguageName: 'Atta, Pamplona (att)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cb5dbaee527dccf3', + displayName: 'aer', + fullName: 'Arrernte, Eastern NT+', + bestLanguageName: 'Arrernte, Eastern (aer)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c41d493c5c23540e', + displayName: 'car03', + fullName: 'Carib NT', + bestLanguageName: 'Carib (car)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '06071552c2f4c566', + displayName: 'avn', + fullName: 'Sideme NT', + bestLanguageName: 'Avatime (avn-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c6e324a0f911bff0', + displayName: 'XNZ1912', + fullName: 'Nubian Kenzi Mattoki Gospels 1912 (Egypt)', + bestLanguageName: 'Mattokki (xnz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '25b22b576c35c0a2', + displayName: 'avu', + fullName: 'Avokaya NT', + bestLanguageName: 'Avokaya (avu-Latn-SD)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b087f46a65a755e', + displayName: 'kwi', + fullName: 'Awa-Cuaiquer NT', + bestLanguageName: 'Awa-Cuaiquer (kwi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '90f455307abeca24', + displayName: 'bvd', + fullName: 'Baeguu NT', + bestLanguageName: 'Baeggu (bvd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd5eaf5a5d248b2c9', + displayName: 'blw', + fullName: 'Balangao NT', + bestLanguageName: 'Balangao (blw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '67a97af2ddaa2d93', + displayName: 'bki', + fullName: 'Baki NT', + bestLanguageName: 'Baki (bki)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1be0c07bb7426685', + displayName: 'bmo', + fullName: 'Chrambo NT+', + bestLanguageName: 'Bambalang (bmo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'af6cdfd3e1b6310b', + displayName: 'bcw', + fullName: 'Bana NT', + bestLanguageName: 'Bana (bcw-Latn-CM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '267844fecb17bbee', + displayName: 'bqj', + fullName: 'Bandial NT', + bestLanguageName: 'Bandial (bqj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '69161082b67ee0db', + displayName: 'muv', + fullName: 'Muthuvan New Testament', + bestLanguageName: 'Muthuvan (muv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '78370a4dbd7f9878', + displayName: 'blz', + fullName: 'Balantak NT', + bestLanguageName: 'Balantak (blz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '71c6eab17ae5b667', + displayName: 'NIV11', + fullName: 'New International Version 2011', + bestLanguageName: 'English (eng-US)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3e2eb613d45e131e', + displayName: 'NIV11UK', + fullName: 'New International Version (Anglicised) 2011 (Revised format)', + bestLanguageName: 'English (eng-GB)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '728722451fd29659', + displayName: 'bsn', + fullName: 'Barasana-Enduria NT', + bestLanguageName: 'Barasana-Eduria (bsn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '05c28acedd2a6ec1', + displayName: 'bzj', + fullName: 'Belize Kriol NT', + bestLanguageName: 'Belize Kriol English (bzj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1c43c34cda6e5a17', + displayName: 'bgs', + fullName: 'Tagabawa NT+ (2004)', + bestLanguageName: 'Tagabawa (bgs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '16c2ae6602e699ce', + displayName: 'arb', + fullName: 'True Meaning Arabic', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a14735ef7fa7ff3e', + displayName: 'bkd', + fullName: 'Binukid NT', + bestLanguageName: 'Binukid (bkd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '52fd6d389373d675', + displayName: 'bim', + fullName: 'Bimoba Bible', + bestLanguageName: 'Bimoba (bim-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '16de09806afe779f', + displayName: 'bzi', + fullName: 'Bisu NT', + bestLanguageName: 'Bisu (bzi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ece37f606ae9bb88', + displayName: 'QC88', + fullName: 'Biblia Quechua Cuzco 1988', + bestLanguageName: 'Quechua (quz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2a477198aeee3aae', + displayName: 'smk', + fullName: 'Bolinao NT', + bestLanguageName: 'Bolinao (smk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '56a6ad207cb136b1', + displayName: 'TURMAT', + fullName: 'Turkish Matthew 1883 (Roman script)', + bestLanguageName: 'Turkish (tur)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '47a1aaee52716d1a', + displayName: 'muy', + fullName: 'Muyang NT', + bestLanguageName: 'Muyang (muy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e13a21b35060dbaf', + displayName: 'lbk', + fullName: 'Bontoc, Central 1992 NT+', + bestLanguageName: 'Bontok (lbk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0153adc529772851', + displayName: 'ebk', + fullName: 'Bontoc, Eastern NT', + bestLanguageName: 'Bontok (ebk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '47019921599a9b25', + displayName: 'box', + fullName: 'Buamu NT', + bestLanguageName: 'Buamu (box)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'baff77ad4ee5721e', + displayName: 'RDEB', + fullName: 'Pastoral Epistles by Bishop Richard Davies c.1564', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5851c0acafa0cd40', + displayName: 'boa', + fullName: 'Bora NT', + bestLanguageName: 'Bora (boa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3cf0c5a0101af73f', + displayName: 'plw', + fullName: "Palawano, Brooke's Point NT", + bestLanguageName: 'Palawano, Brooke’s Point (plw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '90e7603034510058', + displayName: 'FBFNT', + fullName: 'Fulfulde Burkina Faso New Testament', + bestLanguageName: 'Fulah (ffm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '94b11e1e18ddca36', + displayName: 'Sperry', + fullName: 'Inuinnaqtun Scripture Portions', + bestLanguageName: 'Inuktitut (ikt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'faa191eb538bd373', + displayName: 'ChB14', + fullName: 'Chuvash Full Bible', + bestLanguageName: 'Chuvash (chv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1c970791662edf86', + displayName: 'HUIDC02', + fullName: 'Baibolo Mbuga Huli, PNG', + bestLanguageName: 'Huli (hui)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5843ec2f6d55ba48', + displayName: 'Tulu', + fullName: 'Tulu', + bestLanguageName: 'Tulu (tcy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8bab207dd9ce38db', + displayName: 'LNT1971', + fullName: 'Loma New Testament 1971', + bestLanguageName: 'Loma (lom)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd6e14a625393b4da', + displayName: 'NLT', + fullName: 'New Living Translation', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5e83af86f894be05', + displayName: 'bgt', + fullName: 'Bugotu NT', + bestLanguageName: 'Bughotu (bgt-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fef8392a43d0764d', + displayName: 'hch', + fullName: 'Huichol Bible', + bestLanguageName: 'Huichol (hch)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd75b2f45002bf377', + displayName: 'RIF', + fullName: 'TarifitLS', + bestLanguageName: 'Tarifit (rif)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2365c9d67e3c41b7', + displayName: 'APC', + fullName: 'Lebanese Rhymed Translation', + bestLanguageName: 'Arabic (apc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '990b74a59161fb77', + displayName: 'fuc', + fullName: 'Pulaar New Testament', + bestLanguageName: 'Fulah (fuc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6334e009d6afcf6d', + displayName: 'moz', + fullName: 'Guerguiko NT', + bestLanguageName: 'Mukulu (moz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '66992eaaf3106fcf', + displayName: 'NTR', + fullName: 'New Romanian Translation 2016', + bestLanguageName: 'Romanian (ron)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a966ef7650bfaca8', + displayName: 'SFB1998', + fullName: 'Svenska Folkbibeln 1998', + bestLanguageName: 'Swedish (swe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '22b6f0cee3f69bfd', + displayName: 'BG1992', + fullName: 'Scots Gaelic 1992 Bible, corrected 2017', + bestLanguageName: 'Scots Gaelic (gla)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '028eeb69d368180b', + displayName: 'POL', + fullName: "Gospels and Acts in Irish 1915, 1921 (Peter O'Leary)", + bestLanguageName: 'Irish Gaelic (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6da7fd830762fcb4', + displayName: 'nyy', + fullName: 'Nyakyusa NT', + bestLanguageName: 'Nyakyusa-Ngonde (nyy-Latn-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '77f7f2ded5e58934', + displayName: 'OC1965', + fullName: 'Irish Psalter 1965 (Ó Cuinn) Roman type', + bestLanguageName: 'Irish Gaelic (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bc81f240e3b4671a', + displayName: 'nih', + fullName: 'Nyiha NT', + bestLanguageName: 'Nyiha, Tanzania (nih)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '98a7485e214d5141', + displayName: 'sab', + fullName: 'Buglere NT', + bestLanguageName: 'Buglere (sab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '454bac3e076408d9', + displayName: 'buk', + fullName: 'Bugawac NT', + bestLanguageName: 'Bugawac (buk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '79a9589a3ed2d2c2', + displayName: 'abx', + fullName: 'Inabaknon NT', + bestLanguageName: 'Inabaknon (abx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '22fbf0c97434957a', + displayName: 'acd', + fullName: 'Gikyode NT', + bestLanguageName: 'Gikyode (acd-Latg-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1667ba6283ff7afc', + displayName: 'ame', + fullName: "Yanesha' NT", + bestLanguageName: 'Yanesha’ (ame)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e8835825505615cd', + displayName: 'lap', + fullName: 'Laka', + bestLanguageName: 'Laka (lap)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28fbb0147bc9e3a7', + displayName: 'dzo', + fullName: 'Dzongkha Daughter NT', + bestLanguageName: 'Dzongkha (dzo-BT)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b0a712f29a12836', + displayName: 'wos', + fullName: 'Hanga Hundi NT+', + bestLanguageName: 'Hanga Hundi (wos)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a433c0c70446dac4', + displayName: 'clu', + fullName: 'Caluyanun NT', + bestLanguageName: 'Caluyanun (clu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '32c7d6ce1ad1cef8', + displayName: 'mcu', + fullName: 'Mambila NT', + bestLanguageName: 'Mambila (mcu-Laoo-CM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9762b6baabd968ce', + displayName: 'kbh', + fullName: 'Camsá NT', + bestLanguageName: 'Camsá (kbh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '20e43567be33178b', + displayName: 'ram', + fullName: 'Canela Bible (portions)', + bestLanguageName: 'Canela (ram)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '334c1956967a2e33', + displayName: 'kaq', + fullName: 'Capanahua NT', + bestLanguageName: 'Capanahua (kaq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '40e2eb2610441cde', + displayName: 'aai', + fullName: 'Miniafia Oyan NT', + bestLanguageName: 'Miniafia Oyan (aai)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28959c42cfaca95a', + displayName: 'cbc', + fullName: 'Carapana NT', + bestLanguageName: 'Carapana (cbc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9d7b111134b5966b', + displayName: 'hns', + fullName: 'Caribbean Hindustani NT', + bestLanguageName: 'Hindustani, Caribbean (hns)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9957ab1b3dd4a4f9', + displayName: 'bfy', + fullName: 'Bagheli NT', + bestLanguageName: 'Bagheli (bfy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '30605e6ef0e515a0', + displayName: 'AchiCub', + fullName: "Wuj pa k'ub'ultzij", + bestLanguageName: 'Achi (acr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c740bf45dc8c0431', + displayName: 'llu', + fullName: 'Lau NT', + bestLanguageName: 'Lau (llu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '766c4abdbaa7da62', + displayName: 'cto', + fullName: 'Emberá-Catio Portions', + bestLanguageName: 'Emberá-Catío (cto)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7746efb7d906dba3', + displayName: 'FMU', + fullName: 'Muria Far Western NT', + bestLanguageName: 'Muria, Far Western (fmu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b019ddb0d9c0e3b6', + displayName: 'syb', + fullName: 'Subanen, Central NT', + bestLanguageName: 'Subanen, Central (syb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '61533cb1931e941b', + displayName: 'fuq', + fullName: 'Fulfulde, Eastern NT', + bestLanguageName: 'Fulah (fuq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b98db766fda36178', + displayName: 'ctp', + fullName: 'Chatino, Western Highlands NT', + bestLanguageName: 'Chatino, Western Highland (ctp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a7567733b3493edb', + displayName: 'cbt', + fullName: 'Chayahuita (Shahui) Bible', + bestLanguageName: 'Chayahuita (cbt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '680380b7a6373850', + displayName: 'cbk', + fullName: 'Chavacano NT', + bestLanguageName: 'Chavacano (cbk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '626a85156404d97e', + displayName: 'THV12Rdb', + fullName: "Today's Taiwan Hakka Version, Old and New Testaments – Roman Script Edition (2012)", + bestLanguageName: 'Chinese (hak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c44765fbdfdb0ed9', + displayName: 'CUNP89T', + fullName: + 'Chinese-Traditional Script: Chinese Union New Punctuation, Shangti Edition 1989 《新標點和合本--繁體版》', + bestLanguageName: 'Chinese (cmn-Hant)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0ebb84676b9fc691', + displayName: 'Tao', + fullName: 'The Tao New Testament 1994 - Seysyo No Tao', + bestLanguageName: 'Yami (tao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9fadd18edac4323a', + displayName: 'cav', + fullName: 'Cavineña NT', + bestLanguageName: 'Cavineña (cav)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f188b3374951b0a1', + displayName: 'cam', + fullName: 'Cemuhi NT', + bestLanguageName: 'Cemuhî (cam)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '81c1462ee8a0be1b', + displayName: 'sml', + fullName: 'Central Sinama (Sama) NT', + bestLanguageName: 'Sama, Central (sml)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6f0b0d3ea27a7bd7', + displayName: 'cme', + fullName: 'Cerma NT', + bestLanguageName: 'Cerma (cme)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c045301453de9d0d', + displayName: 'caa', + fullName: 'Chortí NT', + bestLanguageName: 'Ch’orti’ (caa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b6d6c43ff4c88b49', + displayName: 'cbi', + fullName: 'Chachi NT +', + bestLanguageName: 'Chachi (cbi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b9ccb5b581ed0ff1', + displayName: 'cta', + fullName: 'Chatino, Tataltepec NT', + bestLanguageName: 'Chatino, Tataltepec (cta)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '300a10974145ed17', + displayName: 'kis', + fullName: 'Kisan NT', + bestLanguageName: 'Kisan (xis)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4ef8214fade37f5f', + displayName: 'zty', + fullName: 'Zapoteco, Yatee NT+', + bestLanguageName: 'Zapotec (zty)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a97d3a2a470b1858', + displayName: 'zyp', + fullName: 'Chin, Zyphe NT', + bestLanguageName: 'Chin, Zyphe (zyp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '24a462af0e2e7c76', + displayName: 'cco', + fullName: 'Chinanteco, Comaltepec NT', + bestLanguageName: 'Chinantec, Comaltepec (cco)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '286ba0fe74fd59d2', + displayName: 'cle', + fullName: 'Chinantec, Lealao NT', + bestLanguageName: 'Chinantec, Lealao (cle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2fec8441511b401e', + displayName: 'chz', + fullName: 'Chinanteco, Ozumacín NT+Psalms', + bestLanguageName: 'Chinantec, Ozumacín (chz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b8455f2252994d82', + displayName: 'SNHB', + fullName: 'Simple Nepali Holy Bible', + bestLanguageName: 'Nepali (macrolanguage) (npi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd68773fd760b45c1', + displayName: 'VIE1925', + fullName: 'The Holy Bible in Vietnamese, 1925 version', + bestLanguageName: 'Vietnamese (vie)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '988cba0540ba5459', + displayName: 'Bibelen2020', + fullName: 'Bibelen 2020', + bestLanguageName: 'Danish (dan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '671d0b6e85ee2839', + displayName: 'hubPB', + fullName: 'Huambisa NT+', + bestLanguageName: 'Huambisa (hub)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b08b2990f2663027', + displayName: 'BWM', + fullName: 'Welsh William Morgan Bible (Parry/Davies Revision) 1955 Edition', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '826f63861180e056', + displayName: 'NTV', + fullName: 'Nueva Traducción Viviente', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4b1939668af9103b', + displayName: 'cmi', + fullName: 'Emberá-Chamí NT', + bestLanguageName: 'Emberá-Chamí (cmi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f6afafe51ac1a06a', + displayName: 'tdc', + fullName: 'Emberá-Tadó NT', + bestLanguageName: 'Emberá-Tadó (tdc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '81f5904e20d4f41a', + displayName: 'ess', + fullName: 'Yupik-Roman NT', + bestLanguageName: 'Yupik, Central Siberian (ess-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '61c2a4c594c391a4', + displayName: 'cpa', + fullName: 'Chinantec, Palantla NT', + bestLanguageName: 'Chinantec, Palantla (cpa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dc23d254e1eb17f8', + displayName: 'chq', + fullName: 'Chinanteco, Quiotepec NT', + bestLanguageName: 'Chinantec, Quiotepec (chq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '65b45bb30ea8b2d6', + displayName: 'cso', + fullName: 'Chinantec, Sochiapan NT', + bestLanguageName: 'Chinantec, Sochiapam (cso)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd06f97d18e3c0e0f', + displayName: 'bdh', + fullName: 'Baka NT+', + bestLanguageName: 'Baka (bdh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '68616311e194bc6d', + displayName: 'cnt', + fullName: 'Chinantec, Tepetotutla NT', + bestLanguageName: 'Chinantec, Tepetotutla (cnt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '59065be41b673406', + displayName: 'cuc', + fullName: 'Chinantec, Usila NT', + bestLanguageName: 'Chinantec, Usila (cuc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '16c2428004ba3d2b', + displayName: 'cax', + fullName: 'Manitanati Tuparrü NT', + bestLanguageName: 'Chiquitano (cax)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a804bbc16f5648c6', + displayName: 'cakSM', + fullName: 'Kaqchikel Santa Maria de Jesus NT', + bestLanguageName: 'Kaqchikel, Santa Maria de Jesus (cak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bc4e6ea72ebcd70a', + displayName: 'cakE', + fullName: 'Kaqchikel, Eastern NT', + bestLanguageName: 'Kaqchikel, Eastern (cak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '78df9d2017796a6a', + displayName: 'cakY', + fullName: 'Kaqchikel, South Western (Yepocapa) NT', + bestLanguageName: 'Kaqchikel, South Western (cak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'edc84e947196a225', + displayName: 'cakWS', + fullName: 'Kaqchikel, Western Solola NT', + bestLanguageName: 'Kaqchikel, Western Solola (cak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '00f8a1a8be6d4cbd', + displayName: 'tucT', + fullName: 'Mutu, Tuam NT', + bestLanguageName: 'Mutu, Tuam (tuc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e10c865a9b4054ae', + displayName: 'far', + fullName: 'Fataleka NT', + bestLanguageName: 'Fataleka (far-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6f11a7de016f942e', + displayName: 'MSG', + fullName: 'The Message', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '71e49a53b2b93c0b', + displayName: 'CMOK', + fullName: 'Bunong, Khmr NT+', + bestLanguageName: 'Mnong, Central (cmo-Khmr-KH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fdb480d858e14ced', + displayName: 'HTB', + fullName: 'Het Boek 2007', + bestLanguageName: 'Dutch (nld)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '5F1634A72EEB0AD4DB31430962392461C0A195B3ABCDEFFF', + }, + { + dblEntryUid: 'fc58a81f91b61c65', + displayName: 'ctuT', + fullName: 'Chol, Tumbalá Bible', + bestLanguageName: 'Chol, Tumbalá (ctu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '312b0d1e64e9e427', + displayName: 'ctuA', + fullName: 'Chol, Tila NT', + bestLanguageName: 'Chol, Tila (ctu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '04e08b7e53f9cbd6', + displayName: 'chd', + fullName: 'Chontal, Highland Oaxaca NT', + bestLanguageName: 'Chontal, Oaxaca Highland (chd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '90c5506ec2e93c7a', + displayName: 'chf', + fullName: 'Chontal, Tabasco NT', + bestLanguageName: 'Chontal, Tabasco (chf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ad17dab70c7c0f24', + displayName: 'cje', + fullName: 'Chru NT', + bestLanguageName: 'Chru (cje)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4212ea007316fdc6', + displayName: 'ncu', + fullName: 'Chumburung NT', + bestLanguageName: 'Chumburung (ncu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'af2850055669e932', + displayName: 'cao', + fullName: 'Chácobo NT', + bestLanguageName: 'Chácobo (cao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a6219db975224f50', + displayName: 'NIV84', + fullName: 'New International Version 1984', + bestLanguageName: 'English (eng-US)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1756e0608416c8ed', + displayName: 'asg', + fullName: 'Cishingini NT', + bestLanguageName: 'Cishingini (asg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '72ad58dcdee96569', + displayName: 'cof', + fullName: 'Colorado NT', + bestLanguageName: 'Colorado (cof)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cd46c32da91aeec2', + displayName: 'crn', + fullName: 'Cora, El Nayar Presidio De Los Reyes NT', + bestLanguageName: 'Cora, El Nayar (crn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '972e947e0667b722', + displayName: 'crl', + fullName: 'Cree: Coastal (East Coast) NT', + bestLanguageName: 'Cree (crl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3607c5584f018ec3', + displayName: 'JBCSS', + fullName: 'Cree, Southern East (Syllabics) NT', + bestLanguageName: 'Cree (crj-x-syllabic)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '59040483c70274f0', + displayName: 'cub', + fullName: 'Cubeo NT', + bestLanguageName: 'Cubeo (cub)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3d397212d9681b36', + displayName: 'cui', + fullName: 'Cuiba-Wamonae NT', + bestLanguageName: 'Cuiba (cui)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9dedc373cb101c70', + displayName: 'ayz', + fullName: 'MaiBrat NT+', + bestLanguageName: 'Mai Brat (ayz-Latn-ID)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fa53fbc157a012a1', + displayName: 'cab', + fullName: 'Garifuna NT', + bestLanguageName: 'Garifuna (cab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7d3a67c8f02497b8', + displayName: 'mau', + fullName: 'Mazatec, Huautla NT', + bestLanguageName: 'Mazatec, Huautla (mau)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a3164f8f56a98e8d', + displayName: 'AGS', + fullName: 'Esimbi New Testament', + bestLanguageName: 'Esimbi (ags-Latn-017)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4dee9bf4761b7655', + displayName: 'nbt', + fullName: 'NGWO BIBLE TRANSLATION', + bestLanguageName: 'Ngwo (ngn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd79834071357d3d6', + displayName: 'WEH', + fullName: 'Weh New Testament', + bestLanguageName: 'Weh (weh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9354afab38c22e1b', + displayName: 'ess', + fullName: 'Yupik-Cyrillic-NT', + bestLanguageName: 'Yupik, Central Siberian (ess-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '908e9e4fda557a9c', + displayName: 'bfm', + fullName: 'Mmen', + bestLanguageName: 'Mmen (bfm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '91d75e0c015dcfe2', + displayName: 'ybb', + fullName: 'Nouveau Testament Yemba', + bestLanguageName: 'Yemba (ybb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '03a3df1f32d1826d', + displayName: 'cut', + fullName: 'Cuicatec, Teutila NT', + bestLanguageName: 'Cuicatec, Teutila (cut)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3ce828fc82491779', + displayName: 'cux', + fullName: 'Cuicatec, Tepeuxila NT', + bestLanguageName: 'Cuicatec, Tepeuxila (cux)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6ca982d68850ea22', + displayName: 'mzw', + fullName: 'Deg Bible', + bestLanguageName: 'Deg (mzw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2fef7085f62a5ee3', + displayName: 'dsh', + fullName: 'Daasanach NT: Kenya and Ethiopia', + bestLanguageName: 'Daasanach (dsh-Latn-KE)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '73ccfd1246b31010', + displayName: 'daa', + fullName: 'Dangaléat NT', + bestLanguageName: 'Dangaléat (daa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd5d3a8a5cd196f02', + displayName: 'HAU79', + fullName: 'Hausa Full Bible 1979', + bestLanguageName: 'Hausa (hau)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '89cc9c7d2327bdcf', + displayName: 'ntr', + fullName: 'Delo (Ntrubo) NT', + bestLanguageName: 'Delo (Ntrubo) (ntr-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5aad8e5ca3501a42', + displayName: 'anv', + fullName: 'Denya NT', + bestLanguageName: 'Denya (anv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '064c51b2215e1586', + displayName: 'dwy', + fullName: 'Dhuwaya (Mark)', + bestLanguageName: 'Dhuwaya (dwy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0e724dcb1f62c16c', + displayName: 'mbd', + fullName: 'Manobo, Dibabawon NT', + bestLanguageName: 'Dibabawon Manobo (mbd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9f72b29d8a4d0cd8', + displayName: 'dhg', + fullName: 'Wangurri-E (Mark)', + bestLanguageName: 'Wangurri-E: Djangu (dhg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3df162713c63066f', + displayName: 'dhu', + fullName: 'Djangu (Mark)', + bestLanguageName: 'Djangu (dhg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6dc7d8b6e705a767', + displayName: 'dji', + fullName: 'Djinang Portions', + bestLanguageName: 'Djinang (dji)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e411905ce99fcb59', + displayName: 'cek', + fullName: 'Chin, Lemi (Eastern) NT', + bestLanguageName: 'Eastern Khumi Chin (cek-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c0c900912c86b41', + displayName: 'djk', + fullName: 'Maroon Creole (Eastern) NT', + bestLanguageName: 'Maroon Creole (Eastern) (djk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '910483afeb2d5512', + displayName: 'taj', + fullName: 'Tamang, Eastern NT', + bestLanguageName: 'Tamang, Eastern (taj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c8ed09b9e38c6f3', + displayName: 'emp', + fullName: 'Emberá, Northern NT+', + bestLanguageName: 'Emberá, Northern (emp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8bc6e1da19ad3ba0', + displayName: 'ese', + fullName: 'Ese Ejja NT', + bestLanguageName: 'Ese Ejja (ese)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e232ddd77a6e4aa3', + displayName: 'frd', + fullName: 'Fordata NT', + bestLanguageName: 'Fordata (frd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1bcc0df55e93bd63', + displayName: 'kud', + fullName: '’Auhelawa NT', + bestLanguageName: '’Auhelawa (kud)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a2b563d0d13be0c6', + displayName: 'ino', + fullName: 'Inoke-Yate NT', + bestLanguageName: 'Inoke-Yate (ino)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e1d0a80dc2f3e0e1', + displayName: 'rwo', + fullName: 'Rawa NT', + bestLanguageName: 'Rawa (rwo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f6813cdda09894fb', + displayName: 'NKJV', + fullName: 'New King James Version SA Paratext Resource ONLY', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bc6b001571866237', + displayName: 'BBR', + fullName: 'Bislama Bible Revised 2012', + bestLanguageName: 'Bislama (bis)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a65a2238d5aefb75', + displayName: 'SOVB', + fullName: 'Samoan Edited OV', + bestLanguageName: 'Samoan (smo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b1d01d27b0fa5f9', + displayName: 'RV1885', + fullName: 'Revised Version 1885', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9bb76cd3e5a7f9b4', + displayName: 'RV1895', + fullName: 'Revised Version with Apocrypha 1885, 1895', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0f38fd5da9d586dc', + displayName: 'NRT14', + fullName: 'New Russian Translation 2014', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '081ea5d3f7b0f5d9', + displayName: 'Tonga96', + fullName: 'Tonga Bible 1996', + bestLanguageName: 'Tonga (toi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f4aa566678480c75', + displayName: 'mgo', + fullName: 'Moghamo NT', + bestLanguageName: 'Moghamo (mgo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd6c7782ea3a4aec0', + displayName: 'tpt', + fullName: 'Tepehua, Tlachichilco NT', + bestLanguageName: 'Tepehua, Tlachichilco (tpt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55c84a9c00ed052c', + displayName: 'kia', + fullName: 'Garab (Kim) NT', + bestLanguageName: 'Kim (kia)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8ccec75152db08c6', + displayName: 'usa', + fullName: 'Usarufa NT', + bestLanguageName: 'Usarufa (usa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a718953646fa98d1', + displayName: 'kze', + fullName: 'Kosena NT', + bestLanguageName: 'Kosena (kze)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '79f7d696b3c5dd9e', + displayName: 'kto', + fullName: 'Kuot NT', + bestLanguageName: 'Kuot (kto)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e1b773c63b9b23de', + displayName: 'aojM', + fullName: 'Mufian NT', + bestLanguageName: 'Mufian (aoj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '182766624860673f', + displayName: 'nop', + fullName: 'Numanggang NT', + bestLanguageName: 'Numanggang (nop)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bd686ab2d8b290b1', + displayName: 'cap', + fullName: 'Chipaya NT', + bestLanguageName: 'Chipaya (cap)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11f36a7e4b485e65', + displayName: 'ffm', + fullName: 'Fulfulde, Maasina NT', + bestLanguageName: 'Fulah (ffm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '92055a5968337ee1', + displayName: 'krs', + fullName: 'Gbaya (Sudan) NT+', + bestLanguageName: 'Gbaya (Sudan) (krs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c262cf71f39ec3a9', + displayName: 'nlg', + fullName: 'Gela (Shorter Bible)', + bestLanguageName: 'Gela (nlg-Latn-SB)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6fa1f3dfc6739648', + displayName: 'gri', + fullName: 'Ghari Bible', + bestLanguageName: 'Ghari (gri)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd6ad1defd100c8ce', + displayName: 'xrb', + fullName: 'Karaboro (Eastern) NT', + bestLanguageName: 'Eastern Karaboro (xrb-Latn-BF)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1925aca9a079c718', + displayName: 'gqr', + fullName: 'Gor NT', + bestLanguageName: 'Gor (gqr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '21c885838f34e4cf', + displayName: 'guh', + fullName: 'Guahibo NT', + bestLanguageName: 'Guahibo (guh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b64fdaaef84f0bc9', + displayName: 'gub', + fullName: 'Guajajára Bible', + bestLanguageName: 'Guajajára (gub)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23b1ad8e17569bc0', + displayName: 'gum', + fullName: 'Guambiano NT+', + bestLanguageName: 'Guambiano (gum)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'db53489a3334ddd2', + displayName: 'gui', + fullName: 'Guarani (Eastern) NT', + bestLanguageName: 'Guarani (gui)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3ffc9d667633f7f2', + displayName: 'guo', + fullName: 'Guayabero NT', + bestLanguageName: 'Guayabero (guo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd426eb3c2426527d', + displayName: 'gde', + fullName: 'Gude NT', + bestLanguageName: 'Gude (gde-Latn-NG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '430c1a68e87c4848', + displayName: 'mqb', + fullName: 'Mbuko NT', + bestLanguageName: 'Mbuko (mqb-CM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c9e5d37808a5299c', + displayName: 'kup', + fullName: 'Kunimaipa NT', + bestLanguageName: 'Kunimaipa (kup)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11d4396ce7779bcf', + displayName: 'zaa', + fullName: 'Zapotec, Sierra de Juárez NT', + bestLanguageName: 'Zapotec (zaa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'db8cc8a6919c992e', + displayName: 'gnw', + fullName: 'Guaraní Pe (Western) NT', + bestLanguageName: 'Guarani (gnw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7f1784650c75ad61', + displayName: 'CDHNT', + fullName: 'Chambeali New Testament', + bestLanguageName: 'Chambeali (cdh-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '41ce8b44e0f21bdc', + displayName: 'mim', + fullName: 'Alacatlatzala Mixtec NT', + bestLanguageName: 'Mixtec, Alacatlatzala (mim)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bf10e6d029f90190', + displayName: 'auu', + fullName: 'Auye NT', + bestLanguageName: 'Auye (auu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5d0ad184487035d9', + displayName: 'rai', + fullName: 'Ramoaaina NT', + bestLanguageName: 'Ramoaaina (rai)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '101091b9c6fffcf5', + displayName: 'atb', + fullName: 'Zaiwa NT', + bestLanguageName: 'Zaiwa (atb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b7c126d9e88c4c2f', + displayName: 'pir', + fullName: 'Piratapuyo NT', + bestLanguageName: 'Piratapuyo (pir)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '73e51d34db0a0b35', + displayName: 'tue', + fullName: 'Tuyuca NT', + bestLanguageName: 'Tuyuca (tue)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '646bd9a9c4f5ce40', + displayName: 'zpz', + fullName: 'Zapotec, Texmelucan NT', + bestLanguageName: 'Zapotec (zpz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8362a52f904a0b7b', + displayName: 'pad', + fullName: 'Paumari NT', + bestLanguageName: 'Paumarí (pad)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '016dbc6987be7394', + displayName: 'zar', + fullName: 'Zapotec, Rincón NT', + bestLanguageName: 'Zapotec (zar)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3671f1444df6024f', + displayName: 'zsr', + fullName: 'Zapotec, Southern Rincon NT', + bestLanguageName: 'Zapotec (zsr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1466689a02363a43', + displayName: 'zpm', + fullName: 'Zapotec, Mixtepec NT', + bestLanguageName: 'Zapotec (zpm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd8ae4308e4f2124e', + displayName: 'zao', + fullName: 'Zapotec, Ozolotepec NT', + bestLanguageName: 'Zapotec (zao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b4f9a5983f552d2f', + displayName: 'zad', + fullName: 'Zapotec, Cajonos NT', + bestLanguageName: 'Zapotec (zad)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'db111acb7f97e9b2', + displayName: 'tav', + fullName: 'Tatuyo NT', + bestLanguageName: 'Tatuyo (tav)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '45c44b64dcd32d69', + displayName: 'myy', + fullName: 'Macuna NT', + bestLanguageName: 'Macuna (myy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '07a5bbfda14fe3ff', + displayName: 'quh', + fullName: 'Quechua, South Bolivia NT', + bestLanguageName: 'Quechua (quh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '56c199cb3802e32e', + displayName: 'jic', + fullName: 'Tol NT', + bestLanguageName: 'Tol (jic)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bad76f7aceb507ce', + displayName: 'qvz', + fullName: 'Quichua, Northern Pastaza NT', + bestLanguageName: 'Quechua (qvz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1649efbc114f6b64', + displayName: 'mcd', + fullName: 'Sharanahua: Diospan Tsain NT+', + bestLanguageName: 'Sharanahua: Diospan Tsain (mcd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8ed0b41c70a4f1b7', + displayName: 'cbs', + fullName: 'Kashinawa (PE) NT', + bestLanguageName: 'Kashinawa (cbs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bfe3d27ca02d8188', + displayName: 'cbs', + fullName: 'Kashinawa (BR) NT+', + bestLanguageName: 'Kashinawa (cbs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f3621170013f2994', + displayName: 'tna', + fullName: 'Tacana NT', + bestLanguageName: 'Tacana (tna)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7626187e0bba183b', + displayName: 'ntp', + fullName: 'Tepehuan, Northern NT', + bestLanguageName: 'Tepehuan, Northern (ntp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8f0309f126353571', + displayName: 'zac', + fullName: 'Zapotec, Ocotlán NT', + bestLanguageName: 'Zapotec (zac)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f94c74ed22a440d6', + displayName: 'zpu', + fullName: 'Zapoteco de Yalálag NT', + bestLanguageName: 'Zapotec (zpu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b4d34b7add862c3c', + displayName: 'poe', + fullName: 'Popoloca, San Juan Atzingo NT+', + bestLanguageName: 'Popoloca, San Juan Atzingo (poe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fb2c2b8257ebc32c', + displayName: 'pio', + fullName: 'Piapoco NT', + bestLanguageName: 'Piapoco (pio)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5c0ffae39f24d315', + displayName: 'nsu', + fullName: 'Nahuatl, Sierra Negra NT', + bestLanguageName: 'Nahuatl: Sierra Negra (nsu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '845e3a887762a2d2', + displayName: 'mco', + fullName: 'Mixe, Coatlán NT', + bestLanguageName: 'Mixe, Coatlán (mco)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a980fb87c8e9f2aa', + displayName: 'nhg', + fullName: 'Nahuatl, Tetelcingo NT', + bestLanguageName: 'Nahuatl, Tetelcingo (nhg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '48744c6ee501e226', + displayName: 'ots', + fullName: 'Otomi NT', + bestLanguageName: 'Otomi (ots)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fbbd1d2ad6d291c8', + displayName: 'qva', + fullName: 'Quechua, Ambo-Pasco NT', + bestLanguageName: 'Quechua (qva)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5f74f096be578a6b', + displayName: 'qxl', + fullName: 'Quichua, Salasaca Highland NT', + bestLanguageName: 'Quechua (qxl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '116befe943739e04', + displayName: 'vmy', + fullName: 'Mazateco, Ayautla NT', + bestLanguageName: 'Mazateco, Ayautla (vmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '597b488573c7f741', + displayName: 'cok', + fullName: 'Cora, Santa Teresa NT+', + bestLanguageName: 'Cora, Santa Teresa (cok)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c7c3c73c2874659d', + displayName: 'srm', + fullName: 'Saramaccan NT', + bestLanguageName: 'Saramaccan (srm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a07af57fe28ef371', + displayName: 'mti', + fullName: 'Maiwa NT', + bestLanguageName: 'Maiwa (mti)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '856d8ec84c44ba67', + displayName: 'pib', + fullName: 'Yine NT', + bestLanguageName: 'Yine (pib)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '048275bd5f115553', + displayName: 'ubr', + fullName: 'Ubir NT+', + bestLanguageName: 'Ubir (ubr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b7a4c822da56da3c', + displayName: 'tlf', + fullName: 'Telefol NT', + bestLanguageName: 'Telefol (tlf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2d8b3d8d484d9752', + displayName: 'hop', + fullName: 'Hopi NT', + bestLanguageName: 'Hopi (hop)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '50d5dd99e6679f98', + displayName: 'ian', + fullName: 'Iatmul NT', + bestLanguageName: 'Iatmul (ian)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '449a69b81a7d96fb', + displayName: 'aom', + fullName: 'Ömie NT', + bestLanguageName: 'Ömie (aom)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '24706c16604c6f30', + displayName: 'kjs', + fullName: 'Kewa, East NT', + bestLanguageName: 'Kewa, East (kjs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '60e5971313e0723a', + displayName: 'snpL', + fullName: 'Siane, Lambau NT', + bestLanguageName: 'Siane, Lambau (snp-x-lambau)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '81c90cd4c4652a6f', + displayName: 'snpK', + fullName: 'Siani, Komongu NT', + bestLanguageName: 'Siane, Komongu (snp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0d18dba5d3d0a158', + displayName: 'byr', + fullName: 'Yipma NT+', + bestLanguageName: 'Yipma (byr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '071fab052573e029', + displayName: 'stp', + fullName: 'Tepehuán,Southeastern (Durango) NT', + bestLanguageName: 'Tepehuan, Southeastern (stp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '58733f8dc80dcf1d', + displayName: 'ign', + fullName: 'Ignaciano NT', + bestLanguageName: 'Ignaciano (ign)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a9314187ac9c946e', + displayName: 'cwa', + fullName: 'Kabwa NT+', + bestLanguageName: 'Kabwa (cwa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '41a6caa722a21d88', + displayName: 'NVT', + fullName: 'Nova Versão Transformadora', + bestLanguageName: 'Portuguese (por)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '21f6a63e1b47fac2', + displayName: 'ntk', + fullName: 'Ikoma NT', + bestLanguageName: 'Ikoma-Nata-Isenye (ntk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28f1386230725360', + displayName: 'UBIO', + fullName: 'Ukrainian Ohienko Bible 1962', + bestLanguageName: 'Ukrainian (ukr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '83abc8c1746443c3', + displayName: 'gfk', + fullName: 'Sokarek (Patpatar) NT', + bestLanguageName: 'Patpatar (gfk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eeaf12df03835eb2', + displayName: 'gfk', + fullName: 'Hinsaal (Patpatar) NT', + bestLanguageName: 'Patpatar (gfk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '597a4b6f7639ff59', + displayName: 'TELUBSI', + fullName: 'Telugu Old Version Bible (BSI)', + bestLanguageName: 'Telugu (tel)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0d089c61e76d5c0b', + displayName: 'gyr', + fullName: 'Guarayu NT -Bolivia 2011', + bestLanguageName: 'Guarayu (gyr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b9ad5dd4e89dac05', + displayName: 'sua', + fullName: 'Sulka NT', + bestLanguageName: 'Sulka (sua)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ab4a205d69cfb801', + displayName: 'gwi', + fullName: "Gwich'in NT", + bestLanguageName: "Gwich'in (gwi)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c058c88d8250bfb0', + displayName: 'tmd', + fullName: 'Haruai NT', + bestLanguageName: 'Haruai (tmd-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c3f6d74be036a462', + displayName: 'hot', + fullName: 'Hote NT', + bestLanguageName: 'Hote (hot)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '05749a20390d4b57', + displayName: 'hus', + fullName: 'Huasteco, Veracruz NT', + bestLanguageName: 'Huastec, Veracruz (hus-Latn-MX)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4debd996d0f50e67', + displayName: 'hus', + fullName: 'Huastec, San Luis Potosi NT', + bestLanguageName: 'Huastec, San Luis Potosi (hus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2666ed6ef732c8ad', + displayName: 'iou', + fullName: 'Tuma-Irumu NT+', + bestLanguageName: 'Tuma-Irumu (iou)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b12d679fd489973', + displayName: 'hto', + fullName: 'Huitoto, Minica NT', + bestLanguageName: 'Huitoto, Minica (hto)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2462be97e14f3bce', + displayName: 'huu', + fullName: 'Huitoto, Murui NT', + bestLanguageName: 'Huitoto, Murui (huu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28c40de349db51a4', + displayName: 'yml', + fullName: 'Iamalele NT', + bestLanguageName: 'Iamalele (yml)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '252df8806fdbf560', + displayName: 'ibl', + fullName: 'Ibaloi NT', + bestLanguageName: 'Ibaloi (ibl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0d23e663aa9e7e96', + displayName: 'ivb', + fullName: 'Ibatan NT+', + bestLanguageName: 'Ibatan (ivb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '41fe607dd3a97318', + displayName: 'viv', + fullName: 'Iduna NT', + bestLanguageName: 'Iduna (viv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2c678242bb84b45b', + displayName: 'ifu', + fullName: 'Mayoyao Ifugao NT', + bestLanguageName: 'Ifugao, Mayoyao (ifu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd73d2b43f56bf6a6', + displayName: 'ife', + fullName: 'Ifè NT', + bestLanguageName: 'Ifè (ife)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b2b132346e012b30', + displayName: 'inb', + fullName: 'Inga NT', + bestLanguageName: 'Inga (inb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1b419c3b590c8a4a', + displayName: 'tew', + fullName: 'Tewa NT', + bestLanguageName: 'Tewa (USA) (tew)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dc04906a97e9431e', + displayName: 'ipi', + fullName: 'Ipili NT', + bestLanguageName: 'Ipili (ipi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a31f444baa9cbaf9', + displayName: 'icr', + fullName: 'San Andres Islander Creole NT', + bestLanguageName: 'Islander Creole English (icr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b2e7b000f5707e49', + displayName: 'imo', + fullName: 'Imbongu NT', + bestLanguageName: 'Imbongu (imo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6f36b23b14001375', + displayName: 'ivv', + fullName: 'Ivatan NT+', + bestLanguageName: 'Ivatan (ivv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9900a9087820267e', + displayName: 'kbm', + fullName: 'Iwal NT', + bestLanguageName: 'Iwal (kbm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '62553a0b16aa3072', + displayName: 'iws', + fullName: 'Iwam, Sepik NT', + bestLanguageName: 'Iwam, Sepik (iws)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0c46c1baf7d0fa5c', + displayName: 'SCOMP', + fullName: 'Scots Metrical Psalms by T. T. Alexander 1928', + bestLanguageName: 'Scots (sco)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ea5aaf3eb532ba1d', + displayName: 'MKL', + fullName: 'Bible Monkolé', + bestLanguageName: 'Mokole (mkl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a6c72a26732c8ba5', + displayName: 'NVSR78Col', + fullName: 'Nouvelle version Segond révisée 1978 (Colombe)', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9e7600f5f3e383d8', + displayName: 'kgp', + fullName: 'Kaingang NT', + bestLanguageName: 'Kaingang (kgp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9ec0d51f1b887712', + displayName: 'WCHB', + fullName: 'Biblia Wichí', + bestLanguageName: 'Wichí Lhamtés Güisnay (mzh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f5e458a2240c93a1', + displayName: 'zpg', + fullName: 'Zapotec, Guevea De Humboldt NT', + bestLanguageName: 'Zapotec (zpg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aebec6f2219bb7de', + displayName: 'gnn', + fullName: 'Gumatj Shorter Bible', + bestLanguageName: 'Gumatj (gnn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5d63ab5e97eaabe5', + displayName: 'rub', + fullName: 'Lugungu (Gungu) NT', + bestLanguageName: 'Gungu (rub)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7f3c1bc7341d5b9c', + displayName: 'hla', + fullName: 'Halia NT (Revised)', + bestLanguageName: 'Halia (hla)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2dad83033884a3ad', + displayName: 'ixlN', + fullName: 'Ixil, Nebaj NT', + bestLanguageName: 'Ixil Nebaj (ixl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e26a918b0acf5e36', + displayName: 'ixl', + fullName: 'Ixil, Chajul NT', + bestLanguageName: 'Ixil, Chajul (ixl-Latn-GT)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2bac6224ab47bab8', + displayName: 'ixl', + fullName: 'Ixil, San Juan Cotzal NT', + bestLanguageName: 'Ixil, Cotzal (ixl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '540781f1aef0e4b4', + displayName: 'jac', + fullName: 'Jakalteko NT', + bestLanguageName: 'Jakalteko (jac)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '21f7d6c081d573ec', + displayName: 'jvn', + fullName: 'Javanese, Caribbean NT', + bestLanguageName: 'Javanese, Caribbean (jvn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ceaf15813d1bf804', + displayName: 'csk', + fullName: 'Jola-Kasa NT', + bestLanguageName: 'Jola-Kasa (csk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3b27e469e7557a6a', + displayName: 'quc', + fullName: "K'iche' NT (New Orthography)", + bestLanguageName: "K'iche' (New Ortho) (quc)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dd5c5f7428bdbc7d', + displayName: 'quc', + fullName: "K'iche' NT (Traditional)", + bestLanguageName: "K'iche' (Traditional) (quc)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cd05a7dd5f61364e', + displayName: 'gna', + fullName: 'Kaansa NT', + bestLanguageName: 'Kaansa (gna-Latn-BF)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '133b0a8d2a07401b', + displayName: 'urb', + fullName: 'Kaapor NT', + bestLanguageName: 'Kaapor (urb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b672e26d4f7835ae', + displayName: 'kbc', + fullName: 'Kadiwéu NT', + bestLanguageName: 'Kadiwéu (kbc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fa936c55a35ba260', + displayName: 'cgc', + fullName: 'Kagayanen NT', + bestLanguageName: 'Kagayanen (cgc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c2e7f5dd6cb1b494', + displayName: 'ncj', + fullName: 'Nahuatl, Northern Puebla NT', + bestLanguageName: 'Nahuatl, Northern Puebla (ncj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b510c31ff4b22ec3', + displayName: 'kmo', + fullName: 'Kwoma NT', + bestLanguageName: 'Kwoma (kmo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f42c8a7b7de98849', + displayName: 'mpt', + fullName: 'Mian NT', + bestLanguageName: 'Mian (mpt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c8192d680a166e43', + displayName: 'god', + fullName: 'Godie NT', + bestLanguageName: 'Godié (god)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e402652a2d808963', + displayName: 'BAN', + fullName: 'Bantawa Rai NT+', + bestLanguageName: 'Bantawa (bap)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd26ef201ef9cf3f2', + displayName: 'SNC', + fullName: 'Slovo na cestu (Czech Living New Testament) 2012', + bestLanguageName: 'Czech (ces)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3b6ce54d76a633a4', + displayName: 'NASV', + fullName: 'New Amharic Standard Version 2001', + bestLanguageName: 'Amharic (amh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23d389a765305e49', + displayName: 'tsw', + fullName: 'Tsishingini NT', + bestLanguageName: 'Tsishingini (tsw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ab9780f83dc59308', + displayName: 'atd', + fullName: 'Manobo, Ata NT', + bestLanguageName: 'Manobo, Ata (atd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9cf034e8ab176724', + displayName: 'suz', + fullName: 'Sunuwar Bible', + bestLanguageName: 'Sunuwar (suz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '999c46502b0ff16a', + displayName: 'PUU1992', + fullName: 'Punu Bible 1992', + bestLanguageName: 'Punu (puu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dabbbbee881a4cad', + displayName: 'kew', + fullName: 'Kewa, West - Shorter Bible', + bestLanguageName: 'Kewa, West (kew)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8d250131e5f5a3fd', + displayName: 'dad', + fullName: 'Marik NT', + bestLanguageName: 'Marik (dad)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1ed38e2de48644b8', + displayName: 'gdr', + fullName: 'Wipi NT', + bestLanguageName: 'Wipi (gdr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fee146cf2c11878c', + displayName: 'bmu', + fullName: 'Somba-Siawari NT+', + bestLanguageName: 'Somba-Siawari (bmu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c3f4ba157ab847cd', + displayName: 'KrkNT2004', + fullName: 'Karakalpak New Testament (2004)', + bestLanguageName: 'Karakalpak (kaa-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b2b53c89ed39448', + displayName: 'QVW', + fullName: 'Quechua V Wanca OT', + bestLanguageName: 'Quechua (qvw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7111aa8f0412a181', + displayName: 'opm', + fullName: 'Oksapmin NT', + bestLanguageName: 'Oksapmin (opm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '95f2d019a70639ba', + displayName: 'sll', + fullName: 'Salt-Yui NT', + bestLanguageName: 'Salt-Yui (sll)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e74083e2cb1a5420', + displayName: 'wmw', + fullName: 'Mwani NT+', + bestLanguageName: 'Mwani (wmw-Latn-MZ)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6e1a4389dbcf2801', + displayName: 'too', + fullName: 'Totonac, Xicotepec De Juárez NT', + bestLanguageName: 'Totonac, Xicotepec De Juárez (too)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a4feee162ccfa745', + displayName: 'sgz', + fullName: 'Sursurunga NT', + bestLanguageName: 'Sursurunga (sgz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '237c316a234a0fa7', + displayName: 'noa', + fullName: 'Woun Meu NT', + bestLanguageName: 'Woun Meu (noa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '68832f724b923368', + displayName: 'RCRB28', + fullName: 'Romanian Cornilescu 1924 Reference Bible', + bestLanguageName: 'Romanian (ron)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '25e8cfcca6748f11', + displayName: 'tiy', + fullName: 'Tiruray NT', + bestLanguageName: 'Tiruray (tiy-Latn-PH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f15917f013d5026d', + displayName: 'kde', + fullName: 'Makonde NT', + bestLanguageName: 'Makonde (kde)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8ff69087199ea716', + displayName: 'nch', + fullName: 'Icamanal Toteco (Central) - Bible', + bestLanguageName: 'Nahuatl, Huasteca Central (nch)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5ab2a8daa61a137a', + displayName: 'nhw', + fullName: 'Nahuatl, Huasteca (Western) - Bible', + bestLanguageName: 'Nahuatl, Huasteca Western (nhw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a429410aeeeedbb', + displayName: 'kpx', + fullName: 'Koiali, Mountain NT', + bestLanguageName: 'Koiali, Mountain (kpx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c63752b0d7665cca', + displayName: 'ong', + fullName: 'Olo NT', + bestLanguageName: 'Olo (ong)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5bdee32018b61748', + displayName: 'ncl', + fullName: 'Nahuatl, Michoacán NT', + bestLanguageName: 'Nahuatl, Michoacán (ncl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f8a26118a504f1c5', + displayName: 'nhi', + fullName: 'Nahuatl: Zacatlán, Ahuacatlán, Tepetzintla NT', + bestLanguageName: 'Nahuatl: Zacatlán, Ahuacatlán, Tepetzintla (nhi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0069c835ae68b7b4', + displayName: 'soq', + fullName: 'Kanasi NT', + bestLanguageName: 'Kanasi (soq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '63cf47cfb6916962', + displayName: 'esk', + fullName: 'Iñupiatun (NW Alaska) NT', + bestLanguageName: 'Inupiaq (esk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6e347966e7af61bb', + displayName: 'mbb', + fullName: 'Manobo, Western Bukidnon OT', + bestLanguageName: 'Manobo, Western Bukidnon OT (mbb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '314600cda3f690b2', + displayName: 'mbb', + fullName: 'Manobo, Western Bukidnon NT', + bestLanguageName: 'Manobo, Western Bukidnon (mbb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '83f2e8958a5e97fb', + displayName: 'npl', + fullName: 'Nahuatl, Southeastern Puebla NT', + bestLanguageName: 'Nahuatl, Southeastern Puebla (npl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8bf6843e2a590435', + displayName: 'nhy', + fullName: 'Nahuatl, Northern Oaxaca NT', + bestLanguageName: 'Nahuatl, Northern Oaxaca (nhy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '27127eaaa107c05a', + displayName: 'tee', + fullName: 'Tepehua, Huehuetla NT', + bestLanguageName: 'Tepehua, Huehuetla (tee)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b2ad530b28ac0fb2', + displayName: 'gdn', + fullName: 'Umanakaina NT', + bestLanguageName: 'Umanakaina (gdn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7fe7bda41fb5c898', + displayName: 'otn', + fullName: 'Otomi, Tenango NT', + bestLanguageName: 'Otomi, Tenango (otn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '10a684dac4168de9', + displayName: 'mxp', + fullName: 'Mixe, Tlahuitoltepec NT', + bestLanguageName: 'Mixe, Tlahuitoltepec (mxp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '96f68f8306e54d45', + displayName: 'SCNT', + fullName: 'Samoan Contemporary New Testament', + bestLanguageName: 'Samoan (smo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9fe361ee64e869a9', + displayName: 'meq', + fullName: 'Merey NT', + bestLanguageName: 'Merey (meq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bc9bfd2a9a5007d6', + displayName: 'prf', + fullName: 'Paranan NT', + bestLanguageName: 'Paranan (prf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '67051bd321d70efb', + displayName: 'fuh', + fullName: 'Fulfulde, West (Niger) NT', + bestLanguageName: 'Fulah (fuh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c177bbb17c7c6190', + displayName: 'nvm', + fullName: 'Namiae NT', + bestLanguageName: 'Namiae (nvm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '207beaf90c83ade5', + displayName: 'gue', + fullName: 'Gurindji (Ruth)', + bestLanguageName: 'Gurinji (gue)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f4cc79cd3fec30f4', + displayName: 'lew', + fullName: 'Kaili, Ledo NT', + bestLanguageName: 'Ledo Kaili (lew)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '05afe852bcb6c0ca', + displayName: 'wap', + fullName: 'Wapishana NT', + bestLanguageName: 'Wapishana (wap)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23b9134f73da4a21', + displayName: 'ssg', + fullName: 'Seimat NT', + bestLanguageName: 'Seimat (ssg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ae0a0909179f5cca', + displayName: 'ify', + fullName: 'Kallahan, Keley-i Bible', + bestLanguageName: 'Keley-I Kallahan (ify)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ede3d2abf8a9ad28', + displayName: 'cpu', + fullName: 'Ashéninca Pichis NT', + bestLanguageName: 'Pichis Ashéninka (cpu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5eb1fc7f6382e1c0', + displayName: 'xnn', + fullName: 'Kankanay, Northern NT +', + bestLanguageName: 'Kankanay, Northern (xnn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fcc64377691feb3c', + displayName: 'msm', + fullName: 'Manobo, Agusan NT', + bestLanguageName: 'Manobo, Agusan (msm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '20c6e93313527d55', + displayName: 'waj', + fullName: 'Waffa NT', + bestLanguageName: 'Waffa (waj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'af41011cdffce0e8', + displayName: 'ssd', + fullName: 'Siroi NT', + bestLanguageName: 'Siroi (ssd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '115873274f8da857', + displayName: 'gym', + fullName: 'Ngäbere NT', + bestLanguageName: 'Ngäbere (gym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5606d5e01cb7fec1', + displayName: 'krx', + fullName: 'Karon (Luke)', + bestLanguageName: 'Karon (krx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3bed28b81b9e1150', + displayName: 'kek', + fullName: 'Kekchí Bible', + bestLanguageName: 'Kekchí (kek)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '36c61c6886d149a8', + displayName: 'kqw', + fullName: 'Kandas NT', + bestLanguageName: 'Kandas (kqw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bcd463ba89af76a9', + displayName: 'isu', + fullName: 'Isu New Testament', + bestLanguageName: 'Isu (szv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ab3323ff55d9ef10', + displayName: 'pnz', + fullName: 'Pana Nouveau Testament', + bestLanguageName: 'Pana (pnz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'baf1e15699278942', + displayName: 'NTB', + fullName: 'Nouveau Testament Bakoko', + bestLanguageName: 'Bakoko (bkh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a13efa6bfb2a42de', + displayName: 'CUVnt', + fullName: 'Cuvok Nouveau Testament', + bestLanguageName: 'Cuvok (cuv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'deaf650f55a4c70b', + displayName: 'NGI', + fullName: 'Ngie New Testament', + bestLanguageName: 'Ngie (ngj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ea23d84f809130b2', + displayName: 'CTB', + fullName: 'Crimean Tatar Bible', + bestLanguageName: 'Crimean Tatar (crh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1af4bc437c51ee1c', + displayName: 'kzr', + fullName: 'Karang NT', + bestLanguageName: 'Karang (kzr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11eaab75f8945c54', + displayName: 'xtc', + fullName: 'Katcha NT+', + bestLanguageName: 'Katcha-Kadugli-Miri (xtc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e82e3f94be6eb19d', + displayName: 'khs', + fullName: 'Kasua NT', + bestLanguageName: 'Kasua (khs-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '18d745e496b93ea7', + displayName: 'naf', + fullName: 'Nabak NT', + bestLanguageName: 'Nabak (naf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aec304ca66cd8fa2', + displayName: 'KumNTBC', + fullName: 'Kumyk New Testament 2007', + bestLanguageName: 'Kumyk (kum)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9980263d7ee10622', + displayName: 'kdl', + fullName: 'Tsikimba NT', + bestLanguageName: 'Tsikimba (kdl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2d88fffaef97b826', + displayName: 'spp', + fullName: 'Senoufo, Supyire NT', + bestLanguageName: 'Senoufo, Supyire (spp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7a935266bd5cffdd', + displayName: 'kpw', + fullName: 'Kobon NT', + bestLanguageName: 'Kobon (kpw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2eb4c956c00a6b24', + displayName: 'kxw', + fullName: 'Konai NT', + bestLanguageName: 'Konai (kxw-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '19c6fcf304790021', + displayName: 'kfc', + fullName: 'Konda NT', + bestLanguageName: 'Konda-Dora (kfc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '46c3dec0ed0f56b9', + displayName: 'KOK', + fullName: 'Croatian Living New Testament (Knjiga O Kristu) 2000', + bestLanguageName: 'Croatian (hrv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ee31843f596a9302', + displayName: 'MHNT2020', + fullName: 'Revised Modern Hebrew New Testament 2020', + bestLanguageName: 'Hebrew, Ancient (hbo-Hebr-IL)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b8fac4cb3083f770', + displayName: 'kmh', + fullName: 'Kalam NT', + bestLanguageName: 'Kalam (kmh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3de6c420cb00e851', + displayName: 'kmh', + fullName: 'Kalam, Minimib NT', + bestLanguageName: 'Kalam (Minimib) (kmh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6143d8c5bae3a41f', + displayName: 'xbiY', + fullName: 'Kombio, Yanimoi Portions', + bestLanguageName: 'Kombio, Yanimoi (xbi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd596baef515171e2', + displayName: 'gam', + fullName: 'Kandawo NT', + bestLanguageName: 'Kandawo (gam)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd763ce0aca024efb', + displayName: 'mng', + fullName: 'Mango NT', + bestLanguageName: 'Mango (mge)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bf7484224959dc9a', + displayName: 'knf', + fullName: 'Mankanya NT+', + bestLanguageName: 'Mankanya (knf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1824dafda43f395c', + displayName: 'met', + fullName: 'Mato NT', + bestLanguageName: 'Mato (met)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6a6598d3725acb4d', + displayName: 'mdm', + fullName: 'Mayogo NT', + bestLanguageName: 'Mayogo (mdm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7a453b376ac37360', + displayName: 'mzn', + fullName: 'Mazandarani Portions', + bestLanguageName: 'Mazanderani (mzn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7fbf3b359933e2b7', + displayName: 'xuo', + fullName: 'Kuo NT', + bestLanguageName: 'Kuo (xuo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '074e6e888b2a5fc6', + displayName: 'srq', + fullName: 'Sirionó NT', + bestLanguageName: 'Sirionó (srq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '50920a608439bf74', + displayName: 'mna', + fullName: 'Mbula NT+', + bestLanguageName: 'Mbula (mna)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f29a7a8a1cd02e14', + displayName: 'tpx', + fullName: "Me'phaa Xma'íín (Teocuitlapa) - Selection", + bestLanguageName: 'Me’phaa, Acatepec (tpx-Latn-003)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9aebadd70317f674', + displayName: 'zos', + fullName: 'Zoque, Francisco León NT', + bestLanguageName: 'Zoque, Francisco León (zos)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9d8e38787b3a422a', + displayName: 'conB', + fullName: 'Cofán NT+', + bestLanguageName: 'Cofán (con)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b7406d5017fcf6e2', + displayName: 'mto', + fullName: 'Mixe, Totontepec NT', + bestLanguageName: 'Mixe, Totontepec (mto)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '259b581901040f49', + displayName: 'pps', + fullName: 'Popoloca, San Luís Temalacayuca NT', + bestLanguageName: 'San Luís Temalacayuca Popoloca (pps)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6bc3720cefe5ec26', + displayName: 'arn', + fullName: 'Mapudungun NT', + bestLanguageName: 'Mapudungun (arn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '50c0b93e64d10cf0', + displayName: 'yaa', + fullName: 'Yaminahua NT', + bestLanguageName: 'Yaminahua (yaa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fd962c050324dd30', + displayName: 'nwi', + fullName: 'Tanna, Southwest NT', + bestLanguageName: 'Tanna, Southwest (nwi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '58c26f83230645ef', + displayName: 'yam', + fullName: 'Yamba NT', + bestLanguageName: 'Yamba (yam)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '00cab34583aacaae', + displayName: 'nsn', + fullName: 'Nehan NT', + bestLanguageName: 'Nehan (nsn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6361af0d86bac46c', + displayName: 'tac', + fullName: 'Tarahumara, Western NT', + bestLanguageName: 'Tarahumara, Western (tac)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da15a6db091a32e6', + displayName: 'tku', + fullName: 'Totonac, Upper Necaxa NT', + bestLanguageName: 'Totonac, Upper Necaxa (tku)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bff836b0831ab741', + displayName: 'sny', + fullName: 'Saniyo-Hiyewe NT', + bestLanguageName: 'Saniyo-Hiyewe (sny)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '98d6e494cbe49d37', + displayName: 'kvn', + fullName: 'Kuna, Border NT', + bestLanguageName: 'Kuna, Border (kvn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11b6ffdf286d2cfd', + displayName: 'mbj', + fullName: 'Nadëb NT', + bestLanguageName: 'Nadëb (mbj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7cfd00645acbd43f', + displayName: 'omw', + fullName: 'Tairora, South NT', + bestLanguageName: 'Tairora, South (omw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c2b24f22ae7d27d', + displayName: 'otm', + fullName: 'Otomi, Eastern Highland NT', + bestLanguageName: 'Otomi, Eastern Highland (otm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd37a165ef0ea3f20', + displayName: 'akp', + fullName: 'Siwu NT', + bestLanguageName: 'Siwu (akp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '867d75564182779d', + displayName: 'NVI-P', + fullName: 'Nova Versão Internacional 2011 (Brazil) - 2018 Update', + bestLanguageName: 'Portuguese (por-BR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da82d1b913bfc9f4', + displayName: 'gngNT', + fullName: 'Ngangam NT', + bestLanguageName: 'Ngangam (gng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ebd7127fba725670', + displayName: 'jbn', + fullName: 'STB transliteration standard project', + bestLanguageName: 'Nafusi (jbn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6c5210be541bf760', + displayName: 'lac', + fullName: 'Lacandon NT', + bestLanguageName: 'Lacandon (lac)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c1220825134beaad', + displayName: 'lro', + fullName: 'Laro Portions', + bestLanguageName: 'Laro (lro)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4df9bb4c20fe4807', + displayName: 'kkj', + fullName: 'Kako NT', + bestLanguageName: 'Kako (kkj-Latn-TD)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1b72b010d4e0a892', + displayName: 'mif', + fullName: 'Mofu-Gudur NT', + bestLanguageName: 'Mofu-Gudur (mif)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd4106b26a5c784b0', + displayName: 'nnw', + fullName: 'Nuni, Southern TN', + bestLanguageName: 'Southern Nuni (nnw-Latn-BF)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f8f54202645f6861', + displayName: 'ttq', + fullName: 'Tamajaq, Tawallammat (Berber) NT', + bestLanguageName: 'Tamashek (ttq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '12b91ec711c44b0e', + displayName: 'ttq', + fullName: 'Tamajaq, Tawallammat (Latin) NT', + bestLanguageName: 'Tamashek (ttq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '78bb50fca0ef9da2', + displayName: 'kyu', + fullName: 'Kayah, Western (Latin) NT', + bestLanguageName: 'Western Kayah (Latin) (kyu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4de26e18fe3e46cc', + displayName: 'gnw', + fullName: 'Guaraní (Simba) Bible', + bestLanguageName: 'Guarani (gnw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '21cb1072a1c27a72', + displayName: 'yre', + fullName: 'Yaouré NT', + bestLanguageName: 'Yaouré (yre)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '22ce1faa429e6520', + displayName: 'mop', + fullName: 'Maya, Mopán NT', + bestLanguageName: 'Maya, Mopán (mop)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '281d41de9c701fb6', + displayName: 'ApMaNP08', + fullName: 'NT Portions in Ap Ma: Luke & Acts', + bestLanguageName: 'Ap Ma (kbx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8f4edbe5cc0aa001', + displayName: 'TDV08', + fullName: "Today's Dari Version 2008", + bestLanguageName: 'Persian (prs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '378a62ee86b338ed', + displayName: 'BEZ', + fullName: 'Bena NT', + bestLanguageName: 'Bena (bez)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a91fc6613e36390f', + displayName: 'snw', + fullName: 'Selee NT', + bestLanguageName: 'Selee (snw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '38a5ef8e91cac158', + displayName: 'mhb', + fullName: 'Mangseng NT', + bestLanguageName: 'Mangseng (mbh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '97393ae4d89f11d0', + displayName: 'fuv', + fullName: 'Fulfulde, Nigeria (Arabic Script) NT', + bestLanguageName: 'Fulah (fuv-Arab-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cfbd290acef8c7bf', + displayName: 'fuv', + fullName: 'Fulfulde, Nigeria (Latin Script) NT', + bestLanguageName: 'Fulah (fuv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd781b989df480226', + displayName: 'ksp', + fullName: 'Kaba NT', + bestLanguageName: 'Kaba (ksp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7876fc7be8a234f1', + displayName: 'kqe', + fullName: 'Kalagan, Eastern NT', + bestLanguageName: 'Kalagan (kqe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '174b7875a68dcccb', + displayName: 'kwd', + fullName: 'Kwaio NT', + bestLanguageName: 'Kwaio (kwd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '08e496d43b1602be', + displayName: 'kwj', + fullName: 'Kwanga NT', + bestLanguageName: 'Kwanga (kwj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '05a948b5ec68ea1b', + displayName: 'kwf', + fullName: "Kwara'ae NT+", + bestLanguageName: "Kwara'ae (kwf-Latn)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e6b1b8ae87484fa4', + displayName: 'yuj', + fullName: 'Karkar-Yuri NT', + bestLanguageName: 'Karkar-Yuri (yuj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fa88c8b8d6caf5e8', + displayName: 'lbb', + fullName: 'Label NT', + bestLanguageName: 'Label (lbb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da8cbfc080f48818', + displayName: 'mmx', + fullName: 'Madak NT+', + bestLanguageName: 'Madak (mmx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b064de13ea621be2', + displayName: 'lww', + fullName: 'Lewo NT', + bestLanguageName: 'Lewo (lww)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f725bb96da745707', + displayName: 'mit', + fullName: 'Mixtec, Southern Puebla NT', + bestLanguageName: 'Mixtec, Southern Puebla (mit)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f5255d4752e88ab6', + displayName: 'lik', + fullName: 'Lika NT', + bestLanguageName: 'Lika (lik)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e502ca6e040e1bbb', + displayName: 'usp', + fullName: 'Uspanteko NT', + bestLanguageName: 'Uspanteko (usp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '861d75c8ac62d9a5', + displayName: 'knb', + fullName: 'Lubuagan Kalinga NT', + bestLanguageName: 'Lubuagan Kalinga (knb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '65e2e05947ed4e5d', + displayName: 'tlj', + fullName: 'Lubwisi (Talinga-Bwisi) NT', + bestLanguageName: 'Lubwisi, Talinga-Bwisi (tlj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b9294fc1b572b85f', + displayName: 'lmd', + fullName: 'Lumun NT', + bestLanguageName: 'Lumun (lmd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1352a804922631f7', + displayName: 'RSCB', + fullName: 'Revised Samoan Catholic Bible', + bestLanguageName: 'Samoan (smo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '882c692e5a213be7', + displayName: 'ksj', + fullName: 'Uare Portions', + bestLanguageName: 'Uare (ksj-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4a203667d02c23d7', + displayName: 'GURB1938', + fullName: 'Balkan Romani Gospel of Luke 1938 (Gurbet)', + bestLanguageName: 'Romany (rmn-Latn-151)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0564cbd4b29f3215', + displayName: 'TOMB2011', + fullName: 'Tongan Moulton Bible Revision', + bestLanguageName: 'Tongan (ton)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '837016798c1bfdc1', + displayName: 'MP1650', + fullName: 'Psalms of David in Metre 1650 (Scottish Psalter)', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8051ddd5b3565a49', + displayName: 'KaldRut', + fullName: 'Romani Kalderash Ruth 1979 (Maximoff)', + bestLanguageName: 'Romany (rmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '049275fd66c79430', + displayName: 'LTV1965', + fullName: 'Latvian Bible Version 1965', + bestLanguageName: 'Latvian (lvs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a57914e0c2c58bec', + displayName: 'nuj', + fullName: 'Lunyole NT', + bestLanguageName: 'Nyole (nuj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c029b05d88c2e65f', + displayName: 'mcb', + fullName: 'Machiguenga NT', + bestLanguageName: 'Machiguenga (mcb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1b9f5c4efc114227', + displayName: 'WGM', + fullName: 'Wolaitta Bible', + bestLanguageName: 'Wolaytta (wal)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aa7260841cc1e8cf', + displayName: 'mbc', + fullName: 'Macushi NT', + bestLanguageName: 'Macushi (mbc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'efd57e4225b5056c', + displayName: 'mai', + fullName: 'Maithili NT', + bestLanguageName: 'Maithili (mai-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0f2db8342fab4f8a', + displayName: 'mgq', + fullName: 'Malila NT', + bestLanguageName: 'Malila (mgq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd3d91cdba383f8ba', + displayName: 'myk', + fullName: 'Mamara NT+', + bestLanguageName: 'Sénoufo, Mamara (myk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23a3a51244529da2', + displayName: 'obo', + fullName: 'Manobo, Obo NT', + bestLanguageName: 'Manobo, Obo (obo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c9de105e00e742e3', + displayName: 'mbt', + fullName: 'Manobo, Matigsalug NT', + bestLanguageName: 'Manobo, Matigsalug (mbt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ecf45c8fd9cd9b4c', + displayName: 'mpp', + fullName: 'Migabac NT', + bestLanguageName: 'Migabac (mpp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd9fce7e21c197582', + displayName: 'mvn', + fullName: 'Minaveha NT', + bestLanguageName: 'Minaveha (mvn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6bab7b853e63052f', + displayName: 'mir', + fullName: 'Mixe, Isthmus NT', + bestLanguageName: 'Mixe, Isthmus (mir)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f0f18a76b6394613', + displayName: 'mxv', + fullName: 'Mixteco, Metlatónoc NT', + bestLanguageName: 'Metlatónoc Mixtec (mxv-Latn-MX)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a558658968d8d302', + displayName: 'xtn', + fullName: 'Mixtec, Northern Tlaxiaco NT+', + bestLanguageName: 'Northern Tlaxiaco Mixtec (xtn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c363d7e4284d4d0b', + displayName: 'mnh', + fullName: 'Mono NT', + bestLanguageName: 'Mono (mnh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '49b30668fe3647ca', + displayName: 'bmr', + fullName: 'Muinane NT', + bestLanguageName: 'Muinane (bmr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '500ed69f829cb7f8', + displayName: 'qul', + fullName: 'Quechua, North Bolivian NT', + bestLanguageName: 'Quechua (qul)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '925e2e252e518780', + displayName: 'apz', + fullName: 'Safeyoka NT', + bestLanguageName: 'Safeyoka (apz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1b25bb13657c6802', + displayName: 'moa', + fullName: 'Mwan NT', + bestLanguageName: 'Mwan (moa-Latn-CI)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '686e872878dd346a', + displayName: 'klv', + fullName: 'Mɑskelynes NT', + bestLanguageName: 'Maskelynes (klv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd2b9d8ad4f21083f', + displayName: 'tnk', + fullName: 'Kwamera NT', + bestLanguageName: 'Kwamera (tnk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '72dd0b9b0f2b4024', + displayName: 'tnn', + fullName: 'Tanna, North NT', + bestLanguageName: 'North Tanna (tnn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e48bf2a0f5f939ec', + displayName: 'ntu', + fullName: 'Natqgu NT+', + bestLanguageName: 'Natügu (ntu-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0c70b97fd374c8a0', + displayName: 'ndh', + fullName: 'Ndali NT', + bestLanguageName: 'Ndali (ndh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd1842795870f0f6d', + displayName: 'nif', + fullName: 'Nek (Gospels)', + bestLanguageName: 'Nek (nif)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '89a48a4ade8295cf', + displayName: 'mph', + fullName: 'Maung (Mark)', + bestLanguageName: 'Maung (mph)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '963fbbc15c8cd2cd', + displayName: 'HD', + fullName: 'Habrit Hakhadasha/Haderekh “The Way” (Hebrew Living NT) 2009', + bestLanguageName: 'Hebrew, Modern (heb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1941e980fb75953a', + displayName: 'nas', + fullName: 'Naasioi NT+', + bestLanguageName: 'Naasioi (nas)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ee56460be19230b5', + displayName: 'kqp', + fullName: 'Kimré NT', + bestLanguageName: 'Kimré (kqp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '52301a7c10ce2f59', + displayName: 'mlh', + fullName: 'Mape NT', + bestLanguageName: 'Mape (mlh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3b0270c18c98e227', + displayName: 'mhl', + fullName: 'Mauwake NT', + bestLanguageName: 'Mauwake (mhl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0bdef364bec4aa9c', + displayName: 'mgh', + fullName: 'Makhuwa-Imeetto NT+ (MZ)', + bestLanguageName: 'Makhuwa-Meetto (mgh-Latn-MZ)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a84d0ff2d9846edf', + displayName: 'myu', + fullName: 'Munduruku NT', + bestLanguageName: 'Mundurukú (myu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4d521e7349b06e8b', + displayName: 'mur', + fullName: 'Murle NT+', + bestLanguageName: 'Murle (mur)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9d017e2b811dd461', + displayName: 'qxh', + fullName: 'Quechua, Panao Huánuco NT', + bestLanguageName: 'Quechua (qxh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '33b2c25fcf3b560a', + displayName: 'qvc', + fullName: 'Quechua, Cajamarca NT', + bestLanguageName: 'Quechua (qvc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a835a3a59eeee82f', + displayName: 'emi', + fullName: 'Mussau-Emira NT+', + bestLanguageName: 'Mussau-Emira (emi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5fa891587445e9d4', + displayName: 'nss', + fullName: 'Nali Portions', + bestLanguageName: 'Nali (nss)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aad0ac4c95ba5eb9', + displayName: 'qvo', + fullName: 'Quechua, Napo Portions', + bestLanguageName: 'Quechua (qvo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0ba8bc1fcb12737a', + displayName: 'maz', + fullName: 'Mazahua, Central NT', + bestLanguageName: 'Mazahua, Central (maz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3309e6b70e0bd470', + displayName: 'maq', + fullName: 'Mazatec, Chiquihuitlán NT', + bestLanguageName: 'Mazatec, Chiquihuitlán (maq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8f4069750eb5e8e4', + displayName: 'maj', + fullName: 'Mazatec, Jalapa de Díaz NT', + bestLanguageName: 'Mazatec, Jalapa de Díaz (maj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55891eff2eaa3368', + displayName: 'mxt', + fullName: 'Mixtec, Jamiltepec NT', + bestLanguageName: 'Mixtec, Jamiltepec (mxt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a44192f9b2b60444', + displayName: 'mil', + fullName: 'Mixtec, Peñoles NT', + bestLanguageName: 'Mixtec, Peñoles (mil)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ac1aad80f28d436a', + displayName: 'mox', + fullName: 'Molima NT', + bestLanguageName: 'Molima (mox)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2a04aad6ab150dbc', + displayName: 'nak', + fullName: 'Nakanai NT', + bestLanguageName: 'Nakanai (nak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '530a0d3eed9af741', + displayName: 'nii', + fullName: 'Nii NT', + bestLanguageName: 'Nii (nii)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '40b8c1d51fc95d3a', + displayName: 'rap', + fullName: 'Rapa Nui NT', + bestLanguageName: 'Rapanui (rap)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '685d5ea3c56f1de0', + displayName: 'srn', + fullName: 'Nyun NT', + bestLanguageName: 'Sranan (srn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3d557b6158119b19', + displayName: 'eri', + fullName: 'Ogea NT', + bestLanguageName: 'Ogea (eri-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f36594ae498252b4', + displayName: 'snc', + fullName: 'Sinaugoro NT', + bestLanguageName: 'Sinaugoro (snc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '62a98cab32d3a606', + displayName: 'sue', + fullName: 'Suena NT', + bestLanguageName: 'Suena (sue)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8fcff3d3f7af914e', + displayName: 'yrb', + fullName: 'Yareba NT', + bestLanguageName: 'Yareba (yrb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eae763c09d34b829', + displayName: 'not', + fullName: 'Nomatsiguenga NT', + bestLanguageName: 'Nomatsiguenga (not)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5f2db45b5778cb82', + displayName: 'snf', + fullName: 'Noon NT', + bestLanguageName: 'Noon (snf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '726a5008948550b7', + displayName: 'tbg', + fullName: 'Tairora, North NT+', + bestLanguageName: 'Tairora, North (tbg-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '60c6ffa3bc0018a0', + displayName: 'bet', + fullName: 'Bete de Guibéroua NT', + bestLanguageName: 'Bété, Guiberoua (bet)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f38114e2c13945c3', + displayName: 'kyq', + fullName: 'Kenga NT', + bestLanguageName: 'Kenga (kyq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55bf7d46632bb31e', + displayName: 'coe', + fullName: 'Koreguaje NT', + bestLanguageName: 'Koreguaje (coe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9698f673582dc6a0', + displayName: 'mib', + fullName: 'Mixtec, Atatláhuca NT', + bestLanguageName: 'Mixtec, Atatláhuca (mib)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fc90549675374aba', + displayName: 'mie', + fullName: 'Mixteco de Ocotepec, NT', + bestLanguageName: 'Mixteco, Ocotepec (mie)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b63eaee9ba3ef032', + displayName: 'mpm', + fullName: 'Mixteco, Yosondúa NT', + bestLanguageName: 'Mixteco, Yosondúa (mpm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ccbd79c16bf7c797', + displayName: 'klt', + fullName: 'Nukna Portions', + bestLanguageName: 'Nukna (klt-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '926b6a203945e74f', + displayName: 'nuq', + fullName: 'Nukumanu NT', + bestLanguageName: 'Nukumanu (nuq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '67ed98c407681526', + displayName: 'nuf', + fullName: 'Nusu Portion', + bestLanguageName: 'Nusu (nuf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1cd459399782c92e', + displayName: 'nwb', + fullName: 'Nyaboa (Nyabwa) NT', + bestLanguageName: 'Nyaboa (nwb-Latn-CI)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7da0b04f83c212ee', + displayName: 'NFNT', + fullName: 'North Frisian New Testament (Sylterfriesisch)', + bestLanguageName: 'Frisian, Northern (frr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9bf5d61a2e3aa3b0', + displayName: 'BUX', + fullName: 'Boghom NT Portions', + bestLanguageName: 'Boghom (bux)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0dfee7f1f402ee6e', + displayName: 'Boi', + fullName: 'Boi (Tiyaa) NT Portions', + bestLanguageName: 'Tiyaa (tyy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b2995c64c977110a', + displayName: 'xla', + fullName: 'Kamula NT+', + bestLanguageName: 'Kamula (xla)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '27b1393b7176ac27', + displayName: 'wbp', + fullName: 'Warlpiri Short Bible', + bestLanguageName: 'Warlpiri (wbp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3d650104e7afb4a8', + displayName: 'ney', + fullName: 'Néyo Portions', + bestLanguageName: 'Neyo (ney)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7bb03619e278b6ee', + displayName: 'rbb', + fullName: 'Rumai NT', + bestLanguageName: 'Palaung, Rumai (rbb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4e7e3cd3cb3a4aba', + displayName: 'RVR95EE', + fullName: 'Reina Valera de Estudio 1995', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '704246a580ba55dd', + displayName: 'DARBY', + fullName: "Darby's Translation 1890", + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9396bdab17afda48', + displayName: 'kqe', + fullName: 'Kalagan, Western NT', + bestLanguageName: 'Kalagan (kqe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fa48708386d74c2f', + displayName: 'kpg', + fullName: 'Kapingamarangi Bible 2014', + bestLanguageName: 'Kapingamarangi (kpg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5588c01125b7d194', + displayName: 'kbo', + fullName: 'Keliko NT+', + bestLanguageName: 'Keliko (kbo-Latn-SS)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aa7bfc87e2d146e9', + displayName: 'kus', + fullName: 'Kusaal NT', + bestLanguageName: 'Kusaal (kus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ad117c3f7382a3c2', + displayName: 'zaq', + fullName: 'Zapotec, Aloápam NT', + bestLanguageName: 'Zapotec (zaq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '423f8eacf45b9225', + displayName: 'bpr', + fullName: 'Blaan, Koronadal NT', + bestLanguageName: 'Blaan, Koronadal (bpr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f8e68e93ffaabf12', + displayName: 'eko', + fullName: 'Koti NT+', + bestLanguageName: 'Koti (eko)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9a7603e68b7c6455', + displayName: 'rop', + fullName: 'Kriol Bible', + bestLanguageName: 'Kriol (rop)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b4fe9f370613a61', + displayName: 'kgf', + fullName: 'Kube NT +', + bestLanguageName: 'Kube (kgf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '019d341c6341dbc2', + displayName: 'kue', + fullName: 'Kuman NT', + bestLanguageName: 'Kuman (kue)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a0649824e2ee822', + displayName: 'mxb', + fullName: 'Mixtec, Tezoatlán NT', + bestLanguageName: 'Mixtec, Tezoatlán (mxb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '95d17eb7ab81fcf4', + displayName: 'kvg', + fullName: 'Kuni-Boazi NT+', + bestLanguageName: 'Kuni-Boazi (kvg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fe538091a212f8a7', + displayName: 'log', + fullName: 'Logo NT', + bestLanguageName: 'Logo (Logoti) (log)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'df36ed618056b7ef', + displayName: 'lee', + fullName: 'Lyélé NT', + bestLanguageName: 'Lyélé (lee-Latn-BF)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f7a29bc708c1cec1', + displayName: 'mpx', + fullName: 'Misima-Paneati NT+', + bestLanguageName: 'Misima-Panaeati (mpx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '84b07ecd8b4b2c47', + displayName: 'MGJ', + fullName: 'Abureni NT Portions', + bestLanguageName: 'Abureni (mgj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '782c8cbaee57aa24', + displayName: 'zat', + fullName: 'Zapotec, Tabaa NT+', + bestLanguageName: 'Zapotec (zat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '02c24ae9bc1abc10', + displayName: 'yle', + fullName: 'Yele Rossel NT', + bestLanguageName: 'Yele (yle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '44604bc799989b48', + displayName: 'jao', + fullName: 'Yanyuwa Portions', + bestLanguageName: 'Yanyuwa (jao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '34988bf0c03c0432', + displayName: 'ons', + fullName: 'Ono NT', + bestLanguageName: 'Ono (ons)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f1b4d233684ac6b7', + displayName: 'pdc', + fullName: 'Pennsylvania Dutch Bible', + bestLanguageName: 'Pennsylvania Dutch (pdc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0b30f7a64e7e17b0', + displayName: 'pls', + fullName: 'Popoloca, San Marcos Tlacoyalco NT+', + bestLanguageName: 'Popoloca, San Marcos Tlacoyalco (pls)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9587ecfd22971069', + displayName: 'zrs', + fullName: 'Mairasi NT', + bestLanguageName: 'Mairasi (zrs-Latn-ID)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9529d3de197fc936', + displayName: 'kyf', + fullName: 'Kouya NT', + bestLanguageName: 'Kouya (kyf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '041c979ccf8315f5', + displayName: 'zpv', + fullName: 'Zapoteco de Chichicapan NT', + bestLanguageName: 'Zapotec (zpv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7c7e363656fe7a16', + displayName: 'ztq', + fullName: 'Zapotec, Quioquitani-Quierí NT', + bestLanguageName: 'Zapotec (ztq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '35fc369a5a6cf08e', + displayName: 'tim', + fullName: 'Timbe NT', + bestLanguageName: 'Timbe (tim)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0b5bbecaffd3055f', + displayName: 'qup', + fullName: 'Quechua, Southern Pastaza NT', + bestLanguageName: 'Quechua (qup)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5c0f37846329399c', + displayName: 'spl', + fullName: 'Selepet NT', + bestLanguageName: 'Selepet (spl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '94ff05deb757be32', + displayName: 'ptp', + fullName: 'Patep NT', + bestLanguageName: 'Patep (ptp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '17e4810064b26b00', + displayName: 'msk', + fullName: 'Mansaka NT', + bestLanguageName: 'Mansaka (msk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e632b8a29d5ee63f', + displayName: 'ury', + fullName: 'Orya NT', + bestLanguageName: 'Orya (ury)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1a8c113f6692a8a3', + displayName: 'pma', + fullName: 'Paama Bible', + bestLanguageName: 'Paama (pma)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '965a0810a43f11cb', + displayName: 'yut', + fullName: 'Yopno NT', + bestLanguageName: 'Yopno (yut)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28a05eb5ad3c34ef', + displayName: 'pbb', + fullName: 'Páez NT', + bestLanguageName: 'Páez (pbb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8038353ef8dc59f0', + displayName: 'HCL', + fullName: 'Hausa Common Language DC Bible', + bestLanguageName: 'Hausa (hau-Latn-011)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '75f29d58de5e13cf', + displayName: 'ENHL', + fullName: 'Biblia en Enhlet (Lengua Norte) 1995', + bestLanguageName: 'Enlhet (enl-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '38ea4a494f76a7dd', + displayName: 'ENXAT', + fullName: 'Enxet Sur 2015', + bestLanguageName: 'Enxet (enx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '997e3614c8ed1485', + displayName: 'MSB', + fullName: 'Muslim Sindhi Bible', + bestLanguageName: 'Sindhi (snd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b5b0fba3121aef83', + displayName: 'nhu', + fullName: 'Noone NT', + bestLanguageName: 'Noone (nhu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '133227c7db27a1e9', + displayName: 'qve', + fullName: 'Quechua, East Apurimac NT', + bestLanguageName: 'Quechua (qve)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9fc5e35fb1aad16b', + displayName: 'mnv', + fullName: 'Rennell-Bellona Gospels', + bestLanguageName: 'Rennell-Bellona (mnv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c98f17c6c4741589', + displayName: 'tgp', + fullName: 'Tangoa NT', + bestLanguageName: 'Tangoa (tgp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '783b58a5c610fc4e', + displayName: 'poh', + fullName: "Poqomchi' NT", + bestLanguageName: "Poqomchi' (poh)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8e1af7eb1788afde', + displayName: 'rug', + fullName: 'Roviana Bible', + bestLanguageName: 'Roviana (rug-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '12da669ec60ab6c3', + displayName: 'lid', + fullName: 'Nyindrou NT+', + bestLanguageName: 'Nyindrou (lid)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f8b0350f7f32b722', + displayName: 'nmw', + fullName: 'Saisai Nimoa Portions', + bestLanguageName: 'Nimoa (nmw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6a4f0e51f43594cf', + displayName: 'PNGKIR', + fullName: 'Kiriwina Bible (Buki Pilabumaboma)', + bestLanguageName: 'Kilivila (kij-009)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c35a51a9a808587c', + displayName: 'snn', + fullName: 'Siona NT', + bestLanguageName: 'Siona (snn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11c8035df6b444ac', + displayName: 'rol', + fullName: 'Romblomanon NT', + bestLanguageName: 'Romblomanon (rol)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6ee9811de867084c', + displayName: 'roo', + fullName: 'Rotokas NT', + bestLanguageName: 'Rotokas (roo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6ddaf3ad77383022', + displayName: 'sbp', + fullName: 'Sangu NT+', + bestLanguageName: 'Sangu (sbp-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '903a8a5c8d1ffb43', + displayName: 'SED1', + fullName: 'Sediq Tgdaya Bible Old Testament and New Testament', + bestLanguageName: 'Sediq (trv-Latn-TW)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5ae3c6073f7b0ee5', + displayName: 'qub', + fullName: 'Quechua, Huallaga Huánuco Bible', + bestLanguageName: 'Quechua (qub)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f75f9f9c9282fa91', + displayName: 'bps', + fullName: 'Blaan, Sarangani NT+', + bestLanguageName: 'Blaan, Sarangani (bps)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a1307c8e48511fdc', + displayName: 'tfr', + fullName: 'Teribe NT+', + bestLanguageName: 'Teribe (tfr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f543e6115ce4dc33', + displayName: 'mbs', + fullName: 'Manobo, Sarangani NT+', + bestLanguageName: 'Manobo, Sarangani (mbs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f6edc5f76bf470f3', + displayName: 'set', + fullName: 'Sentani NT', + bestLanguageName: 'Sentani (set)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c3aa54f0baa2a1be', + displayName: 'shp', + fullName: 'Shipibo-Conibo NT+', + bestLanguageName: 'Shipibo-Conibo (shp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8fe8d3d604357e50', + displayName: 'mks', + fullName: 'Mixtec, Silacayoapan NT', + bestLanguageName: 'Mixtec, Silacayoapan (mks)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aafa5cf9179623ff', + displayName: 'sri', + fullName: 'Siriano NT', + bestLanguageName: 'Siriano (sri)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6e923415ece3111b', + displayName: 'ttc', + fullName: 'Tektiteko NT', + bestLanguageName: 'Tektiteko (ttc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1d082e9a059009a7', + displayName: 'kdh', + fullName: 'Tem NT+', + bestLanguageName: 'Tem (kdh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b32a6fa6bd281388', + displayName: 'apb', + fullName: "Sa'a NT", + bestLanguageName: "Sa'a (apb)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fe480c766e9c9749', + displayName: 'msb', + fullName: 'Masbatenyo NT', + bestLanguageName: 'Masbatenyo (msb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0693bad6af3fdebc', + displayName: 'LIP', + fullName: 'Sekpele NT', + bestLanguageName: 'Sekpele (lip-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5c7cc7ee56becc2a', + displayName: 'BPT', + fullName: 'Portugal - a Bíblia para todos 2009', + bestLanguageName: 'Portuguese (por)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '688c203e9150c9de', + displayName: 'kpf', + fullName: 'Komba NT', + bestLanguageName: 'Komba (kpf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a723f351e4ce265', + displayName: 'tpz', + fullName: 'Tinputz NT', + bestLanguageName: 'Tinputz (tpz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '639e1969855664b3', + displayName: 'gfk', + fullName: 'Patpatar NT+', + bestLanguageName: 'Patpatar (gfk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '317f10add7d1324f', + displayName: 'tvk', + fullName: 'Ambrym, Southeast NT+', + bestLanguageName: 'Ambrym,Southeast (tvk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4e558d011298deae', + displayName: 'acf', + fullName: 'St. Lucian Creole NT+', + bestLanguageName: 'Saint Lucian Creole (French) (acf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ddea8c682b0d648a', + displayName: 'zpl', + fullName: 'Zapotec, Lachixío NT', + bestLanguageName: 'Zapotec (zpl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f1a7a5bc1b6be2d8', + displayName: 'stb', + fullName: 'Subanen, Northern NT', + bestLanguageName: 'Subanen, Northern (stb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '06200ee52166d1eb', + displayName: 'taq', + fullName: 'Tamasheq NT', + bestLanguageName: 'Tamashek (taq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '62004cee6104d61e', + displayName: 'tbk', + fullName: 'Tagbanwa, Calamian NT', + bestLanguageName: 'Tagbanwa, Calamian (tbk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '60cd2665d2aca8e9', + displayName: 'zai', + fullName: 'Zapotec, Isthmus NT', + bestLanguageName: 'Zapotec (zai)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1ab811ab711e227b', + displayName: 'mcp', + fullName: 'Makaa NT', + bestLanguageName: 'Makaa (mcp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '854a3c16d307e5ac', + displayName: 'lhi', + fullName: 'Lahu Shi NT', + bestLanguageName: 'Lahu Shi (lhi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5418660b242d9552', + displayName: 'tgo', + fullName: 'Sudest NT+', + bestLanguageName: 'Sudest (tgo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b3f373e9746ddad', + displayName: 'sev', + fullName: 'Sénoufo, Nyarafolo NT+', + bestLanguageName: 'Sénoufo, Nyarafolo (sev)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b78a9ab7522c001b', + displayName: 'ndv', + fullName: 'Ndút Portions', + bestLanguageName: 'Ndut (ndv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f8125dd659bf89c6', + displayName: 'tnc', + fullName: 'Tanimuca-Retuarã (Letuama) Portions', + bestLanguageName: 'Tanimuca-Retuarã (tnc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4217ffaedaf1878e', + displayName: 'qvn', + fullName: 'Quechua, North NT', + bestLanguageName: 'Quechua (qvn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd613a32d9a631fc8', + displayName: 'tbl', + fullName: 'Tboli Bible', + bestLanguageName: 'Tboli (tbl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '72cdf3a905ac2312', + displayName: 'pao', + fullName: 'Paiute, Northern NT', + bestLanguageName: 'Paiute, Northern (pao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '13126954155676a4', + displayName: 'tex', + fullName: 'Tennet NT+', + bestLanguageName: 'Tennet (tex)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '233bb830b213bf5d', + displayName: 'mva', + fullName: 'Manam NT', + bestLanguageName: 'Manam (mva)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3e6f7d5a78ccfe96', + displayName: 'mig', + fullName: 'Mixtec, San Miguel el Grande NT', + bestLanguageName: 'Mixtec, San Miguel el Grande (mig)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8a653162320f2ba8', + displayName: 'muh', + fullName: 'Mündü NT+', + bestLanguageName: 'Mündü (muh-Latn-SS)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'edf5d16f1a1a6209', + displayName: 'xsi', + fullName: 'Sio NT+', + bestLanguageName: 'Sio (xsi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f3c97d897c9f36e8', + displayName: 'myw', + fullName: 'Muyuw NT', + bestLanguageName: 'Muyuw (myw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd646b47beb54e69c', + displayName: 'leu', + fullName: 'Kara NT', + bestLanguageName: 'Kara (leu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23a2ee55dfbc892c', + displayName: 'MRNT', + fullName: 'Maori New Testament', + bestLanguageName: 'Maori (mri)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b02e5f5891d201f', + displayName: 'kms', + fullName: 'Kamasau NT', + bestLanguageName: 'Kamasau (kms)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '85c8303f96e3d399', + displayName: 'kog', + fullName: 'Kogi NT', + bestLanguageName: 'Kogi (kog)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '658ae30a6aab6f76', + displayName: 'ted', + fullName: 'Krumen, Tepo NT', + bestLanguageName: 'Tepo Krumen (ted)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a46cc194ebc39b60', + displayName: 'mca', + fullName: 'Maka NT', + bestLanguageName: 'Maka (mca)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '15a05bad015dec0e', + displayName: 'med', + fullName: 'Melpa NT', + bestLanguageName: 'Melpa (med)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3e0050847cbb9d0f', + displayName: 'sps', + fullName: 'Saposa NT', + bestLanguageName: 'Saposa (sps)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '705620b3f7696637', + displayName: 'sig', + fullName: 'Sisaala-Paasaal NT', + bestLanguageName: 'Sisaala-Paasaal (sig-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8bd9480f3faae51b', + displayName: 'CUVMPS', + fullName: 'Chinese Union Version Modern Punctuation (Simplified Script)', + bestLanguageName: 'Chinese (cmn-Hans)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fdf9d1a8b61ae062', + displayName: 'CUVMPT', + fullName: 'Chinese Union Version Modern Punctuation (Traditional Script)', + bestLanguageName: 'Chinese (cmn-Hant)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '31e7b33b24e02afd', + displayName: 'TAZI-EN', + fullName: 'TAZI Study Notes [eng]', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c7e18871d03b8fa2', + displayName: 'TAZI-FR', + fullName: 'TAZI Study Notes [fra]', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: 'C7E18871D03B8FA27F0E56706B7ABC10AFCBF16CABCDEFFF', + }, + { + dblEntryUid: 'eb767898b32fd96d', + displayName: 'rkb', + fullName: 'Rikbaktsa NT', + bestLanguageName: 'Rikbaktsa (rkb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '07096fbda2bbd5cf', + displayName: 'pah', + fullName: 'Tenharim NT', + bestLanguageName: 'Tenharim (pah)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f811ec62055f37e5', + displayName: 'ofu', + fullName: 'Efutop LP New Testament Portions', + bestLanguageName: 'Efutop (ofu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ad5b5af941249733', + displayName: 'ASN1961', + fullName: 'Books of Acts in Modern Irish 1961 (Pádraig Mac Giolla Cheara) modern orthography', + bestLanguageName: 'Irish Gaelic (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '127802ae924d3600', + displayName: 'ASN1943', + fullName: 'Gospels and Acts in Irish 1943 (Pádraig Mac Giolla Cheara) Roman type', + bestLanguageName: 'Irish Gaelic (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '132f425af3d1a1e6', + displayName: 'ASN1943G', + fullName: 'Gospels and Acts in Irish 1943 (Pádraig Mac Giolla Cheara) Gaelic type', + bestLanguageName: 'Irish Gaelic (gle-Latg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '94f55365a50fb16d', + displayName: 'lwo', + fullName: 'Luwo NT', + bestLanguageName: 'Luwo (lwo-Latn-ZA)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b8cb9dac47e4c7a0', + displayName: 'mee', + fullName: 'Mengen NT', + bestLanguageName: 'Mengen (mee)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '73ecd15376e7db01', + displayName: 'naw', + fullName: 'Nawuri NT', + bestLanguageName: 'Nawuri (naw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b5472a584e2d47b2', + displayName: 'ndz', + fullName: 'Ndogo NT', + bestLanguageName: 'Ndogo (ndz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cc5e71b41a3ed10c', + displayName: 'bav', + fullName: 'Vengo (Babungo) NT', + bestLanguageName: 'Vengo (Babungo) (bav)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3d0053cc75898cde', + displayName: 'ycn', + fullName: 'Yucuna NT', + bestLanguageName: 'Yucuna (ycn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '609d35c1ad8f5c52', + displayName: 'bov', + fullName: 'Tuwuli NT', + bestLanguageName: 'Tuwuli (bov-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bad3b803bfddd9c4', + displayName: 'xtm', + fullName: 'Mixtec, Magdalena Peñasco NT+', + bestLanguageName: 'Mixtec, Magdalena Peñasco (xtm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '595bf545248b65a9', + displayName: 'tif', + fullName: 'Tifal NT', + bestLanguageName: 'Tifal (tif)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '48a8679b11416a36', + displayName: 'pri', + fullName: 'Paicî NT', + bestLanguageName: 'Paicî (pri)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd82f8b5ad17050a3', + displayName: 'xsb', + fullName: 'Sambal (Tina) NT', + bestLanguageName: 'Sambal (xsb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6037803ed5dd19ba', + displayName: 'uvl', + fullName: 'Lote NT', + bestLanguageName: 'Lote (uvl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a25eae5b5f7fee0f', + displayName: 'tos', + fullName: 'Totonac, Highland NT', + bestLanguageName: 'Totonac, Highland (tos)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fabaf31df1e3c684', + displayName: 'trc', + fullName: 'Triqui, Copala NT', + bestLanguageName: 'Triqui, Copala (trc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c1f76b44a50ac821', + displayName: 'trq', + fullName: 'Triqui, Itunyoso NT', + bestLanguageName: 'Trique, San Martín Itunyoso (trq-Latn-MX)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2a82b322c6eef649', + displayName: 'mihNT', + fullName: 'Mixtec, Chayuco NT', + bestLanguageName: 'Mixtec, Chayuco (mih)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '14b777e9dc3236bb', + displayName: 'mjc', + fullName: 'Mixtec, San Juan Colorado NT', + bestLanguageName: 'Mixtec, San Juan Colorado (mjc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1fb5cf5da5e8b768', + displayName: 'tuf', + fullName: 'Tunebo, Central NT', + bestLanguageName: 'Tunebo, Central (tuf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '822362274ae729a4', + displayName: 'lcm', + fullName: 'Tungag NT+', + bestLanguageName: 'Tungag (lcm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e22e8026247d9ee3', + displayName: 'mav', + fullName: 'Sateré-Mawé NT', + bestLanguageName: 'Sateré-Mawé (mav)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55cef5227f676699', + displayName: 'mio', + fullName: 'Mixtec, Pinotepa Nacional NT', + bestLanguageName: 'Mixtec, Pinotepa Nacional (mio)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '42d5f51c6eaaec04', + displayName: 'ALF', + fullName: 'Alege LP NT Portions', + bestLanguageName: 'Alege (alf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '38406059d788b2f0', + displayName: 'zia', + fullName: 'Zia NT', + bestLanguageName: 'Zia (zia)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '57457fa0464e1237', + displayName: 'ifk', + fullName: 'Ifugao, Tuwali Bible', + bestLanguageName: 'Ifugao, Tuwali (ifk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a6aee10bb058511c', + displayName: 'KJVAM', + fullName: 'English-US: King James Version - ABS 400th Anniversary Study Edition', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '89a655d8cecbd0b5', + displayName: 'tzoZ', + fullName: 'Tzotzil Zinacantan NT', + bestLanguageName: 'Tzotzil, Zinacantan (tzo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd2852d0e5004eee9', + displayName: 'tzoSA', + fullName: 'Tzotzil, San Andres NT', + bestLanguageName: 'Tzotzil, San Andrés (tzo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd3c1a6a5b1a6d906', + displayName: 'tzoA', + fullName: 'Tzotzil de Huixtán NT', + bestLanguageName: 'Tzotzil, Huixtán (tzo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '16f587fa098405e9', + displayName: 'kmk', + fullName: 'Kalinga, Limos', + bestLanguageName: 'Limos Kalinga (kmk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5073a9a2b20ca175', + displayName: 'wnu', + fullName: 'Usan NT', + bestLanguageName: 'Usan (wnu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5211959f924acd0f', + displayName: 'ubuA', + fullName: 'Umbu-Ungu, Andalale NT', + bestLanguageName: 'Umbu-Ungu, Andelale (ubu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8ee0b6d2cca75408', + displayName: 'bmh', + fullName: 'Kein', + bestLanguageName: 'Kein (bmh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b53b443307deb72d', + displayName: 'bao', + fullName: 'Waimaha NT', + bestLanguageName: 'Waimaha (bao)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bc1f65557c838115', + displayName: 'ata', + fullName: 'Pele-Ata NT+', + bestLanguageName: 'Pele-Ata (ata)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bde9c1a244b82f78', + displayName: 'wbi', + fullName: 'Vwanji NT', + bestLanguageName: 'Vwanji (wbi-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c9d4748bb8d2cd9a', + displayName: 'mfi', + fullName: 'Wandala NT+', + bestLanguageName: 'Wandala (mfi-Latn-CM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6b4cafa423208e08', + displayName: 'lgl', + fullName: 'Wala NT', + bestLanguageName: 'Wala (lgl-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c14214a090486b0e', + displayName: 'cou', + fullName: 'Wamey NT+', + bestLanguageName: 'Wamey (cou)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6a670c0908bb03b2', + displayName: 'HSB', + fullName: 'Hindu Sindhi Bible', + bestLanguageName: 'Sindhi (snd-PK)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0393612187b654b8', + displayName: 'ALARUMLU', + fullName: 'Evanghelu pi dupi Luka (Ungilli i Lukes arumanisht) 2013', + bestLanguageName: 'Aromanian (rup)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a50250b299e4a2e1', + displayName: 'wer', + fullName: 'Weri NT', + bestLanguageName: 'Weri (wer)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6d40d200d0b81a80', + displayName: 'jmx', + fullName: 'Mixtec, Western Juxtlahuaca (Mark)', + bestLanguageName: 'Mixtec, Western Juxtlahuaca (jmx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dee4f0612ca11590', + displayName: 'lcp', + fullName: 'Lawa, Western Bible', + bestLanguageName: 'Lawa, Western (lcp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd51b0d56065f350f', + displayName: 'suc', + fullName: 'Subanon, Western NT', + bestLanguageName: 'Western Subanon (suc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0341cfd9f41c7ecc', + displayName: 'tnp', + fullName: 'Whitesands NT', + bestLanguageName: 'Whitesands (tnp-Latn-VU)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8dd547fcfeb083aa', + displayName: 'zca', + fullName: 'Zapotec, Coatecas Altas NT', + bestLanguageName: 'Zapotec (zca)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'debd09bd10dddd19', + displayName: 'LNT', + fullName: 'Limbum New Testament 2003', + bestLanguageName: 'Limbum (lmp-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '08c66b989fa5fa17', + displayName: 'CHRNT97', + fullName: "Nuevo Testamento Chorote Iyojwa'ja 1997", + bestLanguageName: 'Chorote, Iyojwa’ja (crt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '94b4d7bbef52efd0', + displayName: 'BLP', + fullName: 'Biblia La Palabra', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0501be973d9e3500', + displayName: 'MCV91', + fullName: 'Mocovi NT and Short OT', + bestLanguageName: 'Mocoví (moc-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7203006e38b66a06', + displayName: 'auc', + fullName: 'Waorani NT', + bestLanguageName: 'Waorani (auc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '47f03c35e8c71d03', + displayName: 'Klao10', + fullName: 'Klao Bible 2010', + bestLanguageName: 'Klao (klu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '358d743e81a04eb3', + displayName: 'KrahnTch', + fullName: 'Tchien Krahn NT 1995', + bestLanguageName: 'Krahn, Eastern (kqo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3163c7c75a6a2318', + displayName: 'KrahnWNT', + fullName: 'Western Krahn NT 1999', + bestLanguageName: 'Krahn, Western (krw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd71dd58fe26a796b', + displayName: 'wob', + fullName: 'Wè Northern NT', + bestLanguageName: 'Wè Northern (wob-Latn-CI)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cb685808cf920c19', + displayName: 'VaiNT2002', + fullName: 'Vai New Testament 2002', + bestLanguageName: 'Vai (vai)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1047099798aa4a8e', + displayName: 'toc', + fullName: 'Totonac, Coyutla NT', + bestLanguageName: 'Totonac, Coyutla (toc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '862e60faf7369bb8', + displayName: 'top', + fullName: 'Totonac, Papantla NT', + bestLanguageName: 'Totonac, Papantla (top)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5977ecb14328c1ee', + displayName: 'zpi', + fullName: 'Zapotec, Santa María Quiegolani NT', + bestLanguageName: 'Zapotec (zpi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3fbc134184c717f7', + displayName: 'zaw', + fullName: 'Zapotec, Mitla NT', + bestLanguageName: 'Zapotec (zaw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e647441e72c72d59', + displayName: 'zas', + fullName: 'Zapotec, Santo Domingo Albarradas NT', + bestLanguageName: 'Zapotec (zas)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '88fe51ba6eaf6bb3', + displayName: 'zab', + fullName: 'Zapotec, San Juan Guelavía NT', + bestLanguageName: 'Zapotec (zab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '846293f9754bccfc', + displayName: 'zpc', + fullName: 'Zapotec, Choapan NT', + bestLanguageName: 'Zapotec (zpc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e47c0124c5c3381d', + displayName: 'yad', + fullName: 'Yagua NT', + bestLanguageName: 'Yagua (yad)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ae484172acd5fef4', + displayName: 'yka', + fullName: 'Yakan NT+', + bestLanguageName: 'Yakan (yka)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f48b60c9adc2ca63', + displayName: 'zae', + fullName: 'Zapotec, Yareni NT', + bestLanguageName: 'Zapotec (zae)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '658736ab467664e8', + displayName: 'tbo', + fullName: 'Tawala NT', + bestLanguageName: 'Tawala (tbo-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '20a2345c4e63344e', + displayName: 'yij', + fullName: 'Yindjibarndi (Luke)', + bestLanguageName: 'Yindjibarndi (yij)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '111dc3f9d89cae88', + displayName: 'zam', + fullName: 'Zapotec, Miahuatlán NT', + bestLanguageName: 'Zapotec (zam)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9e944fc08f02acf9', + displayName: 'wsg', + fullName: 'Adilabad Gondi NT', + bestLanguageName: 'Gondi (wsg-Telu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9f62760718a21400', + displayName: 'mqj', + fullName: 'Mamasa NT', + bestLanguageName: 'Mamasa (mqj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23924b4088bd455f', + displayName: 'bwu', + fullName: 'Buli NT', + bestLanguageName: 'Buli (Ghana) (bwu-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd08b1ba63332068e', + displayName: 'cmo', + fullName: 'Bunong NT+', + bestLanguageName: 'Mnong, Central (cmo-Latn-KH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '354753a2a5cd2165', + displayName: 'TPB12', + fullName: 'Tok Pisin Bible with Deuterocanon', + bestLanguageName: 'Tok Pisin (tpi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '02449f0dd277540a', + displayName: 'bvr', + fullName: 'Burarra NT', + bestLanguageName: 'Burarra (bvr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2278d7aebea61f30', + displayName: 'bds', + fullName: 'Burunge NT', + bestLanguageName: 'Burunge (bds)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '37740b8b57757368', + displayName: 'des', + fullName: 'Desano NT', + bestLanguageName: 'Desano (des)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b252b339fc2a74a0', + displayName: 'did', + fullName: 'Didinga NT+', + bestLanguageName: 'Didinga (did)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd0e5ec8b63346fa6', + displayName: 'ifa', + fullName: 'Ifugao, Amganad Bible', + bestLanguageName: 'Ifugao, Amganad (ifa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '25700cc9fc5bfd5b', + displayName: 'ikk', + fullName: 'Ika Bible', + bestLanguageName: 'Ika (ikk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '059d615e7fbe0f93', + displayName: 'mbi', + fullName: 'Manobo, Ilianen NT', + bestLanguageName: 'Manobo, Ilianen (mbi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4605369d47fcf630', + displayName: 'kyz', + fullName: 'Kayabí NT', + bestLanguageName: 'Kayabí (kyz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '996761107f3c451f', + displayName: 'kaj', + fullName: 'Jju New Testament', + bestLanguageName: 'Jju (kaj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '790830138e4482d3', + displayName: 'KFXNT', + fullName: 'Kulvi Bible', + bestLanguageName: 'Pahari, Kullu (kfx-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '41acde325876798a', + displayName: 'kgk', + fullName: 'Kaiwá NT', + bestLanguageName: 'Kaiwá (kgk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b37b85d8f6b14ef2', + displayName: 'kqf', + fullName: 'Kakabai (Mark)', + bestLanguageName: 'Kakabai (kqf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e64160ca16360481', + displayName: 'maw', + fullName: 'Mampruli NT', + bestLanguageName: 'Mampruli (maw-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7e094294de93fdbc', + displayName: 'hag', + fullName: 'Hanga (Genesis)', + bestLanguageName: 'Hanga (hag)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6a8ae62b04cf3cf3', + displayName: 'mpw', + fullName: 'Kalaw Lagaw Ya Portions', + bestLanguageName: 'Kala Lagaw Ya (mwp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1507aee406e0366d', + displayName: 'kbq', + fullName: 'Kamano NT+', + bestLanguageName: 'Kamano (kbq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1d2500c097ee17fc', + displayName: 'xbiW', + fullName: 'Kambio, Wampukuamp Portions', + bestLanguageName: 'Kombio, Wampukuamp (xbi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '180203474e5067ec', + displayName: 'wat', + fullName: 'Kaninuwa Portions', + bestLanguageName: 'Kaninuwa (wat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0c58bc770fea1f13', + displayName: 'cakX', + fullName: 'Kaqchikel, Santo Domingo (Xenacoj) NT', + bestLanguageName: 'Kaqchikel, Santo Domingo (Xenacoj) (cak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ba8af875c3c81f92', + displayName: 'cakSS', + fullName: 'Kaqchikel, Southern (Sacatepequez) NT', + bestLanguageName: 'Kaqchikel, Southern (Sacatepequez) (cak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '24a84e164de74032', + displayName: 'xtd', + fullName: 'Mixtec, Diuxi-tilantongo NT', + bestLanguageName: 'Mixtec, Diuxi-Tilantongo (xtd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '00b28a38ece1b2a6', + displayName: 'miz', + fullName: 'Mixtec, Coatzospan NT', + bestLanguageName: 'Mixtec, Coatzospan (miz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eeec2f4ae8ba317f', + displayName: 'ktj', + fullName: 'Krumen, Plapo NT', + bestLanguageName: 'Plapo Krumen (ktj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b4c47db8fcdecdd3', + displayName: 'tbw', + fullName: 'Tagbanwa Bible', + bestLanguageName: 'Tagbanwa (tbw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '37171ee02c881ca0', + displayName: 'wmt', + fullName: 'Walmajarri Portions', + bestLanguageName: 'Walmajarri (wmt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '72bb7d6157fb36d7', + displayName: 'rel', + fullName: 'Rendille NT', + bestLanguageName: 'Rendille (rel)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4bd9eefb01ca97c6', + displayName: 'yaq', + fullName: 'Yaqui NT', + bestLanguageName: 'Yaqui (yaq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '815aa965754d607a', + displayName: 'sim', + fullName: 'Mende NT', + bestLanguageName: 'Mende (sim)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b568d83fa39bfd44', + displayName: 'sbl', + fullName: 'Sambal, Botolan NT+', + bestLanguageName: 'Botolan Sambal (sbl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '149c2b0db5d89c9e', + displayName: 'xsr', + fullName: 'Sherpa NT', + bestLanguageName: 'Sherpa (xsr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0a33946aed0e5a87', + displayName: 'zga', + fullName: 'Kinga NT', + bestLanguageName: 'Kinga (zga)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ee9f1aae9742a994', + displayName: 'toj', + fullName: 'Tojolabal NT', + bestLanguageName: 'Tojolabal (toj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '44cc507256091b4d', + displayName: 'krj', + fullName: 'Kinaray-a NT', + bestLanguageName: 'Kinaray-a (krj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9c3654f18a02ec25', + displayName: 'mmn', + fullName: 'Mamanwa NT', + bestLanguageName: 'Mamanwa (mmn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c9332f97a27c1f6b', + displayName: 'kyg', + fullName: 'Keyagana Bible', + bestLanguageName: 'Keyagana (kyg-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '72711b7f418ed11c', + displayName: 'CASS70', + fullName: 'Russian Cassian New Testament', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '96538099a0d2127d', + displayName: 'sey', + fullName: 'Secoya NT', + bestLanguageName: 'Secoya (sey)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a863ff667519e437', + displayName: 'qxn', + fullName: 'Quechua, North Conchucos Bible', + bestLanguageName: 'Quechua (qxn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4b646272c79c5d32', + displayName: 'CRV2', + fullName: 'Contemporary Russian Version (2nd ed.)', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fba9df77a73915fa', + displayName: 'mfn', + fullName: 'Ofonokpan LP NT Portions', + bestLanguageName: 'Mbembe, Cross River (mfn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ec46bbfa141b767f', + displayName: 'BSC2010', + fullName: 'La Bible en Sango courant 2010', + bestLanguageName: 'Sango (sag)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ca2c2aa6a8d15c73', + displayName: 'BLPH', + fullName: 'Biblia La Palabra Hispanoamericana', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5a6b88fafe1c8f2b', + displayName: 'cuk', + fullName: 'Kuna, San Blas Bible', + bestLanguageName: 'Kuna, San Blas (cuk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '78b5ca615ee7f539', + displayName: 'xsm', + fullName: 'Kasem NT', + bestLanguageName: 'Kasem (xsm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '79a43b406fe98a4e', + displayName: 'kje', + fullName: 'Kisar NT', + bestLanguageName: 'Kisar (kje)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '272803a739a4267d', + displayName: 'KFA', + fullName: 'Kodava NT+', + bestLanguageName: 'Kodava (kfa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f1e22f1a0a5b44b1', + displayName: 'kpr', + fullName: 'Korafe-Yegha NT+', + bestLanguageName: 'Korafe-Yegha (kpr-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c81e4421cc6fd7ce', + displayName: 'TAZIID', + fullName: 'TAZI Study Notes in Indonesian', + bestLanguageName: 'Indonesian (ind)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6ae3d9ec3d8e7da9', + displayName: 'DGINT04', + fullName: 'Dagara Nouveau Testament', + bestLanguageName: 'Dagara, Northern (dgi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '196922a66a1630fc', + displayName: 'CUG', + fullName: 'Welsh Guild of Graduates Translation 1921-45', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '915256c4cd2c9117', + displayName: 'CTB', + fullName: + 'Welsh Translation by Thomas Briscoe 1853-94 (New Testament, and parts of the Old Testament)', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ce61802104a384c7', + displayName: 'CJW', + fullName: 'Yr Oraclau Bywiol - Welsh New Testament by John Williams 1842', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '52fd402a32772aef', + displayName: 'JJCN', + fullName: 'Y Cyfammod Newydd (The 4 Gospels) 1818 by John Jones', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11bc8fb0f0c3cd03', + displayName: 'SLV', + fullName: "Detholiad o'r Salmau - Welsh Selection of Psalms by Lewis Valentine 1936", + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '302f4a2903a06e03', + displayName: 'TEGID', + fullName: 'Selections of Ruth, Psalms and Isaiah 1830-35 by Ioan Tegid', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e2a098be8b4d45fe', + displayName: 'MOODC98', + fullName: 'Moore DC Bible', + bestLanguageName: 'Mòoré (mos-BF)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '53b04f4df1f82934', + displayName: 'ALGKK72', + fullName: 'Dhiata e Re (Albanian Geg New Testament) 1872 Kristoforidhi', + bestLanguageName: 'Albanian (aln)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8871df6dba8ebcdd', + displayName: 'ALTMK27', + fullName: 'Albanian Tosk Meksi Gjirokastriti New Testament 1827', + bestLanguageName: 'Albanian (als)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '69242b1592015aad', + displayName: 'AL1884', + fullName: 'Albanian Tosk Kostantin Kristoforidhi 1884', + bestLanguageName: 'Albanian (als)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e82d50a66557b493', + displayName: 'bsc', + fullName: 'Oniyan NT+', + bestLanguageName: 'Oniyan (bsc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1f2e7f3daf3c47fa', + displayName: 'caf', + fullName: 'Carrier, Southern NT', + bestLanguageName: 'Carrier, Southern (caf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da069a7e82ce2576', + displayName: 'eza', + fullName: 'Ezaa Bible', + bestLanguageName: 'Ezaa (eza)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6df79accf8238bbe', + displayName: 'ktm', + fullName: 'Kurti Portions', + bestLanguageName: 'Kurti (ktm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cd8cd62bd991fbbf', + displayName: 'loq', + fullName: 'Lobala NT', + bestLanguageName: 'Lobala (loq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cbfc8b85c46d3eca', + displayName: 'zpq', + fullName: 'Zapotec, Zoogocho NT', + bestLanguageName: 'Zapotec (zpq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cc617ebfd1dd6224', + displayName: 'tpp', + fullName: 'Tepehua, Pisaflores NT', + bestLanguageName: 'Tepehua, Pisaflores (tpp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '25cf9871f1479b77', + displayName: 'ubuN', + fullName: 'Umbu-Ungu, No Penge NT', + bestLanguageName: 'Umbu-Ungu (ubu-x-nopenge)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '375d3c12b7464a82', + displayName: 'wiu', + fullName: 'Wiru NT', + bestLanguageName: 'Wiru (wiu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dca772a6b8227d8a', + displayName: 'tpm', + fullName: 'Tampulma NT', + bestLanguageName: 'Tampulma (tpm-Latn-GH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23d4b7183bed44c7', + displayName: 'seh', + fullName: 'Sena NT', + bestLanguageName: 'Sena (seh-Latn-MZ)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c7eb32ae41dea051', + displayName: 'mbl', + fullName: 'Maxakalí NT', + bestLanguageName: 'Maxakalí (mbl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b2597bc52927b93', + displayName: 'qwh', + fullName: 'Quechua, Huaylas Bible', + bestLanguageName: 'Quechua (qwh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '22c2218f97a261bc', + displayName: 'BTQ13', + fullName: 'Biblia Toba Qom 2013', + bestLanguageName: 'Toba (tob)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '38fc6720bda3689c', + displayName: 'MTTOT', + fullName: 'Mota Old Testament Selections 1947 (Vanuatu)', + bestLanguageName: 'Mota (mtt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a0e86ec2040f43f', + displayName: 'AVDDV', + fullName: 'New Arabic Van Dyck (Reduced vocalization)', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5f19908d3d3695c1', + displayName: 'noa', + fullName: 'Woun Meu NT (Alt Orth)', + bestLanguageName: 'Woun Meu (Alt orth) (noa-x-colombia)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '75da815d61b33e39', + displayName: 'mfy', + fullName: 'Mayo NT', + bestLanguageName: 'Mayo (mfy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2185805f79763ca2', + displayName: 'mek', + fullName: 'Mekeo NT', + bestLanguageName: 'Mekeo (mek)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd768422d09c816c7', + displayName: 'mgo', + fullName: 'Meta’ NT', + bestLanguageName: "Meta' (mgo)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '85c01c4f8b3caf87', + displayName: 'nko', + fullName: 'Nkonya NT+', + bestLanguageName: 'Nkonya (nko)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '262f4c06b56b8146', + displayName: 'mxq', + fullName: 'Mixe, Juquila NT', + bestLanguageName: 'Mixe, Juquila (mxq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b9bb82b63632cfd6', + displayName: 'miy', + fullName: 'Mixteco, Ayutla NT', + bestLanguageName: 'Mixtec, Ayutla (miy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b504b0c6cc90ce4d', + displayName: 'mnf', + fullName: 'Mundani NT', + bestLanguageName: 'Mundani (mnf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1021438a7772af7d', + displayName: 'lem', + fullName: 'Nomaande NT', + bestLanguageName: 'Nomaande (lem-Latn-CM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '71f7649521dcb855', + displayName: 'niy', + fullName: 'Ndruna NT', + bestLanguageName: 'Ndruna (niy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0b5991f477d3c5a3', + displayName: 'lex', + fullName: 'Luang NT+', + bestLanguageName: 'Luang (lex)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '15d7b7813bfa2801', + displayName: 'vag', + fullName: 'Vagla Bible', + bestLanguageName: 'Vagla (vag)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2ab2aea91d60a4de', + displayName: 'tbc', + fullName: 'Takia NT', + bestLanguageName: 'Takia (tbc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '224bb1f28e2c194d', + displayName: 'pkb', + fullName: 'Pokomo NT', + bestLanguageName: 'Pokomo (pkb-Latn-KE)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b10b6bb3ca69c4a', + displayName: 'oym', + fullName: 'Wayampi NT', + bestLanguageName: 'Wayampi (oym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b3028609daf34d1', + displayName: 'izz', + fullName: 'Izii Bible', + bestLanguageName: 'Izii (izz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0bf129a5f3cc025f', + displayName: 'ksc', + fullName: 'Kalinga, Southern NT', + bestLanguageName: 'Southern Kalinga (ksc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7b2acc127ab19d99', + displayName: 'fad', + fullName: 'Wagi Luke', + bestLanguageName: 'Wagi (fad-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bac2b6d771770f52', + displayName: 'WIN', + fullName: 'Winnebego Portions 1907', + bestLanguageName: 'Ho-Chunk (win)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f592539b819e3c40', + displayName: 'wib', + fullName: 'Toussian, Southern NT', + bestLanguageName: 'Southern Toussian (wib)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7a5d4e27fec3509e', + displayName: 'tgk', + fullName: 'Tajik NT', + bestLanguageName: 'Tajiki (tgk-Cyrl-TJ)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1bf647e33d9d5abe', + displayName: 'tpa', + fullName: 'Taupota Mark', + bestLanguageName: 'Taupota (tpa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '76f5e924bec27163', + displayName: 'ubu', + fullName: 'Umbu-Ungu, Kala NT', + bestLanguageName: 'Umbu-Ungu, Kala (ubu-x-kala)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f162be7554f3b482', + displayName: 'uth', + fullName: 'ut-Hun NT', + bestLanguageName: 'u̱t-Hun (uth)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0fee1cc277f7ce52', + displayName: 'rro', + fullName: 'Waima NT', + bestLanguageName: 'Waima (rro)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'beff6093a9da71e9', + displayName: 'wnc', + fullName: 'Wantoat NT+', + bestLanguageName: 'Wantoat (wnc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '343ff7def331c54b', + displayName: 'wrs', + fullName: 'Waris NT+', + bestLanguageName: 'Waris (wrs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f421fe261da7624f', + displayName: 'ESVUS16', + fullName: 'English Standard Version 2016', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '557a279911ff808a', + displayName: 'wim', + fullName: 'Wik-Mungkan NT', + bestLanguageName: 'Wik-Mungkan (wim)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '957f2de259de7b0d', + displayName: 'nuy', + fullName: 'Wubuy NT+', + bestLanguageName: 'Wubuy (nuy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ecf42b3d91f56d86', + displayName: 'zpt', + fullName: 'Zapoteco, San Vicente Coatlán NT', + bestLanguageName: 'Zapotec (zpt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '989c887fa443e4d3', + displayName: 'ken', + fullName: 'Kenyang NT', + bestLanguageName: 'Kenyang (ken)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '272070116ffbf8f2', + displayName: 'pny', + fullName: 'Pinyin NT', + bestLanguageName: 'Pinyin (pny)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '50219bbdbe4a21aa', + displayName: 'yby', + fullName: 'Yaweyuha NT', + bestLanguageName: 'Yaweyuha (yby)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0651f9f4a905024d', + displayName: 'mza', + fullName: 'Mixtec, Santa María Zacatepec NT', + bestLanguageName: 'Mixtec, Santa María Zacatepec (mza)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ba564ee8c611702a', + displayName: 'tcs', + fullName: 'Torres Strait Creole NT+', + bestLanguageName: 'Torres Strait Creole (tcs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bae8cba68f2f143f', + displayName: 'xav', + fullName: 'Xavante NT+', + bestLanguageName: 'Xavánte (xav)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7140e4a22e4b557b', + displayName: 'zav', + fullName: 'Zapotec, Yatzachi NT', + bestLanguageName: 'Zapotec (zav)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6c16e80d160fa7f9', + displayName: 'yon', + fullName: 'Yomgkom NT+', + bestLanguageName: 'Yongkom (yon)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7996e38abf5e79f6', + displayName: 'sjm', + fullName: 'Mapun NT+', + bestLanguageName: 'Mapun (sjm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1c64bcbe221eeecd', + displayName: 'diq', + fullName: 'Zazaki, Southern Portions', + bestLanguageName: 'Zaza (diq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4b8eaf0b540612be', + displayName: 'ssc', + fullName: 'Suba-Simbiti NT', + bestLanguageName: 'Suba-Simbiti (ssc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e5617d213e0f9244', + displayName: 'GMEngSB', + fullName: 'Grace Ministries English Study Bible', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '73c29be3454345e7', + displayName: 'wuv', + fullName: 'Wuvulu-Aua NT', + bestLanguageName: 'Wuvulu-Aua (wuv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b459b0bd26b6fd5a', + displayName: 'pcm', + fullName: 'Nigerian Pidgin Bible', + bestLanguageName: 'Pidgin, Nigerian (pcm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7b75dea8288f8e6e', + displayName: 'HKABCL', + fullName: 'Lai (Hakha) Common Language Bible 2006', + bestLanguageName: 'Chin, Haka (cnh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0a19b175a7f803a4', + displayName: 'CIMRNT', + fullName: 'Rarotongan Revised New Testament', + bestLanguageName: 'Rarotongan (rar)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eacd5437d6fddd6b', + displayName: 'kma', + fullName: 'Konni NT', + bestLanguageName: 'Konni (kma)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '520cfc6c0946671d', + displayName: 'tke', + fullName: 'Takwane NT+', + bestLanguageName: 'Takwane (tke-Latn-MZ)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '27e6822ca225757c', + displayName: 'GNA', + fullName: 'Arabic: Good News Arabic 1993', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd278f8414cff886e', + displayName: 'gvr', + fullName: 'Gurung Central Adapt It Study Bible (NT+)', + bestLanguageName: 'Gurung (gvr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '81df4250bbf1c9be', + displayName: 'guc', + fullName: 'Wayuu NT', + bestLanguageName: 'Wayuu (guc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fc41d1a234d7136d', + displayName: 'TAVETA', + fullName: 'Taveta New Testament 1906, Exodus 1897, Psalms 1905', + bestLanguageName: 'Taveta (tvs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '57c0abbfb6aa4c2a', + displayName: 'GWC', + fullName: 'St Paul from the Trenches by Gerald Warre-Cornish 1916', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'de8eb08d1adc80c0', + displayName: 'flr', + fullName: 'Kifuliiru Bible', + bestLanguageName: 'Fuliiru (flr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7e3991bf08305eaa', + displayName: 'xsu', + fullName: 'Sanumá NT', + bestLanguageName: 'Sanumá (xsu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '12c67747efacf177', + displayName: 'KABI95', + fullName: 'Nouveau Testament en Kabiye 1995', + bestLanguageName: 'Kabiyè (kbp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8957b547c7dacf1a', + displayName: 'SB2000', + fullName: 'Swedish Bible ("Bibel 2000")', + bestLanguageName: 'Swedish (swe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7dc65f615d86d342', + displayName: 'blr', + fullName: 'Plang (Blang) NT', + bestLanguageName: 'Plang (Blang) (blr-035)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '65619dd33c722206', + displayName: 'ABM', + fullName: 'Abanyom LP New Testament Portions', + bestLanguageName: 'Abanyom (abm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f46643c58154a737', + displayName: 'NDD', + fullName: 'Nde-Nsele-Nta LP NT Portions', + bestLanguageName: 'Nde-Nsele-Nta (ndd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5f7621a59a585a70', + displayName: 'ATN1951', + fullName: 'Irish Gaelic New Testament 1951 (Joynt) Roman type', + bestLanguageName: 'Irish Gaelic (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '58ed256dea047a32', + displayName: 'JOYNTG', + fullName: 'Irish Gaelic New Testament 1951 (Joynt) Gaelic type', + bestLanguageName: 'Irish Gaelic (gle-Latg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e2804a97ad9aa13a', + displayName: 'ABNPOLG', + fullName: "Irish Gaelic Gospels and Acts 1915, 1921 (Peter O'Leary) Gaelic type", + bestLanguageName: 'Irish Gaelic (gle-Latg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ab14dd91b251783c', + displayName: 'cya', + fullName: 'Chatino, Nopala NT', + bestLanguageName: 'Chatino, Nopala (cya)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '78df294841c750fc', + displayName: 'kjl', + fullName: 'Magar Kham NT', + bestLanguageName: 'Kham, Western Parbate (kjl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e95ebacdd4cd048f', + displayName: 'kml', + fullName: 'Kalinga, Mangali NT', + bestLanguageName: 'Kalinga, Tanudan (kml)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '53aaf6ed8653b887', + displayName: 'mmy', + fullName: 'Migaama NT', + bestLanguageName: 'Migaama (mmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a889ed89208049e0', + displayName: 'nyb', + fullName: 'Nyangbo NT', + bestLanguageName: 'Nyangbo (nyb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3cb7495b5419a9c7', + displayName: 'blt', + fullName: 'Tai Dam NT+', + bestLanguageName: 'Tai Dam (blt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd181397b88e93932', + displayName: 'kyb', + fullName: 'Kalinga, Butbut NT', + bestLanguageName: 'Kalinga, Butbut (kyb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '63c11f05680c2d70', + displayName: 'mta', + fullName: 'Manobo, Cotabato NT', + bestLanguageName: 'Manobo, Cotabato (mta)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '549f300be61f35bb', + displayName: 'LLENT', + fullName: 'Lele New Testament 1956 (Manus Island, PNG)', + bestLanguageName: 'Lele (lle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eeac1cae88bcf2a1', + displayName: 'GEK', + fullName: 'Ywom NT Portions Luke', + bestLanguageName: 'Yiwom (gek)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '19c9f140389ae5ca', + displayName: 'MTL', + fullName: 'Tel Language Project NT Portions', + bestLanguageName: 'Montol (mtl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fd45de398eaa62e4', + displayName: 'tuo', + fullName: 'Tukano NT', + bestLanguageName: 'Tucano (tuo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9e63cdeff066ea65', + displayName: 'tuo', + fullName: 'Tucano (CO) NT+', + bestLanguageName: 'Tucano (tuo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8db1fd83aa70995d', + displayName: 'upv', + fullName: 'Uripiv NT', + bestLanguageName: 'Uripiv-Wala-Rano-Atchin (upv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '71e98a8be449f278', + displayName: 'urt', + fullName: 'Urat NT', + bestLanguageName: 'Urat (urt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ddd03da15b06e4e1', + displayName: 'any', + fullName: 'Anyin NT', + bestLanguageName: 'Anyin (any)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a4c5eb163eacc4fe', + displayName: 'cakC', + fullName: 'Kaqchikel, Patzun NT', + bestLanguageName: 'Kaqchikel, Patzun (Central) Guatemala (cak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c4fe9e2ee5c9478b', + displayName: 'cakSC', + fullName: 'Kaqchikel, Chimaltenango NT', + bestLanguageName: 'Kaqchikel, South Central (cak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '21e3d02e7324b0bc', + displayName: 'dik', + fullName: 'Dinka Rek, Southwestern NT', + bestLanguageName: 'Dinka (dik-Latn-SS)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cbf46b35048b40b2', + displayName: 'pac', + fullName: 'Pacoh, Cado NT', + bestLanguageName: 'Pacoh (pac-Latn-x-diacado)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1d195f0748db203a', + displayName: 'khz', + fullName: 'Keapara, Kalo NT', + bestLanguageName: 'Keapara, Kalo (khz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c3d874881bb6965e', + displayName: 'rwo', + fullName: 'Rawa (Karo) NT', + bestLanguageName: 'Rawa (Karo) (rwo-x-karo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '79eafcc60f337d8c', + displayName: 'tucO', + fullName: 'Mutu (Oov) NT', + bestLanguageName: 'Mutu, Oov (tuc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28b49503236ab541', + displayName: 'tzj', + fullName: "Tz'utijil (Western) NT", + bestLanguageName: 'Tz’utujil (Western) (tzj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11f5806f61c44017', + displayName: 'tzj', + fullName: "Tz'utujil (Eastern) NT", + bestLanguageName: 'Tz’utujil (Eastern) (tzj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '017a5237548af856', + displayName: 'wedT', + fullName: 'Wedau, Topura (Mark)', + bestLanguageName: 'Wedau (wed)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'faffff7e61b14475', + displayName: 'wedW', + fullName: 'Wedau (Wedaun) Mark', + bestLanguageName: 'Wedau (wed)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ddb5d2fa6a7d0949', + displayName: 'yss', + fullName: 'Yessan-Mayo (Yawau) NT', + bestLanguageName: 'Yessan-Mayo (yss)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0efad760435c79e8', + displayName: 'ood', + fullName: "Tohono O'odham NT", + bestLanguageName: 'Tohono O’odham (ood)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b2a08472612ed76', + displayName: 'dyu', + fullName: 'Jula Bible', + bestLanguageName: 'Jula (dyu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dccc59ac65e7e9ad', + displayName: 'bex', + fullName: 'Jur Mödö NT+', + bestLanguageName: 'Jur Mödö (bex-Latn-SS)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aa9d400152fb14e5', + displayName: 'bib', + fullName: 'Bissa NT', + bestLanguageName: 'Bissa (bib-x-lati-bf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd74ba25a95f9f383', + displayName: 'nhx', + fullName: 'Isthmus-Mecayapan Nahuatl NT', + bestLanguageName: 'Isthmus-Mecayapan Nahuatl (nhx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd38a664622353792', + displayName: 'nhx', + fullName: 'Nahuatl, Tatahuicapan NT', + bestLanguageName: 'Nahuatl, Tatahuicapan (nhx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '429f591afc630556', + displayName: 'key', + fullName: 'Kupia NT', + bestLanguageName: 'Kupia (key)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6800a075eb204bb8', + displayName: 'JER', + fullName: 'Azelle New Testament Portions', + bestLanguageName: 'Jere (jer)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd11c7787cd900406', + displayName: 'IKO', + fullName: 'Nkome LP NT Portions', + bestLanguageName: 'Olulumo-Ikom (iko)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fac9a9a43e03231b', + displayName: 'XSN', + fullName: 'Sanga Language Project NT Portions', + bestLanguageName: 'Sanga (xsn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2a978c26f3c287fd', + displayName: 'TUKARA84', + fullName: "Turkmen Arabic Matthew's Gospel Published 1884", + bestLanguageName: 'Turkmen (tuk-Arab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1df83de0a2b20ea9', + displayName: 'RAI', + fullName: 'Ramoaania Bible Portions 1896 (PNG)', + bestLanguageName: 'Ramoaaina (rai)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f3886811e1df5031', + displayName: 'TukCyr16', + fullName: 'Turkmen Cyrillic Mukaddes Kitap Published 2016', + bestLanguageName: 'Turkmen (tuk-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '259a3306d9564cb6', + displayName: 'TukLat16', + fullName: 'Turkmen Latin Mukaddes Kitap Published 2016', + bestLanguageName: 'Turkmen (tuk-TM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f2ea37c806f0797b', + displayName: 'BANGI', + fullName: 'New Testament, Genesis, Psalms and Prophets in Bobangi 1916 (DRC)', + bestLanguageName: 'Bangi (bni)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b99015266becd0cd', + displayName: 'LGT', + fullName: 'Latgalian New Testament 1937 (Aloizijs Broks)', + bestLanguageName: 'Latvian (ltg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9f51389317e31290', + displayName: 'amx', + fullName: 'Anmatyerr Portions', + bestLanguageName: 'Anmatyerre (amx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c897fa11f5b6b22c', + displayName: 'aly', + fullName: 'Alyawarr Portions (Active)', + bestLanguageName: 'Alyawarr (aly)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6840e04ef7512ca1', + displayName: 'blx', + fullName: 'Ayta MagIndi NT (Active)', + bestLanguageName: 'Ayta, Mag-Indi (blx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c5f87674ef7ba5b7', + displayName: 'esg', + fullName: 'Aheri Gondi NT (Active)', + bestLanguageName: 'Gondi (esg-Deva)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '06d5201b52f14261', + displayName: 'absAMNT', + fullName: 'Ambonese Malay NT (Active)', + bestLanguageName: 'Malay, Ambonese (abs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a954be84a110be30', + displayName: 'qwa', + fullName: 'Quechua, Corongo Ancash Portions (Active)', + bestLanguageName: 'Quechua (qwa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '51d3b1ff64b1d3a6', + displayName: 'gaw', + fullName: 'Nobonob - Vernacular Bible (Active)', + bestLanguageName: 'Nobonob (gaw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e0d9493d9a66376a', + displayName: 'NBS', + fullName: 'Nouvelle Bible Segond', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '89b920d25c1bdcd9', + displayName: 'KALD', + fullName: 'E Nevi Viasta o Psalmo 2004 (Maximoff Kalderash NT + Psalms)', + bestLanguageName: 'Romany (rmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a01bfea3983bc9ce', + displayName: 'BOBOT', + fullName: 'Dobu Old Testament books 1919', + bestLanguageName: 'Dobu (dob)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '89f195129e06067b', + displayName: 'ORO', + fullName: 'Orokolo New Testament 1963, Genesis 1970 and Ruth 1972', + bestLanguageName: 'Orokolo (oro)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2e8cf440d105e095', + displayName: 'MYE', + fullName: 'Myene Bible 1927', + bestLanguageName: 'Myene (mye)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7793d0324977d550', + displayName: 'FIN38', + fullName: 'Finnish 1933/38 DC Bible', + bestLanguageName: 'Finnish (fin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c279b0d155b9d7df', + displayName: 'ksz', + fullName: 'Kodaku NT (Active)', + bestLanguageName: 'Kodaku (ksz-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0a37aff063799cd6', + displayName: 'SRX', + fullName: 'Sirmouri NT (Active)', + bestLanguageName: 'Sirmauri (srx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6a795af03e157c90', + displayName: 'NNRV', + fullName: 'Nepali New Revised Version 2012', + bestLanguageName: 'Nepali (macrolanguage) (npi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '897f91fb2077c0b1', + displayName: 'LOV84', + fullName: 'Vlax Romani Lovari - O angluno lil anda o Johannes (1 John) 1984 (Norway)', + bestLanguageName: 'Romany (rmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9c1ce7d7538e297a', + displayName: 'QUEAYA87', + fullName: 'Biblia Quechua Ayacucho 1987', + bestLanguageName: 'Quechua (quy-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aeb99463c03f4577', + displayName: 'NMM', + fullName: 'Kiswahili Contemporary Scriptures (Neno TAZI) 2018', + bestLanguageName: 'Swahili (macrolanguage) (swh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'def16ae158c3e79f', + displayName: 'NEN', + fullName: 'Kiswahili Contemporary Version 2015', + bestLanguageName: 'Swahili (macrolanguage) (swh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4682b4576f7f666f', + displayName: 'qvw', + fullName: 'Quechua, Huaylla Wanca NT', + bestLanguageName: 'Quechua (qvw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6fc6a8e88b38d461', + displayName: 'DHH83', + fullName: 'Dios Habla Hoy 2nd Edition 1983', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '812979be5cea477f', + displayName: 'RBT', + fullName: 'Russian BTI Translation', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '694c7b93b807a4c6', + displayName: 'CORS1861', + fullName: 'Corsican Gospel of Matthew 1861', + bestLanguageName: 'Corsican (cos)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3e402352c375457f', + displayName: 'NJPS2017', + fullName: 'TaNaKH - A New Translation of THE HOLY SCRIPTURES', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e07bde4b48aeff94', + displayName: 'SOM08', + fullName: 'Somali Bible', + bestLanguageName: 'Somali (som)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '39fad1477b73d703', + displayName: 'SBK', + fullName: 'Safwa New Testament', + bestLanguageName: 'Safwa (sbk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fdefabd3e4554ee7', + displayName: 'GCL18', + fullName: 'Gute Nachricht Bibel 2018', + bestLanguageName: 'German, Standard (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b9a77821d5f0fcf', + displayName: 'pov', + fullName: 'Portuguese Creole Bible, Guinea-Bissau', + bestLanguageName: 'Crioulo, Upper Guinea (pov-Latn-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'af95195e33d13a2a', + displayName: 'dig', + fullName: 'Digo Bible', + bestLanguageName: 'Chidigo (dig)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '35961df062009fb1', + displayName: 'BCI08', + fullName: 'Bíblia Catalana Traducción Interconfessional', + bestLanguageName: 'Catalan (cat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4e3f1ecc8e746473', + displayName: 'PYM', + fullName: 'PYAM NT Portions', + bestLanguageName: 'Fyam (pym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0b805dee90f429de', + displayName: 'MANDAN', + fullName: 'Mandan Scripture Selections 1905', + bestLanguageName: 'Mandan (mhq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '392098d62ea60a21', + displayName: 'PCE', + fullName: 'PCE_Bible', + bestLanguageName: 'Palaung, Ruching (pce-Thai)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b17baf785c57f24b', + displayName: 'nyf', + fullName: 'Giryama NT (Kenya)', + bestLanguageName: 'Giryama (nyf-Latn-KE)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '40a2c022e92c9f2d', + displayName: 'saq', + fullName: 'Samburu NT', + bestLanguageName: 'Samburu (saq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8487fdbb935d7ac1', + displayName: 'thk', + fullName: 'Tharaka NT', + bestLanguageName: 'Tharaka (thk-Latn-KE)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bc48fc402bb64d4e', + displayName: 'sxb', + fullName: 'Suba NT', + bestLanguageName: 'Suba (sxb-KE)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '525dfe8354a063f7', + displayName: 'XTE', + fullName: 'Ketengban Bible NT OTX', + bestLanguageName: 'Ketengban (xte)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '354abb1914bf939c', + displayName: 'KNT', + fullName: 'Kui New Testament', + bestLanguageName: 'Kuy (kdt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5e2003b1c883f03f', + displayName: 'THSV11', + fullName: 'Thai Standard Version 2011', + bestLanguageName: 'Thai (tha)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6e09693ec734257c', + displayName: 'ZMB', + fullName: 'Zimba Nouveau Testament Portions', + bestLanguageName: 'Zimba (zmb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9a486a30761e6e00', + displayName: 'SIDC', + fullName: 'Solomon Is Pijin Catholic Bible', + bestLanguageName: 'Pijin (pis-Latn-SB)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '768156ae84c063c1', + displayName: 'nod', + fullName: 'Northern Thai NT', + bestLanguageName: 'Thai, Northern (nod)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '346babdc0230b19f', + displayName: 'bkq', + fullName: 'Bakairi NT', + bestLanguageName: 'Bakairí (bkq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '13767247c4090f1c', + displayName: 'AltNT2017', + fullName: 'Altai New Testament 2017', + bestLanguageName: 'Altai, Southern (alt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a377ca5e3de42df7', + displayName: 'MJV', + fullName: 'JUDSON BIBLE 1933', + bestLanguageName: 'Burmese (mya)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '227e1da4517e30e9', + displayName: 'kmw', + fullName: 'Komo New Testament', + bestLanguageName: 'Komo (kmw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9dfa86fef49a2749', + displayName: 'buu', + fullName: 'Budu-Koya New Testament', + bestLanguageName: 'Budu (buu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'acee328605cf2bfb', + displayName: 'NKR', + fullName: 'Nukuoro Bible', + bestLanguageName: 'Nukuoro (nkr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2970d792813aef73', + displayName: 'spy', + fullName: 'Sabaot Bible', + bestLanguageName: 'Kalenjin (spy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e147c0d35d7dd600', + displayName: 'ptu', + fullName: 'Bambam', + bestLanguageName: 'Bambam (ptu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6fd3b6c0c7c63e49', + displayName: 'SGJ', + fullName: 'Surgujia', + bestLanguageName: 'Surgujia (sgj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7f38828c4ca2f6ec', + displayName: 'buu', + fullName: 'Budu Nita Genesis + NT', + bestLanguageName: 'Budu (buu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '902edf68ad95ecdd', + displayName: 'ALTKK79', + fullName: 'Dhiata e Re (Albanian Tosk New Testament) Konstantin Kristoferidhi 1879', + bestLanguageName: 'Albanian (sqi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e25948d139b429d3', + displayName: 'pan2020', + fullName: 'Punjabi New Testament Revised 2020', + bestLanguageName: 'Lahnda (pnb-Aran-PK)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '10c07832ebdcbd26', + displayName: 'SCHL1951', + fullName: 'Die Bibel (Schlachter 1951)', + bestLanguageName: 'German, Standard (deu-CH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '14543d755cb9ade7', + displayName: 'BLAMAT', + fullName: 'Blackfoot Gospel of Matthew 1890 (Canada)', + bestLanguageName: 'Blackfoot (bla-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7279987b1d618c5f', + displayName: 'BLAMRK', + fullName: 'Good News as told by Mark in the Blackfoot Language 1972', + bestLanguageName: 'Blackfoot (bla-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ca85376cd15c397b', + displayName: 'PQM1870', + fullName: 'Maliseet Gospel of John 1870 (Canada)', + bestLanguageName: 'Malecite-Passamaquoddy (pqm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '53ca71d6f5be8ef3', + displayName: 'PQM1863', + fullName: 'Maliseet Selections 1863 (Canada)', + bestLanguageName: 'Malecite-Passamaquoddy (pqm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6d6f3a4e2d877b32', + displayName: 'CHN1912', + fullName: 'Gospel of Mark in Chinook Wawa 1912', + bestLanguageName: 'Chinook Wawa (chn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fc1fc7a30722d18a', + displayName: 'NLT07', + fullName: 'New Living Translation 2007', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b0cd5ec247ade00e', + displayName: 'ESVUK', + fullName: 'English Standard Version (ESV) Anglicised 2016', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7f40ac05c7460126', + displayName: 'LOBIRI', + fullName: 'Lobiri New Testament 1985', + bestLanguageName: 'Lobi (lob)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0d8e089946e544ab', + displayName: 'CKY', + fullName: 'Chakfem (ckyc)', + bestLanguageName: 'Cakfem-Mushere (cky)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b0f57d3ab4e0629c', + displayName: 'ulk1902', + fullName: 'Meriam Mer Gospels 1902', + bestLanguageName: 'Meriam (ulk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b41d0120971a5c52', + displayName: 'apn', + fullName: 'Apache NT -USA', + bestLanguageName: 'Apache, Western (apw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dfab669caf65b1ac', + displayName: 'cbu', + fullName: 'Candoshi-Shapra Bible', + bestLanguageName: 'Candoshi-Shapra (cbu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b07998818b610cb', + displayName: 'gvn', + fullName: 'Kuku-Yalangi', + bestLanguageName: 'Kuku-Yalanji (gvn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '01c25b8715dbb632', + displayName: 'NVI-S', + fullName: 'Nueva Versión Internacional 2022', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b812fb5810c0b4e8', + displayName: 'AGR', + fullName: 'Awajun OT reprint and NTRev', + bestLanguageName: 'Aguaruna (agr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '709cdcfb158bb1d6', + displayName: 'KAA22C', + fullName: 'Karakalpak Bible 2022 (Cyrillic)', + bestLanguageName: 'Karakalpak (kaa-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5f815dd738547a2f', + displayName: 'KAA22L', + fullName: 'Karakalpak Bible 2022 (Latin)', + bestLanguageName: 'Karakalpak (kaa-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aaa19db7ade2da32', + displayName: 'RVC', + fullName: 'Reina Valera Contemporánea', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '942d5c57a789bfff', + displayName: 'ALGNT', + fullName: 'Albanian Gheg New Testament', + bestLanguageName: 'Albanian (aln)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b1aba5c0162ed243', + displayName: 'AVD', + fullName: 'Arabic: Van Dyck with Full Vocalization', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '547356f0e641742a', + displayName: 'ICL14', + fullName: 'Italian Common Language Interconfessional Bible', + bestLanguageName: 'Italian (ita)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2c46fc44ed977987', + displayName: 'RDV24', + fullName: 'Versione Diodati Riveduta', + bestLanguageName: 'Italian (ita)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '97196133a859179b', + displayName: 'HBKENG', + fullName: 'English: UBS Handbook Series', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '15cbcee0aed13ef8', + displayName: 'BGQ', + fullName: 'Bagri', + bestLanguageName: 'Rajasthani (bgq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8123512db9841641', + displayName: 'THUL', + fullName: 'Thulung NT', + bestLanguageName: 'Thulung (tdh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '21b832f58a26f43d', + displayName: 'phr', + fullName: 'Mirpuri-Pahari Portions', + bestLanguageName: 'Lahnda (phr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fc5100d274994fb6', + displayName: 'PGG', + fullName: 'WalangiNT', + bestLanguageName: 'Pangwali (pgg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '880ff5e2c6bd8944', + displayName: 'SAT', + fullName: 'Arabic: الكِتاب المُقَدَّس: التَّرْجَمَةُ العَرَبِيَّةُ المُبَسَّطَةُ', + bestLanguageName: 'Arabic (arb-Arab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5ee655ce82d17011', + displayName: 'crjrNT', + fullName: 'Southern East Cree (Roman) [crj] -Canada (web 2018)', + bestLanguageName: 'Cree (crj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1840bf350eb9de59', + displayName: 'xed', + fullName: 'Hdi Bible', + bestLanguageName: 'Hdi (xed)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0b94c3c6951be8ba', + displayName: 'uri', + fullName: 'Urim-Kalpm Portions', + bestLanguageName: 'Urim (uri-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'df7e97ad10444eb0', + displayName: 'uvh', + fullName: 'Urii New Testament', + bestLanguageName: 'Uri (uvh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '77dc05b26ce399dd', + displayName: 'HBKCT', + fullName: 'Chinese-Traditional Script: Chinese UBS Handbook Series', + bestLanguageName: 'Chinese (cmn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6c21e835eb8ca3b2', + displayName: 'HBKCS', + fullName: 'Chinese-Simplified Script: Chinese UBS Handbook Series', + bestLanguageName: 'Chinese (cmn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c30a009cbfb3829', + displayName: 'RUT', + fullName: 'Rutul Luke 2004', + bestLanguageName: 'Rutul (rut)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cd64b0870cd798c9', + displayName: 'kiw', + fullName: 'Kope Portion', + bestLanguageName: 'Kiwai, Northeast (kiw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '14b911d1bb202fde', + displayName: 'GAU', + fullName: 'Mudhili Gadaba', + bestLanguageName: 'Gadaba, Mudhili (gau)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '46478ae3b2f4ced8', + displayName: 'mle', + fullName: 'Manambo NT', + bestLanguageName: 'Manambu (mle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '804cc342b7cc775a', + displayName: 'okv', + fullName: 'Orokaiva Ehija NT', + bestLanguageName: 'Orokaiva (okv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '78b96b766ccc69b2', + displayName: 'okv', + fullName: 'Orokaiva (Etija) NT', + bestLanguageName: 'Orokaiva (okv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '442fc91cc1ff77b2', + displayName: 'mcr', + fullName: 'Menya NT', + bestLanguageName: 'Menya (mcr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ffca4526975425ae', + displayName: 'ncq', + fullName: 'Katang Muong Phin NT+', + bestLanguageName: 'Northern Katang (ncq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f84c0dc97e27be9e', + displayName: 'mcf', + fullName: 'Matsés NT', + bestLanguageName: 'Matsés (mcf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8462d625b331927b', + displayName: 'tbf', + fullName: 'Mandara NT', + bestLanguageName: 'Mandara (tbf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3b8dc6b3e82e2144', + displayName: 'cpy', + fullName: 'Asheninka, South Ucayali -Peru (DBL 2015)', + bestLanguageName: 'Ashéninka, South Ucayali (cpy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2bf76bdbe9f08653', + displayName: 'LNB', + fullName: 'Lamnso Bible', + bestLanguageName: 'Lamnso’ (lns)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0d0bdfdc1fea767f', + displayName: 'mgg', + fullName: 'La Bible en langue mpumpong', + bestLanguageName: 'Mpumpong (mgg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2e13f581c41b1fac', + displayName: 'cot', + fullName: 'Caquinte NT', + bestLanguageName: 'Caquinte (cot)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4b5a6ffaf1e470b4', + displayName: 'maa', + fullName: 'Mazatec, San Jerónimo Tecóatl NT', + bestLanguageName: 'Mazatec, San Jerónimo Tecóatl (maa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a95d741b30bad432', + displayName: 'NKV', + fullName: 'Kyrgyz Bible', + bestLanguageName: 'Kyrgyz (kir)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55655f2fa526d9bf', + displayName: 'kkc', + fullName: 'Odoodee Partial NT', + bestLanguageName: 'Odoodee (kkc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b888a42e2d9a89d', + displayName: 'NIrV', + fullName: 'New International Readers Version 2014', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '93ae86f579e33416', + displayName: 'MNT', + fullName: 'Mankon New Testament', + bestLanguageName: 'Ngemba (nge)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2e0a8249af7ce57b', + displayName: 'KGR', + fullName: 'Abun Scripture', + bestLanguageName: 'Abun (kgr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '500e1ae5ec2937cf', + displayName: 'slm', + fullName: 'Sama Pangutaran 1994 DBL', + bestLanguageName: 'Sama, Pangutaran (slm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cd59a9cd8c596e6b', + displayName: 'acu', + fullName: 'Achuar Peru 2019 4th edition NT+', + bestLanguageName: 'Achuar-Shiwiar (acu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7d7a94da22db65c4', + displayName: 'ghb', + fullName: 'Gilaki Portions', + bestLanguageName: 'Gilaki (glk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bca055010f98a24b', + displayName: 'SB1917', + fullName: 'Swedish Bible (1917) with Apocrypha (1921)', + bestLanguageName: 'Swedish (swe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '594da635d2f76dfe', + displayName: 'FNV', + fullName: 'Fijian New Version Bible', + bestLanguageName: 'Fijian (fij)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '13cedee3ef07d67c', + displayName: 'zza', + fullName: 'Northern Zazaki (Kirmancki) Dersim Scripture Portions', + bestLanguageName: 'Zaza (kiu-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '97168d61a121bf7c', + displayName: 'GYZ', + fullName: 'Geji New Testament', + bestLanguageName: 'Geji (gyz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11da5b67fdbb418f', + displayName: 'azz', + fullName: 'Nahuatl, Highland Puebla NT', + bestLanguageName: 'Nahuatl, Highland Puebla (azz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ab97a067bd190b24', + displayName: 'arl', + fullName: 'Arabela NT+', + bestLanguageName: 'Arabela (arl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '07c95ee7ff0e9f43', + displayName: 'huv', + fullName: 'Huave: San Mateo NT', + bestLanguageName: 'Huave, San Mateo Del Mar (huv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a196b23b7df0cd62', + displayName: 'poi', + fullName: 'Popoluca, Highland NT', + bestLanguageName: 'Popoluca, Highland (poi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '99c2c44b656619d1', + displayName: 'qvh', + fullName: 'Quechua Huamalíes-Dos de Mayo Huánuco Bible', + bestLanguageName: 'Quechua (qvh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3224ddd379a3b8e5', + displayName: 'qxo', + fullName: 'Quechua South Conchucos Bible', + bestLanguageName: 'Quechua (qxo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ad83df0695748223', + displayName: 'quf', + fullName: 'Quechua, Lambayeque NT', + bestLanguageName: 'Quechua (quf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cf904fc22ebb8015', + displayName: 'ngu', + fullName: 'Nahuatl, Guerrero NT', + bestLanguageName: 'Guerrero Nahuatl (ngu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a2eba046a7d7e4b3', + displayName: 'sja', + fullName: 'Epena Bible', + bestLanguageName: 'Epena (sja)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b907db9191a6d4d7', + displayName: 'qvm', + fullName: 'Quechua Margos-Yarowilca-Lauricocha Bible', + bestLanguageName: 'Quechua (qvm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9cece7b9fbfe1c47', + displayName: 'nhe', + fullName: 'Nahuatl, Eastern Huasteca, Bible', + bestLanguageName: 'Nahuatl, Eastern Huasteca (nhe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dd2c66303d47974e', + displayName: 'qvs', + fullName: 'Quechua, San Martín NT+', + bestLanguageName: 'Quechua (qvs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ab3044ecbeed73a8', + displayName: 'ura', + fullName: 'Urarina NT', + bestLanguageName: 'Urarina (ura)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '90b77c4b5e328567', + displayName: 'cbv', + fullName: 'Cacua NT', + bestLanguageName: 'Cacua (cbv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '86d64fa1e9101951', + displayName: 'otq', + fullName: 'Otomi, Querétaro NT', + bestLanguageName: 'Otomi, Querétaro (otq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '999aa0a8875dc2aa', + displayName: 'zpo', + fullName: 'Zapotec, Amatlán NT', + bestLanguageName: 'Zapotec (zpo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c00e731a01d9414', + displayName: 'gur', + fullName: 'Farefare, Ninkaré NT', + bestLanguageName: 'Farefare (Ninkare) (gur)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b2c715327a7494b3', + displayName: 'CBR', + fullName: 'Kashibo-Kakataibo NT+ (Active)', + bestLanguageName: 'Cashibo-Cacataibo (cbr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '64e75ededf9406b6', + displayName: 'pab', + fullName: 'Parecis NT', + bestLanguageName: 'Parecís (pab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5dccbb8496c67080', + displayName: 'txu', + fullName: 'Kayapó NT', + bestLanguageName: 'Kayapó (txu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c2534f8e5c73accc', + displayName: 'sgb', + fullName: 'Ayta MagAntsi NT', + bestLanguageName: 'Ayta, Mag-antsi (sgb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8225781e296dd698', + displayName: 'xon', + fullName: 'Konkomba Bible', + bestLanguageName: 'Konkomba (xon)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c9c4e89e8ec0329c', + displayName: 'kne', + fullName: 'Kankanaey Bible 2017 DBL', + bestLanguageName: 'Kankanaey (kne)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '96f8b3b31d942392', + displayName: 'lef', + fullName: 'Lelemi Bible 2014', + bestLanguageName: 'Lelemi (lef)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd09ddfd09039452b', + displayName: 'ote', + fullName: 'Otomi, Mezquital NT', + bestLanguageName: 'Otomi, Mezquital (ote)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd5eda7d009a55ce8', + displayName: 'MSBZ', + fullName: 'Myanmar Standard Bible (Zawgyi)', + bestLanguageName: 'Burmese (mya-MM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f25f08caf3aa89bc', + displayName: 'OSS2022', + fullName: 'Ossetic Bible 2022', + bestLanguageName: 'Ossetic (oss)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0ae49e1d4d276551', + displayName: 'PLJ', + fullName: 'Zul', + bestLanguageName: 'Polci (plj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2fb7cabcc2144633', + displayName: 'acrT', + fullName: 'Achi Rabinal NT (traditional)', + bestLanguageName: 'Achi (acr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7881095a69332502', + displayName: 'acrN', + fullName: 'Achi Rabinal NT (new alphabet)', + bestLanguageName: 'Achi (acr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f39e0b553b5b6e1e', + displayName: 'acr', + fullName: 'Achi de Cubulco NT', + bestLanguageName: 'Achi (acr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a59996c37539b382', + displayName: 'meh', + fullName: 'Southwest Tlaxiaco Mixtec', + bestLanguageName: 'Mixtec, Southwestern Tlaxiaco (meh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '46c91176466f4348', + displayName: 'MKF', + fullName: 'Miyawa', + bestLanguageName: 'Miya (mkf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6327f5d3a443ad2b', + displayName: 'dtb', + fullName: 'Labuk Kinabatangan NT', + bestLanguageName: 'Kadazan, Labuk-Kinabatangan (dtb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '94ac71cadd884254', + displayName: 'AL', + fullName: 'Albanian Interconfessional Bible 2020', + bestLanguageName: 'Albanian (sqi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7a88c05f320d8836', + displayName: 'WJI', + fullName: 'Warji', + bestLanguageName: 'Warji (wji)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8590e7082efbe995', + displayName: 'KVY', + fullName: 'Yintale New Testament', + bestLanguageName: 'Yintale (kvy-Kali-MM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e38e1e40ff945569', + displayName: 'KRC', + fullName: 'Kawyaw RC', + bestLanguageName: 'Manumanaw (kxf-Latn-035)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '65eb1779153f56e0', + displayName: 'adz', + fullName: 'Adzera Portions', + bestLanguageName: 'Adzera (adz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1b263f1ea2f0fd75', + displayName: 'agd', + fullName: 'Agarabi NT', + bestLanguageName: 'Agarabi (agd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8bb81963e2d37ab5', + displayName: 'amp', + fullName: 'Alamblak NT', + bestLanguageName: 'Alamblak (amp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2f4a76418a46067f', + displayName: 'gah', + fullName: 'Alekano NT', + bestLanguageName: 'Alekano (gah)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bffc71500c568dd0', + displayName: 'amn', + fullName: 'Amanab NT', + bestLanguageName: 'Amanab (amn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3d47299508c1f948', + displayName: 'aey', + fullName: 'Amele NT+', + bestLanguageName: 'Amele (aey)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '736b4aeba7af8a5f', + displayName: 'aby', + fullName: 'Aneme Wake NT', + bestLanguageName: 'Aneme Wake (aby)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7904b6af135d00fb', + displayName: 'agm', + fullName: 'Angaataha NT', + bestLanguageName: 'Angaataha (agm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e4a347b40641aa20', + displayName: 'akh', + fullName: 'Angal Heneng NT', + bestLanguageName: 'Angal Heneng (akh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5f2d583141e94cd9', + displayName: 'agg', + fullName: 'Angor NT', + bestLanguageName: 'Angor (agg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8d0ed49bd3f41913', + displayName: 'boj', + fullName: 'Anjam NT 2014 Revision', + bestLanguageName: 'Anjam (boj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ae1c4d57660f3800', + displayName: 'aak', + fullName: 'Ankave NT', + bestLanguageName: 'Ankave (aak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a821a5c268ba7bcf', + displayName: 'aui', + fullName: 'Anuki Portions', + bestLanguageName: 'Anuki (aui)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0e5e9ab5304a71df', + displayName: 'apeA', + fullName: 'Arapesh, Coastal NT', + bestLanguageName: 'Arapesh, Central Coastal (ape)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ab19365adc05586c', + displayName: 'mwc', + fullName: 'Are - Luke', + bestLanguageName: 'Are (mwc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '47f9b85c980d0ab3', + displayName: 'awb', + fullName: 'Awa NT', + bestLanguageName: 'Awa (awb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd0ac324932fcbd13', + displayName: 'avt', + fullName: 'Au NT', + bestLanguageName: 'Au (avt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7496ee19eb0a3b85', + displayName: 'awx', + fullName: 'Awara Bible Portions', + bestLanguageName: 'Awara (awx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bb8215c4d1cea7d0', + displayName: 'auy', + fullName: 'Awiyaana NT', + bestLanguageName: 'Awiyaana (auy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ffa9d9a731f989dd', + displayName: 'bbb', + fullName: 'Barai NT+', + bestLanguageName: 'Barai (bbb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '70716deba20e3167', + displayName: 'mlp', + fullName: 'Bargam NT', + bestLanguageName: 'Bargam (mlp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '83cd3f071bf98f68', + displayName: 'bch', + fullName: 'Bariai NT, Genesis and Exodus', + bestLanguageName: 'Bariai (bch)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c0cc8e378b01e24c', + displayName: 'bjk', + fullName: 'Barok NT', + bestLanguageName: 'Barok (bjk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '33beadcbcdc39fed', + displayName: 'bjz', + fullName: 'Baruga NT', + bestLanguageName: 'Baruga (bjz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b0f1183cdda00733', + displayName: 'bef', + fullName: 'Benabena NT', + bestLanguageName: 'Benabena (bef)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b0ec0974b90c6f2b', + displayName: 'big', + fullName: 'Biangai NT', + bestLanguageName: 'Biangai (big)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7d88ffa79f7261a1', + displayName: 'bhl', + fullName: 'Bimin NT with OT portions', + bestLanguageName: 'Bimin (bhl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aba4ca54495e8b24', + displayName: 'bhg', + fullName: 'Bindanere Portions', + bestLanguageName: 'Binandere (bhg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9230bf7d0a3fb42b', + displayName: 'bon', + fullName: 'Bine NT', + bestLanguageName: 'Bine (bon)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ff9d66b11afd0ee1', + displayName: 'bjr', + fullName: 'Binumarien NT+', + bestLanguageName: 'Binumarien (bjr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'edd19cecbadd79aa', + displayName: 'mux', + fullName: 'Bo-Ung (Mara-Gomú) NT', + bestLanguageName: 'Bo-Ung (Mara-Gomú) (mux)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '48b8d0667e45f283', + displayName: 'bnp', + fullName: 'Bola Bible', + bestLanguageName: 'Bola (bnp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a026c72253197711', + displayName: 'ksr', + fullName: 'Borong NT with OT portions', + bestLanguageName: 'Borong (ksr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f816fc7ed6178466', + displayName: 'mmo', + fullName: 'Buang, Mangga NT', + bestLanguageName: 'Buang, Mangga (mmo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '770fd5c5ec6d2995', + displayName: 'bzh', + fullName: 'Buang (Central) Mapos NT', + bestLanguageName: 'Buang, Mapos (bzh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9adf28ef3e43803b', + displayName: 'apeB', + fullName: 'Bukiyip NT', + bestLanguageName: 'Bukiyip (ape)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8879c1a148f8a6ef', + displayName: 'aon', + fullName: 'Arapesh, Bumbita NT', + bestLanguageName: 'Bumbita Arapesh (aon)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0e63d3c99a03b526', + displayName: 'bdd', + fullName: 'Bunama NT', + bestLanguageName: 'Bunama (bdd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b0b0d8c25b0d622a', + displayName: 'tte', + fullName: 'Bwanabwana NT', + bestLanguageName: 'Bwanabwana (tte)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6ff43bd45b7d9d72', + displayName: 'cjv', + fullName: 'Chuave NT', + bestLanguageName: 'Chuave (cjv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7b9296e09aff2232', + displayName: 'mps', + fullName: 'Dadibi Bible', + bestLanguageName: 'Dadibi (mps)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1803f5d306f2f02d', + displayName: 'dgz', + fullName: 'Daga NT', + bestLanguageName: 'Daga (dgz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cc2074b71e87441f', + displayName: 'aso', + fullName: 'Dano NT', + bestLanguageName: 'Dano (aso)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3119c05ced57ad72', + displayName: 'dww', + fullName: 'Dawawa NT', + bestLanguageName: 'Dawawa (dww)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '75458ff49e9440e6', + displayName: 'dob', + fullName: 'Dobu NT', + bestLanguageName: 'Dobu (dob)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5e218a0fc5db6875', + displayName: 'kqc', + fullName: 'Doromu-Koki NT+', + bestLanguageName: 'Doromu-Koki (kqc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '610cf4f1d5aa4029', + displayName: 'mcq', + fullName: 'Ese NT', + bestLanguageName: 'Ese (mcq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a2488357b80693f4', + displayName: 'nou', + fullName: 'Ewage-Notu NT', + bestLanguageName: 'Ewage-Notu (nou)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6248d0474704fe95', + displayName: 'fai', + fullName: 'Faiwol NT', + bestLanguageName: 'Faiwol (fai)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'effed64409897793', + displayName: 'bjp', + fullName: 'Fanamaket NT', + bestLanguageName: 'Fanamaket (bjp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '879eaae2343284a6', + displayName: 'faa', + fullName: 'Fasu NT', + bestLanguageName: 'Fasu (faa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9b2f4522c94167b3', + displayName: 'aojF', + fullName: 'Filifita (Mufian) NT', + bestLanguageName: 'Filifita (Mufian) (aoj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '17a47897c20cf1f0', + displayName: 'ppo', + fullName: 'Folopa NT', + bestLanguageName: 'Folopa (ppo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2eccf1796085d174', + displayName: 'for', + fullName: 'Fore NT', + bestLanguageName: 'Fore (for)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9bb2acd5e4730363', + displayName: 'pwg', + fullName: 'Gapapaiwa NT', + bestLanguageName: 'Gapapaiwa (pwg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a06bfe23e24045d1', + displayName: 'bmk', + fullName: 'Ghayavi (Mark)', + bestLanguageName: 'Ghayavi (bmk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '069111af66fceb94', + displayName: 'bbr', + fullName: 'Girawa NT', + bestLanguageName: 'Girawa (bbr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b2a26a696e0bdac', + displayName: 'tof', + fullName: 'Gizzra NT+', + bestLanguageName: 'Gizrra (tof)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'accfd0a4b628dac6', + displayName: 'gvf', + fullName: 'Golin NT', + bestLanguageName: 'Golin (gvf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5448834d91e63843', + displayName: 'gvs', + fullName: 'Gumawana NT+', + bestLanguageName: 'Gumawana (gvs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5a893b91fef690b2', + displayName: 'dah', + fullName: 'Gwahatike NT', + bestLanguageName: 'Gwahatike (dah)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '485a1d43b74c3098', + displayName: 'BelBC17', + fullName: 'The Belarusian Bible translated by Čarniaŭski in 2000', + bestLanguageName: 'Belarusan (bel)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b4b235fae4f698e3', + displayName: 'kht', + fullName: 'Tai Khamti NT', + bestLanguageName: 'Khamti (kht)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'eb3333e780e53287', + displayName: 'tca', + fullName: 'Ticuna Bible Unicode 2018', + bestLanguageName: 'Ticuna (tca)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd1de01c6ad1804a5', + displayName: 'JGK', + fullName: 'Jarawa', + bestLanguageName: 'Gwak (jgk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7a29e1242c9ee60d', + displayName: 'YLT98', + fullName: "Young's Literal Translation 3rd Revised Edition 1898", + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '14e6c42450161852', + displayName: 'EKY', + fullName: 'Eastern Kayah Shadaw Dialect', + bestLanguageName: 'Kayah, Eastern (eky-Kali-MM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a50f305806b09fa0', + displayName: 'kyjV', + fullName: 'Karao NT', + bestLanguageName: 'Karao (kyj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '558a52839eb842fd', + displayName: 'PSB', + fullName: 'Punjabi Standard Bible', + bestLanguageName: 'Panjabi, Eastern (pan-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8086f15f0e5df126', + displayName: 'LOMWE', + fullName: 'Lomwe New Testament and Psalms 1930', + bestLanguageName: 'Lomwe (ngl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c0127d14d891cf6d', + displayName: 'KXF', + fullName: 'Kawyaw New Testament', + bestLanguageName: 'Manumanaw (kxf-Latn-035)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '42238f9358c23875', + displayName: 'EKY', + fullName: 'Eastern Kayah Thailand', + bestLanguageName: 'Kayah, Eastern (eky-Thai-TH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4fc3aee1ae6e0442', + displayName: 'TQO1983', + fullName: 'Toapiri New Testament 1983', + bestLanguageName: 'Toaripi (tqo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '99f4eab09d3aad88', + displayName: 'SUQ', + fullName: 'Suri Latin', + bestLanguageName: 'Suri (suq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c5fcb1a1e79d024d', + displayName: 'nyu', + fullName: 'Nyungwe NT Gen Ex Mozambique 2019 (DBL 2019)', + bestLanguageName: 'Nyungwe (nyu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1437e46baf5f1bea', + displayName: 'pce', + fullName: 'PCE Bible Mymr', + bestLanguageName: 'Palaung, Ruching (pce-Mymr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ef88d0e04f349974', + displayName: 'MacGAp', + fullName: 'Scots Gaelic Apocrypha 1860', + bestLanguageName: 'Scots Gaelic (gla)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5cccfa61df57262f', + displayName: 'KJV', + fullName: 'King James Version (Bible Society Paragraphed Edition 1954)', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '555fef9a6cb31151', + displayName: 'CEVUS06', + fullName: 'CEV Revised 2006 (Global CEV)', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c6c4e969b70d8ce', + displayName: 'vif', + fullName: 'Vili (Civili) NT', + bestLanguageName: 'Vili (Civili) (vif)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2a9929d178841162', + displayName: 'swb', + fullName: 'ShiMaore - swb NT', + bestLanguageName: 'Comorian, Maore (swb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '14a751466f35e649', + displayName: 'mmg', + fullName: 'Ambrym, North DBL', + bestLanguageName: 'Ambrym, North (mmg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '58cf49a4dbc25cfd', + displayName: 'num', + fullName: "Niuafo'ou New Testament", + bestLanguageName: 'Niuafo’ou (num)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4bdf27db603e8a08', + displayName: 'plu', + fullName: 'Palikúr NT+', + bestLanguageName: 'Palikúr (plu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9665b1d9489fd452', + displayName: 'jiv', + fullName: 'Shuar Bible', + bestLanguageName: 'Shuar (jiv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f06c7c97f902a9d2', + displayName: 'agu', + fullName: 'Awakateko Shorter Bible', + bestLanguageName: 'Awakateko (agu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e0b3f20ff8677585', + displayName: 'TNDPTG', + fullName: 'Quadro Explicativo para a Série Notas para Tradutores', + bestLanguageName: 'Portuguese (por)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6448f5b0238b9c6c', + displayName: 'ded', + fullName: 'Dedua Shorter Bible (Active)', + bestLanguageName: 'Dedua (ded)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'adfa3f511e02d362', + displayName: 'bwu', + fullName: 'Buli Unicode', + bestLanguageName: 'Buli (bwu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '428386d15547b5ab', + displayName: 'kya', + fullName: 'Kwaya New Testament', + bestLanguageName: 'Kwaya (kya)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '849c0d02506d4981', + displayName: 'TPJ', + fullName: 'NandevaBiblia', + bestLanguageName: 'Ñandeva (tpj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2bc6fc4a44f35f68', + displayName: 'APD1978', + fullName: 'Sudanese Arabic New Testament 1978 (Romanised)', + bestLanguageName: 'Arabic (apd-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e83f0a574b77feae', + displayName: 'MACLBSI', + fullName: 'Marathi CL New Testament (BSI)', + bestLanguageName: 'Marathi (mar)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a817496e433f3aff', + displayName: 'NMB', + fullName: 'Big Nambas Translation', + bestLanguageName: 'V’ënen Taut (nmb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9a3c18e498792f82', + displayName: 'sil', + fullName: 'SIS Sisaala Tumulung', + bestLanguageName: 'Sisaala, Tumulung (sil)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '95385175943960ac', + displayName: 'jit', + fullName: 'Jita New Testament', + bestLanguageName: 'Jita (jit)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c2336852a0352c28', + displayName: 'CTB', + fullName: 'Central Tibetan Bible', + bestLanguageName: 'Tibetan, Central (bod)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '85f217246dc740b5', + displayName: 'EPP17', + fullName: 'Elomwe Piipiliya Piipiliya', + bestLanguageName: 'Lomwe (ngl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bb4d869847d96eff', + displayName: 'rif', + fullName: 'Tarifit_AS NT', + bestLanguageName: 'Tarifit (rif-Arab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fb76c157b6950db5', + displayName: 'bwj', + fullName: 'Buamu Laa', + bestLanguageName: 'Bwamu, Láá Láá (bwj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0e023e916eb41b76', + displayName: 'TNTB', + fullName: 'Tshangla New Testament (BSI)', + bestLanguageName: 'Tshangla (tsj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23f83aa4b0789531', + displayName: 'nce', + fullName: 'Yalë Bible', + bestLanguageName: 'Yale (nce)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9341a81a820f1f11', + displayName: 'DTH', + fullName: 'Dangaura Tharu New Testatement', + bestLanguageName: 'Tharu, Dangaura (thl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ede9b8faef1011bf', + displayName: 'CKL', + fullName: 'Kibaku', + bestLanguageName: 'Cibak (ckl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6231abd2b11dd78a', + displayName: 'CBMS', + fullName: 'Cushing Bible Modern Script', + bestLanguageName: 'Shan (shn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '21e4138251ad975b', + displayName: 'mzz', + fullName: 'Maiadomu Portions', + bestLanguageName: 'Maiadomu (mzz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2a504cf5ece91b86', + displayName: 'cwt', + fullName: 'Kwatay NT (Unicode)', + bestLanguageName: 'Kuwaataay (cwt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8ac595c3772ddfa5', + displayName: 'RUN1967', + fullName: 'Bibliya Yera 1951, 1967 (Burundi)', + bestLanguageName: 'Rundi (run)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e747405f86f9abef', + displayName: 'BAK2023', + fullName: 'Bashkir Bible 2023', + bestLanguageName: 'Bashkort (bak)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '233345361843ce8b', + displayName: 'TNNPTG', + fullName: 'Notas para a Série Notas para Tradutores', + bestLanguageName: 'Portuguese (por)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f8edd71c9082f3b7', + displayName: 'ril', + fullName: 'Riang Lang', + bestLanguageName: 'Riang (ril)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '510a6e97ed65efe0', + displayName: 'bcy', + fullName: 'Bwaatiye New Testament DBL', + bestLanguageName: 'Bacama (bcy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4c54a03b4f39ffd3', + displayName: 'NTCHOL-E', + fullName: 'Biblia de estudio en Chol', + bestLanguageName: 'Chol (ctu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4661f47820a8273b', + displayName: 'mvp', + fullName: 'Duri Alkitab', + bestLanguageName: 'Duri (mvp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6a7a3c0579210602', + displayName: 'LLA', + fullName: 'Lala', + bestLanguageName: 'Lala-Roba (lla)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3549ea865297f7e2', + displayName: 'ukk', + fullName: 'Muak Sa-aak', + bestLanguageName: 'Muak Sa-aak (ukk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b8188446256aeae8', + displayName: 'KabBBL', + fullName: 'Kabardian Holy Scriptures', + bestLanguageName: 'Kabardian (kbd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9754574447204f8a', + displayName: 'DHH94EE', + fullName: 'Dios Habla Hoy DC de Estudio', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '598c077eaacec522', + displayName: 'txa', + fullName: 'Tombonuo', + bestLanguageName: 'Tombonuo (txa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '59bd71ef05fb7b88', + displayName: 'enq', + fullName: 'Enga New Testament (2023 Edition)', + bestLanguageName: 'Enga (enq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fd189716f086a93d', + displayName: 'nie', + fullName: 'Niellm NT', + bestLanguageName: 'Niellim (nie)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '22b195d0901a4cff', + displayName: 'DIERI', + fullName: 'Dieri New Testament 1897 (Australia)', + bestLanguageName: 'Dieri (dif)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a89bc32808e7fef4', + displayName: 'KmrNTC', + fullName: 'The New Testament in Kurmanji Kurdish of the South Caucasus (Cyrillic)', + bestLanguageName: 'Kurdish (kmr-Cyrl-AM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '04016bd03d20cf6c', + displayName: 'KmrNTL', + fullName: 'The New Testament in Kurmanji Kurdish of the South Caucasus (Latin)', + bestLanguageName: 'Kurdish (kmr-Latn-AM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1a861a864d81da5d', + displayName: 'JOB', + fullName: 'Jɔ Biibili ki', + bestLanguageName: 'Jowulu (jow)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e08f2a8d35452352', + displayName: 'mfh', + fullName: 'Matal NT (Cameroon)', + bestLanguageName: 'Matal (mfh-Latn-CM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '18c44ab55e60fbfc', + displayName: 'abt', + fullName: 'Ambulas (Wosara-Kamu) NT', + bestLanguageName: 'Ambulas (abt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9e728649b6203701', + displayName: 'amm', + fullName: 'Ama NT', + bestLanguageName: 'Ama (amm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f6241b135a5f3d47', + displayName: 'PMY', + fullName: 'Melayu Papua', + bestLanguageName: 'Malay, Papuan (pmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e839bc83a5a6f212', + displayName: 'kklKOS', + fullName: 'Kosarek [kkl]', + bestLanguageName: 'Yale, Kosarek (kkl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ae07cc8c02ff8102', + displayName: 'XalBBL', + fullName: 'Kalmyk Holy Scriptures', + bestLanguageName: 'Kalmyk-Oirat (xal-Cyrl-RU)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bc83af3654e1bf32', + displayName: 'kfp', + fullName: 'Korwa Bible', + bestLanguageName: 'Korwa (kfp-Deva-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '80927d4d63c18209', + displayName: 'nxl', + fullName: 'Nuaulu Translation Project', + bestLanguageName: 'Nuaulu, South (nxl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3cb45d79b0d9a2b3', + displayName: 'mnb', + fullName: 'Muna Southern Dialect', + bestLanguageName: 'Muna (mnb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5e0d654dc064f020', + displayName: 'udi', + fullName: 'UdiDBL', + bestLanguageName: 'Udi (udi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c73329e85f47a957', + displayName: 'RVR95', + fullName: 'Reina Valera 1995 Edición Estándar', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fccfe0410d1d9f24', + displayName: 'ENQsau73', + fullName: 'Enga Sau Ruth and Jonah 1973', + bestLanguageName: 'Enga (enq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8b5e14e94663b743', + displayName: 'MHO', + fullName: 'Kwamashi', + bestLanguageName: 'Mashi (mho)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '333a4a06309f5935', + displayName: 'kus', + fullName: 'Kusaal Bible', + bestLanguageName: 'Kusaal (kus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c22e838e3a3301e7', + displayName: 'NTB', + fullName: 'New Tibetan Bible', + bestLanguageName: 'Tibetan, Central (bod-Tibt-CN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8eb38973d944f48a', + displayName: 'mam', + fullName: 'MAM - Central New Testament from Comitancillo Guatemala Unicode', + bestLanguageName: 'Mam (mam)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '925bffd8dc536fee', + displayName: 'mamTS', + fullName: 'Mam of Todos Santos -- Guatemala Unicode', + bestLanguageName: 'Mam (mam-x-mvj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1314ef7d15d948c9', + displayName: 'aeu', + fullName: 'Akeu Bible', + bestLanguageName: 'Akeu (aeu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8a1b416ea1a27cde', + displayName: 'MGSPSA', + fullName: 'Psalms of David in chiManda 1913 (Tanzania)', + bestLanguageName: 'Manda (mgs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '94cb2f456dfb8253', + displayName: 'LU17', + fullName: 'Lutherbibel 2017', + bestLanguageName: 'German, Standard (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7fd7df19c551cc1a', + displayName: 'MGS1937', + fullName: 'chiManda New Testament 1937 (Tanzania)', + bestLanguageName: 'Manda (mgs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '64138c65b3e295c2', + displayName: 'THU', + fullName: 'Gospel of Matthew 1864 (Frainc-Comtois)', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cd03987831a683fa', + displayName: 'KIB1967', + fullName: 'Nuba, Koalib Ngirere New Testament 1967 (Sudan)', + bestLanguageName: 'Koalib (kib-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '650414c48c024c45', + displayName: 'apr', + fullName: 'Lokep New Testament', + bestLanguageName: 'Arop-Lokep (apr-x-lokep)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '54904a5c8f0ca932', + displayName: 'MacQul', + fullName: 'West Oromo Bible', + bestLanguageName: 'Oromo (gaz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '23823a4debef0ce3', + displayName: 'BGPRMAT', + fullName: 'Eastern Balochi/ Baluchi Matthew 1884 (Roman)', + bestLanguageName: 'Baluchi (bgp-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c0282ac5a36ecc73', + displayName: 'gabM', + fullName: 'Gabri Maja NT', + bestLanguageName: 'Gabri (gab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd1602ab97fa017c8', + displayName: 'QulMax', + fullName: 'Sidama Bible', + bestLanguageName: 'Sidamo (sid)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9e7c5463f4ddef92', + displayName: 'TMF', + fullName: 'Nuevo Testamento Toba Maskoy', + bestLanguageName: 'Toba-Maskoy (tmf)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0574f6c96804cf47', + displayName: 'HWO', + fullName: 'Hona Bible', + bestLanguageName: 'Hwana (hwo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f2cecf7ef8bd4bb2', + displayName: 'NTC23', + fullName: 'NOVO TESTAMENTO CINDAU', + bestLanguageName: 'Ndau (ndc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0b4763d877ed1fcb', + displayName: 'ALGNT', + fullName: 'Algonquin NT and some OT', + bestLanguageName: 'Algonquin (alq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '07d786a7188d17cb', + displayName: 'EAIBR', + fullName: 'Eastern Arctic Inuktitut Bible (Romanized)', + bestLanguageName: 'Inuktitut (ike-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '22369d764b3d60a2', + displayName: 'MIQNT', + fullName: "Migma'q New Testament", + bestLanguageName: "Mi'kmaq (mic-Latn)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '76ad99a898227d47', + displayName: 'CPC', + fullName: 'Contemporary Plains Cree', + bestLanguageName: 'Cree (crk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6ae672a3f8190977', + displayName: 'OJBRS', + fullName: 'Ojibwe Short OT and NT - Roman Script', + bestLanguageName: 'Ojibwa (ojb-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '048fb2b0de86181f', + displayName: 'OJBSS', + fullName: 'Ojibwe Short OT and NT - Syllabic Script', + bestLanguageName: 'Ojibwa (ojb-Cans)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b1304260f83cec4d', + displayName: 'APH', + fullName: 'Athpariya', + bestLanguageName: 'Athpariya (aph)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6e2f8dfdfc24dda0', + displayName: 'LBR', + fullName: 'Lohorung', + bestLanguageName: 'Lohorung (lbr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b8822bbf13c57ea0', + displayName: 'VKF', + fullName: 'Haitian Creole: Nouvo Testaman: Vèsyon Kreyòl Fasil', + bestLanguageName: 'Haitian (hat)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'df4d9fbd3ac6d932', + displayName: 'SMP', + fullName: 'Scripture Maps Project', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '88ebca51fce07733', + displayName: 'mgm', + fullName: 'Mambae', + bestLanguageName: 'Mambae (mgm-Latn-035)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '20314a36ccde603b', + displayName: 'TPN2023', + fullName: 'Taiwan Pinuyumayan NT 2023', + bestLanguageName: 'Puyuma (pyu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4783d7273307d267', + displayName: 'MLU1949', + fullName: "New Testament plus Genesis, Nehemiah and Psalms in To'abiata 1923, 1949, 1951", + bestLanguageName: 'To’abaita (mlu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4731d38c77fc85c0', + displayName: 'NFC', + fullName: 'La Nouvelle Français courant 2018', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '98ab666655da6ae4', + displayName: 'FCR19DBL', + fullName: 'La Nouvelle Français courant 2019', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'be6fa743660dfaed', + displayName: 'mrn', + fullName: 'Cheke Holo Bible', + bestLanguageName: 'Cheke Holo (mrn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '287494a763b0a730', + displayName: 'SMPes', + fullName: 'Proyecto de Mapas Bíblicos, Español', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e3afb0c5797b4a33', + displayName: 'DHH94', + fullName: 'Spanish: Dios Habla Hoy DC Edición Estándar', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dc8d40c83b9c78e4', + displayName: 'TabBBL', + fullName: 'Tabassaran Holy Scriptures', + bestLanguageName: 'Tabassaran (tab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '78a9f6124f344018', + displayName: 'NIV11R', + fullName: 'New International Version 2011 (Revised format)', + bestLanguageName: 'English (eng-US)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c53422557d592ffe', + displayName: 'LOY', + fullName: 'Tibetan lowa', + bestLanguageName: 'Loke (loy-Tibt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ec171ce5bc28b5b0', + displayName: 'ifb', + fullName: 'Ayangan Ifugao Bible', + bestLanguageName: 'Ifugao, Batad (ifb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2b759e1caf81a2e3', + displayName: 'TSN1890', + fullName: 'Sechuana Tlhaping Moffatt Bible 1890', + bestLanguageName: 'Tswana (tsn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '218a7789e72a7d00', + displayName: 'MSBU', + fullName: 'Myanmar Standard Bible (Unicode)', + bestLanguageName: 'Burmese (mya)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dd91031b2aa50ddc', + displayName: 'STV', + fullName: 'Statenvertaling (Importantia-editie)', + bestLanguageName: 'Dutch (nld)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f757952235ab9471', + displayName: 'BRAJ', + fullName: 'Braj Bhasha', + bestLanguageName: 'Braj Bhasha (bra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '624ab6be442c0806', + displayName: 'CHTW', + fullName: 'Choctaw Mark and Genesis Portions 2005', + bestLanguageName: 'Choctaw (cho)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1f285721f5a1359e', + displayName: 'OssNT04', + fullName: 'Ossetic New Testament 2004', + bestLanguageName: 'Ossetic (oss)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '359f5e52a19cbadd', + displayName: 'NUK', + fullName: 'Nootka Selections 1899', + bestLanguageName: 'Nuu-chah-nulth (nuk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c7957841d4259395', + displayName: 'sbe', + fullName: 'Saliba New Testament', + bestLanguageName: 'Saliba (sbe-Latn-PG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7bf096501194a78f', + displayName: 'mrr', + fullName: 'Hill Madia', + bestLanguageName: 'Maria (mrr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6697dc483e5d53ce', + displayName: 'IAR1920', + fullName: 'Purari New Testament 1920', + bestLanguageName: 'Purari (iar)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '74252a9f1f1c734c', + displayName: 'jra', + fullName: 'Jorai Bible', + bestLanguageName: 'Jarai (jra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e211e79400c52bb3', + displayName: 'BUI1947', + fullName: 'Bongili New Testament (Nouveau Testament Bongili) 1947', + bestLanguageName: 'Bongili (bui)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '857a0682a982b1a4', + displayName: 'GlossSP', + fullName: 'Gloss Spanish', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8b3600ad1e6aeb10', + displayName: 'MATGEG1870', + fullName: 'Albanian Gheg Gospel of Matthew 1870', + bestLanguageName: 'Albanian (aln)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7632ab86aeff617d', + displayName: 'MP1696', + fullName: + 'English Metrical Psalms and Scripture Selections by Brady and Tate 1696 (New Version)', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6ddad89eae40b779', + displayName: 'MP1653', + fullName: 'Selection of English Metrical Psalms by John Milton 1653', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f4bc8c1db66ae129', + displayName: 'FOV', + fullName: 'Fijian Old Version', + bestLanguageName: 'Fijian (fij)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e074ac92fef8df77', + displayName: 'akl', + fullName: 'Inakeanon (formerly Aklanon) Unicode version', + bestLanguageName: 'Inakeanon (akl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd05f7dec54bd6112', + displayName: 'TTVH', + fullName: "TODAY'S TAIWANESE VERSION ROMANIZED-HAN EDITION", + bestLanguageName: 'Chinese (nan-Hant-TW-fonipa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8a28e98991d62120', + displayName: 'TTVR', + fullName: "TODAY'S TAIWANESE VERSION ROMANIZED-HAN EDITION", + bestLanguageName: 'Chinese (nan-Latn-TW)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e45c7eab3997c42b', + displayName: 'ozm', + fullName: 'Badwee Bible Allege', + bestLanguageName: 'Koonzime (ozm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'de08848bef5aa286', + displayName: 'GNBDC', + fullName: 'Good News Bible (British Version) 2017', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1ff6ada8c35abf5a', + displayName: 'SMY1859', + fullName: 'Frankochiotika John 1854, and Luke and Acts 1859 (Smyrna Greek)', + bestLanguageName: 'Greek (ell-Latn-TR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '96ce7ba424637835', + displayName: 'JRA2016', + fullName: 'The Jarai Bible 2016', + bestLanguageName: 'Jarai (jra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '60215f678ceb5044', + displayName: 'BandiNT', + fullName: 'Bandi Whole Bible', + bestLanguageName: 'Bandi (bza)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f0b18e9309bea05b', + displayName: 'LEN1902', + fullName: 'Lenakel (Natuvar) New Testament 1902', + bestLanguageName: 'Lenakel (tnl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1cd46e4778221f39', + displayName: 'ATY1863', + fullName: 'Aneityum Gospels 1863', + bestLanguageName: 'Aneityum (aty)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '883f0eaf2fd76dce', + displayName: 'ERGOT', + fullName: 'Erromanga OT Portions (Genesis and Ruth)', + bestLanguageName: 'Sie (erg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7a82194188f38c0b', + displayName: 'AINU', + fullName: 'Ainu New Testament, with Psalms and Jonah 1897', + bestLanguageName: 'Ainu (ain-Latn-JP)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd44223882e111bf1', + displayName: 'APD1927', + fullName: 'Sudanese Arabic Gospel of Mark 1927 (Romanised)', + bestLanguageName: 'Arabic (apd-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ffffb04c2faa49da', + displayName: 'AROM', + fullName: 'Aromanian Gospel of Matthew 1889', + bestLanguageName: 'Aromanian (rup)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '93a9ee2132bef109', + displayName: 'AST1861', + fullName: 'Asturian Gospel of Matthew Portion 1861', + bestLanguageName: 'Asturian (ast)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4eb508a0287c6d19', + displayName: 'CALO1872', + fullName: 'Criscote e Majaró Lucas (Caló Gospel of Luke) 1872', + bestLanguageName: 'Caló (rmq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5cf4e6878c58a45a', + displayName: 'CALO1837', + fullName: 'Embéo e Majaró Lucas (Caló Gospel of Luke) 1837', + bestLanguageName: 'Caló (rmq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5c82a5b4ccb94e76', + displayName: 'DIET', + fullName: 'Dinka Bor Pointed Psalms 1956', + bestLanguageName: 'Dinka (dks)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '64dbc04ffd6bf556', + displayName: 'KED1946', + fullName: 'Kerewe (Kerebe) New Testament 1946', + bestLanguageName: 'Kerewe (ked)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a7fd64cd9f5aff8', + displayName: 'Fij1864', + fullName: 'Fiji Bible 1864', + bestLanguageName: 'Fijian (fij)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ecd7a4ee031bea63', + displayName: 'FUR1860', + fullName: 'Gospel of Matthew in Friulian 1860', + bestLanguageName: 'Friulian (fur)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '89be61b981a27ef8', + displayName: 'KBN1947', + fullName: 'Karré New Testament 1947 (Le Nouveau Testament en Karré )', + bestLanguageName: 'Kare (kbn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e68f56ccc5f0b3ec', + displayName: 'KOQ', + fullName: 'iKota Gospel of Mark 1938 (Gabon)', + bestLanguageName: 'Kota (Gabon) (koq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '43f95ef4839ff760', + displayName: 'LOG', + fullName: 'Logo Gospels of Mark and Matthew 1924, 1927 (Mozley)', + bestLanguageName: 'Logo (log)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8c238ac5d81f8860', + displayName: 'MLG1835', + fullName: 'Malagasy Bible 1835 (First)', + bestLanguageName: 'Malagasy (plt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c988c44147992c9f', + displayName: 'KUVI', + fullName: 'Kuvi Kond Gospel of Luke 1916 (Roman script)', + bestLanguageName: 'Kuvi (kxv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9872e657b5b2d482', + displayName: 'KXW1941', + fullName: 'Gospels and Epistles in Kiwai: Goaribari (Kerewo) 1941 [PNG]', + bestLanguageName: 'Kerewo (kxz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '68a973f6df78831d', + displayName: 'MFZ1947', + fullName: 'The Gospel According to S. Mark (Maban Language) 1947', + bestLanguageName: 'Mabaan (mfz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4312d7ee99fdec46', + displayName: 'KEAS', + fullName: 'Keasberry High Malay New Testament 1866', + bestLanguageName: 'Malay (macrolanguage) (zlm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7474543eb1a165a9', + displayName: 'ABSNT', + fullName: 'New Testament in Ambonese Malay 1877', + bestLanguageName: 'Malay, Ambonese (abs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd4ee8bd515e066de', + displayName: 'SINT1875', + fullName: 'Romani Sinte Song of Solomon 1875', + bestLanguageName: 'Romany (rmo)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7760c91b161fa1f6', + displayName: 'PROV1903', + fullName: 'Provençal Gospels 1903 (with Imprimatur)', + bestLanguageName: 'Occitan (oci)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6b23482231b0fe0a', + displayName: 'EA1969', + fullName: 'New Testament in Latuka (Otuho) 1969', + bestLanguageName: 'Otuho (lot)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1352539caaee44b7', + displayName: 'OTR1966', + fullName: 'Nuba, Otoro New Testament 1966 (Sudan)', + bestLanguageName: 'Otoro (otr-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e46389dc2d4f8724', + displayName: 'Akkala', + fullName: 'Akkala Sami Matthew 23-28, 1897', + bestLanguageName: 'Saami, Akkala (sia)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c471c5b8bc3a66d5', + displayName: 'Kildin', + fullName: 'Kildin Sami Matthew chapters 1-22, 1878 in Cyrillic', + bestLanguageName: 'Saami, Kildin (sjd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '88813b80d6718b16', + displayName: 'PASVIK', + fullName: 'Sami Skolt Pasvik Gospel of Matthew 1894 (Cyrillic)', + bestLanguageName: 'Saami, Skolt (sms-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5bddc63a154d5035', + displayName: 'BUN1839', + fullName: 'Sherbro Parables in Matthew and Luke 1839', + bestLanguageName: 'Sherbro (bun)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4a77237190fe8441', + displayName: 'SCN', + fullName: 'Sicilian Scripture Portions 1861', + bestLanguageName: 'Sicilian (scn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '682d15619e824a87', + displayName: 'CIEC1916', + fullName: "St. Mark's Gospel in Jieng (Dinka Ciëc Dialect) 1916", + bestLanguageName: 'Dinka (dib)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b8f852eacdff1768', + displayName: 'CIEC1905', + fullName: 'The Gospel According to St Luke (Dinka Ciëc dialect) 1905', + bestLanguageName: 'Dinka (dib)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1279c83bcdc94118', + displayName: 'SUS1816', + fullName: 'St Matthew in the Susu language 1816', + bestLanguageName: 'Susu (sus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8309b74046a5f8cc', + displayName: 'TANGALE', + fullName: 'Tangale Bible Portions 1920-29', + bestLanguageName: 'Tangale (tan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ca57b08dcff8fc95', + displayName: 'TNG1978', + fullName: 'Tobanga New Testament 1978 (Le Nouveau Testament traduit en langue Tobanga)', + bestLanguageName: 'Tobanga (tng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e0254cfee1710ad9', + displayName: 'TLM1909', + fullName: 'Tolomako Portions 1909 (Santo, Vanuatu)', + bestLanguageName: 'Tolomako (tlm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2da17ed86616f630', + displayName: 'GWV', + fullName: 'Gambian Wolof Gospels (Matthew and John) and Selections 1907', + bestLanguageName: 'Wolof, Gambian (wof)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8fa00d97cfb2aa7f', + displayName: 'ATB1951', + fullName: 'Zaiwa Atsi Gospel of Mark 1951 (Roman script)', + bestLanguageName: 'Zaiwa (atb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8dc0c9794823ec23', + displayName: 'ATB1938', + fullName: 'Zaiwa Atsi Gospel of Mark 1938 (Fraser script)', + bestLanguageName: 'Zaiwa (atb-Lisu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '93800801b88f4fe5', + displayName: 'Kald71', + fullName: 'Kalderash Gospel of Mark 1971', + bestLanguageName: 'Romany (rmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3e08146aeb79d7ea', + displayName: 'URDR55', + fullName: + 'Kitáb i Muqaddas 1955 (Tauret, Zabúr, Ambiyá ke Sahífa, aur Injíl) Holy Book in Romanised Urdu', + bestLanguageName: 'Urdu (urd-Latn-PK)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '93ddd119f2d9ad29', + displayName: 'LU1912', + fullName: 'Lutherbibel 1912', + bestLanguageName: 'German, Standard (deu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '37e4e88535e79c41', + displayName: 'MOR1936', + fullName: 'Acts of the Apostles in Moravian Romani 1936', + bestLanguageName: 'Romany (rmc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0fcdb3e9c0360578', + displayName: 'KMRLUK', + fullName: 'Kurmanji Kurdish Gospel of Luke 1953', + bestLanguageName: 'Kurdish (kmr-Latn-TR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fa052d4be2f94ac4', + displayName: 'KURPRO', + fullName: 'Kurmanji Kurdish Proverbs 1947 (Roman script)', + bestLanguageName: 'Kurdish (kmr-Latn-TR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b43680b768a09582', + displayName: 'BUYBCP', + fullName: 'Bullom So Prayer Book Selections 1816', + bestLanguageName: 'Bullom So (buy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5f6adf67ae80e262', + displayName: 'PS1873', + fullName: 'Breton Psalms 1873 (Williams)', + bestLanguageName: 'Breton (bre)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '365df148f7d55c34', + displayName: 'BRE1897', + fullName: 'Breton New Testament 1897 (Jenkins)', + bestLanguageName: 'Breton (bre)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1139e1162c7f2507', + displayName: 'BREGEN', + fullName: 'Breton Genesis 1897 (Jenkins)', + bestLanguageName: 'Breton (bre)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9abd2f015a4f022d', + displayName: 'BEN1921R', + fullName: 'Gospel of Luke 1921 (Bengali in Simplified Phonetic script)', + bestLanguageName: 'Bengali (ben-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1f28d12e76794d43', + displayName: 'BEN1882R', + fullName: 'Gospel of Mark 1882 (Romanised Bengali)', + bestLanguageName: 'Bengali (ben-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'de05a30287f6d70c', + displayName: 'CAN', + fullName: 'Romanised Cantonese Colloquial Bible 1915', + bestLanguageName: 'Chinese (yue-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1368c5774fbd64c0', + displayName: 'NAA', + fullName: 'Nova Almeida Atualizada 2017', + bestLanguageName: 'Portuguese (por-BR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bf20ae9c3b6e01a6', + displayName: 'sylB', + fullName: 'Sylheti Bible (Bangla script)', + bestLanguageName: 'Sylheti (syl-Beng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '66009f8c774182d0', + displayName: 'sylL', + fullName: 'Sylheti Bible (Latin script)', + bestLanguageName: 'Sylheti (syl-Latn-034)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c95a198da16f1681', + displayName: 'sylN', + fullName: 'Sylheti Bible (Nagri script)', + bestLanguageName: 'Sylheti (syl-Sylo-034)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '07511e5be827dd06', + displayName: 'HYLM', + fullName: 'Hyolmo', + bestLanguageName: 'Helambu Sherpa (scp-x-fonipaxe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd0863d1ac22b8b84', + displayName: 'LIFLIM', + fullName: 'Limbu Bible - Limbu Script (Encoded)', + bestLanguageName: 'Limbu (lif)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '491affc83df030b2', + displayName: 'LIFDEV', + fullName: 'Limbu Bible - Devanagari', + bestLanguageName: 'Limbu (lif)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd2c46189ce9b8115', + displayName: 'EMGP', + fullName: 'Eastern Magar', + bestLanguageName: 'Magar, Eastern (mgp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a2abb37117507fe9', + displayName: 'ghs', + fullName: 'Guhu-Samane NT', + bestLanguageName: 'Guhu-Samane (ghs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '13ec4cee4ce5f654', + displayName: 'LHM', + fullName: 'Lhomi NT', + bestLanguageName: 'Lhomi (lhm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b9a1d7a938c0960c', + displayName: 'bco', + fullName: 'Kaluli Bible', + bestLanguageName: 'Kaluli (bco)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1019593060989562', + displayName: 'btg', + fullName: 'Nouveau Testament bété de Gagnoa', + bestLanguageName: 'Bété, Gagnoa (btg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1a34949bd9b68586', + displayName: 'tpu', + fullName: 'Tampuan Bible', + bestLanguageName: 'Tampuan (tpu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ce8fd5ffa2fbacd0', + displayName: 'VFL', + fullName: 'Bíblia Sagrada: Versão Fácil de Ler', + bestLanguageName: 'Portuguese (por)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '42376f5311f0a24b', + displayName: 'yva', + fullName: 'Yawa NT+', + bestLanguageName: 'Yawa (yva)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6e65462278162711', + displayName: 'tsa', + fullName: 'Tsaangi Portions', + bestLanguageName: 'Tsaangi (tsa-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '20c2c74a2d66206e', + displayName: 'uro', + fullName: 'Ura NT', + bestLanguageName: 'Ura (uro)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '18b4f49dfd64393c', + displayName: 'ojv', + fullName: 'Luaniua New Testament', + bestLanguageName: 'Ontong Java (ojv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2647669d5b9c3f63', + displayName: 'UzbL', + fullName: 'Uzbek Bible (Latin)', + bestLanguageName: 'Uzbek (uzn-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9712485bf806c636', + displayName: 'UzbC', + fullName: 'Uzbek Bible (Cyrillic)', + bestLanguageName: 'Uzbek (uzn-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4c2024fa512556be', + displayName: 'CDM93', + fullName: 'Chepang New Testament 1993', + bestLanguageName: 'Chepang (cdm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '88a8f8f7388c08f5', + displayName: 'DHIM', + fullName: 'Dhimal NT Portions', + bestLanguageName: 'Dhimal (dhi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ccb783d22bdddd8c', + displayName: 'JUL', + fullName: 'Jirel Bible', + bestLanguageName: 'Jirel (jul)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '74ea3f410729934b', + displayName: 'knvA', + fullName: 'Tabo - Aramia River Dialect', + bestLanguageName: 'Tabo (knv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cd88ca9cb083c101', + displayName: 'knvF', + fullName: 'Tabo - North Fly River Dialect', + bestLanguageName: 'Tabo (knv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '63f03e13fb9485ae', + displayName: 'odk', + fullName: 'Odki', + bestLanguageName: 'Od (odk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e51dac0f8c836e8b', + displayName: 'MVE', + fullName: 'Marwari Northern', + bestLanguageName: 'Marwari (mve-Aran-PK)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'af1dee2bfe891e4c', + displayName: 'tsg', + fullName: 'Tausug NT', + bestLanguageName: 'Tausug (tsg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a719eeee82838e7', + displayName: 'hix', + fullName: 'Hixkaryana NT', + bestLanguageName: 'Hixkaryána (hix)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cbf3135b65599956', + displayName: 'kpj', + fullName: 'Karajá NT', + bestLanguageName: 'Karajá (kpj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c329f9f1debe32db', + displayName: 'Sacy', + fullName: 'French Gospel of Matthew 1855 (de Sacy)', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6f26e199139ea7f1', + displayName: 'BDS', + fullName: 'La Bible du Semeur 2015', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f88d774f0d375187', + displayName: 'etr', + fullName: 'Edolo Portions', + bestLanguageName: 'Edolo (etr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aafbee21239506f3', + displayName: 'brb', + fullName: 'Brao Bible', + bestLanguageName: 'Lave (brb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fc503cc0eb6f55dc', + displayName: 'eip', + fullName: 'EIPA full Bible', + bestLanguageName: 'Eipomek (eip)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6f11b47e2c044902', + displayName: 'AZB09', + fullName: 'Azeri: Northern Azeri Bible 2009', + bestLanguageName: 'Azerbaijani (azj-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '40b5bfa6aa78df86', + displayName: 'SGNEG79', + fullName: 'Segond NEG 1979', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '40B5BFA6AA78DF86108638F3B01159D990605064ABCDEFFF', + }, + { + dblEntryUid: '72328339bbcfce1c', + displayName: 'RMZ', + fullName: 'Marma', + bestLanguageName: 'Marma (rmz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '12edeb9b05d45009', + displayName: 'azg', + fullName: 'Amuzgo, San Pedro NT', + bestLanguageName: 'Amuzgo, San Pedro Amuzgos (azg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '948f377640ca112b', + displayName: 'abp', + fullName: 'Ayta Abellen New Testament', + bestLanguageName: 'Ayta, Abellen (abp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a82eb8d64f352bdd', + displayName: 'SOMA', + fullName: 'The New Testament in PurigSkad (Western Tibetan dialect of Kargil)', + bestLanguageName: 'Purik (prx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fd1da25634593297', + displayName: 'NRT23', + fullName: 'New Russian Translation (Новый русский перевод ) 2023', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3cb2cb6f162c8bb1', + displayName: 'EAB', + fullName: 'Elizen Arteko Biblia (Biblia en Euskara, Traducción Interconfesional)', + bestLanguageName: 'Basque (eus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a5dd95cc466af57d', + displayName: 'nal', + fullName: 'Nalik NT', + bestLanguageName: 'Nalik (nal)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '599734d8e26fa09c', + displayName: 'TINT20', + fullName: 'The Interpreted New Testament: An Expanded Paraphrase with In-line Commentary', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '15a813fef7fefb05', + displayName: 'KTLT', + fullName: 'Katu Bible Literal Text', + bestLanguageName: 'Katu, Western (kuf-Latn-VN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '38fa4be736b9bab9', + displayName: 'HSB', + fullName: 'Hindi Standard Bible', + bestLanguageName: 'Hindi (hin-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '08ebdac929584a89', + displayName: 'EspGr', + fullName: 'Spanish Greek', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e091f7f09d9c6270', + displayName: 'PQM2014', + fullName: 'Maliseet Gospel of John 2014 (Canada)', + bestLanguageName: 'Malecite-Passamaquoddy (pqm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '399c871d6e79c87e', + displayName: 'bccL', + fullName: 'Balochi Southern (Latin) for DBL NT+', + bestLanguageName: 'Baluchi (bcc-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '179793e1ff88cc5c', + displayName: 'Bba', + fullName: 'Bosnian bible', + bestLanguageName: 'Bosnian (bos)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8cfdaa1eb7cfea4e', + displayName: 'bcc', + fullName: 'Balochi Southern (Arabic) for DBL NT+', + bestLanguageName: 'Baluchi (bcc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3f7b9d6b384b9547', + displayName: 'ALU', + fullName: 'Areare Portions', + bestLanguageName: '’Are’are (alu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c9d823f8288af9d9', + displayName: 'YktBBL', + fullName: 'Yakut Holy Scriptures', + bestLanguageName: 'Yakut (sah)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a0e482ae98477260', + displayName: 'AMIS2019', + fullName: "Revised 'Amis New Testament, Psalms & Proverbs 2019", + bestLanguageName: 'Amis (ami-Latn-TW-fonipa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '066ea60ce31db47f', + displayName: 'BUNUN24', + fullName: 'Bunun Bible 2024: Old & New Testaments', + bestLanguageName: 'Bunun (bnn-Latn-TW)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c5ec28c7bee5510c', + displayName: 'TAYAL23', + fullName: 'Tayal Bible 2023: Old & New Testaments', + bestLanguageName: 'Atayal (tay-Latn-TW)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a853d91d30392d03', + displayName: 'SDLT', + fullName: 'Sedang Bible Literal Text', + bestLanguageName: 'Sedang (sed)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7ea12b747360e171', + displayName: 'Maolin23', + fullName: 'Maolin Ngudradrekai (茂林魯凱語)', + bestLanguageName: 'Rukai (dru-Latn-TW-x-maolin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '14c59e570353643f', + displayName: 'Tona23', + fullName: 'Tona Ngudradrekai (多納魯凱語)', + bestLanguageName: 'Rukai (dru-Latn-TW-x-tona)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '22fb679801ad075b', + displayName: 'Wansan23', + fullName: 'Wanshan Ngudradrekai (萬山魯凱語)', + bestLanguageName: 'Rukai (dru-Latn-TW-x-wanshan)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '37a1dc7a54269bd3', + displayName: 'CLT', + fullName: 'Cua Bible Literal Text', + bestLanguageName: 'Cua (cua)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '720ec4d225a8c360', + displayName: 'MGLT', + fullName: 'Muong (TH) Bible Literal Text', + bestLanguageName: 'Muong (mtq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '72b5c125a759a2b1', + displayName: 'MLT', + fullName: 'Mnong Rlam Bible Literal Text', + bestLanguageName: 'Mnong, Eastern (mng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f28b01ce6eb50aff', + displayName: 'TRLT', + fullName: "T'rin Bible Literal Text", + bestLanguageName: 'Koho (kpm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a81b73293d3080c9', + displayName: 'AMP', + fullName: 'Amplified Bible', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a761ca71e0b3ddcf', + displayName: 'NASB', + fullName: 'New American Standard Bible 2020', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd703d3283f8af40e', + displayName: 'RLT', + fullName: 'Roglai Bible Literal Text', + bestLanguageName: 'Roglai, Southern (rgs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0303570f15afd95e', + displayName: 'CRLT', + fullName: 'Chrau Bible Literal Text', + bestLanguageName: 'Chrau (crw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cc777df3a89a979a', + displayName: 'agt', + fullName: 'Agta, Central Cagayan NT', + bestLanguageName: 'Agta, Central Cagayan (agt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ed55f5e91a28b166', + displayName: 'dnn', + fullName: 'Dzùùngoo NT', + bestLanguageName: 'Dzùùngoo (dnn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4b64f7d0cdec0e42', + displayName: 'RSV', + fullName: 'English: Revised Standard Version 1952', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1f1b2d3fc8478ad9', + displayName: 'ary', + fullName: 'Northern Mor N T', + bestLanguageName: 'Arabic (ary-MA-x-northern)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6df1e12ada7e2beb', + displayName: 'crx', + fullName: 'Carrier, Central NT and Gen', + bestLanguageName: 'Carrier (crx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c8757d99a8086506', + displayName: 'OC1970', + fullName: 'Irish Gaelic New Testament 1970 (Ó Cuinn) Roman type', + bestLanguageName: 'Irish Gaelic (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e5bed1e3046e5ca9', + displayName: 'SYW', + fullName: 'Syuba', + bestLanguageName: 'Kagate (syw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '31c825b218d5ac6b', + displayName: 'Bedell', + fullName: 'Irish Gaelic Bible 1817 (Bedell) Roman type', + bestLanguageName: 'Irish Gaelic (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '26b544b11ad2796b', + displayName: 'PBEBI', + fullName: 'Polish Bible SNP 2018', + bestLanguageName: 'Polish (pol)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd980ad19668bb50d', + displayName: 'New', + fullName: 'Newar', + bestLanguageName: 'Newar (new)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3b6fa1c463feb94e', + displayName: 'WTDG', + fullName: 'Western Tamang', + bestLanguageName: 'Tamang, Western (tdg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f0141cf711da2d98', + displayName: 'PSA1836G', + fullName: 'Irish Gaelic Metrical Psalms 1836 Gaelic type', + bestLanguageName: 'Irish Gaelic (gle-Latg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '87560d157dc60d50', + displayName: 'PSA1836', + fullName: 'Irish Gaelic Metrical Psalms 1836 Roman type', + bestLanguageName: 'Irish Gaelic (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f9062898501978bb', + displayName: 'jra', + fullName: 'Jarai Kampuchea (Portions) Latin Script', + bestLanguageName: 'Jarai (jra-Latn-KH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dac7e6d690608d3e', + displayName: 'lbj', + fullName: 'Ladakhi NT+', + bestLanguageName: 'Ladakhi (lbj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dd7793999b04cd2b', + displayName: 'SSY', + fullName: 'Saho Bible Translation_A', + bestLanguageName: 'Saho (ssy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd09e6485e7c73174', + displayName: 'jaa', + fullName: 'Jarawara New Testament , GEN and DAN', + bestLanguageName: 'Jamamadí (jaa-Latn-x-jarawara)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3b21497afc82f451', + displayName: 'nca', + fullName: 'Iyo NT', + bestLanguageName: 'Iyo (nca)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9b5b018d4b315d67', + displayName: 'KOQ', + fullName: 'Kota Kiwoyeti (koq)', + bestLanguageName: 'Kota (koq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c18dd3693af1687', + displayName: 'teg', + fullName: 'Tege Kiwoyeti (teg)', + bestLanguageName: 'Teke-Tege (teg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '131fe35b694d2702', + displayName: 'MDT', + fullName: 'Obamba Kiwoyeti (mdt)', + bestLanguageName: 'Mbere (mdt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '29e1d3effcdefb52', + displayName: 'jra', + fullName: 'Jarai Kampuchea Bible', + bestLanguageName: 'Jarai (jra-Khmr-KH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b4c245030dfedaf9', + displayName: 'MHIRut', + fullName: "Ma'di Ruth 1938", + bestLanguageName: "Ma'di (mhi)", + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9f6a03b0580da945', + displayName: 'aau', + fullName: 'Abau NT', + bestLanguageName: 'Abau (aau)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dae018ec03b40392', + displayName: 'mln', + fullName: 'Malango Portions', + bestLanguageName: 'Malango (mln)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5d32822c7630afb6', + displayName: 'SOM', + fullName: 'Ogaden-Harti Somali Gospels of Mark and John 1915-29', + bestLanguageName: 'Somali (som)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ca57a019639a8ee2', + displayName: 'AERV', + fullName: 'Awadhi: पवित्तर बाइबिल', + bestLanguageName: 'Awadhi (awa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bb4cf628d890bcab', + displayName: 'SHP', + fullName: 'Croatian: Biblija: suvremeni hrvatski prijevod', + bestLanguageName: 'Croatian (hrv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '782bf2e38d8650da', + displayName: 'GERV', + fullName: 'Gujarati: પવિત્ર બાઈબલ', + bestLanguageName: 'Gujarati (guj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c0ef8af5501106ec', + displayName: 'HERV', + fullName: 'Hindi: पवित्र बाइबल', + bestLanguageName: 'Hindi (hin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '45ca399feb5830de', + displayName: 'AMD', + fullName: 'Indonesian: Alkitab Mudah Dibaca (AMD)', + bestLanguageName: 'Indonesian (ind)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '49ef6a3f82126204', + displayName: 'NERV', + fullName: 'Nepali: पवित्र बाइबल', + bestLanguageName: 'Nepali (macrolanguage) (npi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cf4f4155e0dcf607', + displayName: 'RSP', + fullName: 'Russian: Святая Библия: Современный перевод', + bestLanguageName: 'Russian (rus)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7c0ef4be9da742ec', + displayName: 'SSP', + fullName: 'Serbian: Библија: Савремени српски превод', + bestLanguageName: 'Serbian (srp-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0aaa4b88c30bcde2', + displayName: 'PDT', + fullName: 'La Palabra de Dios para todos', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'de8ce09c9f3daa1b', + displayName: 'TKU', + fullName: 'Swahili: Agano Jipya: Tafsiri ya Kusoma-Kwa-Urahisi', + bestLanguageName: 'Swahili (macrolanguage) (swh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5d10864185421a98', + displayName: 'THERV', + fullName: 'Thai: พระคริสตธรรมคัมภีร์: ฉบับอ่านเข้าใจง่าย', + bestLanguageName: 'Thai (tha)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd8bb452293f21682', + displayName: 'USP', + fullName: 'Ukrainian: Свята Біблія: Сучасною мовою', + bestLanguageName: 'Ukrainian (ukr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '06684616e3ff5489', + displayName: 'BPT', + fullName: 'Vietnamese: Thánh Kinh: Bản Phổ thông', + bestLanguageName: 'Vietnamese (vie)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '792e3f09b7135a2b', + displayName: 'LG8', + fullName: 'Latvian Gluck 8th edition', + bestLanguageName: 'Latvian (lvs)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c834e7167cbf1da2', + displayName: 'PIDNT86', + fullName: 'Nuevo Testamento Huottöja 1986 (Piaroa)', + bestLanguageName: 'Piaroa (pid)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2fa49e4da80d0e38', + displayName: 'LEKJOT', + fullName: 'Dinka Bor New Testament 1940', + bestLanguageName: 'Dinka (dks)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a8dc741f3df89ef3', + displayName: 'BUY1816', + fullName: 'Bullom So Gospel of Matthew 1816', + bestLanguageName: 'Bullom So (buy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8401449cf39dde52', + displayName: 'DAFIS', + fullName: 'The Four Gospels 2000 (Lyn Lewis Dafis) in Pembrokeshire Welsh', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c0346fe4031f6103', + displayName: 'Otnn', + fullName: 'Open Translators Notes', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'efb3bc69b46b1751', + displayName: 'Otnd', + fullName: 'Open Translators Notes Display', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aac4eb6dbeb23c74', + displayName: 'NRSVUE', + fullName: 'New Revised Standard Version Updated Edition 2021', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '621b2076a4942f05', + displayName: 'ses', + fullName: 'Songhai (Gao) Bible', + bestLanguageName: 'Songhay, Koyraboro Senni (ses)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '429b54d6b92f644d', + displayName: 'AdyBBL', + fullName: 'Adyghe Holy Scriptures', + bestLanguageName: 'Adyghe (ady)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '53c532cbc323abda', + displayName: 'WUM', + fullName: 'Wumbu Kiwoyeti (wum)', + bestLanguageName: 'Wumbvu (wum)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd91001fbd4c98c7f', + displayName: 'nsk', + fullName: 'Naskapi for DBL', + bestLanguageName: 'Naskapi (nsk-Cans-CA-x-nasksyl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'baa6c9727f89b424', + displayName: 'SEA', + fullName: 'Semai NT+', + bestLanguageName: 'Semai (sea)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5c2b981bc7179adf', + displayName: 'mxx', + fullName: 'Bible Mahou', + bestLanguageName: 'Mahou (mxx)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '652d9a4ce7ba88f9', + displayName: 'raw', + fullName: 'Rawang Portions', + bestLanguageName: 'Rawang (raw-MM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3fb9ccc71e78d5dc', + displayName: 'YOM', + fullName: 'Bible en Kiyombe', + bestLanguageName: 'Yombe (yom-CD)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd2cfbbd15a2c13bf', + displayName: 'Thim', + fullName: 'Thimbukushu New Testament and Psalms 1986', + bestLanguageName: 'Mbukushu (mhw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3a58bb7dafa55959', + displayName: 'TLA', + fullName: 'Traducción en Lenguaje Actual', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bbaa94c8fe456e6f', + displayName: 'TSV', + fullName: 'Nouveau Testament en langue des Mitsogo 1983', + bestLanguageName: 'Tsogo (tsv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0d2ab9943b358089', + displayName: 'GOURU', + fullName: 'La Sainte Bible en Gouru 1979', + bestLanguageName: 'Guro (goa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e2b38796f1da3768', + displayName: 'wnk', + fullName: 'Wanukaka2025', + bestLanguageName: 'Wanukaka (wnk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ef113aca8a272391', + displayName: 'MOTA', + fullName: 'Mota New Testament Revised 1931 + OT selections 1947 (Vanuatu)', + bestLanguageName: 'Mota (mtt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bf5e17598b02148b', + displayName: 'lmy', + fullName: 'Laboya 2025', + bestLanguageName: 'Lamboya (lmy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c9c7ae29c036ae4e', + displayName: 'MJVR', + fullName: 'Judson Bible Revision', + bestLanguageName: 'Burmese (mya-Mult)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0c4735416f70e072', + displayName: 'ASK', + fullName: 'An Sowter 1997, 2023', + bestLanguageName: 'Cornish (cor)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '561b49fb460f32ef', + displayName: 'ICH', + fullName: 'Etkyen DBL', + bestLanguageName: 'Etkywan (ich)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fabf87ea9411c3e1', + displayName: 'FIA1885', + fullName: "Nobiin Gospel of Mark and the Lord's Prayer 1860 (Fiadidja Nubian)", + bestLanguageName: 'Nobiin (fia-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '943164c222f75687', + displayName: 'TNDESP', + fullName: 'Cuadro Explicativo para la Serie Notas para el Traductor', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0617c397f003127c', + displayName: 'TNNESP', + fullName: 'Nota para la Serie Notas para el Traductor', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '11cdee443d45819e', + displayName: 'IKV', + fullName: 'Ehua', + bestLanguageName: 'Iku-Gora-Ankwa (ikv-NG)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55659b1a051ba18b', + displayName: 'KCQ', + fullName: 'Kamo New Testament', + bestLanguageName: 'Kamo (kcq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd5f1956b346911b2', + displayName: 'IBY', + fullName: 'Ibani2', + bestLanguageName: 'Ibani (iby)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '69a1f26d68cef897', + displayName: 'DBD', + fullName: 'Dadiya', + bestLanguageName: 'Dadiya (dbd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ed70d3ce48c5c905', + displayName: 'gsl', + fullName: 'Gusiilaay', + bestLanguageName: 'Gusilay (gsl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c62e545929550be7', + displayName: 'BCND', + fullName: 'Beibl Cymraeg Newydd Diwygiedig (New Welsh Bible Revised) 2004', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1f07f791936e4b62', + displayName: 'SNQ', + fullName: 'Isangu Kiwoyeti (snq)', + bestLanguageName: 'Sangu (snq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '05089cbb2e2fc6c7', + displayName: 'NZB', + fullName: 'Yinzebi NT Kiwoyeti (nzb)', + bestLanguageName: 'Njebi (nzb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd95f4ee0325a68e8', + displayName: 'LRL', + fullName: 'Achomi Bible Translation', + bestLanguageName: 'Lari (lrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '435e9f7d6ff31180', + displayName: 'ACM', + fullName: 'Ahwazi Arabic Bible', + bestLanguageName: 'Arabic (acm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '14abc162d7349252', + displayName: 'ALU', + fullName: 'AreAre Old Testament', + bestLanguageName: '’Are’are (alu)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '14ABC162D7349252103869735A2B497A194830F2ABCDEFFF', + }, + { + dblEntryUid: '65a8dbf8be1cd8e8', + displayName: 'PES', + fullName: 'Bandari Bible', + bestLanguageName: 'Persian (pes)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '00cac690fb17db11', + displayName: 'NKE', + fullName: 'Duke Full Bible', + bestLanguageName: 'Duke (nke)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd15f301c98980c72', + displayName: 'BAA', + fullName: 'Seqa Full Bible', + bestLanguageName: 'Babatana (baa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9e840298e192fa8c', + displayName: 'omi', + fullName: 'Omi Traduction 2', + bestLanguageName: 'Omi (omi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '96d3f9c4338de8e1', + displayName: 'MLU', + fullName: 'Toabaita Old Testament', + bestLanguageName: 'To’abaita (mlu-SB)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1816d44f8993a03b', + displayName: 'kji', + fullName: 'Zabana Full Bible', + bestLanguageName: 'Zabana (kji)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '54a0e801f55010e0', + displayName: 'LS1910', + fullName: 'Louis Segond 1910 Original Corrected (Public Domain version)', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '066f71d8586f906a', + displayName: 'sor', + fullName: 'Soumraye Portions', + bestLanguageName: 'Somrai (sor)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9f1b35f14ce01aa9', + displayName: 'bnet', + fullName: 'beibl.net (Welsh Colloquial Bible) 2015, 2024', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f02a4cd913e5e1a7', + displayName: 'krr', + fullName: 'Krung Bible', + bestLanguageName: 'Krung (krr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '07ed9ca493c59234', + displayName: 'KBY', + fullName: 'Kanuri Manga NT Translation', + bestLanguageName: 'Kanuri (kby)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3f07806fb7c8a989', + displayName: 'grg', + fullName: 'Madi Portions', + bestLanguageName: 'Madi (grg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '01b58d476a09e6a6', + displayName: 'NBV21', + fullName: 'NBV21', + bestLanguageName: 'Dutch (nld)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: true, + projectId: '01B58D476A09E6A650461ED37C7FBE21071112EEABCDEFFF', + }, + { + dblEntryUid: '361230230363baec', + displayName: 'NSP', + fullName: 'New Serbian Translation 2017 (Cyrillic Script)', + bestLanguageName: 'Serbian (srp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '98dff7cc2cecbdb2', + displayName: 'ABTAB', + fullName: 'Aramaic Bible Translation Assyrian Bible', + bestLanguageName: 'Syriac (aii)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c380ea76c9e3f95', + displayName: 'MAT1858', + fullName: 'Breton Matthew 1857 (Vannes dialect)', + bestLanguageName: 'Breton (bre)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fb498b56edb5d0ab', + displayName: 'BKV', + fullName: 'Bekwarra Bible', + bestLanguageName: 'Bekwarra (bkv)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '55efa4894bbb69a8', + displayName: 'SC1595', + fullName: 'Welsh Metrical Psalms 1595 (William Middleton) - Original Edition', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f926707e3b0dcb2c', + displayName: 'SBY1551', + fullName: 'Welsh liturgical readings - Kynniver llith a ban 1551 (William Salesbury)', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2ee7872796b62558', + displayName: 'GMB', + fullName: 'GileMaz Bible', + bestLanguageName: 'Mazanderani (mzn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3cdc78a4d12fa604', + displayName: 'KTT', + fullName: 'Tati Bible - Khalkhal Dialect', + bestLanguageName: 'Tat, Muslim (ttt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '36276b99d6efc4f1', + displayName: 'KAB', + fullName: 'Ahwazi - Khuzestani Arabic Bible', + bestLanguageName: 'Arabic (arb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '51c4ee0f0fdd65ff', + displayName: 'FKK', + fullName: 'Fali Mijilu kirya', + bestLanguageName: 'Kirya-Konzel (fkk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f7c564e198ee5d5f', + displayName: 'KNI', + fullName: 'Kanufi', + bestLanguageName: 'Kanufi (kni)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '138a5f759c974f37', + displayName: 'FIR', + fullName: 'Firan', + bestLanguageName: 'Firan (fir)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '794025a13d3bda55', + displayName: 'GIL', + fullName: 'Gilaki Bible - Western Dialect and Rashti', + bestLanguageName: 'Gilaki (glk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bae9677eb039ccb5', + displayName: 'LAB', + fullName: 'Lari Achomi Bible', + bestLanguageName: 'Lari (lrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28a9919ef266d6c7', + displayName: 'BBK', + fullName: 'Bandari Bible - Korpu', + bestLanguageName: 'Persian (pes)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '87f620660790371b', + displayName: 'HSV', + fullName: 'Herziene Statenvertaling', + bestLanguageName: 'Dutch (nld)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '87F620660790371B00FE7997165212F4F4C89AD9ABCDEFFF', + }, + { + dblEntryUid: 'a088b8c3614c861c', + displayName: 'CAB', + fullName: 'Southern Azerbaijani Bible - Colloquial', + bestLanguageName: 'Azerbaijani (azb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6ef46d09929ed977', + displayName: 'EGB', + fullName: 'Gilaki Bible - Eastern Dialect', + bestLanguageName: 'Gilaki (glk)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c20ea32e4b1e897', + displayName: 'ITB', + fullName: 'Talysh Bible - Northern Dialect', + bestLanguageName: 'Talysh (tly-Xpeo-IR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'fa18c8e3d6583810', + displayName: 'NLB', + fullName: 'Northern Luri Bible - Khorramabadi', + bestLanguageName: 'Luri, Northern (lrc)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b837401197c685a2', + displayName: 'RCPV', + fullName: 'Revised Classic Persian - Korpu', + bestLanguageName: 'Persian (pes)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '644882669dceb440', + displayName: 'Qii', + fullName: 'Kashkay Bible', + bestLanguageName: 'Kashkay (qxq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '04ad04f08f5b6f22', + displayName: 'SAB', + fullName: 'Southern Azerbaijani Bible - Literary', + bestLanguageName: 'Azerbaijani (azb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1fb6aff33e7b3c31', + displayName: 'SLB', + fullName: 'Southern Luri Bible', + bestLanguageName: 'Luri, Southern (luz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '381cd81b89e49588', + displayName: 'TIT', + fullName: 'Tati Bible - Lerd Dialect', + bestLanguageName: 'Tat, Muslim (ttt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3c57f9b9e0c59977', + displayName: 'WMB', + fullName: 'Mazanderani Bible - Western Dialect', + bestLanguageName: 'Mazanderani (mzn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'afa4de12e90ae076', + displayName: 'EMB', + fullName: 'Mazanderani Bible - Eastern Dialect', + bestLanguageName: 'Mazanderani (mzn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '56e943d14b0df34e', + displayName: 'YER', + fullName: 'Tarok', + bestLanguageName: 'Tarok (yer)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cf8fa7800ddf7eb3', + displayName: 'MTHB', + fullName: 'Mid-Eastern Tharu', + bestLanguageName: 'Tharu, Kochila (thq)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e3f420b9665abaeb', + displayName: 'LBLA', + fullName: 'La Biblia de las Américas', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '47237297ff775635', + displayName: 'mtsDBL', + fullName: 'mts Yora Scripture for DBL', + bestLanguageName: 'Yora (mts-Latn-PE)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e13fd6d3647ff3b8', + displayName: 'DLPO', + fullName: 'Dolpo-Tibetan New Testament', + bestLanguageName: 'Dolpo (dre)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ce11b813f9a27e20', + displayName: 'NBLA', + fullName: 'Nueva Biblia de las Américas', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e6a4af96db4823ee', + displayName: 'tbt', + fullName: 'Tembo NT', + bestLanguageName: 'Tembo (tbt)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2bbf98f620201acc', + displayName: 'xta', + fullName: 'Xochapa Mixteco', + bestLanguageName: 'Mixtec, Alcozauca (xta)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '147ebe97085ae322', + displayName: 'EKA', + fullName: 'Ekajuk Scriptures', + bestLanguageName: 'Ekajuk (eka-011)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c095bc881e5d49d5', + displayName: 'IKO', + fullName: 'Olulumo', + bestLanguageName: 'Olulumo-Ikom (iko)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '1f12758ff7b440b6', + displayName: 'NBB', + fullName: 'Ndoe', + bestLanguageName: 'Ndoe (nbb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd78cf215ed295dc7', + displayName: 'BEC', + fullName: 'Iceve', + bestLanguageName: 'Iceve-Maci (bec)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9acd000b64bd4159', + displayName: 'NDD', + fullName: 'Nde', + bestLanguageName: 'Nde-Nsele-Nta (ndd-011)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '60d25254bb02c18f', + displayName: 'NBP', + fullName: 'Nnam', + bestLanguageName: 'Nnam (nbp)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '00c47b4a0b936ad5', + displayName: 'UTA', + fullName: 'Itang', + bestLanguageName: 'Otank (uta)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4073e7bb18185955', + displayName: 'kyu', + fullName: 'The New Testament and Old Testament portions in the Kayah Li Language', + bestLanguageName: 'Kayah, Western (kyu-Kali-035)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8c5b6febae618f9f', + displayName: 'BOTE', + fullName: 'Bote', + bestLanguageName: 'Bote (bmj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '252445b115aed8cc', + displayName: 'CHEP', + fullName: 'Chepang Bible', + bestLanguageName: 'Chepang (cdm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0be7afb741b81157', + displayName: 'DOTY', + fullName: 'Dotiyali', + bestLanguageName: 'Nepali (macrolanguage) (dty)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c480e015449376a1', + displayName: 'JUML', + fullName: 'Jumli', + bestLanguageName: 'Jumli (jml)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'be685388be51fcdd', + displayName: 'DBT', + fullName: 'Dezfuli Bible', + bestLanguageName: 'Dezfuli (def)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '6099d8937326c48c', + displayName: 'TCV95T', + fullName: + "Chinese-Traditional Script: Today's Chinese Version 1995 《現代中文譯本修訂版--繁體版》", + bestLanguageName: 'Chinese (cmn-Hant)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'bfc7ee448d901729', + displayName: 'DRY', + fullName: 'Darai', + bestLanguageName: 'Darai (dry)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0354cb807111a588', + displayName: 'DEWZ', + fullName: 'Dewas', + bestLanguageName: 'Dewas Rai (dwz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '50feecd8bb39e507', + displayName: 'MAJH', + fullName: 'Majhi', + bestLanguageName: 'Majhi (mjz)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ffd7de54e89410a2', + displayName: 'ARNNT96', + fullName: 'Mapudungu Nuevo Testamento 1996', + bestLanguageName: 'Mapudungun (arn-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd377f82f1deaac91', + displayName: 'TCV95S', + fullName: + "Chinese-Simplified Script: Today's Chinese Version 1995 《现代中文译本修订版--简体版》", + bestLanguageName: 'Chinese (cmn-Hans)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7ac6ad7697e8837e', + displayName: 'MLU', + fullName: "To'abaita Scripture", + bestLanguageName: 'To’abaita (mlu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '37c9061b5be6e8d5', + displayName: 'GWR', + fullName: 'Lugwere', + bestLanguageName: 'Gwere (gwr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b96e3d89de10b05c', + displayName: 'KM1992', + fullName: 'Китоби Муқаддас - Tajiki Bible 1992, 1999 (IBT Sweden)', + bestLanguageName: 'Tajiki (tgk-Cyrl-TJ)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0cfa452f80bab5c3', + displayName: 'TAOVBSI', + fullName: 'Tamil Old Version Bible (BSI)', + bestLanguageName: 'Tamil (tam)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a1efb0ce999b591a', + displayName: 'div', + fullName: 'Dhivehi', + bestLanguageName: 'Maldivian (div)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '01108d57ee418522', + displayName: 'BEA1886R', + fullName: 'Beaver Indian Gospel of Mark 1886 Roman Script (Canada)', + bestLanguageName: 'Beaver (bea-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ecfa3f25d8296825', + displayName: 'BEA1968', + fullName: 'Beaver Indian Gospel of John 3:1-21 1968 (Canada)', + bestLanguageName: 'Beaver (bea-Latn-CA)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8a9aba68e384296e', + displayName: 'BEA1886S', + fullName: 'Beaver Indian Gospel of Mark 1886 Syllabic Script (Canada)', + bestLanguageName: 'Beaver (bea-Cans-CA)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b318aec3496ed85e', + displayName: 'AvaBBL', + fullName: 'Avar Holy Scriptures', + bestLanguageName: 'Avar (ava)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '28afd42e321af4f4', + displayName: 'GBP', + fullName: 'Garhwali Bible Project', + bestLanguageName: 'Garhwali (gbm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b2286fb72eeaf0c8', + displayName: 'ShuArab', + fullName: 'Arabe tchadien (alphabet arabe)', + bestLanguageName: 'Arabic (shu-Arab)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '9306066bc3af2d63', + displayName: 'tgb', + fullName: 'Tobilung Translation Project', + bestLanguageName: 'Tobilung (tgb)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'aa345666728477ef', + displayName: 'ShuLatn', + fullName: 'Arabe tchadien (alphabet latin)', + bestLanguageName: 'Arabic (shu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'caf0c70eb995c3dc', + displayName: 'GKHB', + fullName: 'Global Khmer Bible', + bestLanguageName: 'Khmer, Central (khm-KH)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3ca19ae65ed0b74c', + displayName: 'KWM', + fullName: 'OtshiKwambi Bible Version 1951', + bestLanguageName: 'Kwambi (kwm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '726286f3d8b18fe3', + displayName: 'BWMG1588', + fullName: 'Welsh Beibl William Morgan Original 1588 Edition', + bestLanguageName: 'Welsh (cym)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ff913c55498d2380', + displayName: 'RVR1960', + fullName: 'Reina Valera 1960', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '2f4fed6029ee1ae3', + displayName: 'BurBBL2024', + fullName: 'Buryat Bible 2024', + bestLanguageName: 'Buriat (bxr-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '3d1c55a3209eddf1', + displayName: 'jmd', + fullName: 'Yamdena', + bestLanguageName: 'Yamdena (jmd)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a93a92589195411f', + displayName: 'JND', + fullName: 'Bible J.N. Darby', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '86195bc24616fc20', + displayName: 'MALOVBSI', + fullName: 'Malayalam OV Bible (BSI)', + bestLanguageName: 'Malayalam (mal)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ade30aa6c83c3ed7', + displayName: 'ABK', + fullName: 'Cornish Bible 2024 (Common Cornish)', + bestLanguageName: 'Cornish (cor-kkcor)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ee142c62e2932398', + displayName: 'EASY', + fullName: 'EasyEnglish Bible 2024', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '815f988992157b10', + displayName: 'HBKFRA', + fullName: 'Manuels de traduction', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'da3fe61cb38b2fa0', + displayName: 'CTY', + fullName: 'Moundadan Chetty', + bestLanguageName: 'Moundadan Chetty (cty)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'dc310e192ab10dc9', + displayName: 'slu', + fullName: 'Selaru', + bestLanguageName: 'Selaru (slu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8024c86da8efc415', + displayName: 'PEV', + fullName: 'Aboriginal Plain English Version', + bestLanguageName: 'English (eng-053)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '76f87f52313476fa', + displayName: 'PUU', + fullName: 'Ipunu Kiwoyeti (puu) NT Portions', + bestLanguageName: 'Punu (puu)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c5a627b0e215a46c', + displayName: 'SWJ', + fullName: 'Gisir NT Portions', + bestLanguageName: 'Sira (swj)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '302d71698bcb2698', + displayName: 'TFM', + fullName: 'Traduction Française de Modèle (basée sur les langues soudaniques centrales, RDC)', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '302D71698BCB2698D8D35547F097650227C86EA9ABCDEFFF', + }, + { + dblEntryUid: '0e39850ec800c8e7', + displayName: 'GMTelSB', + fullName: 'GM_StudyBibleTelugu', + bestLanguageName: 'Telugu (tel)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b0a44386d5e7fa65', + displayName: 'LezBBL', + fullName: 'Lezgi Holy Scriptures', + bestLanguageName: 'Lezgi (lez-Cyrl)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '090f7cbf7924b245', + displayName: 'TNN', + fullName: "Translator's Notes", + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b58b80b798e22be6', + displayName: 'TND', + fullName: "Translator's Notes Display", + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd95fde28b4346e61', + displayName: 'TNNFR', + fullName: 'Comprendre pour traduire', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c75f1cc3bb4f6c47', + displayName: 'MRI1868', + fullName: 'Māori Bible 1868', + bestLanguageName: 'Maori (mri)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e4d1aefc60ee0c37', + displayName: 'MRI1952', + fullName: 'Māori Bible 1952', + bestLanguageName: 'Maori (mri)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f89bdc56e948be5b', + displayName: 'CHH', + fullName: 'Choctaw Bible (Chahta Holisso Holitopa) 1886', + bestLanguageName: 'Choctaw (cho)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c25eff0b8b3d86aa', + displayName: 'AAE1868', + fullName: 'Gospel of Matthew in Albanian Sicilian Arbëresh 1868', + bestLanguageName: 'Albanian (aae)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '632ed676c4923802', + displayName: 'AAE1869', + fullName: 'Gospel of Matthew in Albanian Calabrian Arbëresh 1869', + bestLanguageName: 'Albanian (aae)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'c223981aa2a75699', + displayName: 'APD2024', + fullName: 'Sudanese Arabic New Testament Arabized Final', + bestLanguageName: 'Arabic (apd-Arab-015)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '293c38cdc8536d16', + displayName: 'TPT', + fullName: 'Traducción Para Traductores', + bestLanguageName: 'Spanish (spa)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7c7b3f8df8dacea0', + displayName: 'xsm', + fullName: 'Kasem Bible Ghana', + bestLanguageName: 'Kasem (xsm)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7c3d8fc4079b80af', + displayName: 'EAIB21', + fullName: 'Eastern Arctic Inuktitut Bible', + bestLanguageName: 'Inuktitut (ike)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd8b769a07dbbad97', + displayName: 'CTB', + fullName: 'Talysh Bible - Central Dialect', + bestLanguageName: 'Talysh (tly-Xpeo-IR)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7165d77a0bfca719', + displayName: 'LBT', + fullName: 'Laki Bible Translation', + bestLanguageName: 'Laki (lki)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cfd233c49d54cb62', + displayName: 'SKV', + fullName: 'Southern Kurdish Version', + bestLanguageName: 'Kurdish (sdh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '42a717179e83ed0f', + displayName: 'SKB', + fullName: 'Shikaki Kurdish Bible', + bestLanguageName: 'Kurdish (kmr)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5b43c7f3f0285544', + displayName: 'BLA1979', + fullName: 'Blackfoot Gospel of John 1979 (Canada)', + bestLanguageName: 'Blackfoot (bla)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f3de39459550f5fa', + displayName: 'SFB15', + fullName: 'Svenska Folkbibeln 2015', + bestLanguageName: 'Swedish (swe)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'd4f66ea66dc08199', + displayName: 'ABN', + fullName: 'Modern Irish Gaelic Bible (Maynooth) 1981', + bestLanguageName: 'Irish Gaelic (gle)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '36e2175c9d11e44a', + displayName: 'ABN2012', + fullName: 'Revised Irish Gaelic New Testament and Psalms 2012 (Revision of ABN 1981)', + bestLanguageName: 'Irish Gaelic (gle-IE)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0cf5e6761adc0292', + displayName: 'HBN', + fullName: 'Heiban New Testament 1966', + bestLanguageName: 'Heiban (hbn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '65ee5077753c3bed', + displayName: 'mkw', + fullName: 'Bible en Kituba', + bestLanguageName: 'Kituba (mkw-002)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '935a5c3c7cc0cbc9', + displayName: 'BE1978', + fullName: 'Ndebele Bible 1978 (iBhayibhili Elingcwele)', + bestLanguageName: 'Ndebele (nde)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5c49bcccc6e2cce7', + displayName: 'bri', + fullName: 'Bakwery', + bestLanguageName: 'Mokpwe (bri-CM)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '0ece597cb3e3e57e', + displayName: 'ASWG', + fullName: 'Anglo-Saxon Wessex Gospels c1000 AD', + bestLanguageName: 'Old English (ca. 450-1100) (ang)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'f0d54c2e201947c5', + displayName: 'mfg', + fullName: 'Mogofin kuma - Ala la kitabue', + bestLanguageName: 'Mogofin (mfg)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7e052191232fba55', + displayName: 'ASPs', + fullName: 'Anglo-Saxon Psalms c890-950 AD', + bestLanguageName: 'Old English (ca. 450-1100) (ang)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '8c698ffbe541db8a', + displayName: 'Raamattu', + fullName: 'Finnish Bible 1992', + bestLanguageName: 'Finnish (fin)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '7dbdb4d39d4a8d83', + displayName: 'KURNT', + fullName: 'Kurdish New Testament and Psalms +', + bestLanguageName: 'Kurdish (kmr-Latn-145)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '5ad758fc90f8b6b4', + displayName: 'GRN1913', + fullName: 'Paraguayan Guarani New Testament 1913 (Lindsay)', + bestLanguageName: 'Guarani (gug)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cf0e2331cd812df9', + displayName: 'SMP1', + fullName: 'Scripture Maps Project 1', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '26eb483046b561dc', + displayName: 'DRC1752', + fullName: 'Douay-Rheims Challoner Revision 1752 ✠', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b277e15ff39f8f4d', + displayName: 'SJW', + fullName: 'The Four Gospels in Shawnee 1929', + bestLanguageName: 'Shawnee (sjw)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'ae1879177a93cd1e', + displayName: 'CSBS', + fullName: 'Chinese Standard Bible (Simplified Script)', + bestLanguageName: 'Chinese (cmn-Hans)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '40ea8ed06ad4491f', + displayName: 'CSBT', + fullName: 'Chinese Standard Bible (Traditional Script)', + bestLanguageName: 'Chinese (cmn-Hant)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4dd26b0ae3faced2', + displayName: 'YAL', + fullName: 'Yalunka Matthew 1907', + bestLanguageName: 'Yalunka (yal-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a28e6135e45202b4', + displayName: 'IAAI', + fullName: 'Iaai (Uvean) Bible 1901', + bestLanguageName: 'Iaai (iai)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'a556c5305ee15c3f', + displayName: 'CSB', + fullName: 'Christian Standard Bible', + bestLanguageName: 'English (eng)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '937fe19add254cf3', + displayName: 'KL1960', + fullName: 'Kabba Laka New Testament 1960', + bestLanguageName: 'Laka (lap-Latn)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'e9c650e8bffa8550', + displayName: 'MAIX-NT', + fullName: 'Mazateco de Ixcatlan', + bestLanguageName: 'Mazatec, Ixcatlán (mzi)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'b79bdaa4a04842a4', + displayName: 'SEHMAT', + fullName: 'ShiPuthso Gospel of Matthew 1911 (Mozambique)', + bestLanguageName: 'Sena (seh)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: 'cc4d2e1f7bb4db71', + displayName: 'BCYMRK', + fullName: 'Bacama Gospel of Mark 1915', + bestLanguageName: 'Bacama (bcy)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '00c1e1e86d4ef747', + displayName: 'CLNA', + fullName: 'Punjabi Updated CL, North America Version', + bestLanguageName: 'Panjabi, Eastern (pan-IN)', + type: 'DBLResource', + size: 0, + installed: false, + updateAvailable: true, + projectId: '', + }, + { + dblEntryUid: '4545f7f21f92f0c5', + displayName: 'TOB', + fullName: 'Traduction Œcuménique de la Bible 2010', + bestLanguageName: 'French (fra)', + type: 'DBLResource', + size: 0, + installed: true, + updateAvailable: false, + projectId: '4545F7F21F92F0C5FB5A2313D1508E87568E5C93ABCDEFFF', + }, +]; + +export default resourceExamples; diff --git a/lib/platform-bible-react/src/preview/pages/layouts.component.tsx b/lib/platform-bible-react/src/preview/pages/layouts.component.tsx index 2569c5f997..cdbba18228 100644 --- a/lib/platform-bible-react/src/preview/pages/layouts.component.tsx +++ b/lib/platform-bible-react/src/preview/pages/layouts.component.tsx @@ -9,7 +9,6 @@ import WindowOrTabExample from './layouts/window.layout.component'; import Dashboard5Examples from './layouts/dashboard5.layout.component'; import ToolbarExamples from './layouts/toolbar.layout.component'; import DialogExamples from './layouts/dialog.layout.component'; -import GetResourcesExample from './layouts/resource-manager.layout.component'; function Layouts() { return ( @@ -39,10 +38,6 @@ function Layouts() { TODO - - - -
    diff --git a/lib/platform-bible-react/src/preview/pages/layouts/resource-manager.layout.component.tsx b/lib/platform-bible-react/src/preview/pages/layouts/resource-manager.layout.component.tsx deleted file mode 100644 index 71575856ee..0000000000 --- a/lib/platform-bible-react/src/preview/pages/layouts/resource-manager.layout.component.tsx +++ /dev/null @@ -1,411 +0,0 @@ -import { Badge } from '@/components/shadcn-ui/badge'; -import { Button } from '@/components/shadcn-ui/button'; -import { Blocks, BookOpen, Languages, Star, X } from 'lucide-react'; -import React from 'react'; - -import SearchBar from '@/components/basics/search-bar.component'; -import { - Dialog, - DialogContent, - DialogDescription, - DialogFooter, - DialogHeader, - DialogTrigger, -} from '@/components/shadcn-ui/dialog'; -import { - Table, - TableBody, - TableCell, - TableHead, - TableHeader, - TableRow, -} from '@/components/shadcn-ui/table'; -import { DialogTitle } from '@radix-ui/react-dialog'; -import MultiSelectComboBox from '@/components/advanced/multi-select-combo-box'; - -type MultiSelectComboBoxEntry = { - value: string; - label: string; - starred?: boolean; -}; - -const types: MultiSelectComboBoxEntry[] = [ - { value: 'resources', label: 'Resource' }, - { value: 'enhanced-resources', label: 'Enhanced Resource' }, - { value: 'source-language-texts', label: 'Source Language Text' }, - { value: 'dictionaries', label: 'Dictionary' }, - { value: 'consultant-notes', label: 'Consultant Note' }, -]; - -const languages: MultiSelectComboBoxEntry[] = [ - { value: 'english', label: 'English', starred: true }, - { value: 'hebrew', label: 'Hebrew', starred: true }, - { value: 'greek', label: 'Greek', starred: true }, - { value: 'latin', label: 'Latin' }, - { value: 'aramaic', label: 'Aramaic' }, - { value: 'arabic', label: 'Arabic' }, - { value: 'coptic', label: 'Coptic' }, - { value: 'syriac', label: 'Syriac' }, - { value: 'ethiopic', label: 'Ethiopic' }, - { value: 'armenian', label: 'Armenian' }, - { value: 'georgian', label: 'Georgian' }, - { value: 'church-slavonic', label: 'Church Slavonic' }, - { value: 'gothic', label: 'Gothic' }, - { value: 'adamawa-fulfulde', label: 'Adamawa Fulfulde' }, - { value: 'himba', label: 'Himba' }, -]; - -// Updated table data to change all "projects" to "resources" -const tableData = [ - { - id: 1, - name: 'Byzantine Text 1904', - language: 'Ancient Greek (to 1453)', - type: 'source-language-texts', - size: '4 MB', - installed: true, - }, - { - id: 2, - name: 'Septuaginta 2006', - language: 'Ancient Greek (to 1453)', - type: 'source-language-texts', - size: '8 MB', - installed: false, - }, - { - id: 3, - name: 'Hebrew Bible', - language: 'Hebrew', - type: 'source-language-texts', - size: '12 MB', - installed: false, - }, - { - id: 4, - name: "Strong's Dictionary", - language: 'English', - type: 'dictionaries', - size: '15 MB', - installed: false, - }, - { - id: 5, - name: 'Translation Notes', - language: 'English', - type: 'consultant-notes', - size: '2 MB', - installed: false, - }, - { - id: 6, - name: 'Latin Vulgate', - language: 'Latin', - type: 'resources', - size: '6 MB', - installed: false, - }, - { - id: 7, - name: 'English Standard Version', - language: 'English', - type: 'resources', - size: '10 MB', - installed: false, - }, - { - id: 8, - name: 'King James Version', - language: 'English', - type: 'resources', - size: '9 MB', - installed: false, - }, - { - id: 9, - name: 'New International Version', - language: 'English', - type: 'resources', - size: '11 MB', - installed: false, - }, - { - id: 10, - name: 'Reina Valera 1960', - language: 'Spanish', - type: 'resources', - size: '8 MB', - installed: false, - }, - { - id: 11, - name: 'Luther Bible', - language: 'German', - type: 'resources', - size: '7.5 MB', - installed: false, - }, - { - id: 12, - name: 'Nova Vulgata', - language: 'Latin', - type: 'resources', - size: '6.8 MB', - installed: false, - }, - { - id: 50, - name: 'Traducción en lenguaje actual', - language: 'Spanish', - type: 'resources', - size: '5.9 MB', - installed: false, - }, -]; - -export default function GetResourcesExample() { - const [selectedTypes, setSelectedTypes] = React.useState( - types.map((type) => type.value), - ); - const [selectedLanguages, setSelectedLanguages] = React.useState([ - 'english', - 'hebrew', - 'greek', - ]); - const [searchQuery, setSearchQuery] = React.useState(''); - - const removeType = (value: string) => { - if (selectedTypes.length === 1) return; - setSelectedTypes(selectedTypes.filter((type) => type !== value)); - }; - - const removeLanguage = (value: string) => { - if (selectedLanguages.length === 1) return; - setSelectedLanguages(selectedLanguages.filter((lang) => lang !== value)); - }; - - const matchesSearch = React.useCallback( - (item: (typeof tableData)[0]) => { - if (searchQuery === '') return true; - const searchLower = searchQuery.toLowerCase(); - return ( - item.name.toLowerCase().includes(searchLower) || - item.language.toLowerCase().includes(searchLower) || - types - .find((t) => t.value === item.type) - ?.label.toLowerCase() - .includes(searchLower) - ); - }, - [searchQuery], - ); - - const matchesFilters = React.useCallback( - (item: (typeof tableData)[0]) => { - const matchesType = selectedTypes.includes(item.type); - const matchesLanguage = - selectedLanguages.length === 0 || - selectedLanguages.some((lang) => item.language.toLowerCase().includes(lang.toLowerCase())); - return matchesType && matchesLanguage; - }, - [selectedTypes, selectedLanguages], - ); - - const searchResults = React.useMemo(() => { - return tableData.filter((item) => matchesSearch(item) && matchesFilters(item)); - }, [matchesSearch, matchesFilters]); - - const hiddenResults = React.useMemo(() => { - if (!searchQuery) return 0; - const allMatches = tableData.filter(matchesSearch); - return allMatches.length - searchResults.length; - }, [searchQuery, searchResults.length, matchesSearch]); - - return ( -
    -
    - -
    -

    Get Resources

    -

    Add resources to Paratext

    -
    - -
    - -
    -
    - - - 1 ? 's' : ''}` - } - icon={} - /> - - 1 ? 's' : ''}` - } - sortSelected - icon={} - /> -
    - -
    - {selectedTypes.length > 0 && ( -
    - Types: - {selectedTypes.map((type) => ( - - {types.find((t) => t.value === type)?.label} - - - ))} -
    - )} - - {selectedLanguages.length > 0 && ( -
    - Languages: - {selectedLanguages.map((language) => { - const langInfo = languages.find((l) => l.value === language); - return ( - - {langInfo?.starred && } - {langInfo?.label} - - - - ); - })} -
    - )} - - - Showing {searchResults.length} results - -
    - -
    - - - - - Full Name - Language - Type - Size - Actions - - - - {searchResults.length === 0 ? ( - - - No resources for the current filter - - - ) : ( - searchResults.map((item) => ( - - - - - {item.name} - {item.language} - {types.find((t) => t.value === item.type)?.label} - {item.size} - - {item.installed ? ( - Installed - ) : ( - - )} - - - )) - )} - -
    -
    -
    - - {searchQuery && hiddenResults > 0 && ( - - -
    - -
    -
    - - - Clear filters - Clear filters to show all results? - - - - - -
    - )} -
    - ); -}