PageSourceSearch

https://www.remnote.com/js/10156.63b15189c923ca99.bundle.js

js remnote.com collected 2026-10-02 04:35:14 UTC 89,548 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f7d56c78-85a3-52fb-bf89-202bd4a914ed")}catch(e){}}();
3(self.webpackChunk_remnote_client=self.webpackChunk_remnote_client||[]).push([["10156"],{631546:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=t.BLANK_URL=void 0;var n=/^([^\w]*)(javascript|data|vbscript)/im,o=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,a=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,i=/^.+(:|&colon;)/gim,l=[".","/"];t.BLANK_URL="about:blank",t.sanitizeUrl=function(e){if(!e)return t.BLANK_URL;var c=e.replace(a,"").replace(o,function(e,t){return String.fromCharCode(t)}).replace(r,"").replace(a,"").trim();if(!c)return t.BLANK_URL;if(l.indexOf(c[0])>-1)return c;var d=c.match(i);if(!d)return c;var u=d[0];return n.test(u)?t.BLANK_URL:c}},524342:function(e,t){for(var n="u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),o={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},r={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:n?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},a={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=1;i<20;i++)a["f"+i]=111+i;function l(e,t,n){!t||"byKey"in t||(n=t,t=null),Array.isArray(e)||(e=[e]);var o=e.map(function(e){return c(e,t)}),r=function(e){return o.some(function(t){return function(e,t){for(var n in e){var o=e[n],r=void 0;if(null!=o&&(null!=(r="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===o&&93===t.which?91:t.which:t[n])||!1!==o)&&r!==o)return!1}return!0}(t,e)})};return null==n?r:r(n)}function c(e,t){var n=t&&t.byKey,r={},i=(e=e.replace("++","+add")).split("+"),l=i.length;for(var c in o)r[o[c]]=!1;var u=!0,s=!1,h=void 0;try{for(var m,g=i[Symbol.iterator]();!(u=(m=g.next()).done);u=!0){var f=m.value,y=f.endsWith("?")&&f.length>1;y&&(f=f.slice(0,-1));var p=d(f),w=o[p];1!==l&&w||(n?r.key=p:r.which=function(e){return a[e=d(e)]||e.toUpperCase().charCodeAt(0)}(f)),w&&(r[w]=!y||null)}}catch(e){s=!0,h=e}finally{try{!u&&g.return&&g.return()}finally{if(s)throw h}}return r}function d(e){return r[e=e.toLowerCase()]||e}t.default=l,t.isHotkey=l,t.isKeyHotkey=function(e,t){return l(e,{byKey:!0},t)},t.parseHotkey=c},74507:function(e){let t=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],n=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],o=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],r=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],a=(e,t,n)=>{let o=e;return"string"==typeof t||Array.isArray(t)?o=e.toLocaleString(t,n):(!0===t||void 0!==n)&&(o=e.toLocaleString(void 0,n)),o};e.exports=(e,i)=>{let l;if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);let c=(i=Object.assign({bits:!1,binary:!1},i)).bits?i.binary?r:o:i.binary?n:t;if(i.signed&&0===e)return` 0 ${c[0]}`;let d=e<0,u=d?"-":i.signed?"+":"";if(d&&(e=-e),void 0!==i.minimumFractionDigits&&(l={minimumFractionDigits:i.minimumFractionDigits}),void 0!==i.maximumFractionDigits&&(l=Object.assign({maximumFractionDigits:i.maximumFractionDigits},l)),e<1)return u+a(e,i.locale,l)+" "+c[0];let s=Math.min(Math.floor(i.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),c.length-1);return e/=Math.pow(i.binary?1024:1e3,s),l||(e=e.toPrecision(3)),u+a(Number(e),i.locale,l)+" "+c[s]}},296332:function(e,t,n){n.d(t,{z:function(){return o}});let o={CARD_TYPE:"c",REM_ID:"rId",NEXT_TIME:"n",ACTIVE_NEXT_TIME:"a",NEXT_TIME_EXPLANATION:"ne",HISTORY:"h",MASTERY_LEVEL:"ml",TIMES_WRONG_IN_ROW:"t",LAST_REPETITION_TIME:"l",DOESNT_REQUIRE_INTERNET_ACTIVE_NEXT_TIME:"d",CREATED_AT:"e",SINGLETON_KEY:"k",STALE_TIME:"st",UPDATED_AT:"u",OWNER:"owner",NO_LONGER_NEEDED:"b",NOT_YET_LEARNED:"ny"}},26447:function(e,t,n){let o;function r(e){o=e}function a(e){if(!o)throw Error("Card collection has not been initialized.");return o(e)}n.d(t,{n:function(){return r},t:function(){return a}})},880784:function(e,t,n){n.d(t,{V:function(){return r}});var o,r=((o={}).Rem="quanta",o.Cards="cards",o.UserData="user_data",o.Schedulers="spaced_repetition_scheduler",o.KnowledgeBaseSyncedData="knowledge_base_data",o.DeletedRem="deletedquanta",o.DeletedCards="deletedcards",o.DeletedUserData="deleteduser_data",o.DeletedSchedulers="deletedspaced_repetition_scheduler",o.DeletedKnowledgeBaseSyncedData="deletedknowledge_base_data",o.DocumentDBKnowledgebaseKeyValueStore="documentdb_knowledgebase_key_value_store",o)},839433:function(e,t,n){n.d(t,{I:function(){return a},J:function(){return r}});let o=96/25.4;function r(e){return"squiggle"===e.type?function(e){let{p:t,...n}=e;return{...n,d:function(e){let t;if(0===e.length)return[];let n=[],o=0,r=0;return e.forEach(([e,a,i,l],c)=>{if(0===c)n.push(void 0===l?[e,a,i]:[e,a,i,l]);else{let c=Math.round((e-o)*10),d=Math.round((a-r)*10);void 0!==l?n.push([c,d,i,l]):i!==t?n.push([c,d,i]):n.push([c,d])}o=e,r=a,t=i}),n}(t)}}(e):e}function a(e){let t={...e},{deletedAt:n}=t;return delete t.deletedAt,{item:"squiggle"===t.type?function(e){var t,n,r;let a,{d:i,p:l,points:c,hasRealPressure:d,...u}=e;a=Array.isArray(i)?function(e){let t;if(0===e.length)return[];let n=[],o=0,r=0;return e.forEach(([e,a,i,l],c)=>{if(0===c){let c=i??0;n.push(void 0===l?[e,a,c]:[e,a,c,l]),o=e,r=a,t=c}else{let c=o+e/10,d=r+a/10,u=i??t??0;n.push(void 0===l?[c,d,u]:[c,d,u,l]),o=c,r=d,t=u}}),n}(i):Array.isArray(l)?l:function(e){if(Array.isArray(e))return e.map(({x:e,y:t,pressure:n})=>[e,t,n])}(c);let{thickness:s,strokeConfigVersion:h}=(t=u.strokeType,n=u.thickness,void 0===(r=u.strokeConfigVersion)&&("pen"===t||"highlighter"===t||"line_segments"===t||"occlusion_tape"===t)?{thickness:n/o,strokeConfigVersion:1}:{thickness:n,strokeConfigVersion:r??1});return{...u,p:a??[],thickness:s,strokeConfigVersion:h,hasRealPressure:d??function(e){if(e.length<2)return!1;let t=e[0][2],n=e[0][2];for(let o of e)t=Math.min(t,o[2]),n=Math.max(n,o[2]);return n-t>.01}(a??[])}}(t):t,deletedAt:n}}},644430:function(e,t,n){n.r(t),n.d(t,{addPluginEventListener:function(){return i},emitPluginEvent:function(){return a},removePluginEventListener:function(){return l},removePluginEventListenersForWidget:function(){return d}});var o=n(459732);let r={};function a(e,t,n){Env.app.isPlaywright&&window.playwrightPluginEventObserver?.(e,t,n);let o=r[e+"."+t];
3if(o)for(let r of o)r.messageListener.dispatchEvent(e,t,n);return o?.size>0}function i(e,t,n){let o=e+"."+t;r[o]||(r[o]=new Set),r[o].add(n),c.get(n)||c.set(n,new Set),c.get(n).add(o)}function l(e,t,n){let o=e+"."+t;r[o].delete(n),0==r[o].size&&delete r[o],c.get(n)?.delete(o),c.get(n)?.size==0&&c.delete(n)}window.emitPluginEvent=a;let c=new WeakMap;function d(e){for(let t of c.get(e)||[])t&&r[t]?.has(e)&&r[t]?.delete(e);c.delete(e)}window.AppEvents=o.AppEvents},459732:function(e,t,n){n.r(t),n.d(t,{AppEvents:function(){return f},EditorEvents:function(){return a},FocusEvents:function(){return g},GlobalEvent:function(){return o},MessagingEvents:function(){return d},PowerupEvent:function(){return l},QueueEvent:function(){return r},RemEvent:function(){return i},SettingEvents:function(){return u},SidebarEvents:function(){return c},StorageEvents:function(){return s},WidgetEvents:function(){return h},WindowEvents:function(){return m},isAppEvent:function(){return y}});let o={GlobalOpenRem:"global.open-rem",URLChange:"global.url-change"},r={QueueLoadCard:"queue.load-card",QueueCompleteCard:"queue.complete-card",QueueEnter:"queue.enter",QueueExit:"queue.exit",RevealAnswer:"queue.reveal-answer"},a={EditorSelectionChanged:"editor.selection-changed",EditorTextEdited:"editor.text-edited"},i={RemChanged:"rem.changed",GlobalRemChanged:"global.rem.changed"},l={PowerupSlotChanged:"powerup.slot.changed",ClickRemReference:"powerup.click-rem-reference",MouseOverLink:"powerup.mouse-enter-link",MouseOutLink:"powerup.mouse-out-link",SetTodoStatus:"powerup.todo.set-status"},c={ClickSidebarItem:"sidebar.click-item"},d={MessageBroadcast:"messaging.broadcast"},u={SettingChanged:"setting.changed",SettingButtonClicked:"setting.button.clicked"},s={StorageSessionChange:"storage.session.changed",StorageSyncedChange:"storage.synced.changed",StorageLocalChange:"storage.local.changed"},h={FakeEmbedComponentDimensionChange:"widget.virtual-embed-dimension-change",FakeEmbedDOMEvent:"widget.virtual-embed-dom-event",StealKeyEvent:"widget.steal-key-event"},m={FocusedPaneChange:"window.focusedPane.changed",CurrentWindowTreeChange:"window.PaneIdWindowTree.changed"},g={FocusedRemChange:"window.focusedRem.changed",FocusedPortalChange:"window.focusedPortal.changed"},f={onActivate:"onActivate",onDeactivate:"onDeactivate",setDarkMode:"setDarkMode",setCustomCSS:"setCustomCSS",...m,...d,...c,...l,...i,...o,...r,...s,...h,...a,...u,...g};function y(e){return Object.values(f).includes(e)}},166848:function(e,t,n){n.d(t,{$x:function(){return S},Co:function(){return y},Rh:function(){return s},UH:function(){return g},Y3:function(){return m},_l:function(){return f},aV:function(){return T},j$:function(){return w},nJ:function(){return h},ne:function(){return d},r4:function(){return p},uV:function(){return I}});var o=n(111133),r=n(21040),a=n(357885),i=n(495167),l=n(303620),c=n(495562);function d(e,t=!1){if("string"==typeof e){if(!e)return e;for(let t of c.wP)if(e?.startsWith(t))return e.replace(t,"");if(g(u(e))){let t="/files/";return u(e).substring(u(e).indexOf(t)+t.length)}return e.startsWith(c.WW)?e.replace(c.WW+"/","").replace(c.WW,""):e.includes("/")||t?void 0:e}}function u(e){if(!e.includes("%2F"))return e;try{return decodeURIComponent(e)}catch(t){return e}}function s(e,t){return e?Env.isWorker||(0,r.X)(t)!==(0,r.X)(l.CURRENT_KNOWLEDGE_BASE)?y(e)??e:h(t,e)??"":""}function h(e,t){return y(t)??t}function m(e){return!!d(e,!0)}function g(e){return e?.startsWith("local")&&e?.includes("remnote")&&e?.includes("/files/")}function f(e){let t=d(e);return t?c.WW+t:void 0}function y(e){let t=d(e);return t?S(t):void 0}let p="dev_";function w(e){return c.PV.some(t=>e.startsWith(t))}function S(e){let t;return((t=d(e),e?.startsWith(p)||t?.startsWith(p))?c.Wk:c.aE)+e}function I(e){return y(e)??e}function T(e,t){var n;let r;return(0,a.Qo)(t)||(0,a.yb)(t)?y(e):d(e)?-1===(r=(n=(0,o.yh)((0,i.L)(t)??"","\\","/")+"/files/"+d(e)).indexOf("?"))?n:n.substring(0,r):void 0}},504136:function(e,t,n){n.d(t,{qi:function(){return a}});var o=n(448445);let r=o.Env.app.isPlaywright||!o.Env.isWorker&&n.g.localStorage&&localStorage?.getItem("overrideDate"),a=r?function(...e){return new Date(...e)}:n.g.Date;r&&(a.now=function(...e){return new a().getTime(...e)}),n.g.clearGlobalDateOverrides=()=>{},n.g.restoreGlobalDateOverride=()=>{}},746391:function(e,t,n){n.d(t,{E:function(){return r}}
3),n(230357),n(448445);var o=n(111133);function r(e){return function(...e){return e.join("/")}("","remnote",(0,o.yh)(e,RegExp("[\\s\\/]","g"),"_"))}},495167:function(e,t,n){n.d(t,{L:function(){return c}});var o=n(209728),r=n(622965),a=n(641365),i=n(21040),l=n(746391);function c(e){let t=(0,i.X)(e),n=t===(Accounts.userId()??r.Mn),c=a.N.get().some(e=>e._id===t);return n||c?(0,l.E)((0,o.Z)(t)):a.u.get().find(e=>e._id===t)?.directory}},519166:function(e,t,n){n.d(t,{Tx:function(){return r},Ty:function(){return a},n:function(){return i}});var o=n(618637);function r(e){Env.isWorker||"MigrationPage"==FlowRouter.getRouteName()||Env.app.isPlaywright||void 0!=o.TabSyncedSession.migrationPageProgress.get()||a(0,e)}function a(e,t){o.TabSyncedSession.migrationPageProgress.set(e,t)}function i(){o.TabSyncedSession.migrationPageProgress.set(void 0,"leave TinyGraph migration page after load finishes")}},974510:function(e,t,n){n.r(t),n.d(t,{deleteLatestTabInformedWorkerWriteBatchCounter:function(){return p},getLatestTabInformedWorkerDebugInfo:function(){return m},getWorkerWriteBatchCounter:function(){return c},incrementWorkerWriteBatchCounter:function(){return l},latestTabInformedWorkerWriteBatchCounter:function(){return g},latestTabReceivedWorkerWriteBatchCounter:function(){return d},setLatestTabInformedWorkerWriteBatchCounter:function(){return f},setLatestTabReceivedWorkerWriteBatchCounter:function(){return u},waitUntilReceivedLatestWorkerWriteBatchCounter:function(){return w},withWaitUntilReceivedLatestWorkerWriteBatchCounter:function(){return S}});var o=n(158876),r=n(713885),a=n(513217);let i={};function l(e){return i[e]||(i[e]=0),i[e]+=1,i[e]}async function c(){return await (0,a.waitUntilFinishedAllWriteGuarantees)("getWorkerWriteBatchCounter"),i}let d={};function u(e,t){d[e]=Math.max(t,d[e]||0),h()}let s=new o.lN("receivedLatestWorkerWriteBatchCounter");function h(){let e=y.map(e=>d[e]&&d[e]>=g[e]);s.set(_.all(e))}function m(){let e=y.map(e=>d[e]&&d[e]>=g[e]);return[JSON.stringify(_.zip(y,y.map(e=>g[e]),y.map(e=>d[e]),e)),JSON.stringify(d),JSON.stringify(g)]}let g={};function f(e){for(let t of _.keys(e))g[t]=e[t];h()}let y=[];function p(e){y.push(e),delete g[e],h()}async function w(){await (0,r.runJob)("Worker","receivedLatestWorkerWriteBatchCounter",async()=>{await s.waitUntilTrue()})}async function S(e){f(await e),await w()}},365981:function(e,t,n){n.d(t,{b:function(){return a}});var o=n(734637),r=n(111133);let a=(0,n(848975).x)({IsFolder:{name:(0,r.Ib)("Is Folder"),code:"f",hidden:!0,allowInNoTextGraphExport:!0},Status:{name:(0,r.Ib)("Status",{},"df48a06b"),code:o.oJ[o.SD.Document].Status,canQueryInSearchPortals:!0,hidden:!0,allowInNoTextGraphExport:!0,defaultEnumValue:"Draft",enumValues:{DRAFT:"Draft",FINISHED:"Finished",PINNED:"Pinned"},enumValueTinygraphIntegerIds:{DRAFT:1,FINISHED:2,PINNED:3}},DeprecatedSource:{name:(0,r.Ib)("Source",{},"df48a06b"),code:"o",hidden:!0,allowInNoTextGraphExport:!0},FolderClassId:{name:(0,r.Ib)("Folder Class Id"),code:o.oJ[o.SD.Document].FolderClassId,hidden:!0,allowInNoTextGraphExport:!0},FolderClassName:{name:(0,r.Ib)("Folder Class Name"),code:o.oJ[o.SD.Document].FolderClassName,hidden:!0,allowInNoTextGraphExport:!0},CoverImage:{name:(0,r.Ib)("Cover Image"),code:"c",hidden:!0,allowInNoTextGraphExport:!0},BulletIcon:{name:(0,r.Ib)("Bullet Icon",{},"df48a06b"),code:"b",hidden:!0,allowInNoTextGraphExport:!0},HideBullets:{name:(0,r.Ib)("Hide Bullets",{},"df48a06b"),code:"h",hidden:!0,allowInNoTextGraphExport:!0},FullWidth:{name:(0,r.Ib)("Full Width",{},"df48a06b"),code:"w",allowInNoTextGraphExport:!0,hidden:!0},EnableLearnWithAITutorUI:{name:(0,r.Ib)("Enable Learn With AI Tutor UI"),code:o.oJ[o.SD.Document].EnableLearnWithAITutorUI,allowInNoTextGraphExport:!0,hidden:!0}})},807715:function(e,t,n){n.d(t,{$B:function(){return R},FT:function(){return p},GV:function(){return i},HT:function(){return v},J5:function(){return s},Kr:function(){return k},Lc:function(){return A},Lx:function(){return l},M_:function(){return d},OD:function(){return D},PA:function(){return u},T1:function(){return b},ad:function(){return S},fm:function(){return T},gc:function(){return L},gx:function(){return h},hg:function(){return I},iE:function(){return C},jB:function(){return M},oT:function(){return c},r4:function(){return x},s8:function(){return N},tf:function(){return F},xm:function(){return w},zv:function(){return P},zz:function(){return E}});var o=n(734637),r=n(158876),a=n(520236);let i=new r.lN("registeredPowerupsFlag"),l={},c={},d={};function u(){return Object.entries(d).filter(([,e])=>e?.enumValues!=null).map(([e])=>e)}let s={STRING:"s",VALUE:"v",REM_ID:"_id"},h={},m={h:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},aigfs:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},r:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},d:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!1,hasPowerupRem:!0,hideTagByDefault:!1,onlyProgrammaticTagging:!0,singletonKeySlotCode:"d"},e:{allowImportFromArticle:!0,hasPowerupRem:!0,hideTagByDefault:!0},a:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!1},t:{allowImportFromArticle:!0,hasPowerupRem:!0,hideTagByDefault:!0},o:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},s:{allowImportFromArticle:!1,hasPowerupRem:!1,hideTagByDefault:!0},m:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!1},tt:{allowImportFromArticle:!0,applyRecursively:!0,dontAllowMergingInstances:!1,dontShowAutomaticSearchPortals:!1,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!1},ct:{allowImportFromArticle:!0,applyRecursively:!1,dontAllowMergingInstances:!1,dontShowAutomaticSearchPortals:!1,hasPowerupRem:!0,hideTagByDefault:!1,onlyProgrammaticTagging:!1},c:{allowImportFromArticle:!0,hasPowerupRem:!0,hideTagByDefault:!1},g:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!0,hideTagByDefault:!0},at:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},q:{allowImportFromArticle:!0,hasPowerupRem:!0,hideTagByDefault:!1},j:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0},cd:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},f:{allowImportFromArticle:!1,dontAllowMergingInstances:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},n:{allowImportFromArticle:!1,dontDisplayBullet:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},hh:{allowImportFromArticle:!1,dontDisplayBullet:!1,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},ah:{allowImportFromArticle:!1,dontDisplayBullet:!1,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},x:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!1},l:{allowImportFromArticle:!0,dontChangeTagsOnMerge:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},u:{allowImportFromArticle:!0,applyRecursively:!0,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!1},i:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyM
3oveTypeParentWhenMergeWithSibling:!0,onlyProgrammaticTagging:!1},w:{allowImportFromArticle:!0,dontChangeTagsOnMerge:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyMoveTypeParentWhenMergeWithSibling:!1,onlyProgrammaticTagging:!1},qe:{allowImportFromArticle:!0,dontAllowMergingInstances:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},y:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!1},b:{allowImportFromArticle:!0,dontAllowMergingInstances:!0,dontShowAutomaticSearchPortals:!1,hasPowerupRem:!0,hideTagByDefault:!0,onlyProgrammaticTagging:!0,singletonKeySlotCode:"u"},z:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!1,hasPowerupRem:!0,hideTagByDefault:!1,onlyProgrammaticTagging:!0,singletonKeySlotCode:"u"},os:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},k:{allowImportFromArticle:!1,applyRecursively:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!1},toc:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},ew:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},p:{allowImportFromArticle:!1,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},qt:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},mc:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyMoveTypeParentWhenMergeWithSibling:!0,onlyProgrammaticTagging:!1},dv:{allowImportFromArticle:!0,dontAllowMergingInstances:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},clo:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyMoveTypeParentWhenMergeWithSibling:!0,onlyProgrammaticTagging:!1},ty:{allowImportFromArticle:!0,applyRecursively:!0,hasPowerupRem:!1,hideTagByDefault:!1},de:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},class:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},lecture:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},sp:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},rt:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!1,hasPowerupRem:!0,hideTagByDefault:!0},pn:{allowImportFromArticle:!1,dontDisplayBullet:!1,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},te:{allowImportFromArticle:!0,applyRecursively:!0,dontAllowMergingInstances:!1,dontShowAutomaticSearchPortals:!1,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!1},cl:{allowImportFromArticle:!1,dontAllowMergingInstances:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!0},sc:{allowImportFromArticle:!1,dontAllowMergingInstances:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!0},ha:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},ssd:{allowImportFromArticle:!1,dontAllowMergingInstances:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},ssa:{allowImportFromArticle:!1,dontAllowMergingInstances:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},sslo:{allowImportFromArticle:!1,dontAllowMergingInstances:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},sd:{allowImportFromArticle:!1,hasPowerupRem:!0,hideTagByDefault:!1},im:{allowImportFromArticle:!0,dontChangeTagsOnMerge:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},tts:{allowImportFromArticle:!0,applyRecursively:!0,hasPowerupRem:!1,hideTagByDefault:!1},vi:{allowImportFromArticle:!1,dontAllowMergingInstances:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},vh:{allowImportFromArticle:!1,dontDisplayBullet:!1,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},cc:{allowImportFromArticle:!0,applyRecursively:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!1},ip:{allowImportFromArticle:!1,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!1},exam:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},mcat:{allowImportFromArticle:!1,hasPowerupRem:!0,hideTagByDefault:!0},mcat1:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!1},mcat2:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!1},mcat3:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!1},asp:{allowImportFromArticle:!1,hasPowerupRem:!0,hideTagByDefault:!1},phs:{allowImportFromArticle:!1,dontDisplayBullet:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},au:{allowImportFromArticle:!1,dontAllowMergingInstances:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},dp:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},dr:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},ci:{allowImportFromArticle:!0,hasPowerupRem:!0,hideTagByDefault:!0},lpc:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},qx:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!1},qz:{allowImportFromArticle:!0,canShowInstancesInBacklinks:!1,hasPowerupRem:!1,hideTagByDefault:!1,onlyProgrammaticTagging:!0},aipx:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0},aigns:{allowImportFromArticle:!0,dontShowAutomaticSearchPortals:!0,hasPowerupRem:!1,hideTagByDefault:!0},aigsrc:{allowImportFromArticle:!0,hasPowerupRem:!1,hideTagByDefault:!0,onlyProgrammaticTagging:!0}},g={h:"Highlight",aigfs:"AI Generated Flashcard Section",r:"Heading",d:"Daily Document",e:"Edit Later",a:"Automatically Sort",t:"Todo",o:"Document",s:"Document Sidebar",m:"Automatically Activate Template (Deprecated)",tt:"Tag Template",ct:"Collections",c:"Custom CSS",g:"Tags",at:"Applied Templates",q:"Quick Add",j:"Emoji",cd:"Co
3de",f:"File",n:"PDF Highlight",hh:"HTML Highlight",ah:"Audio Highlight",x:"Extra Card Detail",l:"Bullet With An Alias",u:"Disable Descendant Cards",i:"List Item",w:"Card Item",qe:"Queue Edit Status",y:"Template Slot",b:"Link",z:"Website",os:"Source List",k:"Super Private",toc:"Table of Contents",ew:"Embed Website",p:"Web Highlight",qt:"Quote",mc:"Multiple-Choice Card",dv:"Divider",clo:"Callout",ty:"Type in Answer",de:"Deck",class:"Class",lecture:"Lecture",sp:"Search Portal",rt:"Restored from Trash",pn:"PDF Page Number",te:"Template (Deprecated)",cl:"Columns",sc:"Single Column",ha:"Hide Queue Ancestors",ssd:"Saved Study Deck",ssa:"Saved Shared Article Study",sslo:"Saved Shared Learning Outline",sd:"Saved Documents",im:"Image",tts:"Text to Speech",vi:"Video",vh:"HTML Highlight",cc:"Card Cluster",ip:"In Progress",exam:"Exam",mcat:"RemNote MCAT",mcat1:"MCAT - Essential 5k Cards",mcat2:"MCAT - Core 10k Cards",mcat3:"MCAT - Complete 17k Cards",asp:"AI Tutor Commands",phs:"PDF Highlight Section",au:"Audio Recording",dp:"Handwritten Document",dr:"Drawing Items",ci:"Calendar",lpc:"Learn PDF Content",qx:"Quiz Explanation",qz:"Quiz",aipx:"AI Practice Exam",aigns:"AI Generated Notes Section",aigsrc:"AI Generated Source"},f={"h.c":{name:"Color",code:"c",hidden:!0,defaultEnumValue:"Orange",onlyProgrammaticModifying:!0,enumValues:{RED:"Red",ORANGE:"Orange",YELLOW:"Yellow",GREEN:"Green",BLUE:"Blue",PURPLE:"Purple",GRAY:"Gray",BROWN:"Brown",PINK:"Pink"},allowInNoTextGraphExport:!0},"r.s":{name:"Size",code:"s",hidden:!0,defaultEnumValue:"H1",enumValues:{H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6"},onlyProgrammaticModifying:!0,allowInNoTextGraphExport:!0},"d.s":{name:"Timestamp",code:"s",hidden:!0,allowInNoTextGraphExport:!0,dontShowInHiddenChildrenLists:!0,onlyProgrammaticModifying:!0},"d.d":{name:"Date String",code:"d",hidden:!0,allowInNoTextGraphExport:!0,dontShowInHiddenChildrenLists:!0,onlyProgrammaticModifying:!0},"e.m":{name:"Message",code:"m",hidden:!1,dontShowInHiddenChildrenLists:!0,tagAsSlot:!0,fieldType:"text",fieldLocation:"label"},"a.d":{name:"Sort Order",code:"d",hidden:!0,allowInNoTextGraphExport:!0,enumValues:{ASCENDING:"ASC",DESCENDING:"DESC"},defaultEnumValue:"ASC"},"t.dd":{name:"Due Date",code:"dd",hidden:!1,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldType:"text",fieldLocation:"only_document"},"t.dt":{name:"Due Time",code:"dt",hidden:!0,allowInNoTextGraphExport:!0,fieldType:"text",fieldLocation:"only_document"},"t.ddm":{name:"Due Duration",code:"ddm",hidden:!0,allowInNoTextGraphExport:!0,fieldType:"text",fieldLocation:"only_document"},"t.dtz":{name:"Due Time Zone",code:"dtz",hidden:!0,allowInNoTextGraphExport:!0,fieldType:"text",fieldLocation:"only_document"},"t.sd":{name:"Start Date",code:"sd",hidden:!1,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldType:"text",fieldLocation:"only_document"},"t.st":{name:"Start Time",code:"st",hidden:!0,allowInNoTextGraphExport:!0,fieldType:"text",fieldLocation:"only_document"},"t.sdm":{name:"Start Duration",code:"sdm",hidden:!0,allowInNoTextGraphExport:!0,fieldType:"text",fieldLocation:"only_document"},"t.stz":{name:"Start Time Zone",code:"stz",hidden:!0,allowInNoTextGraphExport:!0,fieldType:"text",fieldLocation:"only_document"},"t.p":{name:"Priority",code:"p",hidden:!1,allowInNoTextGraphExport:!0,enumValues:{P1:"1",P2:"2",P3:"3",P4:"4"},tagAsSlot:!0,fieldType:"single_select",fieldLocation:"only_document"},"t.r":{name:"Repeats",code:"r",hidden:!0,allowInNoTextGraphExport:!0,defaultEnumValue:"None",enumValues:{NONE:"None",DAILY:"Daily",WEEKLY:"Weekly",MONTHLY:"Monthly",WEEKDAY:"Weekday",CUSTOM:"Custom"},fieldType:"single_select",fieldLocation:"only_document"},"t.rr":{name:"Repeat Rule",code:"rr",hidden:!0,allowInNoTextGraphExport:!0,fieldType:"text",fieldLocation:"only_document"},"t.s":{name:"Status",code:"s",hidden:!0,allowInNoTextGraphExport:!0,defaultEnumValue:"Unfinished",enumValues:{FINISHED:"Finished",UNFINISHED:"Unfinished"},tagAsSlot:!0,fieldType:"single_select",fieldLocation:"only_document",canQueryInSearchPortals:!0},"o.f":{name:"Is Folder",code:"f",hidden:!0,allowInNoTextGraphExport:!0},"o.s":{name:"Status",code:"s",canQueryInSearchPortals:!0,hidden:!0,allowInNoTextGraphExport:!0,defaultEnumValue:"Draft",enumValues:{DRAFT:"Draft",FINISHED:"Finished",PINNED:"Pinned"},enumValueTinygraphIntegerIds:{DRAFT:1,FINISHED:2,PINNED:3}},"o.o":{name:"Source",code:"o",hidden:!0,allowInNoTextGraphExport:!0},"o.fcid":{name:"Folder Class Id",code:"fcid",hidden:!0,allowInNoTextGraphExport:!0},"o.fcn":{name:"Folder Class Name",code:"fcn",hidden:!0,allowInNoTextGraphExport:!0},"o.c":{name:"Cover Image",code:"c",hidden:!0,allowInNoTextGraphExport:!0},"o.b":{name:"Bullet Icon",code:"b",hidden:!0,allowInNoTextGraphExport:!0},"o.h":{name:"Hide Bullets",code:"h",hidden:!0,allowInNoTextGraphExport:!0},"o.w":{name:"Full Width",code:"w",allowInNoTextGraphExport:!0,hidden:!0},"o.at":{name:"Enable Learn With AI Tutor UI",code:"at",allowInNoTextGraphExport:!0,hidden:!0},"ct.t":{name:"Template",code:"t",hidden:!0,hideSlotOnPowerupPage:!0},"g.p":{name:"Pinned on Tags Page",code:"p",hidden:!0,tagAsSlot:!0,fieldType:"checkbox",fieldLocation:"only_table",dontShowInHiddenChildrenLists:!0,allowInNoTextGraphExport:!0},"g.a":{name:"Auto Activate Template",code:"a",hidden:!0,allowInNoTextGraphExport:!0},"g.gt":{name:"Is Simple Table Tag",code:"gt",hidden:!0,allowInNoTextGraphExport:!0},"g.c":{name:"Collapse Tag Configure Options",code:"c",hidden:!0,allowInNoTextGraphExport:!0},"g.n":{name:"Primary Column Name",code:"n",hidden:!0,allowInNoTextGraphExport:!0},"at.t":{name:"Templates",code:"t",hidden:!0,allowInNoTextGraphExport:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"cd.l":{name:"Language",code:"l",hidden:!0,allowInNoTextGraphExport:!0},"cd.w":{name:"Wrap",code:"w",hidden:!0,allowInNoTextGraphExport:!0},"cd.b":{name:"BoundHeight",code:"b",hidden:!0,allowInNoTextGraphExport:!0},"f.dkp":{name:"DisableKeyPoints",code:"dkp",hidden:!0,onlyProgrammaticModifying:!0},"f.ait":{name:"HasAIComputedTitle",code:"ait",hidden:!0,onlyProgrammaticModifying:!0},"f.u":{name:"URL",code:"u",hidden:!0,onlyProgrammaticModifying:!0},"f.n":{name:"Name",code:"n",hidden:!0,onlyProgrammaticModifying:!0},"f.a":{name:"Authors",code:"a",hidden:!0},"f.k":{name:"Keywords",code:"k",hidden:!0},"f.i":{name:"Title",code:"i",hidden:!0},"f.v":{name:"ViewerData",code:"v",hidden:!0,onlyProgrammaticModifying:!0},"f.r":{name:"ReadPercent",code:"r",hidden:!0,onlyProgrammaticModifying:!0},"f.d":{name:"LastReadDate",code:"d",hidden:!0,onlyProgrammaticModifying:!0},"f.ocrs":{name:"OCRRequestStatus",code:"ocrs",hidden:!0,onlyProgrammaticModifying:!0}
3,"f.do":{name:"DidOCR",code:"do",hidden:!0,onlyProgrammaticModifying:!0},"f.tl":{name:"HasNoTextLayer",code:"tl",hidden:!0,onlyProgrammaticModifying:!0},"f.ou":{name:"URLBeforeOCR",code:"ou",hidden:!0,onlyProgrammaticModifying:!0},"f.h":{name:"Theme",code:"h",hidden:!0,onlyProgrammaticModifying:!0},"f.op":{name:"OfflinePath",code:"op",hidden:!0,onlyProgrammaticModifying:!0},"f.vhm":{name:"ViewInHTMLMode",code:"vhm",hidden:!0,onlyProgrammaticModifying:!0},"f.em":{name:"ExpandedMargin",code:"em",hidden:!0,onlyProgrammaticModifying:!0},"f.lar":{name:"LinkedAudioRecordingId",code:"lar",hidden:!0,onlyProgrammaticModifying:!0},"n.d":{name:"Data",code:"d",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0,allowInNoTextGraphExport:!0},"n.p":{name:"PDF",code:"p",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0,allowInNoTextGraphExport:!0},"hh.d":{name:"Data",code:"d",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0},"hh.h":{name:"HTML",code:"h",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0},"ah.d":{name:"Data",code:"d",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0},"ah.a":{name:"Audio",code:"a",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0},"l.a":{name:"Aliases",code:"a",hidden:!1,tagAsSlot:!0,fieldType:"text",fieldLocation:"label"},"qe.d":{name:"Dismissed",code:"d",hidden:!0,allowInNoTextGraphExport:!0},"y.t":{name:"Select Tag",code:"t",hidden:!0,allowInNoTextGraphExport:!0},"y.f":{name:"Extra Slots on Front of Card",code:"f",hidden:!0,allowInNoTextGraphExport:!0},"y.b":{name:"Extra Slots on Back of Card",code:"b",allowInNoTextGraphExport:!0,hidden:!0},"b.u":{name:"URL",code:"u",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"b.s":{name:"ShouldOpenInTextReader",code:"s",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"b.t":{name:"Title",code:"t",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"b.r":{name:"ReadPercent",code:"r",hidden:!0,onlyProgrammaticModifying:!0},"b.d":{name:"LastReadDate",code:"d",hidden:!0,onlyProgrammaticModifying:!0},"b.f":{name:"FileURL",code:"f",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"b.ait":{name:"HasAIComputedTitle",code:"ait",hidden:!0,onlyProgrammaticModifying:!0},"b.h":{name:"Theme",code:"h",hidden:!0,onlyProgrammaticModifying:!0},"b.ff":{name:"FontFamily",code:"ff",hidden:!0,onlyProgrammaticModifying:!0},"b.fs":{name:"FontSize",code:"fs",hidden:!0,onlyProgrammaticModifying:!0},"b.lh":{name:"LineHeight",code:"lh",hidden:!0,onlyProgrammaticModifying:!0},"z.u":{name:"hostname",code:"u",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"os.os":{name:"Sources",code:"os",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0,allowInNoTextGraphExport:!0},"ew.u":{name:"URL",code:"u",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0,allowInNoTextGraphExport:!1},"ew.w":{name:"WIDTH",code:"w",hidden:!0,onlyProgrammaticModifying:!0,allowInNoTextGraphExport:!0,hideSlotOnPowerupPage:!0},"ew.h":{name:"HEIGHT",code:"h",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0,allowInNoTextGraphExport:!0},"p.d":{name:"Data",code:"d",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0},"p.w":{name:"Webpage URL",code:"w",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0},"clo.b":{name:"Bullet Icon",code:"b",hidden:!0,allowInNoTextGraphExport:!0},"de.t":{name:"DEPRECATED_TOPICS",code:"t",hidden:!0,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldType:"multi_select",selectSourceType:"any",fieldLocation:"only_document"},"de.s":{name:"Status",code:"s",hidden:!0,allowInNoTextGraphExport:!0,enumValues:{UPCOMING_EXAM:"Exam",ACTIVE:"Active",MAINTAINING:"Maintaining",PAUSED:"Paused"},enumValueTinygraphIntegerIds:{ACTIVE:1,MAINTAINING:2,PAUSED:3,UPCOMING_EXAM:4},defaultEnumValue:"Active",tagAsSlot:!0,fieldType:"single_select",fieldLocation:"only_table",dontPublishToSharedArticle:!0},"de.e":{name:"ExamDate",code:"e",hidden:!0,allowInNoTextGraphExport:!0},"de.r":{name:"RetrievabilityPeriodStartDate",code:"r",hidden:!0,allowInNoTextGraphExport:!0},"de.ec":{name:"ExamConfig",code:"ec",hidden:!0,allowInNoTextGraphExport:!0},"de.emcd":{name:"ExamSchedulerIsCollectionOfDocuments",code:"emcd",hidden:!0,allowInNoTextGraphExport:!0},"class.ci":{name:"Class Information",code:"ci",hidden:!0,allowInNoTextGraphExport:!1},"class.ld":{name:"Learning Days",code:"ld",hidden:!0,allowInNoTextGraphExport:!1},"lecture.d":{name:"Date",code:"d",hidden:!0,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldLocation:"right"},"lecture.hl":{name:"Has Learned",code:"hl",hidden:!0,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldLocation:"right"},"lecture.np":{name:"No PDFs",code:"np",hidden:!0,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldLocation:"right"},"lecture.ds":{name:"Done Steps",code:"ds",hidden:!0,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldLocation:"right"},"sp.q":{name:"Query",code:"q",hidden:!0,allowInNoTextGraphExport:!0},"sp.f":{name:"Filter",code:"f",hidden:!0,allowInNoTextGraphExport:!0},"sp.b":{name:"Auto For",code:"b",hidden:!0,allowInNoTextGraphExport:!0},"sp.s":{name:"Show Nested Descendants",code:"s",hidden:!0,allowInNoTextGraphExport:!0},"sp.h":{name:"Hidden Columns",code:"h",hidden:!0},"rt.d":{name:"Date",code:"d",hidden:!0,dontShowInHiddenChildrenLists:!0,onlyProgrammaticModifying:!0,allowInNoTextGraphExport:!0},"sc.w":{name:"Width",code:"w",hidden:!0,allowInNoTextGraphExport:!0},"ssd.i":{name:"StudyDeckId",code:"i",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"ssd.t":{name:"StudyDeckTitle",code:"t",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"ssa.i":{name:"ArticleId",code:"i",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"ssa.t":{name:"ArticleTitle",code:"t",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"sslo.i":{name:"OutlineId",code:"i",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"sslo.t":{name:"OutlineTitle",code:"t",hidden:!0,onlyProgrammaticModifying:!0,dontShowInHiddenChildrenLists:!0,hideSlotOnPowerupPage:!0},"im.i":{name:"Image",code:"i",hidden:!0,tagAsSlot:!0,fieldType:"text"},"vi.u":{name:"URL",code:"u",hidden:!0,onlyProgrammaticModifying:!0},"vi.tu":{name:"TranscriptURL",code:"tu",hidden:!0,onlyProgrammaticModifying:!0},"vi.n":{name:"Name",code:"n",hidden:!0,onlyProgrammaticModifying:!0},"vi.t":{name:"Title",code:"t",hidden:!0,onlyProgrammaticModifying:!0},"vh.d":{name:"Data",code:"d",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0},"vh.p":{name:"RemVideoId",code:"p",hidden:!0,onlyProgrammaticModifying:!0,hideSlotOnPowerupPage:!0},"cc.t":{name:"Test Rows In Random Order",code:"t",hidden:!0,allowInNoTextGraphExport:!0},"ip.l":{name:"Last Watched Time",code:"l",hidden:!0,allowInNoTextGraphExport:!0},"ip.d":{name:"Total Duration",code:"d",hidden:!0,allowInNoTextGraphExport:!0},"ip.s":{name:"Desired Cards State",code:"s",hidden:!0},"ip.v":{name:"Video Player Settings",code:"v",hidden:!0},"au.afd":{name:"AudioFileDurations",code:"afd",hidden:!0,onlyProgrammaticModifying:!0},"au.a":{name:"AudioFileNames",code:"a",hidden:!0,onlyProgrammaticModifying:!0},"au.ast":{name:"AudioFileStartTimes",code:"ast",hidden:!0,onlyProgrammaticModifying:!0},"au.h":{name:"Theme",code:"h",hidden:!0,onlyProgrammaticModifying:!0},"au.ait":{name:"HasAIComputedTitle",code:"ait",hidden:!0,onlyProgrammaticModifying:!0},"au.ht":{name:"HasTranscript",code:"ht",hidden:!0,onlyProgrammaticModifying:!0},"au.tlc":{name:"TranscriptionLanguageCode",code:"tlc",hidden:!0,onlyProgrammaticModifying:!0}
3,"au.ff":{name:"TranscriptFontFamily",code:"ff",hidden:!0,onlyProgrammaticModifying:!0},"au.fs":{name:"TranscriptFontSize",code:"fs",hidden:!0,onlyProgrammaticModifying:!0},"au.lh":{name:"TranscriptLineHeight",code:"lh",hidden:!0,onlyProgrammaticModifying:!0},"au.pdfpa":{name:"PDFPageAlignment",code:"pdfpa",hidden:!0,onlyProgrammaticModifying:!0},"dp.np":{name:"Pages",code:"np",hidden:!0},"dp.ic":{name:"Infinite Canvas",code:"ic",hidden:!0},"dp.z":{name:"Last Zoom Workspace Point",code:"z",hidden:!0},"dp.t":{name:"Theme",code:"t",hidden:!0},"dp.lt":{name:"Enable Learn This UI",code:"lt",hidden:!0},"ci.sd":{name:"Scheduled Date",code:"sd",hidden:!1,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldType:"text",fieldLocation:"only_document"},"ci.st":{name:"Time",code:"st",hidden:!1,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldType:"text",fieldLocation:"only_document"},"ci.et":{name:"End Time",code:"et",hidden:!1,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldType:"text",fieldLocation:"only_document"},"ci.ed":{name:"Repeat Until",code:"ed",hidden:!1,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldType:"text",fieldLocation:"only_document"},"ci.ro":{name:"Reminder",code:"ro",hidden:!1,allowInNoTextGraphExport:!0,tagAsSlot:!0,fieldType:"text",fieldLocation:"only_document"},"ci.r":{name:"Repeats",code:"r",hidden:!1,allowInNoTextGraphExport:!0,defaultEnumValue:"None",enumValues:{NONE:"None",DAILY:"Daily",WEEKLY:"Weekly",MONTHLY:"Monthly",WEEKDAY:"Weekday",CUSTOM:"Custom"},tagAsSlot:!0,fieldType:"single_select",fieldLocation:"only_document"},"ci.rr":{name:"Repeat Rule",code:"rr",hidden:!0,allowInNoTextGraphExport:!0},"ci.cd":{name:"Completed Dates",code:"cd",hidden:!0,allowInNoTextGraphExport:!0},"ci.xd":{name:"Excluded Dates",code:"xd",hidden:!0,allowInNoTextGraphExport:!0},"qz.lps":{name:"Last Practice Score",code:"lps",hidden:!0,allowInNoTextGraphExport:!0},"aipx.eid":{name:"Latest Practice Exam ID",code:"eid",hidden:!0,allowInNoTextGraphExport:!0}},y=new Set;function p(e){y.add(e),e(h)}function w(){for(let e of(Object.assign(h,m),Object.assign(c,g),Object.assign(d,f),y))e(h)}function S(e){return l[e]??h[e]}function I(e){let t=e.POWERUP_CODE;for(let n of(l[t]=e,h[t]={allowImportFromArticle:e.allowImportFromArticle,applyRecursively:e.applyRecursively,canShowInstancesInBacklinks:e.canShowInstancesInBacklinks,dontAllowMergingInstances:e.dontAllowMergingInstances,dontChangeTagsOnMerge:e.dontChangeTagsOnMerge,dontDisplayBullet:e.dontDisplayBullet,dontShowAutomaticSearchPortals:e.dontShowAutomaticSearchPortals,hasPowerupRem:e.hasPowerupRem,hideTagByDefault:e.hideTagByDefault,onlyMoveTypeParentWhenMergeWithSibling:e.onlyMoveTypeParentWhenMergeWithSibling,onlyProgrammaticTagging:e.onlyProgrammaticTagging,singletonKeySlotCode:e.singletonKeySlotCode},c[t]=e.POWERUP_NAME,Object.values(e.POWERUP_SLOTS)))d[P(t,n.code)]=n}let T=new a.M("temporaryForceMakeRemEditable");function b(e){return Object.values(o.SD).includes(e)}function P(e,t){return`${e}.${t}`}function E(e){return S(e)?.allowImportFromArticle}function A(e){return S(e)?.hasPowerupRem!==!1}function v(e){return S(e)?.canShowInstancesInBacklinks}function D(e){return S(e)?.dontAllowMergingInstances}function x(e){return S(e)?.dontDisplayBullet}function k(e){return S(e)?.hideTagByDefault}function C(e){return S(e)?.onlyProgrammaticTagging}function N(e){return d[e]?.hidden}function M(e){return!!d[e]?.hideSlotOnPowerupPage}function R(e,t){return t.startsWith(`${e}_`)&&![...Object.keys(l),...Object.keys(h)].some(n=>n.length>e.length&&t.startsWith(`${n}_`))}function L(){for(let e of(i.set(!1),Object.keys(l)))delete l[e];for(let e of Object.keys(h))delete h[e];for(let e of Object.keys(c))delete c[e];for(let e of Object.keys(d))delete d[e]}function F(e){let t=Object.keys(c).sort((e,t)=>t.length-e.length).find(t=>R(t,e));if(t)return{powerupCode:t,slotCode:e.substring(t.length+1)}}},782929:function(e,t,n){n.d(t,{Bp:function(){return s},Fu:function(){return u},Rn:function(){return h},uv:function(){return c},vC:function(){return m},we:function(){return l},zC:function(){return d}});var o=n(385190),r=n(504136),a=n(415610),i=n(463591);function l(){return(r.qi.now()+(0,i.r)())/1e3}function c(e=new r.qi){return(0,o.oc)(),h({date:e,type:"end_of_day"})}function d(e=new r.qi){return new Date(c(e).getTime()+1)}function u(e){(0,o.oc)();let t=new Date(e);return t.setHours(t.getHours()-(0,i.A)()),t.setHours(0,0,0,0),t}function s(e){return u(e).toDateString()}function h({date:e,type:t}){let n=(0,i.A)(),o=new Date(e);return o.setHours(o.getHours()-n),"end_of_day"===t?o.setHours(23+n,59,59,999):o.setHours(n,0,0,0),o}function m(e){let t=new Date(e.getTime());return t.setHours(t.getHours()+(a.ce.get()+2)),t}},463591:function(e,t,n){n.d(t,{A:function(){return h},r:function(){return u}});var o=n(410721),r=n(385190),a=n(415610),i=n(79682);let l=null,c=null;function d(){let e=a.LZ.get();return 6e4*(isNaN(e)?15:e)}function u(){return l??d()}function s(){let e=a.ce.get();return isNaN(e)?4:e}function h(){return c||s()}(0,r.Xq)(async()=>{await i._.waitUntilLoaded(),o.Tracker.autorun(()=>{l=d()},"learnAheadLimitMsCached"),o.Tracker.autorun(()=>{c=s()},"nextDayStartsAtCached")})},952726:function(e,t,n){n.r(t),n.d(t,{getDuplicateKeyString:function(){return p},hasDuplicateChildrenWithKey:function(){return d},hasDuplicateChildrenWithKeyAsync:function(){return u},remIdsWithKey:function(){return g},remIdsWithKeyAsync:function(){return f},resetDuplicateKeyCache:function(){return s}});var o=n(474753),r=n(860337),a=n(21040);n(937859);var i=n(698953),l=n(687439),c=n(133014);function d(e,t,n){return g(e,t,n).length>1}async function u(e,t){return(await f(e,t)).length>1}async function s(){h.clear()}let h=new r.mr(async(e,t)=>{if((0,c.Hj)(e).hasDatabaseStore){let n=await (await (0,c.Hj)(e).getDatabaseStore())?.wherePropertyEquals(l.Pr.DUPLICATE_KEY_STRING,t);n&&await (0,c.Hj)(e).ensureDocsExistFromQuery(n,"duplicateKeyLoaders")}});async function m(e,t){e=(0,a.X)(e),t&&await h.ensureRanOnce(e,t)}function g(e,t,n){return n.runSQL&&m(e,t),t?(0,c.Hj)(e).find({[l.Pr.DUPLICATE_KEY_STRING]:t},{useIndex:l.Pr.DUPLICATE_KEY_STRING}).fetch().filter(e=>!(0,i._x)(e)).map(e=>e._id):[]}async function f(e,t){return(await y(e,t)).map(e=>e._id)}async function y(e,t){return t?(await m(e,t),await (await n.e("34179").then(n.bind(n,280078))).flushAllBackgroun
3dJobs("remIdsWithKeyAsync"),(0,c.Hj)(e).find({[l.Pr.DUPLICATE_KEY_STRING]:t},{useIndex:l.Pr.DUPLICATE_KEY_STRING}).fetch().filter(e=>!(0,i._x)(e))):[]}function p(e,t,{knowledgeBaseId:n}){let r=o.toString(e,{knowledgeBaseId:n});return r?`${t||null}.${r}`:void 0}},910961:function(e,t,n){let o;n.d(t,{DU:function(){return u},XV:function(){return f},cK:function(){return s},tC:function(){return h}}),n(448445);var r=n(236664),a=n(88857),i=n(30318),l=n(548343);n(926884);var c=n(622965);let d="missing_quanta",u={MISSING_ID:"i",REM_TO_UPDATE_ON_RESTORE:"g",CHANGES_KEY_TO_FILTER_BY:"k"};function s(e){e.createIndex(u.MISSING_ID)}function h(e,t){g().setCollection(e,t)}let m=new a.w(d,l.E.KNOWLEDGEBASE,function(e=(0,c.Iu)(),t,n=(0,r.v2)()){t=t||(0,i.getOrCreateDatabaseForOwner)(e);let o=new r.oM(d,e,l.E.KNOWLEDGEBASE,_.identity,_.noop,!0,!1,!1,t,n,void 0,void 0,!1);return s(o.ReactiveStore),g().setCollection(e,o),o},o),g=()=>m;function f(e){return g().lookup(e)}},660220:function(e,t,n){n.d(t,{a:function(){return a},m:function(){return r}});var o=n(3319);function r(){return(0,o.Q)()}let a=()=>{(0,o.G)()}},40578:function(e,t,n){n.d(t,{K:function(){return o}});function o(e){let t,n=[],o=/(?<medial>[\s\S]*?){{(?<clozeId>c[0-9]*)::/y;for(;t=o.exec(e);){let o,r=t.index+t[0].length,a=2,i=r;for(;i<e.length&&a>0;i++)"{"===e[i]?a++:"}"===e[i]&&a--;if(0!==a)o=e.slice(r);else{let t=i-2;o=e.slice(r,t)}let l=o.indexOf("::"),c=l>=0?o.slice(0,l):o,d=l>=0?o.slice(l+2):void 0;n.push({clozeId:t.groups.clozeId,startIndex:t.index+t.groups.medial.length,contentIndex:r,content:o,answer:c,hint:d})}return n}},174720:function(e,t,n){let o;function r(e){o=e}n.r(t),n.d(t,{recordUsageLazy:function(){return i},registerLocalRecordUsage:function(){return r}});let a=(0,n(665895).v1)("recordUsageLazy",async(e,t,o)=>{let{recordUsage:r}=await Promise.all([n.e("96479"),n.e("64921"),n.e("28066"),n.e("1859"),n.e("38545"),n.e("25490"),n.e("78492"),n.e("79831"),n.e("12481"),n.e("39444"),n.e("84072"),n.e("21339"),n.e("58660"),n.e("13757"),n.e("89696"),n.e("30938"),n.e("54062"),n.e("83308"),n.e("93359"),n.e("35506")]).then(n.bind(n,315324));return r(e,t,o),!0},{target:"responsive",routeKey:"usageTracking"});function i(e,t,n){!Env.isWorker&&o?o(e,t,n):a(e,t,n).catch(e=>{console.error("Failed to record usage in a tab",e)})}},282619:function(e,t,n){n.d(t,{L:function(){return u}}),n(448445);var o=n(236664),r=n(88857),a=n(30318),i=n(548343);n(926884);var l=n(622965);let c=()=>!0,d={trackVersion:!0,fields:{owner:{isDerived:!1,isConstant:!0,typeChecker:c,importConfig:{directlyImport:!1,cloneIntoTemplates:!1,directlyIncludeOnPublish:!1}},_id:{isDerived:!1,isConstant:!0,typeChecker:c,importConfig:{directlyImport:!1,cloneIntoTemplates:!1,directlyIncludeOnPublish:!1}},key:{isDerived:!1,isConstant:!1,typeChecker:c,importConfig:{directlyImport:!0,cloneIntoTemplates:!1,directlyIncludeOnPublish:!1}},value:{isDerived:!1,isConstant:!1,typeChecker:c,importConfig:{directlyImport:!0,cloneIntoTemplates:!1,directlyIncludeOnPublish:!1}},nestedValue:{isDerived:!1,isConstant:!1,isNested:!0,typeChecker:c,importConfig:{directlyImport:!0,cloneIntoTemplates:!1,directlyIncludeOnPublish:!1}}}};class u{collectionName;finishedLoadingCallback;clientCache;serverCollection;constructor(e){this.collectionName=e.key,this.initServer(),this.finishedLoadingCallback=e.finishedLoadingCallback,this.initClient()}constructClientCollection=(e=h(this.collectionName))=>{let t=new o.oM(this.collectionName,e??l.Mn,s(this.collectionName)??i.E.USER,e=>e,this.finishedLoadingCallback,!0,!0,!1,(0,a.getOrCreateDatabaseForOwner)(e??l.Mn),(0,o.v2)(),void 0,d);return t.ReactiveStore.createIndex("key"),t};initClient(){if(this.clientCache)throw Error("Already have this.clientCache");this.clientCache=new r.w(this.collectionName,s(this.collectionName)??i.E.USER,this.constructClientCollection,this.serverCollection)}testHelperReconstructClientCollection(){this.clientCache.setCollection(h(this.collectionName)??l.Mn,this.constructClientCollection())}initServer(){}getClientCollection(e,t){return this.clientCache.lookup(e,t)}}function s(e){return"knowledge_base_data"==e?i.E.KNOWLEDGEBASE:"user_data"==e?i.E.USER:void 0}function h(e){return"knowledge_base_data"==e?(0,l.Iu)():"user_data"==e?Accounts.userId():l.Mn}},901874:function(e,t,n){n.d(t,{C8:function(){return u},iO:function(){return h},s0:function(){return s}});var o=n(612142),r=n(240298),a=n(236664),i=n(88857),l=n(548343),c=n(622965);let d=new i.w("knowledgebase_local_stored_data",l.E.KNOWLEDGEBASE,function(e=(0,c.Iu)()){let t=new a.oM("knowledgebase_local_stored_data",e,l.E.KNOWLEDGEBASE,r.Ay.identity,g,!0,!1);return t.ReactiveStore.createIndex("key"),t},null),u=()=>d;function s(e){return u().lookup(e)}function h(e,t){u().setCollection(e,t)}let m=new o.H(0);function g(){m.set(m.get()+1)}},421472:function(e,t,n){let o;n.d(t,{R0:function(){return f},fh:function(){return g},zH:function(){return d}}),n(448445);var r=n(612142),a=n(236664),i=n(875410),l=n(548343),c=n(240298);function d(){return o||(o=new a.oM("local_stored_data",i.tn,l.E.BROWSER,c.Ay.identity,h,!0,!1)).ReactiveStore.createIndex("key"),o}function u(e){return d().findOne({key:e},{useIndex:"key"})?._id??null}let s=new r.H(0);function h(){s.set(s.get()+1)}async function m(e,t,n){window.BrowserLocalStoredDataCollection=d;let o=u(e),r=new Date().getTime();void 0!=o?await d().update(o,{$set:{value:t,u:r}},!0,n):await d().insert({key:e,value:t,u:r},e=>{s.set(s.get()+1)},!0,!0,!1,n)}async function g(e,t=null){return await d().waitUntilReactiveStoreLoadedAndFirstSyncAndNotApplyingStagedChanges(),function(e,t=null){let n=u(e);return n||s.get(),n?d().findOne(n)?.value:t}(e,t)}async function f(e,t){return await d().waitUntilReactiveStoreLoadedAndFirstSyncAndNotApplyingStagedChanges(),m(e,t)}},678191:function(e,t,n){n.d(t,{x:function(){return r}});var o,r=((o={}).Local="Local",o.LocalKB="LocalKB",o.Sync="Sync",o.SyncKB="SyncKB",o)}
3,770685:function(e,t,n){n.d(t,{M:function(){return i},W:function(){return l},getSyncKbStoreController:function(){return a}});var o=n(612142);let r=new(n(282619)).L({key:"knowledge_base_data",finishedLoadingCallback:function(){c.set(c.get()+1)}}),a=()=>r;function i(e,t){return a().getClientCollection(e,t)}function l(e,t){a().clientCache.setCollection(e,t)}let c=new o.H(0)},21469:function(e,t,n){n.d(t,{Ee:function(){return g},Gj:function(){return h},WE:function(){return f},a_:function(){return d},gw:function(){return m}});var o=n(612142),r=n(880784),a=n(448445);n(23699),n(719520),n(926884);var i=n(282619);let l=r.V.UserData,c=new i.L({key:l,finishedLoadingCallback:function(){s.set(s.get()+1)}});function d(e,t){return c?.getClientCollection(e,t)}function u(e,t=null){return d(Accounts.userId()).findOne({key:e},{useIndex:"key"})?._id??null}let s=new o.H(0);function h(e,t){c?.clientCache.setCollection(e,t)}function m(e,t=null,n=null){let o=u(e,n);return o||s.get(),o?d(Accounts.userId())?.findOne(o)?.value:t}async function g(e,t,n=null,o){null==n&&(n=Accounts.userId());let r=u(e,n),a=new Date().getTime();void 0!=r?await d(Accounts.userId())?.update(r,{$set:{value:t,u:a}},!0,o):await d(Accounts.userId())?.insert({key:e,value:t,owner:n,u:a},()=>{s.set(s.get()+1)},!0,!0,!1,o)}async function f(e,t=null,n=null){return await d(Accounts.userId())?.waitUntilReactiveStoreLoadedAndFirstSyncAndNotApplyingStagedChanges(),m(e,t,n)}a.Env.app.isPlaywright&&(window.setSyncedUserData=g),window.SyncedUserDataCollection=d},641365:function(e,t,n){n.d(t,{N:function(){return a},u:function(){return i}});var o=n(678191),r=n(356546);let a=r.n.create({key:"knowledgeBases",syncType:o.x.Sync,defaultValue:[]}),i=r.n.create({key:"localKnowledgeBases",syncType:o.x.Local,defaultValue:[]})},415610:function(e,t,n){n.d(t,{EB:function(){return R},EI:function(){return G},Eh:function(){return m},Eo:function(){return P},ID:function(){return y},Ii:function(){return W},LZ:function(){return T},Lw:function(){return N},QQ:function(){return f},RS:function(){return S},S5:function(){return M},S9:function(){return d},SR:function(){return h},Sf:function(){return U},Tc:function(){return V},VR:function(){return s},ZV:function(){return C},as:function(){return L},bS:function(){return u},cC:function(){return D},ce:function(){return I},gv:function(){return c},iE:function(){return v},kR:function(){return x},ks:function(){return H},mj:function(){return w},oL:function(){return g},p:function(){return F},qV:function(){return b},s5:function(){return p},sY:function(){return O},up:function(){return E},wE:function(){return k},wk:function(){return A},xM:function(){return l},yP:function(){return K},z7:function(){return B}});var o=n(678191),r=n(356546),a=n(239752),i=n(79682);let l=r.n.create({key:"upcomingExams",syncType:o.x.Sync,defaultValue:[]}),c=r.n.create({key:"breakMaxSeconds",syncType:o.x.Sync,defaultValue:20}),d=r.n.create({key:"dismissLocalChineseText2",syncType:o.x.LocalKB,defaultValue:!1}),u=r.n.create({key:"allowWebsitesInSearch",syncType:o.x.Sync,defaultValue:!1}),s=r.n.create({key:"maxDailyTarget",syncType:o.x.SyncKB,defaultValue:30}),h=r.n.create({key:"activeDailyTargetMode",syncType:o.x.SyncKB,defaultValue:null}),m=r.n.create({key:"includeAllCardsInDailyGoal",syncType:o.x.SyncKB,defaultValue:!0});function g(e){return h.get(e?{owner:e}:{})??"empty_each_week"}function f(e){return m.get(e?{owner:e}:{})??!0}let y=r.n.create({key:"estimatedTimePerCardSumMs2",syncType:o.x.Sync,defaultValue:0}),p=r.n.create({key:"estimatedTimePerCardCount2",syncType:o.x.Sync,defaultValue:0}),w=r.n.create({key:"spacedRepetitionSchedulerIdKb",syncType:o.x.SyncKB}),S=r.n.create({key:"leechThreshold",syncType:o.x.Sync,defaultValue:4}),I=r.n.create({key:"nextDayStartsAt",syncType:o.x.SyncKB,defaultValue:4,validateFn:e=>null!==e&&e>=0&&e<24}),T=r.n.create({key:"learnAheadLimit",defaultValue:15,syncType:o.x.Sync}),b=r.n.create({key:"searchTokenizer",syncType:o.x.LocalKB,defaultValue:"default"}),P=r.n.create({key:"timeInQueueByDevice",syncType:o.x.SyncKB,defaultValue:0}),E=r.n.create({key:"numberOfActionsInQueueByDevice",syncType:o.x.SyncKB,defaultValue:0}),A=r.n.create({key:"needToLearnCardsLearnedForFirstTimeByDevice",syncType:o.x.SyncKB,defaultValue:0}),v=r.n.create({key:"practicedByScopeNested",syncType:o.x.SyncKB,defaultValue:{}}),D=r.n.create({key:"dailyGoalNested",syncType:o.x.SyncKB,defaultValue:null}),x=r.n.create({key:"deviceInfoNested",syncType:o.x.Sync,defaultValue:null}),k=r.n.create({key:"deviceId",syncType:o.x.Local,defaultValue:void 0}),C=r.n.create({key:"streakGoalMode",syncType:o.x.SyncKB,defaultValue:"fixed_ten"}),N=r.n.create({key:"newCardsPerDay",syncType:o.x.SyncKB,defaultValue:30}),M=r.n.create({key:"staleCardsPerDay",syncType:o.x.Sync,defaultValue:30}),R=r.n.create({key:"newCardsPracticedToday",syncType:o.x.Sync,defaultValue:0}),L=r.n.create({key:"newCardsPracticedTodayDate",syncType:o.x.Sync}),F=r.n.create({key:"staleCardsPracticedToday",syncType:o.x.Sync,defaultValue:0}),B=r.n.create({key:"staleCardsPracticedTodayDate",syncType:o.x.Sync}),O=r.n.create({key:"newCardsPracticedTodayPerDeck",syncType:o.x.Sync,defaultValue:{}}),G=r.n.create({key:"newCardsPracticedTodayPerDeckDate",syncType:o.x.Sync,defaultValue:0}),W=r.n.create({key:"totalCardsPracticedTodayPerDeck",syncType:o.x.Sync,defaultValue:{}}),H=r.n.create({key:"totalCardsPracticedTodayPerDeckDate",syncType:o.x.Sync,defaultValue:0}),V=r.n.create({key:"newCardsMode",syncType:o.x.Sync,defaultValue:"mix"}),K=r.n.create({key:"staleCardsMode",syncType:o.x.Sync,defaultValue:"mix"}),U=r.n.create({key:"scoreCountsPerDay",syncType:o.x.SyncKB,defaultValue:{}});(0,a.Zh)(()=>b.get(),()=>i._.waitUntilLoaded())},356546:function(e,t,n){n.d(t,{n:function(){return w}});var o=n(21469);n(448445);var r=n(644430),a=n(459732),i=n(158876),l=n(332279),c=n(385190),d=n(513217),u=n(622965),s=n(901874),h=n(421472),m=n(678191),g=n(770685),f=n(283044);let y=new i.lN("userDataSetFlag"),p=new i.lN("mergeDuplicateKeysLock");class w{keyInDb;syncType;defaultValue;loopWarning;validateFn;static create(e){let t=e.defaultValue??null;return new w({...e,defaultValue:t,validateFn:e.validateFn})}constructor(e){this.keyInDb=e.key,this.syncType=e.syncType,this.defaultValue=e.defaultValue,this.loopWarning=new l.x(`UserDataItem.${this.keyInDb} `,10,1e4),this.validateFn=e.validateFn}getCollection(e={}){if(e.owner&&"string"!=typeof e.owner)throw Error("Non-string owner for UserDataItem: "+this.keyInDb);if(this.syncType===m.x.Sync)return o.a_(e.owner??Accounts.userId(),e.useServer);if(this.syncType===m.x.SyncKB)return(0,g.M)(e.owner??(0,u.Iu)(),e.useServer);if(this.syncType===m.x.Local)return(0,h.zH)();if(this.syncType===m.x.LocalKB)return(0,s.s0)(e.owner??(0,u.Iu)());throw Error("Missing syncType")}get(e={}){(0,c.oc)();{let t=this.getObject(e)?.value;return this.validateFn&&void 0!==t&&!this.validateFn(t)?(console.error("Invalid value stored in the DB",t),this.defaultValue):t??e.default??this.defaultValue}}async set(e,t={}){(this.checkAllowedOnServer(),t.useServer)?await n.g.redlockOnKnowledgeBase(t.owner,this.getCollection(t).collectionName,6e4,`Set ${this.keyInDb} on ${t.owner} at ${new Date().toISOString()}`,async()=>{let n,o=await this.getObjectAsync(t)??await this.getCollection(t).insert({key:this.keyInDb});n="function"==typeof e?e(o?.value??this.defaultValue):e,await this.getCollection(t).update(o._id,{$set:{value:n}})}):(this.loopWarning.trigger(),(0,c.oc)(),await y.withLock(async()=>{await (0,d.writeGuarantee)("set",async()=>{let n,o=this.getObject(t)??await this.getCollection(t).insert({key:this.keyInDb},void 0,!0,!0,!1,t.collectionMutationOptions);if(n="function"==typeof e?e(o?.value??this.defaultValue):e,this.validateFn&&!this.validateFn(n))throw Error(`Invalid value: ${n}`);await this.getCollection(t).update(o._id,{$set:{value:n}},!0,t.collectionMutationOptions)})}),(0,r.emitPluginEvent)(a.AppEvents.SettingChanged,this.keyInDb.split(".")[2],{value:e}))}checkAllowedOnServer(){}async getFromDb(e={}){return this.checkAllowedOnServer(),e.useServer||(this.getCollection(e).ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("user_data"),await this.getCollection(e).waitUntilFinis
3hedFirstSyncAndReactiveStoreLoaded()),(await this.getObjectAsync(e))?.value??e.default??this.defaultValue}async getNestedValueFromDb(e={}){return this.checkAllowedOnServer(),e.useServer||(this.getCollection(e).ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("user_data"),await this.getCollection(e).waitUntilFinishedFirstSyncAndReactiveStoreLoaded()),(await this.getObjectAsync(e))?.nestedValue??{}}getObject(e={}){let t=this.getCollection(e);{t.ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("user_data");let e=t.find({key:this.keyInDb},{useIndex:"key"}).fetch();return(t.findOne({key:this.keyInDb},{useIndex:"key"}),e.length>1)?this.mergeDuplicateObjectsClientOnly(e):e[0]}}mergeDuplicateObjectsClientOnly(e){let t=_.last(_.sortBy(e,e=>e.u))?.value,n=_.sortBy(e,"m"),o=n[0];return p.withLock(async()=>{await (0,d.writeGuarantee)("removeDupeUserDataItems",{pauseUndoRedo:!0},async()=>{for(let e of(await this.getCollection({owner:o.owner}).update(o._id,{$set:{value:t}}),n.slice(1)))await this.getCollection({owner:o.owner}).remove(e._id)})}),o}async getObjectAsync(e={}){let t=this.getCollection(e);if(e?.useServer){let n=await t.findAsync({owner:e.owner??Accounts.userId(),key:this.keyInDb}).fetch();if(n.length<=1)return n[0];{let t=_.last(_.sortBy(n,e=>e.u))?.value,o=_.sortBy(n,"m"),r=o[0];for(let n of(await this.getCollection(e).update(r._id,{$set:{value:t}}),o.slice(1)))await this.getCollection(e).remove(n._id);return o[0]}}{t.ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("user_data"),await t.waitUntilFinishedFirstSyncAndReactiveStoreLoaded();let e=t.find({key:this.keyInDb},{useIndex:"key"}).fetch();return e.length>1?this.mergeDuplicateObjectsClientOnly(e):e[0]}}getNested(e,t={}){return this.getObject(t)?.nestedValue?.[e]?.v}getNestedDict(e={}){return this.getObject(e)?.nestedValue}async setNested(e,t,n={}){this.checkAllowedOnServer(),this.getCollection(n).ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("user_data"),await this.getCollection(n).waitUntilFinishedFirstSyncAndReactiveStoreLoaded(),await (0,d.writeGuarantee)("setNested",async()=>{let o,r=this.getNested(e),a=this.getObject(n)??await this.getCollection(n).insert({key:this.keyInDb},void 0,!0,!0,!1,n.collectionMutationOptions);o="function"==typeof t?t(r??this.defaultValue):t,await this.getCollection(n).update(a._id,{$set:{[`nestedValue.${e}.v`]:o}},!0,n.collectionMutationOptions)}),(0,r.emitPluginEvent)(a.AppEvents.SettingChanged,this.keyInDb.split(".")[2],{value:t})}async setNestedKeysToDb(e,t={}){this.checkAllowedOnServer(),await n.g.redlockOnKnowledgeBase(t.owner,this.getCollection(t).collectionName,6e4,`Set nested ${this.keyInDb} on ${t.owner} at ${new Date().toISOString()}`,async()=>{let n=await this.getObjectAsync(t)??await this.getCollection(t).insert({key:this.keyInDb});await this.getCollection(t).update(n._id,{$set:Object.fromEntries(Object.entries(e).map(([e,t])=>[`nestedValue.${e}.v`,t]))})})}async getFromDbNested(e,t={}){return this.checkAllowedOnServer(),this.getCollection(t).ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("user_data"),await this.getCollection(t).waitUntilFinishedFirstSyncAndReactiveStoreLoaded(),this.getNested(e,t)}async getFromDbNestedDict(e={}){return this.checkAllowedOnServer(),this.getCollection(e).ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("user_data"),await this.getCollection(e).waitUntilFinishedFirstSyncAndReactiveStoreLoaded(),(await this.getObjectAsync(e))?.nestedValue}async setToDbNested(e,t={}){return this.checkAllowedOnServer(),await this.set(e,t)}useHook(e={}){return(0,f.g)(()=>this.get(e),[e.default],"hook."+this.keyInDb)}useAsState(){return[this.useHook(),e=>this.set(e)]}}},79682:function(e,t,n){n.d(t,{_:function(){return r}});var o=n(52416);let r={hasLoaded:o.e,waitUntilLoaded:o.DX,ensureLazyLoadIsFinished:o.js,manuallyInitializeFromDatabaseStore:o.Yp}},52416:function(e,t,n){n.d(t,{DX:function(){return y},Yp:function(){return w},e:function(){return g},f_:function(){return m},js:function(){return p}});var o=n(254853),r=n(713885),a=n(385190),i=n(303620),l=n(622965),c=n(901874),d=n(421472),u=n(678191),s=n(770685),h=n(21469);let m={Local:d.zH,LocalKB:c.s0,Sync:h.a_,SyncKB:s.M};function g(e){let t=!0,n=e?.stores??[];return(n.length>
30?n:Object.keys(u.x)).forEach(n=>{let o;n==u.x.Sync&&(o=Accounts.userId()),[u.x.LocalKB,u.x.SyncKB].includes(n)&&(o=e?.knowledgebaseId??i.CURRENT_KNOWLEDGE_BASE),(e?.strictFirstSignup?m[n](o).strictHasFinishedSyncingFirstSync()&&m[n](o).hasLoadedReactiveStore():m[n](o).forDisplayHasFinishedSyncingFirstSync()&&m[n](o).hasLoadedReactiveStore())||(t=!1)}),t}let f=(0,a.Cr)();async function y(e={strictFirstSignup:!0,stores:[]}){await f.waitUntilTrue();let t=(e?.stores?.length&&e?.stores?.length>0?e.stores:Object.keys(u.x))??[],n=e.strictFirstSignup?"waitUntilFinishedFirstSyncAndReactiveStoreLoaded":"waitUntilReactiveStoreLoaded";if(t.includes(u.x.Local)&&(m.Local().ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("loading_stores"),await m.Local()[n]()),t.includes(u.x.LocalKB)){let t=m.LocalKB(e.knowledgebaseId??(0,l.Iu)());t.ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("loading_stores"),await t[n]()}t.includes(u.x.Sync)&&(m.Sync(Accounts.userId()).ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("loading_stores"),await m.Sync(Accounts.userId())[n]()),t.includes(u.x.SyncKB)&&(m.SyncKB(e.knowledgebaseId??(0,l.Iu)()).ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("loading_stores"),await m.SyncKB(e.knowledgebaseId??(0,l.Iu)())[n]())}async function p(){(0,h.a_)(Accounts.userId())?.ensureFullDBLoadedIntoReactiveStore__I_ACKNOWLEDGE_THIS_IS_VERY_BAD_IF_IT_HAPPENS_TO_EXISTING_USERS__("loading_stores")}async function w(e={stores:[]}){await (0,r.runJob)(o.lP,"manuallyInitializeFromDatabaseStore",async t=>{let n=e.stores.length>0?e.stores:Object.keys(u.x);t("1"),n.includes(u.x.Local)&&(await m.Local().initializeFromDatabaseStore(!0),t("2"),await m.Local().waitUntilReactiveStoreLoaded(),t("3")),n.includes(u.x.LocalKB)&&(t("4"),await m.LocalKB(e.knowledgebaseId??(0,l.Iu)()??void 0).initializeFromDatabaseStore(!0),t("5"),await m.LocalKB(e.knowledgebaseId??(0,l.Iu)()??void 0).waitUntilReactiveStoreLoaded(),t("6")),n.includes(u.x.Sync)&&(t("7"),await m.Sync(Accounts.userId()?.toString()).initializeFromDatabaseStore(!0),t("8"),await m.Sync(Accounts.userId()?.toString()).waitUntilReactiveStoreLoaded(),t("9")),n.includes(u.x.SyncKB)&&(t("10"),await m.SyncKB(e.knowledgebaseId??(0,l.Iu)()??void 0).initializeFromDatabaseStore(!0),t("11"),await m.SyncKB(e.knowledgebaseId??(0,l.Iu)()??void 0).waitUntilReactiveStoreLoaded(),t("12"))})}},868435:function(e,t,n){n.d(t,{A:function(){return S}});var o={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
3ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};let r=Object.create(null);for(let e in o)Object.hasOwn(o,e)&&(r[o[e]]=e);let a={to:{},get:{}};function i(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){let t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}a.get=function(e){let t,n;switch(e.slice(0,3).toLowerCase()){case"hsl":t=a.get.hsl(e),n="hsl";break;case"hwb":t=a.get.hwb(e),n="hwb";break;default:t=a.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},a.get.rgb=function(e){let t,n,r;if(!e)return null;let a=[0,0,0,1];if(t=e.match(/^#([a-f\d]{6})([a-f\d]{2})?$/i)){for(n=0,r=t[2],t=t[1];n<3;n++){let e=2*n;a[n]=Number.parseInt(t.slice(e,e+2),16)}r&&(a[3]=Number.parseInt(r,16)/255)}else if(t=e.match(/^#([a-f\d]{3,4})$/i)){for(n=0,r=(t=t[1])[3];n<3;n++)a[n]=Number.parseInt(t[n]+t[n],16);r&&(a[3]=Number.parseInt(r+r,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=Number.parseInt(t[n+1],10);t[4]&&(a[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}else if(t=e.match(/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=Math.round(2.55*Number.parseFloat(t[n+1]));t[4]&&(a[3]=t[5]?.01*Number.parseFloat(t[4]):Number.parseFloat(t[4]))}else if(!(t=e.match(/^(\w+)$/)))return null;else return"transparent"===t[1]?[0,0,0,0]:Object.hasOwn(o,t[1])?((a=o[t[1]])[3]=1,a):null;for(n=0;n<3;n++)a[n]=i(a[n],0,255);return a[3]=i(a[3],0,1),a},a.get.hsl=function(e){if(!e)return null;let t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){let e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,i(Number.parseFloat(t[2]),0,100),i(Number.parseFloat(t[3]),0,100),i(Number.isNaN(e)?1:e,0,1)]}return null},a.get.hwb=function(e){if(!e)return null;let t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d.]+)%\s*,\s*([+-]?[\d.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){let e=Number.parseFloat(t[4]);return[(Number.parseFloat(t[1])%360+360)%360,i(Number.parseFloat(t[2]),0,100),i(Number.parseFloat(t[3]),0,100),i(Number.isNaN(e)?1:e,0,1)]}return null},a.to.hex=function(...e){return"#"+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(255*e[3])):"")},a.to.rgb=function(...e){return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},a.to.rgb.percent=function(...e){let t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),o=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+o+"%)":"rgba("+t+"%, "+n+"%, "+o+"%, "+e[3]+")"},a.to.hsl=function(...e){return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},a.to.hwb=function(...e){let t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},a.to.keyword=function(...e){return r[e.slice(0,3)]};let c={};for(let e of Object.keys(o))c[o[e]]=e;let d={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},u=(6/29)**3;for(let e of Object.keys(d)){if(!("channels"in d[e]))throw Error("missing channels property: "+e);if(!("labels"in d[e]))throw Error("missing channel labels property: "+e);if(d[e].labels.length!==d[e].channels)throw Error("channel and label counts mismatch: "+e);let{channels:t,labels:n}=d[e];delete d[e].channels,delete d[e].labels,Object.defineProperty(d[e],"channels",{value:t}
3),Object.defineProperty(d[e],"labels",{value:n})}d.rgb.hsl=function(e){let t,n=e[0]/255,o=e[1]/255,r=e[2]/255,a=Math.min(n,o,r),i=Math.max(n,o,r),l=i-a;switch(i){case a:t=0;break;case n:t=(o-r)/l;break;case o:t=2+(r-n)/l;break;case r:t=4+(n-o)/l}(t=Math.min(60*t,360))<0&&(t+=360);let c=(a+i)/2;return[t,100*(i===a?0:c<=.5?l/(i+a):l/(2-i-a)),100*c]},d.rgb.hsv=function(e){let t,n,o,r,a,i=e[0]/255,l=e[1]/255,c=e[2]/255,d=Math.max(i,l,c),u=d-Math.min(i,l,c),s=function(e){return(d-e)/6/u+.5};if(0===u)r=0,a=0;else{switch(a=u/d,t=s(i),n=s(l),o=s(c),d){case i:r=o-n;break;case l:r=1/3+t-o;break;case c:r=2/3+n-t}r<0?r+=1:r>1&&(r-=1)}return[360*r,100*a,100*d]},d.rgb.hwb=function(e){let t=e[0],n=e[1],o=e[2];return[d.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,o))*100,100*(o=1-1/255*Math.max(t,Math.max(n,o)))]},d.rgb.cmyk=function(e){let t=e[0]/255,n=e[1]/255,o=e[2]/255,r=Math.min(1-t,1-n,1-o);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-o-r)/(1-r)||0),100*r]},d.rgb.keyword=function(e){let t,n=c[e];if(n)return n;let r=1/0;for(let n of Object.keys(o)){let a=o[n],i=(e[0]-a[0])**2+(e[1]-a[1])**2+(e[2]-a[2])**2;i<r&&(r=i,t=n)}return t},d.keyword.rgb=function(e){return o[e]},d.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,o=e[2]/255;return[100*(.4124564*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.3575761*(n=n>.04045?((n+.055)/1.055)**2.4:n/12.92)+.1804375*(o=o>.04045?((o+.055)/1.055)**2.4:o/12.92)),100*(.2126729*t+.7151522*n+.072175*o),100*(.0193339*t+.119192*n+.9503041*o)]},d.rgb.lab=function(e){let t=d.rgb.xyz(e),n=t[0],o=t[1],r=t[2];return n/=95.047,o/=100,r/=108.883,n=n>u?n**(1/3):7.787*n+16/116,[116*(o=o>u?o**(1/3):7.787*o+16/116)-16,500*(n-o),200*(o-(r=r>u?r**(1/3):7.787*r+16/116))]},d.hsl.rgb=function(e){let t,n,o=e[0]/360,r=e[1]/100,a=e[2]/100;if(0===r)return[n=255*a,n,n];let i=a<.5?a*(1+r):a+r-a*r,l=2*a-i,c=[0,0,0];for(let e=0;e<3;e++)(t=o+-(1/3*(e-1)))<0&&t++,t>1&&t--,n=6*t<1?l+(i-l)*6*t:2*t<1?i:3*t<2?l+(i-l)*(2/3-t)*6:l,c[e]=255*n;return c},d.hsl.hsv=function(e){let t=e[0],n=e[1]/100,o=e[2]/100,r=n,a=Math.max(o,.01);o*=2,n*=o<=1?o:2-o,r*=a<=1?a:2-a;let i=(o+n)/2;return[t,100*(0===o?2*r/(a+r):2*n/(o+n)),100*i]},d.hsv.rgb=function(e){let t=e[0]/60,n=e[1]/100,o=e[2]/100,r=Math.floor(t)%6,a=t-Math.floor(t),i=255*o*(1-n),l=255*o*(1-n*a),c=255*o*(1-n*(1-a));switch(o*=255,r){case 0:return[o,c,i];case 1:return[l,o,i];case 2:return[i,o,c];case 3:return[i,l,o];case 4:return[c,i,o];case 5:return[o,i,l]}},d.hsv.hsl=function(e){let t,n,o=e[0],r=e[1]/100,a=e[2]/100,i=Math.max(a,.01);n=(2-r)*a;let l=(2-r)*i;return[o,100*(t=(t=r*i/(l<=1?l:2-l))||0),100*(n/=2)]},d.hwb.rgb=function(e){let t,n,o,r,a=e[0]/360,i=e[1]/100,l=e[2]/100,c=i+l;c>1&&(i/=c,l/=c);let d=Math.floor(6*a),u=1-l;t=6*a-d,(1&d)!=0&&(t=1-t);let s=i+t*(u-i);switch(d){default:case 6:case 0:n=u,o=s,r=i;break;case 1:n=s,o=u,r=i;break;case 2:n=i,o=u,r=s;break;case 3:n=i,o=s,r=u;break;case 4:n=s,o=i,r=u;break;case 5:n=u,o=i,r=s}return[255*n,255*o,255*r]},d.cmyk.rgb=function(e){let t=e[0]/100,n=e[1]/100,o=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,o*(1-r)+r))]},d.xyz.rgb=function(e){let t,n,o,r=e[0]/100,a=e[1]/100,i=e[2]/100;return t=(t=3.2404542*r+-1.5371385*a+-.4985314*i)>.0031308?1.055*t**(1/2.4)-.055:12.92*t,n=(n=-.969266*r+1.8760108*a+.041556*i)>.0031308?1.055*n**(1/2.4)-.055:12.92*n,o=(o=.0556434*r+-.2040259*a+1.0572252*i)>.0031308?1.055*o**(1/2.4)-.055:12.92*o,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]},d.xyz.lab=function(e){let t=e[0],n=e[1],o=e[2];return t/=95.047,n/=100,o/=108.883,t=t>u?t**(1/3):7.787*t+16/116,[116*(n=n>u?n**(1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(o=o>u?o**(1/3):7.787*o+16/116))]},d.lab.xyz=function(e){let t,n,o,r=e[0],a=e[1],i=e[2];t=a/500+(n=(r+16)/116),o=n-i/200;let l=n**3,c=t**3,d=o**3;return n=(l>u?l:(n-16/116)/7.787)*100,[t=(c>u?c:(t-16/116)/7.787)*95.047,n,o=(d>u?d:(o-16/116)/7.787)*108.883]},d.lab.lch=function(e){let t,n=e[0],o=e[1],r=e[2];return(t=360*Math.atan2(r,o)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(o*o+r*r),t]},d.lch.lab=function(e){let t=e[0],n=e[1],o=e[2]/360*2*Math.PI;return[t,n*Math.cos(o),n*Math.sin(o)]},d.rgb.ansi16=function(e,t=null){let[n,o,r]=e,a=null===t?d.rgb.hsv(e)[2]:t;if(0===(a=Math.round(a/50)))return 30;let i=30+(Math.round(r/255)<<2|Math.round(o/255)<<1|Math.round(n/255));return 2===a&&(i+=60),i},d.hsv.ansi16=function(e){return d.rgb.ansi16(d.hsv.rgb(e),e[2])},d.rgb.ansi256=function(e){let t=e[0],n=e[1],o=e[2];return t>>4==n>>4&&n>>4==o>>4?t<8?16:t>
3248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)},d.ansi16.rgb=function(e){let t=(e=e[0])%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];let n=(Math.trunc(e>50)+1)*.5;return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},d.ansi256.rgb=function(e){let t;if((e=e[0])>=232){let t=(e-232)*10+8;return[t,t,t]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},d.rgb.hex=function(e){let t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".slice(t.length)+t},d.hex.rgb=function(e){let t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=[...n].map(e=>e+e).join(""));let o=Number.parseInt(n,16);return[o>>16&255,o>>8&255,255&o]},d.rgb.hcg=function(e){let t=e[0]/255,n=e[1]/255,o=e[2]/255,r=Math.max(Math.max(t,n),o),a=Math.min(Math.min(t,n),o),i=r-a;return[360*((i<=0?0:r===t?(n-o)/i%6:r===n?2+(o-t)/i:4+(t-n)/i)/6%1),100*i,100*(i<1?a/(1-i):0)]},d.hsl.hcg=function(e){let t=e[1]/100,n=e[2]/100,o=n<.5?2*t*n:2*t*(1-n),r=0;return o<1&&(r=(n-.5*o)/(1-o)),[e[0],100*o,100*r]},d.hsv.hcg=function(e){let t=e[1]/100,n=e[2]/100,o=t*n,r=0;return o<1&&(r=(n-o)/(1-o)),[e[0],100*o,100*r]},d.hcg.rgb=function(e){let t=e[0]/360,n=e[1]/100,o=e[2]/100;if(0===n)return[255*o,255*o,255*o];let r=[0,0,0],a=t%1*6,i=a%1,l=1-i,c=0;switch(Math.floor(a)){case 0:r[0]=1,r[1]=i,r[2]=0;break;case 1:r[0]=l,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=i;break;case 3:r[0]=0,r[1]=l,r[2]=1;break;case 4:r[0]=i,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=l}return c=(1-n)*o,[(n*r[0]+c)*255,(n*r[1]+c)*255,(n*r[2]+c)*255]},d.hcg.hsv=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t),o=0;return n>0&&(o=t/n),[e[0],100*o,100*n]},d.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,o=0;return n>0&&n<.5?o=t/(2*n):n>=.5&&n<1&&(o=t/(2*(1-n))),[e[0],100*o,100*n]},d.hcg.hwb=function(e){let t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],(n-t)*100,(1-n)*100]},d.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,o=n-t,r=0;return o<1&&(r=(n-o)/(1-o)),[e[0],100*o,100*r]},d.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},d.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},d.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},d.gray.hsl=function(e){return[0,0,e[0]]},d.gray.hsv=d.gray.hsl,d.gray.hwb=function(e){return[0,100,e[0]]},d.gray.cmyk=function(e){return[0,0,0,e[0]]},d.gray.lab=function(e){return[e[0],0,0]},d.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(n.length)+n},d.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};let s={};for(let e of Object.keys(d)){s[e]={},Object.defineProperty(s[e],"channels",{value:d[e].channels}),Object.defineProperty(s[e],"labels",{value:d[e].labels});let t=function(e){let t=function(e){let t=function(){let e={},t=Object.keys(d);for(let{length:n}=t,o=0;o<n;o++)e[t[o]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length>0;){let e=n.pop(),o=Object.keys(d[e]);for(let{length:r}=o,a=0;a<r;a++){let r=o[a],i=t[r];-1===i.distance&&(i.distance=t[e].distance+1,i.parent=e,n.unshift(r))}}return t}(e),n={},o=Object.keys(t);for(let{length:e}=o,r=0;r<e;r++){let e=o[r];null!==t[e].parent&&(n[e]=function(e,t){let n=[t[e].parent,e],o=d[t[e].parent][e],r=t[e].parent;for(;t[r].parent;)n.unshift(t[r].parent),o=function(e,t){return function(n){return t(e(n))}}(d[t[r].parent][r],o),r=t[r].parent;return o.conversion=n,o}(e,t))}return n}(e);for(let n of Object.keys(t)){let o=t[n];s[e][n]=function(e){let t=function(...t){let n=t[0];if(null==n)return n;n.length>1&&(t=n);let o=e(t);if("object"==typeof o)for(let{length:e}=o,t=0;t<e;t++)o[t]=Math.round(o[t]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}(o),s[e][n].raw=function(e){let t=function(...t){let n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(o)}}let h=["keyword","gray","hex"],m={};for(let e of Object.keys(s))m[[...s[e].labels].sort().join("")]=e;let g={};function f(e,t){let n,o;
3if(!(this instanceof f))return new f(e,t);if(t&&t in h&&(t=null),t&&!(t in s))throw Error("Unknown model: "+t);if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof f)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"==typeof e){let t=a.get(e);if(null===t)throw Error("Unable to parse color from string: "+e);this.model=t.model,o=s[this.model].channels,this.color=t.value.slice(0,o),this.valpha="number"==typeof t.value[o]?t.value[o]:1}else if(e.length>0){this.model=t||"rgb",o=s[this.model].channels;let n=Array.prototype.slice.call(e,0,o);this.color=w(n,o),this.valpha="number"==typeof e[o]?e[o]:1}else if("number"==typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;let t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);let o=t.sort().join("");if(!(o in m))throw Error("Unable to parse color from object: "+JSON.stringify(e));this.model=m[o];let{labels:r}=s[this.model],a=[];for(n=0;n<r.length;n++)a.push(e[r[n]]);this.color=w(a)}if(g[this.model])for(n=0,o=s[this.model].channels;n<o;n++){let e=g[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}for(let e of(f.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in a.to?this:this.rgb(),n=1===(t=t.round("number"==typeof e?e:1)).valpha?t.color:[...t.color,this.valpha];return a.to[t.model](...n)},percentString(e){let t=this.rgb().round("number"==typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return a.to.rgb.percent(...n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){let e={},{channels:t}=s[this.model],{labels:n}=s[this.model];for(let o=0;o<t;o++)e[n[o]]=this.color[o];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){let e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){let e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){var t;return e=Math.max(e||0,0),new f([...this.color.map((t=e,function(e){return Number(e.toFixed(t))})),this.valpha],this.model)},alpha(e){return void 0!==e?new f([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:y("rgb",0,p(255)),green:y("rgb",1,p(255)),blue:y("rgb",2,p(255)),hue:y(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:y("hsl",1,p(100)),lightness:y("hsl",2,p(100)),saturationv:y("hsv",1,p(100)),value:y("hsv",2,p(100)),chroma:y("hcg",1,p(100)),gray:y("hcg",2,p(100)),white:y("hwb",1,p(100)),wblack:y("hwb",2,p(100)),cyan:y("cmyk",0,p(100)),magenta:y("cmyk",1,p(100)),yellow:y("cmyk",2,p(100)),black:y("cmyk",3,p(100)),x:y("xyz",0,p(95.047)),y:y("xyz",1,p(100)),z:y("xyz",2,p(108.833)),l:y("lab",0,p(100)),a:y("lab",1),b:y("lab",2),keyword(e){return void 0!==e?new f(e):s[this.model].keyword(this.color)},hex(e){return void 0!==e?new f(e):a.to.hex(...this.rgb().round().color)},hexa(e){if(void 0!==e)return new f(e);let t=this.rgb().round().color,n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),a.to.hex(...t)+n},rgbNumber(){let e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){let e=this.rgb().color,t=[];for(let[n,o]of e.entries()){let e=o/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){let t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){let t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){let e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){let e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){let t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){let t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){let t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){let t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){let t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){let t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){let e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return f.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){let t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);let n=e.rgb(),o=this.rgb(),r=void 0===t?.5:t,a=2*r-1,i=n.alpha()-o.alpha(),l=((a*i==-1?a:(a+i)/(1+a*i))+1)/2,c=1-l;return f.rgb(l*n.red()+c*o.red(),l*n.green()+c*o.green(),l*n.blue()+c*o.blue(),n.alpha()*r+o.alpha()*(1-r))}},Object.keys(s))){if(h.includes(e))continue;let{channels:t}=s[e];f.prototype[e]=function(...t){var n;return this.model===e?new f(this):t.length>0?new f(t,e):new f([...Array.isArray(n=s[this.model][e].raw(this.color))?n:[n],this.valpha],e)},f[e]=function(...n){let o=n[0];return"number"==typeof o&&(o=w(n,t)),new f(o,e)}}function y(e,t,n){for(let o of e=Array.isArray(e)?e:[e])(g[o]||=[])[t]=n;return e=e[0],function(o){let r;return void 0!==o?(n&&(o=n(o)),(r=this[e]()).color[t]=o):(r=this[e]().color[t],n&&(r=n(r))),r}}function p(e){return function(t){return Math.max(0,Math.min(e,t))}}function w(e,t){for(let n=0;n<t;n++)"number"!=typeof e[n]&&(e[n]=0);return e}var S=f}}]);
4//# debugId=f7d56c78-85a3-52fb-bf89-202bd4a914ed

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.