@kedem/okdb 1.0.0 → 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/README.md +1 -1
- 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/public/images/logo.png +0 -0
- package/public/images/logo.svg +0 -333
|
@@ -1,2 +1 @@
|
|
|
1
|
-
const e=`ok_error_${Date.now().toString(36)}_${Math.random().toString(36).slice(2,6)}`;let t=1;class n extends Error{constructor(r,o,i={},s={}){const{depth:a=0}=s,c=i.message||r||o?.message||"An error occurred";if(super(i.message||`${c}`,{cause:o}),this.id=this.id=`${e}_${t++}`,this.name="OKError",this.code=r,this.scope=i.scope,this.ok=i.ok||this.scope?.$ok,this.meta=i,delete this.meta.ok,delete this.meta.scope,delete this.meta.message,Error.captureStackTrace&&Error.captureStackTrace(this,n),this.stack&&a>0){const e=this.stack.split("\n"),t=[e[0],...e.slice(a+1)],n=t.find(e=>/\(?(.+):\d+:\d+\)?/.test(e)),r=n?.match(/\(?(.+):(\d+):(\d+)\)?/);r&&(this.location={file:r[1],line:Number(r[2]),column:Number(r[3])}),this.stack=t.join("\n")}}get rootCauseMessage(){let e=this;for(;e.cause instanceof n;)e=e.cause;return e.message+(e.cause?`. Caused by: ${e.cause}`:"")}toJSON(){return{name:this.name,code:this.code,message:this.message,meta:this.meta,stack:this.stack,cause:this.cause?.toString()}}toString(){return`${this.name} [${this.code}]: ${this.message}`}}const r=new WeakMap,o={on(e,t){return i.on(this,e,t)},once(e,t){return i.once(this,e,t)},off(e,t){return i.off(this,e,t)},offAll(){return i.offAll(this)},emit(e,...t){try{return i.emit(this,e,...t)}catch(r){throw new n("EMIT_ERROR",r,{event:e,args:t})}}},i={SYMBOLS:{ON:Symbol("on"),ONCE:Symbol("once"),OFF:Symbol("off"),OFF_ALL:Symbol("offAll"),EMIT:Symbol("emit")},EmitterProto:o,bind:e=>({on(t,n){i.on(e,t,n)},once(t,n){i.once(e,t,n)},off(t,n){i.off(e,t,n)},offAll(t){i.offAll(e,t)},emit(t,...n){i.emit(e,t,...n)}}),on(e,t,n){let o=r.get(e);o||(o=new Map,r.set(e,o));let s=o.get(t);return s||(s=new Set,o.set(t,s)),s.add(n),{scope:e,event:t,fn:n,stop(){i.off(e,t,n)}}},once(e,t,n){const r=(...o)=>{i.off(e,t,r),n(...o)};return i.on(e,t,r),{scope:e,event:t,originalFn:n,fn:r,stop(){i.off(e,t,r)}}},off(e,t,n){const o=r.get(e);if(o){if(t){const e=o.get(t);if(!e)return;e.delete(n),0===e.size&&o.delete(t)}t&&0!==o.size||r.delete(e)}},offAll(e){r.delete(e)},emit(e,t,...n){const o=r.get(e);if(!o)return;const i=o.get(t);if(i)for(const e of i)e(...n)}},s=new Map;function a(e){return e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}function c(e,{debug:t=!1,log:r=!1,layers:o=[]}={}){const i=function(e){return e.trim()}(Object(e).toString()),c=[];t&&c.push("debug"),r&&c.push("log");const l=(c.length?`${c.join(",")}:${i}`:i)+"~"+o;if(s.has(l))return s.get(l);let u;try{const e=function(e,{debug:t=!1,log:n=!1,layers:r=["$scope","$vars","$context"]}={}){const o=[];if(t&&o.push("debugger;"),n){const t=a(e);o.push(`console.log("RUNNING", \`${t}\`, Object.fromEntries(Object.entries(ctx).filter(([k]) => ${JSON.stringify(r)}.includes(k))));`)}return o.push(`return (${e});`),r.reduceRight((e,t)=>`with (ctx.${t}) {\n${e}\n}`,o.join("\n"))}(i,{debug:t,log:r,layers:o});u=new Function("ctx","onError",e)}catch(t){throw new n("EXPR_COMPILE_FAILED",t,{message:`Failed to compile expression: \`${a(i)}\``,cmd:e})}const d=e=>{if(o.length&&!e)throw new n("EXPR_EVAL_BAD_ARGUMENT",`Expression requires a context with: ${o.join(", ")}`);if(void 0!==e&&!o.length)throw new n("EXPR_EVAL_BAD_ARGUMENT","Expression expects no context, but got one");try{return u(e)}catch(t){throw new n("EXPR_EVAL_ERROR",t,{message:`Failed to evaluate expression: \`${a(i)}\``,scope:e?.$scope})}};return s.set(l,d),d}const l=Symbol("ReactiveMap");function u(e){class t extends Map{constructor(e){super(),this[l]=e}get size(){return e.trackDependency(this,"size"),this[l].size}get(t){return e.trackDependency(this,t),e.proxy(this[l].get(t),{allowNonObjects:!0})}set(t,n){const r=this[l].has(t),o=this[l].get(t),i=this[l].set(t,n),s=this[l].get(t);return e.emitChange(this,t,o,s,{type:"map",mode:"set"}),r||e.emitChange(this,"size",this[l].size-1,this[l].size,{type:"set",mode:"size"}),i}delete(t){if(!this[l].has(t))return!1;const n=this[l].get(t),r=this[l].delete(t);return e.emitChange(this,t,n,void 0,{type:"map",mode:"delete"}),e.emitChange(this,"size",this[l].size+1,this[l].size,{type:"map",mode:"size"}),r}clear(){const t=this[l].size;this[l].clear(),e.emitChange(this,"size",t,0,{type:"map",mode:"size"}),e.emitChange(this,null,void 0,void 0,{type:"map",mode:"clear"})}has(t){return e.trackDependency(this,t),this[l].has(t)}entries(){return this[l].entries()}keys(){return this[l].keys()}values(){return this[l].values()}[Symbol.iterator](){return this[l][Symbol.iterator]()}forEach(e,t){this[l].forEach((n,r)=>e.call(t,n,r,this))}}return{filter:e=>e instanceof Map,handler:(e,n)=>new t(n)}}function d(e){const t=new WeakMap;return{filter:Array.isArray,handler:(n,r)=>function(e,n){const r={},o=new Proxy(e,{get:(e,t,i)=>"length"===t?(n.trackDependency(o,"length"),Reflect.get(e,t,i)):"symbol"==typeof t?Reflect.get(e,t,i):isNaN(t)?["push","pop","shift","unshift","splice"].includes(t)?(r[t]||(r[t]=function(...r){const o=e.length,i=Array.prototype[t].apply(e,r);return n.emitChange(e,"length",o,e.length,{type:"array",mode:t,args:r}),i}),r[t]):n.proxy(Reflect.get(e,t,i),{allowNonObjects:!0}):(n.trackDependency(o,t),n.proxy(Reflect.get(e,t,i),{allowNonObjects:!0})),set(e,t,r,o){const i=e[t],s=e.length,a=Reflect.set(e,t,r,o);return n.emitChange(e,t,i,r,{type:"array",mode:"set"}),!isNaN(t)&&Number(t)>=s&&n.emitChange(e,"length",s,Number(t)+1,{type:"array",mode:"set"}),a}});return t.set(o,r),o}(r,e)}}function f(e={}){const t={log:e.log||console};let n=0;const r=new WeakMap,o=new Map;function i(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(!t)return!1;const n=t.constructor;if("function"!=typeof n)return!1;const r=n.toString().includes("[native code]");return t===Object.prototype||!r}const s={warnOnEmptyWatch:"warn",onChangeError:"throw",onWatchError:"throw",wrapHandle:null,dispatchDelay:e=>queueMicrotask(()=>requestAnimationFrame(e)),blacklistFilter:null,whitelistFilter:i,accessFilter:null,meta:null,monkeyPatches:[d(t),u(t),(a=t,{filter:e=>e instanceof Set,handler(e,t){const n=new Map,r=new Proxy(t,{get(e,t,o){if("symbol"==typeof t){const n=e[t];return"function"==typeof n?n.bind(e):n}if("size"===t)return a.trackDependency(r,"size"),e.size;if(n.has(t))return n.get(t);let i;return"add"===t?i=function(t){const n=e.has(t),o=e.add(t);return n||(a.emitChange(r,"size",e.size-1,e.size,{type:"set",mode:"add",args:[t]}),a.emitChange(r,t,!1,!0,{type:"set",mode:"has"})),o}:"delete"===t?i=function(t){const n=e.has(t),o=e.delete(t);return n&&(a.emitChange(r,"size",e.size+1,e.size,{type:"set",mode:"delete",args:[t]}),a.emitChange(r,t,!0,!1,{type:"set",mode:"has"})),o}:"clear"===t?i=function(){const t=e.size,n=[...e];e.clear();for(let e of n)a.emitChange(r,e,!0,!1,{type:"set",mode:"has"});a.emitChange(r,"size",t,0,{type:"set",mode:"clear"})}:"has"===t&&(i=function(t){return a.trackDependency(r,t),e.has(t)}),i?(n.set(t,i),i):"function"==typeof e[t]?e[t].bind(e):e[t]}});return r}})],warnOnSideEffects:"ignore",...e};var a;function c(e){return!0===e?"throw":!1===e?"ignore":e}s.warnOnEmptyWatch=c(s.warnOnEmptyWatch),s.onChangeError=c(s.onChangeError),s.onWatchError=c(s.onWatchError);const l=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakMap,g=new WeakMap,$=new WeakMap,y=new WeakMap,w=new WeakMap,b=new Set,v=new WeakSet,_=new WeakMap,k=s.monkeyPatches||[],A=new WeakMap,O=new WeakMap,E=new WeakMap,T=new WeakMap,x=[],S=new Map;let C=!1,N=!1,I=!1;const R=new Set;let j=!1;const L=(e,t,n=()=>new Map)=>(e.has(t)||e.set(t,n()),e.get(t)),D={get(e,i,a){if(i===f.SYM_TARGET)return e;if(i===f.SYM_OKPROXY_INSTANCE)return t;if("symbol"==typeof i)return Reflect.get(e,i,a);const c=Reflect.get(e,i,a);if("function"==typeof c)return c;let l=c;if("object"!=typeof l||null===l||P(l)||(l=M(l)),I){const e=(e=>{if(!r.has(e)){const t="#"+n++;r.set(e,t),o.set(t,e)}return r.get(e)})(a);R.add(e+":"+i.toString())}if(0===b.size)return l;if("ignore"!==s.warnOnSideEffects&&b.has(a)){const e=`⚠️ Side effect detected during dependency collection on "${i}"`;if("warn"===s.warnOnSideEffects)t.log.warn(e,a,(new Error).stack);else if("error"===s.warnOnSideEffects)throw new Error(e)}return F(a,i),l},set(e,t,n,r){if(N)return Reflect.set(e,t,n,r);const o=h.get(r);if(!o?.accessFilter?.(r,t))return Reflect.set(e,t,n,r);const i=e[t],s=p.get(n)||n,a=Reflect.set(e,t,s,r);return(i!==s||I)&&z(r,t,i,s,"set"),a},deleteProperty(e,t){if(N)return Reflect.deleteProperty(e,t);const n=l.get(e),r=h.get(n);if(!r?.accessFilter?.(n,t))return Reflect.deleteProperty(e,t);const o=e[t],i=Reflect.deleteProperty(e,t);return i&&z(n||e,t,o,void 0,"delete"),i}};function M(e,t={}){if("object"!=typeof e||null===e){if(!0!==t.allowNonObjects)throw new Error("Not an object");return e}if(P(e))return e;if(s.blacklistFilter?.(e))return e;if(s.whitelistFilter&&!s.whitelistFilter(e)){if(!k.some(t=>t?.filter?.(e)))return e}let n=l.get(e);if(!n){n=new Proxy(e,D);for(const t of k)if(t?.filter?.(e)){const r=t.handler(n,e);r&&(n=r)}l.set(e,n),p.set(n,e),h.set(n,{accessFilter:(e,t)=>!h.get(e).ignore.has(t),ignore:new Set([...t.ignore||[]]),meta:"function"==typeof t.meta?t.meta(e):t.meta??("function"==typeof s.meta?s.meta(e):s.meta)})}return n}function P(e){return p.has(e)}function F(e,t){for(const n of b)L(m,e,()=>new Set).add(n),L($,n,()=>new Map).set(e,L($.get(n),e,()=>new Set).add(t))}function z(e,t,n,r,o,i={}){if(N)return;const s={target:e,property:t,oldValue:n,newValue:r,type:o,...i},a=m.get(e);if(a)for(const n of a){const r=$.get(n);r?.get(e)?.has(t)&&L(S,s,()=>new Set).add(n)}const c=g.get(e);(c?.has(t)||c?.has(null)||S.has(s))&&(x.push(s),W())}function W(){C||(C=!0,"function"==typeof s.dispatchDelay?s.dispatchDelay(U):null===s.dispatchDelay?queueMicrotask(U):!1===s.dispatchDelay?U():C=setTimeout(U,s.dispatchDelay||0))}function B(){const e=[...x],t=[],n=new Map;for(const r of e){const e=g.get(r.target);if(e){const n=[...e.get(null)||[],...e.get(r.property)||[]];for(const e of n)t.push({handler:e,arg:r,queue:"observer"})}const o=S.get(r);if(o)for(const e of o){let t=n.get(e);t?t.push(r):(t=[r],n.set(e,t))}}for(const[e,r]of n.entries())t.push({handler:e,arg:r,queue:"watcher"});x.length=0,S.clear();for(const e of t)("watcher"!==e.queue||v.has(e.handler))&&(V(e.handler,e.arg),x.length&&B())}function U(){C&&clearTimeout(C),C=!1,B(),function(){if(G&&!x.length&&!C){const e=X;G=null,X=null,e()}}()}function V(e,n){try{return function(e){if(O.has(e))return O.get(e);const t=A.get(e)?.wrapHandle||s.wrapHandle;if(!t)return e;if(t)try{const n=t(e);return O.set(e,n),n}catch(e){throw new Error("PROXY: Bad Handle Wrapper")}}(e)(n)}catch(e){if("throw"===s.onChangeError)throw e;"warn"===s.onChangeError&&t.log.warn("Change handler error",e)}}function H(e,n,r=null){if(!n)throw new Error("Missing onChange handler in watch");const o=void 0===r?.immediate||r?.immediate;let i;const a=e=>(l=!0,n(e));T.set(n,a),A.has(a)||r&&A.set(a,r),v.add(a),b.add(a);let c=o?e():void 0,l=!1;if(b.delete(a),!$.has(a)){const e=r?.warnOnEmptyWatch||s.warnOnEmptyWatch;if("warn"===e)t.log.warn("Watch with no reactive access");else if("throw"===e)throw new Error("Empty watch")}return i={onChange:n,fn:e,stop:()=>(K(a),i),watch(){K(a),v.add(a),b.add(a);try{c=i.fn(),l=!1}catch(e){const n=i.options?.onWatchError||s.onWatchError||"throw";if("function"==typeof n)return n(e,i,t);if("warn"===n)t.log.warn(e);else if("throw"===n)throw e}return b.delete(a),L(y,a,()=>new Set).add(i),i},run:()=>n(i.value),get listeners(){return{size:$.get(a)?.size||0}},get targets(){return $.get(a)},get value(){return l&&(c=e(),l=!1),c},set value(e){c=e,l=!1},options:r},L(y,a,()=>new Set).add(i),i}function K(e){const t=T.get(e)||e;v.delete(t);const n=$.get(t);if(n){for(const e of n.keys())m.get(e)?.delete(t);$.delete(t)}y.delete(t),T.delete(e)}function q(e,n,r,o=null){if(!P(e))return void t.log.warn(`Trying to observe ${n} on a non proxy object`,e);o&&A.set(r,o);const i=L(g,e,()=>new Map);L(i,n,()=>new Set).add(r);const s=L(_,r,()=>new Map);L(s,e,()=>new Set).add(n);const a={stop(){i.get(n)?.delete(r),i.get(n)?.size||i.delete(n),i.size||g.delete(e),s.get(e)?.delete(n),s.get(e)?.size||s.delete(e),s.size||_.delete(r)},get listeners(){return{size:i.get(n)?.size||0}},get targets(){return s}};return L(w,r,()=>new Set).add(a),a}function Y(e){return"object"==typeof e?p.get(e):void 0}let G=null,X=null;return Object.assign(t,{proxy:M,getTarget:Y,getMeta:function(e){return"object"==typeof e?h.get(e)?.meta:void 0},isProxy:P,watch:H,computed:function(e){const t=M({value:void 0}),n=H(e,()=>{t.value=n.value});return n.run(),{watcher:n,stop:n.stop,ref:t,get value(){return t.value}}},memo:function(e){let t=E.get(e);return t||(t=this.computed(e),E.set(e,t)),t},unwatch:K,observe:q,unobserve:function(e){const t=w.get(e);if(t){for(const e of t)e.stop();w.delete(e)}},observeDeep:function(e,t){return{stop:function e(n,r=[]){if("object"!=typeof n||null===n)return{stop:()=>{}};const o=new Map,i=q(n,null,i=>{const{property:s,newValue:a,oldValue:c,type:l,mode:u}=i,d=[...r,s];if(t({path:d,value:a,raw:i}),o.has(s)&&(c!==a||null==a)){try{o.get(s).stop()}catch{}o.delete(s)}if("object"==typeof a&&null!==a){if(o.has(s))try{o.get(s).stop()}catch{}o.set(s,e(M(a),d))}if(Array.isArray(n)&&["push","unshift","splice","pop","shift"].includes(u)){for(const[e,t]of o.entries())try{t.stop()}catch{}o.clear();for(let t=0;t<n.length;t++){const i=n[t];"object"==typeof i&&null!==i&&o.set(t,e(M(i),[...r,t]))}}});if(Array.isArray(n))for(let t=0;t<n.length;t++){const i=n[t];"object"==typeof i&&null!==i&&o.set(t,e(M(i),[...r,t]))}else for(const t in n){const i=n[t];"object"==typeof i&&null!==i&&o.set(t,e(M(i),[...r,t]))}return{stop:()=>{i.stop();for(const e of o.values())try{e.stop()}catch{}o.clear()}}}(e).stop}},notify:function(e){I=!0,e(),I=!1;for(const e of R){const[t,n]=e.split(":"),r=o.get(t);if(r){const e=Reflect.get(Y(r),n);z(r,n,e,e,"touch")}}R.clear?.()},ignore:function(e){N=!0;try{const t=e();return t?.finally?t.finally(()=>{N=!1}):N=!1,t}catch(e){throw N=!1,e}},monkeyPatches:k,defaultWhitelistFilter:i,flush:async function(){return G||(G=new Promise(e=>{X=e}),x.length?W():X(),G)},emitChange:function(e,t,n,r,o={}){P(e)||(e=M(e)),z(e,t,n,r,o.type||"object",o)},trackDependency:F,frame:function(e){if(j)throw new Error("Cannot nest frame()");j=!0,U();try{e()}finally{U(),j=!1}}}),t}const p="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:e=>e();f.defaultHybridDelay=function(e,t=0){const n=performance.now();setTimeout(()=>{p(e)},Math.max(0,t-(performance.now()-n)))};const h=Symbol("proxy.target"),m=Symbol("proxy.instance");f.SYM_TARGET=h,f.SYM_OKPROXY_INSTANCE=m;const g=[];let $=null;function y(e){g.push(e),$||($=setTimeout(()=>{for(let e=0;e<g.length;e++)g[e]();g.splice(0),$=null}))}const w=[];let b=0,v=void 0!==globalThis.MessageChannel?new MessageChannel:null;function _(e){w.push(e),k()}function k(){if(0===b)b=1,e=()=>{if(v)return v.port2.postMessage(void 0),void(b=2);b=2,k()},(globalThis.requestAnimationFrame||globalThis.mozRequestAnimationFrame||globalThis.webkitRequestAnimationFrame||globalThis.msRequestAnimationFrame||(e=>{setTimeout(e,20)}))(e);else if(2===b){b=0;for(let e=0;e<w.length;e++)try{w[e]()}catch(e){}w.splice(0)}var e}v&&(v.port1.onmessage=k,v.port1.unref?.());var A=Object.freeze({__proto__:null,awaitFrame:function(){return new Promise(e=>{_(()=>{e()})})},awaitTick:function(){return new Promise(e=>{y(()=>{e()})})},nextFrame:_,nextTick:y});function O(e){const t=e.$cache.cmp;if(e.$__unmount__$||!e.$el)return;const n=t.templates||{},r=!!e.$attr.if,o=r?n.default:n.else;if(e.$cache.if===r)return;e.$cache.if=r;const i=e.$destroyChildren(!0),s=()=>{if(e.$__unmount__$||!e.$el)return;const t=[];for(const n of o?.content.childNodes||[]){const r=n.cloneNode(!0);e.$ok.dom.append(e.$el,r);const o=e.$childScope(r,{$context:e.$context});e.$ok.init(r),t.push(o.$lifecycle.mounted)}return t.length?Promise.all(t):void 0};return i?i.then(s):s()}var E={tag:"if",unwrap:!0,attr:{if:{required:!0,alias:[""],description:"condition",type:"binding"}},prepare(e){const t=e.$cache.cmp.templates||{},n=t.default?.content;if(!n)return void e.$log.warn([],"[ok] <if> component without content.");const r=Array.from(n.childNodes).find(e=>"ELSE"===e.tagName);if(!r)return;const o=r.getAttribute(":if")||r.getAttribute("if"),i=e.$el?.ownerDocument||globalThis.document,s=i.createElement("template");if(s.setAttribute("name","else"),o){const e=i.createElement("if");for(e.setAttribute(":",o);r.firstChild;)e.appendChild(r.firstChild);s.content.appendChild(e)}else for(;r.firstChild;)s.content.appendChild(r.firstChild);n.removeChild(r),t.else=s},mount:e=>O(e),mounted(e){e.$watch(()=>e.$attr.if,()=>{e.$__unmount__$||O(e)})}},T={tag:"fragment",unwrap:!0,attr:{context:{type:Object,default:null},nodes:{default:()=>[]},noInit:{type:Boolean,default:!1,empty:!0}},mount(e){const t=e.$cache.fragment={updating:!1,dirty:!1,getNodes(){const t=e.$attr.nodes;return Array.isArray(t)?t:[]},update(){if(t.updating)return void(t.dirty=!0);if(t.updating=!0,t.dirty=!1,e.$__unmount__$||!e.$el)return void(t.updating=!1);if(e.$destroyChildren(!0),!e.$el)return void(t.updating=!1);const n=t.getNodes(),r=e.$ok.dom;for(const t of n)if(t.$fragment=e,!t.$scope&&!e.$attr.noInit){let n={$parent:e.$parent,$context:e.$attr.context??e.$parent.$context,$cmp:e.$cmp};e.$attr.scope&&(n=e.$attr.scope(n)),t.$scope=e.$ok.scope(t,n)}if(r.append(e.$el,...n),!e.$attr.noInit)for(const e of n)e.$scope.$init();t.updating=!1,t.dirty&&t.update()}};t.update()},init(e){const t=e.$cache.fragment;e.$watch(()=>e.$attr.nodes.length,()=>t.update())}};function x(e,t,n,r,o){const i=e.$cache.cmp?.templates?.default,s=(e.$el?.ownerDocument||globalThis.document).createElement("div");s.append(...i.content.cloneNode(!0).childNodes);const a=e.$ok.proxy({index:n,key:r,item:o}),c=s.$scope=e.$ok.scope(s,{$parent:e,$context:e.$context,$cache:{eachItem:a}}),l={};"let:items"in e.$attr&&(l[e.$attr["let:items"]]={get:()=>e.$attr.of}),"let:item"in e.$attr&&(l[e.$attr["let:item"]]={get:()=>a.item}),"let:key"in e.$attr&&(l[e.$attr["let:key"]]={get:()=>a.key}),"let:index"in e.$attr&&(l[e.$attr["let:index"]]={get:()=>a.index});for(const t in e.$attr)if(t.startsWith("let:")){const n=t.substring(4);if("items"===n||"item"===n||"key"===n||"index"===n)continue;const r=e.$attr[t];l[r&&!0!==r?r:n]={get:()=>a.item}}return c.$setInnerVars(l),c}function S(e,t,n,r){const o=r.$el,i=t.keyToFragment.get(String(n-1));i?e.$ok.dom.insertAfter(e.$el,o,i.$el):e.$ok.dom.prepend(e.$el,o),e.$ok.dom.unwrap(o)}function C(e,t,n,r,...o){const i=[],s=t.keyToFragment.size;return o.length,n=Math.max(0,Math.min(n,s)),Number.isInteger(r)||(r=s),r&&i.push(function(e,t,n,r=1){const o=t.keyToFragment,i=[],s=o.size;for(let e=0;e<r;e++){const t=String(n+e),r=o.get(t);r&&(o.delete(t),i.push(r.$destroy()))}for(let e=n+r;e<=s;e++){const t=String(e),n=e-r,i=String(n),s=o.get(t);s&&(s.$cache.eachItem.index=n,s.$cache.eachItem.key=i,o.set(i,s),o.delete(t))}return Promise.all(i)}(0,t,n,r)),o.length&&i.push(function(e,t,n,...r){if(!r.length)return;const o=[];for(let e=t.keyToFragment.size-1;e>=n;e--){const n=String(e),o=e+r.length,i=String(o),s=t.keyToFragment.get(n);s.$cache.eachItem.index=o,s.$cache.eachItem.key=i,t.keyToFragment.set(i,s)}for(let i=0;i<r.length;i++){const s=n+i,a=String(s),c=x(e,0,s,a,r[i]);t.keyToFragment.set(a,c),S(e,t,s,c),o.push(c.$scope.$init())}return Promise.all(o)}(e,t,n,...o)),Promise.all(i)}function N(e,t,n,r,o){const i=x(e,0,n,r,o);return t.keyToFragment.set(r,i),S(e,t,n,i),i.$scope.$init()}function I(e,t){const n=[...t.keyToFragment.values().map(e=>e.$destroy())];if(t.keyToFragment.clear(),n.length)return Promise.all(n)}function R(e,t){if(e.$__unmount__$)return;!function(e){const t=e.$cache.each;t.srcHandle||(t.srcHandle=e.$watch(()=>e.$attr.of,()=>R(e,t))),t.changeHandle?.stop(),e.$ok.proxyInstance.isProxy(e.$attr.of)&&(t.changeHandle=e.$observe(e.$attr.of,null,async n=>{if(e.$__unmount__$)return;const r=n.target;if(Array.isArray(r))!function(e,t,n){n.property;const r=j[n.mode];if(r)return r(e,t,n);if("length"===n.property){const r=n.oldValue-n.newValue;r>0&&C(e,t,n.newValue,r)}}(e,t,n);else if(r instanceof Set){if("clear"===n.mode)await I(0,t);else if("add"===n.mode)await N(e,t,t.keyToFragment.size,String(t.keyToFragment.size),n.args[0]);else if("delete"===n.mode)for(const[e,r]of t.keyToFragment.entries())if(r.$cache.eachItem.item===n.args[0]){await r.$destroy(),t.keyToFragment.delete(e);break}}else if(r instanceof Map){if("clear"===n.mode)await I(0,t);else if("set"===n.mode){const r=t.keyToFragment.get(n.property);r?r.$cache.eachItem.item=n.newValue:await N(e,t,t.keyToFragment.size,n.property,n.newValue)}else if("delete"===n.mode){const e=t.keyToFragment.get(n.property);e&&(await e.$destroy(),t.keyToFragment.delete(n.property))}}else if("object"==typeof r){const r=n.property,o=t.keyToFragment.get(r);"delete"===n.type?o&&(await o.$destroy(),t.keyToFragment.delete(r)):o?o.$cache.eachItem.item=n.newValue:await N(e,t,t.keyToFragment.size,r,n.newValue)}else await R(e,t)}))}(e);const n=e.$attr.of;let r,o=Array.isArray(n);if(!1!==e.$attr.reuse&&o)return function(e,t,n,r){const o=t.keyToFragment,i=e=>r?String(e):n[e][0],s=e=>r?n[e]:n[e][1],a=[];for(let r=0;r<n.length;r++){const n=i(r),c=s(r),l=o.get(n);if(l)l.$cache.eachItem.item=c;else{const o=N(e,t,r,n,c);o&&a.push(o)}}let c=n.length,l=i(c);for(;o.has(l);){const e=o.get(l).$scope.$destroy();e&&a.push(e),o.delete(l),c++,l=i(c)}if(a.length)return Promise.all(a)}(e,t,n,o);const i=I(0,t),s=()=>{o?r=n:"function"==typeof n?.[Symbol.iterator]?(r=n instanceof Map?[...n.entries()]:[...n],o=!(n instanceof Map),r.length):r="object"==typeof n?Object.entries(n):[];const i=[];for(let n=0;n<r.length;n++){const s=o?String(n):r[n][0],a=o?r[n]:r[n][1],c=N(e,t,n,s,a);c&&i.push(c)}if(i.length)return Promise.all(i)};return i?i.then(s):s()}const j={push:(e,t,n)=>C(e,t,n.oldValue,0,...n.args),unshift:(e,t,n)=>C(e,t,0,0,...n.args),splice:(e,t,n)=>C(e,t,...n.args),pop:(e,t,n)=>C(e,t,n.oldValue-1,1),shift:(e,t)=>C(e,t,0,1)};var L={tag:"each",alias:["for","foreach"],unwrap:!0,initOwnChildren:!0,destroyOwnChildren:!0,attr:{of:{required:!0,description:"proxy of Array, Map, Set or Object",type:"binding",alias:[""],validate:function(e,t){if(!function(e){return null!=e&&("function"==typeof e[Symbol.iterator]||"object"==typeof e)}(t))throw e.$error?.("EACH_INVALID_ITEMS","The :of= attribute must be iterable (Array, Set, Map, or Object)",{value:t});e.$ok,Array.isArray(t)&&t.length}},"let:items":{type:"static",empty:"items"},"let:item":{type:"static",empty:"item"},"let:key":{type:"static",empty:"key"},"let:index":{type:"static",empty:"index"}},prepare(e){"let:items"in e.$attr&&e.$setInnerVars({[e.$attr["let:items"]]:{get:()=>e.$attr.of}});for(const t in e.$attr)if(t.startsWith("let:")){const n=t.substring(4);if("items"===n||"item"===n||"key"===n||"index"===n)continue;""!==e.$attr[t]&&!0!==e.$attr[t]||(e.$attr[t]=n)}},mounted(e){const t=e.$cache.each={keyToFragment:new Map};e.$api={getByKey:e=>t.keyToFragment.get(e),getAllKeys:()=>Array.from(t.keyToFragment.keys()),reset:async()=>R(e,t)},R(e,e.$cache.each)},async unmount(e){const t=e.$cache.each;if(!t)return;const n=[...t.keyToFragment.values()];t.keyToFragment.clear(),n.length&&await Promise.all(n.map(e=>e.$destroy()))}};function D(e){return e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function M(e){return null!=e&&"number"==typeof e.nodeType}function P(e,t){const n=t.split(".");for(let t=0;t<n.length-1;t++)if(void 0===(e=e[n[t]]))return{target:null,prop:void 0};const r=n.at(-1);return{target:e,prop:r,value:e?.[r]}}function F(e,t){if("string"!=typeof t)return!1;const{target:n,prop:r}=P(e,t);if(!n)return!1;const o=Object.getOwnPropertyDescriptor(n,r);return!o||o.writable||o.set}var z=Object.freeze({__proto__:null,attributeNameToPropName:D,escapeHTML:function(e){return String(e).replace(/[&<>"']/g,e=>({"&":"&","<":"<",">":">",'"':""","'":"'"}[e]))||""},isDOM:M,isSimpleProperty:F,mergeClass:function(e,t){const n=e=>Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/).filter(Boolean):e&&"object"==typeof e?Object.entries(e).reduce((e,[t,n])=>(n?e.push(t):e=e.filter(e=>e!==t),e),[]):[],r=[...n(e),...n(t)];return[...new Set(r)]},mergeStyle:function(e,t){const n=e=>{const t={};return"string"==typeof e?e.split(";").forEach(e=>{const[n,r]=e.split(":");n&&r&&(t[n.trim()]=r.trim())}):e&&"object"==typeof e&&Object.assign(t,e),t};return{...n(e),...n(t)}},parseTimeToMs:function(e){return e.endsWith("ms")?parseFloat(e):e.endsWith("s")?1e3*parseFloat(e):parseFloat(e)||5e3},propNameToAttributeName:function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()},reach:P,trim:function(e){return e.replace(/(\r\n|\n|\r)/gm,"\\\n").replace(/"/gm,'\\"')}}),W={tag:"slot",unwrap:!0,mount(e){const t=e.$attr.cmpId?e.$ok.getScopeById(e.$attr.cmpId):e.$cmp,n=t.$cache.cmp,r=e.$attr.name||"default";if(e.$attr.template&&!(e.$attr.template instanceof HTMLTemplateElement))throw e.$error("SLOT_INVALID_TEMPLATE",null,{name:r,cmpTag:t.$cache.cmp.def.tag});const o=e.$attr.template||n.templates[r],i=e.$cache.cmp.templates.default,s=o||i,a=!o;let c=e.$attr.scope||"auto";"auto"===c&&(c=a?"inner":"outer");const l="inner"===c?t:t.$parent,u="inner"===c?e.$context:t.$context||{},d="inner"===c?t:t.$cmp,f={},p=e.$cache.bind;for(const n of Object.values(p)){if(!n.name.startsWith("var:"))continue;const r=n.propName.slice(4),o="let:"+r;let i=t.$attr[o];if(void 0===i&&s?.getAttribute&&(i=s.getAttribute(o)||s.getAttribute(e.$ok.util.propNameToAttributeName(o))),null==i)continue;const a=i||r;if("bind"===n.type)f[a]={get:()=>e.$attr[n.propName],enumerable:!0};else if("static"===n.type){const e=n.value||r;f[a]={get:()=>P(t.$innerContext,e).value,set(n){const r=P(t.$innerContext,e);r?.target&&(r.target[r.prop]=n)},enumerable:!0}}}const h=e.$attr.vars||("outer"===c?t.$vars:e.$vars),m=Object.defineProperties({},{...Object.getOwnPropertyDescriptors(h),...f});if(s&&s.content.childNodes.length){const t=Array.from(s.content.cloneNode(!0).childNodes);e.$ok.dom.append(e.$el,...t.map(t=>(t.$scope=e.$ok.scope(t,{$parent:l,$context:u,$cmp:d,$slot:e,$vars:m}),t)))}}};function B(e,t,n){const r={originalName:e,originalValue:t,modifiers:{},type:"static",name:e,cmd:t,propName:D(e)};if(e.startsWith("..."))return r.type="spread",r.name=e.slice(3),r.propName=D(r.name),r.cmd=r.propName,[r];if(e.startsWith(":")?(r.type="bind",e=e.slice(1)):e.startsWith("!")?(r.type="twoway",e=e.slice(1)):e.startsWith("@")?(r.type="event",e=e.slice(1)):e.startsWith("ok:on:")&&(r.type="event",e=e.slice(6)),!e.startsWith("var")){const t=e.split(":");e=t[0];for(let e=1;e<t.length;e++){const n=t[e].split(".");r.modifiers[n[0]]=!(n.length>1)||n.slice(1)}}if("event"===r.type)r.name=e,r.propName=D(r.name),r.cmd=t||r.propName;else if("static"!==r.type&&(r.name=e,r.propName=D(r.name),r.cmd=t||r.propName,"class"!==r.name&&"style"!==r.name||(r.initialValue=n.getAttribute(r.name)||""),"twoway"===r.type)){r.propName="checkbox"===n.type?"checked":"value",r.name="checkbox"===n.type?"checked":"value";const e={checkbox:"$el.checked",number:"Number($el.value)",range:"Number($el.value)"},t=`(() => {\n const t = $el.type;\n return ${Object.entries(e).map(([e,t])=>`t === "${e}" ? ${t}`).join(" : ")} : $el.value;\n })()`;return[r,{...r,type:"event",name:"input",cmd:`()=>${r.cmd} = ${t}`}]}return[r]}function U(e,t,n=e.$el,r=e.$attr){"event"===t.type?V(e,t,n):function(e,t,n,r){if(r[t.propName]=t.value,"class"===t.name){const r=e.$ok.util.mergeClass(t.initialValue,t.value);n.setAttribute("class",r.join(" "))}else if("style"===t.name){const r=e.$ok.util.mergeStyle(t.initialValue,t.value);for(let[e,t]of Object.entries(r))e.startsWith("--")?n.style.setProperty(e,t):n.style[e]=t}else{if("function"==typeof t.value)return void(t.name.startsWith("on")&&(n[t.name]=t.value));const e=function(e,t){let n=e;for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}return null}(n,t.propName);if(t.propName in n&&e&&(!0===e.writable||"function"==typeof e.set))return n[t.propName]=t.value,void("boolean"==typeof n[t.propName]?t.value?n.setAttribute(t.name,""):n.removeAttribute(t.name):null===t.value||void 0===t.value?n.removeAttribute(t.name):n.setAttribute(t.name,t.value));t.name&&"object"!=typeof t.value&&n.setAttribute(t.name,t.value)}}(e,t,n,r)}function V(e,t,n){t.listener&&n.removeEventListener(t.name,t.listener),t.listener=(...r)=>{if(t.modifiers.debounce){if(!t._debounced)return clearTimeout(t._debounce),void(t._debounce=setTimeout(()=>{t._debounced=!0,t.listener(...r)},t._debounceDelay));t._debounced=!1}const o=r[0];if(e.$event=o,t.name.startsWith("key")&&!function(e,t){return!t.key||(Array.isArray(t.key)?t.key:[t.key]).some(t=>function(e,t){const n=t.toLowerCase().split("+"),r=n.includes("ctrl"),o=n.includes("shift"),i=n.includes("alt"),s=n.includes("meta"),a=n.find(e=>!["ctrl","shift","alt","meta"].includes(e));return!!e.ctrlKey===r&&!!e.shiftKey===o&&!!e.altKey===i&&!!e.metaKey===s&&e.key.toLowerCase()===(a||"").toLowerCase()}(e,t))}(o,t.modifiers))return;const i=t.fn(e);let s;return"function"==typeof i&&(s=i.call(e.$context,...r)),o instanceof Event&&(t.modifiers.default||t.modifiers.bubble||o.stopPropagation(),t.modifiers.default||t.modifiers.allow||o.preventDefault()),delete e.$event,t.modifiers.once&&n.removeEventListener(t.name,t.listener),s},e.$ext("unmount",()=>n.removeEventListener(t.name,t.listener)),n.addEventListener(t.name,t.listener)}function H(e,t,n=e.$el,r=e.$attr,o=null){if(o||(o=B(t,n.getAttribute(t),n)[0]),"spread"===o.type){let i=e.$fn(o.cmd);"function"==typeof i&&(i=i.call(e.$context,e));const s=[];for(let a of Object.keys(i)){const i=B(":"+a,`${o.cmd}['${a}']`,n);for(let o of i)s.push(...H(e,t,n,r,o))}return s}if("static"===o.type)return r[o.propName]=o.originalValue,[o];if("twoway"===o.type&&!F(e.$context,o.cmd))throw new Error(`Two-way binding failed for "${o.name}" because "${o.cmd}" is not writable.`);return o.fn=e.$fn(o.cmd),o.modifiers.debounce&&(o._debounceDelay=parseInt(o.modifiers.debounce)||0),o.watcher=e.$watch(()=>{if(o.fn=e.$fn(o.cmd,{debug:o.modifiers.debug,log:o.modifiers.log}),"event"!==o.type){let t=o.fn(e);return o.transform&&(t=o.transform(e,t)),o.value=t,t}},()=>{o.watcher&&(o.watcher.watch(),U(e,o,n,r))},{warnOnEmptyWatch:"off"}),U(e,o,n,r),[o]}var K={hasBindingsOrEvents:function(e){for(let t=0;t<e.attributes.length;t++){const n=e.attributes[t].name.charCodeAt(0);if(58===n||64===n)return!0}return!1},bind:function(e,t=e.$el,n=e.$attr){const r={events:{},bind:{}};for(const{name:o,value:i}of[...t.attributes]){const s=B(o,i,t);for(const i of s){const s=H(e,o,t,n,i);for(const n of s){const o="event"===n.type?"events":"bind",i=r[o][n.propName];if(i){if("events"===o)throw e.$error("DUPLICATE_EVENT",null,{name:n.name,scope:e});"static"!==n.type&&"static"!==i.type&&i.watcher?.stop?.()}"static"!==n.type&&e.$ok.config.bind.remove_bind_attributes&&t.removeAttribute(n.originalName),r[o][n.propName]=n}}}return r},classifyAttr:B,bindAttribute:H,handleEvent:V},q={tag:"switch",unwrap:!0,attr:{"let:value":{type:"static",empty:"value"},value:{type:"bind",alias:[""]}},prepare(e){const t=Array.from(e.$cache.cmp.templates.default.content.childNodes),n=t.find(e=>"DEFAULT"===e.tagName),r=t.filter(e=>"CASE"===e.tagName),o=e.$cache.switch??={matchIndex:null,cases:[],default:n?Array.from(n.childNodes):[]};for(let t of r){const n=e.$ok.proxy({}),r=t.getAttribute(":value")?":value":"value";if(!t.hasAttribute(r))throw e.$error("NO_VALUE",new Error("No value specified for case"),{scope:e});const i=K.bindAttribute(e,r,t,n);o.cases.push({attr:n,bindings:i,nodes:Array.from(t.childNodes)}),t.remove()}n?.remove(),"let:value"in e.$attr&&e.$setInnerVars({[e.$attr["let:value"]]:{get:()=>e.$innerContext.selectedValue}})},context:e=>({nodes:[],selectedCase:null,get selectedValue(){return this.selectedCase?this.selectedCase.attr.value:e.$attr.value}}),mount(e){const t=e.$cache.switch;e.$watch(()=>[e.$attr.value,...t.cases.map(e=>e.attr.value)],()=>{const n=e.$attr.value,r=t.cases.findIndex(e=>void 0===n?!!e.attr.value:e.attr.value===n);if(r===t.matchIndex)return;this.selectedCase=t.cases[r],t.matchIndex=r;const o=(this.selectedCase?this.selectedCase.nodes:t.default)||[];this.nodes=o.map(t=>{const n=t.cloneNode(!0);return n.$scope=e.$ok.scope(n,{$parent:e,$context:e.$context}),n})}).run()},template:"<fragment :nodes/>"},Y={tag:"context",unwrap:!0,context(e){const t=""in e.$attr,n=t?e.$attr[""]??{}:Object.create(e.$context),r={};for(const o in e.$attr){if(""===o)continue;const i=e.$cache.bind[o];F(n,i.cmd)?Object.defineProperty(r,i.propName,{get:()=>e.$attr[o],set:r=>{const o=P(t?n:e.$context,i.cmd);o.target[o.prop]=r},enumerable:!0,configurable:!0}):Object.defineProperty(r,i.propName,{get:()=>e.$attr[o],enumerable:!0,configurable:!0})}return new Proxy(r,{get:(e,t,r)=>t in e?Reflect.get(e,t,r):n?.[t],set:(e,t,r,o)=>Object.getOwnPropertyDescriptor(e,t)?.set?Reflect.set(e,t,r,o):n&&t in n?(n[t]=r,!0):(e[t]=r,!0),has:(e,t)=>t in e||n&&t in n,ownKeys(e){const t=new Set([...Reflect.ownKeys(n||{}),...Reflect.ownKeys(e)]);return Array.from(t)},getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e,t)||Reflect.getOwnPropertyDescriptor(n||{},t)})},template:'<slot scope="inner"/>'},G={tag:"var",unwrap:!0,prepare(e){const t={};for(const n in e.$attr)t[n]={get:()=>e.$attr[n]};e.$setInnerVars(t,e.$vars)},template:'<slot :vars="$vars"/>'},X={tag:"component",unwrap:!0,context:e=>({get tag(){return e.$attr.tag},get import(){return e.$attr.import},nodes:[],async update(){try{let t;if(e.$attr.import){const n={import:e.$attr.import};void 0!==e.$attr.tag&&(n.tag=e.$attr.tag);const r=(e.$parent?.$cache.cmp||e.$cmp?.$cache.cmp)?.def.url;t=e.$ok.componentRegistry.register(n,{parentId:e.$cmp?.$cache.cmp.def.id,override:!0,base:e.$ok.componentRegistry.resolveImportPath("./",r)})}else if(t=e.$ok.componentRegistry.getRegistration(e.$attr.tag,e.$cmp),!t)throw e.$error("COMPONENT_TAG_NOT_FOUND",null,{tag:e.$attr.tag});await e.$ok.componentRegistry.activate(t,e);const n=t.ready,r=e.$el?.ownerDocument||globalThis.document,o=r.createElement("crash-boundary"),i=r.createElement(n.tag);i.$scope=e.$ok.scope(i,{$parent:e,$context:e.$context,$attr:e.$attr.attr??Object.fromEntries(Object.entries(e.$attr).filter(([e])=>!["tag","import","attr"].includes(e))),$cmp:e});for(const t of Object.values(e.$cache.events))i.setAttribute(t.originalName,`$cmp.$cache.events['${t.propName}'].listener`);for(const t of Object.values(e.$cache.cmp.templates))i.append(t);for(let[t,n]of Object.entries(e.$cache.bind))"import"!==t&&"tag"!==t&&("static"===n.type?i.setAttribute(n.originalName,n.originalValue):i.setAttribute(n.originalName,`$cmp.$attr['${t}']`));i.$scope.$setInnerContext(e.$context),o.append(i),this.nodes=[o]}catch(t){const n=e.$error("COMPONENT_LOAD_FAILED",t,{tag:e.$attr.tag,import:e.$attr.import,message:`Failed to load component <${e.$attr.tag||e.$attr.import}>`}),r=(e.$el?.ownerDocument||globalThis.document).createElement("crash-boundary-default");r.$scope=e.$ok.scope(r,{$attr:{error:n,retry:()=>{this.update()}}}),this.nodes=[r],e.$log.error([],n),e.$dispatch("fail",t)}}}),template:"<fragment :nodes/>",async mount(e){e.$resolveCmp=e.$cmp,await this.update()},mounted(e){e.$watch(()=>[this.tag,this.import],async()=>{await this.update()})}},Z={tag:"crash-boundary",unwrap:!0,initOwnChildren:!0,prepare(e){e.$setInnerVars({$errorBoundary:{get:()=>e.$innerContext}})},context:e=>({error:null,async crash(t){this.error=t,await e.$destroyChildren(!0);const n=e.$attr.component||e.$ok.config.crash.boundary_component||"crash-boundary-default",r=e.$el?.ownerDocument||globalThis.document,o=r.createElement(n);o.setAttribute(":error","error"),o.setAttribute(":retry","retry");const i=r.createElement("slot");i.setAttribute("name","error"),i.setAttribute(":var:error","error"),i.setAttribute(":var:retry","()=>retry()"),i.appendChild(o),i.$scope=e.$ok.scope(i,{$parent:e,$cmp:e}),e.$ok.dom.append(e.$el,i),await e.$ok.init(i),e.$log.error(["CRASH_BOUNDARY"],t),e.$el.dispatchEvent(new CustomEvent("crash",{detail:this}))},async retry(){await e.$destroyChildren(!0),this.error=null;const t=(e.$el?.ownerDocument||globalThis.document).createElement("slot");t.$scope=e.$ok.scope(t,{$parent:e,$cmp:e}),e.$ok.dom.append(e.$el,t),e.$ok.init(t),await t.$scope.$lifecycle.mountedOrAborted}}),async mount(){await this.retry()},mounted(e){e.$attr.watch&&e.$watch(()=>e.$attr.watch,()=>this.error&&this.retry())}},J={tag:"crash-boundary-default",attr:{error:{type:Object,default:null}},context:e=>({get errorMessage(){return e.$attr.error?.rootCauseMessage||e.$attr.error?.message||"Something went wrong"}}),template:'<div><if :="$props.retry"><button class="retry" @click="$props.retry()">↻</button></if><strong>{{ $props.error?.code }}</strong><pre>{{ errorMessage }}</pre></div>',style:"[tag]{position:relative;display:flex;flex-direction:column;flex:1;padding:1em;gap:.5em;background:#2b0000;color:#ffcfcf;border:1px solid #ff4c4c;border-radius:6px;font-family:monospace}[tag] pre{margin:0;white-space:pre-wrap}[tag] .retry{position:absolute;top:.4em;right:.4em;background:0 0;border:0;color:#ff9c9c;font-size:1.2em;cursor:pointer;line-height:1;padding:.2em;transition:color .2s}[tag] .retry:hover{color:#fff}"};function Q(e){let t=e,n=null;for(;t;)t.ok&&(n=t.ok),t=t.cause;return n}var ee={tag:"crash-service",register(e){"throw"!==e.config.crash.mode&&"function"==typeof globalThis.addEventListener&&(globalThis.addEventListener("unhandledrejection",e=>{const t=Q(e.reason);t&&(t.shared.crash.crash(e.reason),e.preventDefault())}),globalThis.addEventListener("error",e=>{const t=Q(e.error);t?.shared.crash.crash(e.error)})),e.shared.crash=e.proxyInstance.proxy({errors:[],get events(){return this._events=this._events??e.OK.Emitter.bind(this),this._events},get error(){return this.errors.length,this.errors[0]},async close(t){const n=this.errors.indexOf(t);n>-1&&(this.errors.splice(n,1),this.events.emit("close",t)),this.errors.length||await e.shared.singleton.toggle("crash-service",!1)},async crash(t){const n=function(e){let t=e,n=null;for(;t;){const e=t?.scope;e?.$vars?.$errorBoundary&&(n=e?.$vars.$errorBoundary),t=t.cause}return n}(t);if(n)return n.crash(t);if("throw"===e.config.crash.mode)throw t;t._ok_handled||(t._ok_handled=!0,e.emit("error",t),this.events.emit("crash",t),this.errors.push(t),"silent"!==e.config.crash.mode&&await e.shared.singleton.toggle("crash-service",!0))}})},context:e=>({get error(){return e.$ok.shared.crash.error},async close(){await e.$ok.shared.crash.close(this.error)}}),template:'<if :="error"><component :tag="$ok.config.crash.component || \'crash-fatal\'" :error @close/></if>',style:"[tag]{z-index:1000;position:absolute;left:0;top:0;right:0;bottom:0}"},te={tag:"singleton-service",register(e){e.shared.singleton=e.proxyInstance.proxy({singletons:{},async toggle(t,n=null,{container:r,registration:o}={}){r??=e.config.singleton.container??e.config.body;const i=this.singletons[t]??={el:null},s=n??!i.el;if(s&&!i.el){const n=e.config.document.createElement(t);if(r.appendChild(n),i.el=n,o){const t=o.ready??o.raw;n.$scope=e.scope(n),n.$scope.$resolveDef=t}await e.init(n)}else!s&&i.el&&(delete this.singletons[t],await e.destroy(i.el,!0),i.el=null);return i.el}})}},ne={tag:"repeat",unwrap:!0,async parse(e){const t=(e.$el?.ownerDocument||globalThis.document).createElement("BODY"===e.$parent.$el.tagName?"div":e.$parent.$el.tagName??"div");t.setAttribute("as","each");for(let n of e.$el.attributes)["as"].includes(n.name)||([":of",":"].includes(n.name)||n.name.startsWith("let:"))&&t.setAttribute(n.name,n.value);"REPEAT"===e.$el.tagName?t.append(...e.$cache.cmp.templates.default.content.cloneNode(!0).childNodes):(t.innerHTML=e.$el.outerHTML,t.childNodes[0].removeAttribute("as"),t.childNodes[0].removeAttribute("let:item"),t.childNodes[0].removeAttribute("let:key"),t.childNodes[0].removeAttribute(":of"),t.childNodes[0].append(...e.$cache.cmp.templates.default.content.cloneNode(!0).childNodes)),e.$ok.dom.insertAfter(e.$parent.$el,t,e.$el);const n=e.$ok.scope(t,{$parent:e.$parent});e.$ok.init(t),await n.$lifecycle.mounted,await e.$destroy(!0)},mounted(){}},re={ifCmp:E,fragment:T,each:L,slot:W,switchCmp:q,context:Y,varCmp:G,component:X,repeat:ne,crashService:ee,crashBoundary:Z,crashBoundaryDefault:J,crashFatal:{tag:"crash-fatal",context:e=>({get error(){return e.$attr.error||e.$ok.shared.crash.error||{message:"We're sorry"}}}),template:'<div style="display:flex;justify-content:center;align-items:center;height:100%;width:100%;background:#111;color:#fff;flex-direction:column"><svg width="100" height="100" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10" stroke="#f44336" stroke-width="2"/><line x1="12" y1="7" x2="12" y2="13" stroke="#f44336" stroke-width="2"/><circle cx="12" cy="17" r="1.5" fill="#f44336"/></svg><h1>ok... Something went wrong</h1><p>{{error.message}}</p></div>'},singletonService:te,shadow:{tag:"shadow",unwrap:!0,async mount(e){const t=Object.create(e.$ok),n=(e.$el.ownerDocument||globalThis.document).createElement("div");n.setAttribute("data-ok-shadow-container","");const r=n.attachShadow({mode:"open"});t.config={...e.$ok.config,document:r,head:r,body:r},t.componentRegistry=Object.create(e.$ok.componentRegistry),t.componentRegistry.ok=t;const o=t.createNodes(e.$cache.cmp.templates.default.innerHTML);r.append(...o),e.$el.$shadow=r,e.$ok.dom.append(e.$el,n);const i=[];for(const n of o)n.$scope=t.scope(n,{$parent:null,$context:e.$context,$vars:e.$vars}),n.$scope.$init(),i.push(n.$scope.$lifecycle.mounted);await Promise.all(i)},unmount(e){e.$el.$shadow=null}},ignore:{tag:"ignore",unwrap:!0,mount(e){e.$ignoreChildren()}}};function oe(e,t){return(e.ownerDocument||globalThis.document).createTextNode("")}function ie(e,t){for(const n of e){if(n.$owner&&n.$owner!==t){const e=n.$owner.$handle;if(e){const t=e.nodes.indexOf(n);-1!==t&&e.splice(t,1)}}n.$owner=t}}function se({marker:e=oe}={}){const t={unwrap(n){if(n.$handle)throw new Error("Already unwrapped");const r=function(e,t,n){const r={el:e,nodes:[],placeholder:null,isDestroyed:!1,get start(){return this.nodes[0]||this.placeholder},get end(){return this.nodes[this.nodes.length-1]||this.placeholder},splice(e,r,...o){if(this.isDestroyed)throw new Error("Cannot splice into destroyed handle");if(0===o.length&&0===r)return[];const i=this.nodes[e];let s=this.end.$handle?n.lastChild(this.end):this.end,a=s.parentNode;i?(s=i.$handle?n.firstChild(i):i,s.$handle&&(s=n.firstChild(s))):s=s.nextSibling;const c=this.nodes.splice(e,r,...o);if(ie(o,this.el),0===this.nodes.length)this.placeholder||(this.placeholder=t(this.el,"placeholder"),this.placeholder.$ignore=!0,this.placeholder.$owner=this.el,a&&a.insertBefore(this.placeholder,s));else{const e=s||this.placeholder?.nextSibling||null;for(const t of o)if(t.$handle){t.$owner=this.el;for(const n of t.$handle.nodes)n.$owner=t,a?.insertBefore(n,e)}else a?.insertBefore(t,e);this.placeholder?.parentNode&&(this.placeholder.remove(),delete this.placeholder.$owner,this.placeholder=null)}for(const e of c){if(e.$handle)for(const t of n.range(e))t.parentNode&&t.remove();else e.parentNode&&e.remove();e.$owner=null}return c},destroy(){this.isDestroyed=!0,this.placeholder?.parentNode&&this.placeholder.remove(),delete this.placeholder?.$owner}};return e.$handle=r,r}(n,e,t),o=new Set;let i=n.firstChild;for(;i;){if(i.$owner&&i.$owner!==n){let e=i.$owner;for(;e?.$owner;)e=e.$owner;o.add(e),i=e.$handle?.end.nextSibling;continue}i.$handle?(o.add(i),i=i.$handle.end?.nextSibling):(o.add(i),i=i.nextSibling)}return 0===o.size?(r.placeholder=e(n,"placeholder"),r.placeholder.$ignore=!0,r.placeholder.$owner=n,n.replaceWith(r.placeholder),r):(ie(o,n),r.nodes.push(...o),n.replaceWith(...t.range(n)),r)},restore(e){if(e.isDestroyed)throw new Error("Cannot restore a destroyed handle");if(e.el.isConnected)throw new Error("Cannot restore: host element is already in the DOM");const t=e.start;e.el.$handle=void 0;for(const t of e.nodes)delete t.$owner;return t.replaceWith(e.el),e.el.append(...e.nodes),e.placeholder?.parentNode&&e.placeholder.remove(),e.el},remove(e){if(!e)return;const n=e.$owner;if(n?.$handle){const t=n.$handle,r=t.nodes.indexOf(e);-1!==r&&t.splice(r,1)}if(e.$handle){for(const n of[...this.range(e)])t.remove(n);e.$handle.placeholder?.parentNode&&(e.$handle.placeholder.remove(),e.$handle.placeholder.$owner=null)}e.isConnected&&e.remove(),e.$owner=null,e.$handle=null},insertBefore(e,n,r){const o=e.$handle,i=r?.$handle?.start||r;if(o){const e=o.nodes.indexOf(r),t=-1===e?o.nodes.length:e;return void o.splice(t,0,n)}if(n.$handle){n.$owner=e;for(const r of t.range(n))r.$owner=n,e.insertBefore(r,i)}else e.insertBefore(n,i)},insertAfter(e,n,r){const o=e.$handle;let i=r?.$handle?.end||r;if(o)o.splice(o.nodes.indexOf(r)+1,0,n);else if(n.$handle){n.$owner=e;for(const r of t.range(n))r.$owner=n,e.insertBefore(r,i?.nextSibling),i=r}else e.insertBefore(n,i?.nextSibling)},prepend(e,...n){const r=e.$handle,o=r?r.el:e,i=r?r.nodes[0]:e.firstChild;for(const e of n)t.insertBefore(o,e,i)},replace(e,...t){e.$handle&&this.restore(e.$handle);const n=e.$owner;if(n?.$handle){const r=n.$handle,o=r.nodes.indexOf(e);if(-1!==o)return void r.splice(o,1,...t)}e.replaceWith(...t)},append(e,...n){const r=e.$handle,o=r?r.el:e;for(const e of n)t.insertBefore(o,e,null)},firstChild(e){const n=e.$handle;return n?n.start.$handle?t.firstChild(n.start):n.start:e.firstChild},lastChild(e){const n=e.$handle;return n?n.end.$handle?t.lastChild(n.end):n.end:e.lastChild},firstRealNode(e){const n=e?.$handle;return n?t.firstRealNode(n.start):e},firstElementChild(e){for(const n of t.range(e))if(n.nodeType===n.ELEMENT_NODE)return n;return null},*children(e){const t=e.$handle;if(t){if(t.placeholder)return;for(const e of t.nodes)yield e}else for(const t of e.childNodes)yield t},*range(e){for(let n of t.children(e))n.$handle?yield*t.range(n):yield n},assignWrapper:ie};return t}function ae(e,t){t&&e.push(t)}function ce(e){if(e.length)return Promise.all(e)}function le(e,t){const n=e.$ok.dom,r=e.$el,o=[];for(const i of t){const t=i.$scope?i:i.cloneNode(!0);n.append(r,t),ae(o,e.$ok.scope(t,{$parent:e}).$init())}return ce(o)}function ue(e,t){const n=e.$el,r=e.$cache.text=e.$cache.text||{};if(r.part)return function(e){const t=e.$cache.text,n=t.part,r=e.$el;if(!n)throw e.$ok.OKError("TEXT_NO_CACHE",null,{message:"No text cache",scope:e});if("static"!==n.type)return t.cmd=n.expr,t.fn=e.$fn(t.cmd),t.value=null,function(e,t){let n=!0;return t.onChange=()=>{n?n=!1:t.watcher?.watch();const r=t.value;if(M(r)||(o=r,Array.isArray(o)&&o.every(M)))return function(e){const t=e.$el,n=e.$ok.dom,r=[].concat(e.$cache.text.value||[]);if(t.$handle){const o=[];for(const r of n.children(t))ae(o,e.$ok.destroy(r));const i=ce(o);if(i)return i.then(()=>le(e,r))}else n.unwrap(t);return le(e,r)}(e);var o;const i=[];for(const t of e.$ok.dom.children(e.$el))ae(i,e.$ok.destroy(t));const s=ce(i);if(s)return s.then(()=>{e.$el.textContent=`${r}`});e.$el.textContent=`${r}`},t.watcher=e.$watch(()=>{const n=t.fn(e);return Array.isArray(t.value)&&t.value.length,t.value=n,n},t.onChange),t.onChange()}(e,t);r.textContent=n.value}(e);const o=t?.whitespace??e.$parent?.$options?.whitespace??"remove";e.$emit("mount");let i=n.textContent;"remove"===o?i=i.replace(/\s+/g,""):"trim"===o&&(i=i.trim());const s=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e.indexOf("{{",n);if(-1===o)break;if(o>0&&"\\"===e[o-1]){o-1>r&&t.push({type:"static",value:e.slice(r,o-1)}),t.push({type:"static",value:"{{"}),n=r=o+2;continue}o>r&&t.push({type:"static",value:e.slice(r,o)});const i=e.indexOf("}}",o+2);if(-1===i)break;t.push({type:"dynamic",expr:e.slice(o+2,i).trim()}),n=r=i+2}return r<e.length&&t.push({type:"static",value:e.slice(r)}),t}(i);if(0!==s.length){if(1===s.length)return"static"===s[0].type?void(n.textContent=s[0].value):(r.part=s[0],ue(e));if(!1===n.parentNode?.$scope?.$options.splitText)return r.part={type:"dynamic",expr:"`"+s.map(e=>"static"===e.type?e.value.replace(/`/g,"\\`"):"${"+e.expr+"}").join("")+"`"},ue(e);e.$ok.dom.unwrap(e.$el);for(const t of s){const n=(e.$el?.ownerDocument||globalThis.document).createTextNode("");n.$scope=e.$ok.scope(n,{$parent:e,$context:e.$context,$vars:e.$vars,$cache:{text:{part:t}}}),e.$ok.dom.append(e.$el,n)}}else e.$el.$ignore=!0}se.defaultCommentMarker=function(e,t){return(e.ownerDocument||globalThis.document).createComment(`${t.toUpperCase()} ${(e.tagName||e.textContent||"").trim()} - ${e.$scope?.id||""}`)},se.defaultEmptyTextMarker=oe;const de=/^[a-zA-Z][a-zA-Z\d+.-]*:/,fe=/^(https?:)?\/\//,pe=/\.ok\.(?:js|mjs|html)(?:[?#].*)?$/i,he=new WeakMap,me=new WeakMap;function ge(){return globalThis.document??null}function $e(e=ge()){return e?.baseURI||e?.querySelector?.("base")?.href||globalThis.window?.location?.href||null}function ye(e){return"string"==typeof e&&(e.startsWith("./")||e.startsWith("../"))}function we(e){return"string"==typeof e&&e.startsWith("/")}function be(e){return"string"==typeof e&&(fe.test(e)||de.test(e))}function ve(e){return"string"==typeof e&&e.length>0&&!ye(e)&&!we(e)&&!be(e)}function _e(e){return String(e).split("#")[0].split("?")[0]}function ke(e=null,t=ge()){return e||$e(t)}function Ae(e,t=null,n=ge()){if(fe.test(e))return e;if(de.test(e))return e;const r=ke(t,n);if(!r)throw new Error(`Cannot resolve import specifier "${e}" without a base URL.`);return new URL(e,r).href}function Oe(e,t){return"string"==typeof e&&e?Ae(e,t,null):null}function Ee(e={},t){const n=new Map;for(const[r,o]of Object.entries(e||{})){const e=Oe(o,t);e&&n.set(r,e)}return n}function Te(e,t){const n=Ee(e?.imports,t),r=new Map;for(const[n,o]of Object.entries(e?.scopes||{})){const e=Ae(n,t,null);r.set(e,Ee(o,t))}return{imports:n,scopes:r,baseURL:t}}function xe(e,t){if(!t?.size)return null;if(t.has(e))return t.get(e);let n=null;for(const r of t.keys())r.endsWith("/")&&e.startsWith(r)&&(!n||r.length>n.length)&&(n=r);if(!n)return null;const r=t.get(n),o=e.slice(n.length);return new URL(o,r).href}function Se(e,{base:t=null,document:n=ge(),importMap:r=null,allowBareFallback:o=!0,allowUnmappedBare:i=!1}={}){if("string"!=typeof e||!e.trim())throw new Error("Import specifier must be a non-empty string.");const s=e.trim();if(!ve(s))return Ae(s,t,n);const{bare:a,suffix:c}=function(e){const t=/([?#].*)$/.exec(e);return{bare:t?e.slice(0,t.index):e,suffix:t?.[1]||""}}(s),l=function(e,t,n=null){if(!t)return null;if(n&&t.scopes?.size){const r=Array.from(t.scopes.keys()).filter(e=>n.startsWith(e)).sort((e,t)=>t.length-e.length);for(const n of r){const r=xe(e,t.scopes.get(n));if(r)return r}}return xe(e,t.imports)}(a,function(e,t=ge(),n=ke(null,t)){if(!e)return function(e=ge()){if(!e)return null;const t=Array.from(e.querySelectorAll?.('script[type="importmap"]')||[]);if(!t.length)return null;const n=he.get(e),r=t.map(e=>e.textContent||"").join("\n---\n");if(n?.signature===r)return n.value;const o={imports:{},scopes:{}};for(const e of t){const t=e.textContent?.trim();if(!t)continue;const n=JSON.parse(t);Object.assign(o.imports,n.imports||{});for(const[e,t]of Object.entries(n.scopes||{}))o.scopes[e]={...o.scopes[e]||{},...t}}const i=Te(o,$e(e));return he.set(e,{signature:r,value:i}),i}(t);if(e instanceof Map)return e;if("string"==typeof e)return Te(JSON.parse(e),n);if("object"==typeof e){const t=me.get(e);if(t?.baseURL===n)return t.value;const r=Te(e,n);return me.set(e,{baseURL:n,value:r}),r}return null}(r,n,ke(t,n)),ke(t,n));if(l)return`${l}${c}`;if(o&&function(e,{bare:t,resolvedFromMap:n}={}){if(n)return!1;if(!ve(e))return!1;const r=t||_e(e);return pe.test(r)}(s,{bare:a}))return Ae(s,t,n);if(i)return s;throw new Error(`Unable to resolve bare import specifier "${s}". Add it to an import map or use an explicit URL/path.`)}const Ce=/^[A-Za-z][A-Za-z0-9._:-]*$/,Ne=/(?:\.ok\.(?:js|mjs|html)|\.(?:js|mjs))$/i;function Ie(e){return"string"==typeof e&&Ce.test(e)}function Re(e){return"string"==typeof e&&e.length>0&&(ye(e)||we(e)||be(e)||ve(e)||Ne.test(_e(e)))}function je(e){return e&&"object"==typeof e&&"string"==typeof e.import}function Le(e){return e&&"object"==typeof e&&Ie(e.tag)&&1===Object.keys(e).length}function De(e){return e&&"object"==typeof e&&!("import"in e)&&!e.loaded}function Me(e){return e&&"object"==typeof e&&!0===e.loaded}function Pe(e,t={}){const{mode:n="dynamic",onInvalidUrl:r=()=>{}}=t,o=new Set(["import","tag","lazy","t"]);for(const t in e)if(!o.has(t))throw new Error(`Unexpected field '${t}' in import definition`);if(!e.import||"string"!=typeof e.import)throw new Error("Import definition must include a valid `import` string.");if(e.lazy&&!e.tag)throw new Error("Lazy import definitions must include a `tag`.");if(e.tag&&!Ie(e.tag))throw new Error(`Invalid tag name: ${e.tag}`);return Re(e.import)||r("import",e.import,e),e}const Fe=new Set(["html","head","body","base","link","meta","main","style","title","address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hr","nav","section","div","span","p","pre","a","em","strong","small","s","cite","q","dfn","abbr","data","time","code","var","samp","kbd","sub","sup","i","b","u","mark","ruby","rt","rp","bdi","bdo","br","wbr","ins","del","img","iframe","embed","object","param","video","audio","source","track","canvas","map","area","svg","math","table","caption","colgroup","col","tbody","thead","tfoot","tr","td","th","form","fieldset","legend","label","input","button","select","datalist","optgroup","option","textarea","output","progress","meter","details","summary","dialog","script","noscript","template","slot","ul","li"]),ze=new Set(["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","textPath","defs","marker","mask","clipPath","pattern","symbol","use","view","image","linearGradient","radialGradient","stop","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","animate","animateTransform","animateMotion","set","foreignObject","desc","title","metadata","switch"]);function We(e,t,n){if(!t.preserve_whitespace)for(const e of n)e.remove();let r=t.parse?.(e);return r?r.then(()=>Be(e,t)):Be(e,t)}function Be(e,t){if(e.$ignore||e.$__unmount__$)return;Object.assign(e.$cache,K.bind(e)),function(e,t,{onUnused:n=(e,t,n)=>{}}={onUnused:null}){const r=t.attr||{},o=new Set;for(const[t,n]of Object.entries(r)){const r=n.alias||[],i=[];let s=null;for(const t of r)t in e.$attr&&(i.push(t),null==s&&(s=t));const a=t in e.$attr;if(a&&i.push(t),i.length>1)throw e.$error?.("ATTR_ALIAS_CONFLICT",`Only one of [${[t,...r].join(", ")}] should be used`,{key:t,aliases:r,used:i});if(i.length){const r=a?t:s;""===e.$attr[r]&&"empty"in n?e.$attr[t]=n.empty:a||null==s||Object.defineProperty(e.$attr,t,{get:()=>e.$attr[s],enumerable:!0,configurable:!0}),o.add(t)}else"default"in n&&(e.$attr[t]=n.default,o.add(t));if(n.required&&!(t in e.$attr))throw e.$error?.("MISSING_ATTR",`Missing required attribute :${t}=`,{key:t,aliases:r});n.validate&&t in e.$attr&&n.validate(e,e.$attr[t])}if(n)for(const[e,i]of Object.entries(r))o.has(e)||i.required||"default"in i||n(e,i,t)}(e,t,{onUnused(){}});const n=e.$cache.cmp;if(n.context=e.$ok.proxy(t.context?.(e)||{}),e.$innerContext=n.context,t.attr)for(const[r,o]of Object.entries(t.attr))if(void 0!==o.transform){let t=e.$cache.bind[r];t&&"static"!==t.type||([t]=K.classifyAttr(":"+r,"undefined",e.$el),K.bindAttribute(e,r,e.$el,e.$attr,t)),t.transform=(e,t)=>"function"==typeof o.transform?o.transform.call(n.context,e,t):o.transform,t.watcher.run()}return function(e,t){const n=e.$cache.cmp.registration.dependencies,r=[];for(const t of n){const n=t?.ready?.prepareDep?.(e,t.ready,e.$cache.cmp.def);n&&r.push(n)}return r.length?Promise.all(r).then(()=>Ue(e,t)):Ue(e,t)}(e,t)}function Ue(e,t){let n=t.prepare?.(e);return n?n.then(()=>Ve(e,t)):Ve(e,t)}function Ve(e,t){e.$cache.events.prepare?.fn(e),e.$innerVars||e.$setInnerVars({}),e.$__locked__$=!0;const n=e.$el;n.append(t.template.content.cloneNode(!0));for(const t of n.querySelectorAll("slot"))t.setAttribute("cmp-id",e.$id);for(const t of n.childNodes)t.$scope||(t.$scope=e.$ok.scope(t,{$parent:e,$cmp:e}));const r=e.$invoke("mount");return r?r.then(()=>He(e,t)):He(e,t)}function He(e,t){e.$__unmount__$||t.unwrap&&e.$ok.dom.unwrap(e.$el)}function Ke(e){return!!e.$ignore||!(1!==e.nodeType||!e.hasAttribute("ok:ignore"))&&(e.$ignore=!0,!0)}async function qe(e){if(e.$__init__$)throw e.$error("DOUBLE_INITIALIZATION","Node was already initialized before");1===e.$el.nodeType&&e.$el.hasAttribute("ok:ignore")&&(e.$el.$ignore=!0),e.$__init__$=performance.now(),e.$ok.registerScope(e),e.$emit("mount"),e.$state="mounting";try{e.$ok.componentRegistry.pendingInit.size&&await e.$ok.componentRegistry.initPendingRegistrations(e);const t=e.$el;let n;if(t.nodeType===t.TEXT_NODE)n=ue(e,{whitespace:e.$ok.config.whitespace||"ignore"});else if(t.nodeType===t.ELEMENT_NODE){const t=e.$ok.componentRegistry.getRegistration(e.$el.getAttribute("as")||e.$el.tagName,e);t?(e.$el.setAttribute("data-ok",""),n=function(e,t){const n=e.$el;t._instances.add(e),e.$ext("unmount",()=>{t._instances.delete(e)});const r=e.$cache.cmp={registration:t,get def(){return t.ready||t.raw},templates:{},fragment:null},o=Array.from(n.childNodes),i=[],s=[],a=!!r.def,c=a&&r.def.preserve_whitespace;for(const e of o)if(1===e.nodeType&&"TEMPLATE"===e.tagName){const t=e.getAttribute("name")||"default";r.templates[t]=e,e.remove()}else 3===e.nodeType&&""===e.textContent.trim()?(a||s.push(e),c&&i.push(e)):i.push(e);if(!r.templates.default&&i.length){const e=(n.ownerDocument||globalThis.document).createElement("TEMPLATE");e.content.append(...i),r.templates.default=e}else for(const e of i)e.remove();const l=e.$ok.componentRegistry.activate(t,e);return l?l.then(t=>We(e,t,s)):We(e,r.def,s)}(e,t)):(e.$parent||e.$el.setAttribute("data-ok",""),n=function(e){const t=e.$el.tagName.toLowerCase();if("svg"===t&&e.$setInnerVars({$svg:{get:()=>!0}}),!(function(e){return Fe.has(e.toLowerCase())}(t)||e.$vars.$svg&&function(e){return ze.has(e.toLowerCase())}(t))){const n=e._warnedUnregistered??=new Set;n.has(t)||(n.add(t),e.$log.warn(["init"],`[ok] Unregistered component <${t}> in <${e.$parent?.$el.tagName||"root"}> at ${e.$cmp?.$el.tagName||"root"}`))}return Object.assign(e.$cache,K.bind(e)),e.$__locked__$=!0,e.$invoke("mount")}(e))}if(n&&await n,"mounting"!==e.$state)return;let r=[];return"SCRIPT"===e.$el.tagName||e.$el.$ignore||(r=function(e){const t=[],n=[...e.$ok.dom.children(e.$el)];for(let r of n){if(Ke(r))continue;let n=r.$scope||(r.$scope=e.$childScope(r));t.push(n),"pending"===n.$state&&qe(n).catch(e=>{if("ACTIVATION_FAILED"===e?.code&&n.$__unmount__$)return;const t=e?.ok?.shared?.crash;if(!t)throw e;t.crash(e)})}return t}(e)),await Promise.all(r.map(e=>e.$lifecycle.mountedOrAborted)),e.$hasInvoke("mounted")&&await e.$invoke("mounted"),e.$state="mounted",e.$lifecycle.mounted.resolve(),e.$emit("mounted"),await(e.$parent?.$lifecycle.ready),e.$ok.nextFrame(async()=>{e.$hasInvoke("ready")&&await e.$invoke("ready"),e.$state="ready",e.$lifecycle.ready.resolve(),e.$emit("ready"),r.forEach(e=>{e.$lifecycle.ready.resolve()}),await Promise.all(r.map(e=>e.$lifecycle.initializedOrAborted)),e.$__unmount__$||(e.$state="initializing",e.$hasInvoke("init")&&await e.$invoke("init"),e.$lifecycle.initialized.resolve(),e.$state="initialized",e.$emit("initialized"))}),e.$lifecycle.initialized}catch(t){if(e.$__unmount__$)return;throw e.$lifecycle.unmount.resolve(),e.$error("ACTIVATION_FAILED",t,{})}}const Ye=Symbol("OKScope"),Ge=Object.create({[Ye]:!0,$ext(e,t){this.$cache.extends||(this.$cache.extends={}),(this.$cache.extends[e]||=[]).push(t)},$destroyChildren(e=!1){return function(e,t=!1){const n=[],r=new Set,o=e.$ok.dom.children(e.$el);for(let i of o){if(r.has(i))continue;let o=i.$owner;if(o&&o!==e.$el){for(;o.$owner&&o.$owner!==e.$el;)o=o.$owner;const i=o.$handle;if(i&&i.start&&!r.has(i.start)){n.push(o.$scope.$destroy(t));for(const t of e.$ok.dom.range(o))r.add(t)}continue}Ke(i)||i.$scope&&!i.$scope.$__unmount__$&&(n.push(i.$scope.$destroy(t)),r.add(i))}if(n)return Promise.all(n)}(this,e)},$ignoreChildren(){this.$el&&(this.$el.$ignore=!0)},$init(){return qe(this)},$destroy(e=!0){return async function(e,t=!0){if(!e.$__init__$)return;if(e.$__unmount__$)return;e.$__unmount__$=performance.now(),e.$emit("unmount"),e.$lifecycle.unmount.resolve(),e.$state="unmounting";const n=t=>{if("$__unmountPromise__$"in t||t!==e&&t.$__unmount__$)return t.$__unmountPromise__$;t.$__unmountPromise__$=t.$invoke("unmount");for(const e of t.$children)n(e.$scope);return t.$__unmountPromise__$},r=n(e);await r,delete e.$__unmountPromise__$,e.$cache.cmp?.def?.destroyOwnChildren||await e.$destroyChildren(t),await e.$invoke("unmounted"),e.$lifecycle.unmounted.resolve(),e.$state="unmounted",e.$emit("unmounted"),t&&e.$ok.dom.remove(e.$el),e.$ok.unregisterScope(e),e.$offAll(),e.$el.$scope=null,e.$el=null,e.$state="dead",e.$__RIP__$=!0,e.$ok.emit("scope@destroyed",{id:e.$id})}(this,e)},$hasInvoke(e){return this.$cache.cmp?.def?.[e]||this.$cache.events?.[e]||this.$cache.extends?.[e]},$invoke(e,...t){const n=[],r=e=>{if(!e)return;const r=e.call(this.$innerContext,this,...t);r&&"function"==typeof r.then&&n.push(r)};r(this.$cache.cmp?.def?.[e]),r(this.$cache.events?.[e]?.listener);for(const t of this.$cache.extends?.[e]||[])r(t);if(n.length)return n.length?Promise.all(n):void 0},$watch(e,t,n={}){const r=this.$ok.proxyInstance.watch(e,t,{...n,wrapHandle:e=>(...t)=>{try{return e(...t)}catch(e){if("SCOPED_WATCHER_ERROR"===e.code)throw e;throw this.$error("SCOPED_WATCHER_ERROR",e)}}});return this.$ext("unmount",r.stop),r},$observe(e,t,n=null,r){const o=this.$ok.proxyInstance.observe(e,t,n,{...r,wrapHandle:e=>(...t)=>{try{return e(...t)}catch(e){if("SCOPED_OBSERVER_ERROR"===e.code)throw e;throw this.$error("SCOPED_OBSERVER_ERROR",e)}}});return o&&this.$ext("unmount",o.stop),o},$observeDeep(e,t){const{stop:n}=this.$ok.proxyInstance.observeDeep(e,t);return this.$ext("unmount",n),{stop:n}},$memo(e){const t=this.$ok.proxyInstance.memo(e);return t._cleanup||(t._cleanup=!0,this.$ext?.("unmount",()=>t.stop())),t},$fn(e,t={}){return this.$ok.func(e,{...t,layers:["$scope","$vars","$context"]}).bind(this.$context)},$error(e,t,n){return new this.$ok.OK.OKError(e,t,{scope:this,...n})},$setInnerVars(e,t=this.$vars||{}){if(this.$__locked__$)throw this.$error("SCOPE_LOCKED","$innerVars can only be set before mounting children");const n={};for(const e of Reflect.ownKeys(t)){const r=Object.getOwnPropertyDescriptor(t,e);r&&(n[e]={...r,configurable:!0})}for(const[t,r]of Object.entries(e)){if(!r||"function"!=typeof r.get)throw this.$error("BAD_VARS",`$vars["${String(t)}"] must be an object with a getter`,{value:r});n[t]={get:r.get,set:r.set||(()=>{throw this.$error("READONLY_VAR",`Variable "${t}" is read-only`)}),enumerable:!0,configurable:!0}}this.$innerVars=Object.defineProperties({},n)},$setInnerContext(e={}){if(this.$__locked__$)throw this.$error("SCOPE_LOCKED","$innerContext can only be set before mounting children");this.$innerContext=this.$ok.proxy(e)},$childScope(e,t={}){if(t.$parent&&t.$parent!==this)throw this.$error("BAD_PARENT","$parent is not allowed",{node:e});return this.$ok.scope(e,{$parent:this,...t})},get $on(){return this[i.SYMBOLS.ON]??=i.on.bind(null,this)},get $once(){return this[i.SYMBOLS.ONCE]??=i.once.bind(null,this)},get $off(){return this[i.SYMBOLS.OFF]??=i.off.bind(null,this)},get $emit(){return this[i.SYMBOLS.EMIT]??=(e,...t)=>{i.emit(this,e,...t),i.emit(this.$ok,"scope@"+e,this,...t)}},get $offAll(){return this[i.SYMBOLS.OFF_ALL]??=i.offAll.bind(null,this)},get $slots(){return this.$cmp?.$cache.cmp?.templates||{}},get $isCmp(){return!!this.$cache.cmp},get $props(){return this.$cmp?.$attr},$dispatch(e,t,n){this.$el&&this.$el.dispatchEvent(new CustomEvent(e,{detail:t,...n}))},$listen(e,t,n,r=void 0){const o="boolean"==typeof r?r:!!r?.capture;this._listeners||=[];for(const r of this._listeners){const i="boolean"==typeof r.options?r.options:!!r.options?.capture;if(r.el===e&&r.type===t&&r.handler===n&&i===o)return r}const i={el:e,type:t,handler:n,options:r,active:!0,start(){this.active||(e.addEventListener(t,n,r),this.active=!0)},stop(){this.active&&(e.removeEventListener(t,n,r),this.active=!1)}};return e.addEventListener(t,n,r),this._listeners.push(i),this._hasListenerCleanup||(this.$ext("unmount",()=>{for(const e of this._listeners)e.stop();this._listeners=[]}),this._hasListenerCleanup=!0),i},$unlisten(e,t,n,r){const o="boolean"==typeof r?r:!!r?.capture;this._listeners&&(this._listeners=this._listeners.filter(r=>{const i="boolean"==typeof r.options?r.options:!!r.options?.capture,s=r.el===e&&r.type===t&&r.handler===n&&i===o;return s&&r.stop(),!s}))},$clone(){const e=(this.$el.ownerDocument||globalThis.document).createElement(this.$el.tagName);if(this.$cache.bind)for(const[t,n]of Object.entries(this.$cache.bind))e.setAttribute(n.originalName,n.originalValue);if(this.$cache.events)for(const[t,n]of Object.entries(this.$cache.events))e.setAttribute(n.originalName,n.originalValue);if(this.$cache.cmp?.templates)for(const t of Object.values(this.$cache.cmp.templates))e.appendChild(t.cloneNode(!0));return Je(this.$ok,e,{$parent:this.$parent,$context:this.$context,$vars:this.$vars,$cmp:this.$cmp,$slot:this.$slot,$attr:this.$attr,$options:this.$options})},async $reload(){if(!this.$isCmp&&!this.$_failedReload)throw this.$error("NOT_A_COMPONENT","$reload can only be called on component scopes");const e=this.$clone();e.$_reloadCloneEl=e.$el;const t=this.$el,n=this.$_reloadCloneEl||e.$el;await this.$destroy(!1),t.innerHTML="";for(const e of Array.from(t.attributes))t.removeAttribute(e.name);for(const e of Array.from(n.attributes))t.setAttribute(e.name,e.value);for(;n.firstChild;)t.appendChild(n.firstChild);t.$scope=e,e.$el=t;let r=this.$_reloadRegistrationId||this.$cache.cmp?.registration?.id;const o=e.$ok.componentRegistry.cache.get(r);e.$_reloadRegistrationId=r,o._instances.add(e),this.$_failedReload&&(this.$ok.dom.replace(this.$_failedReload,e.$el),await this.$ok.destroy(this.$_failedReload),delete this.$_failedReload);try{return await e.$init(),delete e.$_reloadRegistrationId,delete e.$_reloadCloneEl,this.$log.info(["RELOADED"],"Component reloaded successfully"),e}catch(t){((e,t)=>{const n=(e.$el?.ownerDocument||globalThis.document).createElement("crash-boundary-default");e.$ok.dom.replace(e.$el,n),n.$scope=e.$ok.scope(n,{$parent:e.$parent,$context:e.$context,$attr:{error:t}}),n.$scope.$init(),e.$_failedReload=n,e.$log.error(["RELOAD_FAILED"],t)})(e,t)}}});function Xe(e,t){if(e[t])return e[t];let n,r;const o=new Promise((e,t)=>{n=e,r=t});return o.resolve=()=>{o.timestamp=performance.now(),o.resolved=!0,n()},o.reject=e=>{o.timestamp=performance.now(),o.rejected=!0,r(e)},e[t]=o,o}function Ze(e,t,...n){return e[t]?e[t]:e[t]=Promise.race(n)}function Je(e,t,n={}){if(t.$scope)throw e.error("NODE_ALREADY_SCOPED","createScope on a node that already has a scope",{node:t});const r=void 0!==n.$parent?n.$parent:t.parentNode?.$scope||null,o=r||{},i=Object.create(Ge);Object.defineProperty(i,"$id",{value:++e._scopeIdCounter,writable:!1}),Object.assign(i,{$el:t,$root:o.$root||r||null,$parent:r,$children:new Set,$state:"pending",$context:e.proxy(n.$context||o.$innerContext||o.$context||{}),$vars:n.$vars||o.$innerVars||o.$vars||{},$attr:e.proxy(n.$attr||{}),$cmp:n.$cmp||o.$cmp||null,$slot:n.$slot||o.$slot||null,$cache:n.$cache||{},$scope:i,$options:n.$options||{},$ok:e,$innerVars:null,$innerContext:null});const s=void 0!==n.$owner?n.$owner:o.$owner;s&&(i.$owner=s);const a=void 0!==n.$resolveDef?n.$resolveDef:o.$resolveDef;a&&(i.$resolveDef=a);const c={};Object.defineProperty(i,"$lifecycle",{value:{get mounted(){return Xe(c,"mounted")},get ready(){return Xe(c,"ready")},get initialized(){return Xe(c,"initialized")},get unmount(){return Xe(c,"unmount")},get unmounted(){return Xe(c,"unmounted")},get mountedOrAborted(){return Ze(c,"mountedOrAborted",this.mounted,this.unmount)},get readyOrAborted(){return Ze(c,"readyOrAborted",this.ready,this.unmount)},get initializedOrAborted(){return Ze(c,"initializedOrAborted",this.initialized,this.unmount)}},enumerable:!0});const l=t.tagName?.toLowerCase()||(t.nodeType===t.TEXT_NODE?"#text":"#unknown");return Object.defineProperty(i,"$log",{value:e.createLogger(e,i,["scope:"+i.$id,"tag:"+l]),enumerable:!0,configurable:!0}),t.$scope=i,i.$parent?.$children.add(i),i}Je.OK_SCOPE_SYMBOL=Ye;const Qe=e=>[...new Set(e.filter(Boolean).map(String))],et=Symbol("OKLogger"),tt=Symbol("INFO"),nt=Symbol("ERROR"),rt=Symbol("WARN"),ot=Symbol("DEBUG"),it=Symbol("LOG"),st=Object.create({[et]:!0,get log(){return this[it]??=this._emitLog.bind(this,this.channel,"log",this.rootTags,this.source)},get error(){return this[nt]??=this._emitLog.bind(this,this.channel,"error",this.rootTags,this.source)},get info(){return this[tt]??=this._emitLog.bind(this,this.channel,"info",this.rootTags,this.source)},get warn(){return this[rt]??=this._emitLog.bind(this,this.channel,"warn",this.rootTags,this.source)},get debug(){return this[ot]??=this._emitLog.bind(this,this.channel,"debug",this.rootTags,this.source)},extend(e,t){return at(this.channel,e,[...this.rootTags,...t])},asConsole(e,t){const n=this.extend(e,t);return{logger:n,log(...e){n.log([],e)},info(...e){n.info([],e)},error(...e){n.error([],e)},warn(...e){n.warn([],e)},debug(...e){n.debug([],e)}}},_emitLog(e,t=null,n,r,o,s,a=Date.now()){const c={channel:e,source:r,tags:[...Qe([t,...n,...o])],data:s,timestamp:a};return i.emit(e,"log",c),c},printToConsole(e){const t=e.tags.includes("error")?"error":e.tags.includes("warn")?"warn":e.tags.includes("info")?"info":e.tags.includes("debug")?"debug":"log",n=new Date(e.timestamp).toISOString(),r=e.data?.args??[e.data];(console[t]??console.log)(n,e.tags,...r)}});function at(e={},t=null,n=[]){const r=Object.create(st);return r.channel=e,r.source=t,r.rootTags=n,r}function ct(e,t=null,{selfClosing:n="allow",tag:r=null,href:o=null,onWarn:i=null,onError:s=null,line:a=1,offset:c=0,document:l=null}={}){if(!l){if(!globalThis.document)throw new Error("parseTemplate: no document available (running in Node without a DOM).\nYou must pass { document: yourDOM } when calling parseTemplate in a build tool.");l=globalThis.document}const u=function(e,{selfClosing:t="allow",tag:n=null,href:r=null,onWarn:o=null,onError:i=null}={}){const s=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]);return e.replace(/<([a-zA-Z0-9-]+)([^<>]*)\/>/g,(e,a,c)=>{const l=a.toUpperCase();if(s.has(l))return e;if("throw"===t)throw i&&i(a,n,r),new Error(`<${a}/> is not a valid self-closing tag`);return"warn"===t&&o&&o(a,n,r),`<${a}${c}></${a}>`})}(e,{selfClosing:n,tag:r,href:o,onWarn:(e,n,r)=>{if(i)i(e,n,r);else if(t?.log){const o=r?` from ${r}`:"";t.log.warn(["parseTemplate"],`[ok] <${e}/> auto-expanded inside <${n}>${o}`)}},onError:(e,n,r)=>{if(!s)throw t?.error?t.error("INVALID_SELF_CLOSING_TAG",`<${e}/> is not a valid self-closing tag`,{tag:n,href:r}):new Error(`<${e}/> is not a valid self-closing tag`);s(e,n,r)}}),d=l.createElement("template");return d.innerHTML=u,d}async function lt(e,t=null){const n=await fetch(e);if(!n.ok)throw t.error("IMPORT_FETCH_FAILED",`${n.status} ${n.statusText}: ${e}`,{href:e,status:n.status,res:n});const r=await n.text();try{return async function(e,t,n){const r=Object.fromEntries(e.map(e=>[e.role||e.tag,e]));let o=r.script?.content||"",i={style:r.style?.content||"",template:r.template?.content||"",__blocks:r};if(r.dependencies)try{i.dependencies=JSON.parse(r.dependencies.content||"[]")}catch(e){throw t.error("PARSE_FAILED","Failed to parse dependencies JSON",{cause:e,content:r.dependencies.content})}if(o){o=function(e,t,n=null){const r=e=>{if(!n)return e.startsWith("./")||e.startsWith("../")?new URL(e,t).href:e;try{return n(e,t)}catch{return e}};let o=e.replace(/(import\s+[\s\S]*?from\s*|import\s*|export\s+[\s\S]*?from\s*)["']([^"']+)["']/g,(e,t,n)=>`${t}"${r(n)}"`);return o=o.replace(/(import\s*\(\s*)["']([^"']+)["'](\s*\))/g,(e,t,n,o)=>`${t}"${r(n)}"${o}`),o}(o,n,(e,n)=>{const r=t?.componentRegistry;return r?.resolveImportPath?r.resolveImportPath(e,n,{allowUnmappedBare:!0,allowBareFallback:!1}):e.startsWith("./")||e.startsWith("../")?new URL(e,n).href:e});const e=["\n".repeat(r.script.startLine-1),o,`\n//# sourceURL=${n}`].join(""),s=!!globalThis.process?.versions?.node,a=s?`data:text/javascript;base64,${Buffer.from(e,"utf8").toString("base64")}`:URL.createObjectURL(new Blob([e],{type:"text/javascript"}));let c;try{c=o?await import(a):{}}finally{s||URL.revokeObjectURL(a)}i={...i,...c.default,url:n}}return i}(function(e){const t=[],n=e.length;let r=0,o=1;const i=()=>{const t=e[r++];return"\n"===t&&o++,t},s=()=>e[r],a=e=>/[a-zA-Z]/.test(e);function c(t,n=!1){const o=e.slice(r,r+t.length);return(n?o.toLowerCase():o)===t}function l(t,a,l,u){let d=null,f=!1,p=null,h="template"===t?1:0;const m=r;for(;r<n;){if("<"===e[r])if("template"===t)if(c("</template>",!0)){if(h--,0===h){const n=r;for(let e=0;e<11;e++)i();const s=r;return{tag:t,openTag:a,closeTag:"</template>",content:e.slice(m,n),start:l,end:s,startLine:u,endLine:o}}}else c("<template",!0)&&h++;else{const n=`</${t}>`;if(c(n,!0)){const s=r;for(let e=0;e<n.length;e++)i();const c=r;return{tag:t,openTag:a,closeTag:n,content:e.slice(m,s),start:l,end:c,startLine:u,endLine:o}}}const n=i();if(p){if("--"===p&&c("--\x3e")||"//"===p&&"\n"===n||"/*"===p&&c("*/")){if("--"===p)for(let e=0;e<3;e++)i();else if("/*"===p)for(let e=0;e<2;e++)i();p=null}}else if(d)f?f=!1:"\\"===n?f=!0:n===d&&(d=null);else if('"'!==n&&"'"!==n)if("<"===n&&c("!--")){for(let e=0;e<3;e++)i();p="--"}else"/"!==n||"/"!==s()?"/"!==n||"*"!==s()||(i(),p="/*"):(i(),p="//");else d=n}throw new Error(`Unclosed <${t}> starting at line ${u}`)}for(;r<n;){if("<"===e[r]&&a(e[r+1])){const s=r+1;let a=s;for(;a<n&&/[a-zA-Z0-9_-]/.test(e[a]);)a++;const c=e.slice(s,a).toLowerCase();if(["script","style","template","part"].includes(c)){const s=r,a=o;for(;r<n&&">"!==e[r];)i();i();const u=e.slice(s,r);let d=null,f=null;if("part"===c){const e=/\brole\s*=\s*["']([^"']+)["']/.exec(u),t=/\bformat\s*=\s*["']([^"']+)["']/.exec(u);if(d=e?.[1]||null,f=t?.[1]||null,!d)throw new Error(`<part> block is missing required "role" attribute (line ${a})`)}const p=l(c,u,s,a);if("part"!==c&&t.find(e=>e.tag===c))throw new Error(`Multiple <${c}> blocks found (first at line ${t.find(e=>e.tag===c).startLine}, again at line ${a})`);for(const e of t)if(p.start>=e.start&&p.start<e.end||e.start>=p.start&&e.start<p.end)throw new Error(`Overlapping blocks: <${e.tag}> (line ${e.startLine}) overlaps with <${p.tag}> (line ${p.startLine})`);"part"===c?(p.role=d,p.format=f):"template"===c?(p.role="template",p.format="html"):"script"===c?(p.role="script",p.format="javascript"):"style"===c&&(p.role="style",p.format="css"),t.push(p),r=p.end,o=p.endLine;continue}}i()}return t}(r),t,e)}catch(n){throw t.error("PARSE_FAILED",`Failed to parse .ok.html structure: ${e}`,{href:e,cause:n})}}const ut=new Map,dt=new WeakMap,ft=new WeakMap,pt=new Map;function ht(e,t=null){const n=t||e?.config?.resolveImportURL;return"function"!=typeof n?null:n}function mt(e){const t=[e.tagName,e.getAttribute("data-ok-tag")||"",e.getAttribute("data-ok-src")||""];return"LINK"===e.tagName?t.push(e.getAttribute("rel")||"",e.getAttribute("href")||""):t.push(e.textContent||""),t.join("::")}function gt(e){const t=Object.create(i.EmitterProto),n=Object.create(t);return Object.assign(n,{ok:e,resolveImportPath:(t,n,r={})=>function(e,t,{ok:n=null,document:r=n?.config?.document||globalThis.document||null,importMap:o=n?.config?.importMap||n?.config?.importmap||null,resolveImportURL:i=n?.config?.resolveImportURL||null,allowUnmappedBare:s=!1,allowBareFallback:a=!0}={}){const c=ht(n,i);if("function"==typeof c)try{return c(e,t||(n.config.document||globalThis.document)?.baseURI||null)}catch{}return Se(e,{base:t,document:n.config.document||globalThis.document,importMap:o,allowUnmappedBare:s,allowBareFallback:a})}(t,n,{ok:e,...r}),cache:new Map,pendingInit:new Set,async fetchDefinition(t,{force:n=!1,t:r=null}={}){n&&ut.delete(t);const o=ut.get(t);if(o)return o;if(!function(e){return"string"==typeof e&&e.length>0&&(ye(e)||we(e)||be(e))&&Ne.test(_e(e))}(t))throw this.ok.error("BAD_URL","invalid import url for component. must be .ok.js, .ok.mjs or .ok.html",{url:t});let i=t;if(null!==r){const e=t.includes("?")?"&":"?";i=`${t}${e}t=${r}`}const s=ht(this.ok);if(s)try{i=s(i,null)}catch{if(i=t,null!==r){const e=t.includes("?")?"&":"?";i=`${t}${e}t=${r}`}}const a=(async()=>{const n=t.endsWith(".ok.html")?await lt(i,e):(await import(i)).default;return n.url=t,ut.set(t,n),n})();return ut.set(t,a),a},async _doImport(e){if("pending"!==e.state)throw e.ok.error("INVALID_STATE",`Cannot import component in state "${e.state}"`,{registration:e});e.state="importing";const t=this.resolveImportPath(e.config.import,e.base),n=await this.fetchDefinition(t,{t:e.config.t});if(Array.isArray(n)){e.type="bundle",e.state="ready",e.bundle=n,delete n.url;for(const n of e.bundle)this.register(n,{base:t});return null}e.state="imported",e.raw=n,e.config?.tag&&e.config.tag!==e.raw.tag&&(e.raw={...e.raw,tag:e.config.tag,originalTag:e.raw.tag,url:t});const r=e.id;e.id=(e.parent?e.parent.id+"~":"")+e.raw.tag.toUpperCase(),this.cache.delete(r);const o=this.cache.get(e.id);o&&o!==e&&this.unregister(e.id),this.cache.set(e.id,e),this.registerRaw(e),await this._doInit(e)},async _doInit(t){if("ready"===t.state)return;for(const e of t.dependencies||[])(e.config.tag||e.raw?.tag)&&e.config.lazy||await this.init(e);const n=t.ready??={...t.raw,id:t.id,loaded:!0,_activatedHeads:new Set,_injectedStyles:new Map};n.template=ct(t.raw.template||"",e,{selfClosing:this.ok.config.self_closing||"allow"}),function(e,t){const n=(e,t)=>e.replace(/\[\[(.*?)]]/g,(e,n)=>new URL(n.trim(),t).href);"string"==typeof e.template&&(e.template=n(e.template,t)),"string"==typeof e.style&&(e.style=n(e.style,t)),Array.isArray(e.style)&&(e.style=e.style.map(e=>"string"==typeof e?n(e,t):e))}(n,t.raw.url||t.base),function(e,t){const n=e.raw;let r=dt.get(e.raw);r.tagToStyles=r.tagToStyles||new Map;const o=r.tagToStyles.get(e.ready.tag);if(o)return e.ready.style=o,o;const i=[],s=Array.isArray(n.style)?n.style:n.style?[n.style]:[];for(const r of s){let o;if("string"==typeof r)o=t.createElement("style"),o.textContent=r.replaceAll("[tag]",e.ready.tag),i.push(o);else{if(!r?.href)throw new Error("Invalid style definition in component: "+n.tag);if(o=Object.assign(t.createElement("link"),{rel:"stylesheet",href:r.href}),!pt.has(r.href)){const e=new Promise(e=>{o.onload=()=>{o.remove(),e()},o.onerror=t=>{o.remove(),e()}});pt.set(r.href,e),t.head.appendChild(o)}i.push(o)}o.setAttribute("data-ok",""),o.setAttribute("data-ok-tag",e.ready.tag),o.setAttribute("data-ok-src",e.ready.url)}e.ready.style=i,r.tagToStyles.set(e.ready.tag,i)}(t,e.config.document||globalThis.document);const r=dt.get(t.raw);r&&!r.ranRegister.has(e)&&(r.ranRegister.add(e),t.raw.register?.(e,t)),t.state="ready",this.emit("ready",t)},async init(e){return e._initPromise||(e._initPromise=(async()=>{if("import"===e.type&&"pending"===e.state&&await this._doImport(e),"bundle"!==e.type){if(!e.raw)throw this.ok.error("INVALID_STATE",`Cannot init component in state "${e.state}"`,{registration:e});await this._doInit(e)}})(),await e._initPromise,this.emit("initialized",e.raw)),e._initPromise},_activateInjectStyles(e,t){if("ready"!==e.state)throw e.ok.error("INVALID_STATE",`Cannot inject styles for component in state "${e.state}"`,{registration:e});const n=[],r=t?.$ok.config.head,o=e.ready;if(!o.style||0===o.style.length)return;const i=function(e,t){const n=function(e){return e.url+":"+e.tag}(t);let r=ft.get(e);r||(r=new Map,ft.set(e,r));let o=r.get(n);return o&&o.parentNode===e||(o=function(e,t){for(const n of e.childNodes||[])if(8===n.nodeType&&n.nodeValue===t)return n;return null}(e,n),o||(o=e.ownerDocument.createComment(n),e.appendChild(o)),r.set(n,o)),o}(r,o);let s=o._injectedStyles.get(r);s||(s=new Map,o._injectedStyles.set(r,s));const a=function(e,t){const n=new Map;for(const r of e.querySelectorAll("style[data-ok], link[data-ok]")){if(r.getAttribute("data-ok-tag")!==(t.tag??""))continue;if(r.getAttribute("data-ok-src")!==String(t.url))continue;const e=mt(r);let o=n.get(e);o||(o=[],n.set(e,o)),o.push(r)}return n}(r,o);for(const e of o.style){let t=s.get(e);if(t)continue;const o=mt(e),c=a.get(o)?.shift();if(c){s.set(e,new Set([c]));continue}t=new Set;const l=e.cloneNode(!0);if(r.insertBefore(l,i),t.add(l),s.set(e,t),"LINK"===e.tagName){const t=pt.get(e.href);t&&n.push(t)}}return 0===n.length?(e.ready._activatedHeads.add(r),void this.emit("activated-head",e.ready,r)):Promise.all(n).then(()=>{e.ready._activatedHeads.add(r),this.emit("activated-head",e.ready,r)})},activate(e,t){if(!t)throw this.ok.error("MISSING_PARAMETER","Scope parameter is required to activate a component.",{registration:e});let n;if("ready"!==e.state&&(n=this.init(e)),n)return n.then(async()=>{if("ready"!==e.state)throw this.ok.error("INVALID_STATE",`Cannot activate component in state "${e.state}"`,{registration:e});await this._activateInjectStyles(e,t),this.emit("activated",e,t)});{if("ready"!==e.state)throw this.ok.error("INVALID_STATE",`Cannot activate component in state "${e.state}"`,{registration:e});const n=this._activateInjectStyles(e,t);if(n)return n.then(()=>{this.emit("activated",e,t)});this.emit("activated",e,t)}},registerRaw(e){if(!e.raw)throw this.ok.error("BAD_REGISTRATION",`Cannot register component with tag "${e.config?.tag}" because its raw definition is missing.`);!function(e,t={}){const{onInvalidUrl:n=()=>{}}=t;if(!e||"object"!=typeof e)throw new Error("Definition must be an object");if("import"in e)throw new Error("Raw definitions cannot include `import`");if(!e.tag||"string"!=typeof e.tag)throw new Error("Raw definitions must include a `tag`");if(!Ie(e.tag))throw new Error(`Invalid tag name: ${e.tag}`);if(e.original_tag&&!Ie(e.original_tag))throw new Error(`Invalid original_tag: ${e.original_tag}`);if(void 0!==e.template&&"string"!=typeof e.template)throw new Error(`Template for ${e.tag} must be a string`);if(!(e.template||e.context||e.register||e.parse||e.prepare||e.mount||e.mounted||e.ready||e.init||e.unmount||e.unmounted||e.destroy||e.style))throw new Error(`Definition for ${e.tag} must include logic or template`);if(e.style){const t=Array.isArray(e.style)?e.style:[e.style];for(const n of t){const t="string"==typeof n,r=n&&"object"==typeof n&&"string"==typeof n.href;if(!t&&!r)throw new Error(`Invalid style entry in component ${e.tag}`)}}if(e.dependencies){if(!Array.isArray(e.dependencies))throw new Error(`Dependencies for ${e.tag} must be an array`);for(const t of e.dependencies)if("string"==typeof t)Re(t)||n("dependency",t,e);else if(je(t))Pe(t,{onInvalidUrl:n});else if(Le(t)||Me(t));else if(!De(t))throw new Error(`Invalid dependency in ${e.tag}`)}(function(e){if(e.attr){if("object"!=typeof e.attr||Array.isArray(e.attr))throw new Error("Attribute definitions must be an object");for(const[t,n]of Object.entries(e.attr)){if("string"!=typeof t||"object"!=typeof n||null==n||Array.isArray(n))throw new Error(`Attribute definition "${t}" must be a valid object`);const{required:e,alias:r,validate:o,default:i,empty:s,description:a}=n;if("required"in n&&"boolean"!=typeof e)throw new Error(`"required" in attr "${t}" must be a boolean`);if("alias"in n&&(!Array.isArray(r)||!r.every(e=>"string"==typeof e)))throw new Error(`"alias" in attr "${t}" must be an array of strings`);if("validate"in n&&"function"!=typeof o)throw new Error(`"validate" in attr "${t}" must be a function`);if("description"in n&&"string"!=typeof a)throw new Error(`"description" in attr "${t}" must be a string`)}}})(e),e.unwrap=void 0!==e.unwrap&&e.unwrap,e.initOwnChildren=void 0!==e.initOwnChildren&&e.initOwnChildren,e.loaded=!1}(e.raw);let t=dt.get(e.raw);t||(t={registered:new WeakSet,ready:!1,readyPromise:null,ranRegister:new WeakSet},dt.set(e.raw,t));for(let t of e.raw.dependencies||[]){if(t===e.raw.tag)throw this.ok.error("BAD_DEFINITION",`Component with tag "${e.raw.tag}" cannot depend on itself.`);this.register(t,{parentId:e.id,base:e.raw.url})}if(e.state="raw",t.registered.add(this.ok),e.raw.alias&&Array.isArray(e.raw.alias))for(const t of e.raw.alias){if(!t||"string"!=typeof t)continue;const n=(e.parent?e.parent.id+"~":"")+t.toUpperCase();this.cache.has(n)||this.cache.set(n,e)}},unregister(e){const t=this.cache.get(e);if(!t)return;for(const e of t.dependencies)this.unregister(e.id);if(t.parent?.dependencies.delete(t),t.ready){for(const[e,n]of t.ready._injectedStyles)for(const e of n.values())for(const t of e)t.remove();t.ready._injectedStyles.clear(),t.ready._activatedHeads.clear()}let n=!0;for(const e of this.cache.values())if(t.config?.import===e.config?.import&&t!==e){n=!1;break}n&&(dt.delete(t.raw),ut.delete(t.url||t.config?.import)),this.cache.delete(e),this.emit("unregistered",t)},register(e,{parentId:t=null,base:n=null,override:r=!1,linkOnly:o=!1}={}){if(Array.isArray(e)){for(const i of e)this.register(i,{parentId:t,base:n,override:r,linkOnly:o});return}"string"==typeof e&&(e={import:e,lazy:!1});const i=t&&this.cache.get(t);if(t&&!i)throw this.ok.error("BAD_REGISTRATION",`Cannot register component with tag "${e.tag}" in the local scope of "${t}" because "${t}" is not registered.`);const s=e.tag||e.module?.tag,a=(t?t+"~":"")+(s?.toUpperCase()||"IMPORT_"+e.import),c=this.cache.get(a);if(c){if(o){const e=t&&this.cache.get(t);return e&&e.dependencies.add(c),c}if(!r)throw this.ok.error("BAD_REGISTRATION",`Component with tag "${s}" is already registered${t?` in the local scope of "${t}"`:" in the global scope"}.`);this.unregister(a)}const l={id:a,base:n||i?.base||null,parent:i,dependencies:new Set,type:"unknown",state:"pending",config:e,options:{base:n,override:r},raw:null,ready:null,_instances:new Set};try{l.url=e.import?this.resolveImportPath(e.import,l.base):null}catch(e){}this.cache.set(a,l);try{if(je(e))Pe(e),l.type="import";else if(Le(e)){if(!Ie(e.tag))throw this.ok.error("BAD_DEFINITION",`Invalid tag name: ${e.tag}`);if(!i)throw this.ok.error("BAD_DEFINITION",`Component with tag "${e.tag}" is not registered and cannot be used as a dependency.`);l.type="link",l.raw=this.cache.get(e.tag.toUpperCase())?.raw,this.registerRaw(l)}else e.module?(l.type="module",l.raw=e.module,this.registerRaw(l)):De(e)&&(l.type="raw",l.raw=e,this.registerRaw(l));i&&i.dependencies.add(l)}catch(e){throw l.state="error",l.error=e,e}return i&&l.config.lazy||this.pendingInit.add(l),l},_resolveFromDef(e,t){return e?e.tag.toUpperCase()===t.toUpperCase()?this.cache.get(e.id):this.cache.get(e.id+"~"+t.toUpperCase()):null},getRegistration(e,t=null){if(t?.$owner&&!t.$owner.$__unmount__$){const n=t.$owner,r=n.$cache?.cmp?.def??n.$cmp?.$cache?.cmp?.def??null,o=this._resolveFromDef(r,e);if(o)return o}if(t?.$resolveDef){const n=this._resolveFromDef(t.$resolveDef,e);if(n)return n}const n=t?.$cmp,r=n?.$resolveCmp;let o=n?.$cache.cmp?.def,i=this._resolveFromDef(o,e);return i||(r&&(o=r.$cache.cmp?.def,i=this._resolveFromDef(o,e),i)?i:this.cache.get(e.toUpperCase()))},async initPendingRegistrations(e){if(this.pendingInit.size){const e=[];for(const t of this.pendingInit)e.push(this.init(t)),this.pendingInit.delete(t);await Promise.all(e)}},refreshImports(e=[]){const t=new Set;for(const{url:n,token:r=null}of e)if(n&&ut.has(n)){for(const e of[...this.cache.values()]){if(e.url!==n||"import"!==e.type)continue;const o={...e.config,t:r};!o.tag&&e.raw?.tag&&(o.tag=e.raw.tag);const i=e.parent?.id,s=e.base,a=[...e._instances];this.unregister(e.id),this.register(o,{parentId:i,base:s,override:!0});for(const e of a)t.add(e)}ut.delete(n)}return t}})}const $t=e=>({mode:"debug"===e?"throw":"default",component:null,boundary_component:null}),yt={self_closing_tag:"allow"},wt={whiteSpace:"remove"},bt={warnLimit:1e3},vt={},_t={},kt={container:null},At=e=>({remove_bind_attributes:"prod"===e,set_bind_attributes:"prod"!==e}),Ot=e=>({console:"prod"!==e});function Et(e){return Array.isArray(e)?e.filter(e=>"function"==typeof e):[]}function Tt(...e){const t={init:{prepare:[],resolveTarget:[],after:[],error:[]}};for(const n of e)n&&(t.init.prepare.push(...Et(n.init?.prepare)),t.init.resolveTarget.push(...Et(n.init?.resolveTarget)),t.init.after.push(...Et(n.init?.after)),t.init.error.push(...Et(n.init?.error)));return t}function xt(e,t){t&&"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"node")&&(e.node=t.node),Object.prototype.hasOwnProperty.call(t,"context")&&(e.context=t.context),Object.prototype.hasOwnProperty.call(t,"result")&&(e.result=t.result),t.meta&&"object"==typeof t.meta&&Object.assign(e.meta,t.meta))}function St(e){if(!e||"object"!=typeof e||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Ct(e,t){const n={...t};for(const r in e)St(e[r])&&St(t[r])?n[r]=Ct(e[r],t[r]):n[r]=e[r];return n}const Nt=Symbol("OK");function It(e){return e}const Rt=(e={env:"dev"})=>{const t=Rt.defaultConfig||{},r=t.hooks,o=e.hooks;e=Ct(e,t);const s=Tt(Rt.defaultHooks,globalThis.__OK_HMR__?.hooks,globalThis.__OK_SSG__?.hooks,r,o);var a;e={env:"dev",window:e.window||globalThis.window,document:e.document||e.window?.document||globalThis.document,head:e.head||e.document?.head||globalThis.document?.head,body:e.body||e.document?.body||globalThis.document?.body,resolveImportURL:e.resolveImportURL||globalThis.__OK_SSG__?.resolveImportURL||void 0,...e,proxy:Ct(e.proxy??{},vt),component:Ct(e.component??{},yt),dom:Ct(e.dom??{},(a=e.env,{marker:"prod"===a?se.defaultEmptyTextMarker:se.defaultCommentMarker})),crash:Ct(e.crash??{},$t(e.env)),singleton:Ct(e.singleton??{},kt),text:Ct(e.text??{},wt),each:Ct(e.each??{},bt),bind:Ct(e.bind??{},At(e.env)),shared:Ct(e.shared??{},_t),log:Ct(e.log??{},Ot(e.env)),hooks:s};const l={[Nt]:!0,OK:Rt,createLogger:at,_scopeIdCounter:0,dom:se(e.dom),util:z,config:e,hooks:e.hooks,error:(e,t,r={})=>new n(e,t,{ok:l,...r},{depth:1}),func:c,scope(e,t={}){const n=Je(this,e,t);return this._scopeEnhancers.forEach(e=>{try{e(n)}catch(t){throw this.error("SCOPE_ENHANCER_CRASH",t,{fn:e,scope:n})}}),n},_scopeEnhancers:[],enhanceScope(e){if("function"!=typeof e)throw this.error("SCOPE_ENHANCER_NOT_A_FUNCTION",null,{fn:e});return this._scopeEnhancers.push(e),()=>{const t=this._scopeEnhancers.indexOf(e);-1!==t&&this._scopeEnhancers.splice(t,1)}},addHook(e,t){if("function"!=typeof t)throw this.error("BAD_HOOK","Hook must be a function",{path:e,fn:t});const n=String(e||"").split(".");let r=this.hooks;for(let e=0;e<n.length-1;e++)r=r?.[n[e]];const o=r?.[n[n.length-1]];if(!Array.isArray(o))throw this.error("BAD_HOOK_PATH","Unknown hook path",{path:e});return o.push(t),()=>{const e=o.indexOf(t);-1!==e&&o.splice(e,1)}},async _runInitHooks(e,t){const n=this.hooks?.init?.[e]||[];for(const e of n)xt(t,await e(t))},async _initDirect(e=this.config.body,t=null){return Ke(e)||(e.$scope||(e.$scope=this.scope(e,{$ok:this,$context:t||void 0})),e.$scope?.$__init__$||await(e.$scope?.$init())),e},async init(e=this.config.body,t=null){const n={ok:this,requestedNode:e,node:e,context:t,result:null,meta:{}};try{return await this._runInitHooks("prepare",n),await this._runInitHooks("resolveTarget",n),null==n.result&&(n.result=await this._initDirect(n.node,n.context)),await this._runInitHooks("after",n),n.result}catch(e){throw n.error=e,await this._runInitHooks("error",n),e}},async destroy(e,t=!0){await(e.$scope?.$destroy(t)),t&&this.dom.remove(e)},...A,createNodes(e){if(null==e)return[];if(e instanceof HTMLTemplateElement)return Array.from(e.content.cloneNode(!0).childNodes);if(null!=e&&"number"==typeof e.nodeType)return[e];const t=ct(String(e),{self_closing_tag:this.config.component.self_closing_tag});return Array.from(t.content.childNodes)},scopeToId:new Map,idToScope:new Map,registerScope(e){const t=e.$id;return this.scopeToId.set(e,t),this.idToScope.set(t,e),t},unregisterScope(e){const t=this.scopeToId.get(e);return t?(this.scopeToId.delete(e),this.idToScope.delete(t),!0):null},getScopeById(e){return this.idToScope.get(+e)||null},get on(){return this[i.SYMBOLS.ON]??=i.on.bind(null,this)},get once(){return this[i.SYMBOLS.ON]??=i.once.bind(null,this)},get off(){return this[i.SYMBOLS.OFF]??=i.off.bind(null,this)},get emit(){return this[i.SYMBOLS.EMIT]??=(...e)=>{try{i.emit.call(null,this,...e)}catch(t){throw new n("EMIT_ERROR",t,{message:"Failed to emit event",event:event,args:e})}}},get offAll(){return this[i.SYMBOLS.OFF_ALL]??=i.offAll.bind(null,this)},_scopePerf(e){const t=e.$lifecycle;if(!t||!e.$__init__$)return null;const n=e.$__init__$,r=t.mounted?.timestamp,o=t.ready?.timestamp,i=t.initialized?.timestamp,s=t.unmounted?.timestamp;return{id:e.$id,node:e.$el,tag:e.$el?.tagName?.toLowerCase()||"#text",start:n,mount:r,ready:o,init:i,destroy:s,duration:{mount:r&&n?r-n:null,ready:o&&r?o-r:null,init:i&&o?i-o:null,total:i&&n?i-n:null,alive:s&&n?s-n:null},state:e.$state}},perfDump({sortBy:e="total",limit:t=null}={}){const n=[];for(const e of this.scopeToId.keys()){const t=this._scopePerf(e);t&&n.push(t)}if(!n.length)return[];const r=t=>t.duration?.[e]??1/0;return n.sort((e,t)=>r(t)-r(e)),t&&(n.length=Math.min(t,n.length)),n}},u=at(l,null,["ok"]);e.log.console&&i.on(l,"log",e=>{l.log.printToConsole(e)});const d=f({...e.proxy,wrapHandle:e=>(...t)=>{try{return e(...t)}catch(e){throw l.error("OK_PROXY_HANDLE_CRASH",e)}}});d.log=u.asConsole(d,["proxy"]);const p=gt(l);return Object.assign(l,{proxyInstance:d,proxy:d.proxy.bind(d),log:u,flush:d.flush.bind(d),componentRegistry:p,register:p.register.bind(p)}),l.shared=d.proxy({}),Object.keys(re).forEach(e=>{re[e]._primitive=!0,p.register(re[e])}),l};Rt.OKProxy=f,Rt.OKDom=se,Rt.OKError=n,Rt.OK_SYMBOL=Nt,Rt.Emitter=i,Rt.OKScope=Je,Rt.createHooks=function(){return{init:{prepare:[],resolveTarget:[],after:[],error:[]}}},Rt.mergeHooks=Tt,Rt.defineComponent=It,Rt.defaultHooks={init:{prepare:[],resolveTarget:[],after:[],error:[]}},Rt.defaultConfig={},Rt.url=import.meta.url,Rt.init=async(e=globalThis.document?.body,t=null,n={})=>{const r=Rt(n);return await r.init(e,t),r};export{Rt as default,It as defineComponent};
|
|
2
|
-
//# sourceMappingURL=ok.esm.min.js.map
|
|
1
|
+
function t(t){const e=o,n=t.replace(/-/g,"+")[e(271)](/_/g,"/"),r=n+"==".slice(0,(4-n[e(280)]%4)%4);try{const t=atob(r),n=new Uint8Array(t[e(280)]);for(let r=0;r<t[e(280)];r++)n[r]=t[e(278)](r);return n}catch{return null}}function e(e){const n=o,r=t(e);if(!r)return null;try{return(new TextDecoder)[n(257)](r)}catch{return null}}function n(t){const e=o;if(!/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/[e(275)](t))return!1;const[n,r]=t[e(260)](".")[e(293)](Number);return 127===n||10===n||192===n&&168===r||172===n&&r>=16&&r<=31}function r(t,e){const r=o;return(void 0===e||e===r(265)||e===r(288))&&!!t&&(t===r(286)||(t[r(274)](":")?"::1"===t||!!/^f[cd]/i[r(275)](t)||!!t[r(297)]("::ffff:")&&n(t[r(258)](7)):n(t)))}function o(t,e){return t-=253,s()[t]}function s(){const t=["18cisPgb","replace","3391927AWLHUK",'meta[name="okjs-license"]',"includes","test","querySelector","string","charCodeAt","expired","length","okjs","__OKJS_LICENSE__","1517850PBfkzb","2Atogsy","endsWith","localhost","crypto","https:","731423qYeHwb","domains","parse","Ed25519","map","encode","getAttribute","127013lTMxjh","startsWith","1745iWQGzv","isArray","invalid_signature","subtle","157928bazpgJ","floor","decode","slice","crypto_unavailable","split","content","607020zgzzMX","4SwntgY","signatureBytes","http:","invalid_issuer","2616nmKbWt","document","exp"];return(s=function(){return t})()}!function(){const t=o,e=s();for(;;)try{if(123354==parseInt(t(296))/1*(-parseInt(t(284))/2)+-parseInt(t(262))/3*(parseInt(t(263))/4)+-parseInt(t(298))/5*(-parseInt(t(267))/6)+parseInt(t(289))/7+parseInt(t(255))/8*(parseInt(t(270))/9)+-parseInt(t(283))/10+parseInt(t(272))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const i=f;!function(){const t=f,e=m();for(;;)try{if(295738==-parseInt(t(429))/1*(-parseInt(t(416))/2)+parseInt(t(413))/3*(-parseInt(t(418))/4)+parseInt(t(425))/5+parseInt(t(423))/6+parseInt(t(435))/7+parseInt(t(432))/8*(-parseInt(t(419))/9)+parseInt(t(422))/10*(-parseInt(t(443))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const a="position:fixed;bottom:8px;right:8px;z-index:2147483647;pointer-events:none;"+i(440)+"color:#fff;opacity:.35;mix-blend-mode:difference";let c=null,l=null,u=!1;function f(t,e){return t-=413,m()[t]}function p(){const t=i,e=document[t(448)](t(414));return e[t(433)](t(441),a),e[t(434)]="Powered by okjs",e}function h(){const t=i;l[t(415)](),c&&c.parentNode&&c.parentNode[t(447)](c),c=p(),document[t(417)].appendChild(c),l[t(436)](document.body,{childList:!0}),l[t(436)](c,{attributes:!0,characterData:!0,subtree:!0})}function d(t,e){const n=i;if(typeof document===n(442))return;if(!document[n(417)])return void(document[n(424)]===n(427)&&document[n(420)](n(445),()=>d(t,e),{once:!0}));if(u){if(c&&document[n(417)][n(444)](c))return;l&&(l[n(415)](),l=null),c=null,u=!1}u=!0;const r=e?n(430)+t+'": '+e+".":n(421)+t+'".';console[n(438)](r),console.warn("[okjs] Purchase a license at https://okjs.dev/license"),c=p(),document.body[n(428)](c);const o=(typeof MutationObserver!==n(442)?MutationObserver:null)??document[n(426)]?.MutationObserver;o&&(l=new o(t=>{const e=n;for(const n of t)if(n[e(439)]===e(446)&&n.target===document[e(417)]){if(!document[e(417)][e(444)](c))return void h()}else if(n[e(431)]===c||c&&c[e(444)](n[e(431)]))return void h()}),l[n(436)](document[n(417)],{childList:!0}),l[n(436)](c,{attributes:!0,characterData:!0,subtree:!0}))}function m(){const t=["warn","type",'font:10px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;',"style","undefined","11kZrEXf","contains","DOMContentLoaded","childList","removeChild","createElement","6wUxLZU","div","disconnect","341012hpElFc","body","206628pzzwZJ","225NntWqL","addEventListener",'[okjs] Unlicensed usage detected on "',"3202790TKEDRY","1191636YRdVDN","readyState","2678635TTiYto","defaultView","loading","appendChild","2QdbedI",'[okjs] License check failed on "',"target","178144dfbxbr","setAttribute","textContent","1404802eeShGu","observe","parentNode"];return(m=function(){return t})()}function g(){const t=["4505YDFLgg","scope","find",". Caused by: ","6348608OUasQg","toString","4887TlXtjY","cause","8390jmDlJL","meta","toJSON","match","2968yYVKMA","14ZCKBaa","test","515319VYIsSJ","random","message","stack","split","now","]: ","12dPvWfI","slice","42116448oJTCej","name","code","ok_error_","38949ekzpcJ","1054057YTMnWo"];return(g=function(){return t})()}const y=$;!function(){const t=$,e=g();for(;;)try{if(618901==-parseInt(t(242))/1+-parseInt(t(226))/2*(parseInt(t(241))/3)+-parseInt(t(225))/4*(parseInt(t(243))/5)+parseInt(t(235))/6*(-parseInt(t(228))/7)+-parseInt(t(247))/8+parseInt(t(249))/9*(-parseInt(t(251))/10)+parseInt(t(237))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const w=y(240)+Date[y(233)]()[y(248)](36)+"_"+Math[y(229)]()[y(248)](36)[y(236)](2,6);let I=1;class b extends Error{constructor(t,e,n={},r={}){const o=y,{depth:s=0}=r,i=n.message||t||e?.[o(230)]||"An error occurred";if(super(n.message||""+i,{cause:e}),this.id=this.id=w+"_"+I++,this[o(238)]="OKError",this.code=t,this[o(244)]=n.scope,this.ok=n.ok||this.scope?.$ok,this[o(222)]=n,delete this[o(222)].ok,delete this[o(222)][o(244)],delete this[o(222)][o(230)],Error.captureStackTrace&&Error.captureStackTrace(this,b),this[o(231)]&&s>0){const t=this[o(231)][o(232)]("\n"),e=[t[0],...t[o(236)](s+1)],n=e[o(245)](t=>/\(?(.+):\d+:\d+\)?/[o(227)](t)),r=n?.[o(224)](/\(?(.+):(\d+):(\d+)\)?/);r&&(this.location={file:r[1],line:Number(r[2]),column:Number(r[3])}),this.stack=e.join("\n")}}get rootCauseMessage(){const t=y;let e=this;for(;e[t(250)]instanceof b;)e=e[t(250)];return e[t(230)]+(e.cause?t(246)+e[t(250)]:"")}[y(223)](){const t=y;return{name:this[t(238)],code:this[t(239)],message:this.message,meta:this[t(222)],stack:this.stack,cause:this.cause?.[t(248)]()}}[y(248)](){const t=y;return this[t(238)]+" ["+this[t(239)]+t(234)+this.message}}function $(t,e){return t-=222,g()[t]}const v=k;function k(t,e){return t-=387,A()[t]}!function(){const t=k,e=A();for(;;)try{if(585712==parseInt(t(407))/1*(parseInt(t(397))/2)+parseInt(t(402))/3*(parseInt(t(391))/4)+-parseInt(t(399))/5*(parseInt(t(396))/6)+parseInt(t(388))/7*(-parseInt(t(387))/8)+parseInt(t(389))/9*(parseInt(t(393))/10)+parseInt(t(405))/11+parseInt(t(400))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const _=new WeakMap,O={on(t,e){return E.on(this,t,e)},once(t,e){return E[k(394)](this,t,e)},off(t,e){return E[k(395)](this,t,e)},offAll(){return E[k(401)](this)},emit(t,...e){const n=k;try{return E.emit(this,t,...e)}catch(r){throw new b(n(403),r,{event:t,args:e})}}},E={SYMBOLS:{ON:Symbol("on"),ONCE:Symbol(v(394)),OFF:Symbol(v(395)),OFF_ALL:Symbol("offAll"),EMIT:Symbol(v(404))},EmitterProto:O,bind:t=>({on(e,n){E.on(t,e,n)},once(e,n){E[k(394)](t,e,n)},off(e,n){E[k(395)](t,e,n)},offAll(e){E[k(401)](t,e)},emit(e,...n){E.emit(t,e,...n)}}),on(t,e,n){const r=v;let o=_.get(t);!o&&(o=new Map,_[r(390)](t,o));let s=o[r(406)](e);return!s&&(s=new Set,o.set(e,s)),s.add(n),{scope:t,event:e,fn:n,stop(){E.off(t,e,n)}}},once(t,e,n){const r=(...o)=>{E.off(t,e,r),n(...o)};return E.on(t,e,r),{scope:t,event:e,originalFn:n,fn:r,stop(){E.off(t,e,r)}}},off(t,e,n){const r=v,o=_[r(406)](t);if(o){if(e){const t=o[r(406)](e);if(!t)return;t[r(392)](n),0===t.size&&o[r(392)](e)}(!e||0===o[r(398)])&&_.delete(t)}},offAll(t){_[v(392)](t)},emit(t,e,...n){const r=v,o=_[r(406)](t);if(!o)return;const s=o[r(406)](e);if(s)for(const t of s)t(...n)}};function A(){const t=["get","15854BfOSoX","8RauLHH","7331149yapsSV","72gQNgsa","set","28tJaaex","delete","119140PLsmrv","once","off","6cNPVST","82oJowhp","size","3893245qXGtzb","16323156NhSnQL","offAll","8070hkgHWJ","EMIT_ERROR","emit","3159739oRvgVq"];return(A=function(){return t})()}const T=C;!function(){const t=C,e=x();for(;;)try{if(404438==-parseInt(t(203))/1+parseInt(t(208))/2+-parseInt(t(183))/3+parseInt(t(198))/4+-parseInt(t(192))/5+parseInt(t(200))/6*(parseInt(t(193))/7)+-parseInt(t(205))/8*(-parseInt(t(189))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const S=new Map;function x(){const t=["1425982CqVJom","\\${","set","EXPR_EVAL_BAD_ARGUMENT","`, Object.fromEntries(Object.entries(ctx).filter(([k]) => ","1406472VcYjfO","length","Expression expects no context, but got one","replace","return (","join","5532282tZTHOn","push","stringify","3086840lIwNpM","114009yvkxui","$scope","ctx","$vars","onError","1241340ogtRxB","has","90EofpoS","toString","debugger;","391699YSLgGZ","log","8uSUVjz","get","reduceRight"];return(x=function(){return t})()}function C(t,e){return t-=182,x()[t]}function N(t){const e=C;return t[e(186)](/\\/g,"\\\\")[e(186)](/`/g,"\\`")[e(186)](/\$\{/g,e(209))}function R(t,{debug:e=!1,log:n=!1,layers:r=[]}={}){const o=T,s=Object(t)[o(201)]().trim(),i=[];e&&i[o(190)]("debug"),n&&i[o(190)](o(204));const a=(i.length?i[o(188)](",")+":"+s:s)+"~"+r;if(S[o(199)](a))return S[o(206)](a);let c;try{const t=function(t,{debug:e=!1,log:n=!1,layers:r=["$scope",T(196),"$context"]}={}){const o=T,s=[];if(e&&s[o(190)](o(202)),n){const e=N(t);s[o(190)]('console.log("RUNNING", `'+e+o(182)+JSON[o(191)](r)+".includes(k))));")}return s[o(190)](o(187)+t+");"),r[o(207)]((t,e)=>"with (ctx."+e+") {\n"+t+"\n}",s[o(188)]("\n"))}(s,{debug:e,log:n,layers:r});c=new Function(o(195),o(197),t)}catch(e){throw new b("EXPR_COMPILE_FAILED",e,{message:"Failed to compile expression: `"+N(s)+"`",cmd:t})}const l=t=>{const e=o;if(r[e(184)]&&!t)throw new b(e(211),"Expression requires a context with: "+r[e(188)](", "));if(void 0!==t&&!r[e(184)])throw new b("EXPR_EVAL_BAD_ARGUMENT",e(185));try{return c(t)}catch(n){throw new b("EXPR_EVAL_ERROR",n,{message:"Failed to evaluate expression: `"+N(s)+"`",scope:t?.[e(194)]})}};return S[o(210)](a,l),l}!function(){const t=M,e=j();for(;;)try{if(136519==parseInt(t(233))/1*(parseInt(t(235))/2)+parseInt(t(236))/3+-parseInt(t(231))/4+parseInt(t(226))/5+parseInt(t(239))/6+parseInt(t(237))/7*(parseInt(t(243))/8)+-parseInt(t(248))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const L=Symbol("ReactiveMap");function M(t,e){return t-=225,j()[t]}function j(){const t=["size","trackDependency","map","get","6885378jwdDFH","set","1288965KOARXM","emitChange","clear","delete","values","986792TsWtFq","forEach","208261eBiGPE","entries","2ptLSkz","693807gbXOZu","174559XPwKUE","keys","1359018RJTBcD","iterator","has","proxy","72USLZnq"];return(j=function(){return t})()}function D(t){const e=M;class n extends Map{constructor(t){super(),this[L]=t}get[e(244)](){const n=e;return t[n(245)](this,n(244)),this[L][n(244)]}[e(247)](n){const r=e;return t[r(245)](this,n),t[r(242)](this[L][r(247)](n),{allowNonObjects:!0})}[e(225)](n,r){const o=e,s=this[L].has(n),i=this[L].get(n),a=this[L].set(n,r),c=this[L][o(247)](n);return t.emitChange(this,n,i,c,{type:"map",mode:"set"}),!s&&t[o(227)](this,o(244),this[L][o(244)]-1,this[L][o(244)],{type:o(225),mode:o(244)}),a}delete(n){const r=e;if(!this[L][r(241)](n))return!1;const o=this[L][r(247)](n),s=this[L][r(229)](n);return t.emitChange(this,n,o,void 0,{type:r(246),mode:r(229)}),t.emitChange(this,"size",this[L][r(244)]+1,this[L][r(244)],{type:r(246),mode:r(244)}),s}[e(228)](){const n=e,r=this[L][n(244)];this[L][n(228)](),t[n(227)](this,n(244),r,0,{type:n(246),mode:n(244)}),t[n(227)](this,null,void 0,void 0,{type:n(246),mode:n(228)})}[e(241)](n){return t[e(245)](this,n),this[L].has(n)}[e(234)](){const t=e;return this[L][t(234)]()}[e(238)](){return this[L].keys()}[e(230)](){return this[L].values()}[Symbol[e(240)]](){return this[L][Symbol.iterator]()}[e(232)](t,n){const r=e;this[L][r(232)]((e,r)=>t.call(n,e,r,this))}}return{filter:t=>t instanceof Map,handler:(t,e)=>new n(e)}}function P(){const t=["2090832kMNvzU","apply","prototype","1625656dkwWlt","array","shift","get","68746eRWJuD","emitChange","set","4770xfmxoQ","pop","unshift","trackDependency","42kCUTaF","length","symbol","42etKdbR","382497XldXUi","2238235oDYrkx","splice","includes","proxy","157087wWgYYh","6320YLqAwL"];return(P=function(){return t})()}function U(t,e){return t-=143,P()[t]}function F(t){const e=new WeakMap;return{filter:Array.isArray,handler:(n,r)=>function(t,n){const r=U,o={},s=new Proxy(t,{get(t,e,r){const i=U;return e===i(151)?(n[i(149)](s,"length"),Reflect[i(167)](t,e,r)):typeof e===i(152)?Reflect.get(t,e,r):isNaN(e)?["push",i(147),i(166),i(148),i(156)][i(157)](e)?(!o[e]&&(o[e]=function(...r){const o=i,s=t[o(151)],a=Array[o(163)][e][o(162)](t,r);return n.emitChange(t,o(151),s,t[o(151)],{type:o(165),mode:e,args:r}),a}),o[e]):n.proxy(Reflect.get(t,e,r),{allowNonObjects:!0}):(n[i(149)](s,e),n[i(158)](Reflect.get(t,e,r),{allowNonObjects:!0}))},set(t,e,r,o){const s=U,i=t[e],a=t[s(151)],c=Reflect.set(t,e,r,o);return n[s(144)](t,e,i,r,{type:s(165),mode:s(145)}),!isNaN(e)&&Number(e)>=a&&n[s(144)](t,s(151),a,Number(e)+1,{type:s(165),mode:s(145)}),c}});return e[r(145)](s,o),s}(r,t)}}function W(){const t=["4836159bCvvDE","16vzYvIK","2571762TRArot","523789xjhAQw","symbol","function","has","size","25200470IOpzNF","1229695zUHgGT","714543Damama","4841557qpAEmI","bind","add","clear","2ZTBXRG","8ldFrpD","set","delete","trackDependency","emitChange"];return(W=function(){return t})()}function B(t,e){return t-=415,W()[t]}function z(){const t=["Missing onChange handler in watch","max","PROXY: Bad Handle Wrapper","immediate","watcher","isArray","computed","constructor","clear","now","Watch with no reactive access","onChangeError","finally"," on a non proxy object","onWatchError","Trying to observe ","meta","handler","get","shift","pop","push","prototype","Change handler error","options","ignore","keys","property","allowNonObjects","getPrototypeOf","14343hEyoPK","toString","symbol","includes","filter","value","throw","size","warnOnEmptyWatch","proxy.instance","stop","warnOnSideEffects","warn","2994855TrsLVj","Empty watch","Cannot nest frame()","entries","object","SYM_TARGET","target","undefined","28AebGrv","1919670MbVJEX","splice","Not an object","touch","queue","has","delete","accessFilter","19863288OEAFof","assign","defaultHybridDelay","add","wrapHandle","arg","log","dispatchDelay","set","observer","monkeyPatches","length","function","run","3618120EBPEat","[native code]","SYM_OKPROXY_INSTANCE","62117MIEzdV","values","3228iAxKTQ","9918888zUGmAC","deleteProperty"];return(z=function(){return t})()}function V(t,e){return t-=161,z()[t]}!function(){const t=U,e=P();for(;;)try{if(429569==-parseInt(t(154))/1+-parseInt(t(143))/2*(parseInt(t(150))/3)+parseInt(t(164))/4+parseInt(t(155))/5+parseInt(t(153))/6*(-parseInt(t(159))/7)+parseInt(t(161))/8+-parseInt(t(146))/9*(-parseInt(t(160))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=B,e=W();for(;;)try{if(489098==parseInt(t(424))/1*(-parseInt(t(415))/2)+-parseInt(t(431))/3*(parseInt(t(422))/4)+parseInt(t(430))/5+parseInt(t(423))/6+-parseInt(t(432))/7*(parseInt(t(416))/8)+-parseInt(t(421))/9+parseInt(t(429))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const K=V;function q(t={}){const e=V,n={log:t[e(211)]||console};let r=0;const o=new WeakMap,s=new Map;function i(t){const n=e;if(!t||typeof t!==n(192))return!1;const r=Object[n(174)](t);if(!r)return!1;const o=r[n(234)];if("function"!=typeof o)return!1;const s=o[n(176)]()[n(178)](n(220));return r===Object[n(167)]||!s}const a={warnOnEmptyWatch:e(187),onChangeError:e(181),onWatchError:e(181),wrapHandle:null,dispatchDelay:t=>queueMicrotask(()=>requestAnimationFrame(t)),blacklistFilter:null,whitelistFilter:i,accessFilter:null,meta:null,monkeyPatches:[F(n),D(n),(c=n,{filter:t=>t instanceof Set,handler(t,e){const n=new Map,r=new Proxy(e,{get(t,e,o){const s=B;if(typeof e===s(425)){const n=t[e];return typeof n===s(426)?n[s(433)](t):n}if(e===s(428))return c[s(419)](r,"size"),t[s(428)];if(n[s(427)](e))return n.get(e);let i;return e===s(434)?i=function(e){const n=s,o=t[n(427)](e),i=t.add(e);return!o&&(c[n(420)](r,n(428),t[n(428)]-1,t[n(428)],{type:n(417),mode:n(434),args:[e]}),c.emitChange(r,e,!1,!0,{type:n(417),mode:n(427)})),i}:"delete"===e?i=function(e){const n=s,o=t[n(427)](e),i=t[n(418)](e);return o&&(c.emitChange(r,n(428),t[n(428)]+1,t[n(428)],{type:n(417),mode:"delete",args:[e]}),c.emitChange(r,e,!0,!1,{type:n(417),mode:n(427)})),i}:e===s(435)?i=function(){const e=s,n=t[e(428)],o=[...t];t[e(435)]();for(let t of o)c[e(420)](r,t,!0,!1,{type:e(417),mode:e(427)});c[e(420)](r,e(428),n,0,{type:e(417),mode:"clear"})}:e===s(427)&&(i=function(e){const n=s;return c[n(419)](r,e),t[n(427)](e)}),i?(n[s(417)](e,i),i):typeof t[e]===s(426)?t[e][s(433)](t):t[e]}});return r}})],warnOnSideEffects:"ignore",...t};var c;function l(t){return!0===t?e(181):!1===t?"ignore":t}a[e(183)]=l(a[e(183)]),a[e(238)]=l(a[e(238)]),a.onWatchError=l(a[e(241)]);const u=new WeakMap,f=new WeakMap,p=new WeakMap,h=new WeakMap,d=new WeakMap,m=new WeakMap,g=new WeakMap,y=new WeakMap,w=new Set,I=new WeakSet,b=new WeakMap,$=a[e(215)]||[],v=new WeakMap,k=new WeakMap,_=new WeakMap,O=new WeakMap,E=[],A=new Map;let T=!1,S=!1,x=!1;const C=new Set;let N=!1;const R=(t,n,r=()=>new Map)=>t[e(202)](n)?t[e(163)](n):(t[e(213)](n,r()),t.get(n)),L={get(t,i,c){const l=e;if(i===q.SYM_TARGET)return t;if(i===q.SYM_OKPROXY_INSTANCE)return n;if(typeof i===l(177))return Reflect[l(163)](t,i,c);const u=Reflect.get(t,i,c);if(typeof u===l(217))return u;let f=u;if(typeof f===l(192)&&null!==f&&!j(f)&&(f=M(f)),x){const t=(t=>{const n=e;if(!o[n(202)](t)){const e="#"+r++;o[n(213)](t,e),s[n(213)](e,t)}return o[n(163)](t)})(c);C[l(208)](t+":"+i[l(176)]())}if(0===w[l(182)])return f;if(a[l(186)]!==l(170)&&w.has(c)){const t='⚠️ Side effect detected during dependency collection on "'+i+'"';if("warn"===a[l(186)])n.log[l(187)](t,c,(new Error).stack);else if("error"===a[l(186)])throw new Error(t)}return P(c,i),f},set(t,n,r,o){const s=e;if(S)return Reflect[s(213)](t,n,r,o);const i=p[s(163)](o);if(!i?.accessFilter?.(o,n))return Reflect[s(213)](t,n,r,o);const a=t[n],c=f.get(r)||r,l=Reflect[s(213)](t,n,c,o);return(a!==c||x)&&U(o,n,a,c,s(213)),l},deleteProperty(t,n){const r=e;if(S)return Reflect[r(226)](t,n);const o=u.get(t),s=p[r(163)](o);if(!s?.[r(204)]?.(o,n))return Reflect[r(226)](t,n);const i=t[n],a=Reflect[r(226)](t,n);return a&&U(o||t,n,i,void 0,r(203)),a}};function M(t,n={}){const r=e;if(typeof t!==r(192)||null===t){if(!0!==n[r(173)])throw new Error(r(199));return t}if(j(t))return t;if(a.blacklistFilter?.(t))return t;if(a.whitelistFilter&&!a.whitelistFilter(t)&&!$.some(e=>e?.[r(179)]?.(t)))return t;let o=u[r(163)](t);if(!o){o=new Proxy(t,L);for(const e of $)if(e?.filter?.(t)){const n=e.handler(o,t);n&&(o=n)}u[r(213)](t,o),f[r(213)](o,t),p[r(213)](o,{accessFilter:(t,e)=>!p[r(163)](t)[r(170)][r(202)](e),ignore:new Set([...n[r(170)]||[]]),meta:typeof n[r(161)]===r(217)?n.meta(t):n[r(161)]??(typeof a[r(161)]===r(217)?a.meta(t):a.meta)})}return o}function j(t){return f[e(202)](t)}function P(t,n){const r=e;for(const e of w)R(h,t,()=>new Set)[r(208)](e),R(m,e,()=>new Map)[r(213)](t,R(m[r(163)](e),t,()=>new Set)[r(208)](n))}function U(t,n,r,o,s,i={}){const a=e;if(S)return;const c={target:t,property:n,oldValue:r,newValue:o,type:s,...i},l=h[a(163)](t);if(l)for(const e of l){const r=m[a(163)](e);r?.get(t)?.[a(202)](n)&&R(A,c,()=>new Set).add(e)}const u=d[a(163)](t);(u?.has(n)||u?.[a(202)](null)||A[a(202)](c))&&(E[a(166)](c),W())}function W(){const t=e;T||(T=!0,typeof a[t(212)]===t(217)?a[t(212)](K):null===a[t(212)]?queueMicrotask(K):!1===a.dispatchDelay?K():T=setTimeout(K,a[t(212)]||0))}function z(){const t=e,n=[...E],r=[],o=new Map;for(const e of n){const n=d[t(163)](e[t(194)]);if(n){const o=[...n.get(null)||[],...n[t(163)](e[t(172)])||[]];for(const n of o)r[t(166)]({handler:n,arg:e,queue:t(214)})}const s=A[t(163)](e);if(s)for(const n of s){let r=o[t(163)](n);r?r[t(166)](e):(r=[e],o[t(213)](n,r))}}for(const[e,n]of o[t(191)]())r[t(166)]({handler:e,arg:n,queue:t(231)});E[t(216)]=0,A[t(235)]();for(const e of r)(e[t(201)]!==t(231)||I.has(e[t(162)]))&&(H(e[t(162)],e[t(210)]),E.length&&z())}function K(){T&&clearTimeout(T),T=!1,z(),function(){if(Q&&!E.length&&!T){const t=Z;Q=null,Z=null,t()}}()}function H(t,r){const o=e;try{return function(t){const n=e;if(k.has(t))return k.get(t);const r=v[n(163)](t)?.[n(209)]||a.wrapHandle;if(!r)return t;if(r)try{const e=r(t);return k.set(t,e),e}catch(t){throw new Error(n(229))}}(t)(r)}catch(t){if("throw"===a[o(238)])throw t;a[o(238)]===o(187)&&n.log[o(187)](o(168),t)}}function Y(t,r,o=null){const s=e;if(!r)throw new Error(s(227));const i=void 0===o?.[s(230)]||o?.[s(230)];let c;const l=t=>(f=!0,r(t));O[s(213)](r,l),v[s(202)](l)||o&&v[s(213)](l,o),I[s(208)](l),w[s(208)](l);let u=i?t():void 0,f=!1;if(w[s(203)](l),!m.has(l)){const t=o?.[s(183)]||a.warnOnEmptyWatch;if("warn"===t)n.log[s(187)](s(237));else if(t===s(181))throw new Error(s(189))}return c={onChange:r,fn:t,stop:()=>(G(l),c),watch(){const t=s;G(l),I[t(208)](l),w[t(208)](l);try{u=c.fn(),f=!1}catch(e){const r=c[t(169)]?.[t(241)]||a[t(241)]||"throw";if(typeof r===t(217))return r(e,c,n);if("warn"===r)n.log[t(187)](e);else if(r===t(181))throw e}return w.delete(l),R(g,l,()=>new Set)[t(208)](c),c},run:()=>r(c[s(180)]),get listeners(){const t=s;return{size:m[t(163)](l)?.[t(182)]||0}},get targets(){return m.get(l)},get value(){return f&&(u=t(),f=!1),u},set value(t){u=t,f=!1},options:o},R(g,l,()=>new Set)[s(208)](c),c}function G(t){const n=e,r=O[n(163)](t)||t;I[n(203)](r);const o=m[n(163)](r);if(o){for(const t of o[n(171)]())h[n(163)](t)?.[n(203)](r);m.delete(r)}g.delete(r),O[n(203)](t)}function X(t,r,o,s=null){const i=e;if(!j(t))return void n.log[i(187)](i(242)+r+i(240),t);s&&v[i(213)](o,s);const a=R(d,t,()=>new Map);R(a,r,()=>new Set)[i(208)](o);const c=R(b,o,()=>new Map);R(c,t,()=>new Set)[i(208)](r);const l={stop(){const e=i;a[e(163)](r)?.delete(o),a[e(163)](r)?.[e(182)]||a[e(203)](r),a[e(182)]||d[e(203)](t),c[e(163)](t)?.delete(r),c[e(163)](t)?.[e(182)]||c[e(203)](t),c[e(182)]||b.delete(o)},get listeners(){const t=i;return{size:a.get(r)?.[t(182)]||0}},get targets(){return c}};return R(y,o,()=>new Set)[i(208)](l),l}function J(t){const n=e;return typeof t===n(192)?f[n(163)](t):void 0}let Q=null,Z=null;return Object[e(206)](n,{proxy:M,getTarget:J,getMeta:function(t){const n=e;return typeof t===n(192)?p[n(163)](t)?.[n(161)]:void 0},isProxy:j,watch:Y,computed:function(t){const n=e,r=M({value:void 0}),o=Y(t,()=>{const t=V;r.value=o[t(180)]});return o[n(218)](),{watcher:o,stop:o.stop,ref:r,get value(){return r[n(180)]}}},memo:function(t){const n=e;let r=_.get(t);return!r&&(r=this[n(233)](t),_[n(213)](t,r)),r},unwatch:G,observe:X,unobserve:function(t){const n=e,r=y[n(163)](t);if(r){for(const t of r)t.stop();y[n(203)](t)}},observeDeep:function(t,n){const r=e;return{stop:function t(e,r=[]){const o=V;if("object"!=typeof e||null===e)return{stop:()=>{}};const s=new Map,i=X(e,null,o=>{const i=V,{property:a,newValue:c,oldValue:l,type:u,mode:f}=o,p=[...r,a];if(n({path:p,value:c,raw:o}),s[i(202)](a)&&(l!==c||null==c)){try{s[i(163)](a)[i(185)]()}catch{}s[i(203)](a)}if(typeof c===i(192)&&null!==c){if(s[i(202)](a))try{s[i(163)](a)[i(185)]()}catch{}s[i(213)](a,t(M(c),p))}if(Array[i(232)](e)&&[i(166),"unshift",i(198),i(165),i(164)][i(178)](f)){for(const[t,e]of s[i(191)]())try{e.stop()}catch{}s[i(235)]();for(let n=0;n<e.length;n++){const o=e[n];"object"==typeof o&&null!==o&&s[i(213)](n,t(M(o),[...r,n]))}}});if(Array[o(232)](e))for(let n=0;n<e.length;n++){const i=e[n];"object"==typeof i&&null!==i&&s[o(213)](n,t(M(i),[...r,n]))}else for(const n in e){const i=e[n];typeof i===o(192)&&null!==i&&s[o(213)](n,t(M(i),[...r,n]))}return{stop:()=>{const t=o;i[t(185)]();for(const e of s[t(223)]())try{e[t(185)]()}catch{}s[t(235)]()}}}(t)[r(185)]}},notify:function(t){const n=e;x=!0,t(),x=!1;for(const t of C){const[e,r]=t.split(":"),o=s[n(163)](e);if(o){const t=Reflect[n(163)](J(o),r);U(o,r,t,t,n(200))}}C[n(235)]?.()},ignore:function(t){const n=e;S=!0;try{const e=t();return e?.[n(239)]?e[n(239)](()=>{S=!1}):S=!1,e}catch(t){throw S=!1,t}},monkeyPatches:$,defaultWhitelistFilter:i,flush:async function(){const t=e;return Q||(Q=new Promise(t=>{Z=t}),E[t(216)]?W():Z(),Q)},emitChange:function(t,e,n,r,o={}){j(t)||(t=M(t)),U(t,e,n,r,o.type||"object",o)},trackDependency:P,frame:function(t){if(N)throw new Error(e(190));N=!0,K();try{t()}finally{K(),N=!1}}}),n}!function(){const t=V,e=z();for(;;)try{if(652422==parseInt(t(222))/1*(parseInt(t(196))/2)+-parseInt(t(188))/3+-parseInt(t(219))/4+-parseInt(t(197))/5+parseInt(t(224))/6*(parseInt(t(175))/7)+-parseInt(t(225))/8+parseInt(t(205))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const H=typeof requestAnimationFrame!==K(195)?requestAnimationFrame:t=>t();q[K(207)]=function(t,e=0){const n=K,r=performance[n(236)]();setTimeout(()=>{H(t)},Math[n(228)](0,e-(performance[n(236)]()-r)))};const Y=Symbol("proxy.target"),G=Symbol(K(184));function X(t,e){return t-=489,J()[t]}function J(){var t=["7812ohuvdf","1301264cQHuXa","5358900zrkRiE","137546UkUUnN","1477404grPOiN","2130996Jaxppy","985Wushlo","3512726EvSOlE"];return(J=function(){return t})()}q[K(193)]=Y,q[K(221)]=G,function(){for(var t=X,e=J();;)try{if(504239==-parseInt(t(494))/1+parseInt(t(495))/2+-parseInt(t(496))/3+parseInt(t(491))/4*(parseInt(t(489))/5)+parseInt(t(493))/6+-parseInt(t(490))/7+-parseInt(t(492))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Q=it;function Z(){const t=["undefined","port1","8067432GHyQSe","2331546dgxGgf","2LxIsWm","589371JiSnOq","167871QjghOO","MessageChannel","1934952eiSMXY","unref","mozRequestAnimationFrame","requestAnimationFrame","postMessage","length","493304VsbDmz","push","webkitRequestAnimationFrame","120525kaBMfu","splice"];return(Z=function(){return t})()}!function(){const t=it,e=Z();for(;;)try{if(176842==parseInt(t(499))/1+-parseInt(t(497))/2*(parseInt(t(498))/3)+-parseInt(t(488))/4+-parseInt(t(491))/5+-parseInt(t(501))/6+-parseInt(t(496))/7+parseInt(t(495))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const tt=[];let et=null;function nt(t){const e=it;tt[e(489)](t),!et&&(et=setTimeout(()=>{const t=e;for(let e=0;e<tt[t(487)];e++)tt[e]();tt[t(492)](0),et=null}))}const rt=[];let ot=0,st=typeof globalThis[Q(500)]!==Q(493)?new MessageChannel:null;function it(t,e){return t-=484,Z()[t]}function at(t){rt[Q(489)](t),ct()}function ct(){const t=Q;if(0===ot)ot=1,function(){const t=Q;(globalThis[t(485)]||globalThis[t(484)]||globalThis[t(490)]||globalThis.msRequestAnimationFrame||(t=>{setTimeout(t,20)}))(()=>{const t=it;if(st)return st.port2[t(486)](void 0),void(ot=2);ot=2,ct()})}();else if(2===ot){ot=0;for(let e=0;e<rt[t(487)];e++)try{rt[e]()}catch(t){}rt.splice(0)}}st&&(st[Q(494)].onmessage=ct,st[Q(494)][Q(502)]?.());var lt=Object.freeze({__proto__:null,awaitFrame:function(){return new Promise(t=>{at(()=>{t()})})},awaitTick:function(){return new Promise(t=>{nt(()=>{t()})})},nextFrame:at,nextTick:nt});const ut=ft;function ft(t,e){return t-=296,pt()[t]}function pt(){const t=["length","$childScope","then","firstChild","warn","binding","else","$__unmount__$","1756eqJNYs","$log","3141708ykDrDm","6522nnQtvB","$lifecycle","cloneNode","ELSE",":if","find","document","from","$destroyChildren","removeChild","$el","8141280UEpWRN","5251100SbLWoj","createElement","dom","appendChild","136IdMqKs","9LMEdKn","795438ULjgqD","default","setAttribute","$attr","templates","37477vcWrzU","all","push","[ok] <if> component without content.","content","$cache","cmp","append","$ok","2490fqrejj","5285GYOFpw"];return(pt=function(){return t})()}function ht(t){const e=ft,n=t.$cache.cmp;if(t[e(328)]||!t[e(297)])return;const r=n[e(309)]||{},o=!!t.$attr.if,s=o?r[e(306)]:r[e(327)];if(t.$cache.if===o)return;t[e(315)].if=o;const i=t[e(340)](!0),a=()=>{const n=e;if(t.$__unmount__$||!t[n(297)])return;const r=[];for(const e of s?.[n(314)].childNodes||[]){const o=e[n(334)](!0);t[n(318)][n(301)][n(317)](t[n(297)],o);const s=t[n(322)](o,{$context:t.$context});t.$ok.init(o),r[n(312)](s[n(333)].mounted)}return r[n(321)]?Promise[n(311)](r):void 0};return i?i[e(323)](a):a()}!function(){const t=ft,e=pt();for(;;)try{if(770423==parseInt(t(303))/1*(parseInt(t(329))/2)+-parseInt(t(305))/3+-parseInt(t(331))/4+parseInt(t(299))/5+-parseInt(t(332))/6*(-parseInt(t(320))/7)+-parseInt(t(298))/8*(parseInt(t(304))/9)+parseInt(t(319))/10*(parseInt(t(310))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var dt={tag:"if",unwrap:!0,attr:{if:{required:!0,alias:[""],description:"condition",type:ut(326)}},prepare(t){const e=ut,n=t[e(315)][e(316)][e(309)]||{},r=n[e(306)]?.content;if(!r)return void t[e(330)][e(325)]([],e(313));const o=Array[e(339)](r.childNodes)[e(337)](t=>t.tagName===e(335));if(!o)return;const s=o.getAttribute(e(336))||o.getAttribute("if"),i=t.$el?.ownerDocument||globalThis[e(338)],a=i.createElement("template");if(a.setAttribute("name",e(327)),s){const t=i[e(300)]("if");for(t[e(307)](":",s);o.firstChild;)t[e(302)](o.firstChild);a[e(314)][e(302)](t)}else for(;o[e(324)];)a.content.appendChild(o.firstChild);r[e(296)](o),n[e(327)]=a},mount:t=>ht(t),mounted(t){const e=ut;t.$watch(()=>t[e(308)].if,()=>{t[e(328)]||ht(t)})}};const mt=gt;function gt(t,e){return t-=332,wt()[t]}!function(){const t=gt,e=wt();for(;;)try{if(527260==parseInt(t(341))/1*(-parseInt(t(353))/2)+-parseInt(t(349))/3+-parseInt(t(332))/4*(-parseInt(t(358))/5)+-parseInt(t(337))/6+-parseInt(t(346))/7+parseInt(t(365))/8+-parseInt(t(335))/9*(-parseInt(t(356))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var yt={tag:mt(338),unwrap:!0,attr:{context:{type:Object,default:null},nodes:{default:()=>[]},noInit:{type:Boolean,default:!1,empty:!0}},mount(t){const e=mt,n=t[e(342)][e(338)]={updating:!1,dirty:!1,getNodes(){const n=e,r=t[n(351)][n(340)];return Array[n(345)](r)?r:[]},update(){const r=e;if(n[r(350)])return void(n[r(348)]=!0);if(n[r(350)]=!0,n[r(348)]=!1,t[r(364)]||!t[r(366)])return void(n.updating=!1);if(t[r(354)](!0),!t[r(366)])return void(n.updating=!1);const o=n[r(352)](),s=t[r(360)][r(357)],i=[];for(const e of o)if(e.$fragment=t,!e[r(363)]&&!t[r(351)][r(336)]){let n={$parent:t[r(359)],$context:t[r(351)][r(339)]??t[r(359)][r(334)],$cmp:t.$cmp};t[r(351)][r(344)]&&(n=t.$attr[r(344)](n)),e.$scope=t[r(360)].scope(e,n),i[r(362)](e)}s[r(361)](t[r(366)],...o);for(const t of i)t[r(363)][r(347)]();n.updating=!1,n.dirty&&n[r(343)]()}};n.update()},init(t){const e=mt,n=t[e(342)][e(338)];t[e(355)](()=>t[e(351)][e(340)][e(333)],()=>n[e(343)]())}};function wt(){const t=["noInit","3861918HpUUpU","fragment","context","nodes","19CMPplJ","$cache","update","scope","isArray","3382876Ikvwlw","$init","dirty","2985648mBNAta","updating","$attr","getNodes","68674LgSUJq","$destroyChildren","$watch","12760vuKPLS","dom","2911080amWGPo","$parent","$ok","append","push","$scope","$__unmount__$","6087392ZXujMY","$el","4kvyimc","length","$context","13815EaGtzQ"];return(wt=function(){return t})()}const It=Tt;function bt(t,e,n,r,o){const s=Tt,i=t[s(373)][s(321)]?.[s(312)]?.[s(308)],a=(t[s(388)]?.[s(330)]||globalThis.document)[s(315)](s(378));a[s(363)](...i[s(369)][s(296)](!0)[s(362)]);const c=t.$ok[s(392)]({index:n,key:r,item:o}),l=a[s(387)]=t[s(383)][s(351)](a,{$parent:t,$context:t[s(320)],$cache:{eachItem:c}}),u={};s(370)in t.$attr&&(u[t[s(335)][s(370)]]={get:()=>t[s(335)].of}),"let:item"in t[s(335)]&&(u[t[s(335)][s(343)]]={get:()=>c[s(319)]}),"let:key"in t[s(335)]&&(u[t[s(335)]["let:key"]]={get:()=>c[s(339)]}),s(354)in t[s(335)]&&(u[t.$attr[s(354)]]={get:()=>c[s(393)]});for(const e in t[s(335)])if(e[s(389)](s(350))){const n=e[s(394)](4);if("items"===n||n===s(319)||n===s(339)||n===s(393))continue;const r=t[s(335)][e];u[r&&!0!==r?r:n]={get:()=>c[s(319)]}}return l[s(377)](u),l}function $t(t,e,n,r){const o=Tt,s=r[o(388)],i=e[o(352)][o(361)](String(n-1));i?t[o(383)][o(382)].insertAfter(t.$el,s,i[o(388)]):t[o(383)][o(382)][o(386)](t.$el,s),t[o(383)][o(382)][o(376)](s)}function vt(t,e,n,r,...o){const s=Tt,i=[],a=e.keyToFragment.size;return o[s(346)],n=Math[s(366)](0,Math[s(342)](n,a)),Number[s(336)](r)||(r=a),r&&i[s(381)](function(t,e,n,r=1){const o=Tt,s=e.keyToFragment,i=[],a=s[o(322)];for(let t=0;t<r;t++){const e=String(n+t),r=s[o(361)](e);r&&(s[o(368)](e),i[o(381)](r[o(344)]()))}for(let t=n+r;t<=a;t++){const e=String(t),n=t-r,i=String(n),a=s[o(361)](e);a&&(a[o(373)][o(318)].index=n,a[o(373)][o(318)][o(339)]=i,s[o(357)](i,a),s[o(368)](e))}return Promise[o(303)](i)}(0,e,n,r)),o[s(346)]&&i[s(381)](function(t,e,n,...r){const o=Tt;if(!r[o(346)])return;const s=[];for(let t=e[o(352)][o(322)]-1;t>=n;t--){const n=String(t),s=t+r[o(346)],i=String(s),a=e[o(352)][o(361)](n);a[o(373)][o(318)][o(393)]=s,a[o(373)][o(318)][o(339)]=i,e[o(352)].set(i,a)}for(let i=0;i<r[o(346)];i++){const a=n+i,c=String(a),l=bt(t,0,a,c,r[i]);e[o(352)][o(357)](c,l),$t(t,e,a,l),s[o(381)](l[o(387)].$init())}return Promise[o(303)](s)}(t,e,n,...o)),Promise[s(303)](i)}function kt(t,e,n,r,o){const s=Tt,i=bt(t,0,n,r,o);return e[s(352)][s(357)](r,i),$t(t,e,n,i),i[s(387)][s(385)]()}function _t(t,e){const n=Tt,r=[...e.keyToFragment[n(325)]()[n(301)](t=>t[n(344)]())];if(e[n(352)][n(332)](),r[n(346)])return Promise[n(303)](r)}function Ot(){const t=["$el","startsWith","$error","changeHandle","proxy","index","substring","cloneNode","76312LRVszw","150vbDsmo","stop","each","map","object","all","config","keys","The :of= attribute must be iterable (Array, Set, Map, or Object)","warnLimit","default","foreach","static","iterator","templates","$api","reuse","createElement","oldValue","args","eachItem","item","$context","cmp","size","Rendering large Set/Map may be inefficient. Consider using an Array.","items","values","function","tagName","isArray","entries","ownerDocument","1323396cLgPzX","clear","binding","2764800ZjEjPZ","$attr","isInteger","9RPDGAu","$__unmount__$","key","[ok] <each> received very large array. Rendering may affect performance.","95805cAUUDP","min","let:item","$destroy","proxyInstance","length","type","77tfYClo","srcHandle","let:","scope","keyToFragment","warn","let:index","then","1325965yQoGfs","set","from","$observe","7kvjGmF","get","childNodes","append","for","209403AOxvmb","max","isProxy","delete","content","let:items","3196848YEMDfO","mode","$cache","8cPXpxv","property","unwrap","$setInnerVars","div","EACH_INVALID_ITEMS","add","push","dom","$ok","newValue","$init","prepend","$scope"];return(Ot=function(){return t})()}function Et(t,e){const n=Tt;if(t[n(338)])return;!function(t){const e=It,n=t[e(373)][e(300)];!n[e(349)]&&(n.srcHandle=t.$watch(()=>t[e(335)].of,()=>Et(t,n))),n[e(391)]?.[e(299)](),t[e(383)][e(345)][e(367)](t.$attr.of)&&(n.changeHandle=t[e(359)](t[e(335)].of,null,async r=>{const o=e;if(t.$__unmount__$)return;const s=r.target;if(Array[o(328)](s))!function(t,e,n){const r=It;n[r(375)];const o=At[n[r(372)]];if(o)return o(t,e,n);if("length"===n[r(375)]){const o=n[r(316)]-n[r(384)];o>0&&vt(t,e,n[r(384)],o)}}(t,n,r);else if(s instanceof Set){if(r[o(372)]===o(332))await _t(0,n);else if(r[o(372)]===o(380))await kt(t,n,n[o(352)][o(322)],String(n[o(352)].size),r[o(317)][0]);else if(r[o(372)]===o(368))for(const[t,e]of n[o(352)][o(329)]())if(e[o(373)][o(318)][o(319)]===r.args[0]){await e[o(344)](),n[o(352)][o(368)](t);break}}else if(s instanceof Map){if(r.mode===o(332))await _t(0,n);else if(r[o(372)]===o(357)){const e=n[o(352)][o(361)](r.property);e?e[o(373)][o(318)][o(319)]=r[o(384)]:await kt(t,n,n[o(352)][o(322)],r[o(375)],r.newValue)}else if(r[o(372)]===o(368)){const t=n[o(352)][o(361)](r[o(375)]);t&&(await t[o(344)](),n.keyToFragment[o(368)](r[o(375)]))}}else if(typeof s===o(302)){const e=r[o(375)],s=n.keyToFragment[o(361)](e);r[o(347)]===o(368)?s&&(await s[o(344)](),n[o(352)][o(368)](e)):s?s[o(373)].eachItem[o(319)]=r.newValue:await kt(t,n,n[o(352)][o(322)],e,r.newValue)}else await Et(t,n)}))}(t);const r=t.$attr.of;let o,s=Array[n(328)](r);if(!1!==t[n(335)][n(314)]&&s)return function(t,e,n,r){const o=Tt,s=e[o(352)],i=t=>r?String(t):n[t][0],a=t=>r?n[t]:n[t][1],c=[];for(let r=0;r<n[o(346)];r++){const n=i(r),l=a(r),u=s[o(361)](n);if(u)u.$cache[o(318)][o(319)]=l;else{const o=kt(t,e,r,n,l);o&&c.push(o)}}let l=n[o(346)],u=i(l);for(;s.has(u);){const t=s[o(361)](u).$scope[o(344)]();t&&c.push(t),s[o(368)](u),l++,u=i(l)}if(c[o(346)])return Promise[o(303)](c)}(t,e,r,s);const i=_t(0,e),a=()=>{const i=n;s?o=r:typeof r?.[Symbol.iterator]===i(326)?(o=r instanceof Map?[...r[i(329)]()]:[...r],s=!(r instanceof Map),o[i(346)]>30&&console[i(353)](i(323))):o=typeof r===i(302)?Object[i(329)](r):[];const a=[];for(let n=0;n<o[i(346)];n++){const r=s?String(n):o[n][0],c=s?o[n]:o[n][1],l=kt(t,e,n,r,c);l&&a[i(381)](l)}if(a[i(346)])return Promise.all(a)};return i?i[n(355)](a):a()}!function(){const t=Tt,e=Ot();for(;;)try{if(294329==parseInt(t(337))/1*(parseInt(t(297))/2)+-parseInt(t(365))/3+-parseInt(t(374))/4*(parseInt(t(356))/5)+-parseInt(t(334))/6+-parseInt(t(360))/7*(-parseInt(t(371))/8)+-parseInt(t(341))/9*(parseInt(t(298))/10)+parseInt(t(348))/11*(parseInt(t(331))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const At={push:(t,e,n)=>vt(t,e,n[It(316)],0,...n[It(317)]),unshift:(t,e,n)=>vt(t,e,0,0,...n[It(317)]),splice:(t,e,n)=>vt(t,e,...n[It(317)]),pop:(t,e,n)=>vt(t,e,n.oldValue-1,1),shift:(t,e)=>vt(t,e,0,1)};function Tt(t,e){return t-=296,Ot()[t]}var St={tag:It(300),alias:[It(364),It(309)],unwrap:!0,initOwnChildren:!0,destroyOwnChildren:!0,attr:{of:{required:!0,description:"proxy of Array, Map, Set or Object",type:It(333),alias:[""],validate:function(t,e){const n=It;if(!function(t){const e=It;return null!=t&&(typeof t[Symbol[e(311)]]===e(326)||"object"==typeof t)}(e))throw t[n(390)]?.(n(379),n(306),{value:e});const r=t[n(383)]?.[n(304)]?.each?.[n(307)]??1e3;Array.isArray(e)&&e[n(346)]>r&&console[n(353)](n(340),{tag:t[n(388)][n(327)],length:e[n(346)]})}},"let:items":{type:"static",empty:It(324)},"let:item":{type:It(310),empty:It(319)},"let:key":{type:It(310),empty:It(339)},"let:index":{type:"static",empty:"index"}},prepare(t){const e=It;e(370)in t[e(335)]&&t[e(377)]({[t[e(335)][e(370)]]:{get:()=>t[e(335)].of}});for(const n in t.$attr)if(n[e(389)]("let:")){const r=n[e(394)](4);if(r===e(324)||r===e(319)||r===e(339)||r===e(393))continue;(""===t[e(335)][n]||!0===t[e(335)][n])&&(t[e(335)][n]=r)}},mounted(t){const e=It,n=t[e(373)][e(300)]={keyToFragment:new Map};t[e(313)]={getByKey:t=>n[e(352)].get(t),getAllKeys:()=>Array[e(358)](n[e(352)][e(305)]()),reset:async()=>Et(t,n)},Et(t,t[e(373)].each)},async unmount(t){const e=It,n=t[e(373)][e(300)];if(!n)return;const r=[...n[e(352)][e(325)]()];n[e(352)][e(332)](),r[e(346)]&&await Promise[e(303)](r.map(t=>t[e(344)]()))}};function xt(){const t=["filter","131396XXrOJL","&","133372RWzmlE","66219ogXKEE","string","assign","'","6558210rDcbpl","writable","938312OPxQBT","getOwnPropertyDescriptor","entries","28UDkdEs",">","-$1","endsWith","48410zMbnvZ","forEach","object","<","nodeType","13541011vSLwyb","243HNrcIf","5dRIdsG","50PYKmbC","replace","toLowerCase","trim","split"];return(xt=function(){return t})()}function Ct(t,e){return t-=362,xt()[t]}function Nt(t){return t[Ct(388)](/-([a-z])/g,(t,e)=>e.toUpperCase())}function Rt(t){return null!=t&&"number"==typeof t[Ct(383)]}function Lt(t,e){const n=e[Ct(391)](".");for(let e=0;e<n.length-1;e++)if(void 0===(t=t[n[e]]))return{target:null,prop:void 0};const r=n.at(-1);return{target:t,prop:r,value:t?.[r]}}function Mt(t,e){const n=Ct;if(typeof e!==n(367))return!1;const{target:r,prop:o}=Lt(t,e);if(!r)return!1;const s=Object[n(373)](r,o);return!s||s[n(371)]||s.set}!function(){const t=Ct,e=xt();for(;;)try{if(915669==-parseInt(t(363))/1+-parseInt(t(387))/2*(-parseInt(t(366))/3)+parseInt(t(365))/4+-parseInt(t(386))/5*(-parseInt(t(370))/6)+parseInt(t(375))/7*(parseInt(t(372))/8)+-parseInt(t(385))/9*(-parseInt(t(379))/10)+-parseInt(t(384))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var jt=Object.freeze({__proto__:null,attributeNameToPropName:Nt,escapeHTML:function(t){const e=Ct;return String(t)[e(388)](/[&<>"']/g,t=>({"&":e(364),"<":e(382),">":e(376),'"':""","'":e(369)}[t]))||""},isDOM:Rt,isSimpleProperty:Mt,mergeClass:function(t,e){const n=t=>{const e=Ct;return Array.isArray(t)?t:typeof t===e(367)?t[e(391)](/\s+/)[e(362)](Boolean):t&&typeof t===e(381)?Object[e(374)](t).reduce((t,[n,r])=>{const o=e;return r?t.push(n):t=t[o(362)](t=>t!==n),t},[]):[]},r=[...n(t),...n(e)];return[...new Set(r)]},mergeStyle:function(t,e){const n=t=>{const e=Ct,n={};return typeof t===e(367)?t.split(";")[e(380)](t=>{const r=e,[o,s]=t[r(391)](":");o&&s&&(n[o[r(390)]()]=s[r(390)]())}):t&&typeof t===e(381)&&Object[e(368)](n,t),n};return{...n(t),...n(e)}},parseTimeToMs:function(t){return t[Ct(378)]("ms")?parseFloat(t):t.endsWith("s")?1e3*parseFloat(t):parseFloat(t)||5e3},propNameToAttributeName:function(t){const e=Ct;return t[e(388)](/([A-Z])/g,e(377))[e(389)]()},reach:Lt,trim:function(t){return t[Ct(388)](/(\r\n|\n|\r)/gm,"\\\n").replace(/"/gm,'\\"')}});const Dt=Pt;function Pt(t,e){return t-=110,Ut()[t]}function Ut(){const t=["target","729tVuPBB","from","$vars","name","dom","$error","172524hoHmzn","var:","templates","247944yBPAhK","childNodes","type","$scope","length","629400OHDfXp","getAttribute","util","scope","$attr","3484YlwHTE","let:","cmpId","propName","content","prop","template","startsWith","16wTLqym","map","$cache","$context","$el","inner","auto","getScopeById","1932453lGOCEE","values","slice","bind","$ok","$innerContext","SLOT_INVALID_TEMPLATE","130305dnNLbx","cmp","default","slot","propNameToAttributeName","defineProperties","outer","def","value","397890MoVINA"];return(Ut=function(){return t})()}!function(){const t=Pt,e=Ut();for(;;)try{if(117966==-parseInt(t(113))/1+-parseInt(t(116))/2+parseInt(t(160))/3*(parseInt(t(126))/4)+-parseInt(t(158))/5+parseInt(t(121))/6+-parseInt(t(149))/7*(parseInt(t(134))/8)+parseInt(t(142))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ft={tag:Dt(152),unwrap:!0,mount(t){const e=Dt,n=t[e(125)].cmpId?t[e(146)][e(141)](t[e(125)][e(128)]):t.$cmp,r=n[e(136)].cmp,o=t[e(125)][e(110)]||e(151);if(t[e(125)][e(132)]&&!(t[e(125)][e(132)]instanceof HTMLTemplateElement))throw t[e(112)](e(148),null,{name:o,cmpTag:n.$cache[e(150)][e(156)].tag});const s=t[e(125)][e(132)]||r[e(115)][o],i=t.$cache[e(150)].templates[e(151)],a=s||i,c=!s;let l=t.$attr[e(124)]||"auto";l===e(140)&&(l=e(c?139:155));const u=l===e(139)?n:n.$parent,f="inner"===l?t[e(137)]:n[e(137)]||{},p=l===e(139)?n:n.$cmp,h={},d=t[e(136)][e(145)];for(const r of Object[e(143)](d)){if(!r.name[e(133)](e(114)))continue;const o=r[e(129)][e(144)](4),s=e(127)+o;let i=n[e(125)][s];if(void 0===i&&a?.[e(122)]&&(i=a[e(122)](s)||a[e(122)](t.$ok[e(123)][e(153)](s))),null==i)continue;const c=i||o;if(r[e(118)]===e(145))h[c]={get(){const n=e;return t[n(125)][r[n(129)]]},enumerable:!0};else if("static"===r[e(118)]){const t=r[e(157)]||o;h[c]={get(){const r=e;return Lt(n.$innerContext,t)[r(157)]},set(r){const o=e,s=Lt(n[o(147)],t);s?.[o(159)]&&(s[o(159)][s[o(131)]]=r)},enumerable:!0}}}const m=t.$attr.vars||t[e(162)],g=Object[e(154)]({},{...Object.getOwnPropertyDescriptors(m),...h});if(a&&a[e(130)][e(117)][e(120)]){const n=Array[e(161)](a[e(130)].cloneNode(!0)[e(117)]);t[e(146)][e(111)].append(t[e(138)],...n[e(135)](n=>{const r=e;return n[r(119)]=t[r(146)].scope(n,{$parent:u,$context:f,$cmp:p,$slot:t,$vars:g}),n}))}}};function Wt(t,e){return t-=406,Kt()[t]}const Bt=Wt;function zt(t,e,n){const r=Wt,o={originalName:t,originalValue:e,modifiers:{},type:r(481),name:t,cmd:e,propName:Nt(t)};if(t[r(444)]("..."))return o.type=r(445),o.name=t[r(421)](3),o[r(461)]=Nt(o[r(466)]),o.cmd=o.propName,[o];if(t.startsWith(":")?(o[r(412)]="bind",t=t[r(421)](1)):t[r(444)]("!")?(o.type=r(514),t=t[r(421)](1)):t[r(444)]("@")?(o[r(412)]=r(427),t=t[r(421)](1)):t[r(444)](r(499))&&(o.type=r(427),t=t[r(421)](r(499)[r(462)])),!t.startsWith("var")){const e=t[r(424)](":");t=e[0];for(let t=1;t<e.length;t++){const n=e[t][r(424)](".");o.modifiers[n[0]]=!(n[r(462)]>1)||n[r(421)](1)}}if("event"===o[r(412)])o[r(466)]=t,o.propName=Nt(o.name),o.cmd=e||o[r(461)];else if(o[r(412)]!==r(481)&&(o[r(466)]=t,o[r(461)]=Nt(o[r(466)]),o[r(497)]=e||o[r(461)],(o[r(466)]===r(441)||o.name===r(455))&&(o[r(487)]=n[r(456)](o[r(466)])||""),"twoway"===o[r(412)])){o[r(461)]=n.type===r(443)?r(510):"value",o[r(466)]=n[r(412)]===r(443)?"checked":r(442);const t={checkbox:r(417),number:r(490),range:r(490)},e=r(448)+Object[r(509)](t)[r(414)](([t,e])=>r(451)+t+r(473)+e).join(r(501))+r(430);return[o,{...o,type:"event",name:r(478),cmd:r(503)+o[r(497)]+r(479)+e}]}return[o]}function Vt(t,e,n=t[Bt(513)],r=t[Bt(415)]){const o=Bt;e.type===o(427)?qt(t,e,n):function(t,e,n,r){const o=Bt;if(r[e.propName]=e[o(442)],e[o(466)]===o(441)){const r=t.$ok[o(446)][o(449)](e[o(487)],e.value);n[o(408)](o(441),r.join(" "))}else if(e[o(466)]===o(455)){const r=t.$ok[o(446)][o(489)](e.initialValue,e[o(442)]);for(let[t,e]of Object[o(509)](r))t[o(444)]("--")?n[o(455)][o(506)](t,e):n.style[t]=e}else{if(typeof e[o(442)]===o(422))return void(e[o(466)].startsWith("on")&&(n[e[o(466)]]=e.value));const t=function(t,e){const n=Bt;let r=t;for(;r;){const t=Object[n(438)](r,e);if(t)return t;r=Object[n(460)](r)}return null}(n,e.propName);if(e[o(461)]in n&&t&&(!0===t[o(429)]||"function"==typeof t[o(439)]))return n[e[o(461)]]=e.value,void(typeof n[e.propName]===o(502)?e[o(442)]?n[o(408)](e.name,""):n.removeAttribute(e.name):null===e[o(442)]||void 0===e.value?n[o(431)](e[o(466)]):n[o(408)](e[o(466)],e[o(442)]));e[o(466)]&&typeof e[o(442)]!==o(477)&&n[o(408)](e[o(466)],e[o(442)])}}(t,e,n,r)}function Kt(){const t=["DUPLICATE_EVENT","removeEventListener","1757205dGtWvy","getOwnPropertyDescriptor","set","default","class","value","checkbox","startsWith","spread","util","bind","(() => {\n const t = $el.type;\n return ","mergeClass","watcher",'t === "',"originalValue","bubble","$watch","style","getAttribute","includes","3CIABMo","1730fGWVDa","getPrototypeOf","propName","length","shiftKey","6403023KScLQt","toLowerCase","name","_debounce","off","54593ynzdmR","5436403hPNnZG","find","stop",'" ? ','Two-way binding failed for "',"config","ctrl","object","input"," = ","metaKey","static","listener","debounce","_debounceDelay","40usbWZN","$context","initialValue",'" because "',"mergeStyle","Number($el.value)","399508dInxuN","keys",'", replacing',"altKey","warn","$event","cmd","shift","ok:on:","ctrlKey"," : ","boolean","()=>","once","_debounced","setProperty","attributes",'" is not writable.',"entries","checked","addEventListener","$error","$el","twoway","modifiers","push","6FWtCZQ","setAttribute",'[ok] Duplicate bind "',"meta","some","type","debug","map","$attr","key","$el.checked","276432YjspVz","remove_bind_attributes","charCodeAt","slice","function","allow","split","stopPropagation","events","event","log","writable"," : $el.value;\n })()","removeAttribute","332692rDBEIL","originalName","$fn"];return(Kt=function(){return t})()}function qt(t,e,n){const r=Bt;e[r(482)]&&n[r(436)](e[r(466)],e[r(482)]),e[r(482)]=(...o)=>{const s=r;if(e.modifiers[s(483)]){if(!e[s(505)])return clearTimeout(e[s(467)]),void(e[s(467)]=setTimeout(()=>{e[s(505)]=!0,e.listener(...o)},e[s(484)]));e[s(505)]=!1}const i=o[0];if(t.$event=i,e[s(466)][s(444)]("key")&&!function(t,e){const n=Bt;return!e[n(416)]||(Array.isArray(e[n(416)])?e[n(416)]:[e[n(416)]])[n(411)](e=>function(t,e){const n=Bt,r=e[n(465)]()[n(424)]("+"),o={ctrl:r.includes("ctrl"),shift:r[n(457)](n(498)),alt:r[n(457)]("alt"),meta:r[n(457)](n(410)),key:r[n(471)](t=>![n(476),n(498),"alt",n(410)][n(457)](t))};return!!t[n(500)]===o[n(476)]&&!!t[n(463)]===o[n(498)]&&!!t[n(494)]===o.alt&&!!t[n(480)]===o[n(410)]&&t.key[n(465)]()===(o[n(416)]||"").toLowerCase()}(t,e))}(i,e[s(515)]))return;const a=e.fn(t);let c;return typeof a===s(422)&&(c=a.call(t[s(486)],...o)),i instanceof Event&&(e[s(515)][s(440)]||e.modifiers[s(453)]||i[s(425)](),e[s(515)][s(440)]||e.modifiers[s(423)]||i.preventDefault()),delete t[s(496)],e[s(515)][s(504)]&&n[s(436)](e.name,e.listener),c},t.$ext("unmount",()=>n[r(436)](e[r(466)],e[r(482)])),n[r(511)](e.name,e[r(482)])}function Ht(t,e,n=t[Bt(513)],r=t[Bt(415)],o=null){const s=Bt;if(!o&&(o=zt(e,n.getAttribute(e),n)[0]),o[s(412)]===s(445)){let i=t.$fn(o[s(497)]);typeof i===s(422)&&(i=i.call(t.$context,t));const a=[];for(let c of Object[s(492)](i)){const i=zt(":"+c,o[s(497)]+"['"+c+"']",n);for(let o of i)a[s(406)](...Ht(t,e,n,r,o))}return a}if("static"===o[s(412)])return r[o[s(461)]]=o[s(452)],[o];if("twoway"===o[s(412)]&&!Mt(t[s(486)],o[s(497)]))throw new Error(s(474)+o[s(466)]+s(488)+o[s(497)]+s(508));return o.fn=t.$fn(o[s(497)]),o[s(515)][s(483)]&&(o[s(484)]=parseInt(o.modifiers[s(483)])||0),o[s(450)]=t[s(454)](()=>{const e=s;if(o.fn=t[e(434)](o.cmd,{debug:o.modifiers[e(413)],log:o.modifiers[e(428)]}),"event"!==o[e(412)]){let n=o.fn(t);return o.transform&&(n=o.transform(t,n)),o[e(442)]=n,n}},()=>{const e=s;o.watcher&&(o[e(450)].watch(),Vt(t,o,n,r))},{warnOnEmptyWatch:s(468)}),Vt(t,o,n,r),[o]}!function(){const t=Wt,e=Kt();for(;;)try{if(473106==parseInt(t(458))/1*(-parseInt(t(432))/2)+-parseInt(t(437))/3+-parseInt(t(491))/4*(-parseInt(t(485))/5)+parseInt(t(407))/6*(-parseInt(t(470))/7)+-parseInt(t(418))/8+parseInt(t(464))/9+-parseInt(t(459))/10*(-parseInt(t(469))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Yt={hasBindingsOrEvents:function(t){const e=Bt;for(let n=0;n<t[e(507)][e(462)];n++){const r=t[e(507)][n][e(466)][e(420)](0);if(58===r||64===r)return!0}return!1},bind:function(t,e=t[Bt(513)],n=t[Bt(415)]){const r=Bt,o={events:{},bind:{}};for(const{name:s,value:i}of[...e[r(507)]]){const a=zt(s,i,e);for(const i of a){const a=Ht(t,s,e,n,i);for(const n of a){const s=n[r(412)]===r(427)?r(426):r(447),i=o[s][n[r(461)]];if(i){if("events"===s)throw t[r(512)](r(435),null,{name:n[r(466)],scope:t});"static"!==n[r(412)]&&i.type!==r(481)&&(console[r(495)](r(409)+n.propName+r(493)),i[r(450)]?.[r(472)]?.())}n[r(412)]!==r(481)&&t.$ok[r(475)].bind[r(419)]&&e[r(431)](n[r(433)]),o[s][n[r(461)]]=n}}}return o},classifyAttr:zt,bindAttribute:Ht,handleEvent:qt};const Gt=Xt;function Xt(t,e){return t-=126,Jt()[t]}function Jt(){const t=["cmp","1170595ctGpcf","255650KwbJQm","8fDLlEr","$ok","$scope","1743NaFpqb","NO_VALUE","scope","remove","default","matchIndex","from","let:value","4254088nDSWCV","findIndex","$error","362541xiLDpY","hasAttribute","$setInnerVars","tagName","content","selectedCase","attr","map","childNodes","$cache","DEFAULT","$innerContext","No value specified for case","6931575FLVobU","nodes","$watch","static","push","switch","cases","$attr","bindAttribute","value","proxy","<fragment :nodes/>","373474afuAdb","cloneNode","11094zLdiOQ"];return(Jt=function(){return t})()}!function(){const t=Xt,e=Jt();for(;;)try{if(499475==parseInt(t(147))/1+-parseInt(t(152))/2+parseInt(t(167))/3*(parseInt(t(153))/4)+parseInt(t(151))/5+parseInt(t(149))/6*(-parseInt(t(156))/7)+-parseInt(t(164))/8+parseInt(t(135))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Qt={tag:Gt(140),unwrap:!0,attr:{"let:value":{type:Gt(138),empty:"value"},value:{type:"bind",alias:[""]}},prepare(t){const e=Gt,n=Array.from(t.$cache[e(150)].templates[e(160)][e(126)].childNodes),r=n.find(t=>t[e(170)]===e(132)),o=n.filter(t=>"CASE"===t[e(170)]),s=t.$cache[e(140)]??={matchIndex:null,cases:[],default:r?Array.from(r[e(130)]):[]};for(let n of o){const r=t[e(154)][e(145)]({}),o=n.getAttribute(":value")?":value":e(144);if(!o||!n[e(168)](o))throw t[e(166)](e(157),new Error(e(134)),{scope:t});const i=Yt[e(143)](t,o,n,r);s[e(141)][e(139)]({attr:r,bindings:i,nodes:Array[e(162)](n[e(130)])}),n[e(159)]()}r?.remove(),e(163)in t[e(142)]&&t[e(169)]({[t[e(142)]["let:value"]]:{get:()=>t[e(133)].selectedValue}})},context:t=>({nodes:[],selectedCase:null,get selectedValue(){const e=Xt;return this[e(127)]?this[e(127)][e(128)][e(144)]:t.$attr[e(144)]}}),mount(t){const e=Gt,n=t[e(131)].switch;t[e(137)](()=>[t[e(142)][e(144)],...n[e(141)].map(t=>t[e(128)].value)],()=>{const r=e,o=t.$attr[r(144)],s=n[r(141)][r(165)](t=>void 0===o?!!t.attr[r(144)]:t[r(128)][r(144)]===o);if(s===n[r(161)])return;this.selectedCase=n.cases[s],n.matchIndex=s;const i=(this[r(127)]?this.selectedCase[r(136)]:n[r(160)])||[];this.nodes=i[r(129)](e=>{const n=r,o=e[n(148)](!0);return o[n(155)]=t[n(154)][n(158)](o,{$parent:t,$context:t.$context}),o})}).run()},template:Gt(146)};const Zt=te;function te(t,e){return t-=201,ne()[t]}!function(){const t=te,e=ne();for(;;)try{if(332995==parseInt(t(207))/1*(parseInt(t(204))/2)+parseInt(t(221))/3*(parseInt(t(201))/4)+parseInt(t(220))/5+parseInt(t(211))/6+-parseInt(t(210))/7*(-parseInt(t(226))/8)+-parseInt(t(205))/9+-parseInt(t(224))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ee={tag:Zt(202),unwrap:!0,context(t){const e=Zt,n=""in t[e(219)],r=n?t[e(219)][""]??{}:Object[e(215)](t[e(218)]),o={};for(const s in t.$attr){if(""===s)continue;const i=t[e(214)][e(223)][s];Mt(r,i[e(209)])?Object[e(206)](o,i.propName,{get:()=>t[e(219)][s],set:o=>{const s=e,a=Lt(n?r:t[s(218)],i.cmd);a[s(212)][a[s(217)]]=o},enumerable:!0,configurable:!0}):Object.defineProperty(o,i[e(222)],{get:()=>t.$attr[s],enumerable:!0,configurable:!0})}return new Proxy(o,{get:(t,n,o)=>n in t?Reflect[e(216)](t,n,o):r?.[n],set(t,n,o,s){const i=e;return Object.getOwnPropertyDescriptor(t,n)?.[i(203)]?Reflect.set(t,n,o,s):r&&n in r?(r[n]=o,!0):(t[n]=o,!0)},has:(t,e)=>e in t||r&&e in r,ownKeys(t){const n=e,o=new Set([...Reflect[n(208)](r||{}),...Reflect[n(208)](t)]);return Array.from(o)},getOwnPropertyDescriptor:(t,n)=>Reflect[e(225)](t,n)||Reflect.getOwnPropertyDescriptor(r||{},n)})},template:Zt(213)};function ne(){const t=["39sItjXC","ownKeys","cmd","7FWlCLI","3223272agGfvm","target",'<slot scope="inner"/>',"$cache","create","get","prop","$context","$attr","1761015cwzNzv","6QQryaw","propName","bind","6493130zEOrtW","getOwnPropertyDescriptor","1424632SnJdJQ","41544RpUYHG","context","set","28592mYZUMZ","5971518UOWiSn","defineProperty"];return(ne=function(){return t})()}const re=se;function oe(){const t=["$attr","35373wuogfb","$setInnerVars","43518WwJqIq","10dFTyKm","var","452977TpZXWt","866514rHcpWM","119UguEOn","34264gOZctA","9303309IQQEkW","920848RMSepN","180SNhnXe"];return(oe=function(){return t})()}function se(t,e){return t-=365,oe()[t]}!function(){const t=se,e=oe();for(;;)try{if(259251==parseInt(t(375))/1+parseInt(t(376))/2+-parseInt(t(370))/3+parseInt(t(367))/4+parseInt(t(368))/5*(parseInt(t(372))/6)+-parseInt(t(377))/7*(parseInt(t(365))/8)+-parseInt(t(366))/9*(parseInt(t(373))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ie={tag:re(374),unwrap:!0,prepare(t){const e=re,n={};for(const r in t[e(369)])n[r]={get:()=>t[e(369)][r]};t[e(371)](n,t.$vars)},template:'<slot :vars="$vars"/>'};const ae=le;function ce(){const t=["document","includes","1231580WLAMOA","2804691QcIscv","ownerDocument","url","attr","componentRegistry","events","import","update","COMPONENT_TAG_NOT_FOUND","$log","entries","def","COMPONENT_LOAD_FAILED","$setInnerContext","$cmp","nodes","28087610NHOCoj","crash-boundary","crash-boundary-default","1656485hyTzot","$context","$dispatch","register","values","tag","9ISIzFw","$resolveCmp","originalValue","<fragment :nodes/>","fail","685302zumXRd","ready","$parent","originalName","4yuxRpE","$scope","resolveImportPath","bind","$error","49jlkIZX","$attr","482508BbqDrX","$cache","1565360OaRsdT","$el","cmp","append","scope","ok:on:","getRegistration","setAttribute","templates","$cmp.$attr['","activate","createElement","$ok"];return(ce=function(){return t})()}function le(t,e){return t-=104,ce()[t]}!function(){const t=le,e=ce();for(;;)try{if(550920==parseInt(t(120))/1+parseInt(t(137))/2+parseInt(t(138))/3+parseInt(t(113))/4*(parseInt(t(157))/5)+-parseInt(t(109))/6*(-parseInt(t(118))/7)+parseInt(t(122))/8+parseInt(t(104))/9*(-parseInt(t(154))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ue={tag:"component",unwrap:!0,context:t=>({get tag(){return t.$attr.tag},get import(){const e=le;return t[e(119)][e(144)]},nodes:[],async update(){const e=le;try{let n;if(t[e(119)][e(144)]){const r={import:t.$attr[e(144)]};void 0!==t.$attr[e(162)]&&(r[e(162)]=t.$attr[e(162)]);const o=(t[e(111)]?.$cache[e(124)]||t[e(152)]?.$cache[e(124)])?.[e(149)][e(140)];n=t[e(134)][e(142)][e(160)](r,{parentId:t[e(152)]?.[e(121)][e(124)][e(149)].id,override:!0,base:t[e(134)][e(142)][e(115)]("./",o)})}else if(n=t.$ok[e(142)][e(128)](t[e(119)][e(162)],t[e(152)]),!n)throw t.$error(e(146),null,{tag:t.$attr.tag});await t[e(134)][e(142)][e(132)](n,t);const r=n[e(110)],o=t[e(123)]?.ownerDocument||globalThis[e(135)],s=o[e(133)](e(155)),i=o[e(133)](r[e(162)]);i[e(114)]=t.$ok[e(126)](i,{$parent:t,$context:t[e(158)],$attr:t[e(119)][e(141)]??Object.fromEntries(Object[e(148)](t[e(119)]).filter(([t])=>![e(162),e(144),e(141)][e(136)](t))),$cmp:t});for(const n of Object[e(161)](t[e(121)][e(143)]))i[e(129)](e(127)+n.name,"$cmp.$cache.events['"+n.propName+"'].listener");for(const n of Object[e(161)](t[e(121)][e(124)][e(130)]))i[e(125)](n);for(let[n,r]of Object.entries(t[e(121)][e(116)]))n!==e(144)&&"tag"!==n&&("static"===r.type?i[e(129)](r[e(112)],r[e(106)]):i[e(129)](r[e(112)],e(131)+n+"']"));i.$scope[e(151)](t[e(158)]),s[e(125)](i),this[e(153)]=[s]}catch(n){const r=t[e(117)](e(150),n,{tag:t[e(119)][e(162)],import:t[e(119)][e(144)],message:"Failed to load component <"+(t[e(119)][e(162)]||t[e(119)][e(144)])+">"}),o=(t[e(123)]?.[e(139)]||globalThis[e(135)])[e(133)](e(156));o.$scope=t[e(134)][e(126)](o,{$attr:{error:r,retry:()=>{this[e(145)]()}}}),this.nodes=[o],t[e(147)].error([],r),t[e(159)](e(108),n)}}}),template:ae(107),async mount(t){const e=ae;t[e(105)]=t.$cmp,await this[e(145)]()},mounted(t){const e=ae;t.$watch(()=>[this[e(162)],this[e(144)]],async()=>{const t=e;await this[t(145)]()})}};const fe=pe;function pe(t,e){return t-=250,he()[t]}function he(){const t=["1496ZafToO","component","config","692NeJlYF","createElement","$lifecycle","26052WqygBB","append","retry","error","dom","setAttribute","$scope","crash-boundary-default","$ok","785pnMfDA","ownerDocument","$setInnerVars","30KrNMYV","14720651JmVGSN","$state","appendChild","71793GLQoSQ","CRASH_BOUNDARY","slot","document","init",":var:error","watch","crash","$log","boundary_component","17022SRmFjN","$el","5691497EEdEcQ",":var:retry","$attr","scope","403188QmytFL","name","crash-boundary","dispatchEvent",":retry","221262RuFYxq","mountedOrAborted","$destroyChildren",":error","$innerContext"];return(he=function(){return t})()}!function(){const t=pe,e=he();for(;;)try{if(751607==parseInt(t(280))/1+parseInt(t(285))/2+parseInt(t(296))/3*(parseInt(t(293))/4)+parseInt(t(257))/5*(parseInt(t(274))/6)+parseInt(t(276))/7+parseInt(t(290))/8*(parseInt(t(264))/9)+-parseInt(t(260))/10*(parseInt(t(261))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var de={tag:fe(282),unwrap:!0,initOwnChildren:!0,prepare(t){const e=fe;t[e(259)]({$errorBoundary:{get:()=>t[e(289)]}})},context:t=>({error:null,async crash(e){const n=pe;if(this[n(251)]=e,"mounting"===t[n(262)]&&(await t.$lifecycle[n(286)],t.$__unmount__$))return;await t[n(287)](!0);const r=t.$attr[n(291)]||t[n(256)][n(292)][n(271)][n(273)]||n(255),o=t.$el?.ownerDocument||globalThis[n(267)],s=o.createElement(r);s[n(253)](n(288),"error"),s.setAttribute(n(284),n(250));const i=o.createElement("slot");i[n(253)](n(281),"error"),i[n(253)](n(269),"error"),i[n(253)](n(277),"()=>retry()"),i[n(263)](s),i[n(254)]=t[n(256)][n(279)](i,{$parent:t,$cmp:t}),t[n(256)][n(252)][n(297)](t[n(275)],i),await t[n(256)][n(268)](i),t[n(272)][n(251)]([n(265)],e),t[n(275)][n(283)](new CustomEvent(n(271),{detail:this}))},async retry(){const e=pe;await t.$destroyChildren(!0),this[e(251)]=null;const n=(t[e(275)]?.[e(258)]||globalThis[e(267)])[e(294)](e(266));n[e(254)]=t[e(256)][e(279)](n,{$parent:t,$cmp:t}),t[e(256)][e(252)].append(t[e(275)],n),t[e(256)][e(268)](n),await n[e(254)][e(295)][e(286)]}}),async mount(){const t=fe;await this[t(250)]()},mounted(t){const e=fe;t.$attr[e(270)]&&t.$watch(()=>t[e(278)][e(270)],()=>this.error&&this[e(250)]())}};function me(t,e){return t-=396,we()[t]}var ge=me;!function(){for(var t=me,e=we();;)try{if(451715==parseInt(t(412))/1*(-parseInt(t(407))/2)+-parseInt(t(413))/3*(-parseInt(t(396))/4)+-parseInt(t(402))/5*(-parseInt(t(401))/6)+parseInt(t(398))/7*(parseInt(t(411))/8)+-parseInt(t(404))/9+parseInt(t(408))/10+parseInt(t(397))/11*(parseInt(t(405))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ye={tag:ge(406),attr:{error:{type:Object,default:null}},context:t=>({get errorMessage(){var e=me;return t[e(400)][e(409)]?.[e(399)]||t[e(400)].error?.message||"Something went wrong"}}),template:ge(410),style:ge(403)};function we(){var t=["$attr","12YRRrHM","1681180xTpdlr","[tag]{position:relative;display:flex;flex-direction:column;flex:1;padding:1em;gap:.5em;background:#2b0000;color:#ffcfcf;border:1px solid #ff4c4c;border-radius:6px;font-family:monospace}[tag] pre{margin:0;white-space:pre-wrap}[tag] .retry{position:absolute;top:.4em;right:.4em;background:0 0;border:0;color:#ff9c9c;font-size:1.2em;cursor:pointer;line-height:1;padding:.2em;transition:color .2s}[tag] .retry:hover{color:#fff}","7073631RQYqpq","24WUCfre","crash-boundary-default","38rIQUaW","6075890MPEDWn","error",'<div><if :="$props.retry"><button class="retry" @click="$props.retry()">↻</button></if><strong>{{ $props.error?.code }}</strong><pre>{{ errorMessage }}</pre></div>',"24iQvDdt","34439yFVYcN","25572ICfAIR","40ipzNYM","1217194DZUduP","712614vNIOqW","rootCauseMessage"];return(we=function(){return t})()}const Ie=ve;function be(t){let e=t,n=null;for(;e;)e.ok&&(n=e.ok),e=e.cause;return n}function $e(){const t=["3122150NMkpup","singleton","mode","silent","toggle","function","unhandledrejection","addEventListener","shared","splice","2129348gwsmJU","scope","error","events","crash-service","cause","throw","errors","$errorBoundary","_ok_handled","6jKgbqx","11288KLyOqv","reason",'<if :="error"><component :tag="$ok.config.crash.component || \'crash-fatal\'" :error @close/></if>',"push","6774817NxfgLf","[tag]{z-index:1000;position:absolute;left:0;top:0;right:0;bottom:0}","proxyInstance","$vars","258236AvWhxa","crash","1123148yNfNKD","6XnWCiU","config","_events","4221ULQccK","758372wCnAKW","length","close","bind","$ok","110dZIHpC","Emitter"];return($e=function(){return t})()}function ve(t,e){return t-=124,$e()[t]}!function(){const t=ve,e=$e();for(;;)try{if(734312==-parseInt(t(134))/1+-parseInt(t(151))/2+parseInt(t(161))/3*(parseInt(t(129))/4)+parseInt(t(141))/5+parseInt(t(130))/6*(parseInt(t(166))/7)+parseInt(t(162))/8*(parseInt(t(133))/9)+parseInt(t(139))/10*(-parseInt(t(127))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ke={tag:"crash-service",register(t){const e=ve;t[e(131)][e(128)][e(143)]!==e(157)&&typeof globalThis[e(148)]===e(146)&&(globalThis[e(148)](e(147),t=>{const n=e,r=be(t[n(163)]);r&&(r[n(149)][n(128)].crash(t[n(163)]),t.preventDefault())}),globalThis[e(148)](e(153),t=>{const n=e,r=be(t[n(153)]);r?.[n(149)][n(128)][n(128)](t[n(153)])})),t.shared[e(128)]=t[e(125)].proxy({errors:[],get events(){const n=e;return this[n(132)]=this[n(132)]??t.OK[n(140)][n(137)](this),this._events},get error(){const t=e;return this.errors[t(135)],this[t(158)][0]},async close(n){const r=e,o=this[r(158)].indexOf(n);o>-1&&(this.errors[r(150)](o,1),this[r(154)].emit(r(136),n)),!this[r(158)].length&&await t[r(149)][r(142)][r(145)]("crash-service",!1)},async crash(n){const r=e,o=function(t){const e=ve;let n=t,r=null;for(;n;){const t=n?.[e(152)];t?.[e(126)]?.[e(159)]&&(r=t?.[e(126)][e(159)]),n=n[e(156)]}return r}(n);if(o)return o[r(128)](n);if(t[r(131)][r(128)][r(143)]===r(157))throw n;console[r(153)](n),n[r(160)]||(n[r(160)]=!0,t.emit(r(153),n),this[r(154)].emit(r(128),n),this[r(158)][r(165)](n),t[r(131)][r(128)][r(143)]!==r(144)&&await t.shared[r(142)].toggle(r(155),!0))}})},context:t=>({get error(){const e=ve;return t[e(138)][e(149)][e(128)][e(153)]},async close(){const e=ve;await t[e(138)][e(149)][e(128)][e(136)](this[e(153)])}}),template:Ie(164),style:Ie(124)};function _e(t,e){return t-=274,Ee()[t]}var Oe=_e;function Ee(){var t=["225332cbxKiX","$attr","454584HDycZD","error","$ok","662094iaaBuu","951820DuIyrL","11hlxerT","crash-fatal","shared","98524fxydGz","889231tUdBBe","33822ICSpEQ","2ILOTTE","6oFuETc","5GMATFQ",'<div style="display:flex;justify-content:center;align-items:center;height:100%;width:100%;background:#111;color:#fff;flex-direction:column"><svg width="100" height="100" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10" stroke="#f44336" stroke-width="2"/><line x1="12" y1="7" x2="12" y2="13" stroke="#f44336" stroke-width="2"/><circle cx="12" cy="17" r="1.5" fill="#f44336"/></svg><h1>ok... Something went wrong</h1><p>{{error.message}}</p></div>'];return(Ee=function(){return t})()}!function(){for(var t=_e,e=Ee();;)try{if(113727==parseInt(t(279))/1*(parseInt(t(276))/2)+-parseInt(t(280))/3*(-parseInt(t(283))/4)+parseInt(t(281))/5*(-parseInt(t(278))/6)+-parseInt(t(277))/7+parseInt(t(285))/8+parseInt(t(288))/9+parseInt(t(289))/10*(-parseInt(t(290))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ae={tag:Oe(274),context:t=>({get error(){var e=_e;return t[e(284)].error||t[e(287)][e(275)].crash[e(286)]||{message:"We're sorry"}}}),template:Oe(282)};const Te=Se;function Se(t,e){return t-=193,Ce()[t]}!function(){const t=Se,e=Ce();for(;;)try{if(911675==parseInt(t(214))/1*(parseInt(t(210))/2)+-parseInt(t(208))/3+parseInt(t(199))/4*(-parseInt(t(198))/5)+-parseInt(t(211))/6*(parseInt(t(201))/7)+parseInt(t(215))/8+-parseInt(t(205))/9*(-parseInt(t(193))/10)+parseInt(t(212))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var xe={tag:Te(204),register(t){const e=Te;t[e(203)][e(209)]=t[e(195)].proxy({singletons:{},async toggle(n,r=null,{container:o,registration:s}={}){const i=e;o??=t[i(207)][i(209)].container??t[i(207)][i(202)];const a=this[i(216)][n]??={el:null},c=r??!a.el;if(c&&!a.el){const e=t.config.document.createElement(n);if(o[i(194)](e),a.el=e,s){const n=s.ready??s[i(206)];e[i(197)]=t[i(196)](e),e.$scope[i(213)]=n}await t.init(e)}else!c&&a.el&&(delete this.singletons[n],await t[i(200)](a.el,!0),a.el=null);return a.el}})}};function Ce(){const t=["2876661WMqiOh","singleton","96NmbKji","42gZCRRA","6682764IMPOwI","$resolveDef","21149aSfHUO","13058672LPKpFl","singletons","1459390pQGgqo","appendChild","proxyInstance","scope","$scope","2695835WvvrQz","8aVXtdH","destroy","452053tvUdfV","body","shared","singleton-service","9EzJqKO","raw","config"];return(Ce=function(){return t})()}const Ne=Re;function Re(t,e){return t-=185,Le()[t]}function Le(){const t=["5aylRUv","mounted","innerHTML","childNodes","cloneNode","createElement","let:","1506870VUeTBD","4CqJAkc","startsWith","dom","27465ohmTea","setAttribute","675650QXKMXr","BODY","append","let:key","init","1eDghUm","scope","$parent","3678504gzybLG","outerHTML","repeat","content","$cache",":of","document","cmp","default","1516038DxhwAV","253NPNAqV","name","$el","let:item","templates","removeAttribute","$ok","value","744994SgYihw","div","320873LqNyhF","tagName"];return(Le=function(){return t})()}!function(){const t=Re,e=Le();for(;;)try{if(246588==-parseInt(t(221))/1*(parseInt(t(199))/2)+-parseInt(t(214))/3*(parseInt(t(211))/4)+parseInt(t(203))/5*(-parseInt(t(190))/6)+-parseInt(t(201))/7+-parseInt(t(224))/8+-parseInt(t(210))/9+-parseInt(t(216))/10*(-parseInt(t(191))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Me={tag:Ne(226),unwrap:!0,async parse(t){const e=Ne,n=(t[e(193)]?.ownerDocument||globalThis[e(187)])[e(208)](t[e(223)].$el.tagName===e(217)?e(200):t[e(223)].$el[e(202)]??e(200));n[e(215)]("as","each");for(let r of t[e(193)].attributes)["as"].includes(r[e(192)])||([e(186),":"].includes(r[e(192)])||r[e(192)][e(212)](e(209)))&&n[e(215)](r[e(192)],r[e(198)]);"REPEAT"===t[e(193)][e(202)]?n[e(218)](...t[e(185)][e(188)][e(195)].default[e(227)][e(207)](!0)[e(206)]):(n[e(205)]=t[e(193)][e(225)],n[e(206)][0].removeAttribute("as"),n[e(206)][0][e(196)](e(194)),n[e(206)][0][e(196)](e(219)),n[e(206)][0][e(196)](e(186)),n[e(206)][0].append(...t[e(185)][e(188)][e(195)][e(189)][e(227)][e(207)](!0)[e(206)])),t[e(197)][e(213)].insertAfter(t[e(223)][e(193)],n,t[e(193)]);const r=t.$ok[e(222)](n,{$parent:t.$parent});t.$ok[e(220)](n),await r.$lifecycle[e(204)],await t.$destroy(!0)},mounted(){}};function je(t,e){return t-=361,Pe()[t]}const De=je;function Pe(){const t=["data-ok-shadow-container","ownerDocument","create","innerHTML","shadow","$vars","$context","$scope","6051292TnoEEn","784610snvVtQ","all","128wVOuoh","71602RBFUfs","document","push","cmp","41aUsSiC","$ok","$shadow","mounted","9333177NlAYji","$init","79137ObVojt","$el","$lifecycle","dom","setAttribute","componentRegistry","div","append","1084038yPksJA","config","3075246gssSNK","createElement","open"];return(Pe=function(){return t})()}!function(){const t=je,e=Pe();for(;;)try{if(757232==parseInt(t(387))/1*(parseInt(t(383))/2)+-parseInt(t(366))/3+parseInt(t(379))/4+-parseInt(t(380))/5+-parseInt(t(368))/6+-parseInt(t(391))/7+-parseInt(t(382))/8*(-parseInt(t(393))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ue={tag:De(375),unwrap:!0,async mount(t){const e=De,n=Object[e(373)](t[e(388)]),r=(t.$el[e(372)]||globalThis[e(384)])[e(369)](e(364));r[e(362)](e(371),"");const o=r.attachShadow({mode:e(370)});n[e(367)]={...t[e(388)][e(367)],document:o,head:o,body:o},n[e(363)]=Object.create(t[e(388)][e(363)]),n[e(363)].ok=n;const s=n.createNodes(t.$cache[e(386)].templates.default[e(374)]);o[e(365)](...s),t[e(394)][e(389)]=o,t.$ok[e(361)][e(365)](t[e(394)],r);const i=[];for(const r of s)r[e(378)]=n.scope(r,{$parent:null,$context:t[e(377)],$vars:t[e(376)]}),r[e(378)][e(392)](),i[e(385)](r[e(378)][e(395)][e(390)]);await Promise[e(381)](i)},unmount(t){t[De(394)].$shadow=null}},Fe=We;function We(t,e){return t-=411,ze()[t]}!function(){for(var t=We,e=ze();;)try{if(972173==-parseInt(t(414))/1+-parseInt(t(420))/2+-parseInt(t(421))/3*(parseInt(t(419))/4)+parseInt(t(413))/5+-parseInt(t(417))/6*(-parseInt(t(411))/7)+-parseInt(t(416))/8+parseInt(t(412))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Be={tag:Fe(415),unwrap:!0,mount(t){t[Fe(418)]()}};function ze(){var t=["7095184tjnRgT","1978976lVSphV","3SQOVqz","315afhOBN","25641243gdDeWs","3828070JTEUUW","212829zdiUug","ignore","4884720jtPvtT","125898UjwUPm","$ignoreChildren"];return(ze=function(){return t})()}function Ve(t,e){return t-=101,qe()[t]}!function(){for(var t=Ve,e=qe();;)try{if(386516==parseInt(t(105))/1*(-parseInt(t(106))/2)+parseInt(t(109))/3+parseInt(t(102))/4*(-parseInt(t(104))/5)+-parseInt(t(103))/6+-parseInt(t(108))/7+parseInt(t(101))/8+parseInt(t(107))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ke={ifCmp:dt,fragment:yt,each:St,slot:Ft,switchCmp:Qt,context:ee,varCmp:ie,component:ue,repeat:Me,crashService:ke,crashBoundary:de,crashBoundaryDefault:ye,crashFatal:Ae,singletonService:xe,shadow:Ue,ignore:Be};function qe(){var t=["2829680DArDgQ","285642blBmHh","4184040FCPFxM","88532XqXWrV","2744274BMOgdU","135RUGwdW","239314cBycje","2wcQiBr","13201389zqXEsQ"];return(qe=function(){return t})()}function He(t,e){return t-=382,Je()[t]}const Ye=He;function Ge(t,e){const n=He;return(t[n(392)]||globalThis[n(382)])[n(405)]("")}function Xe(t,e){const n=He;for(const r of t){if(r[n(421)]&&r[n(421)]!==e){const t=r[n(421)][n(426)];if(t){const e=t[n(416)][n(403)](r);-1!==e&&t[n(386)](e,1)}}r.$owner=e}}function Je(){const t=["5105088hqsLrY","firstChild","end","splice","defaultEmptyTextMarker","remove","256612LhEVZX","createComment","push","ownerDocument","nextSibling","Cannot restore: host element is already in the DOM","474SLwCGS","toUpperCase","3674776jTMplo","textContent","defaultCommentMarker","insertBefore","start","parentNode","indexOf","Cannot restore a destroyed handle","createTextNode","1420LXkNyP","$ignore","Cannot splice into destroyed handle","range","Already unwrapped"," - ","47537lOIfkA","placeholder","append","$scope","nodes","replaceWith","children","lastChild","add","$owner","4071jOQATR","restore","351969fsPfTz","nodeType","$handle","17035XMokxk","length","isDestroyed","document"];return(Je=function(){return t})()}function Qe({marker:t=Ge}={}){const e={unwrap(n){const r=He;if(n[r(426)])throw new Error(r(410));const o=function(t,e,n){const r=He,o={el:t,nodes:[],placeholder:null,isDestroyed:!1,get start(){const t=He;return this[t(416)][0]||this[t(413)]},get end(){const t=He;return this[t(416)][this[t(416)].length-1]||this[t(413)]},splice(t,r,...o){const s=He;if(this.isDestroyed)throw new Error(s(408));if(0===o[s(428)]&&0===r)return[];const i=this[s(416)][t];let a=this.end.$handle?n.lastChild(this[s(385)]):this.end,c=a.parentNode;i?(a=i[s(426)]?n[s(384)](i):i,a[s(426)]&&(a=n.firstChild(a))):a=a[s(393)];const l=this[s(416)].splice(t,r,...o);if(Xe(o,this.el),0===this[s(416)].length)this.placeholder||(this[s(413)]=e(this.el,s(413)),this[s(413)].$ignore=!0,this[s(413)][s(421)]=this.el,c&&c[s(400)](this[s(413)],a));else{const t=a||this[s(413)]?.[s(393)]||null;for(const e of o)if(e.$handle){e[s(421)]=this.el;for(const n of e[s(426)][s(416)])n[s(421)]=e,c?.[s(400)](n,t)}else c?.insertBefore(e,t);this[s(413)]?.[s(402)]&&(this[s(413)][s(388)](),delete this[s(413)][s(421)],this[s(413)]=null)}for(const t of l){if(t.$handle)for(const e of n[s(409)](t))e[s(402)]&&e[s(388)]();else t[s(402)]&&t.remove();t[s(421)]=null}return l},destroy(){const t=He;this[t(429)]=!0,this[t(413)]?.[t(402)]&&this[t(413)][t(388)](),delete this[t(413)]?.$owner}};return t[r(426)]=o,o}(n,t,e),s=new Set;let i=n.firstChild;for(;i;){if(i.$owner&&i[r(421)]!==n){let t=i.$owner;for(;t?.[r(421)];)t=t.$owner;s.add(t),i=t[r(426)]?.[r(385)][r(393)];continue}i[r(426)]?(s[r(420)](i),i=i[r(426)].end?.[r(393)]):(s.add(i),i=i[r(393)])}return 0===s.size?(o[r(413)]=t(n,"placeholder"),o[r(413)][r(407)]=!0,o[r(413)][r(421)]=n,n.replaceWith(o[r(413)]),o):(Xe(s,n),o[r(416)][r(391)](...s),n.replaceWith(...e[r(409)](n)),o)},restore(t){const e=He;if(t.isDestroyed)throw new Error(e(404));if(t.el.isConnected)throw new Error(e(394));const n=t[e(401)];t.el.$handle=void 0;for(const n of t[e(416)])delete n[e(421)];return n[e(417)](t.el),t.el[e(414)](...t[e(416)]),t[e(413)]?.parentNode&&t[e(413)].remove(),t.el},remove(t){const n=He;if(!t)return;const r=t[n(421)];if(r?.[n(426)]){const e=r[n(426)],o=e[n(416)][n(403)](t);-1!==o&&e[n(386)](o,1)}if(t.$handle){for(const r of[...this[n(409)](t)])e[n(388)](r);t[n(426)][n(413)]?.[n(402)]&&(t.$handle[n(413)][n(388)](),t[n(426)].placeholder[n(421)]=null)}t.isConnected&&t[n(388)](),t[n(421)]=null,t[n(426)]=null},insertBefore(t,n,r){const o=He,s=t[o(426)],i=r?.$handle?.[o(401)]||r;if(s){const t=s[o(416)][o(403)](r),e=-1===t?s[o(416)].length:t;return void s[o(386)](e,0,n)}if(n.$handle){n[o(421)]=t;for(const r of e[o(409)](n))r.$owner=n,t.insertBefore(r,i)}else t.insertBefore(n,i)},insertAfter(t,n,r){const o=He,s=t.$handle;let i=r?.[o(426)]?.[o(385)]||r;if(s)s[o(386)](s.nodes[o(403)](r)+1,0,n);else if(n.$handle){n.$owner=t;for(const r of e[o(409)](n))r[o(421)]=n,t[o(400)](r,i?.[o(393)]),i=r}else t.insertBefore(n,i?.[o(393)])},prepend(t,...n){const r=He,o=t[r(426)],s=o?o.el:t,i=o?o[r(416)][0]:t[r(384)];for(const t of n)e[r(400)](s,t,i)},replace(t,...e){const n=He;t[n(426)]&&this[n(423)](t[n(426)]);const r=t.$owner;if(r?.[n(426)]){const o=r.$handle,s=o[n(416)][n(403)](t);if(-1!==s)return void o.splice(s,1,...e)}t[n(417)](...e)},append(t,...n){const r=He,o=t[r(426)],s=o?o.el:t;for(const t of n)e[r(400)](s,t,null)},firstChild(t){const n=He,r=t[n(426)];return r?r[n(401)][n(426)]?e[n(384)](r[n(401)]):r.start:t[n(384)]},lastChild(t){const n=He,r=t.$handle;return r?r[n(385)].$handle?e[n(419)](r[n(385)]):r[n(385)]:t[n(419)]},firstRealNode(t){const n=He,r=t?.[n(426)];return r?e.firstRealNode(r[n(401)]):t},firstElementChild(t){const n=He;for(const r of e[n(409)](t))if(r[n(425)]===r.ELEMENT_NODE)return r;return null},*children(t){const e=He,n=t.$handle;if(n){if(n[e(413)])return;for(const t of n[e(416)])yield t}else for(const e of t.childNodes)yield e},*range(t){const n=He;for(let r of e[n(418)](t))r.$handle?yield*e[n(409)](r):yield r},assignWrapper:Xe};return e}function Ze(t,e){e&&t[nn(204)](e)}function tn(t){const e=nn;if(t[e(209)])return Promise[e(158)](t)}function en(t,e){const n=nn,r=t[n(156)].dom,o=t[n(167)],s=[];for(const i of e){const e=i[n(210)]?i:i[n(177)](!0);r.append(o,e),Ze(s,t.$ok.scope(e,{$parent:t})[n(201)]())}return tn(s)}function nn(t,e){return t-=155,rn()[t]}function rn(){const t=["$options","push","watch","cmd","textContent","then","length","$scope","parentNode","every","replace","part","watcher","$ignore","$ok","document","all","unwrap","3597560gjHDEu","184kNAYRv","2gdVZoN","mount","concat","createTextNode","dom","$el","$fn","expr","join","39840zUAbDG","$watch","104084LyuVQT","trim","map","1505322yBqcey","cloneNode","children","destroy","scope","static","$context","value","slice","3693024XNjpaY","ownerDocument","OKError","$emit","text","onChange","whitespace","$parent","$handle","3704585qcEcEJ","type","17138133YTFntf","indexOf","isArray","$cache","dynamic","$init","remove"];return(rn=function(){return t})()}function on(t,e){const n=nn,r=t[n(167)],o=t[n(199)][n(189)]=t[n(199)][n(189)]||{};if(o[n(214)])return function(t){const e=nn,n=t[e(199)][e(189)],r=n.part,o=t[e(167)];if(!r)throw t.$ok[e(187)]("TEXT_NO_CACHE",null,{message:"No text cache",scope:t});if(r[e(195)]!==e(181))return n.cmd=r[e(169)],n.fn=t[e(168)](n[e(206)]),n[e(183)]=null,function(t,e){const n=nn;let r=!0;return e[n(190)]=()=>{const o=n;r?r=!1:e[o(215)]?.[o(205)]();const s=e.value;if(Rt(s)||function(t){const e=nn;return Array.isArray(t)&&t[e(212)](Rt)}(s))return function(t){const e=nn,n=t[e(167)],r=t.$ok[e(166)],o=[][e(164)](t[e(199)][e(189)][e(183)]||[]);if(n[e(193)]){const s=[];for(const o of r[e(178)](n))Ze(s,t[e(156)][e(179)](o));const i=tn(s);if(i)return i[e(208)](()=>en(t,o))}else r.unwrap(n);return en(t,o)}(t);const i=[];for(const e of t[o(156)][o(166)][o(178)](t[o(167)]))Ze(i,t[o(156)][o(179)](e));const a=tn(i);if(a)return a[o(208)](()=>{t[o(167)].textContent=""+s});t[o(167)][o(207)]=""+s},e[n(215)]=t[n(172)](()=>{const r=n,o=e.fn(t);return Array[r(198)](e[r(183)])&&e.value[r(209)],e[r(183)]=o,o},e.onChange),e[n(190)]()}(t,n);o[e(207)]=r[e(183)]}(t);const s=e?.[n(191)]??t[n(192)]?.[n(203)]?.[n(191)]??n(202);t[n(188)](n(163));let i=r[n(207)];"remove"===s?i=i[n(213)](/\s+/g,""):"trim"===s&&(i=i[n(174)]());const a=function(t){const e=nn,n=[];let r=0,o=0;for(;r<t[e(209)];){const s=t[e(197)]("{{",r);if(-1===s)break;if(s>0&&"\\"===t[s-1]){s-1>o&&n.push({type:e(181),value:t[e(184)](o,s-1)}),n[e(204)]({type:e(181),value:"{{"}),r=o=s+2;continue}s>o&&n[e(204)]({type:e(181),value:t.slice(o,s)});const i=t[e(197)]("}}",s+2);if(-1===i)break;n[e(204)]({type:"dynamic",expr:t[e(184)](s+2,i)[e(174)]()}),r=o=i+2}return o<t[e(209)]&&n[e(204)]({type:"static",value:t[e(184)](o)}),n}(i);if(0!==a[n(209)]){if(1===a.length)return"static"===a[0].type?void(r[n(207)]=a[0][n(183)]):(o[n(214)]=a[0],on(t));if(!1===r[n(211)]?.[n(210)]?.[n(203)].splitText)return o.part={type:n(200),expr:"`"+a[n(175)](t=>t.type===n(181)?t[n(183)][n(213)](/`/g,"\\`"):"${"+t[n(169)]+"}")[n(170)]("")+"`"},on(t);t[n(156)][n(166)][n(159)](t[n(167)]);for(const e of a){const r=(t[n(167)]?.[n(186)]||globalThis[n(157)])[n(165)]("");r[n(210)]=t[n(156)][n(180)](r,{$parent:t,$context:t[n(182)],$vars:t.$vars,$cache:{text:{part:e}}}),t.$ok[n(166)].append(t[n(167)],r)}}else t[n(167)][n(155)]=!0}!function(){const t=He,e=Je();for(;;)try{if(368787==parseInt(t(424))/1+parseInt(t(389))/2+-parseInt(t(422))/3*(parseInt(t(406))/4)+-parseInt(t(427))/5*(-parseInt(t(395))/6)+-parseInt(t(412))/7+-parseInt(t(397))/8+parseInt(t(383))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),Qe[Ye(399)]=function(t,e){const n=He;return(t.ownerDocument||globalThis[n(382)])[n(390)](e[n(396)]()+" "+(t.tagName||t[n(398)]||"").trim()+n(411)+(t[n(415)]?.id||""))},Qe[Ye(387)]=Ge,function(){const t=nn,e=rn();for(;;)try{if(399119==-parseInt(t(173))/1*(parseInt(t(162))/2)+parseInt(t(171))/3*(-parseInt(t(161))/4)+-parseInt(t(194))/5+parseInt(t(185))/6+-parseInt(t(176))/7+-parseInt(t(160))/8+parseInt(t(196))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=gn,e=fn();for(;;)try{if(866398==-parseInt(t(315))/1+parseInt(t(332))/2+-parseInt(t(305))/3+-parseInt(t(313))/4*(parseInt(t(320))/5)+-parseInt(t(302))/6+parseInt(t(327))/7*(-parseInt(t(299))/8)+-parseInt(t(287))/9*(-parseInt(t(291))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const sn=/^[a-zA-Z][a-zA-Z\d+.-]*:/,an=/^(https?:)?\/\//,cn=/\.ok\.(?:js|mjs|html)(?:[?#].*)?$/i,ln=new WeakMap,un=new WeakMap;function fn(){const t=["querySelectorAll","8930551wHjToj","startsWith","endsWith",'Unable to resolve bare import specifier "',"slice","2070374pacYat","baseURL","string",'script[type="importmap"]',"textContent","8671554mOMBCI","window","entries","trim","40BOcyrP","length","object",'Cannot resolve import specifier "',"href","Import specifier must be a non-empty string.","filter","assign","8ODAHxt","index","\n---\n","4109772RjhZyb","baseURI","signature","511014BvrXuy",'". Add it to an import map or use an explicit URL/path.',"join","scopes","size","querySelector","base","exec","464764tDiLWk","from","1194574tXbmqz","test","set","split","imports","30CamMmD","has","keys","value","get","parse"];return(fn=function(){return t})()}function pn(){return globalThis.document??null}function hn(t=pn()){const e=gn;return t?.[e(303)]||t?.[e(310)]?.(e(311))?.[e(295)]||globalThis[e(288)]?.location?.[e(295)]||null}function dn(t){const e=gn;return typeof t===e(334)&&(t[e(328)]("./")||t[e(328)]("../"))}function mn(t){const e=gn;return typeof t===e(334)&&t[e(328)]("/")}function gn(t,e){return t-=285,fn()[t]}function yn(t){const e=gn;return typeof t===e(334)&&(an.test(t)||sn[e(316)](t))}function wn(t){return"string"==typeof t&&t.length>0&&!dn(t)&&!mn(t)&&!yn(t)}function In(t){const e=gn;return String(t)[e(318)]("#")[0][e(318)]("?")[0]}function bn(t=null,e=pn()){return t||hn(e)}function $n(t,e=null,n=pn()){const r=gn;if(an.test(t))return t;if(sn[r(316)](t))return t;const o=bn(e,n);if(!o)throw new Error(r(294)+t+'" without a base URL.');return new URL(t,o)[r(295)]}function vn(t,e){return"string"==typeof t&&t?$n(t,e,null):null}function kn(t={},e){const n=gn,r=new Map;for(const[o,s]of Object[n(289)](t||{})){const t=vn(s,e);t&&r[n(317)](o,t)}return r}function _n(t,e){const n=gn,r=kn(t?.[n(319)],e),o=new Map;for(const[r,s]of Object.entries(t?.scopes||{})){const t=$n(r,e,null);o[n(317)](t,kn(s,e))}return{imports:r,scopes:o,baseURL:e}}function On(t,e){const n=gn;if(!e?.[n(309)])return null;if(e[n(321)](t))return e[n(324)](t);let r=null;for(const o of e[n(322)]())o[n(329)]("/")&&t[n(328)](o)&&(!r||o[n(292)]>r.length)&&(r=o);if(!r)return null;const o=e[n(324)](r),s=t[n(331)](r[n(292)]);return new URL(s,o)[n(295)]}function En(t,{base:e=null,document:n=pn(),importMap:r=null,allowBareFallback:o=!0,allowUnmappedBare:s=!1}={}){const i=gn;if(typeof t!==i(334)||!t[i(290)]())throw new Error(i(296));const a=t[i(290)]();if(!wn(a))return $n(a,e,n);const{bare:c,suffix:l}=function(t){const e=gn,n=/([?#].*)$/[e(312)](t);return{bare:n?t[e(331)](0,n[e(300)]):t,suffix:n?.[1]||""}}(a),u=function(t,e,n=null){const r=gn;if(!e)return null;if(n&&e[r(308)]?.[r(309)]){const o=Array[r(314)](e[r(308)][r(322)]())[r(297)](t=>n.startsWith(t)).sort((t,e)=>e[r(292)]-t[r(292)]);for(const n of o){const o=On(t,e.scopes[r(324)](n));if(o)return o}}return On(t,e.imports)}(c,function(t,e=pn(),n=bn(null,e)){const r=gn;if(!t)return function(t=pn()){const e=gn;if(!t)return null;const n=Array.from(t[e(326)]?.(e(285))||[]);if(!n[e(292)])return null;const r=ln[e(324)](t),o=n.map(t=>t[e(286)]||"")[e(307)](e(301));if(r?.[e(304)]===o)return r[e(323)];const s={imports:{},scopes:{}};for(const t of n){const n=t[e(286)]?.trim();if(!n)continue;const r=JSON.parse(n);Object[e(298)](s[e(319)],r.imports||{});for(const[t,n]of Object[e(289)](r[e(308)]||{}))s[e(308)][t]={...s[e(308)][t]||{},...n}}const i=_n(s,hn(t));return ln.set(t,{signature:o,value:i}),i}(e);if(t instanceof Map)return t;if(typeof t===r(334))return _n(JSON[r(325)](t),n);if(typeof t===r(293)){const e=un[r(324)](t);if(e?.[r(333)]===n)return e[r(323)];const o=_n(t,n);return un[r(317)](t,{baseURL:n,value:o}),o}return null}(r,n,bn(e,n)),bn(e,n));if(u)return""+u+l;if(o&&function(t,{bare:e,resolvedFromMap:n}={}){const r=gn;if(n)return!1;if(!wn(t))return!1;const o=e||In(t);return cn[r(316)](o)}(a,{bare:c}))return $n(a,e,n);if(s)return a;throw new Error(i(330)+a+i(306))}const An=Mn;function Tn(){const t=["path","meta","Invalid or unsupported component definition","feSpecularLighting","feGaussianBlur","initOwnChildren","section","caption","register","colgroup","output","MISSING_ATTR","tag","push","mark","view","dfn","textPath","20FCOqMJ","symbol","length","header","img","entries","join","$error","filter","select","feTurbulence","Template for ","polygon","source","Definition is not marked as loaded","2028346YViKFG","object","feOffset","sub","summary","feDisplacementMap","cite","feDiffuseLighting","feBlend",'" must be a boolean',"pattern","track","dynamic","lazy","context","isArray","div","title","del","Unexpected field '","has","Invalid style entry in component ","required","6OlKNWo","embed","feTile","style","unmount","mounted","wbr","iframe","attr","keys","feConvolveMatrix","Missing required attribute :","Import definitions are not allowed here","feMerge","rect","Attribute definitions must be an object","progress","var","main",'" must be an array of strings',"Import definition must include a valid `import` string.","ATTR_ALIAS_CONFLICT",'"validate" in attr "',"foreignObject","template","dependencies","includes","Ready definitions are not allowed here",'" must be a valid object',"fieldset","aside","svg","bdo","original_tag","footer","unwrap","radialGradient","9839709vNAteZ","Definition must be an object","animateTransform","import","slot","feImage","tbody","feMorphology","stop","Dependencies for ","feComponentTransfer","meter","ellipse","test","strong","kbd","desc","switch","link","animateMotion","math","base","ruby","tfoot","empty","datalist","data","defineProperty","article","code","abbr","span","ready","feFlood","validate"," must include logic or template","head","7FrUTsv","init","animate","feComposite","optgroup","pre","Raw definitions must include a `tag`","add","' in import definition","table","4147576TgMcTI","canvas","circle","param","Loaded styles must be real DOM elements",'" must be a function',"ins","textarea"," must be a string","marker","Raw definitions cannot include `import`","label","use","raw","3YNCZgs","mask","Lazy import definitions must include a `tag`.","$attr",'" must be a string',"details","string","time","loaded","legend","unmounted","feColorMatrix","2279568SLYHfQ","1296135UPfkiA","alias","defs","form","Definition for ","prepare","accept","bdi","html","765837FGIycY","function","small","default","Invalid tag name: ","12npwPlk","destroy","183104daPNoX","Loaded definition must have a HTMLTemplateElement as `template`"," must be an array","dependency"];return(Tn=function(){return t})()}!function(){const t=Mn,e=Tn();for(;;)try{if(544308==parseInt(t(418))/1+parseInt(t(455))/2*(-parseInt(t(389))/3)+parseInt(t(401))/4+parseInt(t(402))/5*(parseInt(t(478))/6)+-parseInt(t(552))/7*(parseInt(t(562))/8)+-parseInt(t(411))/9*(-parseInt(t(440))/10)+parseInt(t(515))/11*(parseInt(t(416))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Sn=/^[A-Za-z][A-Za-z0-9._:-]*$/,xn=/(?:\.ok\.(?:js|mjs|html)|\.(?:js|mjs))$/i;function Cn(t){return"string"==typeof t&&Sn[Mn(528)](t)}function Nn(t){const e=Mn;return typeof t===e(395)&&t.length>0&&(dn(t)||mn(t)||yn(t)||wn(t)||xn[e(528)](In(t)))}function Rn(t){const e=Mn;return t&&typeof t===e(456)&&typeof t[e(518)]===e(395)}function Ln(t){const e=Mn;return t&&"object"==typeof t&&Cn(t[e(434)])&&1===Object[e(487)](t)[e(442)]}function Mn(t,e){return t-=389,Tn()[t]}function jn(t){const e=Mn;return t&&typeof t===e(456)&&!("import"in t)&&!t[e(397)]}function Dn(t){const e=Mn;return t&&typeof t===e(456)&&!0===t[e(397)]}function Pn(t,e={}){const n=Mn,{mode:r=n(467),onInvalidUrl:o=()=>{}}=e,s=new Set([n(518),n(434),n(468),"t"]);for(const e in t)if(!s[n(475)](e))throw new Error(n(474)+e+n(560));if(!t[n(518)]||typeof t[n(518)]!==n(395))throw new Error(n(498));if(t[n(468)]&&!t[n(434)])throw new Error(n(391));if(t.tag&&!Cn(t[n(434)]))throw new Error(n(415)+t[n(434)]);return!Nn(t.import)&&o(n(518),t.import,t),t}const Un=new Set([An(410),An(551),"body",An(536),An(533),An(423),An(496),An(481),An(472),"address",An(543),An(508),An(512),An(443),"h1","h2","h3","h4","h5","h6","hr","nav",An(428),An(471),An(546),"p",An(557),"a","em",An(529),An(413),"s",An(461),"q",An(438),An(545),An(541),An(396),An(544),An(495),"samp",An(530),An(458),"sup","i","b","u",An(436),An(537),"rt","rp",An(409),An(510),"br",An(484),An(568),An(473),An(444),An(485),An(479),"object",An(565),"video","audio",An(453),An(466),An(563),"map","area",An(509),An(535),An(561),An(429),An(431),"col",An(521),"thead",An(538),"tr","td","th",An(405),An(507),An(398),An(573),"input","button",An(449),An(540),An(556),"option",An(569),An(432),An(494),An(526),An(394),An(459),"dialog","script","noscript",An(502),An(519),"ul","li"]),Fn=new Set([An(509),"g",An(422),An(492),An(564),An(527),"line","polyline",An(452),"text","tspan",An(439),An(404),An(571),An(390),"clipPath",An(465),An(441),An(574),An(437),"image","linearGradient",An(514),An(523),An(448),An(463),An(400),An(525),An(555),An(488),An(462),An(460),An(548),An(426),An(520),An(491),An(522),An(457),An(425),An(480),An(450),An(554),An(517),An(534),"set",An(501),An(531),An(472),"metadata",An(532)]);function Wn(t,e){return t-=416,Bn()[t]}function Bn(){const t=["has","3528sKwAqA","root","$invoke","$el","warn","1026805tmezJd","1128435EFBPfG","$svg","247040KdSNyG","svg","tagName","[ok] Unregistered component <","$__locked__$","198768BlhVOu","> at ","$setInnerVars","assign","init","$cache","mount","bind","1526JMPyoI","305480OxpIxs","$parent","$vars","_warnedUnregistered","14LkFiDk","3lBecwV","add","2205aBUGjn","> in <","265sBxhaH","$cmp"];return(Bn=function(){return t})()}!function(){const t=Wn,e=Bn();for(;;)try{if(116328==parseInt(t(433))/1*(-parseInt(t(423))/2)+parseInt(t(429))/3*(-parseInt(t(444))/4)+parseInt(t(441))/5+parseInt(t(449))/6*(-parseInt(t(428))/7)+-parseInt(t(436))/8*(-parseInt(t(431))/9)+parseInt(t(424))/10+parseInt(t(442))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var zn=Object.freeze({__proto__:null,mountElement:function(t){const e=Wn,n=t[e(439)][e(446)].toLowerCase();if(n===e(445)&&t[e(417)]({$svg:{get:()=>!0}}),o=n,!(Un[An(475)](o.toLowerCase())||t[e(426)][e(443)]&&(r=n,Fn[An(475)](r.toLowerCase())))){const r=t[e(427)]??=new Set;!r[e(435)](n)&&(r[e(430)](n),t.$log[e(440)]([e(419)],e(447)+n+e(432)+(t[e(425)]?.[e(439)][e(446)]||e(437))+e(416)+(t[e(434)]?.$el[e(446)]||e(437))))}var r,o;return Object[e(418)](t[e(420)],Yt[e(422)](t)),t[e(448)]=!0,t[e(438)](e(421))}});function Vn(t,e){return t-=334,Kn()[t]}function Kn(){const t=["remove","function","append","tagName","$attr","$invoke","16374OrkRsy","bind","templates","471465xcUnHW","$ok","add","nodeType","attr","def","62qbdIjO","registration","activate","transform","1935269UjLKtB","childNodes","slot","cmp","cmp-id","$__unmount__$","ready","unmount","context","TEMPLATE","events","then","214235zagWnC","entries","unwrap","default","$__locked__$","prepareDep","document","querySelectorAll","$scope","call","raw","$ext","content","dom","scope","$cache","cloneNode","proxy","410DlbgUd","undefined","$id","$setInnerVars","mount","watcher","18GYXnaD","1004824yAWyDb","push","preserve_whitespace","2973678mjGfDY","78023JgVwQk","8CyrJXM","length","getAttribute","createElement","from","trim","template","prepare","$el"];return(Kn=function(){return t})()}function qn(t,e,n){const r=Vn;if(!e[r(341)])for(const t of n)t[r(353)]();let o=e.parse?.(t);return o?o[r(383)](()=>Hn(t,e)):Hn(t,e)}function Hn(t,e){const n=Vn;if(t.$ignore||t[n(377)])return;Object.assign(t[n(399)],Yt[n(360)](t)),function(t,e,{onUnused:n=(t,e,n)=>{}}={onUnused:null}){const r=Mn,o=e[r(486)]||{},s=new Set;for(const[e,n]of Object[r(445)](o)){const o=n[r(403)]||[],i=[];let a=null;for(const e of o)e in t[r(392)]&&(i[r(435)](e),null==a&&(a=e));const c=e in t.$attr;if(c&&i[r(435)](e),i[r(442)]>1)throw t[r(447)]?.(r(499),"Only one of ["+[e,...o][r(446)](", ")+"] should be used",{key:e,aliases:o,used:i});if(i[r(442)]){const o=c?e:a;""===t[r(392)][o]&&"empty"in n?t.$attr[e]=n[r(539)]:!c&&null!=a&&Object[r(542)](t[r(392)],e,{get:()=>t[r(392)][a],enumerable:!0,configurable:!0}),s[r(559)](e)}else"default"in n&&(t[r(392)][e]=n[r(414)],s[r(559)](e));if(n[r(477)]&&!(e in t.$attr))throw t[r(447)]?.(r(433),r(489)+e+"=",{key:e,aliases:o});n[r(549)]&&e in t[r(392)]&&n.validate(t,t[r(392)][e])}if(n)for(const[t,i]of Object.entries(o))!s[r(475)](t)&&!i[r(477)]&&!("default"in i)&&n(t,i,e)}(t,e,{onUnused(){}});const r=t[n(399)][n(375)];if(r[n(380)]=t.$ok[n(401)](e[n(380)]?.(t)||{}),t.$innerContext=r[n(380)],e[n(366)])for(const[o,s]of Object[n(385)](e[n(366)]))if(void 0!==s.transform){let e=t[n(399)][n(360)][o];(!e||"static"===e.type)&&([e]=Yt.classifyAttr(":"+o,n(403),t.$el),Yt.bindAttribute(t,o,t[n(352)],t[n(357)],e)),e[n(371)]=(t,e)=>typeof s[n(371)]===n(354)?s[n(371)][n(393)](r[n(380)],t,e):s.transform,e[n(337)].run()}return function(t,e){const n=Vn,r=t[n(399)].cmp[n(369)].dependencies,o=[];for(const e of r){const r=e?.ready?.[n(389)]?.(t,e[n(378)],t[n(399)][n(375)][n(367)]);r&&o.push(r)}return o[n(345)]?Promise.all(o)[n(383)](()=>Yn(t,e)):Yn(t,e)}(t,e)}function Yn(t,e){const n=Vn;let r=e[n(351)]?.(t);return r?r[n(383)](()=>Gn(t,e)):Gn(t,e)}function Gn(t,e){const n=Vn;t[n(399)][n(382)][n(351)]?.fn(t),!t.$innerVars&&t[n(335)]({}),t[n(388)]=!0;const r=t.$el;r[n(355)](e[n(350)][n(396)][n(400)](!0));for(const e of r[n(391)](n(374)))e.setAttribute(n(376),t[n(334)]);for(const e of r[n(373)])e[n(392)]||(e[n(392)]=t[n(363)][n(398)](e,{$parent:t,$cmp:t}));const o=t[n(358)](n(336));return o?o[n(383)](()=>Xn(t,e)):Xn(t,e)}function Xn(t,e){const n=Vn;t[n(377)]||e[n(386)]&&t[n(363)][n(397)].unwrap(t[n(352)])}!function(){const t=Vn,e=Kn();for(;;)try{if(256718==-parseInt(t(362))/1+parseInt(t(368))/2*(-parseInt(t(359))/3)+-parseInt(t(344))/4*(-parseInt(t(384))/5)+parseInt(t(342))/6+parseInt(t(372))/7+-parseInt(t(339))/8*(parseInt(t(338))/9)+parseInt(t(402))/10*(parseInt(t(343))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Jn=Object.freeze({__proto__:null,mountComponent:function(t,e){const n=Vn,r=t[n(352)];e._instances[n(364)](t),t[n(395)](n(379),()=>{e._instances.delete(t)});const o=t[n(399)][n(375)]={registration:e,get def(){const t=n;return e[t(378)]||e[t(394)]},templates:{},fragment:null},s=Array[n(348)](r[n(373)]),i=[],a=[],c=!!o[n(367)],l=c&&o[n(367)][n(341)];for(const t of s)if(1===t[n(365)]&&t[n(356)]===n(381)){const e=t[n(346)]("name")||"default";o[n(361)][e]=t,t.remove()}else 3===t[n(365)]&&""===t.textContent[n(349)]()?(c||a.push(t),l&&i[n(340)](t)):i[n(340)](t);if(!o[n(361)][n(387)]&&i.length){const t=(r.ownerDocument||globalThis[n(390)])[n(347)](n(381));t[n(396)][n(355)](...i),o[n(361)][n(387)]=t}else for(const t of i)t[n(353)]();const u=t[n(363)].componentRegistry[n(370)](e,t);return u?u[n(383)](e=>qn(t,e,a)):qn(t,o[n(367)],a)}});function Qn(t,e){return t-=248,er()[t]}function Zn(t){const e=Qn;return!!t.$ignore||!(1!==t.nodeType||!t[e(324)](e(264)))&&(t[e(314)]=!0,!0)}function tr(t,e=!1){const n=Qn,r=[],o=new Set,s=t[n(336)][n(331)][n(279)](t.$el);for(let i of s){if(o[n(316)](i))continue;let s=i.$owner;if(s&&s!==t[n(288)]){for(;s[n(308)]&&s.$owner!==t[n(288)];)s=s[n(308)];const i=s[n(295)];if(i&&i[n(277)]&&!o.has(i[n(277)])){r.push(s[n(280)].$destroy(e));for(const e of t.$ok[n(331)].range(s))o.add(e)}continue}Zn(i)||i.$scope&&!i[n(280)][n(320)]&&(r[n(274)](i[n(280)][n(248)](e)),o[n(249)](i))}if(r)return Promise[n(263)](r)}function er(){const t=["ok:ignore","unmounting","$invoke","init","emit","3023240ytSdeT","resolve","SCRIPT","$lifecycle","Node was already initialized before","push","$__RIP__$","initPendingRegistrations","start","componentRegistry","children","$scope","$id","6VHASLH","$childScope","$children","mountComponent","crash","initialized","$el","DOUBLE_INITIALIZATION","659348xAteDe","$state","2366552UcAdfx","90GYeQcb","catch","$handle","size","$cache","initializing","482430sFuevK","8576292WTmjYy","data-ok","mountElement","$__unmountPromise__$","mounted","mountedOrAborted","tagName","1eERKWA","$owner","getAttribute","13csPFjo","def","ACTIVATION_FAILED","unmount","$ignore","nodeType","has","destroyOwnChildren","getRegistration","$destroyChildren","$__unmount__$","shared","remove","$error","hasAttribute","231910NXUNFN","$emit","7FSPEfy","1304506eMZbzy","initializedOrAborted","mounting","dom","TEXT_NODE","nextFrame","setAttribute","map","$ok","$destroy","add","mount","$__init__$","18rGmldf","registerScope","$hasInvoke","now","ready","forEach","pendingInit","ignore","$parent","config","unmounted","all"];return(er=function(){return t})()}!function(){const t=Qn,e=er();for(;;)try{if(342821==parseInt(t(307))/1*(-parseInt(t(328))/2)+-parseInt(t(282))/3*(-parseInt(t(290))/4)+-parseInt(t(299))/5*(-parseInt(t(252))/6)+-parseInt(t(327))/7*(parseInt(t(292))/8)+parseInt(t(293))/9*(parseInt(t(325))/10)+-parseInt(t(269))/11+-parseInt(t(300))/12*(-parseInt(t(310))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var nr=Object.freeze({__proto__:null,activate:async function t(e){const n=Qn;if(e.$__init__$)throw e.$error(n(289),n(273));1===e[n(288)][n(315)]&&e[n(288)][n(324)](n(264))&&(e.$el.$ignore=!0),e.$__init__$=performance.now(),e[n(336)][n(253)](e),e[n(326)](n(250)),e[n(291)]=n(330);try{e[n(336)][n(278)][n(258)][n(296)]&&await e[n(336)].componentRegistry[n(276)](e);const r=e[n(288)];let o;if(r[n(315)]===r[n(332)])o=on(e,{whitespace:e[n(336)][n(261)].whitespace||n(259)});else if(r[n(315)]===r.ELEMENT_NODE){const t=e[n(336)].componentRegistry[n(318)](e[n(288)][n(309)]("as")||e.$el[n(306)],e);t?(e[n(288)].setAttribute(n(301),""),o=Jn[n(285)](e,t)):(!e[n(260)]&&e[n(288)][n(334)](n(301),""),o=zn[n(302)](e))}if(o&&await o,e[n(291)]!==n(330))return;let s=[];return e.$el.tagName!==n(271)&&!e[n(288)][n(314)]&&(s=function(e){const n=Qn,r=[],o=[...e.$ok[n(331)].children(e[n(288)])];for(let s of o){if(Zn(s))continue;let o=s[n(280)]||(s[n(280)]=e[n(283)](s));r[n(274)](o),"pending"===o[n(291)]&&t(o)[n(294)](t=>{const e=n;if(t?.code===e(312)&&o[e(320)])return;const r=t?.ok?.[e(321)]?.[e(286)];if(!r)throw t;r[e(286)](t)})}return r}(e)),await Promise[n(263)](s[n(335)](t=>t[n(272)]?.[n(305)]??Promise[n(270)]())),e[n(254)](n(304))&&await e.$invoke("mounted"),e[n(291)]=n(304),e[n(272)][n(304)][n(270)](),e[n(326)](n(304)),await(e[n(260)]?.[n(272)][n(256)]),e[n(336)][n(333)](async()=>{const t=n;e[t(254)](t(256))&&await e[t(266)]("ready"),e[t(291)]="ready",e[t(272)][t(256)].resolve(),e[t(326)](t(256)),s[t(257)](e=>{const n=t;e[n(272)]?.[n(256)]?.[n(270)]?.()}),await Promise[t(263)](s[t(335)](e=>e[t(272)]?.[t(329)]??Promise.resolve())),e[t(320)]||(e.$state=t(298),e[t(254)](t(267))&&await e[t(266)](t(267)),e[t(272)][t(287)][t(270)](),e[t(291)]=t(287),e.$emit(t(287)))}),e[n(272)][n(287)]}catch(t){if(e[n(320)])return;throw e[n(272)][n(313)][n(270)](),e[n(323)](n(312),t,{})}},destroy:async function(t,e=!0){const n=Qn;if(!t[n(251)])return;if(t.$__unmount__$)return;t.$__unmount__$=performance[n(255)](),t[n(326)](n(313)),t[n(272)][n(313)][n(270)](),t[n(291)]=n(265);const r=e=>{const o=n;if(o(303)in e||e!==t&&e.$__unmount__$)return e[o(303)];e.$__unmountPromise__$=e[o(266)](o(313));for(const t of e[o(284)])r(t[o(280)]);return e[o(303)]},o=r(t);await o,delete t[n(303)],!t[n(297)].cmp?.[n(311)]?.[n(317)]&&await t[n(319)](e),await t[n(266)](n(262)),t.$lifecycle[n(262)][n(270)](),t.$state="unmounted",t[n(326)]("unmounted"),e&&t[n(336)][n(331)][n(322)](t[n(288)]),t[n(336)].unregisterScope(t),t.$offAll(),t[n(288)][n(280)]=null,t[n(288)]=null,t[n(291)]="dead",t[n(275)]=!0,t[n(336)][n(268)]("scope@destroyed",{id:t[n(281)]})},destroyChildren:tr,isIgnored:Zn});function rr(){const t=["_instances","_listeners","value","dom","resolved","$resolveDef","boolean","$owner","$attr","observeDeep","$_reloadCloneEl","mounted","#unknown","TEXT_NODE","cloneNode","name","originalValue","unmounted","values","filter","replace","$options","initialized",'$vars["',"751057eOLkYe","_scopeIdCounter","OKError","def",'Variable "',"ownerDocument","code","registration","removeAttribute","scope@","RELOADED","_cleanup","$vars","bind","createScope on a node that already has a scope","addEventListener","_hasListenerCleanup","capture","pending","26138340aQgSzx","listener","create","$ok","READONLY_VAR","parentNode","destroy","from","emit","OFF_ALL","active","get","length","$_failedReload","getOwnPropertyDescriptor","$destroy","createLogger","$innerVars can only be set before mounting children","createElement","$innerContext","1326451ahpWal","assign","watch","$cache","cache","resolve","4ajFwyn","removeEventListener",'"] must be an object with a getter',"stop","events","$cmp","$scope","ready","push","$parent is not allowed","$error","options","offAll","observe","once","$isCmp","toLowerCase","mountedOrAborted","SCOPED_WATCHER_ERROR","scope:","proxy","readyOrAborted","all","firstChild","handler","defineProperties","off","96190fKVlOE","SYMBOLS","func","$el","$__locked__$","setAttribute","set","extends","$slot","3210265YUaPUt","activate","42JeQPeJ","add","ONCE","$context","templates","reject","#text","9IrhdvN","proxyInstance","649rOvXwl","race","attributes","originalName","entries","tagName","3840693cVoYdQ","function","$id","scope","8103448OaKCHI","$innerContext can only be set before mounting children","$ignore","$init","SCOPED_OBSERVER_ERROR","OFF","defineProperty",'" is read-only',"$parent","unmount","$log","cmp","error","2HBhJQM","ownKeys","appendChild","initializedOrAborted","$ext","$reload can only be called on component scopes","innerHTML","crash-boundary-default","type","$_reloadRegistrationId"];return(rr=function(){return t})()}const or=sr;function sr(t,e){return t-=427,rr()[t]}!function(){const t=sr,e=rr();for(;;)try{if(749147==-parseInt(t(451))/1*(-parseInt(t(566))/2)+-parseInt(t(549))/3*(-parseInt(t(496))/4)+parseInt(t(532))/5+-parseInt(t(534))/6*(parseInt(t(490))/7)+parseInt(t(553))/8*(parseInt(t(541))/9)+parseInt(t(523))/10*(parseInt(t(543))/11)+-parseInt(t(470))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ir=Symbol("OKScope"),ar=Object.create({[ir]:!0,$ext(t,e){const n=sr;this[n(493)][n(530)]||(this[n(493)][n(530)]={}),(this.$cache[n(530)][t]||=[])[n(504)](e)},$destroyChildren(t=!1){return tr(this,t)},$ignoreChildren(){const t=sr;this.$el&&(this.$el[t(555)]=!0)},$init(){return nr[sr(533)](this)},$destroy(t=!0){return nr[sr(476)](this,t)},$hasInvoke(t){const e=sr;return this[e(493)][e(564)]?.[e(454)]?.[t]||this[e(493)].events?.[t]||this.$cache[e(530)]?.[t]},$invoke(t,...e){const n=sr,r=[],o=t=>{const n=sr;if(!t)return;const o=t.call(this[n(489)],this,...e);o&&"function"==typeof o.then&&r[n(504)](o)};o(this.$cache[n(564)]?.[n(454)]?.[t]),o(this[n(493)].events?.[t]?.[n(471)]);for(const e of this[n(493)][n(530)]?.[t]||[])o(e);if(r[n(482)])return r[n(482)]?Promise[n(518)](r):void 0},$watch(t,e,n={}){const r=sr,o=this.$ok[r(542)][r(492)](t,e,{...n,wrapHandle:t=>(...e)=>{const n=r;try{return t(...e)}catch(t){if(t[n(457)]===n(514))throw t;throw this[n(506)](n(514),t)}}});return this[r(570)]("unmount",o.stop),o},$observe(t,e,n=null,r){const o=sr,s=this[o(473)][o(542)][o(509)](t,e,n,{...r,wrapHandle:t=>(...e)=>{const n=o;try{return t(...e)}catch(t){if(t.code===n(557))throw t;throw this[n(506)](n(557),t)}}});return s&&this[o(570)](o(562),s[o(499)]),s},$observeDeep(t,e){const n=sr,{stop:r}=this[n(473)].proxyInstance[n(436)](t,e);return this[n(570)]("unmount",r),{stop:r}},$memo(t){const e=sr,n=this[e(473)][e(542)].memo(t);return!n[e(462)]&&(n[e(462)]=!0,this[e(570)]?.(e(562),()=>n[e(499)]())),n},$fn(t,e={}){const n=sr;return this[n(473)][n(525)](t,{...e,layers:[n(502),n(463),n(537)]}).bind(this[n(537)])},$error(t,e,n){const r=sr;return new(this[r(473)].OK[r(453)])(t,e,{scope:this,...n})},$setInnerVars(t,e=this[or(463)]||{}){const n=or;if(this[n(527)])throw this.$error("SCOPE_LOCKED",n(487));const r={};for(const t of Reflect[n(567)](e)){const o=Object[n(484)](e,t);o&&(r[t]={...o,configurable:!0})}for(const[e,o]of Object[n(547)](t)){if(!o||typeof o[n(481)]!==n(550))throw this[n(506)]("BAD_VARS",n(450)+String(e)+n(498),{value:o});r[e]={get:o[n(481)],set:o[n(529)]||(()=>{const t=n;throw this[t(506)](t(474),t(455)+e+t(560))}),enumerable:!0,configurable:!0}}this.$innerVars=Object[n(521)]({},r)},$setInnerContext(t={}){const e=or;if(this[e(527)])throw this[e(506)]("SCOPE_LOCKED",e(554));this[e(489)]=this[e(473)][e(516)](t)},$childScope(t,e={}){const n=or;if(e.$parent&&e[n(561)]!==this)throw this[n(506)]("BAD_PARENT",n(505),{node:t});return this[n(473)][n(552)](t,{$parent:this,...e})},get $on(){const t=or;return this[E.SYMBOLS.ON]??=E.on[t(464)](null,this)},get $once(){const t=or;return this[E[t(524)][t(536)]]??=E[t(510)][t(464)](null,this)},get $off(){const t=or;return this[E[t(524)][t(558)]]??=E[t(522)].bind(null,this)},get $emit(){const t=or;return this[E[t(524)].EMIT]??=(e,...n)=>{const r=t;E[r(478)](this,e,...n),E[r(478)](this.$ok,r(460)+e,this,...n)}},get $offAll(){const t=or;return this[E.SYMBOLS[t(479)]]??=E[t(508)].bind(null,this)},get $slots(){const t=or;return this.$cmp?.$cache[t(564)]?.templates||{}},get $isCmp(){return!!this.$cache.cmp},get $props(){const t=or;return this[t(501)]?.[t(435)]},$dispatch(t,e,n){this[or(526)]&&this.$el.dispatchEvent(new CustomEvent(t,{detail:e,...n}))},$listen(t,e,n,r=void 0){const o=or,s=typeof r===o(433)?r:!!r?.[o(468)];this[o(428)]||=[];for(const r of this[o(428)]){const i=typeof r.options===o(433)?r[o(507)]:!!r[o(507)]?.[o(468)];if(r.el===t&&r[o(574)]===e&&r[o(520)]===n&&i===s)return r}const i={el:t,type:e,handler:n,options:r,active:!0,start(){!this.active&&(t.addEventListener(e,n,r),this.active=!0)},stop(){const s=o;this[s(480)]&&(t[s(497)](e,n,r),this.active=!1)}};return t[o(466)](e,n,r),this[o(428)][o(504)](i),!this[o(467)]&&(this[o(570)](o(562),()=>{const t=o;for(const t of this._listeners)t.stop();this[t(428)]=[]}),this[o(467)]=!0),i},$unlisten(t,e,n,r){const o=or,s=typeof r===o(433)?r:!!r?.capture;this._listeners&&(this[o(428)]=this[o(428)][o(446)](r=>{const i=o,a=typeof r[i(507)]===i(433)?r.options:!!r[i(507)]?.[i(468)],c=r.el===t&&r.type===e&&r[i(520)]===n&&a===s;return c&&r.stop(),!c}))},$clone(){const t=or,e=(this[t(526)][t(456)]||globalThis.document)[t(488)](this[t(526)][t(548)]);if(this.$cache[t(464)])for(const[n,r]of Object[t(547)](this[t(493)].bind))e.setAttribute(r[t(546)],r.originalValue);if(this.$cache.events)for(const[n,r]of Object[t(547)](this[t(493)][t(500)]))e[t(528)](r[t(546)],r[t(443)]);if(this[t(493)][t(564)]?.[t(538)])for(const n of Object[t(445)](this.$cache[t(564)].templates))e.appendChild(n[t(441)](!0));return ur(this[t(473)],e,{$parent:this[t(561)],$context:this.$context,$vars:this[t(463)],$cmp:this[t(501)],$slot:this[t(531)],$attr:this[t(435)],$options:this[t(448)]})},async $reload(){const t=or;if(!this[t(511)]&&!this[t(483)])throw this[t(506)]("NOT_A_COMPONENT",t(571));const e=this.$clone();e[t(437)]=e.$el;const n=this.$el,r=this[t(437)]||e.$el;await this[t(485)](!1),n[t(572)]="";for(const e of Array.from(n.attributes))n[t(459)](e.name);for(const e of Array[t(477)](r[t(545)]))n.setAttribute(e[t(442)],e[t(429)]);for(;r[t(519)];)n[t(568)](r[t(519)]);n[t(502)]=e,e[t(526)]=n;let o=this[t(575)]||this[t(493)][t(564)]?.[t(458)]?.id;const s=e[t(473)].componentRegistry[t(494)].get(o);e[t(575)]=o,s[t(427)][t(535)](e),this[t(483)]&&(this[t(473)].dom[t(447)](this.$_failedReload,e[t(526)]),await this[t(473)][t(476)](this.$_failedReload),delete this.$_failedReload);try{return await e[t(556)](),delete e[t(575)],delete e[t(437)],this.$log.info([t(461)],"Component reloaded successfully"),e}catch(n){((e,n)=>{const r=t,o=(e.$el?.[r(456)]||globalThis.document)[r(488)](r(573));e[r(473)][r(430)][r(447)](e[r(526)],o),o[r(502)]=e[r(473)].scope(o,{$parent:e.$parent,$context:e.$context,$attr:{error:n}}),o[r(502)].$init(),e.$_failedReload=o,e[r(563)][r(565)](["RELOAD_FAILED"],n)})(e,n)}}});function cr(t,e){const n=or;if(t[e])return t[e];let r,o;const s=new Promise((t,e)=>{r=t,o=e});return s[n(495)]=()=>{const t=n;s.timestamp=performance.now(),s[t(431)]=!0,r()},s[n(539)]=t=>{s.timestamp=performance.now(),s.rejected=!0,o(t)},t[e]=s,s}function lr(t,e,...n){const r=or;return t[e]?t[e]:t[e]=Promise[r(544)](n)}function ur(t,e,n={}){const r=or;if(e.$scope)throw t.error("NODE_ALREADY_SCOPED",r(465),{node:e});const o=void 0!==n[r(561)]?n[r(561)]:e[r(475)]?.[r(502)]||null,s=o||{},i=Object[r(472)](ar);Object.defineProperty(i,r(551),{value:++t[r(452)],writable:!1}),Object[r(491)](i,{$el:e,$root:s.$root||o||null,$parent:o,$children:new Set,$state:r(469),$context:t[r(516)](n.$context||s.$innerContext||s.$context||{}),$vars:n[r(463)]||s.$innerVars||s[r(463)]||{},$attr:t[r(516)](n[r(435)]||{}),$cmp:n[r(501)]||s[r(501)]||null,$slot:n[r(531)]||s[r(531)]||null,$cache:n[r(493)]||{},$scope:i,$options:n[r(448)]||{},$ok:t,$innerVars:null,$innerContext:null});const a=void 0!==n[r(434)]?n.$owner:s[r(434)];a&&(i[r(434)]=a);const c=void 0!==n[r(432)]?n[r(432)]:s.$resolveDef;c&&(i[r(432)]=c);const l={};Object.defineProperty(i,"$lifecycle",{value:{get mounted(){return cr(l,r(438))},get ready(){return cr(l,r(503))},get initialized(){return cr(l,r(449))},get unmount(){return cr(l,r(562))},get unmounted(){return cr(l,r(444))},get mountedOrAborted(){const t=r;return lr(l,t(513),this[t(438)],this.unmount)},get readyOrAborted(){const t=r;return lr(l,t(517),this[t(503)],this[t(562)])},get initializedOrAborted(){const t=r;return lr(l,t(569),this.initialized,this[t(562)])}},enumerable:!0});const u=e[r(548)]?.[r(512)]()||(e.nodeType===e[r(440)]?r(540):r(439));return Object[r(559)](i,r(563),{value:t[r(486)](t,i,[r(515)+i[r(551)],"tag:"+u]),enumerable:!0,configurable:!0}),e[r(502)]=i,i[r(561)]?.$children[r(535)](i),i}ur.OK_SCOPE_SYMBOL=ir;const fr=pr;function pr(t,e){return t-=165,yr()[t]}!function(){const t=pr,e=yr();for(;;)try{if(826861==parseInt(t(179))/1+-parseInt(t(176))/2+parseInt(t(181))/3*(parseInt(t(182))/4)+-parseInt(t(168))/5+-parseInt(t(169))/6*(parseInt(t(172))/7)+parseInt(t(183))/8*(parseInt(t(189))/9)+-parseInt(t(195))/10*(parseInt(t(173))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const hr=t=>{const e=pr;return[...new Set(t.filter(Boolean)[e(185)](String))]},dr={OKLogger:Symbol(fr(197)),INFO:Symbol("INFO"),ERROR:Symbol(fr(171)),WARN:Symbol(fr(180)),DEBUG:Symbol("DEBUG"),LOG:Symbol(fr(175))},mr=Object[fr(170)]({[dr[fr(197)]]:!0,get log(){const t=fr;return this[dr[t(175)]]??=this[t(167)][t(196)](this,this[t(177)],t(201),this[t(186)],this.source)},get error(){const t=fr;return this[dr[t(171)]]??=this[t(167)][t(196)](this,this[t(177)],t(198),this[t(186)],this.source)},get info(){const t=fr;return this[dr[t(178)]]??=this[t(167)][t(196)](this,this.channel,t(166),this.rootTags,this[t(199)])},get warn(){const t=fr;return this[dr[t(180)]]??=this._emitLog[t(196)](this,this.channel,t(187),this[t(186)],this[t(199)])},get debug(){const t=fr;return this[dr[t(188)]]??=this[t(167)][t(196)](this,this[t(177)],t(165),this[t(186)],this[t(199)])},extend(t,e){const n=fr;return gr(this[n(177)],t,[...this[n(186)],...e])},asConsole(t,e){const n=fr,r=this[n(194)](t,e);return{logger:r,log(...t){r[n(201)]([],t)},info(...t){r[n(166)]([],t)},error(...t){r[n(198)]([],t)},warn(...t){r[n(187)]([],t)},debug(...t){r[n(165)]([],t)}}},_emitLog(t,e=null,n,r,o,s,i=Date[fr(191)]()){const a=fr,c={channel:t,source:r,tags:[...hr([e,...n,...o])],data:s,timestamp:i};return E[a(192)](t,a(201),c),c},printToConsole(t){const e=fr,n=t[e(174)][e(200)](e(198))?e(198):t[e(174)][e(200)](e(187))?"warn":t[e(174)][e(200)](e(166))?e(166):t[e(174)][e(200)](e(165))?e(165):e(201),r=new Date(t[e(190)]).toISOString(),o=t[e(184)]?.[e(193)]??[t[e(184)]];(console[n]??console.log)(r,t[e(174)],...o)}});function gr(t={},e=null,n=[]){const r=fr,o=Object[r(170)](mr);return o[r(177)]=t,o[r(199)]=e,o[r(186)]=n,o}function yr(){const t=["includes","log","debug","info","_emitLog","312585wrnxxl","188850sShzBr","create","ERROR","343RuPmiJ","11LtLikj","tags","LOG","721766oxIZco","channel","INFO","1161202itwwwv","WARN","12pxAlMc","1370212RUdgQn","8SZAGQg","data","map","rootTags","warn","DEBUG","11321595fEWJEy","timestamp","now","emit","args","extend","9968330meRolz","bind","OKLogger","error","source"];return(yr=function(){return t})()}const wr=$r;function Ir(t,e=null,{selfClosing:n=wr(369),tag:r=null,href:o=null,onWarn:s=null,onError:i=null,line:a=1,offset:c=0,document:l=null}={}){const u=wr;if(!l){if(!globalThis[u(341)])throw new Error(u(363)+u(383));l=globalThis[u(341)]}const f=function(t,{selfClosing:e=wr(369),tag:n=null,href:r=null,onWarn:o=null,onError:s=null}={}){const i=wr,a=new Set([i(381),i(370),"br",i(360),i(329),"hr",i(361),"input",i(305),i(307),i(390),i(339),i(314)]);return t[i(340)](/<([a-zA-Z0-9-]+)([^<>]*)\/>/g,(t,c,l)=>{const u=i,f=c[u(384)]();if(a[u(348)](f))return t;if("throw"===e)throw s&&s(c,n,r),new Error("<"+c+u(338));return e===u(319)&&o&&o(c,n,r),"<"+c+l+"></"+c+">"})}(t,{selfClosing:n,tag:r,href:o,onWarn:(t,n,r)=>{const o=u;if(s)s(t,n,r);else if(e?.[o(393)]){const s=r?" from "+r:"";e[o(393)][o(319)]([o(357)],"[ok] <"+t+o(377)+n+">"+s)}},onError:(t,n,r)=>{const o=u;if(!i)throw e?.[o(326)]?e[o(326)](o(315),"<"+t+o(338),{tag:n,href:r}):new Error("<"+t+o(338));i(t,n,r)}}),p=l.createElement(u(389));return p[u(394)]=f,p}function br(){const t=["</template>","<template","330wVTAEm","\n//# sourceURL=","tag","53501bdgiCc","/> auto-expanded inside <","start","base64","revokeObjectURL","area","247592vmqWaH","You must pass { document: yourDOM } when calling parseTemplate in a build tool.","toUpperCase","209282pnbkDS","dependencies","startLine","default","template","source","format",'<part> block is missing required "role" attribute (line ',"log","innerHTML","854590kOBlEv","repeat","link","fromEntries","meta","resolveImportPath","Unclosed <","toLowerCase","find","Failed to parse .ok.html structure: ","end","wbr","INVALID_SELF_CLOSING_TAG","componentRegistry","text","268qPEVqW","warn","status","1907598pxqqhD","role",") overlaps with <","process","toString","error","content","test","embed","slice","text/javascript","PARSE_FAILED","data:text/javascript;base64,","exec","length","Multiple <","html","/> is not a valid self-closing tag","track","replace","document","5799320nWCUfZ","javascript","style","versions","9HqxUDv","node","has","165LYoVJZ","IMPORT_FETCH_FAILED","script","endLine","> blocks found (first at line ","createObjectURL","../","part","parseTemplate","statusText","startsWith","col","img","href","parseTemplate: no document available (running in Node without a DOM).\n","utf8","from","47065RDpPZt","parse","map","allow","base"];return(br=function(){return t})()}function $r(t,e){return t-=304,br()[t]}async function vr(t,e=null){const n=wr,r=await fetch(t);if(!r.ok)throw e[n(326)](n(350),r.status+" "+r[n(358)]+": "+t,{href:t,status:r[n(320)],res:r});const o=await r[n(317)]();try{return async function(t,e,n){const r=wr,o=Object[r(306)](t[r(368)](t=>[t[r(322)]||t.tag,t]));let s=o[r(351)]?.[r(327)]||"",i={style:o[r(344)]?.content||"",template:o.template?.[r(327)]||"",__blocks:o};if(o[r(386)])try{i.dependencies=JSON[r(367)](o[r(386)][r(327)]||"[]")}catch(t){throw e[r(326)](r(332),"Failed to parse dependencies JSON",{cause:t,content:o[r(386)][r(327)]})}if(s){s=function(t,e,n=null){const r=wr,o=t=>{const r=$r;if(!n)return t[r(359)]("./")||t[r(359)]("../")?new URL(t,e)[r(362)]:t;try{return n(t,e)}catch{return t}};let s=t[r(340)](/(import\s+[\s\S]*?from\s*|import\s*|export\s+[\s\S]*?from\s*)["']([^"']+)["']/g,(t,e,n)=>e+'"'+o(n)+'"');return s=s[r(340)](/(import\s*\(\s*)["']([^"']+)["'](\s*\))/g,(t,e,n,r)=>e+'"'+o(n)+'"'+r),s}(s,n,(t,n)=>{const o=r,s=e?.[o(316)];return s?.[o(308)]?s.resolveImportPath(t,n,{allowUnmappedBare:!0,allowBareFallback:!1}):t[o(359)]("./")||t[o(359)](o(355))?new URL(t,n).href:t});const t=["\n"[r(304)](o[r(351)][r(387)]-1),s,r(374)+n].join(""),a=!!globalThis[r(324)]?.[r(345)]?.[r(347)],c=a?r(333)+Buffer[r(365)](t,r(364))[r(325)](r(379)):URL[r(354)](new Blob([t],{type:r(331)}));let l;try{l=s?await import(c):{}}finally{!a&&URL[r(380)](c)}i={...i,...l[r(388)],url:n}}return i}(function(t){const e=$r,n=[],r=t[e(335)];let o=0,s=1;const i=()=>{const e=t[o++];return"\n"===e&&s++,e},a=()=>t[o],c=t=>/[a-zA-Z]/.test(t);function l(n,r=!1){const s=e,i=t[s(330)](o,o+n.length);return(r?i[s(310)]():i)===n}function u(n,c,u,f){const p=e;let h=null,d=!1,m=null,g=n===p(389)?1:0;const y=o;for(;o<r;){if("<"===t[o])if("template"===n)if(l("</template>",!0)){if(g--,0===g){const e=o;for(let t=0;t<"</template>"[p(335)];t++)i();const r=o;return{tag:n,openTag:c,closeTag:p(371),content:t[p(330)](y,e),start:u,end:r,startLine:f,endLine:s}}}else l(p(372),!0)&&g++;else{const e="</"+n+">";if(l(e,!0)){const r=o;for(let t=0;t<e[p(335)];t++)i();const a=o;return{tag:n,openTag:c,closeTag:e,content:t[p(330)](y,r),start:u,end:a,startLine:f,endLine:s}}}const e=i();if(m){if("--"===m&&l("--\x3e")||"//"===m&&"\n"===e||"/*"===m&&l("*/")){if("--"===m)for(let t=0;t<3;t++)i();else if("/*"===m)for(let t=0;t<2;t++)i();m=null}}else if(h)d?d=!1:"\\"===e?d=!0:e===h&&(h=null);else if('"'!==e&&"'"!==e)if("<"===e&&l("!--")){for(let t=0;t<3;t++)i();m="--"}else"/"!==e||"/"!==a()?"/"!==e||"*"!==a()||(i(),m="/*"):(i(),m="//");else h=e}throw new Error(p(309)+n+"> starting at line "+f)}for(;o<r;){if("<"===t[o]&&c(t[o+1])){const a=o+1;let c=a;for(;c<r&&/[a-zA-Z0-9_-]/[e(328)](t[c]);)c++;const l=t[e(330)](a,c)[e(310)]();if([e(351),e(344),e(389),"part"].includes(l)){const a=o,c=s;for(;o<r&&">"!==t[o];)i();i();const f=t[e(330)](a,o);let p=null,h=null;if(l===e(356)){const t=/\brole\s*=\s*["']([^"']+)["']/.exec(f),n=/\bformat\s*=\s*["']([^"']+)["']/[e(334)](f);if(p=t?.[1]||null,h=n?.[1]||null,!p)throw new Error(e(392)+c+")")}const d=u(l,f,a,c);if(l!==e(356)&&n[e(311)](t=>t[e(375)]===l))throw new Error(e(336)+l+e(353)+n[e(311)](t=>t[e(375)]===l).startLine+", again at line "+c+")");for(const t of n)if(d[e(378)]>=t[e(378)]&&d[e(378)]<t.end||t[e(378)]>=d.start&&t.start<d[e(313)])throw new Error("Overlapping blocks: <"+t.tag+"> (line "+t[e(387)]+e(323)+d[e(375)]+"> (line "+d.startLine+")");l===e(356)?(d[e(322)]=p,d[e(391)]=h):l===e(389)?(d[e(322)]="template",d[e(391)]=e(337)):"script"===l?(d[e(322)]=e(351),d[e(391)]=e(343)):l===e(344)&&(d[e(322)]=e(344),d[e(391)]="css"),n.push(d),o=d[e(313)],s=d[e(352)];continue}}i()}return n}(o),e,t)}catch(r){throw e.error(n(332),n(312)+t,{href:t,cause:r})}}!function(){const t=$r,e=br();for(;;)try{if(374688==parseInt(t(385))/1+-parseInt(t(382))/2+parseInt(t(321))/3+parseInt(t(318))/4*(parseInt(t(366))/5)+parseInt(t(373))/6*(-parseInt(t(376))/7)+parseInt(t(342))/8*(parseInt(t(346))/9)+-parseInt(t(395))/10*(parseInt(t(349))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const kr=Cr;function _r(){const t=["default","_doImport","onerror","push","url","2yGnefP",'" in the local scope of "',"document","create","3060lkVqDo","import","ranRegister","state","14qjyWRy","_injectedStyles","parent"," in the global scope","then","self_closing","INVALID_STATE","activated-head","dependencies",'". Skipping.',"$resolveCmp","$resolveDef","getAttribute","registered","invalid import url for component. must be .ok.js, .ok.mjs or .ok.html","has","462bQlRhk","childNodes","clear","EmitterProto","bundle","26382jBKmyP","string","data-ok-tag","64788xTTcKa","BAD_REGISTRATION","pendingInit","Scope parameter is required to activate a component.","parentNode","data-ok",'Cannot inject styles for component in state "',"set","ready","insertBefore","cloneNode","length",'Cannot import component in state "',"fetchDefinition","tagToStyles","ownerDocument","resolveImportURL","error",'" is not registered.',"remove","715Mqoctq","pending","setAttribute","unknown","allow",'" is not registered and cannot be used as a dependency.',"tag","createElement","948456kaIzti","init","template","base","6190uDaERT","head","def","BAD_DEFINITION","querySelectorAll",'Cannot init component in state "',"$__unmount__$","emit",'" conflicts with existing registration. Skipping.',"1068PKnNgi","importmap",'Cannot register component with tag "',"style","lazy",'" is already registered',"add","data-ok-src","register","href","values","raw","type","rel","onload","importMap","registerRaw","get","config","1414fHvQjw","assign","initialized","1069064hePihq","toUpperCase",'" for component "',"tagName","baseURI","createComment","_activateInjectStyles","unregister","style[data-ok], link[data-ok]","size",'Component with tag "',"_activatedHeads","module",'Cannot activate component in state "',"resolveImportPath","isArray","$cmp","Failed to load stylesheet:","map","IMPORT_","shift","3qGScid","MISSING_PARAMETER","_resolveFromDef","trim",'" because "',"all",'" because its raw definition is missing.',"_initPromise","alias","warn","function","appendChild","$cache","cache","cmp","endsWith","Invalid style definition in component: ","LINK","$ok","delete","activated","$owner","_instances","Invalid tag name: ","link","textContent","6055wlDmAx"];return(_r=function(){return t})()}!function(){const t=Cr,e=_r();for(;;)try{if(170681==parseInt(t(310))/1*(-parseInt(t(281))/2)+parseInt(t(249))/3*(-parseInt(t(228))/4)+parseInt(t(275))/5*(-parseInt(t(206))/6)+-parseInt(t(289))/7*(-parseInt(t(193))/8)+parseInt(t(285))/9*(parseInt(t(197))/10)+-parseInt(t(305))/11*(-parseInt(t(313))/12)+parseInt(t(185))/13*(parseInt(t(225))/14))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Or=new Map,Er=new WeakMap,Ar=new WeakMap,Tr=new Map;function Sr(t,e=null){const n=Cr,r=e||t?.[n(224)]?.[n(329)];return typeof r!==n(259)?null:r}function xr(t){const e=Cr,n=[t[e(231)],t[e(301)](e(312))||"",t[e(301)](e(213))||""];return t.tagName===e(266)?n[e(279)](t[e(301)](e(219))||"",t[e(301)](e(215))||""):n.push(t[e(274)]||""),n.join("::")}function Cr(t,e){return t-=184,_r()[t]}function Nr(t){const e=kr,n=Object[e(284)](E[e(308)]),r=Object[e(284)](n);return Object[e(226)](r,{ok:t,resolveImportPath:(e,n,r={})=>function(t,e,{ok:n=null,document:r=n?.[kr(224)]?.[kr(283)]||globalThis[kr(283)]||null,importMap:o=n?.[kr(224)]?.[kr(221)]||n?.[kr(224)]?.[kr(207)]||null,resolveImportURL:s=n?.[kr(224)]?.resolveImportURL||null,allowUnmappedBare:i=!1,allowBareFallback:a=!0}={}){const c=kr,l=Sr(n,s);if(typeof l===c(259))try{return l(t,e||(n[c(224)][c(283)]||globalThis[c(283)])?.[c(232)]||null)}catch{}return En(t,{base:e,document:n.config[c(283)]||globalThis[c(283)],importMap:o,allowUnmappedBare:i,allowBareFallback:a})}(e,n,{ok:t,...r}),cache:new Map,pendingInit:new Set,async fetchDefinition(n,{force:r=!1,t:o=null}={}){const s=e;r&&Or.delete(n);const i=Or[s(223)](n);if(i)return i;if(!function(t){const e=Mn;return"string"==typeof t&&t.length>0&&(dn(t)||mn(t)||yn(t))&&xn[e(528)](In(t))}(n))throw this.ok.error("BAD_URL",s(303),{url:n});let a=n;if(null!==o){const t=n.includes("?")?"&":"?";a=""+n+t+"t="+o}const c=Sr(this.ok);if(c)try{a=c(a,null)}catch{if(a=n,null!==o){const t=n.includes("?")?"&":"?";a=""+n+t+"t="+o}}const l=(async()=>{const e=s,r=n[e(264)](".ok.html")?await vr(a,t):(await import(a))[e(276)];return r.url=n,Or[e(320)](n,r),r})();return Or[s(320)](n,l),l},async _doImport(t){const n=e;if(t[n(288)]!==n(186))throw t.ok[n(330)](n(295),n(325)+t[n(288)]+'"',{registration:t});t[n(288)]="importing";const r=this.resolveImportPath(t[n(224)][n(286)],t[n(196)]),o=await this[n(326)](r,{t:t[n(224)].t});if(Array[n(243)](o)){t[n(218)]=n(309),t[n(288)]=n(321),t[n(309)]=o,delete o[n(280)];for(const e of t[n(309)])this[n(214)](e,{base:r});return null}t[n(288)]="imported",t[n(217)]=o,t[n(224)]?.tag&&t[n(224)][n(191)]!==t.raw.tag&&(t[n(217)]={...t[n(217)],tag:t.config[n(191)],originalTag:t[n(217)][n(191)],url:r});const s=t.id;t.id=(t[n(291)]?t[n(291)].id+"~":"")+t[n(217)][n(191)].toUpperCase(),this.cache.delete(s);const i=this[n(262)][n(223)](t.id);i&&i!==t&&this[n(235)](t.id),this.cache.set(t.id,t),this[n(222)](t),await this._doInit(t)},async _doInit(n){const r=e;if(n[r(288)]===r(321))return;for(const t of n.dependencies||[])(!t[r(224)][r(191)]&&!t[r(217)]?.[r(191)]||!t.config.lazy)&&await this[r(194)](t);const o=n[r(321)]??={...n[r(217)],id:n.id,loaded:!0,_activatedHeads:new Set,_injectedStyles:new Map};o[r(195)]=Ir(n[r(217)][r(195)]||"",t,{selfClosing:this.ok[r(224)][r(294)]||r(189)}),function(t,e){const n=kr,r=(t,e)=>{const n=Cr;return t.replace(/\[\[(.*?)]]/g,(t,r)=>new URL(r[n(252)](),e)[n(215)])};"string"==typeof t[n(195)]&&(t[n(195)]=r(t[n(195)],e)),typeof t[n(209)]===n(311)&&(t[n(209)]=r(t.style,e)),Array[n(243)](t[n(209)])&&(t[n(209)]=t[n(209)][n(246)](t=>"string"==typeof t?r(t,e):t))}(o,n[r(217)].url||n[r(196)]),function(t,e){const n=kr,r=t[n(217)];let o=Er[n(223)](t[n(217)]);o[n(327)]=o.tagToStyles||new Map;const s=o[n(327)].get(t.ready[n(191)]);if(s)return t.ready[n(209)]=s,s;const i=[],a=Array[n(243)](r[n(209)])?r.style:r.style?[r[n(209)]]:[];for(const o of a){let s;if(typeof o===n(311))s=e[n(192)]("style"),s[n(274)]=o.replaceAll("[tag]",t[n(321)].tag),i[n(279)](s);else{if(!o?.href)throw new Error(n(265)+r.tag);if(s=Object.assign(e.createElement(n(273)),{rel:"stylesheet",href:o[n(215)]}),!Tr[n(304)](o[n(215)])){const t=new Promise(t=>{const e=n;s[e(220)]=()=>{s[e(184)](),t()},s[e(278)]=n=>{const r=e;console[r(258)](r(245),o[r(215)],n),s[r(184)](),t()}});Tr[n(320)](o[n(215)],t),e[n(198)][n(260)](s)}i[n(279)](s)}s[n(187)](n(318),""),s[n(187)](n(312),t.ready[n(191)]),s[n(187)](n(213),t[n(321)][n(280)])}t.ready[n(209)]=i,o[n(327)][n(320)](t[n(321)][n(191)],i)}(n,t[r(224)].document||globalThis.document);const s=Er[r(223)](n[r(217)]);s&&!s[r(287)][r(304)](t)&&(s[r(287)].add(t),n.raw[r(214)]?.(t,n)),n[r(288)]=r(321),this[r(204)]("ready",n)},async init(t){const n=e;return t._initPromise?t._initPromise:(t[n(256)]=(async()=>{const e=n;if(t.type===e(286)&&t[e(288)]===e(186)&&await this[e(277)](t),"bundle"!==t[e(218)]){if(!t[e(217)])throw this.ok[e(330)]("INVALID_STATE",e(202)+t[e(288)]+'"',{registration:t});await this._doInit(t)}})(),await t[n(256)],this.emit(n(227),t[n(217)]),t[n(256)])},_activateInjectStyles(t,n){const r=e;if(t.state!==r(321))throw t.ok[r(330)](r(295),r(319)+t[r(288)]+'"',{registration:t});const o=[],s=n?.[r(267)][r(224)][r(198)],i=t[r(321)];if(!i[r(209)]||0===i[r(209)][r(324)])return;const a=function(t,e){const n=Cr,r=function(t){const e=Cr;return t.url+":"+t[e(191)]}(e);let o=Ar.get(t);!o&&(o=new Map,Ar.set(t,o));let s=o[n(223)](r);return(!s||s[n(317)]!==t)&&(s=function(t,e){const n=Cr;for(const r of t[n(306)]||[])if(8===r.nodeType&&r.nodeValue===e)return r;return null}(t,r),!s&&(s=t[n(328)][n(233)](r),t[n(260)](s)),o.set(r,s)),s}(s,i);let c=i._injectedStyles.get(s);!c&&(c=new Map,i._injectedStyles[r(320)](s,c));const l=function(t,e){const n=Cr,r=new Map;for(const o of t[n(201)](n(236))){if(o[n(301)](n(312))!==(e.tag??""))continue;if(o[n(301)](n(213))!==String(e[n(280)]))continue;const t=xr(o);let s=r[n(223)](t);!s&&(s=[],r[n(320)](t,s)),s[n(279)](o)}return r}(s,i);for(const t of i[r(209)]){let e=c[r(223)](t);if(e)continue;const n=xr(t),i=l[r(223)](n)?.[r(248)]();if(i){c.set(t,new Set([i]));continue}e=new Set;const u=t[r(323)](!0);if(s[r(322)](u,a),e[r(212)](u),c[r(320)](t,e),t[r(231)]===r(266)){const e=Tr[r(223)](t[r(215)]);e&&o.push(e)}}return 0===o[r(324)]?(t[r(321)][r(239)].add(s),void this[r(204)](r(296),t[r(321)],s)):Promise[r(254)](o)[r(293)](()=>{const e=r;t[e(321)]._activatedHeads[e(212)](s),this[e(204)]("activated-head",t[e(321)],s)})},activate(t,n){const r=e;if(!n)throw this.ok[r(330)](r(250),r(316),{registration:t});let o;if(t[r(288)]!==r(321)&&(o=this.init(t)),o)return o[r(293)](async()=>{const e=r;if(t.state!==e(321))throw this.ok[e(330)]("INVALID_STATE",'Cannot activate component in state "'+t[e(288)]+'"',{registration:t});await this[e(234)](t,n),this[e(204)](e(269),t,n)});{if(t[r(288)]!==r(321))throw this.ok[r(330)]("INVALID_STATE",r(241)+t[r(288)]+'"',{registration:t});const e=this[r(234)](t,n);if(e)return e[r(293)](()=>{const e=r;this[e(204)](e(269),t,n)});this[r(204)](r(269),t,n)}},registerRaw(t){const n=e;if(!t[n(217)])throw this.ok[n(330)](n(314),'Cannot register component with tag "'+t[n(224)]?.[n(191)]+n(255));!function(t,e={}){const n=Mn,{onInvalidUrl:r=()=>{}}=e;if(!t||"object"!=typeof t)throw new Error(n(516));if(n(518)in t)throw new Error(n(572));if(!t[n(434)]||typeof t.tag!==n(395))throw new Error(n(558));if(!Cn(t[n(434)]))throw new Error("Invalid tag name: "+t[n(434)]);if(t[n(511)]&&!Cn(t[n(511)]))throw new Error("Invalid original_tag: "+t[n(511)]);if(void 0!==t[n(502)]&&typeof t.template!==n(395))throw new Error(n(451)+t.tag+n(570));if(!(t[n(502)]||t[n(469)]||t[n(430)]||t.parse||t[n(407)]||t.mount||t[n(483)]||t[n(547)]||t[n(553)]||t[n(482)]||t[n(399)]||t[n(417)]||t[n(481)]))throw new Error(n(406)+t[n(434)]+n(550));if(t[n(481)]){const e=Array.isArray(t[n(481)])?t[n(481)]:[t.style];for(const r of e){const e=typeof r===n(395),o=r&&typeof r===n(456)&&typeof r.href===n(395);if(!e&&!o)throw new Error(n(476)+t[n(434)])}}if(t.dependencies){if(!Array[n(470)](t[n(503)]))throw new Error(n(524)+t.tag+n(420));for(const e of t[n(503)])if(typeof e===n(395))!Nn(e)&&r(n(421),e,t);else if(Rn(e))Pn(e,{onInvalidUrl:r});else if(Ln(e)||Dn(e));else if(!jn(e))throw new Error("Invalid dependency in "+t[n(434)])}(function(t){const e=Mn;if(t[e(486)]){if(typeof t[e(486)]!==e(456)||Array[e(470)](t[e(486)]))throw new Error(e(493));for(const[n,r]of Object[e(445)](t[e(486)])){if(typeof n!==e(395)||typeof r!==e(456)||null==r||Array.isArray(r))throw new Error('Attribute definition "'+n+e(506));const{required:t,alias:o,validate:s,default:i,empty:a,description:c}=r;if("required"in r&&"boolean"!=typeof t)throw new Error('"required" in attr "'+n+e(464));if(e(403)in r&&(!Array[e(470)](o)||!o.every(t=>typeof t===e(395))))throw new Error('"alias" in attr "'+n+e(497));if(e(549)in r&&typeof s!==e(412))throw new Error(e(500)+n+e(567));if("description"in r&&"string"!=typeof c)throw new Error('"description" in attr "'+n+e(393))}}})(t),t[n(513)]=void 0!==t[n(513)]&&t.unwrap,t[n(427)]=void 0!==t[n(427)]&&t[n(427)],t.loaded=!1}(t[n(217)]);let r=Er[n(223)](t[n(217)]);!r&&(r={registered:new WeakSet,ready:!1,readyPromise:null,ranRegister:new WeakSet},Er[n(320)](t[n(217)],r));for(let e of t[n(217)][n(297)]||[]){if(e===t.raw[n(191)])throw this.ok[n(330)]("BAD_DEFINITION",n(238)+t.raw[n(191)]+'" cannot depend on itself.');this.register(e,{parentId:t.id,base:t.raw[n(280)]})}if(t.state=n(217),r[n(302)][n(212)](this.ok),t.raw[n(257)]&&Array.isArray(t[n(217)].alias))for(const e of t[n(217)][n(257)]){if(!e||"string"!=typeof e){console[n(258)]('Invalid alias "'+e+n(230)+t[n(217)][n(191)]+n(298));continue}const r=(t[n(291)]?t.parent.id+"~":"")+e.toUpperCase();this[n(262)][n(304)](r)?console[n(258)]('Alias "'+e+n(230)+t[n(217)][n(191)]+n(205)):this[n(262)][n(320)](r,t)}},unregister(t){const n=e,r=this[n(262)][n(223)](t);if(!r)return;for(const t of r.dependencies)this[n(235)](t.id);if(r[n(291)]?.[n(297)][n(268)](r),r[n(321)]){for(const[t,e]of r[n(321)][n(290)])for(const t of e[n(216)]())for(const e of t)e.remove();r[n(321)][n(290)][n(307)](),r[n(321)]._activatedHeads.clear()}let o=!0;for(const t of this[n(262)][n(216)]())if(r[n(224)]?.[n(286)]===t[n(224)]?.[n(286)]&&r!==t){o=!1;break}o&&(Er.delete(r[n(217)]),Or[n(268)](r[n(280)]||r.config?.import)),this.cache[n(268)](t),this[n(204)]("unregistered",r)},register(t,{parentId:n=null,base:r=null,override:o=!1,linkOnly:s=!1}={}){const i=e;if(Array[i(243)](t)){for(const e of t)this[i(214)](e,{parentId:n,base:r,override:o,linkOnly:s});return}typeof t===i(311)&&(t={import:t,lazy:!1});const a=n&&this[i(262)][i(223)](n);if(n&&!a)throw this.ok.error(i(314),i(208)+t[i(191)]+i(282)+n+i(253)+n+i(331));const c=t[i(191)]||t[i(240)]?.[i(191)],l=(n?n+"~":"")+(c?.toUpperCase()||i(247)+t[i(286)]),u=this[i(262)].get(l);if(u){if(s){const t=n&&this[i(262)][i(223)](n);return t&&t.dependencies[i(212)](u),u}if(!o)throw this.ok[i(330)](i(314),i(238)+c+i(211)+(n?' in the local scope of "'+n+'"':i(292))+".");this[i(235)](l)}const f={id:l,base:r||a?.[i(196)]||null,parent:a,dependencies:new Set,type:i(188),state:i(186),config:t,options:{base:r,override:o},raw:null,ready:null,_instances:new Set};try{f[i(280)]=t[i(286)]?this[i(242)](t[i(286)],f.base):null}catch(t){}this[i(262)][i(320)](l,f);try{if(Rn(t))Pn(t),f.type=i(286);else if(Ln(t)){if(!Cn(t.tag))throw this.ok.error(i(200),i(272)+t[i(191)]);if(!a)throw this.ok.error("BAD_DEFINITION",'Component with tag "'+t.tag+i(190));f[i(218)]=i(273),f.raw=this[i(262)].get(t[i(191)][i(229)]())?.[i(217)],this.registerRaw(f)}else t.module?(f[i(218)]=i(240),f.raw=t[i(240)],this[i(222)](f)):jn(t)&&(f[i(218)]=i(217),f[i(217)]=t,this.registerRaw(f));a&&a[i(297)][i(212)](f)}catch(t){throw f.state="error",f[i(330)]=t,t}return(!a||!f[i(224)][i(210)])&&this.pendingInit[i(212)](f),f},_resolveFromDef(t,n){const r=e;return t?t[r(191)][r(229)]()===n[r(229)]()?this.cache[r(223)](t.id):this[r(262)].get(t.id+"~"+n[r(229)]()):null},getRegistration(t,n=null){const r=e;if(n?.[r(270)]&&!n.$owner[r(203)]){const e=n[r(270)],o=e[r(261)]?.[r(263)]?.[r(199)]??e[r(244)]?.[r(261)]?.[r(263)]?.[r(199)]??null,s=this[r(251)](o,t);if(s)return s}if(n?.[r(300)]){const e=this[r(251)](n[r(300)],t);if(e)return e}const o=n?.[r(244)],s=o?.[r(299)];let i=o?.[r(261)][r(263)]?.[r(199)],a=this[r(251)](i,t);return a||(s&&(i=s[r(261)][r(263)]?.[r(199)],a=this[r(251)](i,t),a)?a:this[r(262)][r(223)](t.toUpperCase()))},async initPendingRegistrations(t){const n=e;if(this[n(315)][n(237)]){const t=[];for(const e of this[n(315)])t[n(279)](this.init(e)),this[n(315)][n(268)](e);await Promise[n(254)](t)}},refreshImports(t=[]){const n=e,r=new Set;for(const{url:e,token:o=null}of t)if(e&&Or.has(e)){for(const t of[...this[n(262)][n(216)]()]){if(t[n(280)]!==e||"import"!==t.type)continue;const s={...t.config,t:o};!s.tag&&t[n(217)]?.[n(191)]&&(s[n(191)]=t[n(217)].tag);const i=t[n(291)]?.id,a=t[n(196)],c=[...t[n(271)]];this[n(235)](t.id),this.register(s,{parentId:i,base:a,override:!0});for(const t of c)r[n(212)](t)}Or[n(268)](e)}return r}})}function Rr(){const t=["OKScope","assign","map","_initDirect","self_closing_tag","OKDom","unmounted","object","from","mounted","location","setLicense","cloneNode","dom","result","dev","EMIT_ERROR","length","$state","flush","valid","delete","indexOf","filter","defaultConfig","7511300FNElCY","emit","12067160PVVAYX","tag","meta","get","bind","mergeHooks","allow","function","config","$destroy","SYMBOLS","SCOPE_ENHANCER_NOT_A_FUNCTION","$lifecycle","resolveTarget","undefined","protocol","__OKJS_LICENSE__","$el","head","4uMIYUJ","total","once","alive","initialized","keys","OFF","tagName","throw","$id","splice","idToScope","BAD_HOOK_PATH","BAD_HOOK","hooks","Emitter","call","push","preview","_runInitHooks","slice","forced","start","OK_PROXY_HANDLE_CRASH","isArray","sort","Hook must be a function","1408327VOlTuw","log","hostname","$init","init","SCOPE_ENHANCER_CRASH","prototype","OFF_ALL","1.2.2","duration","off","$scope","1170744xrCall","scope","defaultEmptyTextMarker","1477384MbdaSj","node","prod","env","debug","$__init__$","1978260GWJsTz","register","toFixed","component","mount","shared","forEach","_licenseChecked","window","after","asConsole","proxy","_scopePerf","defaultHooks","console","prepare","default","Unknown hook path","remove","timestamp","__OKJS_FORCE_WATERMARK__","_scopeEnhancers","19846962kowKsE","printToConsole","nodeType","7sOtiwF","min","EMIT","context","Failed to emit event","body","document","OKProxy","reason","table","state","4d1bf2cc52091ff0c634e4e3666a4997de04dd0ea751cc3d8823b31816f62a7e","defineComponent","scopeToId","error","hasOwnProperty","text","createHooks","toLowerCase"];return(Rr=function(){return t})()}const Lr=Mr;function Mr(t,e){return t-=482,Rr()[t]}!function(){const t=Mr,e=Rr();for(;;)try{if(884466==-parseInt(t(564))/1+-parseInt(t(537))/2*(-parseInt(t(576))/3)+-parseInt(t(579))/4+-parseInt(t(516))/5+-parseInt(t(585))/6*(parseInt(t(610))/7)+parseInt(t(518))/8+parseInt(t(607))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const jr={self_closing_tag:Lr(524)},Dr={whiteSpace:Lr(603)},Pr={warnLimit:1e3},Ur={},Fr={},Wr={container:null};function Br(t){const e=Lr;return Array[e(561)](t)?t[e(514)](t=>"function"==typeof t):[]}function zr(...t){const e=Lr,n={init:{prepare:[],resolveTarget:[],after:[],error:[]}};for(const r of t)r&&(n[e(568)].prepare.push(...Br(r[e(568)]?.prepare)),n[e(568)][e(531)][e(554)](...Br(r.init?.[e(531)])),n[e(568)][e(594)][e(554)](...Br(r[e(568)]?.[e(594)])),n[e(568)][e(486)][e(554)](...Br(r[e(568)]?.[e(486)])));return n}function Vr(t,e){const n=Lr;e&&typeof e===n(498)&&(Object.prototype[n(487)][n(553)](e,"node")&&(t.node=e.node),Object[n(570)].hasOwnProperty[n(553)](e,n(613))&&(t[n(613)]=e[n(613)]),Object.prototype.hasOwnProperty[n(553)](e,n(505))&&(t.result=e.result),e[n(520)]&&typeof e[n(520)]===n(498)&&Object[n(492)](t[n(520)],e[n(520)]))}function Kr(t){const e=Lr;if(!t||typeof t!==e(498)||Array[e(561)](t))return!1;const n=Object.getPrototypeOf(t);return n===Object[e(570)]||null===n}function qr(t,e){const n={...e};for(const r in t)Kr(t[r])&&Kr(e[r])?n[r]=qr(t[r],e[r]):n[r]=t[r];return n}const Hr=Symbol("OK");function Yr(t){return t}const Gr=(t={env:"dev"})=>{const e=Lr,n=Gr.defaultConfig||{},r=n.hooks,o=t[e(551)];t=qr(t,n);const s=zr(Gr[e(598)],globalThis.__OK_HMR__?.[e(551)],globalThis.__OK_SSG__?.[e(551)],r,o);var i,a,c,l;t={env:e(506),window:t[e(593)]||globalThis.window,document:t[e(616)]||t[e(593)]?.[e(616)]||globalThis[e(616)],head:t[e(536)]||t[e(616)]?.[e(536)]||globalThis[e(616)]?.head,body:t.body||t[e(616)]?.body||globalThis.document?.body,resolveImportURL:t.resolveImportURL||globalThis.__OK_SSG__?.resolveImportURL||void 0,...t,proxy:qr(t[e(596)]??{},Ur),component:qr(t[e(588)]??{},jr),dom:qr(t.dom??{},(l=t[e(582)],{marker:l===Lr(581)?Qe[Lr(578)]:Qe.defaultCommentMarker})),crash:qr(t.crash??{},(c=t[e(582)],{mode:c===Lr(583)?Lr(545):Lr(601),component:null,boundary_component:null})),singleton:qr(t.singleton??{},Wr),text:qr(t[e(488)]??{},Dr),each:qr(t.each??{},Pr),bind:qr(t.bind??{},(a=t[e(582)],{remove_bind_attributes:a===Lr(581),set_bind_attributes:a!==Lr(581)})),shared:qr(t[e(590)]??{},Fr),log:qr(t[e(565)]??{},(i=t.env,{console:"prod"!==i})),hooks:s};const u={[Hr]:!0,OK:Gr,createLogger:gr,_scopeIdCounter:0,_licenseChecked:!1,dom:Qe(t[e(504)]),util:jt,config:t,hooks:t.hooks,error:(t,e,n={})=>new b(t,e,{ok:u,...n},{depth:1}),func:R,scope(t,n={}){const r=e,o=ur(this,t,n);return this[r(606)][r(591)](t=>{const e=r;try{t(o)}catch(n){throw this[e(486)](e(569),n,{fn:t,scope:o})}}),o},_scopeEnhancers:[],enhanceScope(t){const n=e;if(typeof t!==n(525))throw this[n(486)](n(529),null,{fn:t});return this[n(606)][n(554)](t),()=>{const e=n,r=this[e(606)].indexOf(t);-1!==r&&this[e(606)][e(547)](r,1)}},addHook(t,n){const r=e;if("function"!=typeof n)throw this[r(486)](r(550),r(563),{path:t,fn:n});const o=String(t||"").split(".");let s=this[r(551)];for(let t=0;t<o[r(508)]-1;t++)s=s?.[o[t]];const i=s?.[o[o[r(508)]-1]];if(!Array[r(561)](i))throw this[r(486)](r(549),r(602),{path:t});return i[r(554)](n),()=>{const t=r,e=i[t(513)](n);-1!==e&&i[t(547)](e,1)}},async _runInitHooks(t,n){const r=e,o=this[r(551)]?.[r(568)]?.[t]||[];for(const t of o)Vr(n,await t(n))},async _initDirect(t=this.config[e(615)],n=null){const r=e;return Zn(t)||(!t[r(575)]&&(t.$scope=this[r(577)](t,{$ok:this,$context:n||void 0})),t[r(575)]?.[r(584)]||await(t[r(575)]?.[r(567)]())),t},async init(t=this.config.body,n=null){const r=e,o={ok:this,requestedNode:t,node:t,context:n,result:null,meta:{}};try{return await this[r(556)](r(600),o),await this._runInitHooks(r(531),o),null==o.result&&(o[r(505)]=await this[r(494)](o[r(580)],o[r(613)])),await this[r(556)](r(594),o),!this[r(592)]&&(this[r(592)]=!0,await Zr()),o[r(505)]}catch(t){throw o[r(486)]=t,await this[r(556)](r(486),o),t}},async destroy(t,n=!0){const r=e;await(t[r(575)]?.[r(527)](n)),n&&this[r(504)][r(603)](t)},...lt,createNodes(t){const n=e;if(null==t)return[];if(t instanceof HTMLTemplateElement)return Array[n(499)](t.content[n(503)](!0).childNodes);if(null!=t&&"number"==typeof t[n(609)])return[t];const r=Ir(String(t),{self_closing_tag:this[n(526)].component[n(495)]});return Array[n(499)](r.content.childNodes)},scopeToId:new Map,idToScope:new Map,registerScope(t){const n=e,r=t.$id;return this[n(485)].set(t,r),this[n(548)].set(r,t),r},unregisterScope(t){const n=e,r=this.scopeToId.get(t);return r?(this[n(485)][n(512)](t),this.idToScope[n(512)](r),!0):null},getScopeById(t){const n=e;return this[n(548)][n(521)](+t)||null},get on(){return this[E.SYMBOLS.ON]??=E.on.bind(null,this)},get once(){const t=e;return this[E[t(528)].ON]??=E[t(539)][t(522)](null,this)},get off(){const t=e;return this[E[t(528)][t(543)]]??=E[t(574)][t(522)](null,this)},get emit(){const t=e;return this[E[t(528)][t(612)]]??=(...e)=>{const n=t;try{E[n(517)].call(null,this,...e)}catch(t){throw new b(n(507),t,{message:n(614),event:event,args:e})}}},get offAll(){const t=e;return this[E.SYMBOLS[t(571)]]??=E.offAll[t(522)](null,this)},_scopePerf(t){const n=e,r=t[n(530)];if(!r||!t[n(584)])return null;const o=t[n(584)],s=r[n(500)]?.[n(604)],i=r.ready?.[n(604)],a=r[n(541)]?.[n(604)],c=r[n(497)]?.[n(604)];return{id:t[n(546)],node:t[n(535)],tag:t.$el?.[n(544)]?.[n(490)]()||"#text",start:o,mount:s,ready:i,init:a,destroy:c,duration:{mount:s&&o?s-o:null,ready:i&&s?i-s:null,init:a&&i?a-i:null,total:a&&o?a-o:null,alive:c&&o?c-o:null},state:t[n(509)]}},perfDump({sortBy:t=e(538),limit:n=null}={}){const r=e,o=[];for(const t of this.scopeToId.keys()){const e=this[r(597)](t);e&&o[r(554)](e)}if(!o.length)return[];const s=e=>e[r(573)]?.[t]??1/0;return o[r(562)]((t,e)=>s(e)-s(t)),n&&(o.length=Math[r(611)](n,o[r(508)])),console[r(619)](o[r(493)](t=>({id:t.id,tag:t[r(519)],node:t[r(580)],state:t[r(482)],start:t[r(559)]?.[r(587)](2)??"-",mount:t[r(573)][r(589)]?.[r(587)](2)??"-",ready:t[r(573)].ready?.[r(587)](2)??"-",init:t[r(573)][r(568)]?.toFixed(2)??"-",total:t[r(573)][r(538)]?.[r(587)](2)??"-",alive:t[r(573)][r(540)]?.[r(587)](2)??"-"}))),o}},f=gr(u,null,["ok"]);t[e(565)][e(599)]&&E.on(u,e(565),t=>{const n=e;u[n(565)][n(608)](t)});const p=q({...t.proxy,wrapHandle:t=>(...n)=>{const r=e;try{return t(...n)}catch(t){throw u[r(486)](r(560),t)}}});p[e(565)]=f[e(595)](p,[e(596)]);const h=Nr(u);return Object.assign(u,{proxyInstance:p,proxy:p[e(596)][e(522)](p),log:f,flush:p[e(510)].bind(p),componentRegistry:h,register:h[e(586)][e(522)](h)}),u[e(590)]=p[e(596)]({}),Object[e(542)](Ke)[e(591)](t=>{const n=e;Ke[t]._primitive=!0,h[n(586)](Ke[t])}),u};Gr[Lr(617)]=q,Gr[Lr(496)]=Qe,Gr.OKError=b,Gr.OK_SYMBOL=Hr,Gr[Lr(552)]=E,Gr[Lr(491)]=ur,Gr[Lr(489)]=function(){return{init:{prepare:[],resolveTarget:[],after:[],error:[]}}},Gr[Lr(523)]=zr,Gr[Lr(484)]=Yr,Gr[Lr(598)]={init:{prepare:[],resolveTarget:[],after:[],error:[]}},Gr[Lr(515)]={},Gr.url=import.meta.url;const Xr=Lr(483),Jr=Lr(572);function Qr(t){const e=Lr,n=new Uint8Array(Math.floor(t[e(508)]/2));for(let r=0;r<n[e(508)];r++)n[r]=parseInt(t[e(557)](2*r,2*r+2),16);return n}async function Zr(){const n=Lr;if(typeof globalThis.window===n(532))return null;if(typeof globalThis[n(616)]===n(532))return null;const s=globalThis[n(593)];if(s[n(605)])return d(s[n(501)]?.[n(566)]||n(555)),{valid:!1,reason:n(558)};const a=s[n(501)]?.hostname||"",f=s[n(501)]?.[n(533)]||"";if(!/^[0-9a-f]{64}$/i.test(Xr))return r(a,f)||d(a),null;const p=await async function({hostname:n,protocol:s,window:i,publicKey:a,currentTime:c}){const l=o,u=c??Math[l(256)](Date.now()/1e3);if(r(n,s))return{valid:!0};const f=function(t){const e=o;if(!t)return null;if(t[e(282)]&&"string"==typeof t.__OKJS_LICENSE__)return t[e(282)];try{const n=t[e(268)]?.[e(276)]?.(e(273));if(n){const t=n[e(295)](e(261));if(t)return t}}catch{}return null}(i);if(!f)return{valid:!1,reason:"no_license"};const p=function(n){const r=o;if(!n||typeof n!==r(277))return null;const s=n.split(".");if(3!==s[r(280)])return null;try{const n=e(s[0]),o=e(s[1]),i=t(s[2]);return n&&o&&i?{header:JSON[r(291)](n),payload:JSON[r(291)](o),signatureBytes:i,signingInput:s[0]+"."+s[1]}:null}catch{return null}}(f);if(!p)return{valid:!1,reason:"malformed"};try{if(!globalThis[l(287)]?.subtle)return{valid:!1,reason:"crypto_unavailable"};const t=await globalThis[l(287)][l(254)].importKey("raw",a,{name:l(292)},!1,["verify"]);if(!await globalThis[l(287)][l(254)].verify(l(292),t,p[l(264)],(new TextEncoder)[l(294)](p.signingInput)))return{valid:!1,reason:l(253)}}catch{return{valid:!1,reason:l(259)}}const{payload:h}=p;return h[l(269)]<u?{valid:!1,reason:l(279)}:h.iss!==l(281)?{valid:!1,reason:l(266)}:s!==l(265)&&s!==l(288)||function(t,e){const n=o;if(!t||!Array[n(299)](e)||0===e[n(280)])return!1;const r=t[n(271)](/:\d+$/,"");for(const t of e)if(t)if(t[n(297)]("*.")){const e=t[n(258)](1);if(r[n(285)](e)){const t=r[n(258)](0,r[n(280)]-e[n(280)]);if(t&&!t[n(274)]("."))return!0}}else if(r===t)return!0;return!1}(n,h[l(290)])?{valid:!0}:{valid:!1,reason:"domain_mismatch"}}({hostname:a,protocol:f,window:s,publicKey:Qr(Xr)});return p[n(511)]?function(){const t=i;"undefined"!=typeof document&&(l&&(l[t(415)](),l=null),c&&c.parentNode&&c[t(437)][t(447)](c),c=null,u=!1)}():d(a,p[n(618)]),p}Gr[Lr(568)]=async(t=globalThis.document?.body,e=null,n={})=>{const r=Gr(n);return await r.init(t,e),r},Gr[Lr(502)]=async t=>{const e=Lr;typeof globalThis.window!==e(532)&&(globalThis[e(593)][e(534)]=t,await Zr())},Gr.version=Jr,Gr.license={check:Zr,show:d};export{Gr as default,Yr as defineComponent};
|