PageSourceSearch

https://stackmorelayers.ai/_next/static/chunks/9078-d93f63365a17e8d5.js

js stackmorelayers.ai collected 2026-10-05 12:42:51 UTC 13,460 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9078],{762:(e,t,i)=>{(0,i(19156).pf)("notebook/mount-status",{ru:{panels:{mountStatusMounting:"Монтируется…",mountStatusFailed:"Ошибка монтирования",mountReasonApplyFailed:"Не удалось подключить ресурс при запуске среды. Повторите подключение; если ошибка повторяется — напишите в поддержку.",mountStatusUnavailable:"Недоступно",mountStatusBlocked:"Заблокировано политикой",resourceFilesPublisherUnavailable:"Служба подготовки файлов не отвечает. Проверяем повторно…",resourceMountProfileRetired:"Ресурс подключён в устаревшем формате. Отключите его и подключите заново.",resourceAccessWithheld:"Доступ к этому материалу закрыт — он будет отключён от рабочей области.",resourceStatePreparing:"Подключается…",resourceStateWaiting:"Повтор в {time}",resourceStateReady:"Подключён",resourceStateMounted:"Доступен в среде",resourceStateFailed:"Не удалось подключить",resourceStateForbidden:"Доступ ограничен",resourceStateCheckUnavailable:"Не удаётся проверить — проверяем снова…",resourceRetry:"Повторить",resourcePathCopied:"Скопировано",resourcePathCopiedAria:"Путь скопирован",resourceOpenInFiles:"Открыть \xab{name}\xbb в Files",catalogFilesOne:"{n} файл",catalogFilesFew:"{n} файла",catalogFilesMany:"{n} файлов",catalogVersionLatest:"Последняя",catalogAttachedDataset:"Добавлен",catalogAttachedModel:"Добавлена"}},en:{panels:{mountStatusMounting:"Mounting…",mountStatusFailed:"Mount failed",mountReasonApplyFailed:"This resource could not be attached when the environment started. Try attaching it again; if it keeps failing, contact support.",mountStatusUnavailable:"Unavailable",mountStatusBlocked:"Blocked by policy",resourceFilesPublisherUnavailable:"The file preparation service is not responding. Checking again…",resourceMountProfileRetired:"This resource uses a retired attachment format. Detach it and attach it again.",resourceAccessWithheld:"Access to this material was withdrawn — it will be detached from the workspace.",resourceStatePreparing:"Connecting…",resourceStateWaiting:"Retrying at {time}",resourceStateReady:"Attached",resourceStateMounted:"Available in the environment",resourceStateFailed:"Could not be attached",resourceStateForbidden:"Access restricted",resourceStateCheckUnavailable:"Cannot be checked right now — checking again…",resourceRetry:"Retry",resourcePathCopied:"Copied",resourcePathCopiedAria:"Path copied",resourceOpenInFiles:"Open “{name}” in Files",catalogFilesOne:"{n} file",catalogFilesFew:"{n} files",catalogFilesMany:"{n} files",catalogVersionLatest:"Latest",catalogAttachedDataset:"Added",catalogAttachedModel:"Added"}}})},6571:(e,t,i)=>{i.d(t,{Jg:()=>m,kL:()=>f,kZ:()=>c});var a=i(54021),n=i(59081);function l(e){return e?.mount_path??e?.safe_path??null}function o(e){let t=e.metadata_json||{},i="string"==typeof t.safe_path?t.safe_path:null;return e.mount_path??e.safe_path??l(e.mount)??i}function r(e){let t=(e.metadata_json||{}).notebook_mount_eligibility;return"boolean"==typeof t?t:null}function s(e,t){let i=e.metadata_json||{};for(let a of[t?.mount_profile,e.mount?.mount_profile,i.mount_profile,e.mode])if("string"==typeof a&&a.trim())return a.trim().toLowerCase();return""}function u(e,t,i){let a,n=(a=e.metadata_json||{},String(i?.mount_profile??e.mode??e.mount?.mount_profile??("string"==typeof a.mount_profile?a.mount_profile:null)??"").toLowerCase());return!("resource_view"===n&&i?.filesystem_available!==!0||!n||n.includes("lazy")||"sdk"===n||"stream_only"===n)&&["applied","mounted","ready","available"].includes(String(t??"").toLowerCase())}function _(e,t){let i=e.metadata_json||{},a="dataset"===t?i.dataset_id:i.model_id;return"string"==typeof a?a:null}function d(e,t,i,a){return(a??[]).find(a=>null!=e.id&&null!=a.binding_id?String(a.binding_id)===String(e.id):!!i&&("dataset"===t?"dataset"===a.kind&&a.dataset_id===i:"model"===a.kind&&a.model_id===i))}function m(e,t){let i=(0,n.W)(e);return d(e,i,_(e,i),t)??e.mount??null}function c(e,t){let i=e.metadata_json||{},m=(0,n.W)(e),c=_(e,m),f=String(e.mode??"").toLowerCase().includes("lazy");
1if(!c){let t=e.status??e.mount?.status??null,n=(0,a.Lu)(e.mount??null);return{path:u(e,t,e.mount??null)?o(e):null,status:t,reason:e.mount?.reason??null,reasonCode:e.mount?.reason_code??null,lazy:f,mountProfile:s(e,e.mount??null),mountEligible:r(e),primaryFilePath:(0,a.CE)(e.mount?.primary_file_path??n.primary_file_path??i.primary_file_path),primaryFileSizeBytes:(0,a.w7)(e.mount?.primary_file_size_bytes??n.primary_file_size_bytes??i.primary_file_size_bytes),flatSingleFilePath:!!(e.mount?.notebook_flat_single_file_path??n.notebook_flat_single_file_path??i.notebook_flat_single_file_path),aliasFileName:(0,a.CE)(e.mount?.notebook_alias_file_name??n.notebook_alias_file_name??i.notebook_alias_file_name),aliasFilePaths:(0,a.kD)(e.mount?.notebook_alias_file_paths??n.notebook_alias_file_paths??i.notebook_alias_file_paths),matched:!!e.mount,filesystemAvailable:e.mount?.filesystem_available??null,liveAvailable:e.mount?.live_available??e.live_available??null}}let p=d(e,m,c,t),b=p?.status??e.status??e.mount?.status??null,h=u(e,b,p??e.mount??null)?l(p)??o(e):null,y=(0,a.Lu)(p??null),g=(0,a.Lu)(e.mount??null);return{path:h,status:b,reason:p?.reason??e.mount?.reason??null,reasonCode:p?.reason_code??e.mount?.reason_code??null,lazy:f,mountProfile:s(e,p??e.mount??null),mountEligible:r(e),primaryFilePath:(0,a.CE)(p?.primary_file_path??y.primary_file_path??e.mount?.primary_file_path??g.primary_file_path??i.primary_file_path),primaryFileSizeBytes:(0,a.w7)(p?.primary_file_size_bytes??y.primary_file_size_bytes??e.mount?.primary_file_size_bytes??g.primary_file_size_bytes??i.primary_file_size_bytes),flatSingleFilePath:!!(p?.notebook_flat_single_file_path??y.notebook_flat_single_file_path??e.mount?.notebook_flat_single_file_path??g.notebook_flat_single_file_path??i.notebook_flat_single_file_path),aliasFileName:(0,a.CE)(p?.notebook_alias_file_name??y.notebook_alias_file_name??e.mount?.notebook_alias_file_name??g.notebook_alias_file_name??i.notebook_alias_file_name),aliasFilePaths:(0,a.kD)(p?.notebook_alias_file_paths??y.notebook_alias_file_paths??e.mount?.notebook_alias_file_paths??g.notebook_alias_file_paths??i.notebook_alias_file_paths),matched:!!(p??e.mount),filesystemAvailable:p?.filesystem_available??e.mount?.filesystem_available??null,liveAvailable:p?.live_available??e.mount?.live_available??e.live_available??null}}function f(e,t){let i="string"==typeof e?.reason_code?e.reason_code.trim():"";if(i){let e=Object.hasOwn(p,i)?p[i]:void 0;return e?t(e):null}return("string"==typeof e?.reason?e.reason.trim():"")||null}i(762);let p={mount_apply_failed:"notebook.panels.mountReasonApplyFailed",resource_copy_unavailable:"notebook.panels.resourceFilesPublisherUnavailable",resource_mount_profile_retired:"notebook.panels.resourceMountProfileRetired",resource_access_withheld:"notebook.panels.resourceAccessWithheld"}},54021:(e,t,i)=>{i.d(t,{CE:()=>l,Cm:()=>m,Lu:()=>s,Qd:()=>c,T6:()=>u,kD:()=>r,l_:()=>_,u3:()=>d,w7:()=>o});var a=i(98324),n=i(59081);function l(e){return"string"==typeof e&&e.trim()?e.trim():null}function o(e){let t=Number(e);return Number.isFinite(t)&&t>=0?t:null}function r(e){return Array.isArray(e)?e.filter(e=>"string"==typeof e&&e.trim().length>0).map(e=>e.trim()).slice(0,1024):[]}function s(e){return e?.metadata&&"object"==typeof e.metadata?e.metadata:{}}function u(e){return(0,a.X)(e)||null}function _(e){return new Set(e.filter(e=>"dataset"===(0,n.W)(e)).map(e=>{let t=e.metadata_json||{};return"string"==typeof t.dataset_id?t.dataset_id:""}).filter(Boolean))}function d(e,t){let i=_(t),a=new Set,n=[];for(let t of e??[]){if("dataset"!==t.kind)continue;let e=null==t.binding_id?"":String(t.binding_id),u=null==t.scope&&/^\d+$/.test(e);if("user"===t.scope||u)continue;let _=t.dataset_id?String(t.dataset_id):"";if(!_||i.has(_)||a.has(_))continue;a.add(_);let d=t.status??null,m=String(t.mount_profile??t.mode??"").toLowerCase(),c=s(t),f=("resource_view"!==m||!0===t.filesystem_available)&&!m.includes("lazy")&&"sdk"!==m&&"stream_only"!==m&&["applied","mounted","ready","available"].includes(String(d??"").toLowerCase());n.push({id:_,bindingId:e||null,scope:t.scope??null,title:t.title||`Dataset ${_}`,versionId:t.dataset_version_id??null,path:f?t.mount_path??t.safe_path??null:null,status:d,reason:t.reason??null,reasonCode:t.reason_code??null,mode:t.mode??null,mountProfile:t.mount_profile??null,filesystemAvailable:t.filesystem_available??null,primaryFilePath:l(t.primary_file_path??c.primary_file_path),primaryFileSizeBytes:o(t.primary_file_size_bytes??c.primary_file_size_bytes),flatSingleFilePath:!!(t.notebook_flat_single_file_path??c.notebook_flat_single_file_path),aliasFileName:l(t.notebook_alias_file_name??c.notebook_alias_file_name),aliasFilePaths:r(t.notebook_alias_file_paths??c.notebook_alias_file_paths)})}return n}function m(e,t,i){if(0===e.length)return t;let a=new Set(t.map(e=>e.id)),n=[...t];for(let t of e)a.has(t.id)||i.has(t.id)||"user"!==t.scope&&(n.push(t),a.add(t.id));return n}function c(e){let t=new Set;for(let i of e){let e=i.metadata_json||{};null!==e.dataset_id&&void 0!==e.dataset_id&&t.add(`dataset:${String(e.dataset_id)}`),null!==e.model_id&&void 0!==e.model_id&&t.add(`model:${String(e.model_id)}`)}return t}},59081:(e,t,i)=>{i.d(t,{Ej:()=>a,W:()=>n,xI:()=>o,yM:()=>l}),i(26279),i(60434);let a="scan_incomplete_owner_only";function n(e){return(e.binding_type||"").toLowerCase().startsWith("model")?"model":"dataset"}function l(e){var t;let i=e.metadata_json||{};return("model"===n(e)?"string"!=typeof(t=i.title)?"":t.trim().replace(/^user__\d+__/i,""):"string"==typeof i.title?i.title:"")||("string"==typeof i.dataset_id?`Dataset ${i.dataset_id}`:void 0)||("string"==typeof i.model_id?`Model ${i.model_id}`:void 0)||`binding-${e.id??"?"}`}function o(e,t){if(!e)return null;let i=e.toLowerCase();return"publish_pending"===i?t("notebook.panels.disabledPublishPending"):i===a?t("common.scanIncompleteOwnerOnly"):({attached:"Already attached",not_published:"Publish before attaching",validation_not_passed:"Validate before attaching",security_not_passed:"Security review required",resource_blocked:"Blocked by policy",resource_unavailable:"Resource unavailable",registry_unavailable:"Registry ref unavailable",version_unavailable:"Version unavailable","not bindable":"Not notebook-ready"})[i]??e.replaceAll("_"," ")}},98324:(e,t,i)=>{i.d(t,{X:()=>n});
1let a=/^\/?home\/jovyan\/(?:work\/)?/;function n(e){let t=String(e??"").trim();return t?t.replace(a,"").replace(/^\.\//,"").replace(/^\/+/,""):""}},99078:(e,t,i)=>{i.d(t,{Qd:()=>_.Qd,kZ:()=>d.kZ,yM:()=>a.yM,l_:()=>_.l_,XG:()=>s,eO:()=>u,W:()=>a.W,u3:()=>_.u3,kL:()=>d.kL,T6:()=>_.T6,Cm:()=>_.Cm,xI:()=>a.xI,Bv:()=>r});var a=i(59081);function n(e){let t=0;return e.binding_action?.enabled!==!1&&(t+=8),"passed"===(e.validation_status??"").toLowerCase()&&(t+=4),["passed","clean","warning","admin_overridden"].includes((e.security_status??"").toLowerCase())&&(t+=2),["published","ready","validated","registered"].includes((e.status??"").toLowerCase())&&(t+=2),"public"===(e.visibility??"").toLowerCase()&&(t+=1),t}function l(e){let t=new Map;for(let i of e){let e=String(i.id),a=t.get(e);(!a||n(i)>n(a))&&t.set(e,i)}return Array.from(t.values())}function o(e,t){return e?.reason===a.Ej&&"standalone"===t||e?.enabled===!0}function r(e,t){let i=(e.validation_status??"").toLowerCase();if("failed"===i||"blocked"===i)return"failed";let a=(e.binding_action?.reason??"").toLowerCase();return e.binding_action?.enabled===!1&&"resource_blocked"===a?"failed":o(e.binding_action,t)&&e.latest_version_id?"ready":"wait"}function s(e,t,i){return l(e).map(e=>{let a=t.has(`dataset:${String(e.id)}`),n=a?"attached":o(e.binding_action,i)?e.latest_version_id?null:"version_unavailable":e.binding_action?.reason||"not bindable";return{id:String(e.id),versionId:e.latest_version_id??null,versionNumber:e.latest_version_number??null,title:e.title||e.id,description:e.description?.trim()||null,hint:e.latest_version_id?`Version ${e.latest_version_id}${e.format?` \xb7 ${e.format}`:""}`:e.visibility?`${e.visibility} dataset`:null,...void 0!==e.visibility?{visibility:e.visibility}:{},alreadyAttached:a,disabledReason:n,sizeBytes:e.size_bytes??null,fileCount:e.file_count??null,thumbnail:e.thumbnail??null}})}function u(e,t,i){return l(e).map(e=>{let a=t.has(`model:${String(e.id)}`),n=a?"attached":o(e.binding_action,i)?null:e.binding_action?.reason||"not bindable";return{id:String(e.id),versionId:e.model_version_id??e.latest_version_id??null,title:e.title||e.id,description:e.description?.trim()||null,hint:e.model_version?`Version ${e.model_version}${e.loader_kind?` \xb7 ${e.loader_kind}`:""}`:e.loader_kind||null,...void 0!==e.visibility?{visibility:e.visibility}:{},alreadyAttached:a,disabledReason:n,sizeBytes:e.size_bytes??null,fileCount:e.file_count??null,thumbnail:e.thumbnail??null}})}var _=i(54021),d=i(6571)}}]);

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.