@kedem/okdb 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/okdb.js +1 -1
- package/keys/public.pem +3 -0
- package/okdb.js +1 -1
- package/package.json +2 -2
- package/public/admin-app.js +1 -1
- package/public/components/admin-route-host.ok.js +1 -1
- package/public/components/env-picker.ok.js +1 -1
- package/public/components/field-path-input.ok.js +1 -1
- package/public/components/geo-map.ok.js +1 -1
- package/public/components/ok-cron-input.ok.js +1 -1
- package/public/components/ok-dropzone.ok.js +1 -1
- package/public/components/ok-js-input.ok.js +1 -1
- package/public/components/ok-json-input.ok.js +1 -1
- package/public/components/ok-text-monaco-input.ok.js +1 -1
- package/public/components/theme-toggle.ok.js +1 -1
- package/public/login-app.js +1 -1
- package/public/modules/ok.js +1 -1
- package/public/sections/api/parts/api-endpoint.ok.js +1 -1
- package/public/sections/auth/modals/create-token-modal.ok.js +1 -1
- package/public/sections/auth/modals/edit-token-modal.ok.js +1 -1
- package/public/sections/auth/modals/perm-info-popover.ok.js +1 -1
- package/public/sections/auth/parts/token-detail.ok.js +1 -1
- package/public/sections/auth/parts/token-list.ok.js +1 -1
- package/public/sections/db/modals/add-item-modal.ok.js +1 -1
- package/public/sections/db/modals/create-env-modal.ok.js +1 -1
- package/public/sections/db/modals/create-fts-modal.ok.js +1 -1
- package/public/sections/db/modals/create-index-modal.ok.js +1 -1
- package/public/sections/db/modals/create-pipeline-modal.ok.js +1 -1
- package/public/sections/db/modals/demo-env-modal.ok.js +1 -1
- package/public/sections/db/modals/remove-env-modal.ok.js +1 -1
- package/public/sections/db/modals/schema-edit-modal.ok.js +1 -1
- package/public/sections/db/parts/db-overview.ok.js +1 -1
- package/public/sections/db/parts/db-pipelines-panel.ok.js +1 -1
- package/public/sections/db/parts/edit-row.ok.js +1 -1
- package/public/sections/db/parts/tm-timeline.ok.js +1 -1
- package/public/sections/db/parts/type-changelog.ok.js +1 -1
- package/public/sections/db/parts/type-list.ok.js +1 -1
- package/public/sections/db/parts/type-pipelines-tab.ok.js +1 -1
- package/public/sections/db/parts/type-schema-tab.ok.js +1 -1
- package/public/sections/db/parts/type-viewer.ok.js +1 -1
- package/public/sections/db/parts/type-violations-tab.ok.js +1 -1
- package/public/sections/embeddings/modals/register-model-modal.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-engine-declaration-editor.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-engine-list.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-lifecycle-bar.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-model-catalog.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/embeddings-engine-panel.ok.js +1 -1
- package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
- package/public/sections/embeddings/parts/pipeline-create-panel.ok.js +1 -1
- package/public/sections/engines/engine-panel-shared-style.js +1 -1
- package/public/sections/engines/engine-ui-utils.js +1 -1
- package/public/sections/engines/modals/engine-modal.ok.js +1 -1
- package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
- package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
- package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
- package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
- package/public/sections/engines/parts/engine-row-item.ok.js +1 -1
- package/public/sections/engines/parts/generic-engine-panel.ok.js +1 -1
- package/public/sections/files/parts/files-blob-status.ok.js +1 -1
- package/public/sections/files/parts/files-collection-list.ok.js +1 -1
- package/public/sections/files/parts/files-collection-panel.ok.js +1 -1
- package/public/sections/files/parts/files-file-list.ok.js +1 -1
- package/public/sections/files/parts/files-overview.ok.js +1 -1
- package/public/sections/files/parts/files-path-browser.ok.js +1 -1
- package/public/sections/files/parts/files-upload-panel.ok.js +1 -1
- package/public/sections/functions/modals/function-modal.ok.js +1 -1
- package/public/sections/functions/parts/function-detail.ok.js +1 -1
- package/public/sections/functions/parts/function-logs.ok.js +1 -1
- package/public/sections/functions/parts/function-runner.ok.js +1 -1
- package/public/sections/functions/parts/functions-list.ok.js +1 -1
- package/public/sections/license/parts/license-panel.ok.js +1 -1
- package/public/sections/queue/modals/create-bucket-modal.ok.js +1 -1
- package/public/sections/queue/modals/edit-bucket-modal.ok.js +1 -1
- package/public/sections/queue/modals/edit-job-modal.ok.js +1 -1
- package/public/sections/queue/modals/enqueue-job-modal.ok.js +1 -1
- package/public/sections/queue/modals/job-type-modal.ok.js +1 -1
- package/public/sections/queue/parts/ok-job-form.ok.js +1 -1
- package/public/sections/queue/parts/queue-buckets.ok.js +1 -1
- package/public/sections/queue/parts/queue-job-types.ok.js +1 -1
- package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
- package/public/sections/queue/parts/queue-types.ok.js +1 -1
- package/public/sections/queue/parts/queue-workers.ok.js +1 -1
- package/public/sections/sync/parts/sync-node-detail.ok.js +1 -1
- package/public/sections/sync/parts/sync-retention.ok.js +1 -1
- package/public/sections/sync/parts/sync-topology.ok.js +1 -1
- package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
- package/public/sections/system/parts/system-api-panel.ok.js +1 -1
- package/public/sections/system/parts/system-auth-panel.ok.js +1 -1
- package/public/sections/system/parts/system-log-history.ok.js +1 -1
- package/public/sections/system/parts/system-log.ok.js +1 -1
- package/public/sections/system/parts/system-status.ok.js +1 -1
- package/public/sections/system/parts/system-sync-panel.ok.js +1 -1
- package/public/sections/views/modals/create-view-modal.ok.js +1 -1
- package/public/sections/views/parts/view-detail.ok.js +1 -1
- package/public/sections/views/parts/views-list.ok.js +1 -1
- package/public/sections/views/parts/views-overview.ok.js +1 -1
- package/public/setup-app.js +1 -1
- package/public/stores/auth-store.js +1 -1
- package/public/stores/events-store.js +1 -1
- package/public/stores/functions-store.js +1 -1
- package/public/stores/okdb-store.js +1 -1
- package/public/stores/theme-store.js +1 -1
- package/public/util/permissions.js +1 -1
- package/public/util/sift-schema.js +1 -1
- package/public/vendor/okjs/ok.esm.min.js +1 -2
- package/public/vendor/okjs/toolkit/behavior/async.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-chart.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-doc-viewer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-marked.ok.js +1 -1
- package/public/vendor/okjs/toolkit/components/ok-monaco.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-layer-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-layer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-overlay.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/ok-sandbox.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/transition.ok.js +1 -1
- package/public/vendor/okjs/toolkit/core/virtualized.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-console-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-console.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-fps-monitor.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-inspector-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-inspector.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-js-tree.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-timeline-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/devtools/ok-timeline.ok.js +1 -1
- package/public/vendor/okjs/toolkit/docs/doc-viewer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/editor/ok-live-component.ok.js +1 -1
- package/public/vendor/okjs/toolkit/editor/ok-live-example.ok.js +1 -1
- package/public/vendor/okjs/toolkit/editor/ok-live-shell.ok.js +1 -1
- package/public/vendor/okjs/toolkit/elements/ok-dropdown.ok.js +1 -1
- package/public/vendor/okjs/toolkit/elements/ok-icon.ok.js +1 -1
- package/public/vendor/okjs/toolkit/elements/ok-select.ok.js +1 -1
- package/public/vendor/okjs/toolkit/elements/ok-table.ok.js +1 -1
- package/public/vendor/okjs/toolkit/errors/ok-crash-boundary.ok.js +1 -1
- package/public/vendor/okjs/toolkit/errors/ok-crash-info.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-editor-examples.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-editor.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-key-editor-tips.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-key-editor.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/i18n-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/i18n/ok-i18n.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-contextmenu.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-dismiss-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-draggable.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-flyover-panel.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-flyover.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-highlight-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-highlight.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-hotkeys-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-picker-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-popout-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-popout.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-portal-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/interaction/ok-submenu.ok.js +1 -1
- package/public/vendor/okjs/toolkit/layout/ok-resizer.ok.js +1 -1
- package/public/vendor/okjs/toolkit/manifest.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-modal-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-modal.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-toast-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/modals/ok-window.ok.js +1 -1
- package/public/vendor/okjs/toolkit/navigation/hash-router.ok.js +1 -1
- package/public/vendor/okjs/toolkit/navigation/history-router.ok.js +1 -1
- package/public/vendor/okjs/toolkit/navigation/router.ok.js +1 -1
- package/public/vendor/okjs/toolkit/sync/reactive-sync-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/sync/reactive-sync.js +1 -1
- package/public/vendor/okjs/toolkit/theming/blocks/ok-design-button.css.js +1 -1
- package/public/vendor/okjs/toolkit/theming/blocks/ok-design-input.css.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-design-style.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-design-vars.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-design.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-input.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-service.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-style.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-utils.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-variable.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor-vm.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme-editor/ok-theme-editor.ok.js +1 -1
- package/public/vendor/okjs/toolkit/theming/ok-theme.ok.js +1 -1
- package/public/view-models/type-query-vm.js +1 -1
- package/okdb-data/default/data.mdb +0 -0
- package/okdb-data/default/lock.mdb +0 -0
- package/okdb-data/~log/data.mdb +0 -0
- package/okdb-data/~log/lock.mdb +0 -0
- package/okdb-data/~system/data.mdb +0 -0
- package/okdb-data/~system/lock.mdb +0 -0
- package/public/images/logo.png +0 -0
- package/public/images/logo.svg +0 -333
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function t(t,r){return t-=117,e()[t]}function e(){const t=["28343862WCCZhk","default","1440372FcNpgZ","3247270nRdTMr","busy","5074824duSxRJ","1226vFqYKI","8ChWJXs","965094ubjKHq","result","setAttribute","error","createElement","name","10BUOquU","$attr","function","templates","template","childNodes","await","1507051hmuPiv","$cache","4404pYNaei","content"];return(e=function(){return t})()}!function(){const r=t,n=e();for(;;)try{if(658589==parseInt(r(126))/1+-parseInt(r(124))/2*(-parseInt(r(141))/3)+parseInt(r(123))/4+parseInt(r(121))/5+parseInt(r(120))/6+-parseInt(r(139))/7*(parseInt(r(125))/8)+-parseInt(r(118))/9*(parseInt(r(132))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var r={tag:"async",unwrap:!0,prepare(e){const r=t,n=e[r(140)].cmp[r(135)]||{},s=n[r(119)][r(117)];for(let t of Array.from(s[r(137)])){const e=t.tagName?.toLowerCase();if("then"===e||"catch"===e){const a=document[r(130)](r(136));a[r(128)]("name",e);for(let e of t.attributes)a[r(128)](e[r(131)],e.value);a[r(117)].append(...t[r(137)]),n[e]=a,s.removeChild(t)}}},context:e=>({busy:!0,error:null,result:null,async run(){const r=t;this[r(122)]=!0,this.error=null,this[r(127)]=null;try{const t=typeof e.$attr[r(138)]===r(134)?e[r(133)][r(138)]():e.$attr[r(138)];this[r(127)]=await t}catch(t){this[r(129)]=t}this.busy=!1}}),mount(t){this.run()},template:'<if :="busy"><slot/><else :if="error"><slot name="catch" scope="inner" var:error/><else><slot scope="inner" name="then" var:result/></else></else></if>'};export{r as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const t=a;function r(){const t=["#f49","739878TqjDCv","config","getDefaultOptions","$el","datasets","[tag],canvas{width:100%;height:100%}[tag]{position:relative;display:flex}.chart-container{position:relative;width:100%;height:100%}canvas{border-radius:6px;display:block}.chart-error,.chart-loader{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:.9rem;border-radius:6px;background:rgba(0,0,0,.15);backdrop-filter:blur(3px);z-index:10}.chart-loader{color:#aaa}.chart-error{color:#f66}","#ffa07a","#aaa","map","tension","$watch","Canvas element not found","rgba(255,255,255,0.05)","$attr","type","#ccc","backgroundColor","729340WoAEEY","Failed to load chart","data","3354736OpVPwr","options","string","linear",'<div class="chart-container"><if :="loading"><div class="chart-loader">Loading chart…</div></if><if :="error"><div class="chart-error">⚠️ {{ error }}</div></if><canvas/></div>',"borderColor","#1a1830","$log","150417dHNmCj","Chart update failed","chart","loading","#8f5","https://cdn.jsdelivr.net/npm/chart.js@4.5.1/+esm","2974895SvbYPS","canvas","message","#a0a0ff","#ffcc00","autoColor","2748630EVbwLo","update","line","error","4airjTW","3984528hlzhrC","Chart initialization failed","destroy","applyAutoColors","#fff","category","object","8UJaNcN","querySelector"];return(r=function(){return t})()}function a(t,a){return t-=440,r()[t]}!function(){const t=a,o=r();for(;;)try{if(463610==-parseInt(t(454))/1+parseInt(t(471))/2+-parseInt(t(494))/3+parseInt(t(443))/4*(parseInt(t(488))/5)+parseInt(t(444))/6+parseInt(t(474))/7+-parseInt(t(451))/8*(-parseInt(t(482))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}();let o=null;var e={tag:"ok-chart",attr:{type:{type:t(476),default:t(441)},data:{type:t(450),default:()=>({labels:[],datasets:[]})},options:{type:t(450),default:()=>({})},autoColor:{type:"boolean",default:!0}},context:t=>({loading:!0,error:null,chart:null,getDefaultOptions(){const t=a;return{responsive:!0,maintainAspectRatio:!1,scales:{x:{type:t(449),ticks:{color:t(461)},grid:{color:t(466)}},y:{type:t(477),ticks:{color:t(461)},grid:{color:t(466)}}},plugins:{legend:{labels:{color:t(469),boxWidth:12}},tooltip:{backgroundColor:t(480),borderRadius:8,titleColor:t(448),bodyColor:"#ccc"}},elements:{line:{borderWidth:2},point:{radius:3,hoverRadius:4}}}},applyAutoColors(r){const o=a;if(!t[o(467)][o(493)]||!r[o(458)])return r;const e=["#4dc0ff",o(486),o(453),o(492),o(491),o(460)];return{...r,datasets:r[o(458)][o(462)]((t,r)=>({...t,borderColor:t.borderColor||e[r%e.length],backgroundColor:t[o(470)]||(t[o(479)]||e[r%e.length])+"33",tension:t[o(463)]??.3}))}},async initChart(){const r=a;this[r(485)]=!0,this.error=null;try{if(!o){const t=await import(r(487)),{Chart:a,CategoryScale:e,LinearScale:i,BarController:n,LineController:s,PointElement:l,LineElement:c,BarElement:d,Title:h,Tooltip:p,Legend:u,Filler:f}=t;a.register(e,i,n,s,l,c,d,h,p,u,f),o=t}const{Chart:a}=o,e=t[r(457)][r(452)](r(489));if(!e)throw new Error(r(465));const i=e.getContext("2d"),n=this[r(447)](t.$attr[r(473)]),s={...this[r(456)](),...t[r(467)].options||{}};this.chart&&this[r(484)][r(446)](),this[r(484)]=new a(i,{type:t.$attr[r(468)],data:n,options:s}),this.loading=!1}catch(a){t[r(481)]?.error?.([r(445)],{err:a}),this[r(442)]=a[r(490)]||r(472),this[r(485)]=!1}},updateChart(){const r=a;if(this[r(484)])try{const a=this.applyAutoColors(t[r(467)][r(473)]),o={...this[r(456)](),...t[r(467)][r(475)]||{}};this[r(484)][r(455)][r(468)]=t.$attr.type,this[r(484)][r(473)]=a,this[r(484)][r(475)]=o,this[r(484)][r(440)]()}catch(a){t[r(481)]?.[r(442)]?.([r(483)],{err:a})}}}),async mounted(r){const a=t;await this.initChart(),r[a(464)](()=>[r[a(467)][a(468)],r[a(467)][a(473)],r[a(467)].options],()=>{this.updateChart()},{deep:!0})},unmounted(r){const a=t;this[a(484)]&&(this.chart[a(446)](),this.chart=null)},template:t(478),style:t(459)};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./ok-marked.ok.js";function t(e,t){const n=Array.isArray(t)?t.join("|"):t,o=new RegExp("```(?:"+n+")[^\\n]*\\n([\\s\\S]*?)```","i"),r=e.match(o);return r?r[1].trim():null}function n(e){const t=[];for(const o of e)o.file&&t.push(o),o.children?.length&&t.push(...n(o.children));return t}const o=[{name:["note","warning","tip"],render({name:e,content:t}){const n=t.trim().split("\n");let o=null,r=t.trim();const a=n[0]?.trim();a&&!a.startsWith("<")&&(o=a,r=n.slice(1).join("\n").trim());const i=document.createElement("div");i.className=`ok-callout ok-callout--${e}`;const l=document.createElement("div");l.className="ok-callout__icon",l.innerHTML=`<ok-icon name="${{note:"info",warning:"alert-triangle",tip:"lightbulb"}[e]}"></ok-icon>`;const c=document.createElement("div");if(c.className="ok-callout__content",o){const e=document.createElement("div");e.className="ok-callout__title",e.textContent=o,c.appendChild(e)}const s=document.createElement("div");return s.className="ok-callout__body",s.innerHTML=r,c.appendChild(s),i.appendChild(l),i.appendChild(c),i}},{name:"raw",render({content:e}){const t=document.createElement("div");return t.innerHTML=e.trim(),[...t.childNodes]}}],r={async render({lang:e,code:t,scope:n}){const o=document.createElement("div");o.className="ok-code-block";const r=document.createElement("div");r.className="ok-code-block__header";const a=document.createElement("span");a.className="lang",a.textContent=e.toUpperCase();const i=document.createElement("span");i.className="copy",i.textContent="Copy",i.addEventListener("click",()=>{navigator.clipboard.writeText(t.innerText?.trim()),i.textContent="Copied!",setTimeout(()=>i.textContent="Copy",1200)}),r.appendChild(a),r.appendChild(i);const l=document.createElement("pre");o.appendChild(r),o.appendChild(l);try{await n.$ok.componentRegistry.activate(n.$ok.componentRegistry.getRegistration("ok-monaco"),n);const o=await n.$ok.shared.monaco.load();t.setAttribute("data-lang","js"===e?"javascript":e);const r=getComputedStyle(n.$el).getPropertyValue("--ok-monaco-theme").trim()||"vs-dark";t.dataset.monacoSource=t.textContent,await o.editor.colorizeElement(t,{theme:r});const a=t.querySelectorAll("br");a[a.length-1]?.remove()}catch(e){}return l.append(t),o}};var a={tag:"ok-doc-viewer",dependencies:[e],attr:{anchor:{},file:{},root:{default:"/docs/"},prefix:{default:"#/docs/"},blocks:{default:()=>[]},codeBlock:{default:null},preprocess:{default:null},postprocess:{default:null},noDefaultBlocks:{default:!1,empty:!0},headingLevels:{default:()=>[1,2,3]},sidebarTitle:{default:"On this page"},scrollOffset:{default:80},iconSet:{default:"lucide"},manifest:{default:null}},context(e){const a=()=>new URL(e.$attr.root,document.baseURI).href;function i(){const t=e.$attr.headingLevels;return Array.isArray(t)?t.map(Number):"string"==typeof t?t.split(",").map(e=>Number(e.trim())):[1,2,3]}function l(n){const r={blocks:[],index:0};return n=function(e,n,o){for(const r of o){const o=Array.isArray(r.name)?r.name.join("|"):r.name,a=new RegExp(`:::[ \\t]*(${o})\\b([\\s\\S]*?):::`,"g");e=e.replace(a,(e,o,a)=>{const i=n.index++,l="params"in r?Object.fromEntries(Object.entries(r.params).map(([e,n])=>[e,t(a,n)])):void 0;return n.blocks.push({id:i,block:r,options:{name:o,content:a,fence:e=>t(a,e),params:l}}),`<span class="ok-docs-block" data-block="${i}"></span>`})}return e}(n,r,e.$attr.noDefaultBlocks?[...e.$attr.blocks]:[...o,...e.$attr.blocks]),n=function(e,t,n="lucide"){const o=[];return e.replace(/(```[\s\S]*?```|`[^`\n]+`)/g,e=>(o.push(e),`\0${o.length-1}\0`)).replace(/:([a-z0-9_-]+(?:\/[a-z0-9_-]+)?):/gi,(e,o)=>{const r=o.indexOf("/"),a=-1!==r?o.slice(0,r):n,i=-1!==r?o.slice(r+1):o,l=t.index++;return t.blocks.push({id:l,inline:!0,renderInline(){const e=document.createElement("ok-icon");return e.setAttribute("name",i),e.setAttribute("set",a),e}}),`<span class="ok-docs-block" data-block="${l}"></span>`}).replace(/\x00(\d+)\x00/g,(e,t)=>o[Number(t)])}(n,r,e.$attr.iconSet||"lucide"),{md:n,bag:r}}async function c(t,n){const o=a(),i=new URL(a()+e.$attr.file,document.baseURI).href;t.querySelectorAll("a[href]").forEach(t=>{const n=t.getAttribute("href");if(!n||/^(https?:)?\/\//.test(n)||n.startsWith("#"))return;const r=new URL(n,i);if(!r.href.startsWith(o))return;let a=r.href.replace(o,"").replace(/^\//,"");a.endsWith(".md")&&(a=a.slice(0,-3)),t.setAttribute("href",e.$attr.prefix+a+r.hash)});for(const o of n.blocks){const n=t.querySelector(`.ok-docs-block[data-block="${o.id}"]`);if(!n)continue;let r;if(o.inline)r=[o.renderInline()];else{const e=await o.block.render(o.options);r=Array.isArray(e)?e:[e]}n.replaceWith(...r);for(const t of r)await e.$ok.init(t)}const l=e.$attr.codeBlock||r;for(const n of[...t.querySelectorAll("pre code")]){if(!n.textContent.includes("\n"))continue;const t=n.closest("pre"),o=[...n.classList].find(e=>e.startsWith("language-"))?.replace("language-","")||"plaintext",r=await l.render({lang:o,code:n,scope:e}),a=Array.isArray(r)?r:[r];t.replaceWith(...a)}return[...t.childNodes]}let s=null,d=null,p=!1,m=!1,g=null,f=e.$attr.file;const u={markedEl:null,sidebarEl:null,headings:[],loading:!!e.$attr.file,error:null,get filteredHeadings(){const e=i();return this.headings.filter(t=>e.includes(t.level))},get prevDoc(){const t=e.$attr.manifest;if(!t?.length)return null;const o=n(t),r=(e.$attr.file||"").replace(/\.md$/,""),a=o.findIndex(e=>(e.file||"").replace(/\.md$/,"")===r);if(a<=0)return null;const i=o[a-1];return{...i,href:e.$attr.prefix+(i.file||"").replace(/\.md$/,"")}},get nextDoc(){const t=e.$attr.manifest;if(!t?.length)return null;const o=n(t),r=(e.$attr.file||"").replace(/\.md$/,""),a=o.findIndex(e=>(e.file||"").replace(/\.md$/,"")===r);if(a<0||a>=o.length-1)return null;const i=o[a+1];return{...i,href:e.$attr.prefix+(i.file||"").replace(/\.md$/,"")}},preprocessFn:t=>e.$attr.preprocess?e.$attr.preprocess(t,l):l(t),postprocessFn:async(t,n)=>e.$attr.postprocess?e.$attr.postprocess(t,n,c):c(t,n),get src(){return a()+e.$attr.file},resetHeadings(e){this.headings=[...e.querySelectorAll("h1,h2,h3,h4,h5,h6")].map(e=>(e.id||(e.id=e.textContent.trim().toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"")),{level:Number(e.tagName[1]),text:e.textContent.trim(),id:e.id}))},resetAnchors(t){const n=i().map(e=>`h${e}`).join(","),o=[...t.querySelectorAll(n)];s?.stop(),g=function(e){for(;e&&e!==document.body;){if(/auto|scroll/.test(getComputedStyle(e).overflowY))return e;e=e.parentElement}return window}(t),s=e.$listen(g,"scroll",()=>{if(p)return clearTimeout(d),void(d=setTimeout(()=>p=!1,500));const t=function(t,n){const o=(n===window?0:n.getBoundingClientRect().top)+(Number(e.$attr.scrollOffset)||80);let r=null;for(const e of t){if(!(e.getBoundingClientRect().top<=o))break;r=e}return r}(o,g);if(!t)return;const n=t.id;e.$attr.anchor!==n&&(m=!0,e.$dispatch("anchor-change",n))})},anchorChanged(t=!1){p=!0;const n=e.$attr.anchor;if(n){const e=this.markedEl?.querySelector(`[id="${n}"]`);e&&e.scrollIntoView({behavior:t?"instant":"smooth",block:"start"})}else g&&g!==window?g.scrollTo({top:0,behavior:t?"instant":"smooth"}):window.scrollTo({top:0,behavior:t?"instant":"smooth"});clearTimeout(d),d=setTimeout(()=>p=!1,500)},loaded(t){p=!0,this.loading=!1,this.error=null,f=e.$attr.file,this.resetHeadings(t),this.resetAnchors(t),e.$dispatch("loaded",{container:t,headings:this.headings}),t.$scope.$ok.nextFrame(()=>{u.anchorChanged(!0),clearTimeout(d),d=setTimeout(()=>p=!1,500)})},onError(t){this.loading=!1,this.error=t?.error?.message||t?.message||"Failed to load document",e.$dispatch("error",t)},sidebarClick(t,n){n?.preventDefault(),e.$dispatch("heading-click",{id:t.id,text:t.text,level:t.level}),e.$dispatch("anchor-change",t.id)}};return e.$watch(()=>[e.$attr.file,e.$attr.anchor],()=>m?(m=!1,void requestAnimationFrame(()=>{u.sidebarEl?.querySelector(".sidebar__link.active")?.scrollIntoView({block:"nearest",behavior:"smooth"})})):e.$attr.file!==f?(u.loading=!0,void(u.error=null)):void u.anchorChanged()),u},mounted(e){e.$listen(e.$el,"transitionstart",t=>{if("--ok-monaco-theme"!==t.propertyName)return;const n=getComputedStyle(e.$el).getPropertyValue("--ok-monaco-theme").trim()||"vs-dark";for(const t of e.$el.querySelectorAll("[data-lang]"))t.dataset.monacoSource&&(t.textContent=t.dataset.monacoSource),window.monaco?.editor.colorizeElement(t,{theme:n})})},template:'<div class="doc-viewer__layout"><div class="doc-viewer__main"><if :="loading"><div class="doc-viewer__loading"><div class="doc-viewer__spinner"/></div></if><if :="error"><div class="doc-viewer__error"><div class="doc-viewer__error-icon">⚠</div><div class="doc-viewer__error-message">{{ error }}</div></div></if><ok-marked class="doc-viewer__content md" :class="{ \'doc-viewer__content--hidden\': loading || !!error }" @mount="markedEl = $el" @loaded="loaded($event.detail.container)" @error="onError($event.detail)" :src :preprocess="preprocessFn" :postprocess="postprocessFn"/><if :="prevDoc || nextDoc"><nav class="doc-viewer__nav"><if :="prevDoc"><a class="doc-viewer__nav-link doc-viewer__nav-prev" :href="prevDoc.href">← {{ prevDoc.label }}</a></if><if :="nextDoc"><a class="doc-viewer__nav-link doc-viewer__nav-next" :href="nextDoc.href">{{ nextDoc.label }} →</a></if></nav></if></div><if :="filteredHeadings.length > 0"><div class="doc-viewer__sidebar" :ref="sidebarEl = $el"><slot name="sidebar-top"/><div class="sidebar__title">{{ $props.sidebarTitle }}</div><each :of="filteredHeadings" let:item="h"><a class="sidebar__link" :class="{ active: $props.anchor === h.id }" :style="{ \'--level\': h.level }" :level="h.level" :href="\'#\' + h.id" @click="sidebarClick(h, $event)">{{ h.text }}</a></each><slot name="sidebar-bottom"/></div></if></div>',style:['\n@property --ok-monaco-theme {\n syntax: \'<custom-ident>\';\n inherits: true;\n initial-value: vs-dark;\n}\n[tag] { display: block; width: 100%; transition: --ok-monaco-theme 1ms allow-discrete; }\n\n[tag] .doc-viewer__layout {\n display: flex;\n align-items: flex-start;\n gap: 2rem;\n padding: 2rem;\n box-sizing: border-box;\n}\n\n[tag] .doc-viewer__main {\n flex: 1;\n min-width: 0;\n max-width: 760px;\n}\n\n[tag] .doc-viewer__sidebar {\n position: sticky;\n top: 100px;\n max-width: 240px;\n max-height: calc(100vh - 120px);\n padding-left: 1.2rem;\n padding-right: 0.4rem;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n border-left: 1px solid var(--ok_color-muted-border, #333);\n scrollbar-width: thin;\n align-self: flex-start;\n}\n\n[tag] .sidebar__title {\n font-size: 11px;\n letter-spacing: 1px;\n color: var(--ok_color-muted-fg, #888);\n margin-bottom: 8px;\n text-transform: uppercase;\n opacity: 0.8;\n flex-shrink: 0;\n}\n\n[tag] .sidebar__link {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 3px 0;\n cursor: pointer;\n font-size: 13px;\n color: var(--ok_color-fg, #eee);\n text-decoration: none;\n transition: color .15s ease;\n position: relative;\n margin-left: calc((var(--level, 1) - 1) * 12px);\n}\n\n[tag] .sidebar__link::before {\n content: "";\n position: absolute;\n left: -10px;\n width: 2px;\n height: 100%;\n background: transparent;\n transition: background .15s ease;\n border-radius: 1px;\n}\n\n[tag] .sidebar__link.active::before { background: var(--ok_color-accent, #4ea1ff); }\n[tag] .sidebar__link:hover { color: var(--ok_color-accent, #4ea1ff); }\n[tag] .sidebar__link[level="1"] { font-weight: 600; opacity: 0.9; margin-top: 4px; }\n\n/* ── Loading ─────────────────────────────────────────────────────────── */\n[tag] .doc-viewer__loading {\n display: flex;\n justify-content: center;\n padding: 4rem 0;\n}\n[tag] .doc-viewer__spinner {\n width: 28px;\n height: 28px;\n border: 3px solid rgba(255,255,255,0.08);\n border-top-color: var(--ok_color-accent, #4ea1ff);\n border-radius: 50%;\n animation: ok-dv-spin 0.7s linear infinite;\n}\n@keyframes ok-dv-spin { to { transform: rotate(360deg); } }\n\n/* ── Error ───────────────────────────────────────────────────────────── */\n[tag] .doc-viewer__error {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.75rem;\n padding: 4rem 0;\n color: var(--ok_color-fg, #eee);\n opacity: 0.65;\n text-align: center;\n}\n[tag] .doc-viewer__error-icon { font-size: 2rem; }\n[tag] .doc-viewer__error-message { font-size: 0.9rem; }\n[tag] .doc-viewer__content--hidden { display: none; }\n\n/* ── Prev / Next nav ─────────────────────────────────────────────────── */\n[tag] .doc-viewer__nav {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n margin-top: 3rem;\n padding-top: 1.5rem;\n border-top: 1px solid var(--ok_color-muted-border, #333);\n gap: 1rem;\n}\n[tag] .doc-viewer__nav-link {\n color: var(--ok_color-accent, #4ea1ff);\n text-decoration: none;\n font-size: 0.9rem;\n opacity: 0.85;\n transition: opacity 0.15s;\n max-width: 45%;\n}\n[tag] .doc-viewer__nav-link:hover { opacity: 1; }\n[tag] .doc-viewer__nav-next { margin-left: auto; text-align: right; }\n\n/* ── Responsive ──────────────────────────────────────────────────────── */\n@media (max-width: 768px) {\n [tag] .doc-viewer__layout { flex-direction: column; padding: 1rem; gap: 1.5rem; }\n [tag] .doc-viewer__main { max-width: 100%; }\n [tag] .doc-viewer__sidebar {\n position: static;\n max-width: 100%;\n max-height: none;\n border-left: none;\n border-top: 1px solid var(--ok_color-muted-border, #333);\n padding: 0.8rem 0 0;\n overflow-y: visible;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 2px 8px;\n }\n [tag] .sidebar__title { width: 100%; margin-bottom: 4px; }\n [tag] .sidebar__link { margin-left: 0 !important; font-size: 12px; }\n [tag] .sidebar__link::before { display: none; }\n}\n',"\n[tag] .md { line-height: 1.6; }\n\n[tag] .md h1, [tag] .md h2, [tag] .md h3 { font-weight: 600; line-height: 1.25; margin: 2rem 0 0.8rem; }\n[tag] .md h1 { font-size: 2rem; }\n[tag] .md h2 { font-size: 1.55rem; color: var(--ok_color-accent, #4ea1ff); }\n[tag] .md h3 { font-size: 1.25rem; }\n[tag] .md h4 { font-size: 1.1rem; margin: 1.2rem 0 0.6rem; font-weight: 600; }\n[tag] .md h5 { font-size: 1rem; margin: 1rem 0 0.6rem; font-weight: 600; opacity: 0.9; }\n[tag] .md h6 { font-size: 0.9rem; margin: 0.8rem 0 0.5rem; font-weight: 500; opacity: 0.85; }\n\n[tag] .md p { margin: 0.8rem 0; color: var(--ok_color-fg, #eee); }\n[tag] .md ul, [tag] .md ol { padding-left: 1.4rem; margin: 0.8rem 0; }\n[tag] .md li { margin: 0.3rem 0; }\n\n[tag] .md hr {\n border: 0; height: 1px; margin: 2rem 0;\n background: linear-gradient(to right, transparent, #444, transparent);\n opacity: 0.7;\n}\n\n[tag] .md pre {\n margin: 1.4rem 0;\n background: rgba(255,255,255,0.05);\n border-radius: 6px;\n box-shadow: 0 0 0 1px rgba(255,255,255,0.08);\n}\n[tag] .md pre, [tag] .md blockquote { margin: 1.4rem 0; }\n[tag] .md code { font-size: 0.95em; font-family: var(--font-mono, monospace); overflow-x: auto; }\n[tag] .md ok-icon { vertical-align: middle; }\n\n[tag] .ok-code-block {\n margin: 1.4rem 0;\n border-radius: 8px;\n overflow: hidden;\n background: var(--ok_color-code-bg, #1e1e1e);\n border: 1px solid var(--ok_color-code-border, rgba(255,255,255,0.06));\n}\n\n[tag] .ok-code-block__header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: var(--ok_color-code-header-bg, #252525);\n padding: 6px 10px;\n font-size: 11px;\n color: var(--ok_color-code-text, #cfcfcf);\n font-family: var(--font-mono, monospace);\n border-bottom: 1px solid var(--ok_color-code-header-border, rgba(255,255,255,0.07));\n}\n\n[tag] .ok-code-block .lang { opacity: 0.8; letter-spacing: 0.03em; }\n\n[tag] .ok-code-block .copy {\n cursor: pointer; color: var(--ok_color-code-copy, #aaa); font-size: 11px;\n padding: 2px 6px; border-radius: 4px; transition: 0.15s; user-select: none;\n}\n[tag] .ok-code-block .copy:hover { color: var(--ok_color-code-copy-hover, white); background: var(--ok_color-code-copy-hover-bg, rgba(255,255,255,0.08)); }\n[tag] .ok-code-block pre { margin: 0 !important; padding: 0.6rem 0.8rem !important; background: transparent !important; }\n\n[tag] .ok-callout {\n display: flex; gap: 0.75rem; padding: 1rem 1.2rem; margin: 1.4rem 0;\n border-radius: 8px; border: 1px solid rgba(255,255,255,0.06);\n background: rgba(255,255,255,0.035);\n}\n[tag] .ok-callout__icon ok-icon { width: 20px; height: 20px; opacity: 0.9; }\n[tag] .ok-callout__content { flex: 1; }\n[tag] .ok-callout__title { font-weight: 600; margin-bottom: 0.25rem; font-size: 0.95rem; }\n[tag] .ok-callout__body { line-height: 1.5; opacity: 0.9; }\n[tag] .ok-callout--note { border-left: 4px solid var(--ok_color-accent, #4ea1ff); }\n[tag] .ok-callout--warning { border-left: 4px solid #ffb24e; background: rgba(255,178,78,0.06); }\n[tag] .ok-callout--tip { border-left: 4px solid #44d07a; background: rgba(68,208,122,0.06); }\n"]};export{a as default};
|
|
1
|
+
import e from"./ok-marked.ok.js";function n(){const e=["text","1816794MspXfi","root","trim","tagName","heading-click","```(?:","markedEl","params","Copied!","Failed to load document","preprocess","push","append","--ok-monaco-theme","index","ok-callout ok-callout--","monaco","blocks","iconSet","note","pre code","tip","anchor-change","monacoSource","appendChild","entries",'<div class="doc-viewer__layout"><div class="doc-viewer__main"><if :="loading"><div class="doc-viewer__loading"><div class="doc-viewer__spinner"/></div></if><if :="error"><div class="doc-viewer__error"><div class="doc-viewer__error-icon">⚠</div><div class="doc-viewer__error-message">{{ error }}</div></div></if><ok-marked class="doc-viewer__content md" :class="{ \'doc-viewer__content--hidden\': loading || !!error }" @mount="markedEl = $el" @loaded="loaded($event.detail.container)" @error="onError($event.detail)" :src :preprocess="preprocessFn" :postprocess="postprocessFn"/><if :="prevDoc || nextDoc"><nav class="doc-viewer__nav"><if :="prevDoc"><a class="doc-viewer__nav-link doc-viewer__nav-prev" :href="prevDoc.href">← {{ prevDoc.label }}</a></if><if :="nextDoc"><a class="doc-viewer__nav-link doc-viewer__nav-next" :href="nextDoc.href">{{ nextDoc.label }} →</a></if></nav></if></div><if :="filteredHeadings.length > 0"><div class="doc-viewer__sidebar" :ref="sidebarEl = $el"><slot name="sidebar-top"/><div class="sidebar__title">{{ $props.sidebarTitle }}</div><each :of="filteredHeadings" let:item="h"><a class="sidebar__link" :class="{ active: $props.anchor === h.id }" :style="{ \'--level\': h.level }" :level="h.level" :href="\'#\' + h.id" @click="sidebarClick(h, $event)">{{ h.text }}</a></each><slot name="sidebar-bottom"/></div></if></div>','"></span>',"copy","anchorChanged","test","forEach","codeBlock",")\\b([\\s\\S]*?):::","13NYlSKN","3252jGvDxy","ok-callout__icon","instant","string","466FlxJUf",":::[ \\t]*(","match","error","getRegistration","overflowY","getAttribute","getBoundingClientRect","anchor","$listen","scrollTo","data-lang","language-","loaded","colorizeElement",")[^\\n]*\\n([\\s\\S]*?)```","preventDefault","smooth","querySelector","headingLevels","vs-dark","resetHeadings","toUpperCase","Copy","innerText","20dMhLMm","[data-lang]","body","activate","find","indexOf","stop","56SsvCbQ","604sozPFA","h1,h2,h3,h4,h5,h6","dataset","componentRegistry","warning","propertyName","fromEntries","nearest","clipboard","$attr","On this page","shared","pre","2115eLvRWy","scroll","map","/docs/","options",'[id="',"length","load","lucide","84894JWQsnD","join","className","replaceWith","innerHTML","children","childNodes","querySelectorAll","ok-callout__title","ok-monaco","file","setAttribute","textContent","alert-triangle",".sidebar__link.active","split","writeText","getPropertyValue","slice","href","toLowerCase","11069496slHUrm","editor","includes","scrollIntoView","createElement","init","replace","addEventListener","postprocess","lightbulb","sidebarEl","endsWith","closest","render",'<span class="ok-docs-block" data-block="',"prefix","isArray","level","resetAnchors","noDefaultBlocks",'<ok-icon name="',"$watch","$el","div","ok-doc-viewer","plaintext","ok-code-block","span","scrollOffset","$scope","baseURI","$ok","hash","renderInline","ok-callout__body","5058218gqHNRI","top","parentElement","55KLRNdf","startsWith","manifest",'"></ok-icon>',"202784bdQQbT","click","loading","name","a[href]","findIndex","$dispatch","raw",".md","block","headings"];return(n=function(){return e})()}const t=a;function o(e,n){const t=a,o=Array[t(231)](n)?n[t(364)]("|"):n,r=new RegExp(t(274)+o+t(323),"i"),i=e[t(310)](r);return i?i[1].trim():null}function r(e){const n=a,t=[];for(const o of e)o[n(373)]&&t[n(280)](o),o[n(368)]?.[n(360)]&&t[n(280)](...r(o[n(368)]));return t}function a(e,t){return e-=230,n()[e]}!function(){const e=a,t=n();for(;;)try{if(257018==parseInt(e(354))/1*(-parseInt(e(308))/2)+-parseInt(e(304))/3*(parseInt(e(341))/4)+-parseInt(e(253))/5*(parseInt(e(363))/6)+parseInt(e(340))/7*(parseInt(e(257))/8)+-parseInt(e(269))/9*(-parseInt(e(333))/10)+-parseInt(e(250))/11+parseInt(e(384))/12*(parseInt(e(303))/13))break;t.push(t.shift())}catch(e){t.push(t.shift())}}();const i=[{name:[t(288),t(345),t(290)],render({name:e,content:n}){const o=t,r={note:"info",warning:o(376),tip:o(393)},a=n[o(271)]()[o(378)]("\n");let i=null,c=n[o(271)]();const s=a[0]?.[o(271)]();s&&!s[o(254)]("<")&&(i=s,c=a[o(381)](1).join("\n")[o(271)]());const l=document[o(388)](o(238));l[o(365)]=o(284)+e;const d=document.createElement(o(238));d[o(365)]=o(305),d.innerHTML=o(235)+r[e]+o(256);const p=document[o(388)]("div");if(p.className="ok-callout__content",i){const e=document[o(388)](o(238));e[o(365)]=o(371),e[o(375)]=i,p[o(293)](e)}const m=document[o(388)]("div");return m[o(365)]=o(249),m[o(367)]=c,p[o(293)](m),l[o(293)](d),l[o(293)](p),l}},{name:t(264),render({content:e}){const n=t,o=document.createElement(n(238));return o[n(367)]=e[n(271)](),[...o.childNodes]}}],c={async render({lang:e,code:n,scope:o}){const r=t,a=document[r(388)](r(238));a[r(365)]=r(241);const i=document[r(388)](r(238));i[r(365)]="ok-code-block__header";const c=document.createElement(r(242));c[r(365)]="lang",c.textContent=e[r(330)]();const s=document[r(388)]("span");s.className=r(297),s[r(375)]="Copy",s[r(391)](r(258),()=>{const e=r;navigator[e(349)][e(379)](n[e(332)]?.trim()),s[e(375)]=e(277),setTimeout(()=>s[e(375)]=e(331),1200)}),i[r(293)](c),i.appendChild(s);const l=document[r(388)](r(353));a[r(293)](i),a[r(293)](l);try{await o.$ok[r(344)][r(336)](o[r(246)][r(344)][r(312)](r(372)),o);const t=await o.$ok[r(352)][r(285)][r(361)]();n[r(374)](r(319),"js"===e?"javascript":e);const a=getComputedStyle(o[r(237)])[r(380)](r(282))[r(271)]()||r(328);n[r(343)][r(292)]=n[r(375)],await t[r(385)][r(322)](n,{theme:a});const i=n[r(370)]("br");i[i[r(360)]-1]?.remove()}catch(e){}return l[r(281)](n),a}};var s={tag:t(239),dependencies:[e],attr:{anchor:{},file:{},root:{default:t(357)},prefix:{default:"#/docs/"},blocks:{default:()=>[]},codeBlock:{default:null},preprocess:{default:null},postprocess:{default:null},noDefaultBlocks:{default:!1,empty:!0},headingLevels:{default:()=>[1,2,3]},sidebarTitle:{default:t(351)},scrollOffset:{default:80},iconSet:{default:t(362)},manifest:{default:null}},context(e){const n=t,s=()=>new URL(e.$attr[n(270)],document[n(245)])[n(382)];function l(){const t=n,o=e[t(350)][t(327)];return Array[t(231)](o)?o[t(356)](Number):typeof o===t(307)?o[t(378)](",")[t(356)](e=>Number(e.trim())):[1,2,3]}function d(r){const a=n,c={blocks:[],index:0};return{md:r=function(e,n,o=t(362)){const r=t,a=[];return e[r(390)](/(```[\s\S]*?```|`[^`\n]+`)/g,e=>{const n=r;return a[n(280)](e),"\0"+(a[n(360)]-1)+"\0"})[r(390)](/:([a-z0-9_-]+(?:\/[a-z0-9_-]+)?):/gi,(e,t)=>{const a=r,i=t[a(338)]("/"),c=-1!==i?t.slice(0,i):o,s=-1!==i?t.slice(i+1):t,l=n.index++;return n.blocks[a(280)]({id:l,inline:!0,renderInline(){const e=a,n=document[e(388)]("ok-icon");return n[e(374)](e(260),s),n.setAttribute("set",c),n}}),'<span class="ok-docs-block" data-block="'+l+a(296)}).replace(/\x00(\d+)\x00/g,(e,n)=>a[Number(n)])}(r=function(e,n,r){const a=t;for(const t of r){const r=Array.isArray(t.name)?t.name[a(364)]("|"):t[a(260)],i=new RegExp(a(309)+r+a(302),"g");e=e[a(390)](i,(e,r,i)=>{const c=a,s=n[c(283)]++,l=c(276)in t?Object[c(347)](Object[c(294)](t.params)[c(356)](([e,n])=>[e,o(i,n)])):void 0;return n[c(286)][c(280)]({id:s,block:t,options:{name:r,content:i,fence:e=>o(i,e),params:l}}),c(398)+s+c(296)})}return e}(r,c,e[a(350)][a(234)]?[...e.$attr.blocks]:[...i,...e[a(350)][a(286)]]),c,e[a(350)][a(287)]||a(362)),bag:c}}async function p(t,o){const r=n,a=s(),i=new URL(s()+e[n(350)][n(373)],document[n(245)])[r(382)];t[r(370)](r(261))[r(300)](n=>{const t=r,o=n[t(314)](t(382));if(!o||/^(https?:)?\/\//.test(o)||o.startsWith("#"))return;const c=new URL(o,i);if(!c[t(382)][t(254)](a))return;let s=c[t(382)].replace(a,"")[t(390)](/^\//,"");s[t(395)](t(265))&&(s=s[t(381)](0,-3)),n[t(374)](t(382),e[t(350)][t(230)]+s+c[t(247)])});for(const n of o.blocks){const o=t[r(326)]('.ok-docs-block[data-block="'+n.id+'"]');if(!o)continue;let a;if(n.inline)a=[n[r(248)]()];else{const e=await n[r(266)][r(397)](n[r(358)]);a=Array.isArray(e)?e:[e]}o[r(366)](...a);for(const n of a)await e[r(246)][r(389)](n)}const l=e[r(350)][r(301)]||c;for(const n of[...t[r(370)](r(289))]){if(!n.textContent[r(386)]("\n"))continue;const t=n[r(396)](r(353)),o=[...n.classList][r(337)](e=>e[r(254)](r(320)))?.replace(r(320),"")||r(240),a=await l[r(397)]({lang:o,code:n,scope:e}),i=Array.isArray(a)?a:[a];t[r(366)](...i)}return[...t[r(369)]]}let m=null,g=null,f=!1,u=!1,h=null,v=e[n(350)][n(373)];const b={markedEl:null,sidebarEl:null,headings:[],loading:!!e[n(350)].file,error:null,get filteredHeadings(){const e=n,t=l();return this[e(267)].filter(n=>t[e(386)](n[e(232)]))},get prevDoc(){const t=n,o=e[t(350)][t(255)];if(!o?.[t(360)])return null;const a=r(o),i=(e[t(350)].file||"")[t(390)](/\.md$/,""),c=a[t(262)](e=>(e.file||"")[t(390)](/\.md$/,"")===i);if(c<=0)return null;const s=a[c-1];return{...s,href:e.$attr.prefix+(s[t(373)]||"").replace(/\.md$/,"")}},get nextDoc(){const t=n,o=e[t(350)][t(255)];if(!o?.length)return null;const a=r(o),i=(e.$attr.file||"")[t(390)](/\.md$/,""),c=a[t(262)](e=>(e[t(373)]||"")[t(390)](/\.md$/,"")===i);if(c<0||c>=a[t(360)]-1)return null;const s=a[c+1];return{...s,href:e[t(350)].prefix+(s[t(373)]||"")[t(390)](/\.md$/,"")}},preprocessFn(t){const o=n;return e[o(350)][o(279)]?e[o(350)].preprocess(t,d):d(t)},async postprocessFn(t,o){const r=n;return e[r(350)].postprocess?e[r(350)][r(392)](t,o,p):p(t,o)},get src(){const t=n;return s()+e.$attr[t(373)]},resetHeadings(e){const t=n;this.headings=[...e[t(370)](t(342))].map(e=>{const n=t;return e.id||(e.id=function(e){const n=a;return e[n(383)]()[n(271)]()[n(390)](/[^\w\s-]/g,"").replace(/\s+/g,"-")[n(390)](/-+/g,"-").replace(/^-+|-+$/g,"")}(e.textContent.trim())),{level:Number(e[n(272)][1]),text:e[n(375)][n(271)](),id:e.id}})},resetAnchors(t){const o=n,r=l()[o(356)](e=>"h"+e).join(","),a=[...t[o(370)](r)];m?.[o(339)](),h=function(e){const t=n;for(;e&&e!==document[t(335)];){if(/auto|scroll/[t(299)](getComputedStyle(e)[t(313)]))return e;e=e[t(252)]}return window}(t),m=e.$listen(h,o(355),()=>{const t=o;if(f)return clearTimeout(g),void(g=setTimeout(()=>f=!1,500));const r=function(t,o){const r=n,a=(o===window?0:o.getBoundingClientRect()[r(251)])+(Number(e[r(350)][r(243)])||80);let i=null;for(const e of t){if(!(e[r(315)]()[r(251)]<=a))break;i=e}return i}(a,h);if(!r)return;const i=r.id;e[t(350)][t(316)]!==i&&(u=!0,e[t(263)](t(291),i))})},anchorChanged(t=!1){const o=n;f=!0;const r=e[o(350)][o(316)];if(r){const e=this[o(275)]?.[o(326)](o(359)+r+'"]');e&&e[o(387)]({behavior:o(t?306:325),block:"start"})}else h&&h!==window?h[o(318)]({top:0,behavior:t?o(306):"smooth"}):window[o(318)]({top:0,behavior:o(t?306:325)});clearTimeout(g),g=setTimeout(()=>f=!1,500)},loaded(t){const o=n;f=!0,this.loading=!1,this[o(311)]=null,v=e.$attr.file,this[o(329)](t),this[o(233)](t),e[o(263)](o(321),{container:t,headings:this[o(267)]}),t[o(244)][o(246)].nextFrame(()=>{b[o(298)](!0),clearTimeout(g),g=setTimeout(()=>f=!1,500)})},onError(t){const o=n;this[o(259)]=!1,this[o(311)]=t?.[o(311)]?.message||t?.message||o(278),e[o(263)](o(311),t)},sidebarClick(t,o){const r=n;o?.[r(324)](),e.$dispatch(r(273),{id:t.id,text:t[r(268)],level:t[r(232)]}),e.$dispatch("anchor-change",t.id)}};return e[n(236)](()=>[e[n(350)][n(373)],e[n(350)][n(316)]],()=>{const t=n;return u?(u=!1,void requestAnimationFrame(()=>{const e=a;b[e(394)]?.[e(326)](e(377))?.[e(387)]({block:e(348),behavior:e(325)})})):e[t(350)].file!==v?(b[t(259)]=!0,void(b[t(311)]=null)):void b.anchorChanged()}),b},mounted(e){const n=t;e[n(317)](e[n(237)],"transitionstart",t=>{const o=n;if(t[o(346)]!==o(282))return;const r=getComputedStyle(e[o(237)]).getPropertyValue(o(282))[o(271)]()||o(328);for(const n of e[o(237)][o(370)](o(334)))n[o(343)][o(292)]&&(n[o(375)]=n.dataset[o(292)]),window[o(285)]?.[o(385)][o(322)](n,{theme:r})})},template:t(295),style:['\n@property --ok-monaco-theme {\n syntax: \'<custom-ident>\';\n inherits: true;\n initial-value: vs-dark;\n}\n[tag] { display: block; width: 100%; transition: --ok-monaco-theme 1ms allow-discrete; }\n\n[tag] .doc-viewer__layout {\n display: flex;\n align-items: flex-start;\n gap: 2rem;\n padding: 2rem;\n box-sizing: border-box;\n}\n\n[tag] .doc-viewer__main {\n flex: 1;\n min-width: 0;\n max-width: 760px;\n}\n\n[tag] .doc-viewer__sidebar {\n position: sticky;\n top: 100px;\n max-width: 240px;\n max-height: calc(100vh - 120px);\n padding-left: 1.2rem;\n padding-right: 0.4rem;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n border-left: 1px solid var(--ok_color-muted-border, #333);\n scrollbar-width: thin;\n align-self: flex-start;\n}\n\n[tag] .sidebar__title {\n font-size: 11px;\n letter-spacing: 1px;\n color: var(--ok_color-muted-fg, #888);\n margin-bottom: 8px;\n text-transform: uppercase;\n opacity: 0.8;\n flex-shrink: 0;\n}\n\n[tag] .sidebar__link {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 3px 0;\n cursor: pointer;\n font-size: 13px;\n color: var(--ok_color-fg, #eee);\n text-decoration: none;\n transition: color .15s ease;\n position: relative;\n margin-left: calc((var(--level, 1) - 1) * 12px);\n}\n\n[tag] .sidebar__link::before {\n content: "";\n position: absolute;\n left: -10px;\n width: 2px;\n height: 100%;\n background: transparent;\n transition: background .15s ease;\n border-radius: 1px;\n}\n\n[tag] .sidebar__link.active::before { background: var(--ok_color-accent, #4ea1ff); }\n[tag] .sidebar__link:hover { color: var(--ok_color-accent, #4ea1ff); }\n[tag] .sidebar__link[level="1"] { font-weight: 600; opacity: 0.9; margin-top: 4px; }\n\n/* ── Loading ─────────────────────────────────────────────────────────── */\n[tag] .doc-viewer__loading {\n display: flex;\n justify-content: center;\n padding: 4rem 0;\n}\n[tag] .doc-viewer__spinner {\n width: 28px;\n height: 28px;\n border: 3px solid rgba(255,255,255,0.08);\n border-top-color: var(--ok_color-accent, #4ea1ff);\n border-radius: 50%;\n animation: ok-dv-spin 0.7s linear infinite;\n}\n@keyframes ok-dv-spin { to { transform: rotate(360deg); } }\n\n/* ── Error ───────────────────────────────────────────────────────────── */\n[tag] .doc-viewer__error {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 0.75rem;\n padding: 4rem 0;\n color: var(--ok_color-fg, #eee);\n opacity: 0.65;\n text-align: center;\n}\n[tag] .doc-viewer__error-icon { font-size: 2rem; }\n[tag] .doc-viewer__error-message { font-size: 0.9rem; }\n[tag] .doc-viewer__content--hidden { display: none; }\n\n/* ── Prev / Next nav ─────────────────────────────────────────────────── */\n[tag] .doc-viewer__nav {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n margin-top: 3rem;\n padding-top: 1.5rem;\n border-top: 1px solid var(--ok_color-muted-border, #333);\n gap: 1rem;\n}\n[tag] .doc-viewer__nav-link {\n color: var(--ok_color-accent, #4ea1ff);\n text-decoration: none;\n font-size: 0.9rem;\n opacity: 0.85;\n transition: opacity 0.15s;\n max-width: 45%;\n}\n[tag] .doc-viewer__nav-link:hover { opacity: 1; }\n[tag] .doc-viewer__nav-next { margin-left: auto; text-align: right; }\n\n/* ── Responsive ──────────────────────────────────────────────────────── */\n@media (max-width: 768px) {\n [tag] .doc-viewer__layout { flex-direction: column; padding: 1rem; gap: 1.5rem; }\n [tag] .doc-viewer__main { max-width: 100%; }\n [tag] .doc-viewer__sidebar {\n position: static;\n max-width: 100%;\n max-height: none;\n border-left: none;\n border-top: 1px solid var(--ok_color-muted-border, #333);\n padding: 0.8rem 0 0;\n overflow-y: visible;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 2px 8px;\n }\n [tag] .sidebar__title { width: 100%; margin-bottom: 4px; }\n [tag] .sidebar__link { margin-left: 0 !important; font-size: 12px; }\n [tag] .sidebar__link::before { display: none; }\n}\n',"\n[tag] .md { line-height: 1.6; }\n\n[tag] .md h1, [tag] .md h2, [tag] .md h3 { font-weight: 600; line-height: 1.25; margin: 2rem 0 0.8rem; }\n[tag] .md h1 { font-size: 2rem; }\n[tag] .md h2 { font-size: 1.55rem; color: var(--ok_color-accent, #4ea1ff); }\n[tag] .md h3 { font-size: 1.25rem; }\n[tag] .md h4 { font-size: 1.1rem; margin: 1.2rem 0 0.6rem; font-weight: 600; }\n[tag] .md h5 { font-size: 1rem; margin: 1rem 0 0.6rem; font-weight: 600; opacity: 0.9; }\n[tag] .md h6 { font-size: 0.9rem; margin: 0.8rem 0 0.5rem; font-weight: 500; opacity: 0.85; }\n\n[tag] .md p { margin: 0.8rem 0; color: var(--ok_color-fg, #eee); }\n[tag] .md ul, [tag] .md ol { padding-left: 1.4rem; margin: 0.8rem 0; }\n[tag] .md li { margin: 0.3rem 0; }\n\n[tag] .md hr {\n border: 0; height: 1px; margin: 2rem 0;\n background: linear-gradient(to right, transparent, #444, transparent);\n opacity: 0.7;\n}\n\n[tag] .md pre {\n margin: 1.4rem 0;\n background: rgba(255,255,255,0.05);\n border-radius: 6px;\n box-shadow: 0 0 0 1px rgba(255,255,255,0.08);\n}\n[tag] .md pre, [tag] .md blockquote { margin: 1.4rem 0; }\n[tag] .md code { font-size: 0.95em; font-family: var(--font-mono, monospace); overflow-x: auto; }\n[tag] .md ok-icon { vertical-align: middle; }\n\n[tag] .ok-code-block {\n margin: 1.4rem 0;\n border-radius: 8px;\n overflow: hidden;\n background: var(--ok_color-code-bg, #1e1e1e);\n border: 1px solid var(--ok_color-code-border, rgba(255,255,255,0.06));\n}\n\n[tag] .ok-code-block__header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background: var(--ok_color-code-header-bg, #252525);\n padding: 6px 10px;\n font-size: 11px;\n color: var(--ok_color-code-text, #cfcfcf);\n font-family: var(--font-mono, monospace);\n border-bottom: 1px solid var(--ok_color-code-header-border, rgba(255,255,255,0.07));\n}\n\n[tag] .ok-code-block .lang { opacity: 0.8; letter-spacing: 0.03em; }\n\n[tag] .ok-code-block .copy {\n cursor: pointer; color: var(--ok_color-code-copy, #aaa); font-size: 11px;\n padding: 2px 6px; border-radius: 4px; transition: 0.15s; user-select: none;\n}\n[tag] .ok-code-block .copy:hover { color: var(--ok_color-code-copy-hover, white); background: var(--ok_color-code-copy-hover-bg, rgba(255,255,255,0.08)); }\n[tag] .ok-code-block pre { margin: 0 !important; padding: 0.6rem 0.8rem !important; background: transparent !important; }\n\n[tag] .ok-callout {\n display: flex; gap: 0.75rem; padding: 1rem 1.2rem; margin: 1.4rem 0;\n border-radius: 8px; border: 1px solid rgba(255,255,255,0.06);\n background: rgba(255,255,255,0.035);\n}\n[tag] .ok-callout__icon ok-icon { width: 20px; height: 20px; opacity: 0.9; }\n[tag] .ok-callout__content { flex: 1; }\n[tag] .ok-callout__title { font-weight: 600; margin-bottom: 0.25rem; font-size: 0.95rem; }\n[tag] .ok-callout__body { line-height: 1.5; opacity: 0.9; }\n[tag] .ok-callout--note { border-left: 4px solid var(--ok_color-accent, #4ea1ff); }\n[tag] .ok-callout--warning { border-left: 4px solid #ffb24e; background: rgba(255,178,78,0.06); }\n[tag] .ok-callout--tip { border-left: 4px solid #44d07a; background: rgba(68,208,122,0.06); }\n"]};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const t=r;function e(){const t=["text","22yzELdY","192dzIxHw","error","childNodes","ok-marked","default","innerHTML","3025690lgSujc","9057108zAeijS","loading","$dispatch","src","createElement","container","2874360gQatJy","9QPiRhG","setOptions","div","load","nodes","47467PomLdM","2599eIHvEe","307288QoFwLH","27JOjNii","marked","5942680MIRKpD","438onrsnv","$attr"];return(e=function(){return t})()}function r(t,r){return t-=257,e()[t]}!function(){const t=r,n=e();for(;;)try{if(464231==parseInt(t(260))/1*(parseInt(t(269))/2)+parseInt(t(262))/3*(parseInt(t(261))/4)+parseInt(t(275))/5+parseInt(t(265))/6*(-parseInt(t(259))/7)+-parseInt(t(264))/8*(-parseInt(t(283))/9)+-parseInt(t(282))/10*(parseInt(t(268))/11)+-parseInt(t(276))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();let n=null,a=null;var s={tag:t(272),attr:{src:{},text:{},map:{}},context:t=>({loading:!1,error:null,html:"",nodes:[],container:null,async load(){const e=r;if(t[e(266)][e(267)]||t[e(266)][e(279)]){this[e(270)]=null,this.loading=!0;try{const s=await(a?Promise.resolve(a):n||(n=import("https://cdn.jsdelivr.net/npm/marked@17.0.0/+esm").then(t=>{const e=r;return a=t[e(263)]||t[e(273)]||t,a[e(284)]({gfm:!0,breaks:!0,headerIds:!1,mangle:!1}),a}).catch(t=>{throw t}),n)),o=t[e(266)].text||await(await fetch(t.$attr.src))[e(267)](),{md:i,bag:c}=t.$attr.preprocess?.(o),d=s.parse(i),l=document[e(280)](e(285));l[e(274)]=d,this.nodes=await(t.$attr.postprocess?.(l,c))||Array.from(l[e(271)]),this[e(281)][e(274)]="",this[e(281)].append(...this[e(258)]),this[e(277)]=!1,t[e(278)]("loaded",{md:i,container:this[e(281)]})}catch(r){this[e(277)]=!1,this[e(270)]=r?.message||String(r),t[e(278)](e(270),{error:r,src:t[e(266)][e(279)]})}}}}),mounted(e){const r=t;this.load(),e.$watch(()=>[e[r(266)][r(267)],e[r(266)][r(279)]],()=>{this[r(257)]()})},template:'<if :="loading"/><div :ref="container = $el"/>'};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=s;!function(){const e=s,t=o();for(;;)try{if(952678==parseInt(e(467))/1*(parseInt(e(422))/2)+parseInt(e(473))/3+parseInt(e(485))/4*(-parseInt(e(459))/5)+-parseInt(e(466))/6*(parseInt(e(436))/7)+-parseInt(e(412))/8*(-parseInt(e(461))/9)+-parseInt(e(477))/10+parseInt(e(430))/11)break;t.push(t.shift())}catch(e){t.push(t.shift())}}();let t=null;const n=e(478);function o(){const e=["registerCompletionItemProvider","dispose","layout","35137146wxfaAK","CompletionItemInsertTextRule","https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs","MONACO_LOAD_FAILED","editor-save","$dispatch","6050877RShxKm","registerSuggestions","none","editor","setValue","getScrollLeft","shared","container","$watch","getModel","script","newValue","setScrollTop","set","setPosition","css","push","getContentHeight","KeyS","addEventListener","CompletionItemKind","$error","getScrollTop","7033890rWqdef","theme","9rSOSuo","$innerContext","themeListener","Text","options","6neESkI","198095MrTPAt","__monacoLoaderPending","languages","$cache","onload","completionDisposable","2867844KXDpcW","getPropertyValue","Keyword","setScrollLeft","18286130TAMiMh","https://cdn.jsdelivr.net/npm/monaco-editor@latest/min/vs/loader.js","Snippet","javascript","require","autogrow",'<div style="width:100%;height:100%" :ref="container = $el"/>',"onerror","4RabWfo","Selector: ","suggestions","KeyMod","setModelLanguage","vs/editor/editor.main","transitionstart","height","createElement","ok-monaco","--ok-monaco-theme","language","querySelector","map","2463688SBDHpq","getValue","updateOptions","onDidContentSizeChange","$attr","monaco","trim","config","value","error","6PLdSuS","html","$el","CtrlCmd","defineProperty"];return(o=function(){return e})()}function i(t){const n=e;require[n(419)]({paths:{vs:n(432)}}),require([n(490)],()=>{const e=n;for(const t of window[e(468)]||[])t(window[e(417)]);delete window[e(468)],t(window.monaco)})}function s(e,t){return e-=412,o()[e]}function r(t){const n=e;return null!=t[n(416)][n(460)]?t.$attr[n(460)]:getComputedStyle(t[n(424)])[n(474)](n(495))[n(418)]()||"vs-dark"}function a(){const o=e;return window[o(417)]?window.monaco:t||(t=new Promise((e,t)=>{const s=o;if(window[s(468)])return void window[s(468)][s(452)](e);window.__monacoLoaderPending=[e];const r=document[s(497)]('script[src="'+n+'"]');if(r)return window[s(481)]?.[s(419)]?void i(e):(r[s(455)]("load",()=>{i(e)},{once:!0}),void r[s(455)](s(421),t,{once:!0}));const a=document[s(493)](s(446));a.src=n,a[s(471)]=()=>{i(e)},a[s(484)]=t,document.head.appendChild(a)}),t)}var c={tag:e(494),attr:{value:{default:""},language:{default:e(480)},suggestions:{default:[]},theme:{default:null},options:{},autogrow:{default:!1,empty:!0}},register(t){const n=e;t[n(442)][n(417)]={load:a}},context(t){const n=e;return Object[n(426)](t[n(424)],"value",{get(){const e=n;return t[e(462)][e(420)]},set(e){const o=n;t.$innerContext[o(449)](e)},enumerable:!0,configurable:!0}),t[n(470)].completionDisposable=null,{get suggestions(){const e=n;return t[e(416)][e(487)]||[]},get language(){return t.$attr.language},value:t[n(416)][n(420)]||"",editor:null,container:null,ready:!1,set(e){const o=n;this.value=e,t[o(470)].editor&&t[o(470)][o(439)].getValue()!==e&&t[o(470)].editor[o(440)](""+e)},get(){return this.value},registerSuggestions(){const e=n;window[e(417)]&&this.language&&this[e(487)].length&&(t[e(470)][e(472)]?.[e(428)](),t[e(470)].completionDisposable=monaco[e(469)][e(427)](this[e(496)],{provideCompletionItems:()=>{const t=e,n=this[t(496)]===t(423),o=this[t(496)]===t(451);return{suggestions:this[t(487)][t(498)](e=>{const i=t;return n?{label:"<"+e+">",kind:monaco[i(469)][i(456)][i(479)],insertText:"<"+e+">\n\t$0\n</"+e+">",insertTextRules:monaco[i(469)][i(431)].InsertAsSnippet,documentation:"Component: "+e}:o?{label:e,kind:monaco[i(469)][i(456)][i(475)],insertText:e,documentation:i(486)+e}:{label:e,kind:monaco[i(469)][i(456)][i(464)],insertText:e}})}}}))},async initEditor(){const e=n;try{await a()}catch(n){throw t[e(457)](e(433),n)}if(this[e(437)](),t[e(470)][e(439)]=monaco.editor.create(this[e(443)],{value:this[e(420)],language:this[e(496)],theme:r(t),automaticLayout:!0,fontSize:14,scrollBeyondLastLine:!1,minimap:{enabled:!1},lineNumbersMinChars:2,...t[e(416)][e(465)]||{}}),t[e(416)][e(482)]){const n=t.$cache[e(439)],o=()=>{const t=e,o=n[t(453)]();this[t(443)].style[t(492)]=o+"px",n[t(429)]()};n[e(415)](o),t[e(416)].readonly&&n[e(414)]({readOnly:!0,renderLineHighlight:e(438),occurrencesHighlight:!1,selectionHighlight:!1}),o()}t[e(470)][e(439)].onDidChangeModelContent(()=>{const n=e,o=t.$cache[n(439)][n(413)]();o!==this.value&&(this.value=o,t.$dispatch("editor-change",this[n(420)]))});const o=monaco[e(488)][e(425)]|monaco.KeyCode[e(454)];t[e(470)][e(439)].addCommand(o,()=>{const n=e;t[n(435)](n(434),{value:t.$cache[n(439)].getValue()})}),this.ready=!0}}},mounted(t){const n=e;t[n(444)](()=>t[n(416)][n(420)],e=>{const o=n;if(t[o(470)][o(439)]){const e=t[o(470)].editor,n=e[o(413)](),i=t[o(416)][o(420)]||"";if(n!==i){const t=e.getPosition(),n=e[o(458)](),s=e[o(441)]();e[o(440)](""+i),t&&e[o(450)](t),e[o(448)](n),e[o(476)](s)}}}),t[n(444)](()=>t.$attr.suggestions,e=>{this[n(437)]()}),t[n(444)](()=>t[n(416)][n(496)],e=>{const o=n;t.$cache[o(439)]&&t[o(470)].editor[o(445)]()&&(monaco[o(439)][o(489)](t[o(470)].editor[o(445)](),e[0][o(447)]),this.registerSuggestions())}),t[n(444)](()=>t[n(416)][n(460)],()=>{const e=n;t.$cache.editor?.[e(414)]({theme:r(t)})})},async init(t){const n=e;await this.initEditor();const o=e=>{const n=s;e.propertyName===n(495)&&null==t.$attr[n(460)]&&t[n(470)][n(439)]?.[n(414)]({theme:r(t)})};t[n(424)].addEventListener("transitionstart",o),t.$cache[n(463)]=o},unmounted(t){const n=e;t[n(424)].removeEventListener(n(491),t[n(470)][n(463)]),t.$cache.completionDisposable?.[n(428)](),t.$cache[n(439)]?.dispose()},template:e(483),style:'@property --ok-monaco-theme{syntax:"<custom-ident>";inherits:true;initial-value:vs-dark}[tag]{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;transition:--ok-monaco-theme 1ms allow-discrete}'};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./ok-layer.ok.js";
|
|
1
|
+
import e from"./ok-layer.ok.js";const t=r;function r(e,t){return e-=251,n()[e]}function n(){const e=["setAttribute","closest","ok-layer-owner-change","toggle","owner","20RHDxUi","children","global","createLayer","resolveLocalZ","parentNode","467802YdMuPi","tagName","layer","shared","proxy","singleton","removeProperty","42kBDriZ","remove","7CtdHfF","get","__clearContainer","set","markOwner","resolveLayerZ","config","delete","okLayerTier","__setContainer","76116ffGezP","ok-layer-service","dispatchEvent","30ExZZFx","trim","clear","ok-layer","containerFor","promise","$el","finally","1092144Uembsm","OK-LAYER","setProperty","--ok-layer-owner-z","zIndex","okLayer","ownerOf","__okLayerService","forEach","isConnected","ownerLayer","29650ZGWaNu","ownerLayerOf","[data-ok-layer-owner]","4583vYCHDU","style","pruneEmpty","target","awaitContainer","$ok","currentTarget","window","number","tier","okLayerOwner","dataset","670224JYNiXL","document","3074104EWfwhp","okLayerZ","globalLayer"];return(n=function(){return e})()}!function(){const e=r,t=n();for(;;)try{if(100005==parseInt(e(293))/1*(parseInt(e(256))/2)+-parseInt(e(268))/3*(parseInt(e(315))/4)+parseInt(e(290))/5+parseInt(e(305))/6*(parseInt(e(258))/7)+parseInt(e(279))/8+parseInt(e(321))/9*(parseInt(e(271))/10)+-parseInt(e(307))/11)break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var o={tag:t(269),dependencies:[e],template:"",mounted(e){const r=t;e[r(298)][r(252)][r(251)]?.[r(267)](e[r(277)])},unmounted(e){const r=t;e[r(298)][r(252)][r(251)]?.[r(260)](e[r(277)])},register(e,r){const n=t;if(e[n(252)][n(251)]?.[n(286)])return;const o={dropdown:1e3,window:2e3,modal:3e3,flyover:3100,contextmenu:3200,highlight:3500,toast:4e3,tooltip:5e3},a={surface:0,dropdown:10,flyover:20,contextmenu:30,tooltip:40,modal:0,highlight:0,toast:0};let i=null,l=null;const s=new Map;let u=new WeakMap;const c=e=>{const t=n;return e?e instanceof Element?e:e.currentTarget instanceof Element?e[t(299)]:e[t(296)]instanceof Element?e[t(296)]:null:null},y=(e,t)=>{const r=n;e[r(304)][r(303)]=t.type,null!=t.tier&&(e[r(304)].okLayerTier=t[r(302)]),e[r(304)][r(308)]=String(t.z??0),e[r(294)][r(281)](r(282),String(t.z??0))};e[n(252)][n(251)]=e[n(253)]({__okLayerService:!0,__setContainer(e){i=e},__clearContainer(e){i===e&&(i=null,s[n(273)](),u=new WeakMap)},get container(){return i},async awaitContainer(){const t=n;return i?.[t(288)]||(!l&&(l=e[t(252)][t(254)][t(313)]("ok-layer-service",!0,{registration:r})[t(278)](()=>{l=null})),await l),i},async createLayer({type:t=n(317),tier:r=t,zIndex:o=null,owner:a=null}={}){const i=n,l=await this[i(297)]();if(!l)return null;const s=e[i(264)][i(306)].createElement(i(274));return s[i(310)]("type",t),null!=r&&s.setAttribute(i(302),r),s[i(304)][i(284)]=t,null!=r&&(s[i(304)][i(266)]=r),s[i(294)][i(283)]=String(o??this[i(263)](r)),l.appendChild(s),await e.init(s),s},async globalLayer(e=n(251)){const t=n,r=String(e??t(251)),o=s[t(259)](r);if(o?.[t(288)])return o;if(o?.[t(251)]?.[t(288)])return o[t(251)];if(o?.[t(276)])return o[t(276)];const a=(async()=>{const e=t,n=await this[e(318)]({type:e(317),tier:r,zIndex:this[e(263)](r)});return s[e(261)](r,{layer:n}),n})();return s[t(261)](r,{promise:a}),a},async ownerLayer(e,{type:t=n(314),tier:r=n(300),zIndex:o=null}={}){const a=n,i=c(e);if(!i)return null;const l=u[a(259)](i);if(l?.layer?.isConnected)return l.layer;if(l?.[a(276)])return l[a(276)];const s=o??l?.z??this[a(263)](r),p=(async()=>{const e=a,n=await this[e(318)]({type:t,tier:r,zIndex:s,owner:i}),{promise:o,...l}=u[e(259)](i)??{},c={...l,layer:n,type:t,tier:r,z:s};return u[e(261)](i,c),y(i,c),i[e(270)](new CustomEvent(e(312),{bubbles:!0,detail:{owner:i,type:t,tier:r,z:s,layer:n}})),n})();return u.set(i,{...l,promise:p,type:t,tier:r,z:s}),p},ownerLayerOf(e){const t=n,r=c(e);return r?u[t(259)](r)?.layer??null:null},async containerFor(e=null,t=n(251)){const r=n,o=this[r(285)](e),a=this[r(291)](o);if(a?.[r(288)])return a;if(o){const e=u[r(259)](o),t=e?.[r(302)]||o[r(304)][r(266)]||r(300);return this[r(289)](o,{type:e?.type||o[r(304)].okLayerOwner||r(314),tier:t,zIndex:e?.z??Number(o.dataset.okLayerZ||this[r(263)](t))})}return this[r(309)](t)},async toggle(t,r=null,{registration:o,container:a,layer:i=null,tier:l=i,owner:s=null,zIndex:u=null}={}){const c=n,y=l??i;!1!==r&&(a??=await this[c(275)](s,y??t));const p=await e[c(252)].singleton[c(313)](t,r,{registration:o,container:a});if(p&&(null!=u||null!=y)){const e=u??this[c(319)](y);p[c(294)][c(283)]=String(e)}return p},resolveLayerZ(e){const t=n;if("number"==typeof e)return e;const r=Number(e);return isNaN(r)||""===String(e)[t(272)]()?o[e]??9e3:r},resolveLocalZ(e){const t=n;if(typeof e===t(301))return e;const r=Number(e);return isNaN(r)||""===String(e)[t(272)]()?a[e]??a.surface:r},markOwner(e,{type:t=n(314),tier:r=null,z:o=0}={}){const a=n,i=c(e);if(!i)return null;const l=u[a(259)](i)??{},s={...l,type:t,tier:r??l[a(302)]??i.dataset[a(266)]??t,z:Number(o)};return i[a(322)]===a(280)&&(s[a(251)]=i),u.set(i,s),y(i,s),s.layer?.[a(288)]&&(s[a(251)][a(294)][a(283)]=String(s.z)),i[a(270)](new CustomEvent(a(312),{bubbles:!0,detail:{owner:i,type:s.type,tier:s[a(302)],z:s.z,layer:s.layer??null}})),i},restackOwner(e,{type:t=n(314),tier:r=null,z:o=0}={}){const a=n,i=this[a(262)](e,{type:t,tier:r,z:o});if(!i)return null;const l=u[a(259)](i);return i[a(322)]===a(280)?i.style.zIndex=String(l.z):l?.[a(251)]?.[a(288)]?(l[a(251)][a(294)].zIndex=String(l.z),i[a(294)][a(283)]=String(this.resolveLocalZ("surface"))):i[a(294)].zIndex=String(l.z),l},clearOwner(e){const t=n,r=c(e);if(!r)return!1;delete r[t(304)][t(303)],delete r[t(304)][t(266)],delete r.dataset.okLayerZ,r.style[t(255)](t(282));const o=u[t(259)](r),a=o?.[t(251)];return a!==r&&a?.[t(320)]&&a[t(257)](),u[t(265)](r),requestAnimationFrame(()=>this[t(295)]()),!0},pruneEmpty(){const e=n;i?.querySelectorAll?.('ok-layer[data-ok-layer]:not([data-ok-layer="global"])')[e(287)](t=>{const r=e;t[r(316)].length||t[r(257)]()});for(const[t,r]of s)r.layer&&!r[e(251)][e(288)]&&s[e(265)](t)},ownerOf(e){const t=n,r=c(e);return r?.[t(311)]?.(t(292))??null},defineLayerZ(e,t){o[e]=Number(t)},defineLocalZ(e,t){a[e]=Number(t)},async dispose(){const t=n,r=i;l=null,r&&(await(e[t(252)][t(254)]?.toggle?.(t(269),!1)),r.remove?.()),i=null,s.clear(),u=new WeakMap},get tiers(){return{...o}},get localTiers(){return{...a}}})},style:"[tag]{position:fixed;inset:0;z-index:9999;pointer-events:none}"};export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"../interaction/ok-portal-service.ok.js";const e=r;function r(t,e){return t-=447,a()[t]}function a(){const t=["4001499eFZGWv","setProperty","$el","$watch","101826ulWSPY","back","dataset","2702694EqikBu","surface","awaitContainer","--ok-window_z","$ok","120913dRxUMu","okLayer","resolveLayerZ","portal","344gQmEhJ","$attr","5lbauFn","layer","zIndex","<slot/>","--ok-z-modal","then","shared","[tag]{position:fixed;inset:0;pointer-events:none;isolation:isolate;--ok-layer_surface-z:0;--ok-overlay_z:var(--ok-layer_surface-z);--ok-z-modal:var(--ok-layer_surface-z);--ok-window_z:var(--ok-layer_surface-z)}[tag]>*{pointer-events:auto}","okLayerTier","3566724JixSfn","layerPortalActive","38966470tNsrQn","ok-layer","--ok-layer_surface-z","order","4ZDrUHg","--ok-overlay_z","$cache","tier","noPortal","style","1281091fYcxcO","type"];return(a=function(){return t})()}!function(){const t=r,e=a();for(;;)try{if(799589==-parseInt(t(451))/1+-parseInt(t(487))/2+-parseInt(t(480))/3*(parseInt(t(472))/4)+-parseInt(t(457))/5*(parseInt(t(466))/6)+-parseInt(t(478))/7+-parseInt(t(455))/8*(-parseInt(t(484))/9)+parseInt(t(468))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var o={tag:e(469),dependencies:[t],template:e(460),attr:{type:{default:e(458)},tier:{default:null},order:{default:0},noPortal:{empty:!0},owner:{default:!0,empty:!0}},context(t){const a=e,o=()=>{const e=r,a=t.$ok[e(463)][e(458)],o=t.$attr[e(479)]||"layer",n=t[e(456)].tier??o,s=Number(t.$attr.order||0);t[e(482)][e(486)][e(452)]=o,null!=n&&(t[e(482)].dataset[e(465)]=n);const l=(a?.[e(453)]?.(n)??0)+s;t[e(482)][e(477)][e(459)]=String(l);const c=String(a?.resolveLocalZ?.(e(447))??0);if(t[e(482)][e(477)].setProperty(e(470),c),t[e(482)][e(477)].setProperty(e(473),c),t[e(482)][e(477)][e(481)](e(461),c),t[e(482)][e(477)].setProperty(e(449),c),!1!==t[e(456)].owner&&"global"!==o&&a?.markOwner?.(t[e(482)],{type:o,tier:n,z:l}),t[e(456)][e(476)])return;const i=t[e(450)][e(463)][e(454)];a&&i&&a[e(448)]()[e(462)](r=>{const a=e;!r||t.$__unmount__$||t[a(456)][a(476)]||(i.to(t[a(482)],r),t[a(474)].layerPortalActive=!0)})};return t[a(483)](()=>[t.$attr[a(479)],t.$attr[a(475)],t.$attr[a(471)],t[a(456)].noPortal,t[a(456)].owner],()=>{o()}),{sync:o}},mounted(t){this.sync()},unmounted(t){const r=e;t.$cache[r(467)]&&(t[r(450)][r(463)][r(454)]?.[r(485)](t.$el),t[r(474)][r(467)]=!1),t[r(450)].shared[r(458)]?.clearOwner?.(t[r(482)])},style:e(464)};export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function t(){const e=["key","$attr","$listen","Colors","backdropAction","Escape","firstElementChild","ok-overlay","1070250PpbPmX","Overlay background color","<slot/>","prevFocus","mousedown","click","tabindex","srcElement","stopPropagation","374375MTSCLy","3566890fZaLnP","click-through","preventDefault","47768JKKAqf","3230776kwfWOF","rgba(0,0,0,0.3)","target","auto","focus","12bKnaVX","$cache","348qJncVd","pass-through","$el","setAttribute","9aBkiyF","style","51386TXmdWP","close","1oIucju","16786858VXfbKJ","[tag]{position:absolute;left:0;top:0;right:0;bottom:0;display:block;background:var(--ok-overlay_bg);z-index:var(--ok-overlay_z, 1000)}[tag]>*{pointer-events:auto}","keydown","pointerdown","activeElement","request-close","16DVLflw","none","$dispatch","backdropPressStarted"];return(t=function(){return e})()}const e=o;function o(e,o){return e-=320,t()[e]}!function(){const e=o,n=t();for(;;)try{if(286807==parseInt(e(367))/1*(-parseInt(e(365))/2)+-parseInt(e(338))/3+parseInt(e(326))/4*(parseInt(e(347))/5)+-parseInt(e(359))/6*(parseInt(e(351))/7)+-parseInt(e(352))/8*(parseInt(e(363))/9)+-parseInt(e(348))/10+-parseInt(e(320))/11*(-parseInt(e(357))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var n={tag:e(337),attr:{backdropAction:{default:e(366)}},plugins:{theme:{expose:{"--ok-overlay_bg":{default:e(353),type:"color",description:e(339),category:e(333)}}}},template:e(340),mount(t){const n=e,r=()=>{const e=o,n=t[e(331)][e(334)]===e(360)||t[e(331)].backdropAction===e(349);t[e(361)][e(364)].pointerEvents=e(n?327:355)};r(),t.$watch(()=>t[n(331)][n(334)],r),t.$el[n(362)](n(344),"-1"),t[n(358)].prevFocus=document[n(324)],t[n(361)][n(356)](),t.$listen(t[n(361)],n(322),e=>{const o=n;"Tab"===e[o(330)]&&e[o(345)]===t[o(361)]&&(e[o(361)][o(336)]()?.[o(356)](),e[o(350)]()),e[o(330)]===o(335)&&(t[o(328)](o(325)),e.preventDefault())});const a=e=>{const o=n;t[o(358)][o(329)]=e[o(354)]===t[o(361)]};t.$listen(t[n(361)],n(323),a,!0),t[n(332)](t[n(361)],n(342),a,!0),t[n(332)](t.$el,n(343),e=>{const o=n,r=t[o(331)][o(334)],a=t.$cache.backdropPressStarted;t[o(358)][o(329)]=null,r!==o(360)&&"click-through"!==r&&(e[o(354)]===t[o(361)]&&r===o(366)&&!1!==a?(t[o(328)](o(325)),e[o(350)](),e[o(346)]()):e.target===t[o(361)]&&(e[o(350)](),e.stopPropagation()))})},unmounted(t){const o=e;t[o(358)][o(341)]?.focus()},style:e(321)};export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const t=n;function n(t,n){return t-=350,e()[t]}function e(){const t=["3441144DDGzwD","3311826cJTTIo","default","306512gjpcxx","3863036VUaxXA","createNodes","open","cmp","939645ojTMNn","2460040sklFqo","attachShadow","sandbox","241544fquHOJ","$context","init","$el","261adPmuz","$cache","templates","cache","5fziILF","$ok","componentRegistry","ok-sandbox","12GXdBYu"];return(e=function(){return t})()}!function(){const t=n,a=e();for(;;)try{if(635097==-parseInt(t(351))/1+-parseInt(t(371))/2*(parseInt(t(367))/3)+parseInt(t(372))/4*(parseInt(t(363))/5)+parseInt(t(368))/6+-parseInt(t(369))/7+-parseInt(t(355))/8*(-parseInt(t(359))/9)+parseInt(t(352))/10)break;a.push(a.shift())}catch(t){a.push(a.shift())}}();var a={tag:t(366),init(n){const e=t,a=n[e(364)][e(373)](n[e(360)][e(350)][e(361)][e(370)]),s=n[e(358)][e(353)]({mode:e(374)}),o=n[e(364)].OK({env:e(354),head:s,body:s});o[e(365)][e(362)]=n[e(364)][e(365)][e(362)],s.append(...a),s.$scope=o.scope(s,{$parent:null,$context:n[e(356)],$vars:n.$vars}),o[e(357)](s)}};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(t){return new Promise(a=>{const
|
|
1
|
+
function t(t,a){return t-=179,e()[t]}function e(){const t=["max","1108LAsHSt","transitionend","28ljRdgo","-leave-active","classList","910hJfYga","name","36oyLFRv","add","disabled","19710LlmtIb","noEnter","animationDuration","noLeave","1055URBpab","$attr","2139379KaoLEQ","-enter","split","90621mgbzee","style","2224011baqpmp","1519uAHrsn","-enter-active","removeEventListener","map","remove","$el","addEventListener","awaitFrame","0.3s","animationend","transitionDuration","62576AlqiMV","2543664XgVZSn","transitionDelay"];return(e=function(){return t})()}const a=t;function n(e){return new Promise(a=>{const n=t,i=()=>{r(),a()},r=()=>{const a=t;clearTimeout(u),e[a(193)](a(207),i),e.removeEventListener(a(200),i)};e.addEventListener(n(207),i),e[n(197)](n(200),i);const o=getComputedStyle(e),s=o.transitionDuration[n(187)](",").map(parseFloat),l=o[n(204)][n(187)](",").map(parseFloat),m=o[n(181)][n(187)](",")[n(194)](parseFloat),d=o.animationDelay.split(",")[n(194)](parseFloat),p=Math[n(205)](...l.map((t,e)=>t+(s[e]||0))),c=Math.max(...d[n(194)]((t,e)=>t+(m[e]||0)));let f=1e3*Math.max(p,c);isFinite(f)&&0!==f||(f=0);const u=setTimeout(i,f)})}!function(){const a=t,n=e();for(;;)try{if(545223==parseInt(a(208))/1*(parseInt(a(202))/2)+-parseInt(a(190))/3+parseInt(a(206))/4*(-parseInt(a(183))/5)+-parseInt(a(179))/6*(parseInt(a(191))/7)+-parseInt(a(203))/8+-parseInt(a(188))/9*(-parseInt(a(211))/10)+-parseInt(a(185))/11*(-parseInt(a(213))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var i={tag:"transition",lazy:!0,attr:{noEnter:{empty:!0},noLeave:{empty:!0},disabled:{empty:!0},name:{default:"ok"}},mount(e){const a=t;if(e.$attr[a(180)]||e[a(184)][a(215)])return;const n=e[a(196)],i=e[a(184)][a(212)];n[a(210)][a(214)](i+a(186))},async ready(e){const a=t;if(e[a(184)][a(180)]||e[a(184)][a(215)])return;const i=e[a(196)],r=e[a(184)][a(212)];i[a(210)][a(214)](r+a(192)),await n(i),i[a(210)][a(195)](r+"-enter"),i.classList.remove(r+a(192)),i[a(189)][a(201)]=""},async unmount(e){const a=t;if(e[a(184)][a(182)]||e[a(184)][a(215)])return;const i=e.$el;if(!i)return;const r=e.$attr[a(212)];i[a(210)][a(214)](r+"-leave"),await e.$ok[a(198)](),i[a(210)][a(214)](r+a(209)),await n(i)},unmounted(e){const a=t;if(e[a(184)][a(182)]||e[a(184)][a(215)])return;const n=e.$el;if(!n)return;const i=e[a(184)][a(212)];n[a(210)][a(195)](i+"-leave"),n[a(210)][a(195)](i+"-leave-active")},plugins:{theme:{expose:{"--ok-transition-duration":{default:a(199)}}}},template:'<slot :ref="slotRef=$el"/>',style:"[data-ok].fade-enter{opacity:0}[data-ok].fade-enter-active{opacity:1;transition:opacity .3s ease}[data-ok].fade-leave{opacity:1}[data-ok].fade-leave-active{opacity:0;transition:opacity .3s ease}[data-ok].grow-enter{display:grid!important;overflow:hidden;grid-template-rows:minmax(0,0fr)}[data-ok].grow-enter-active{will-change:transform,opacity;backface-visibility:hidden;transform:translateZ(0);grid-template-rows:minmax(0,1fr);opacity:1;transition:grid-template-rows .3s ease,opacity .3s ease}[data-ok].grow-leave{display:grid!important;overflow:hidden;grid-template-rows:minmax(0,1fr)}[data-ok].grow-leave-active{will-change:transform,opacity;backface-visibility:hidden;transform:translateZ(0);grid-template-rows:minmax(0,0fr);transition:grid-template-rows .3s ease,opacity .3s ease}[data-ok].grow-inline-enter{display:inline-grid!important;overflow:hidden;grid-template-columns:minmax(0,0fr)}[data-ok].grow-inline-enter-active{grid-template-columns:minmax(0,1fr);transition:grid-template-columns 0 ease}[data-ok].grow-inline-leave{display:inline-grid!important;overflow:hidden;grid-template-columns:minmax(0,1fr)}[data-ok].grow-inline-leave-active{grid-template-columns:minmax(0,0fr);transition:grid-template-columns 3s ease}"};export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const t=e;function e(t,e){return t-=165,i()[t]}function s(t,s){const i=e;let o=0,n=t[i(228)]-1;for(;o<=n;){const e=Math[i(207)]((o+n)/2);t[e]<s?o=e+1:n=e-1}return o}function i(){const t=["updateItemSize","unshift","shift","target","run","averageHeight","$observe","$cache","$watch","2875496CbgYJJ","scrollTop","length","overscan","atBottom","$attr","add","get","end","$ok","offsetHeight",'<slot name="before"/><div :ref="scroller=$el" style="min-height:100%;overflow:auto;margin:0;position:relative" @scroll="onScroll"><div style="position:absolute;width:100%" :style="{ \'top\': -offsetTop + \'px\' }"><div class="spacer-top" :style="{ \'padding-bottom\': scrollTop + \'px\' }"/><slot name="top"/><each :of="view" let:item let:index><div @mounted="itemMounted" @unmounted="itemUnmounted" :class="{[itemClass]: true, \'--visible\': item >= startVisible && item <= endVisible }"><slot :var:item="item" :var:index="index + start"/></div></each><slot name="bottom"/><div class="spacer-bottom" :style="({ \'padding-top\': offsetBottom + \'px\' })"/></div></div><slot name="after"/>',"resizeObserver","handlePop","height","parseInt","1402855vWGcsi","158986ObdnHo","offsetTop","639980ElgYAY","defaultHeight","minHeight","pop","2832255RaToCt","8294454DzxqCm","handleReplace","index","mode","args","splice","12odOssw","scrollHeight","scheduleUpdate","virtualized-item","push","$el","9521820WqoDWw","[tag]{position:relative;overflow:hidden;flex-grow:1;max-height:100%}","handleShift","start","items","style","atTop","isArray","delete","$vars","clientHeight","handleUnshift","unobserve","min","max","firstLoad","endVisible","startVisible","floor","scroller","resizeMap","virtualized","set","view","slice","property","handleSplice","offsetBottom"];return(i=function(){return t})()}!function(){const t=e,s=i();for(;;)try{if(787685==-parseInt(t(170))/1*(-parseInt(t(183))/2)+-parseInt(t(176))/3+parseInt(t(172))/4+parseInt(t(169))/5+-parseInt(t(177))/6+parseInt(t(189))/7+parseInt(t(226))/8)break;s.push(s.shift())}catch(t){s.push(s.shift())}}();var o={tag:t(210),attr:{items:{alias:[""],default:[]}},context(t){const i=[],o=[];let n=0,r=0,a=new Set,h=0,l=!1,c=!1;return{get firstLoad(){const s=e;return t[s(231)][s(204)]||10},get overscan(){const s=e;return Math.max(t.$attr[s(229)]||2,1)},get defaultHeight(){const s=e;return Number[s(168)](t[s(231)].defaultHeight??50)},get averageHeight(){const s=e;return null!=t.$attr[s(173)]?this[s(173)]:r>0?n/r:50},get items(){const s=e;return t[s(231)][s(193)]||[]},get itemClass(){const s=e;return t[s(231)].itemClass||s(186)},atTop:!0,atBottom:!1,scrollTop:0,offsetTop:0,offsetBottom:0,start:0,startVisible:0,endVisible:0,end:0,view:[],scroller:null,syncHeights(){const t=e,s=this[t(222)],n=this[t(193)].length;i[t(228)]=n,o[t(228)]=n;for(let t=0;t<n;t++)i[t]=i[t]??s,o[t]=(o[t-1]||0)+i[t]},handleUnshift(t){const s=e,n=this[s(222)];for(let e=0;e<t;e++)i[s(218)](n),o[s(218)]((o[0]||0)+n)},handlePush(t){const s=e,n=this[s(222)];for(let e=0;e<t;e++){const t=o[s(228)]>0?o[o.length-1]:0;i[s(187)](n),o[s(187)](t+n)}},handlePop(){const t=e;i.pop(),o[t(175)]()},handleShift(){const t=e;i[t(219)](),o[t(219)]();for(let t=0;t<o.length;t++)o[t]=(o[t-1]||0)+i[t]},handleSplice(t,s,n){const r=e,a=this[r(222)];i[r(182)](t,s,...Array(n).fill(a)),o[r(228)]=0;for(let t=0;t<i[r(228)];t++)o[t]=(o[t-1]||0)+i[t]},handleReplace(){const t=e,s=this[t(222)],n=this[t(193)].length;i[t(228)]=n,o[t(228)]=n;for(let t=0;t<n;t++)i[t]=s,o[t]=(o[t-1]||0)+s},scheduleUpdate(t=!1){l||=t,!c&&(c=!0,setTimeout(()=>{c=!1,this.update(l),l=!1},100))},update(i){const n=e;if(!this[n(208)])return;let r=null!=h?h:this[n(227)];if(r>=o[this[n(193)][n(228)]-1]&&(r=o[this[n(193)].length-1]-this[n(208)][n(199)]),!i&&r===this.scrollTop&&this.view[n(228)]>0)return;const a=s(o,r),l=s(o,r+this[n(208)][n(199)]),c=Math[n(203)](a-this[n(229)],0),d=Math[n(202)](l+this[n(229)],this[n(193)].length-1);if(c===this[n(192)]&&d===this[n(234)]&&!i)return;this[n(227)]=r,this.start=c,this[n(234)]=d,this[n(206)]=Math[n(203)](c,a),this[n(205)]=Math[n(202)](d,l),this[n(171)]=(o[this[n(206)]]||0)-(o[this[n(192)]]||0),this[n(171)]+=this[n(227)]-(o[this.startVisible-1]||0),this[n(216)]=(o[o.length-1]||0)-(o[this.endVisible]||0),this[n(212)]=this.items[n(213)](this[n(192)],this.end+1);const p=o[o[n(228)]-1]||0,u=getComputedStyle(t.$el),f=parseFloat(u[n(174)])||0,m=parseFloat(u.maxHeight)||1/0,g=Math.max(f,Math[n(202)](p,m));this[n(208)][n(194)][n(167)]=g+1+"px",this[n(195)]=this[n(227)]<=5,this[n(230)]=this[n(227)]+this.scroller[n(199)]>=this[n(208)][n(184)]-1},updateItemSize(t){const s=e,a=t[s(198)][s(179)]+this[s(192)];if(a>=this.items[s(228)])return;const h=t[s(188)][s(236)],l=i[a];if(l!==h){n+=h-(l||0),l||r++,i[a]=h,o[a]=(o[a-1]||0)+h;for(let t=a+1;t<o[s(228)];t++)o[t]=(o[t-1]||0)+(i[t]??this[s(222)]);this.scheduleUpdate(!0)}else this[s(185)]()},itemMounted(s){const i=e;a[i(232)](s),t.$ok.nextFrame(()=>{const e=i;a[e(197)](s),this[e(217)](s);const o=s[e(188)];t[e(224)][e(210)][e(209)].set(o,s),t[e(224)][e(210)][e(165)].observe(o)})},itemUnmounted(s){const i=e,o=t[i(224)].virtualized;s?.[i(188)]&&o[i(165)]&&(o[i(165)][i(201)](s.$el),o[i(209)][i(197)](s[i(188)]))},onScroll(t){const s=e;h=t[s(220)][s(227)],this[s(185)]()}}},mount(e){const s=t,i=e[s(224)].virtualized={resizeMap:new WeakMap,resizeObserver:null};i.resizeObserver=new ResizeObserver(t=>{const o=s;e[o(235)].nextFrame(()=>{const e=o;for(const s of t){const t=i[e(209)][e(233)](s.target);t&&this.updateItemSize(t)}})});const o=t=>{const e=s;if(Array[e(196)](t[e(220)]))if(t[e(214)]===e(228)){switch(t[e(180)]){case e(182):const[s,i,...o]=t[e(181)];this[e(215)](s,i,o[e(228)]);break;case"push":this.handlePush(t[e(181)][e(228)]);break;case"pop":this[e(166)]();break;case e(219):this[e(191)]();break;case e(218):this[e(200)](t[e(181)][e(228)]);break;default:this[e(178)]()}this[e(185)](!0)}else t[e(180)]===e(211)&&this[e(185)](!0)};e[s(225)](()=>this[s(193)],()=>{const t=s;this.syncHeights(),this[t(185)](!0),e[t(223)](this.items,null,o)})[s(221)]()},template:t(237),style:t(190)};export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const t=n;function s(){const t=["collect","tags","env","100422AGseDe","indexOf","130wqAina","start","400104xRxVso","10jorCcK","print","push","filter","_off","config","144lJvbxv","length","console-service","log","389877pSDqEI","6599241BQAXdr","splice","console","shared","some","prod","every","31876110rdODvI","logs","stop","4207068eHteEM","377818yQJEYM","max","includes"];return(s=function(){return t})()}function n(t,n){return t-=350,s()[t]}!function(){const t=n,e=s();for(;;)try{if(616534==parseInt(t(353))/1+parseInt(t(354))/2*(-parseInt(t(364))/3)+-parseInt(t(375))/4+-parseInt(t(351))/5*(-parseInt(t(382))/6)+-parseInt(t(376))/7*(parseInt(t(360))/8)+-parseInt(t(365))/9+parseInt(t(372))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var e={tag:t(362),register(s){const n=t,e=s.proxy({logs:[]});s[n(368)][n(367)]={get logs(){return e.logs},max:s[n(359)][n(368)][n(367)]?.[n(377)]??1e3,print:s[n(359)][n(368)][n(367)]?.[n(355)]??"prod"!==s[n(359)][n(381)],collect:s.config[n(368)][n(367)]?.[n(379)]??s[n(359)][n(381)]!==n(370),_off:null,start(){const t=n;this[t(358)]||(this._off=s.on(t(363),n=>{const e=t;this.print&&!s[e(359)][e(363)][e(367)]&&s[e(363)].printToConsole(n),this[e(379)]&&(this[e(373)][e(356)](n),this[e(373)][e(361)]>this.max&&this[e(373)][e(366)](0,this.logs[e(361)]-this[e(377)]))}))},stop(){const t=n;this._off?.[t(374)](),this[t(358)]=null},remove(t){const s=n,e=this[s(373)][s(350)](t);-1!==e&&this.logs[s(366)](e,1)},clear(t=[],s=null){const e=n;if(t?.[e(361)]||s)for(let n=this[e(373)][e(361)]-1;n>=0;n--){const o=this[e(373)][n],r=!t?.length||t.every(t=>o[e(380)][e(378)](t)),i=!s||s(o);r&&i&&this[e(373)][e(366)](n,1)}else this[e(373)][e(366)](0)},has(t=[],s=null){const e=n;return this[e(373)][e(369)](n=>(!t?.length||t.every(t=>n[e(380)][e(378)](t)))&&(!s||s(n)))},get(t=[],s=null){const e=n;return this[e(373)][e(357)](n=>(!t?.length||t[e(371)](t=>n[e(380)].includes(t)))&&(!s||s(n)))}},s[n(368)][n(367)][n(352)]()}};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function e(e,o){return e-=232,t()[e]}const o=e;!function(){const o=e,a=t();for(;;)try{if(406332==-parseInt(o(253))/1*(-parseInt(o(242))/2)+-parseInt(o(263))/3*(-parseInt(o(259))/4)+-parseInt(o(261))/5*(parseInt(o(250))/6)+-parseInt(o(241))/7*(parseInt(o(246))/8)+parseInt(o(232))/9+parseInt(o(264))/10+-parseInt(o(251))/11*(parseInt(o(237))/12))break;a.push(a.shift())}catch(e){a.push(a.shift())}}();var a={tag:o(234),dependencies:["./ok-console-service.ok.js"],context:o=>({query:"",collapsed:new WeakSet,activeTag:null,get logs(){const a=e,t=o.$ok.shared[a(234)].logs;if(this[a(252)])return t[a(235)](e=>e[a(243)][a(256)](this[a(252)]));if(!this.query)return t;const r=this.query[a(267)]();return t[a(235)](e=>e[a(243)][a(244)](e=>e[a(267)]()[a(256)](r))||JSON[a(254)](e[a(247)])[a(267)]().includes(r))},get allTags(){const a=e,t=new Set;for(const e of o.$ok.shared.console[a(249)])for(const o of e.tags)t[a(238)](o);return[...t].sort()},toggle(o){const a=e;this.collapsed[a(248)](o)?this[a(265)][a(260)](o):this[a(265)].add(o)},isCollapsed(o){return this[e(265)].has(o)},clear(){const a=e;o[a(245)].shared[a(234)][a(262)]()},remove(a){const t=e;o[t(245)].shared[t(234)][t(266)](a)},filterBy(o){this[e(252)]=this.activeTag===o?null:o,this.query=""}}),mounted(a){const t=o,r=new MutationObserver(()=>{const o=e,t=a.$el[o(258)](o(233));t.scrollTop=t[o(239)]});a.$ext(t(257),()=>r[t(255)]())},template:o(236),style:o(240)};function t(){const e=["184607vsUDke","stringify","disconnect","includes","unmount","querySelector","4mBMbVZ","delete","5eWWDwc","clear","2408757JnOEoP","5009490MCAakW","collapsed","remove","toLowerCase","920403oKsbdb",".logs","console","filter",'<div class="toolbar"><input type="text" :bind="query" placeholder="Search logs..."><button @click="clear">Clear</button></div><div class="tags"><each :="allTags" let:item="tag"><button class="tag-btn" :class="{ active: activeTag === tag }" @click="filterBy(tag)">{{ tag }}</button></each></div><div class="logs"><virtualized :="logs" let:item="log"><div class="log" :class="[ log.tags.includes(\'error\') && \'error\', log.tags.includes(\'warn\') && \'warn\', log.tags.includes(\'info\') && \'info\', log.tags.includes(\'verbose\') && \'verbose\', isCollapsed(log) && \'collapsed\' ]"><div class="header" @click="toggle(log)"><span class="tags"><each :="log.tags" let:item="tag"><span class="tag">{{ tag }}</span></each></span><span class="time">{{ new Date(log.timestamp).toLocaleTimeString() }}</span> <button class="remove" @click="remove(log)">✕</button></div><if :="log.data instanceof Error"><ok-crash-info no-close :error="log.data" style="max-height:100%"/><else><pre class="data">{{ JSON.stringify(log.data, null, 2) }}</pre></else></if></div></virtualized></div>',"156FIedaM","add","scrollHeight","[tag]{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;font-family:monospace}.tags,.toolbar{display:flex;padding:4px}.toolbar{gap:6px;background:#222}.toolbar input{flex:1;padding:2px 6px;background:#111;color:#eee;border:1px solid #444}.toolbar button{background:#333;color:#eee;border:0;padding:4px 8px;cursor:pointer}.tags{flex-wrap:wrap;gap:4px;background:#181818}.tag-btn{padding:2px 6px;border:0;background:#333;color:#ccc;cursor:pointer;border-radius:4px;font-size:.85em}.tag-btn.active{background:#555;color:#fff;font-weight:700}.logs{flex:1;overflow:auto;background:#111;color:#eee}.log{border-bottom:1px solid #333}.log .header{display:flex;justify-content:space-between;align-items:center;padding:4px;cursor:pointer;background:#181818}.log.collapsed .data{display:none}.log .tags{display:flex;gap:6px;flex-wrap:wrap}.log .tag{background:#333;color:#9cf;padding:2px 6px;border-radius:4px;font-size:.85em}.log .time{font-size:.75em;color:#aaa;margin-left:auto;margin-right:8px}.log .remove{background:0 0;border:0;color:#f66;font-size:1em;cursor:pointer}.log .data{padding:4px 8px;white-space:pre-wrap;word-break:break-word;background:#1a1a1a}.log.info .tag{background:#224;color:#6cf}.log.warn .tag{background:#442;color:#fd4}.log.error .tag{background:#411;color:#f66}.log.verbose .tag{background:#113;color:#aaa}","1167467XfWfuy","2JzUhfv","tags","some","$ok","8SWTgVd","data","has","logs","4325658VPvupM","251042SBSGrE","activeTag"];return(t=function(){return e})()}export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import t from"./ok-fps-monitor.ok.js";import o from"../modals/ok-window.ok.js";import e from"../interaction/ok-hotkeys-service.ok.js";function n(t,o){return t-=192,r()[t]}function r(){const t=["15894110hUOyfL","7384728fvrMEA","register","3sbxyjA","5694066GaWeTv","1vjFAoW","1880262CbnVxz","shared","Toggle FPS Monitor","1308qudxUD","repeat","15757SVtMVt","2729252lBAhMC","dev","toggle","22vMxeGt","shift","hotkeys","env","window","1457310rwIoAo","ok-fps-monitor-service","fps"];return(r=function(){return t})()}!function(){const t=n,o=r();for(;;)try{if(483781==-parseInt(t(197))/1*(parseInt(t(198))/2)+parseInt(t(195))/3*(-parseInt(t(204))/4)+-parseInt(t(212))/5+-parseInt(t(201))/6*(parseInt(t(203))/7)+-parseInt(t(193))/8+parseInt(t(196))/9+-parseInt(t(192))/10*(-parseInt(t(207))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}();var s={tag:"ok-fps-monitor-service",dependencies:[t,o,e],register(t,o){const e=n;t[e(199)][e(214)]={async toggle(n=null){const r=e;return t[r(199)].layer[r(206)](r(213),n,{registration:o,tier:r(211)})}},(t.config[e(210)]===e(205)||!0===t.config.shared.fps?.[e(194)])&&t[e(199)][e(209)][e(194)](["ctrl",e(208),"f"],{description:e(200),keydown(o){const n=e;o[n(202)]||t[n(199)].fps[n(206)]()}})},template:'<ok-window no-portal title="FPS" no-maximize autohidehud style="--ok-window_padding:0;max-height:fit-content;max-width:fit-content;min-width:fit-content" @close="$ok.shared.fps.toggle(false)"><ok-fps-monitor/></ok-window>'};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var o={tag:
|
|
1
|
+
const t=i;!function(){const t=i,o=r();for(;;)try{if(560313==parseInt(t(194))/1*(parseInt(t(204))/2)+-parseInt(t(208))/3+parseInt(t(218))/4*(-parseInt(t(201))/5)+parseInt(t(214))/6+-parseInt(t(193))/7+-parseInt(t(202))/8*(-parseInt(t(199))/9)+-parseInt(t(189))/10*(parseInt(t(192))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}();var o={tag:t(200),context(){const o=t;return{rafFps:0,rafFrameCount:0,lastRafTime:performance[o(211)](),rafHistory:[],maxPoints:50,running:!0,get rafPoints(){const t=o;return this.rafHistory[t(188)]((t,o)=>2*o+","+(40-t*(40/144)))[t(212)](" ")},tickRaf(){const t=o;this[t(197)]&&requestAnimationFrame(()=>{const o=t,i=performance.now();this[o(219)]++,i-this[o(220)]>=1e3&&(this[o(209)]=this[o(219)],this[o(190)][o(216)](Math[o(195)](this[o(209)],144)),this[o(190)][o(213)]>this[o(221)]&&this.rafHistory[o(215)](),this[o(219)]=0,this.lastRafTime=i),this[o(186)]()})}}},mount(o){this[t(186)]()},unmount(o){this[t(197)]=!1},template:t(206),style:t(217),plugins:{theme:{expose:{"--ok-fps-monitor-bg":{default:t(187),type:t(207),description:"Background color",category:t(210)},"--ok-fps-monitor-color":{default:t(196),type:t(207),description:t(205),category:t(210)},"--ok-fps-monitor-line":{default:t(196),type:t(207),description:"FPS line color",category:t(210)},"--ok-fps-monitor-grid":{default:t(191),type:t(207),description:t(198),category:"FPS Monitor"},"--ok-fps-monitor-grid-mid":{default:t(203),type:t(207),description:"Middle dashed line color",category:"FPS Monitor"}}}}};function i(t,o){return t-=186,r()[t]}function r(){const t=["running","Grid line color","999yglMSH","ok-fps-monitor","221855OjwNZp","77904SgWdFr","#555","742824aIeGrn","Text color",'<div><div>FPS: {{ rafFps }}</div><svg width="100" height="40"><line x1="0" y1="0.5" x2="100" y2="0.5"/><line x1="0" y1="23.3" x2="100" y2="23.3"/><line x1="0" y1="39.5" x2="100" y2="39.5"/><polyline :points="rafPoints"/></svg></div>',"color","2438868IloiYr","rafFps","FPS Monitor","now","join","length","947214YPQpEj","shift","push","[tag]{display:inline-block;background:var(--ok-fps-monitor-bg, #000);color:var(--ok-fps-monitor-color, #0f0);font-family:monospace;font-size:14px;padding:.5rem 1rem}svg line:first-child{stroke:var(--ok-fps-monitor-grid, #333)}svg line:nth-child(2){stroke:var(--ok-fps-monitor-grid-mid, #555)}svg line:last-child{stroke:var(--ok-fps-monitor-grid, #333)}svg polyline{stroke:var(--ok-fps-monitor-line, #0f0);fill:none}","44syGcSx","rafFrameCount","lastRafTime","maxPoints","tickRaf","#000","map","76490uyEaDI","rafHistory","#333","209JADQcx","2424394KvezZV","3gIVIAs","min","#0f0"];return(r=function(){return t})()}export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../modals/ok-window.ok.js";import
|
|
1
|
+
import e from"../modals/ok-window.ok.js";import t from"./ok-inspector.ok.js";import n from"../interaction/ok-hotkeys-service.ok.js";import o from"../interaction/ok-picker-service.ok.js";const s=r;function r(e,t){return e-=391,i()[e]}function i(){const e=["layer","ok-inspector-service",'<ok-window no-portal style="--ok-window_padding:0" @close="$ok.shared.inspector.toggle(false)" title="Inspector"><ok-inspector/></ok-window>',"env","1576290emMwSi","pick","431793JffnLi","shared","stop","toggle","61390vvCZzE","inspector","config","nodeType","6885BTnuPC","615901KIcnHO","shift","#717171","$scope","start","48pNccgM","hotkeys","scope","picker","ok-inspector","1126356qfviyU","selectElement","581568WduxbE","register","querySelector","12vfSuYq","10PLEsTS","window","then"];return(i=function(){return e})()}!function(){const e=r,t=i();for(;;)try{if(326521==-parseInt(e(400))/1+parseInt(e(412))/2+parseInt(e(399))/3*(-parseInt(e(415))/4)+-parseInt(e(416))/5*(-parseInt(e(423))/6)+-parseInt(e(410))/7+parseInt(e(405))/8*(parseInt(e(391))/9)+parseInt(e(395))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}}();var c={tag:"ok-inspector-service",dependencies:[n,o,e,t],plugins:{theme:{set:{"--ok-window_header-bg":s(402)}}},register(e,t){const n=s;e.shared[n(396)]={window:null,scope:null,async toggle(o=null,s={}){const r=n,i=await e[r(392)][r(419)][r(394)](r(420),o,{registration:t,tier:r(417)});if(i){const t=i[r(414)](r(409));this[r(417)]=i[r(403)],this[r(407)]=t?.[r(403)]??null,s[r(424)]&&e[r(392)][r(408)].start({onPick:e=>{this[r(407)].$innerContext.selectElement(e)}})}else this[r(417)]=null,this[r(407)]=null},async inspect(e){const t=n;e instanceof Node&&(!e[t(398)]!==Node.ELEMENT_NODE&&(e=e.parentNode),await this.toggle(!0),this.scope?.$innerContext[t(411)](e))}},("dev"===e[n(397)][n(422)]||!0===e[n(397)][n(392)][n(396)]?.[n(413)])&&e.shared[n(406)][n(413)](["ctrl",n(401),"alt"],{description:"Toggle Inspector Picker",keydown(t){const o=n;t.repeat||e[o(392)].picker[o(404)]({onPick:t=>{const n=o;e.shared[n(396)][n(394)](!0)[n(418)](()=>{const o=n;e[o(392)].inspector.scope?.$innerContext[o(411)](t)})}})},keyup(){const t=n;e[t(392)].picker[t(393)]()}})},template:s(421)};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const e=t;function t(e,t){return e-=294,n()[e]}function n(){const e=["2px solid #0f0","[tag]{display:flex;flex-grow:1;flex-direction:column;background:var(--ok-inspector-bg, #111);color:var(--ok-inspector-fg, #0f0);padding:1rem;font-family:monospace;font-size:13px;overflow:auto;border:var(--ok_border, 1px solid #333)}","5tEXEUO","shared","../theming/ok-design.ok.js","parent","3UYcbsY","$el","children","ok-js-tree","$listen","ok-inspector","selectedScope","___oldOutline","highlight","3529967KsYjCh","ArrowDown","selectElement","./ok-js-tree.ok.js","4386159rnHxNX","currentIndex","#0f0","filter","47520zCFYKD","parentElement","Escape","660750OmLuXG","$reload","638938ivpGie","clearOutline","from","tree","1suuShF","color","keydown","close","24104wANaXk","$scope","selectedEl","$ok","siblings","#111","outline","1338252DfDFjU","key","1804ZxNruA","style"];return(n=function(){return e})()}!function(){const e=t,s=n();for(;;)try{if(304322==-parseInt(e(295))/1*(-parseInt(e(338))/2)+parseInt(e(316))/3*(-parseInt(e(306))/4)+parseInt(e(312))/5*(parseInt(e(336))/6)+parseInt(e(325))/7+-parseInt(e(299))/8+parseInt(e(329))/9+-parseInt(e(333))/10*(parseInt(e(308))/11))break;s.push(s.shift())}catch(e){s.push(s.shift())}}();var s={tag:e(321),dependencies:[e(314),{tag:e(319),import:e(328)},"../interaction/ok-picker-service.ok.js","../interaction/ok-highlight-service.ok.js"],context(t){const n=e,s=t[n(302)].proxy({selectedEl:null,selectedScope:null,tree:{parent:null,siblings:[],children:[],currentIndex:-1},selectElement(e){const t=n;if(!(e instanceof Element))return;s[t(339)](),s[t(301)]=e,s[t(322)]=e.$scope||null,e&&(e[t(323)]=e.style[t(305)],e[t(309)][t(305)]=t(310));const i=e[t(334)]?.[t(300)],o=Array.from(e[t(334)]?.children||[]).filter(e=>e[t(300)]),l=o.findIndex(t=>t===e),r=Array[t(340)](e[t(318)]||[])[t(332)](e=>e[t(300)]);s[t(294)]={parent:i,siblings:o,children:r,currentIndex:l}},clearOutline(){const e=n;s[e(301)]&&(s.selectedEl.style[e(305)]=s[e(301)][e(323)]||"",delete s.selectedEl[e(323)])},close(){s[n(339)](),s.selectedEl=null,s.selectedScope=null},onKeydown(e){const t=n;if(!s[t(301)])return;let i=null;switch(e[t(307)]){case t(335):return void s[t(298)]();case"ArrowUp":i=s[t(294)][t(315)]?.[t(317)];break;case"ArrowLeft":i=s.tree.siblings[s[t(294)].currentIndex-1];break;case"ArrowRight":i=s[t(294)][t(303)][s[t(294)][t(330)]+1];break;case t(326):i=s.tree.children[0]}i&&s[t(327)](i)},highlight(){const e=n;t[e(302)][e(313)][e(324)].show(s[e(301)])},async reload(){const e=n,t=await this.selectedScope[e(337)]();this[e(327)](t.$el)},get canReload(){const e=n;return!(!this[e(322)]||!this[e(322)].$isCmp)}});return s},mounted(t){const n=e;t[n(320)](window,n(297),this.onKeydown)},unmounted(t){this[e(298)]()},template:'<div><div style="display:flex;justify-content:space-between;margin-bottom:.5rem"><strong>Inspector</strong><div style="display:flex;gap:.5rem"><button @click="highlight" class="ok-inspector__button">Highlight</button> <button @click="$ok.shared.picker.start({ onPick: selectElement })" class="ok-inspector__button">Pick</button> <button :disabled="!canReload" @click="reload" class="ok-inspector__button">Reload</button></div></div><if :="selectedEl"><div><strong>Tag:</strong> {{ selectedEl?.nodeType === 3 ? \'[Text]\' : selectedEl?.tagName }}</div><if :="selectedScope"><div><strong>ID:</strong> {{ selectedScope?.id }}</div><div><strong>State:</strong> {{ selectedScope?.$state }}</div><div><strong>$vars:</strong></div><each :="selectedScope?.$vars || {}" let:key let:item><ok-js-tree :key :item :parent="selectedScope?.$vars" editable/></each><div><strong>$context:</strong></div><each :="selectedScope?.$context || {}" let:key let:item><ok-js-tree :key :item :parent="selectedScope?.$context" editable/></each><div><strong>$attr:</strong></div><each :="selectedScope?.$attr || {}" let:key let:item><ok-js-tree :key :item :parent="selectedScope?.$attr"/></each><else>No scope available for this element.</else></if><hr><div><div><strong>Parent</strong></div><div @click="selectElement(tree.parent?.$el)" style="padding:.5em">{{ tree.parent?.$el?.tagName || \'[None]\' }}</div><div><strong>Siblings</strong></div><each :="tree.siblings" let:item let:index><div @click="selectElement(item)" :style="{ background: item === selectedEl ? \'#333\' : \'\' }" style="padding:.25em">{{ item.tagName || \'[None]\' }}</div></each><div><strong>Children</strong></div><each :="tree.children" let:item><div @click="selectElement(item)" style="padding:.25em">{{ item?.tagName }}</div></each></div><else><div style="opacity:.7">No element selected.</div></else></if></div>',style:e(311),plugins:{theme:{expose:{"--ok-inspector-fg":{default:e(331),type:"color"},"--ok-inspector-bg":{default:e(304),type:e(296)}},define:{default:{}}}}};export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function e(e,t){return e-=262,i()[e]}const t=e;function i(){const e=["[code]","toString","5019420xzGmdU","[Symbol] ","color:#fc6;","isRoot","[Circular]","key","isProxy","[Undefined]","$attr","isArray","1866288PLIYVC","true","9334JldvIl","number","color:#888;font-style:italic;","push","4968715AqdhPI","boolean","parent","newKeyName","color:#aaa;","ok-js-tree","canEditValue","function","readonly","3899990gcdIFN",'<div style="padding-left:1em;border-left:2px solid #0f03;font-family:monospace;font-size:13px"><div @click="toggle" style="cursor:pointer;display:flex"><span class="ok-js-tree__toggle" :class="isExpandable\n ? (expanded ? \'ok-js-tree__toggle--expand\' : \'ok-js-tree__toggle--collapse\')\n : \'ok-js-tree__toggle--neutral\'"/> <span style="color:#888">{{ localKey }}:</span><if :="isReactive"><span title="Reactive" style="color:#0a0;margin-left:4px">★</span></if><span style="margin-left:.25em;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis" :style="style" :title="typeLabel + \' \' + preview">{{ typeLabel }} {{ preview }}</span></div><if :="expanded"><div style="margin-left:1em;margin-top:.3em;display:flex;flex-direction:column"><if :="canEditKey"><div style="display:flex;flex-wrap:wrap;gap:.5em;align-items:center"><input !value="newKeyName" @blur="commitEdit" @keydown="onKeyDown" @mounted="$el.focus()"><label><span style="margin-right:4px">Type:</span> <select @click.stop @change="changeType($el.value)" :value="currentType" :disabled="!canEditValue"><option value="string">string</option><option value="number">number</option><option value="boolean">boolean</option><option value="null">null</option><option value="undefined">undefined</option><option value="object">object</option><option value="array">array</option></select></label><if :="canDeleteSelf"><button @click="deleteSelf" style="color:red;background:0 0;border:none;font:inherit;cursor:pointer">✕</button></if></div></if><switch :value="currentType"><case value="string"><textarea @input="update($el.value)" :disabled="!canEditValue" style="min-width:200px">{{ value }}</textarea></case><case value="number"><input type="number" :value="value" @input="update($el.value)" :disabled="!canEditValue"></case><case value="boolean"><select @change="update($el.value)" :value="value + \'\'" :disabled="!canEditValue"><option value="true">true</option><option value="false">false</option></select></case></switch><if :="isObject || isRoot"><each default-height="20" :of="[...Object.keys(value)]" let:item="key" style="max-height:400px"><ok-js-tree :key :parent="value" :editable="editable"/></each><if :="editable"><button @click="addObjectKey" style="background:0 0;border:none;font:inherit;cursor:pointer">➕</button></if></if><if :="isArray"><each default-height="22" :of="value" let:item let:index style="max-height:400px"><ok-js-tree :key="index" :parent="value" :editable="editable"/></each><if :="editable"><button @click="addArrayItem" style="background:0 0;border:none;font:inherit;cursor:pointer">➕</button></if></if><if :="isFunction"><pre style="margin-left:1em">{{ value.toString() }}</pre></if></div></if></div>',"array","symbol","proxyInstance","color:#6cf;","742617foHHAZ","2185204kwlbRS","string","undefined","null","[Null]","expanded","isFunction","isExpandable","80nbEECr","24KFfYth","stringify","color:#ccc;","@keyframes[tag]__pulse{0%,to{opacity:.5;transform:translateY(0)}50%{opacity:1;transform:translateY(2px)}}[tag]{display:block}[tag] .ok-js-tree__toggle{display:inline-block;min-width:1rem;vertical-align:middle;color:#888;transform-origin:50% 50%;transition:transform .15s ease;clip-path:polygon(30% 20%,70% 50%,30% 80%);background:#888}[tag] .ok-js-tree__toggle--expand{transform:rotate(90deg)}[tag] .ok-js-tree__toggle--collapse{transform:rotate(0deg)}[tag] .ok-js-tree__toggle--neutral{background:#888;clip-path:circle(20%at 50% 50%);transform:none}","[Array]","set","isObject","object","currentType","$ok","223ozEpTk","color:#f6f;","editable","localKey","bigint","[Function]","[Object]","value","[Boolean]"];return(i=function(){return e})()}!function(){const t=e,n=i();for(;;)try{if(646198==-parseInt(t(275))/1*(-parseInt(t(298))/2)+-parseInt(t(296))/3+parseInt(t(286))/4+-parseInt(t(302))/5+-parseInt(t(265))/6*(parseInt(t(318))/7)+parseInt(t(264))/8*(parseInt(t(317))/9)+parseInt(t(311))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}}();var n={tag:t(307),attr:{key:{},parent:{},editable:{type:"boolean",default:!1,empty:!0}},context(i){const n=t,a={expanded:!1,currentType:null,get localKey(){const t=e;return i[t(294)][t(291)]},newKeyName:i[n(294)][n(291)],get readonly(){const e=n,t=Object.getOwnPropertyDescriptor(i[e(294)][e(304)],i[e(294)][e(291)]);return!(t.writable||t[e(270)])},get editable(){const e=n;return!1!==i[e(294)][e(277)]},get parent(){const e=n;return i.$attr[e(304)]},get value(){const e=n;return this[e(304)]?.[this.localKey]},get isFunction(){const e=n;return typeof this[e(282)]===e(309)},get isObject(){const e=n;return typeof this[e(282)]===e(272)&&null!==this[e(282)]&&!Array[e(295)](this.value)},get isArray(){const e=n;return Array.isArray(this[e(282)])},get isExpandable(){const e=n;return this[e(262)]||this[e(271)]||this[e(295)]},get isRoot(){const e=n;return null==this[e(278)]&&"object"==typeof this[e(304)]},get canEditKey(){const e=n;return!this[e(310)]&&this.editable&&!Array[e(295)](this.parent)},get canEditValue(){return!this[n(310)]&&this.editable},get canDeleteSelf(){const e=n;return this[e(277)]&&!Array[e(295)](this[e(304)])},get typeLabel(){const e=n;return this[e(295)]?e(269):this[e(271)]?e(281):this.isFunction?e(280):null===this.value?e(322):void 0===this[e(282)]?e(293):"symbol"==typeof this[e(282)]?e(287)+this[e(282)][e(285)]():typeof this[e(282)]===e(279)?"[BigInt] "+this[e(282)]+"n":typeof this.value===e(319)?"[String]":typeof this[e(282)]===e(299)?"[Number]":"boolean"==typeof this[e(282)]?e(283):""},get preview(){const e=n,t=this.value;if(typeof t===e(319))return'"'+t+'"';if("function"==typeof t)return e(284);try{return JSON[e(266)](t)}catch{return e(290)}},get style(){const e=n,t=this[e(282)];if(null==t)return e(300);switch(typeof t){case e(319):return e(276);case"number":return e(316);case e(303):return e(288);case e(314):return e(306);case e(279):return e(267);default:return""}},get isReactive(){const e=n;return i[e(274)]?.[e(315)]?.[e(292)]?.(this.parent)},toggle(){const e=n;(this[e(263)]||this.editable)&&(this[e(323)]=!this[e(323)])},init(){const e=n,t=this.value;null===t?this[e(273)]=e(321):void 0===t?this[e(273)]=e(320):Array[e(295)](t)?this[e(273)]="array":typeof t===e(272)?this[e(273)]=e(272):this[e(273)]=typeof t},update(e){const t=n;if(this[t(308)])switch(this[t(273)]){case"string":this[t(304)][this[t(278)]]=e;break;case t(299):const i=parseFloat(e);isNaN(i)||(this[t(304)][this[t(278)]]=i);break;case t(303):this.parent[this[t(278)]]=e===t(297)}},changeType(e){const t=n;switch(this.currentType=e,e){case"string":this.parent[this[t(278)]]="";break;case t(299):this[t(304)][this.localKey]=0;break;case t(303):this[t(304)][this[t(278)]]=!1;break;case"null":this[t(304)][this[t(278)]]=null;break;case t(320):this[t(304)][this.localKey]=void 0;break;case t(272):this[t(304)][this[t(278)]]={},this.expanded=!0;break;case t(313):this[t(304)][this.localKey]=[],this[t(323)]=!0}},deleteSelf(){const e=n;delete this[e(304)]?.[this[e(278)]]},commitEdit(){const e=n,t=this[e(278)],i=this[e(305)];if(!this[e(304)]||i===t||!i||i in this[e(304)])return;const a=this[e(304)][t];delete this[e(304)][t],this[e(304)][i]=a,this[e(278)]=i},onKeyDown(e){"Enter"===e.key&&this.commitEdit()},addObjectKey(){const e=n;if(!this[e(277)]||!this[e(271)]&&!this[e(289)])return;let t=1,i="newKey",a=i+t;for(;a in this[e(282)];)a=i+ ++t;this[e(282)][a]=null},addArrayItem(){const e=n;this[e(277)]&&this[e(295)]&&this[e(282)][e(301)](null)},deleteObjectKey(e){delete this[n(282)][e]}};return a.init(),a},template:t(312),style:t(268)};export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function t(t,e){return t-=187,o()[t]}const e=t;function o(){const t=["129274OSVcSM","1217610TpVRjT","start","9591267xZbeOj","2048853FKfRAF","3408MkRrng","ctrl","window","root","$scope","config","8945XIYWmx","timeline","Toggle Timeline Monitor","repeat","dev","picker","4169780vACWmO","toggle","$root","22270104KAKOhY","../core/ok-sandbox.ok.js","env","./ok-timeline.ok.js",'<ok-window no-portal title="Timeline" autohidehud @close="$ok.shared.timeline.toggle(false)"><ok-sandbox><ok-timeline :root/></ok-sandbox></ok-window>',"$ok","stop","shared","$lifecycle","hotkeys","ok-timeline-service"];return(o=function(){return t})()}!function(){const e=t,n=o();for(;;)try{if(700143==parseInt(e(215))/1+parseInt(e(216))/2+-parseInt(e(188))/3+parseInt(e(201))/4+-parseInt(e(195))/5*(-parseInt(e(189))/6)+parseInt(e(187))/7+-parseInt(e(204))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}();var n={tag:e(214),dependencies:[e(207),e(205),"../modals/ok-window.ok.js"],register(t,o){const n=e;if(t[n(211)][n(196)]={window:null,async toggle(e=null,s=null){const i=n;this[i(192)]=s;const r=await t[i(211)].layer.toggle(i(214),e,{registration:o,tier:"window"});r?(await r[i(193)][i(212)].mounted,this.window=r.$scope):(this[i(191)]=null,this.root=null)}},t[n(194)][n(206)]===n(199)||!0===t.config.shared[n(196)]?.register){let e=t[n(211)][n(213)];const o=()=>{const o=n;e.register([o(190),"alt","q"],{description:o(197),keydown(e){const n=o;e[n(198)]||t[n(211)].picker[n(217)]({onPick:async e=>{const o=n;await t[o(211)][o(196)][o(202)](!1),await t.shared[o(196)][o(202)](!0,e.$scope)}})},keyup(){const e=o;t[e(211)][e(200)][e(210)]()}})};if(e)o();else{const s=t.on("registered",()=>{const i=n;e=t[i(211)][i(213)],e&&(o(),s.stop())})}}},context:e=>({get root(){const o=t;return e[o(209)][o(211)].timeline[o(192)]||e[o(203)]}}),template:e(208)};export{n as default};
|