@kedem/okdb 1.0.1 → 1.0.4

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.
Files changed (142) hide show
  1. package/bin/okdb.js +1 -1
  2. package/keys/public.pem +3 -0
  3. package/okdb.js +1 -1
  4. package/package.json +2 -2
  5. package/public/admin-app.js +1 -1
  6. package/public/components/admin-route-host.ok.js +1 -1
  7. package/public/components/env-picker.ok.js +1 -1
  8. package/public/components/field-path-input.ok.js +1 -1
  9. package/public/components/field.html +154 -2
  10. package/public/components/geo-map.ok.js +1 -1
  11. package/public/components/ok-cron-input.ok.js +1 -1
  12. package/public/components/ok-dropzone.ok.js +1 -1
  13. package/public/components/ok-js-input.ok.js +1 -1
  14. package/public/components/ok-json-input.ok.js +1 -1
  15. package/public/components/ok-text-monaco-input.ok.js +1 -1
  16. package/public/components/theme-toggle.ok.js +1 -1
  17. package/public/index.html +29 -2
  18. package/public/layouts/_default.ok.html +1 -1
  19. package/public/layouts/okdb-cube.ok.html +1 -1
  20. package/public/login-app.js +1 -1
  21. package/public/login.html +205 -1
  22. package/public/modules/ok.js +1 -1
  23. package/public/sections/api/index.ok.html +1 -1
  24. package/public/sections/api/parts/api-endpoint.ok.js +1 -1
  25. package/public/sections/auth/index.ok.html +1 -1
  26. package/public/sections/auth/modals/create-token-modal.ok.js +1 -1
  27. package/public/sections/auth/modals/edit-token-modal.ok.js +1 -1
  28. package/public/sections/auth/modals/perm-info-popover.ok.js +1 -1
  29. package/public/sections/auth/parts/token-detail.ok.js +1 -1
  30. package/public/sections/auth/parts/token-list.ok.js +1 -1
  31. package/public/sections/db/index.ok.html +1 -1
  32. package/public/sections/db/modals/add-item-modal.ok.js +1 -1
  33. package/public/sections/db/modals/create-env-modal.ok.js +1 -1
  34. package/public/sections/db/modals/create-fts-modal.ok.js +1 -1
  35. package/public/sections/db/modals/create-index-modal.ok.js +1 -1
  36. package/public/sections/db/modals/create-pipeline-modal.ok.js +1 -1
  37. package/public/sections/db/modals/demo-env-modal.ok.js +1 -1
  38. package/public/sections/db/modals/remove-env-modal.ok.js +1 -1
  39. package/public/sections/db/modals/schema-edit-modal.ok.js +1 -1
  40. package/public/sections/db/parts/db-overview.ok.js +1 -1
  41. package/public/sections/db/parts/db-pipelines-panel.ok.js +1 -1
  42. package/public/sections/db/parts/edit-row.ok.js +1 -1
  43. package/public/sections/db/parts/tm-timeline.ok.js +1 -1
  44. package/public/sections/db/parts/type-changelog.ok.js +1 -1
  45. package/public/sections/db/parts/type-list.ok.js +1 -1
  46. package/public/sections/db/parts/type-pipelines-tab.ok.js +1 -1
  47. package/public/sections/db/parts/type-schema-tab.ok.js +1 -1
  48. package/public/sections/db/parts/type-viewer.ok.js +1 -1
  49. package/public/sections/db/parts/type-violations-tab.ok.js +1 -1
  50. package/public/sections/docs/index.ok.html +1 -1
  51. package/public/sections/embeddings/index.ok.html +1 -1
  52. package/public/sections/embeddings/modals/register-model-modal.ok.js +1 -1
  53. package/public/sections/embeddings/parts/embed-create-panel.ok.js +1 -1
  54. package/public/sections/embeddings/parts/embed-embedder-panel.ok.js +1 -1
  55. package/public/sections/embeddings/parts/embed-engine-declaration-editor.ok.js +1 -1
  56. package/public/sections/embeddings/parts/embed-engine-list.ok.js +1 -1
  57. package/public/sections/embeddings/parts/embed-indexer-panel.ok.js +1 -1
  58. package/public/sections/embeddings/parts/embed-lifecycle-bar.ok.js +1 -1
  59. package/public/sections/embeddings/parts/embed-model-catalog.ok.js +1 -1
  60. package/public/sections/embeddings/parts/embed-overview.ok.js +1 -1
  61. package/public/sections/embeddings/parts/embed-search-panel.ok.js +1 -1
  62. package/public/sections/embeddings/parts/embed-worker-panel.ok.js +1 -1
  63. package/public/sections/embeddings/parts/embeddings-engine-panel.ok.js +1 -1
  64. package/public/sections/embeddings/parts/engines-overview.ok.js +1 -1
  65. package/public/sections/embeddings/parts/pipeline-create-panel.ok.js +1 -1
  66. package/public/sections/engines/engine-panel-shared-style.js +1 -1
  67. package/public/sections/engines/engine-ui-utils.js +1 -1
  68. package/public/sections/engines/index.ok.html +1 -1
  69. package/public/sections/engines/modals/engine-modal.ok.js +1 -1
  70. package/public/sections/engines/parts/engine-declaration-editor.ok.js +1 -1
  71. package/public/sections/engines/parts/engine-lifecycle-actions.ok.js +1 -1
  72. package/public/sections/engines/parts/engine-panel-shell.ok.js +1 -1
  73. package/public/sections/engines/parts/engine-resource-card.ok.js +1 -1
  74. package/public/sections/engines/parts/engine-row-item.ok.js +1 -1
  75. package/public/sections/engines/parts/generic-engine-panel.ok.js +1 -1
  76. package/public/sections/files/index.ok.html +1 -1
  77. package/public/sections/files/parts/files-blob-status.ok.js +1 -1
  78. package/public/sections/files/parts/files-collection-list.ok.js +1 -1
  79. package/public/sections/files/parts/files-collection-panel.ok.js +1 -1
  80. package/public/sections/files/parts/files-file-list.ok.js +1 -1
  81. package/public/sections/files/parts/files-overview.ok.js +1 -1
  82. package/public/sections/files/parts/files-path-browser.ok.js +1 -1
  83. package/public/sections/files/parts/files-upload-panel.ok.js +1 -1
  84. package/public/sections/functions/index.ok.html +1 -1
  85. package/public/sections/functions/modals/function-modal.ok.js +1 -1
  86. package/public/sections/functions/parts/function-detail.ok.js +1 -1
  87. package/public/sections/functions/parts/function-logs.ok.js +1 -1
  88. package/public/sections/functions/parts/function-runner.ok.js +1 -1
  89. package/public/sections/functions/parts/functions-list.ok.js +1 -1
  90. package/public/sections/license/index.ok.html +1 -1
  91. package/public/sections/license/parts/license-panel.ok.js +1 -1
  92. package/public/sections/processors/index.ok.html +1 -1
  93. package/public/sections/queue/index.ok.html +1 -1
  94. package/public/sections/queue/modals/create-bucket-modal.ok.js +1 -1
  95. package/public/sections/queue/modals/edit-bucket-modal.ok.js +1 -1
  96. package/public/sections/queue/modals/edit-job-modal.ok.js +1 -1
  97. package/public/sections/queue/modals/enqueue-job-modal.ok.js +1 -1
  98. package/public/sections/queue/modals/job-type-modal.ok.js +1 -1
  99. package/public/sections/queue/parts/ok-job-form.ok.js +1 -1
  100. package/public/sections/queue/parts/queue-buckets.ok.js +1 -1
  101. package/public/sections/queue/parts/queue-job-types.ok.js +1 -1
  102. package/public/sections/queue/parts/queue-jobs.ok.js +1 -1
  103. package/public/sections/queue/parts/queue-types.ok.js +1 -1
  104. package/public/sections/queue/parts/queue-workers.ok.js +1 -1
  105. package/public/sections/sync/index.ok.html +1 -1
  106. package/public/sections/sync/parts/sync-node-detail.ok.js +1 -1
  107. package/public/sections/sync/parts/sync-retention.ok.js +1 -1
  108. package/public/sections/sync/parts/sync-topology.ok.js +1 -1
  109. package/public/sections/system/index.ok.html +1 -1
  110. package/public/sections/system/modals/data-ops-modal.ok.js +1 -1
  111. package/public/sections/system/parts/system-api-panel.ok.js +1 -1
  112. package/public/sections/system/parts/system-auth-panel.ok.js +1 -1
  113. package/public/sections/system/parts/system-log-history.ok.js +1 -1
  114. package/public/sections/system/parts/system-log.ok.js +1 -1
  115. package/public/sections/system/parts/system-status.ok.js +1 -1
  116. package/public/sections/system/parts/system-sync-panel.ok.js +1 -1
  117. package/public/sections/views/index.ok.html +1 -1
  118. package/public/sections/views/modals/create-view-modal.ok.js +1 -1
  119. package/public/sections/views/parts/view-detail.ok.js +1 -1
  120. package/public/sections/views/parts/views-list.ok.js +1 -1
  121. package/public/sections/views/parts/views-overview.ok.js +1 -1
  122. package/public/setup-app.js +1 -1
  123. package/public/setup.html +189 -1
  124. package/public/stores/auth-store.js +1 -1
  125. package/public/stores/events-store.js +1 -1
  126. package/public/stores/functions-store.js +1 -1
  127. package/public/stores/okdb-store.js +1 -1
  128. package/public/stores/theme-store.js +1 -1
  129. package/public/test-cron-input.html +53 -3
  130. package/public/test-json-input.html +182 -3
  131. package/public/util/permissions.js +1 -1
  132. package/public/util/sift-schema.js +1 -1
  133. package/public/vendor/okjs/ok.esm.min.js +1 -2
  134. package/public/view-models/type-query-vm.js +1 -1
  135. package/okdb-data/default/data.mdb +0 -0
  136. package/okdb-data/default/lock.mdb +0 -0
  137. package/okdb-data/~log/data.mdb +0 -0
  138. package/okdb-data/~log/lock.mdb +0 -0
  139. package/okdb-data/~system/data.mdb +0 -0
  140. package/okdb-data/~system/lock.mdb +0 -0
  141. package/public/images/logo.png +0 -0
  142. 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=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[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=s,n=t.replace(/-/g,"+").replace(/_/g,"/"),r=n+"=="[e(436)](0,(4-n[e(426)]%4)%4);try{const t=atob(r),n=new Uint8Array(t[e(426)]);for(let r=0;r<t[e(426)];r++)n[r]=t[e(408)](r);return n}catch{return null}}function e(e){const n=s,r=t(e);if(!r)return null;try{return(new TextDecoder)[n(443)](r)}catch{return null}}function n(t){if(!/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/[s(444)](t))return!1;const[e,n]=t.split(".").map(Number);return 127===e||10===e||192===e&&168===n||172===e&&n>=16&&n<=31}function r(){const t=["document","5fEJdTN","no_license","charCodeAt","550eCqcVv","crypto_unavailable","importKey","invalid_issuer","verify",'meta[name="okjs-license"]',"malformed","exp","content","floor","isArray","iss","https:","endsWith","string","__OKJS_LICENSE__","http:","length","8534436IiUsJG","556786uAitRS","Ed25519","raw","domain_mismatch","now","5537htGOJp","startsWith","parse","slice","1107273BQYxpj","8808JgJClD","includes","72837UrEXOa","expired","querySelector","decode","test","okjs","encode","4816536VdaTOt","getAttribute","::ffff:","2526280uYGMpM","signatureBytes","split","crypto"];return(r=function(){return t})()}function o(t,e){const r=s;return(void 0===e||e===r(425)||"https:"===e)&&!!t&&("localhost"===t||(t.includes(":")?"::1"===t||!!/^f[cd]/i.test(t)||!!t[r(434)](r(400))&&n(t[r(436)](7)):n(t)))}function s(t,e){return t-=398,r()[t]}!function(){const t=s,e=r();for(;;)try{if(806787==parseInt(t(428))/1+parseInt(t(401))/2+-parseInt(t(437))/3+parseInt(t(398))/4+parseInt(t(406))/5*(-parseInt(t(427))/6)+-parseInt(t(433))/7*(parseInt(t(438))/8)+-parseInt(t(440))/9*(-parseInt(t(409))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const i=m;function a(){const t=["defaultView","readyState","994730YUhZix","type","397180ZwmnkH","color:#fff;opacity:.35;mix-blend-mode:difference",'": ',"1944726MptHcm","removeChild","setAttribute","479706miQvll","270964JYDIOW","9yIYrfV","MutationObserver",'[okjs] Unlicensed usage detected on "',"disconnect",'[okjs] License check failed on "',"25xYQeLI","createElement","warn","parentNode","appendChild","div","44692kwHrni","body","loading","undefined","target","30PmXjFl","[okjs] Purchase a license at https://okjs.dev/license","22MOjjaU","4937848QmbJaD","childList","contains"];return(a=function(){return t})()}!function(){const t=m,e=a();for(;;)try{if(347855==-parseInt(t(314))/1*(parseInt(t(319))/2)+parseInt(t(301))/3+parseInt(t(302))/4*(-parseInt(t(308))/5)+parseInt(t(298))/6+parseInt(t(295))/7+-parseInt(t(322))/8*(-parseInt(t(303))/9)+parseInt(t(327))/10*(parseInt(t(321))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const c='position:fixed;bottom:8px;right:8px;z-index:2147483647;pointer-events:none;font:10px -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;'+i(296);let l=null,u=null,f=!1;function p(t=document){const e=i,n=t[e(309)](e(313));return n[e(300)]("style",c),n.textContent="Powered by okjs",n}function h(t=l?.ownerDocument||document){const e=i;t?.[e(315)]&&u&&(u[e(306)](),l&&l[e(311)]&&l[e(311)][e(299)](l),l=p(t),t[e(315)][e(312)](l),u.observe(t[e(315)],{childList:!0}),u.observe(l,{attributes:!0,characterData:!0,subtree:!0}))}function d(t,e){const n=i;if(typeof document===n(317))return;const r=document;if(!r.body)return void(r[n(326)]===n(316)&&r.addEventListener("DOMContentLoaded",()=>d(t,e),{once:!0}));if(f){if(l&&r[n(315)][n(324)](l))return;u&&(u[n(306)](),u=null),l=null,f=!1}f=!0;const o=e?n(307)+t+n(297)+e+".":n(305)+t+'".';console[n(310)](o),console[n(310)](n(320)),l=p(r),r[n(315)][n(312)](l);const s=(typeof MutationObserver!==n(317)?MutationObserver:null)??r[n(325)]?.[n(304)];s&&(u=new s(t=>{const e=n;for(const n of t){if(!r[e(315)])return;if(n[e(294)]===e(323)&&n[e(318)]===r[e(315)]){if(!r[e(315)][e(324)](l))return void h(r)}else if(n.target===l||l&&l[e(324)](n[e(318)]))return void h(r)}}),u.observe(r[n(315)],{childList:!0}),u.observe(l,{attributes:!0,characterData:!0,subtree:!0}))}function m(t,e){return t-=294,a()[t]}const g=w;function y(){const t=["meta","88aGTbHK","231890HzSytC","68763EWrtAc","toJSON","match","An error occurred",". Caused by: ","find","captureStackTrace","312024KzmJlN","code","ok_error_","test","4187940OfoGSf","69520rXlfYN","message","toString","rootCauseMessage","scope","stack","name","252KEkAJf","210QNGFRL","36660TPLDme","slice","cause","now","41780xvLtYN","split"];return(y=function(){return t})()}function w(t,e){return t-=257,y()[t]}!function(){const t=w,e=y();for(;;)try{if(123049==-parseInt(t(267))/1+parseInt(t(275))/2+parseInt(t(268))/3+parseInt(t(266))/4*(parseInt(t(263))/5)+-parseInt(t(259))/6*(parseInt(t(258))/7)+parseInt(t(280))/8*(-parseInt(t(257))/9)+parseInt(t(279))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const I=g(277)+Date[g(262)]().toString(36)+"_"+Math.random()[g(282)](36).slice(2,6);let b=1;class $ extends Error{constructor(t,e,n={},r={}){const o=g,{depth:s=0}=r,i=n.message||t||e?.[o(281)]||o(271);if(super(n[o(281)]||""+i,{cause:e}),this.id=this.id=I+"_"+b++,this.name="OKError",this.code=t,this[o(284)]=n.scope,this.ok=n.ok||this.scope?.$ok,this.meta=n,delete this[o(265)].ok,delete this.meta.scope,delete this[o(265)][o(281)],Error[o(274)]&&Error[o(274)](this,$),this[o(285)]&&s>0){const t=this.stack[o(264)]("\n"),e=[t[0],...t[o(260)](s+1)],n=e[o(273)](t=>/\(?(.+):\d+:\d+\)?/[o(278)](t)),r=n?.[o(270)](/\(?(.+):(\d+):(\d+)\)?/);r&&(this.location={file:r[1],line:Number(r[2]),column:Number(r[3])}),this[o(285)]=e.join("\n")}}get[g(283)](){const t=g;let e=this;for(;e[t(261)]instanceof $;)e=e.cause;return e[t(281)]+(e[t(261)]?t(272)+e[t(261)]:"")}[g(269)](){const t=g;return{name:this[t(286)],code:this[t(276)],message:this.message,meta:this[t(265)],stack:this.stack,cause:this.cause?.[t(282)]()}}[g(282)](){const t=g;return this[t(286)]+" ["+this[t(276)]+"]: "+this.message}}function v(){const t=["881975pTBGhD","143uSjdjK","3108008UhqtPH","delete","4xLBZJo","off","295452qktmNx","15664QJVEQv","3372FvBifo","emit","set","264XKZTNf","offAll","10YVssgr","get","once","2893635EoPJfi","3073TpiNrc","251549ESzMKf","EMIT_ERROR","add"];return(v=function(){return t})()}const k=O;function O(t,e){return t-=241,v()[t]}!function(){const t=O,e=v();for(;;)try{if(298892==-parseInt(t(252))/1*(parseInt(t(259))/2)+-parseInt(t(245))/3*(-parseInt(t(241))/4)+-parseInt(t(255))/5+-parseInt(t(242))/6*(-parseInt(t(251))/7)+parseInt(t(257))/8+-parseInt(t(250))/9*(parseInt(t(247))/10)+-parseInt(t(256))/11*(-parseInt(t(261))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const _=new WeakMap,E={on(t,e){return A.on(this,t,e)},once(t,e){return A[O(249)](this,t,e)},off(t,e){return A[O(260)](this,t,e)},offAll(){return A.offAll(this)},emit(t,...e){const n=O;try{return A[n(243)](this,t,...e)}catch(r){throw new $(n(253),r,{event:t,args:e})}}},A={SYMBOLS:{ON:Symbol("on"),ONCE:Symbol(k(249)),OFF:Symbol(k(260)),OFF_ALL:Symbol(k(246)),EMIT:Symbol(k(243))},EmitterProto:E,bind:t=>({on(e,n){A.on(t,e,n)},once(e,n){A[O(249)](t,e,n)},off(e,n){A[O(260)](t,e,n)},offAll(e){A[O(246)](t,e)},emit(e,...n){A[O(243)](t,e,...n)}}),on(t,e,n){const r=k;let o=_[r(248)](t);!o&&(o=new Map,_[r(244)](t,o));let s=o[r(248)](e);return!s&&(s=new Set,o.set(e,s)),s[r(254)](n),{scope:t,event:e,fn:n,stop(){A[r(260)](t,e,n)}}},once(t,e,n){const r=(...o)=>{A.off(t,e,r),n(...o)};return A.on(t,e,r),{scope:t,event:e,originalFn:n,fn:r,stop(){A[O(260)](t,e,r)}}},off(t,e,n){const r=k,o=_[r(248)](t);if(o){if(e){const t=o[r(248)](e);if(!t)return;t.delete(n),0===t.size&&o[r(258)](e)}(!e||0===o.size)&&_[r(258)](t)}},offAll(t){_.delete(t)},emit(t,e,...n){const r=k,o=_.get(t);if(!o)return;const s=o[r(248)](e);if(s)for(const t of s)t(...n)}};function T(){const t=["4812ohPcXn","has","11zIDwfS","$scope","7443350dEtXio","22583594EaSyNW","8fuTfGv","44842tLcRgj",") {\n","push",'console.log("RUNNING", `',"length","set","Failed to evaluate expression: `","678oeBZWW","$vars","EXPR_EVAL_BAD_ARGUMENT","replace","get","1086MlJKTl","17395kMcXDF","15771510BKBZiB","`, Object.fromEntries(Object.entries(ctx).filter(([k]) => ","EXPR_EVAL_ERROR","join","7187747LGPDQe","toString","return (","with (ctx.","onError"];return(T=function(){return t})()}const x=S;function S(t,e){return t-=339,T()[t]}!function(){const t=S,e=T();for(;;)try{if(959044==-parseInt(t(368))/1*(parseInt(t(343))/2)+-parseInt(t(355))/3*(parseInt(t(366))/4)+-parseInt(t(356))/5*(parseInt(t(350))/6)+parseInt(t(361))/7*(-parseInt(t(342))/8)+parseInt(t(357))/9+-parseInt(t(340))/10+parseInt(t(341))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const C=new Map;function N(t){const e=S;return t[e(353)](/\\/g,"\\\\")[e(353)](/`/g,"\\`")[e(353)](/\$\{/g,"\\${")}function j(t,{debug:e=!1,log:n=!1,layers:r=[]}={}){const o=x,s=Object(t)[o(362)]().trim(),i=[];e&&i[o(345)]("debug"),n&&i.push("log");const a=(i[o(347)]?i[o(360)](",")+":"+s:s)+"~"+r;if(C[o(367)](a))return C[o(354)](a);let c;try{const t=function(t,{debug:e=!1,log:n=!1,layers:r=[x(339),x(351),"$context"]}={}){const o=x,s=[];if(e&&s.push("debugger;"),n){const e=N(t);s[o(345)](o(346)+e+o(358)+JSON.stringify(r)+".includes(k))));")}return s[o(345)](o(363)+t+");"),r.reduceRight((t,e)=>o(364)+e+o(344)+t+"\n}",s[o(360)]("\n"))}(s,{debug:e,log:n,layers:r});c=new Function("ctx",o(365),t)}catch(e){throw new $("EXPR_COMPILE_FAILED",e,{message:"Failed to compile expression: `"+N(s)+"`",cmd:t})}const l=t=>{const e=o;if(r[e(347)]&&!t)throw new $(e(352),"Expression requires a context with: "+r[e(360)](", "));if(void 0!==t&&!r[e(347)])throw new $("EXPR_EVAL_BAD_ARGUMENT","Expression expects no context, but got one");try{return c(t)}catch(n){throw new $(e(359),n,{message:e(349)+N(s)+"`",scope:t?.[e(339)]})}};return C[o(348)](a,l),l}function M(t,e){return t-=476,D()[t]}!function(){const t=M,e=D();for(;;)try{if(834181==-parseInt(t(477))/1*(-parseInt(t(502))/2)+-parseInt(t(479))/3*(parseInt(t(503))/4)+-parseInt(t(501))/5*(parseInt(t(497))/6)+parseInt(t(493))/7+-parseInt(t(492))/8*(parseInt(t(485))/9)+-parseInt(t(483))/10+-parseInt(t(478))/11*(-parseInt(t(495))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const R=Symbol("ReactiveMap");function L(t){const e=M;class n extends Map{constructor(t){super(),this[R]=t}get[e(486)](){const n=e;return t.trackDependency(this,n(486)),this[R].size}[e(484)](n){const r=e;return t[r(500)](this,n),t[r(489)](this[R][r(484)](n),{allowNonObjects:!0})}[e(482)](n,r){const o=e,s=this[R][o(496)](n),i=this[R][o(484)](n),a=this[R].set(n,r),c=this[R][o(484)](n);return t[o(490)](this,n,i,c,{type:o(480),mode:o(482)}),!s&&t[o(490)](this,o(486),this[R][o(486)]-1,this[R][o(486)],{type:o(482),mode:o(486)}),a}delete(n){const r=e;if(!this[R][r(496)](n))return!1;const o=this[R][r(484)](n),s=this[R][r(487)](n);return t.emitChange(this,n,o,void 0,{type:r(480),mode:r(487)}),t[r(490)](this,r(486),this[R][r(486)]+1,this[R][r(486)],{type:r(480),mode:"size"}),s}[e(491)](){const n=e,r=this[R][n(486)];this[R].clear(),t[n(490)](this,"size",r,0,{type:"map",mode:"size"}),t[n(490)](this,null,void 0,void 0,{type:n(480),mode:n(491)})}has(n){const r=e;return t.trackDependency(this,n),this[R][r(496)](n)}[e(499)](){const t=e;return this[R][t(499)]()}[e(481)](){return this[R].keys()}[e(488)](){const t=e;return this[R][t(488)]()}[Symbol.iterator](){const t=e;return this[R][Symbol[t(476)]]()}[e(498)](t,n){const r=e;this[R].forEach((e,o)=>t[r(494)](n,e,o,this))}}return{filter:t=>t instanceof Map,handler:(t,e)=>new n(e)}}function D(){const t=["get","110934qluzvb","size","delete","values","proxy","emitChange","clear","296BUiEFg","3846227nIfTVJ","call","8149644jSDHXR","has","3706440RHlJYs","forEach","entries","trackDependency","10vveFpg","793246FOxMSc","9436gRXYrv","iterator","2sCFsdd","44vOtvvU","1524GmODhM","map","keys","set","3351600jOgcPj"];return(D=function(){return t})()}function P(t,e){return t-=145,U()[t]}function F(t){const e=P,n=new WeakMap;return{filter:Array[e(158)],handler:(e,r)=>function(t,e){const r=P,o={},s=new Proxy(t,{get(t,n,r){const i=P;return n===i(159)?(e[i(150)](s,"length"),Reflect[i(145)](t,n,r)):typeof n===i(154)?Reflect[i(145)](t,n,r):isNaN(n)?[i(163),"pop",i(153),"unshift","splice"][i(161)](n)?(!o[n]&&(o[n]=function(...r){const o=i,s=t[o(159)],a=Array[o(152)][n][o(166)](t,r);return e[o(146)](t,o(159),s,t[o(159)],{type:o(156),mode:n,args:r}),a}),o[n]):e[i(147)](Reflect[i(145)](t,n,r),{allowNonObjects:!0}):(e.trackDependency(s,n),e[i(147)](Reflect[i(145)](t,n,r),{allowNonObjects:!0}))},set(t,n,r,o){const s=P,i=t[n],a=t[s(159)],c=Reflect[s(157)](t,n,r,o);return e[s(146)](t,n,i,r,{type:s(156),mode:s(157)}),!isNaN(n)&&Number(n)>=a&&e[s(146)](t,s(159),a,Number(n)+1,{type:"array",mode:"set"}),c}});return n[r(157)](s,o),s}(r,t)}}function U(){const t=["includes","150183cdaXml","push","2579094yIMuEZ","394275WqfvGA","apply","get","emitChange","proxy","326026TYzLyD","64TRTUfO","trackDependency","261374UtUqDt","prototype","shift","symbol","718711OIDTho","array","set","isArray","length","555356eHhLFS"];return(U=function(){return t})()}function z(){const t=["size","197530JfgDaW","set","add","emitChange","5157712LZaRKG","get","10573938QPrHYJ","has","4JgpcLJ","clear","function","7ZAoEsp","trackDependency","1734540ofleTA","4623245bSWsll","bind","308128AZtMrj","symbol","delete","3658116LpfOrf"];return(z=function(){return t})()}function W(t,e){return t-=289,z()[t]}!function(){const t=P,e=U();for(;;)try{if(232811==parseInt(t(148))/1+parseInt(t(151))/2+-parseInt(t(162))/3+parseInt(t(160))/4+parseInt(t(165))/5+parseInt(t(164))/6+parseInt(t(155))/7*(-parseInt(t(149))/8))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=W,e=z();for(;;)try{if(477990==parseInt(t(304))/1*(parseInt(t(293))/2)+parseInt(t(306))/3+-parseInt(t(301))/4*(parseInt(t(307))/5)+parseInt(t(291))/6+parseInt(t(297))/7+-parseInt(t(309))/8+-parseInt(t(299))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const B=K;function K(t,e){return t-=242,q()[t]}function H(t={}){const e=K,n={log:t[e(293)]||console};let r=0;const o=new WeakMap,s=new Map;function i(t){const n=e;if(!t||typeof t!==n(253))return!1;const r=Object[n(266)](t);if(!r)return!1;const o=r[n(246)];if("function"!=typeof o)return!1;const s=o.toString().includes(n(283));return r===Object[n(280)]||!s}const a={warnOnEmptyWatch:e(313),onChangeError:e(267),onWatchError:e(267),wrapHandle:null,dispatchDelay:t=>queueMicrotask(()=>requestAnimationFrame(t)),blacklistFilter:null,whitelistFilter:i,accessFilter:null,meta:null,monkeyPatches:[F(n),L(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=W;if(typeof e===s(289)){const n=t[e];return"function"==typeof n?n.bind(t):n}if("size"===e)return c[s(305)](r,s(292)),t[s(292)];if(n[s(300)](e))return n[s(298)](e);let i;return e===s(295)?i=function(e){const n=s,o=t.has(e),i=t[n(295)](e);return!o&&(c[n(296)](r,n(292),t.size-1,t.size,{type:"set",mode:n(295),args:[e]}),c[n(296)](r,e,!1,!0,{type:n(294),mode:n(300)})),i}:e===s(290)?i=function(e){const n=s,o=t[n(300)](e),i=t[n(290)](e);return o&&(c[n(296)](r,"size",t.size+1,t[n(292)],{type:"set",mode:n(290),args:[e]}),c[n(296)](r,e,!0,!1,{type:n(294),mode:n(300)})),i}:e===s(302)?i=function(){const e=s,n=t.size,o=[...t];t[e(302)]();for(let t of o)c[e(296)](r,t,!0,!1,{type:e(294),mode:e(300)});c.emitChange(r,e(292),n,0,{type:"set",mode:e(302)})}:e===s(300)&&(i=function(e){return c[s(305)](r,e),t.has(e)}),i?(n[s(294)](e,i),i):typeof t[e]===s(303)?t[e][s(308)](t):t[e]}});return r}})],warnOnSideEffects:e(294),...t};var c;function l(t){return!0===t?e(267):!1===t?"ignore":t}a.warnOnEmptyWatch=l(a[e(271)]),a[e(291)]=l(a.onChangeError),a[e(263)]=l(a[e(263)]);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.monkeyPatches||[],v=new WeakMap,k=new WeakMap,O=new WeakMap,_=new WeakMap,E=[],A=new Map;let T=!1,x=!1,S=!1;const C=new Set;let N=!1;const j=(t,n,r=()=>new Map)=>t[e(260)](n)?t.get(n):(t[e(316)](n,r()),t[e(268)](n)),M={get(t,i,c){const l=e;if(i===H[l(317)])return t;if(i===H[l(262)])return n;if(typeof i===l(315))return Reflect[l(268)](t,i,c);const u=Reflect[l(268)](t,i,c);if(typeof u===l(242))return u;let f=u;if("object"==typeof f&&null!==f&&!D(f)&&(f=R(f)),S){const t=(t=>{const n=e;if(!o[n(260)](t)){const e="#"+r++;o[n(316)](t,e),s[n(316)](e,t)}return o[n(268)](t)})(c);C[l(285)](t+":"+i[l(304)]())}if(0===w[l(276)])return f;if("ignore"!==a[l(314)]&&w[l(260)](c)){const t=l(272)+i+'"';if("warn"===a[l(314)])n[l(293)][l(313)](t,c,(new Error).stack);else if(a[l(314)]===l(257))throw new Error(t)}return P(c,i),f},set(t,n,r,o){const s=e;if(x)return Reflect[s(316)](t,n,r,o);const i=p[s(268)](o);if(!i?.[s(298)]?.(o,n))return Reflect[s(316)](t,n,r,o);const a=t[n],c=f.get(r)||r,l=Reflect.set(t,n,c,o);return(a!==c||S)&&U(o,n,a,c,s(316)),l},deleteProperty(t,n){const r=e;if(x)return Reflect.deleteProperty(t,n);const o=u.get(t),s=p[r(268)](o);if(!s?.[r(298)]?.(o,n))return Reflect[r(295)](t,n);const i=t[n],a=Reflect[r(295)](t,n);return a&&U(o||t,n,i,void 0,r(286)),a}};function R(t,n={}){const r=e;if("object"!=typeof t||null===t){if(!0!==n[r(258)])throw new Error(r(287));return t}if(D(t))return t;if(a.blacklistFilter?.(t))return t;if(a[r(247)]&&!a[r(247)](t)&&!$[r(322)](e=>e?.[r(282)]?.(t)))return t;let o=u[r(268)](t);if(!o){o=new Proxy(t,M);for(const e of $)if(e?.filter?.(t)){const n=e[r(292)](o,t);n&&(o=n)}u[r(316)](t,o),f[r(316)](o,t),p.set(o,{accessFilter:(t,e)=>!p[r(268)](t)[r(294)].has(e),ignore:new Set([...n[r(294)]||[]]),meta:typeof n[r(306)]===r(242)?n[r(306)](t):n[r(306)]??(typeof a[r(306)]===r(242)?a[r(306)](t):a.meta)})}return o}function D(t){return f[e(260)](t)}function P(t,n){const r=e;for(const e of w)j(h,t,()=>new Set)[r(285)](e),j(m,e,()=>new Map)[r(316)](t,j(m.get(e),t,()=>new Set)[r(285)](n))}function U(t,n,r,o,s,i={}){const a=e;if(x)return;const c={target:t,property:n,oldValue:r,newValue:o,type:s,...i},l=h[a(268)](t);if(l)for(const e of l){const r=m[a(268)](e);r?.[a(268)](t)?.[a(260)](n)&&j(A,c,()=>new Set)[a(285)](e)}const u=d[a(268)](t);(u?.[a(260)](n)||u?.[a(260)](null)||A.has(c))&&(E[a(265)](c),z())}function z(){const t=e;T||(T=!0,typeof a[t(277)]===t(242)?a[t(277)](V):null===a[t(277)]?queueMicrotask(V):!1===a[t(277)]?V():T=setTimeout(V,a.dispatchDelay||0))}function B(){const t=e,n=[...E],r=[],o=new Map;for(const e of n){const n=d.get(e[t(299)]);if(n){const o=[...n[t(268)](null)||[],...n[t(268)](e[t(318)])||[]];for(const n of o)r[t(265)]({handler:n,arg:e,queue:t(244)})}const s=A[t(268)](e);if(s)for(const n of s){let r=o[t(268)](n);r?r[t(265)](e):(r=[e],o[t(316)](n,r))}}for(const[e,n]of o[t(259)]())r[t(265)]({handler:e,arg:n,queue:"watcher"});E[t(321)]=0,A[t(281)]();for(const e of r)(e.queue!==t(270)||I.has(e[t(292)]))&&(q(e[t(292)],e[t(264)]),E[t(321)]&&B())}function V(){T&&clearTimeout(T),T=!1,B(),function(){if(Y&&!E.length&&!T){const t=Q;Y=null,Q=null,t()}}()}function q(t,r){const o=e;try{return function(t){const n=e;if(k.has(t))return k.get(t);const r=v.get(t)?.wrapHandle||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(284))}}(t)(r)}catch(t){if(a[o(291)]===o(267))throw t;a[o(291)]===o(313)&&n[o(293)][o(313)]("Change handler error",t)}}function J(t,r,o=null){const s=e;if(!r)throw new Error(s(307));const i=void 0===o?.immediate||o?.immediate;let c;const l=t=>(f=!0,r(t));_.set(r,l),v[s(260)](l)||o&&v[s(316)](l,o),I[s(285)](l),w[s(285)](l);let u=i?t():void 0,f=!1;if(w[s(286)](l),!m.has(l)){const t=o?.warnOnEmptyWatch||a[s(271)];if(t===s(313))n[s(293)].warn(s(269));else if(t===s(267))throw new Error(s(249))}return c={onChange:r,fn:t,stop:()=>(G(l),c),watch(){const t=s;G(l),I[t(285)](l),w.add(l);try{u=c.fn(),f=!1}catch(e){const r=c[t(300)]?.[t(263)]||a[t(263)]||t(267);if(typeof r===t(242))return r(e,c,n);if(r===t(313))n.log[t(313)](e);else if(r===t(267))throw e}return w[t(286)](l),j(g,l,()=>new Set)[t(285)](c),c},run:()=>r(c[s(273)]),get listeners(){const t=s;return{size:m.get(l)?.[t(276)]||0}},get targets(){return m[s(268)](l)},get value(){return f&&(u=t(),f=!1),u},set value(t){u=t,f=!1},options:o},j(g,l,()=>new Set).add(c),c}function G(t){const n=e,r=_[n(268)](t)||t;I[n(286)](r);const o=m[n(268)](r);if(o){for(const t of o[n(311)]())h[n(268)](t)?.[n(286)](r);m[n(286)](r)}g[n(286)](r),_[n(286)](t)}function X(t,r,o,s=null){const i=e;if(!D(t))return void n[i(293)].warn(i(320)+r+i(261),t);s&&v[i(316)](o,s);const a=j(d,t,()=>new Map);j(a,r,()=>new Set).add(o);const c=j(b,o,()=>new Map);j(c,t,()=>new Set)[i(285)](r);const l={stop(){const e=i;a.get(r)?.[e(286)](o),a[e(268)](r)?.[e(276)]||a.delete(r),a[e(276)]||d[e(286)](t),c[e(268)](t)?.[e(286)](r),c[e(268)](t)?.[e(276)]||c[e(286)](t),c.size||b[e(286)](o)},get listeners(){const t=i;return{size:a.get(r)?.[t(276)]||0}},get targets(){return c}};return j(y,o,()=>new Set)[i(285)](l),l}function Z(t){const n=e;return typeof t===n(253)?f[n(268)](t):void 0}let Y=null,Q=null;return Object.assign(n,{proxy:R,getTarget:Z,getMeta:function(t){const n=e;return typeof t===n(253)?p[n(268)](t)?.[n(306)]:void 0},isProxy:D,watch:J,computed:function(t){const n=e,r=R({value:void 0}),o=J(t,()=>{r[K(273)]=o.value});return o[n(255)](),{watcher:o,stop:o[n(243)],ref:r,get value(){return r.value}}},memo:function(t){let e=O.get(t);return!e&&(e=this.computed(t),O.set(t,e)),e},unwatch:G,observe:X,unobserve:function(t){const n=e,r=y[n(268)](t);if(r){for(const t of r)t[n(243)]();y[n(286)](t)}},observeDeep:function(t,n){const r=e;return{stop:function t(e,r=[]){const o=K;if("object"!=typeof e||null===e)return{stop:()=>{}};const s=new Map,i=X(e,null,o=>{const i=K,{property:a,newValue:c,oldValue:l,type:u,mode:f}=o,p=[...r,a];if(n({path:p,value:c,raw:o}),s[i(260)](a)&&(l!==c||null==c)){try{s.get(a)[i(243)]()}catch{}s[i(286)](a)}if(typeof c===i(253)&&null!==c){if(s[i(260)](a))try{s.get(a).stop()}catch{}s[i(316)](a,t(R(c),p))}if(Array[i(288)](e)&&[i(265),i(274),i(310),"pop",i(301)][i(308)](f)){for(const[t,e]of s[i(259)]())try{e[i(243)]()}catch{}s.clear();for(let n=0;n<e[i(321)];n++){const o=e[n];typeof o===i(253)&&null!==o&&s[i(316)](n,t(R(o),[...r,n]))}}});if(Array[o(288)](e))for(let n=0;n<e.length;n++){const i=e[n];"object"==typeof i&&null!==i&&s[o(316)](n,t(R(i),[...r,n]))}else for(const n in e){const i=e[n];typeof i===o(253)&&null!==i&&s[o(316)](n,t(R(i),[...r,n]))}return{stop:()=>{const t=o;i[t(243)]();for(const e of s[t(252)]())try{e.stop()}catch{}s[t(281)]()}}}(t)[r(243)]}},notify:function(t){const n=e;S=!0,t(),S=!1;for(const t of C){const[e,r]=t.split(":"),o=s[n(268)](e);if(o){const t=Reflect.get(Z(o),r);U(o,r,t,t,"touch")}}C[n(281)]?.()},ignore:function(t){const n=e;x=!0;try{const e=t();return e?.[n(275)]?e.finally(()=>{x=!1}):x=!1,e}catch(t){throw x=!1,t}},monkeyPatches:$,defaultWhitelistFilter:i,flush:async function(){return Y||(Y=new Promise(t=>{Q=t}),E.length?z():Q(),Y)},emitChange:function(t,n,r,o,s={}){const i=e;D(t)||(t=R(t)),U(t,n,r,o,s[i(251)]||"object",s)},trackDependency:P,frame:function(t){if(N)throw new Error(e(290));N=!0,V();try{t()}finally{V(),N=!1}}}),n}!function(){const t=K,e=q();for(;;)try{if(472998==parseInt(t(319))/1*(parseInt(t(289))/2)+parseInt(t(303))/3+parseInt(t(245))/4*(-parseInt(t(323))/5)+parseInt(t(248))/6*(-parseInt(t(254))/7)+parseInt(t(305))/8*(parseInt(t(256))/9)+parseInt(t(297))/10*(-parseInt(t(312))/11)+parseInt(t(302))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const V=typeof requestAnimationFrame!==B(309)?requestAnimationFrame:t=>t();function q(){const t=["delete","Not an object","isArray","178FXliCO","Cannot nest frame()","onChangeError","handler","log","ignore","deleteProperty","proxy.target","3961010ehkzWO","accessFilter","target","options","shift","3404208qRGLgh","1945743hXEkvG","toString","2489472EWOvVn","meta","Missing onChange handler in watch","includes","undefined","splice","keys","11AwMkye","warn","warnOnSideEffects","symbol","set","SYM_TARGET","property","1874TSJIBT","Trying to observe ","length","some","5IsJTqz","function","stop","observer","2067244YNBOUQ","constructor","whitelistFilter","6XvquPG","Empty watch","defaultHybridDelay","type","values","object","2348563ITjLBw","run","18nlPzcQ","error","allowNonObjects","entries","has"," on a non proxy object","SYM_OKPROXY_INSTANCE","onWatchError","arg","push","getPrototypeOf","throw","get","Watch with no reactive access","watcher","warnOnEmptyWatch",'⚠️ Side effect detected during dependency collection on "',"value","unshift","finally","size","dispatchDelay","now","max","prototype","clear","filter","[native code]","PROXY: Bad Handle Wrapper","add"];return(q=function(){return t})()}H[B(250)]=function(t,e=0){const n=B,r=performance[n(278)]();setTimeout(()=>{V(t)},Math[n(279)](0,e-(performance.now()-r)))};const J=Symbol(B(296)),G=Symbol("proxy.instance");function X(){var t=["351627fpREZT","1hsGeIA","3658872zehjKa","7022984ATddmt","55496oIFeUs","4170105ozOmxx","4196241ZOPwPT","395clpcsh","1418232euFEVG"];return(X=function(){return t})()}function Z(t,e){return t-=428,X()[t]}H[B(317)]=J,H.SYM_OKPROXY_INSTANCE=G,function(){for(var t=Z,e=X();;)try{if(570804==parseInt(t(430))/1*(parseInt(t(428))/2)+parseInt(t(429))/3+parseInt(t(433))/4*(parseInt(t(436))/5)+-parseInt(t(431))/6+parseInt(t(435))/7+-parseInt(t(432))/8+-parseInt(t(434))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Y=at;!function(){const t=at,e=ct();for(;;)try{if(343462==parseInt(t(469))/1*(-parseInt(t(471))/2)+parseInt(t(479))/3+-parseInt(t(474))/4+-parseInt(t(467))/5+parseInt(t(482))/6+-parseInt(t(472))/7+parseInt(t(475))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Q=[];let tt=null;function et(t){Q.push(t),!tt&&(tt=setTimeout(()=>{const t=at;for(let e=0;e<Q[t(468)];e++)Q[e]();Q[t(483)](0),tt=null}))}const nt=[];let rt=0,ot=typeof globalThis[Y(476)]!==Y(465)?new MessageChannel:null;function st(t){nt[Y(477)](t),it()}function it(){const t=Y;if(0===rt)rt=1,function(){const t=Y;(globalThis[t(481)]||globalThis[t(473)]||globalThis[t(464)]||globalThis.msRequestAnimationFrame||(t=>{setTimeout(t,20)}))(()=>{const t=at;if(ot)return ot.port2[t(478)](void 0),void(rt=2);rt=2,it()})}();else if(2===rt){rt=0;for(let t=0;t<nt.length;t++)try{nt[t]()}catch(t){}nt[t(483)](0)}}function at(t,e){return t-=464,ct()[t]}function ct(){const t=["2780295cdmlpC","mozRequestAnimationFrame","455152KQroIA","3488600KLqPKi","MessageChannel","push","postMessage","1869429TjyNDH","unref","requestAnimationFrame","1750092BVUOkv","splice","webkitRequestAnimationFrame","undefined","onmessage","2379340nbChSQ","length","479HOMLxz","port1","86nUZOLU"];return(ct=function(){return t})()}ot&&(ot[Y(470)][Y(466)]=it,ot[Y(470)][Y(480)]?.());var lt=Object.freeze({__proto__:null,awaitFrame:function(){return new Promise(t=>{st(()=>{t()})})},awaitTick:function(){return new Promise(t=>{et(()=>{t()})})},nextFrame:st,nextTick:et});function ut(){const t=[":if","find","218MtzXKL","mounted","$el","then","ownerDocument","$log","condition","90caNoUO","name","$childScope","childNodes","content","$__unmount__$","$context","removeChild","all","$lifecycle","$ok","template","init","append","setAttribute","160405udNmza","36234gXfPMr","document","2577DzbmLC","4108496OpsPnQ","1389268ZfvwXq","20dKdCnr","$attr","templates","createElement","default","appendChild","firstChild","2847843bbXVXx","$cache","warn","else","$watch","2966264FITwWj","push","getAttribute","ELSE","from","[ok] <if> component without content.","dom"];return(ut=function(){return t})()}const ft=pt;function pt(t,e){return t-=163,ut()[t]}function ht(t){const e=pt,n=t[e(185)].cmp;if(t[e(210)]||!t[e(200)])return;const r=n[e(179)]||{},o=!!t[e(178)].if,s=o?r[e(181)]:r.else;if(t[e(185)].if===o)return;t[e(185)].if=o;const i=t.$destroyChildren(!0),a=()=>{const n=e;if(t[n(210)]||!t[n(200)])return;const r=[];for(const e of s?.[n(209)][n(208)]||[]){const o=e.cloneNode(!0);t[n(166)][n(195)][n(169)](t[n(200)],o);const s=t[n(207)](o,{$context:t[n(211)]});t.$ok[n(168)](o),r[n(190)](s[n(165)][n(199)])}return r.length?Promise[n(164)](r):void 0};return i?i[e(201)](a):a()}!function(){const t=pt,e=ut();for(;;)try{if(328890==-parseInt(t(172))/1+-parseInt(t(198))/2*(parseInt(t(174))/3)+-parseInt(t(176))/4+parseInt(t(171))/5*(parseInt(t(205))/6)+parseInt(t(175))/7+parseInt(t(189))/8+-parseInt(t(184))/9*(parseInt(t(177))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var dt={tag:"if",unwrap:!0,attr:{if:{required:!0,alias:[""],description:ft(204),type:"binding"}},prepare(t){const e=ft,n=t[e(185)].cmp[e(179)]||{},r=n[e(181)]?.[e(209)];if(!r)return void t[e(203)][e(186)]([],e(194));const o=Array[e(193)](r[e(208)])[e(197)](t=>t.tagName===e(192));if(!o)return;const s=o[e(191)](e(196))||o[e(191)]("if"),i=t[e(200)]?.[e(202)]||globalThis[e(173)],a=i.createElement(e(167));if(a.setAttribute(e(206),e(187)),s){const t=i[e(180)]("if");for(t[e(170)](":",s);o[e(183)];)t[e(182)](o.firstChild);a[e(209)][e(182)](t)}else for(;o[e(183)];)a.content.appendChild(o.firstChild);r[e(163)](o),n.else=a},mount:t=>ht(t),mounted(t){const e=ft;t[e(188)](()=>t[e(178)].if,()=>{t[e(210)]||ht(t)})}};const mt=yt;function gt(){const t=["getNodes","42669vtvOnH","16OvuzfQ","$parent","830767fgizJz","9jeJFMw","$cmp","isArray","scope","15196368sNRzNS","$__unmount__$","update","$ok","$el","$fragment","nodes","append","updating","$watch","11UdqOwv","fragment","$cache","534998MwANwE","$init","push","noInit","316950xvdkag","$context","dirty","context","20VmnKce","$attr","1wANfst","$destroyChildren","627640OgQSJz","14993890RgyZAk","$scope"];return(gt=function(){return t})()}function yt(t,e){return t-=203,gt()[t]}!function(){const t=yt,e=gt();for(;;)try{if(957850==-parseInt(t(228))/1*(-parseInt(t(218))/2)+parseInt(t(234))/3+parseInt(t(230))/4*(parseInt(t(226))/5)+parseInt(t(222))/6+-parseInt(t(237))/7*(parseInt(t(235))/8)+parseInt(t(238))/9*(parseInt(t(231))/10)+-parseInt(t(215))/11*(parseInt(t(205))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var wt={tag:mt(216),unwrap:!0,attr:{context:{type:Object,default:null},nodes:{default:()=>[]},noInit:{type:Boolean,default:!1,empty:!0}},mount(t){const e=mt,n=t.$cache.fragment={updating:!1,dirty:!1,getNodes(){const e=yt,n=t[e(227)][e(211)];return Array[e(203)](n)?n:[]},update(){const e=yt;if(n.updating)return void(n.dirty=!0);if(n[e(213)]=!0,n[e(224)]=!1,t[e(206)]||!t.$el)return void(n[e(213)]=!1);if(t[e(229)](!0),!t[e(209)])return void(n[e(213)]=!1);const r=n[e(233)](),o=t[e(208)].dom,s=[];for(const n of r)if(n[e(210)]=t,!n[e(232)]&&!t[e(227)][e(221)]){let r={$parent:t[e(236)],$context:t[e(227)][e(225)]??t[e(236)][e(223)],$cmp:t[e(239)]};t[e(227)][e(204)]&&(r=t[e(227)][e(204)](r)),n[e(232)]=t[e(208)][e(204)](n,r),s[e(220)](n)}o[e(212)](t[e(209)],...r);for(const t of s)t[e(232)][e(219)]();n[e(213)]=!1,n[e(224)]&&n[e(207)]()}};n[e(207)]()},init(t){const e=mt,n=t[e(217)][e(216)];t[e(214)](()=>t.$attr.nodes.length,()=>n[e(207)]())}};const It=vt;function bt(t,e,n,r,o){const s=vt,i=t.$cache[s(426)]?.[s(458)]?.default,a=(t.$el?.[s(418)]||globalThis[s(499)])[s(504)](s(481));a[s(503)](...i[s(498)][s(472)](!0).childNodes);const c=t[s(442)][s(444)]({index:n,key:r,item:o}),l=a[s(432)]=t[s(442)][s(445)](a,{$parent:t,$context:t[s(506)],$cache:{eachItem:c}}),u={};s(457)in t.$attr&&(u[t.$attr["let:items"]]={get:()=>t.$attr.of}),"let:item"in t.$attr&&(u[t.$attr[s(494)]]={get:()=>c[s(478)]}),s(420)in t[s(487)]&&(u[t[s(487)]["let:key"]]={get:()=>c.key}),s(427)in t.$attr&&(u[t.$attr[s(427)]]={get:()=>c[s(425)]});for(const e in t.$attr)if(e.startsWith("let:")){const n=e[s(455)](4);if("items"===n||n===s(478)||n===s(480)||"index"===n)continue;const r=t[s(487)][e];u[r&&!0!==r?r:n]={get:()=>c.item}}return l.$setInnerVars(u),l}function $t(t,e,n,r){const o=vt,s=r[o(493)],i=e[o(485)].get(String(n-1));i?t[o(442)].dom[o(454)](t[o(493)],s,i[o(493)]):t.$ok.dom[o(414)](t[o(493)],s),t[o(442)].dom[o(413)](s)}function vt(t,e){return t-=412,Tt()[t]}function kt(t,e,n,r,...o){const s=vt,i=[],a=e[s(485)][s(475)];return o.length,n=Math[s(471)](0,Math[s(452)](n,a)),Number[s(450)](r)||(r=a),r&&i.push(function(t,e,n,r=1){const o=vt,s=e[o(485)],i=[],a=s[o(475)];for(let t=0;t<r;t++){const e=String(n+t),r=s.get(e);r&&(s[o(438)](e),i[o(484)](r[o(419)]()))}for(let t=n+r;t<=a;t++){const e=String(t),n=t-r,i=String(n),a=s[o(428)](e);a&&(a[o(479)][o(456)].index=n,a.$cache[o(456)][o(480)]=i,s.set(i,a),s[o(438)](e))}return Promise[o(474)](i)}(0,e,n,r)),o.length&&i.push(function(t,e,n,...r){const o=vt;if(!r.length)return;const s=[];for(let t=e.keyToFragment[o(475)]-1;t>=n;t--){const n=String(t),s=t+r[o(477)],i=String(s),a=e.keyToFragment[o(428)](n);a.$cache[o(456)][o(425)]=s,a[o(479)].eachItem[o(480)]=i,e[o(485)][o(483)](i,a)}for(let i=0;i<r[o(477)];i++){const a=n+i,c=String(a),l=bt(t,0,a,c,r[i]);e[o(485)][o(483)](c,l),$t(t,e,a,l),s.push(l.$scope[o(430)]())}return Promise[o(474)](s)}(t,e,n,...o)),Promise.all(i)}function Ot(t,e,n,r,o){const s=vt,i=bt(t,0,n,r,o);return e[s(485)].set(r,i),$t(t,e,n,i),i.$scope[s(430)]()}function _t(t,e){const n=vt,r=[...e[n(485)].values()[n(422)](t=>t[n(419)]())];if(e.keyToFragment.clear(),r.length)return Promise.all(r)}function Et(t,e){const n=vt;if(t.$__unmount__$)return;!function(t){const e=It,n=t.$cache[e(497)];!n[e(461)]&&(n.srcHandle=t[e(433)](()=>t.$attr.of,()=>Et(t,n))),n.changeHandle?.[e(424)](),t.$ok[e(440)][e(435)](t.$attr.of)&&(n[e(436)]=t[e(468)](t.$attr.of,null,async r=>{const o=e;if(t.$__unmount__$)return;const s=r[o(443)];if(Array[o(423)](s))!function(t,e,n){const r=It;n[r(429)];const o=At[n[r(505)]];if(o)return o(t,e,n);if(n[r(429)]===r(477)){const o=n.oldValue-n.newValue;o>0&&kt(t,e,n[r(412)],o)}}(t,n,r);else if(s instanceof Set){if(r[o(505)]===o(488))await _t(0,n);else if(r.mode===o(490))await Ot(t,n,n[o(485)][o(475)],String(n[o(485)].size),r.args[0]);else if(r.mode===o(438))for(const[t,e]of n[o(485)][o(500)]())if(e[o(479)][o(456)][o(478)]===r[o(437)][0]){await e[o(419)](),n[o(485)][o(438)](t);break}}else if(s instanceof Map){if("clear"===r[o(505)])await _t(0,n);else if(r[o(505)]===o(483)){const e=n[o(485)][o(428)](r[o(429)]);e?e[o(479)][o(456)].item=r[o(412)]:await Ot(t,n,n[o(485)][o(475)],r[o(429)],r[o(412)])}else if("delete"===r[o(505)]){const t=n[o(485)][o(428)](r[o(429)]);t&&(await t[o(419)](),n[o(485)][o(438)](r.property))}}else if(typeof s===o(486)){const e=r[o(429)],s=n[o(485)][o(428)](e);r.type===o(438)?s&&(await s[o(419)](),n.keyToFragment.delete(e)):s?s[o(479)].eachItem[o(478)]=r.newValue:await Ot(t,n,n[o(485)][o(475)],e,r[o(412)])}else await Et(t,n)}))}(t);const r=t[n(487)].of;let o,s=Array.isArray(r);if(!1!==t[n(487)][n(439)]&&s)return function(t,e,n,r){const o=vt,s=e[o(485)],i=t=>r?String(t):n[t][0],a=t=>r?n[t]:n[t][1],c=[];for(let r=0;r<n[o(477)];r++){const n=i(r),l=a(r),u=s.get(n);if(u)u[o(479)][o(456)].item=l;else{const s=Ot(t,e,r,n,l);s&&c[o(484)](s)}}let l=n.length,u=i(l);for(;s.has(u);){const t=s[o(428)](u)[o(432)][o(419)]();t&&c[o(484)](t),s[o(438)](u),l++,u=i(l)}if(c[o(477)])return Promise.all(c)}(t,e,r,s);const i=_t(0,e),a=()=>{const i=n;s?o=r:"function"==typeof r?.[Symbol[i(502)]]?(o=r instanceof Map?[...r[i(500)]()]:[...r],s=!(r instanceof Map),o.length>30&&console[i(476)](i(460))):o=typeof r===i(486)?Object[i(500)](r):[];const a=[];for(let n=0;n<o[i(477)];n++){const r=s?String(n):o[n][0],c=s?o[n]:o[n][1],l=Ot(t,e,n,r,c);l&&a[i(484)](l)}if(a[i(477)])return Promise[i(474)](a)};return i?i[n(464)](a):a()}!function(){const t=vt,e=Tt();for(;;)try{if(636570==-parseInt(t(415))/1*(-parseInt(t(451))/2)+parseInt(t(448))/3*(parseInt(t(431))/4)+parseInt(t(447))/5*(parseInt(t(462))/6)+-parseInt(t(453))/7+parseInt(t(491))/8+-parseInt(t(489))/9*(parseInt(t(446))/10)+-parseInt(t(465))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const At={push:(t,e,n)=>kt(t,e,n[It(466)],0,...n.args),unshift:(t,e,n)=>kt(t,e,0,0,...n[It(437)]),splice:(t,e,n)=>kt(t,e,...n[It(437)]),pop:(t,e,n)=>kt(t,e,n[It(466)]-1,1),shift:(t,e)=>kt(t,e,0,1)};function Tt(){const t=["proxy of Array, Map, Set or Object","config","max","cloneNode","The :of= attribute must be iterable (Array, Set, Map, or Object)","all","size","warn","length","item","$cache","key","div","$api","set","push","keyToFragment","object","$attr","clear","9ZjNeSx","add","4565128kHVQFG","foreach","$el","let:item","$setInnerVars","function","each","content","document","entries","warnLimit","iterator","append","createElement","mode","$context","newValue","unwrap","prepend","1jJECZq","tagName","for","ownerDocument","$destroy","let:key","[ok] <each> received very large array. Rendering may affect performance.","map","isArray","stop","index","cmp","let:index","get","property","$init","37384ykkttd","$scope","$watch","keys","isProxy","changeHandle","args","delete","reuse","proxyInstance","$error","$ok","target","proxy","scope","310820IDSbjQ","5fwqxAn","81RHluvt","from","isInteger","2290646orYDOQ","min","334845xlDoaC","insertAfter","substring","eachItem","let:items","templates","values","Rendering large Set/Map may be inefficient. Consider using an Array.","srcHandle","4259718JpobdJ","static","then","21590492TsURLc","oldValue","items","$observe"];return(Tt=function(){return t})()}var xt={tag:It(497),alias:[It(417),It(492)],unwrap:!0,initOwnChildren:!0,destroyOwnChildren:!0,attr:{of:{required:!0,description:It(469),type:"binding",alias:[""],validate:function(t,e){const n=It;if(!function(t){const e=It;return null!=t&&(typeof t[Symbol[e(502)]]===e(496)||typeof t===e(486))}(e))throw t[n(441)]?.("EACH_INVALID_ITEMS",n(473),{value:e});const r=t.$ok?.[n(470)]?.[n(497)]?.[n(501)]??1e3;Array[n(423)](e)&&e[n(477)]>r&&console.warn(n(421),{tag:t[n(493)][n(416)],length:e[n(477)]})}},"let:items":{type:It(463),empty:It(467)},"let:item":{type:It(463),empty:It(478)},"let:key":{type:"static",empty:It(480)},"let:index":{type:"static",empty:"index"}},prepare(t){const e=It;"let:items"in t[e(487)]&&t[e(495)]({[t[e(487)]["let:items"]]:{get:()=>t[e(487)].of}});for(const n in t[e(487)])if(n.startsWith("let:")){const r=n[e(455)](4);if(r===e(467)||r===e(478)||r===e(480)||"index"===r)continue;(""===t[e(487)][n]||!0===t[e(487)][n])&&(t.$attr[n]=r)}},mounted(t){const e=It,n=t[e(479)][e(497)]={keyToFragment:new Map};t[e(482)]={getByKey:t=>n[e(485)][e(428)](t),getAllKeys:()=>Array[e(449)](n[e(485)][e(434)]()),reset:async()=>Et(t,n)},Et(t,t.$cache.each)},async unmount(t){const e=It,n=t[e(479)][e(497)];if(!n)return;const r=[...n[e(485)][e(459)]()];n[e(485)][e(488)](),r.length&&await Promise.all(r[e(422)](t=>t[e(419)]()))}};function St(){const t=["12846YPYFwB","replace","trim","split","590oTyDlG","&lt;","2650BGwpBG","getOwnPropertyDescriptor","number","8382288CWLGoQ","11LqDirk","3002568vilDWw","toLowerCase","6732WiBZUk","push","3115641IwKvwd","toUpperCase","-$1","&amp;","7KKOSny","2162456sBLHcw","filter","202173ylkqDI","endsWith","nodeType","&quot;","length","string","object","&gt;","2vKTDRu","forEach"];return(St=function(){return t})()}function Ct(t){const e=Nt;return t.replace(/-([a-z])/g,(t,n)=>n[e(266)]())}function Nt(t,e){return t-=246,St()[t]}function jt(t){const e=Nt;return null!=t&&typeof t[e(274)]===e(258)}function Mt(t,e){const n=Nt,r=e.split(".");for(let e=0;e<r[n(276)]-1;e++)if(void 0===(t=t[r[e]]))return{target:null,prop:void 0};const o=r.at(-1);return{target:t,prop:o,value:t?.[o]}}function Rt(t,e){const n=Nt;if("string"!=typeof e)return!1;const{target:r,prop:o}=Mt(t,e);if(!r)return!1;const s=Object[n(257)](r,o);return!s||s.writable||s.set}!function(){const t=Nt,e=St();for(;;)try{if(607264==-parseInt(t(272))/1+-parseInt(t(248))/2*(parseInt(t(265))/3)+-parseInt(t(270))/4+parseInt(t(256))/5*(parseInt(t(250))/6)+parseInt(t(269))/7*(parseInt(t(259))/8)+-parseInt(t(263))/9*(parseInt(t(254))/10)+-parseInt(t(260))/11*(-parseInt(t(261))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Lt=Object.freeze({__proto__:null,attributeNameToPropName:Ct,escapeHTML:function(t){const e=Nt;return String(t)[e(251)](/[&<>"']/g,t=>({"&":e(268),"<":e(255),">":e(247),'"':e(275),"'":"&#39;"}[t]))||""},isDOM:jt,isSimpleProperty:Rt,mergeClass:function(t,e){const n=t=>{const e=Nt;return Array.isArray(t)?t:typeof t===e(277)?t[e(253)](/\s+/)[e(271)](Boolean):t&&typeof t===e(246)?Object.entries(t).reduce((t,[n,r])=>{const o=e;return r?t[o(264)](n):t=t[o(271)](t=>t!==n),t},[]):[]},r=[...n(t),...n(e)];return[...new Set(r)]},mergeStyle:function(t,e){const n=t=>{const e=Nt,n={};return typeof t===e(277)?t[e(253)](";")[e(249)](t=>{const r=e,[o,s]=t[r(253)](":");o&&s&&(n[o[r(252)]()]=s.trim())}):t&&typeof t===e(246)&&Object.assign(n,t),n};return{...n(t),...n(e)}},parseTimeToMs:function(t){const e=Nt;return t[e(273)]("ms")?parseFloat(t):t[e(273)]("s")?1e3*parseFloat(t):parseFloat(t)||5e3},propNameToAttributeName:function(t){const e=Nt;return t[e(251)](/([A-Z])/g,e(267))[e(262)]()},reach:Mt,trim:function(t){return t[Nt(251)](/(\r\n|\n|\r)/gm,"\\\n").replace(/"/gm,'\\"')}});function Dt(t,e){return t-=318,Ft()[t]}const Pt=Dt;function Ft(){const t=["prop","$scope","default","cloneNode","values","20BlxsWY","value","$parent","$el","from","cmp","startsWith","var:","4056670KLgtcq","12rFBbqm","propName","dom","name","$error","childNodes","15253749OvBTTr","$innerContext","type","cmpId","11010wpNfdq","slice","bind","inner","util","$context","getAttribute","static","content","getOwnPropertyDescriptors","defineProperties","24884563Nuahih","3090IMSKMk","1878210NXMbAJ","target","$ok","8rJsYTv","getScopeById","$cmp","scope","auto","propNameToAttributeName","50401JXePgq","7188237AEFFEU","def","$cache","12awepjZ","templates","slot","template","$attr"];return(Ft=function(){return t})()}!function(){const t=Dt,e=Ft();for(;;)try{if(991714==-parseInt(t(339))/1*(-parseInt(t(353))/2)+parseInt(t(330))/3*(parseInt(t(362))/4)+-parseInt(t(329))/5*(-parseInt(t(372))/6)+parseInt(t(340))/7+parseInt(t(333))/8*(-parseInt(t(368))/9)+parseInt(t(361))/10+parseInt(t(328))/11*(-parseInt(t(343))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ut={tag:Pt(345),unwrap:!0,mount(t){const e=Pt,n=t.$attr[e(371)]?t[e(332)][e(334)](t[e(347)][e(371)]):t[e(335)],r=n[e(342)].cmp,o=t[e(347)].name||e(350);if(t.$attr.template&&!(t.$attr[e(346)]instanceof HTMLTemplateElement))throw t[e(366)]("SLOT_INVALID_TEMPLATE",null,{name:o,cmpTag:n[e(342)][e(358)][e(341)].tag});const s=t[e(347)][e(346)]||r[e(344)][o],i=t[e(342)][e(358)].templates[e(350)],a=s||i,c=!s;let l=t.$attr[e(336)]||e(337);l===e(337)&&(l=c?e(320):"outer");const u=l===e(320)?n:n[e(355)],f=l===e(320)?t[e(322)]:n[e(322)]||{},p="inner"===l?n:n[e(335)],h={},d=t.$cache.bind;for(const r of Object[e(352)](d)){if(!r[e(365)][e(359)](e(360)))continue;const o=r.propName[e(318)](4),s="let:"+o;let i=n[e(347)][s];if(void 0===i&&a?.[e(323)]&&(i=a[e(323)](s)||a[e(323)](t[e(332)][e(321)][e(338)](s))),null==i)continue;const c=i||o;if(r[e(370)]===e(319))h[c]={get(){const n=e;return t[n(347)][r[n(363)]]},enumerable:!0};else if(r[e(370)]===e(324)){const t=r[e(354)]||o;h[c]={get:()=>Mt(n.$innerContext,t).value,set(r){const o=e,s=Mt(n[o(369)],t);s?.[o(331)]&&(s.target[s[o(348)]]=r)},enumerable:!0}}}const m=t[e(347)].vars||t.$vars,g=Object[e(327)]({},{...Object[e(326)](m),...h});if(a&&a.content[e(367)].length){const n=Array[e(357)](a[e(325)][e(351)](!0)[e(367)]);t.$ok[e(364)].append(t[e(356)],...n.map(n=>{const r=e;return n[r(349)]=t[r(332)][r(336)](n,{$parent:u,$context:f,$cmp:p,$slot:t,$vars:g}),n}))}}};const zt=Kt;function Wt(t,e,n){const r=Kt,o={originalName:t,originalValue:e,modifiers:{},type:r(222),name:t,cmd:e,propName:Ct(t)};if(t[r(162)](r(224)))return o[r(177)]=r(209),o[r(237)]=t[r(155)](3),o[r(183)]=Ct(o[r(237)]),o.cmd=o[r(183)],[o];if(t.startsWith(":")?(o[r(177)]=r(131),t=t.slice(1)):t[r(162)]("!")?(o.type=r(212),t=t[r(155)](1)):t[r(162)]("@")?(o[r(177)]=r(240),t=t[r(155)](1)):t.startsWith(r(215))&&(o.type=r(240),t=t[r(155)]("ok:on:"[r(148)])),!t[r(162)](r(213))){const e=t[r(149)](":");t=e[0];for(let t=1;t<e.length;t++){const n=e[t].split(".");o.modifiers[n[0]]=!(n[r(148)]>1)||n.slice(1)}}if(o.type===r(240))o[r(237)]=t,o[r(183)]=Ct(o[r(237)]),o.cmd=e||o.propName;else if("static"!==o.type&&(o[r(237)]=t,o[r(183)]=Ct(o[r(237)]),o[r(161)]=e||o.propName,(o.name===r(145)||"style"===o.name)&&(o.initialValue=n.getAttribute(o[r(237)])||""),o[r(177)]===r(212))){o[r(183)]=n[r(177)]===r(174)?"checked":r(202),o[r(237)]="checkbox"===n[r(177)]?r(150):r(202);const t={checkbox:r(226),number:r(203),range:r(203)},e=r(179)+Object.entries(t)[r(190)](([t,e])=>r(232)+t+r(146)+e)[r(221)](" : ")+r(175);return[o,{...o,type:r(240),name:r(189),cmd:r(167)+o[r(161)]+r(200)+e}]}return[o]}function Bt(t,e,n=t[zt(196)],r=t[zt(204)]){"event"===e[zt(177)]?Vt(t,e,n):function(t,e,n,r){const o=zt;if(r[e.propName]=e[o(202)],e[o(237)]===o(145)){const r=t[o(142)][o(139)][o(170)](e[o(236)],e[o(202)]);n[o(230)](o(145),r[o(221)](" "))}else if(e.name===o(180)){const r=t.$ok.util.mergeStyle(e[o(236)],e[o(202)]);for(let[t,e]of Object[o(194)](r))t[o(162)]("--")?n[o(180)][o(197)](t,e):n[o(180)][t]=e}else{if(typeof e.value===o(173))return void(e[o(237)].startsWith("on")&&(n[e[o(237)]]=e[o(202)]));const t=function(t,e){const n=zt;let r=t;for(;r;){const t=Object.getOwnPropertyDescriptor(r,e);if(t)return t;r=Object[n(201)](r)}return null}(n,e[o(183)]);if(e[o(183)]in n&&t&&(!0===t[o(154)]||typeof t.set===o(173)))return n[e.propName]=e.value,void("boolean"==typeof n[e[o(183)]]?e.value?n[o(230)](e[o(237)],""):n[o(158)](e[o(237)]):null===e[o(202)]||void 0===e.value?n[o(158)](e.name):n[o(230)](e[o(237)],e[o(202)]));e[o(237)]&&"object"!=typeof e[o(202)]&&n[o(230)](e[o(237)],e[o(202)])}}(t,e,n,r)}function Kt(t,e){return t-=131,Ht()[t]}function Ht(){const t=["watch","()=>","log","originalName","mergeClass","remove_bind_attributes","includes","function","checkbox"," : $el.value;\n })()","$ext","type","allow","(() => {\n const t = $el.type;\n return ","style","ctrlKey","$fn","propName","$error","bubble","3374652sIERRp","once","events","input","map","config","14Mqcgei","addEventListener","entries","push","$el","setProperty","shiftKey","off"," = ","getPrototypeOf","value","Number($el.value)","$attr","$context","_debounce","2666094xRteBr","originalValue","spread","$watch","default","twoway","var",'" because "',"ok:on:","_debounceDelay","9cDZRNy","meta","alt","2975870uQrjyZ","join","static","find","...","852348HgCXky","$el.checked","metaKey","15yByXMM","removeEventListener","setAttribute",'" is not writable.','t === "',"4QhZCQy","33CFvllf","toLowerCase","initialValue","name","$event","unmount","event","bind","key","modifiers","247994vwnNcr","charCodeAt","call","attributes","2653017xZSBRI","util","isArray","ctrl","$ok","transform","preventDefault","class",'" ? ',"keys","length","split","checked","debug","_debounced","watcher","writable","slice","65hyrMxb","6479464CZKsvc","removeAttribute","debounce","shift","cmd","startsWith","some","DUPLICATE_EVENT","listener"];return(Ht=function(){return t})()}function Vt(t,e,n){const r=zt;e[r(165)]&&n.removeEventListener(e.name,e[r(165)]),e.listener=(...o)=>{const s=r;if(e.modifiers.debounce){if(!e._debounced)return clearTimeout(e[s(206)]),void(e._debounce=setTimeout(()=>{const t=s;e._debounced=!0,e[t(165)](...o)},e[s(216)]));e[s(152)]=!1}const i=o[0];if(t[s(238)]=i,e[s(237)][s(162)]("key")&&!function(t,e){const n=zt;return!e[n(132)]||(Array[n(140)](e[n(132)])?e[n(132)]:[e[n(132)]])[n(163)](e=>function(t,e){const n=zt,r=e.toLowerCase()[n(149)]("+"),o={ctrl:r[n(172)](n(141)),shift:r[n(172)]("shift"),alt:r[n(172)](n(219)),meta:r.includes("meta"),key:r[n(223)](t=>![n(141),n(160),n(219),n(218)].includes(t))};return!!t[n(181)]===o[n(141)]&&!!t[n(198)]===o[n(160)]&&!!t.altKey===o[n(219)]&&!!t[n(227)]===o[n(218)]&&t[n(132)].toLowerCase()===(o[n(132)]||"")[n(235)]()}(t,e))}(i,e.modifiers))return;const a=e.fn(t);let c;return typeof a===s(173)&&(c=a[s(136)](t[s(205)],...o)),i instanceof Event&&(e[s(133)][s(211)]||e[s(133)][s(185)]||i.stopPropagation(),e[s(133)][s(211)]||e[s(133)][s(178)]||i[s(144)]()),delete t[s(238)],e[s(133)][s(187)]&&n[s(229)](e.name,e[s(165)]),c},t[r(176)](r(239),()=>n[r(229)](e.name,e[r(165)])),n[r(193)](e[r(237)],e.listener)}function qt(t,e,n=t[zt(196)],r=t.$attr,o=null){const s=zt;if(!o&&(o=Wt(e,n.getAttribute(e),n)[0]),o[s(177)]===s(209)){let i=t[s(182)](o.cmd);typeof i===s(173)&&(i=i[s(136)](t[s(205)],t));const a=[];for(let c of Object[s(147)](i)){const i=Wt(":"+c,o[s(161)]+"['"+c+"']",n);for(let o of i)a[s(195)](...qt(t,e,n,r,o))}return a}if("static"===o[s(177)])return r[o[s(183)]]=o[s(208)],[o];if(o[s(177)]===s(212)&&!Rt(t[s(205)],o[s(161)]))throw new Error('Two-way binding failed for "'+o[s(237)]+s(214)+o[s(161)]+s(231));return o.fn=t.$fn(o.cmd),o[s(133)][s(159)]&&(o[s(216)]=parseInt(o[s(133)][s(159)])||0),o[s(153)]=t[s(210)](()=>{const e=s;if(o.fn=t[e(182)](o[e(161)],{debug:o[e(133)][e(151)],log:o[e(133)][e(168)]}),o[e(177)]!==e(240)){let n=o.fn(t);return o[e(143)]&&(n=o[e(143)](t,n)),o[e(202)]=n,n}},()=>{const e=s;o.watcher&&(o[e(153)][e(166)](),Bt(t,o,n,r))},{warnOnEmptyWatch:s(199)}),Bt(t,o,n,r),[o]}!function(){const t=Kt,e=Ht();for(;;)try{if(593033==-parseInt(t(134))/1*(parseInt(t(233))/2)+parseInt(t(138))/3+parseInt(t(225))/4*(parseInt(t(228))/5)+-parseInt(t(207))/6*(-parseInt(t(192))/7)+-parseInt(t(157))/8*(parseInt(t(217))/9)+parseInt(t(220))/10*(parseInt(t(234))/11)+-parseInt(t(186))/12*(parseInt(t(156))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Jt={hasBindingsOrEvents:function(t){const e=zt;for(let n=0;n<t[e(137)][e(148)];n++){const r=t[e(137)][n].name[e(135)](0);if(58===r||64===r)return!0}return!1},bind:function(t,e=t[zt(196)],n=t.$attr){const r=zt,o={events:{},bind:{}};for(const{name:s,value:i}of[...e[r(137)]]){const a=Wt(s,i,e);for(const i of a){const a=qt(t,s,e,n,i);for(const n of a){const s=n[r(177)]===r(240)?r(188):r(131),i=o[s][n[r(183)]];if(i){if(s===r(188))throw t[r(184)](r(164),null,{name:n[r(237)],scope:t});n.type!==r(222)&&i.type!==r(222)&&(console.warn('[ok] Duplicate bind "'+n.propName+'", replacing'),i[r(153)]?.stop?.())}n[r(177)]!==r(222)&&t.$ok[r(191)][r(131)][r(171)]&&e[r(158)](n[r(169)]),o[s][n[r(183)]]=n}}}return o},classifyAttr:Wt,bindAttribute:qt,handleEvent:Vt};const Gt=Xt;function Xt(t,e){return t-=302,Zt()[t]}function Zt(){const t=["filter","12026840ATLVqX","$error","1731xCnaxP","map","130fOXTPF","NO_VALUE","DEFAULT","tagName","let:value","$innerContext","bindAttribute","21512voeLyf","remove","value","attr","from","selectedValue","switch","matchIndex","scope","$cache","default","nodes","$ok","cases","$scope","find","hasAttribute","run","10cUhfRs","7701474YvObMa",":value","content","selectedCase","10IcluLW","CASE","2611026vTYuPy","$attr","cloneNode","<fragment :nodes/>","1162338GUmwlk","childNodes","$setInnerVars","287133cWwRXq","templates","cmp","push","bind","findIndex","static"];return(Zt=function(){return t})()}!function(){const t=Xt,e=Zt();for(;;)try{if(815084==parseInt(t(350))/1*(-parseInt(t(352))/2)+parseInt(t(337))/3+parseInt(t(308))/4*(-parseInt(t(331))/5)+-parseInt(t(327))/6+parseInt(t(340))/7+parseInt(t(348))/8+-parseInt(t(333))/9*(-parseInt(t(326))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Yt={tag:Gt(314),unwrap:!0,attr:{"let:value":{type:Gt(346),empty:Gt(310)},value:{type:Gt(344),alias:[""]}},prepare(t){const e=Gt,n=Array[e(312)](t[e(317)][e(342)][e(341)][e(318)][e(329)][e(338)]),r=n[e(323)](t=>t[e(304)]===e(303)),o=n[e(347)](t=>t.tagName===e(332)),s=t[e(317)][e(314)]??={matchIndex:null,cases:[],default:r?Array[e(312)](r[e(338)]):[]};for(let n of o){const r=t[e(320)].proxy({}),o=n.getAttribute(":value")?e(328):e(310);if(!o||!n[e(324)](o))throw t[e(349)](e(302),new Error("No value specified for case"),{scope:t});const i=Jt[e(307)](t,o,n,r);s.cases[e(343)]({attr:r,bindings:i,nodes:Array[e(312)](n[e(338)])}),n.remove()}r?.[e(309)](),e(305)in t[e(334)]&&t[e(339)]({[t[e(334)]["let:value"]]:{get:()=>t[e(306)][e(313)]}})},context:t=>({nodes:[],selectedCase:null,get selectedValue(){const e=Xt;return this[e(330)]?this[e(330)][e(311)][e(310)]:t.$attr.value}}),mount(t){const e=Gt,n=t[e(317)][e(314)];t.$watch(()=>[t[e(334)].value,...n[e(321)].map(t=>t.attr[e(310)])],()=>{const r=e,o=t[r(334)][r(310)],s=n[r(321)][r(345)](t=>void 0===o?!!t[r(311)].value:t.attr[r(310)]===o);if(s===n[r(315)])return;this[r(330)]=n[r(321)][s],n.matchIndex=s;const i=(this[r(330)]?this[r(330)][r(319)]:n[r(318)])||[];this[r(319)]=i[r(351)](e=>{const n=r,o=e[n(335)](!0);return o[n(322)]=t.$ok[n(316)](o,{$parent:t,$context:t.$context}),o})})[e(325)]()},template:Gt(336)};function Qt(t,e){return t-=438,te()[t]}function te(){const t=["1665629DHMDri","getOwnPropertyDescriptor","ownKeys","844251VCgDNS","7550970jAbSyV","3697260cPdqGb","$context","3BbFxkL","from","3442952pfIgdi",'<slot scope="inner"/>',"cmd","prop","103419AKcCzg","create","$attr","propName","get","9034000YPctat","bind","set","target","1592vykiBm"];return(te=function(){return t})()}const ee=Qt;!function(){const t=Qt,e=te();for(;;)try{if(969443==-parseInt(t(457))/1+-parseInt(t(440))/2*(-parseInt(t(438))/3)+-parseInt(t(459))/4+parseInt(t(449))/5+parseInt(t(458))/6+parseInt(t(454))/7+parseInt(t(453))/8*(-parseInt(t(444))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ne={tag:"context",unwrap:!0,context(t){const e=Qt,n=""in t[e(446)],r=n?t.$attr[""]??{}:Object[e(445)](t.$context),o={};for(const s in t[e(446)]){if(""===s)continue;const i=t.$cache[e(450)][s];Rt(r,i.cmd)?Object.defineProperty(o,i[e(447)],{get:()=>t.$attr[s],set:o=>{const s=e,a=Mt(n?r:t[s(460)],i[s(442)]);a[s(452)][a[s(443)]]=o},enumerable:!0,configurable:!0}):Object.defineProperty(o,i[e(447)],{get:()=>t[e(446)][s],enumerable:!0,configurable:!0})}return new Proxy(o,{get:(t,n,o)=>n in t?Reflect[e(448)](t,n,o):r?.[n],set(t,n,o,s){const i=e;return Object[i(455)](t,n)?.[i(451)]?Reflect[i(451)](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(456)](r||{}),...Reflect[n(456)](t)]);return Array[n(439)](o)},getOwnPropertyDescriptor(t,n){const o=e;return Reflect.getOwnPropertyDescriptor(t,n)||Reflect[o(455)](r||{},n)}})},template:ee(441)};function re(t,e){return t-=350,se()[t]}const oe=re;function se(){const t=["2001320GfQADn","var","564875ZcBIAF","3fUZGgO","951718HrNXMX","144UrLxPI","1393750csMVSa",'<slot :vars="$vars"/>',"$vars","$attr","12607oQcSII","2834199aCplbv","5063216LpEZIb","8mfnLUM"];return(se=function(){return t})()}!function(){const t=re,e=se();for(;;)try{if(475402==parseInt(t(354))/1+parseInt(t(356))/2*(-parseInt(t(355))/3)+-parseInt(t(351))/4*(-parseInt(t(352))/5)+-parseInt(t(357))/6*(-parseInt(t(362))/7)+-parseInt(t(350))/8+parseInt(t(363))/9+-parseInt(t(358))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ie={tag:oe(353),unwrap:!0,prepare(t){const e=oe,n={};for(const r in t[e(361)])n[r]={get:()=>t[e(361)][r]};t.$setInnerVars(n,t[e(360)])},template:oe(359)};const ae=le;!function(){const t=le,e=ue();for(;;)try{if(771708==parseInt(t(460))/1*(parseInt(t(426))/2)+parseInt(t(428))/3*(-parseInt(t(464))/4)+parseInt(t(436))/5+-parseInt(t(474))/6+-parseInt(t(432))/7*(-parseInt(t(448))/8)+-parseInt(t(449))/9+parseInt(t(423))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ce={tag:ae(412),unwrap:!0,context:t=>({get tag(){return t.$attr.tag},get import(){const e=le;return t[e(437)][e(429)]},nodes:[],async update(){const e=le;try{let n;if(t[e(437)][e(429)]){const r={import:t.$attr[e(429)]};void 0!==t[e(437)][e(433)]&&(r[e(433)]=t[e(437)][e(433)]);const o=(t[e(413)]?.[e(455)][e(430)]||t.$cmp?.[e(455)][e(430)])?.def[e(440)];n=t[e(452)][e(451)][e(467)](r,{parentId:t.$cmp?.[e(455)][e(430)][e(418)].id,override:!0,base:t[e(452)].componentRegistry[e(415)]("./",o)})}else if(n=t[e(452)][e(451)].getRegistration(t[e(437)][e(433)],t[e(446)]),!n)throw t[e(416)](e(453),null,{tag:t[e(437)][e(433)]});await t.$ok[e(451)][e(438)](n,t);const r=n[e(447)],o=t[e(445)]?.[e(463)]||globalThis.document,s=o[e(420)](e(469)),i=o[e(420)](r[e(433)]);i.$scope=t.$ok.scope(i,{$parent:t,$context:t[e(441)],$attr:t.$attr[e(442)]??Object[e(414)](Object.entries(t[e(437)])[e(431)](([t])=>![e(433),e(429),e(442)][e(454)](t))),$cmp:t});for(const n of Object.values(t[e(455)][e(466)]))i[e(435)](e(421)+n[e(470)],e(450)+n.propName+e(427));for(const n of Object[e(434)](t.$cache[e(430)][e(443)]))i[e(473)](n);for(let[n,r]of Object[e(457)](t[e(455)].bind))n!==e(429)&&n!==e(433)&&(r[e(422)]===e(417)?i[e(435)](r.originalName,r[e(471)]):i[e(435)](r.originalName,e(439)+n+"']"));i[e(419)][e(458)](t[e(441)]),s.append(i),this[e(424)]=[s]}catch(n){const r=t[e(416)](e(461),n,{tag:t[e(437)].tag,import:t[e(437)][e(429)],message:"Failed to load component <"+(t[e(437)][e(433)]||t.$attr.import)+">"}),o=(t[e(445)]?.ownerDocument||globalThis[e(456)])[e(420)](e(425));o[e(419)]=t[e(452)][e(459)](o,{$attr:{error:r,retry:()=>{this[e(472)]()}}}),this.nodes=[o],t.$log[e(465)]([],r),t[e(468)](e(462),n)}}}),template:"<fragment :nodes/>",async mount(t){const e=ae;t.$resolveCmp=t[e(446)],await this[e(472)]()},mounted(t){const e=ae;t[e(444)](()=>[this[e(433)],this[e(429)]],async()=>{const t=e;await this[t(472)]()})}};function le(t,e){return t-=412,ue()[t]}function ue(){const t=["$cmp","ready","680vjlpqA","13300029BfYfzu","$cmp.$cache.events['","componentRegistry","$ok","COMPONENT_TAG_NOT_FOUND","includes","$cache","document","entries","$setInnerContext","scope","31549vqdNfy","COMPONENT_LOAD_FAILED","fail","ownerDocument","16ZVwyrT","error","events","register","$dispatch","crash-boundary","name","originalValue","update","append","2433000wTsepB","component","$parent","fromEntries","resolveImportPath","$error","static","def","$scope","createElement","ok:on:","type","15708300ufErQR","nodes","crash-boundary-default","58xMukvi","'].listener","28884XpAONO","import","cmp","filter","5257bpKxJY","tag","values","setAttribute","719575FmEVjY","$attr","activate","$cmp.$attr['","url","$context","attr","templates","$watch","$el"];return(ue=function(){return t})()}const fe=he;function pe(){const t=["mountedOrAborted","17162704maWRwG","()=>retry()","boundary_component","20jrGXxD","component","crash","appendChild","createElement","init","$el","$__unmount__$","slot","scope","1234437mvBRWi","config","256fIVjOZ","$state","dom","ownerDocument","$attr","99vjJjLc","error","304068fHYAAd","$setInnerVars","4hlJcEc","watch","267438nMeVgI",":var:error","append","CRASH_BOUNDARY","dispatchEvent","$scope",":retry",":error","$ok","document","4qDFWmt","$innerContext","21448uHqbrs","crash-boundary","39177SXqjbY","$destroyChildren","272852zsbOXf","$log","$watch","1150lEKwfX","setAttribute"];return(pe=function(){return t})()}function he(t,e){return t-=323,pe()[t]}!function(){const t=he,e=pe();for(;;)try{if(377093==parseInt(t(356))/1*(-parseInt(t(350))/2)+parseInt(t(327))/3*(parseInt(t(338))/4)+parseInt(t(365))/5*(-parseInt(t(340))/6)+parseInt(t(352))/7*(parseInt(t(329))/8)+parseInt(t(354))/9*(-parseInt(t(359))/10)+parseInt(t(334))/11*(-parseInt(t(336))/12)+parseInt(t(362))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var de={tag:fe(353),unwrap:!0,initOwnChildren:!0,prepare(t){const e=fe;t[e(337)]({$errorBoundary:{get:()=>t[e(351)]}})},context:t=>({error:null,async crash(e){const n=he;if(this[n(335)]=e,"mounting"===t[n(330)]&&(await t.$lifecycle[n(361)],t[n(324)]))return;await t[n(355)](!0);const r=t[n(333)][n(366)]||t.$ok[n(328)][n(367)][n(364)]||"crash-boundary-default",o=t.$el?.[n(332)]||globalThis[n(349)],s=o[n(369)](r);s[n(360)](n(347),n(335)),s[n(360)](n(346),"retry");const i=o.createElement(n(325));i[n(360)]("name",n(335)),i[n(360)](n(341),n(335)),i.setAttribute(":var:retry",n(363)),i[n(368)](s),i[n(345)]=t[n(348)][n(326)](i,{$parent:t,$cmp:t}),t[n(348)].dom.append(t[n(323)],i),await t[n(348)][n(370)](i),t[n(357)].error([n(343)],e),t[n(323)][n(344)](new CustomEvent(n(367),{detail:this}))},async retry(){const e=he;await t[e(355)](!0),this.error=null;const n=(t[e(323)]?.[e(332)]||globalThis[e(349)])[e(369)](e(325));n[e(345)]=t[e(348)].scope(n,{$parent:t,$cmp:t}),t.$ok[e(331)][e(342)](t[e(323)],n),t.$ok[e(370)](n),await n[e(345)].$lifecycle[e(361)]}}),async mount(){await this.retry()},mounted(t){const e=fe;t[e(333)][e(339)]&&t[e(358)](()=>t[e(333)].watch,()=>this[e(335)]&&this.retry())}};function me(t,e){return t-=266,ye()[t]}var ge=me;function ye(){var t=["3963448qqYSFL","rootCauseMessage","2274hQWlRZ","Something went wrong","102232VuPnOH","2958568UhrsZs","1239XwHEoK","error","3437586Vjezpj",'<div><if :="$props.retry"><button class="retry" @click="$props.retry()">↻</button></if><strong>{{ $props.error?.code }}</strong><pre>{{ errorMessage }}</pre></div>',"$attr","1762600aPLrtd","[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}","817428zogDnf","45FZTWgw"];return(ye=function(){return t})()}!function(){for(var t=me,e=ye();;)try{if(874183==parseInt(t(275))/1+parseInt(t(276))/2+parseInt(t(279))/3+parseInt(t(269))/4+parseInt(t(267))/5+-parseInt(t(273))/6*(-parseInt(t(277))/7)+-parseInt(t(271))/8*(parseInt(t(270))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var we={tag:"crash-boundary-default",attr:{error:{type:Object,default:null}},context:t=>({get errorMessage(){var e=me;return t[e(266)][e(278)]?.[e(272)]||t.$attr[e(278)]?.message||e(274)}}),template:ge(280),style:ge(268)};const Ie=be;function be(t,e){return t-=460,$e()[t]}function $e(){const t=["singleton","reason","2144541AGlBIj","emit","_ok_handled","addEventListener","27639MPedgV","528664Gudjxs","crash-service","silent","1568280fOLddT","shared","crash","350278dGTfnm","error","config","errors","close","_events","push","7139880yCtlEl","28ntIbsU","unhandledrejection","cause",'<if :="error"><component :tag="$ok.config.crash.component || \'crash-fatal\'" :error @close/></if>',"events","indexOf","splice","$vars","6idCdaQ","[tag]{z-index:1000;position:absolute;left:0;top:0;right:0;bottom:0}","mode","throw","toggle","function","$ok","Emitter","bind","1039070avKMYd","length","scope"];return($e=function(){return t})()}function ve(t){const e=be;let n=t,r=null;for(;n;)n.ok&&(r=n.ok),n=n[e(474)];return r}!function(){const t=be,e=$e();for(;;)try{if(211705==-parseInt(t(464))/1+-parseInt(t(499))/2+parseInt(t(498))/3*(-parseInt(t(472))/4)+-parseInt(t(489))/5*(-parseInt(t(480))/6)+-parseInt(t(494))/7+parseInt(t(461))/8+parseInt(t(471))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ke={tag:Ie(500),register(t){const e=Ie;t[e(466)].crash[e(482)]!==e(483)&&typeof globalThis.addEventListener===e(485)&&(globalThis[e(497)](e(473),t=>{const n=e,r=ve(t.reason);r&&(r.shared.crash.crash(t[n(493)]),t.preventDefault())}),globalThis[e(497)](e(465),t=>{const n=e,r=ve(t[n(465)]);r?.[n(462)][n(463)][n(463)](t.error)})),t.shared[e(463)]=t.proxyInstance.proxy({errors:[],get events(){const n=e;return this[n(469)]=this[n(469)]??t.OK[n(487)][n(488)](this),this[n(469)]},get error(){const t=e;return this.errors.length,this[t(467)][0]},async close(n){const r=e,o=this[r(467)][r(477)](n);o>-1&&(this[r(467)][r(478)](o,1),this[r(476)].emit(r(468),n)),!this.errors[r(490)]&&await t[r(462)][r(492)][r(484)]("crash-service",!1)},async crash(n){const r=e,o=function(t){const e=be;let n=t,r=null;for(;n;){const t=n?.[e(491)];t?.[e(479)]?.$errorBoundary&&(r=t?.[e(479)].$errorBoundary),n=n[e(474)]}return r}(n);if(o)return o[r(463)](n);if("throw"===t[r(466)][r(463)][r(482)])throw n;console[r(465)](n),n[r(496)]||(n[r(496)]=!0,t[r(495)](r(465),n),this[r(476)][r(495)]("crash",n),this[r(467)][r(470)](n),t[r(466)].crash[r(482)]!==r(460)&&await t.shared[r(492)][r(484)](r(500),!0))}})},context:t=>({get error(){const e=be;return t[e(486)][e(462)][e(463)][e(465)]},async close(){const e=be;await t[e(486)][e(462)].crash[e(468)](this[e(465)])}}),template:Ie(475),style:Ie(481)},Oe=_e;function _e(t,e){return t-=377,Ae()[t]}!function(){for(var t=_e,e=Ae();;)try{if(779846==parseInt(t(388))/1*(-parseInt(t(381))/2)+-parseInt(t(389))/3+parseInt(t(387))/4+parseInt(t(380))/5+parseInt(t(379))/6+-parseInt(t(391))/7+parseInt(t(382))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ee={tag:Oe(384),context:t=>({get error(){var e=_e;return t[e(378)][e(377)]||t[e(385)][e(386)].crash.error||{message:e(383)}}}),template:Oe(390)};function Ae(){var t=['<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>',"3310188JUBOdw","error","$attr","280824AafruY","6770790siutLF","764VqsrXZ","4714304oDrvAW","We're sorry","crash-fatal","$ok","shared","2118884nfDNWu","481AKhyGf","3250497uMnKXr"];return(Ae=function(){return t})()}const Te=xe;function xe(t,e){return t-=482,Ce()[t]}!function(){const t=xe,e=Ce();for(;;)try{if(388988==parseInt(t(492))/1+-parseInt(t(488))/2*(parseInt(t(493))/3)+-parseInt(t(498))/4+-parseInt(t(484))/5*(parseInt(t(509))/6)+parseInt(t(502))/7*(-parseInt(t(505))/8)+-parseInt(t(499))/9*(-parseInt(t(507))/10)+parseInt(t(491))/11*(parseInt(t(486))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Se={tag:Te(506),register(t){const e=Te;t[e(501)][e(482)]=t[e(483)][e(503)]({singletons:{},async toggle(n,r=null,{container:o,registration:s}={}){const i=e;o??=t[i(490)][i(482)].container??t[i(490)][i(487)];const a=this.singletons[n]??={el:null},c=r??!a.el;if(c&&!a.el){const e=t.config[i(495)][i(504)](n);if(o[i(497)](e),a.el=e,s){const n=s[i(496)]??s[i(494)];e[i(489)]=t[i(508)](e),e[i(489)].$resolveDef=n}await t[i(500)](e)}else!c&&a.el&&(delete this[i(485)][n],await t.destroy(a.el,!0),a.el=null);return a.el}})}};function Ce(){const t=["createElement","3148816mCGHKw","singleton-service","1420GGEenN","scope","1448460OfnZTi","singleton","proxyInstance","5XaqtCq","singletons","7826844TzKcDq","body","4XlgRMZ","$scope","config","11ymICeC","721698lrCmUA","734121QsygHz","raw","document","ready","appendChild","2230964XWstyT","44190qigwXr","init","shared","7AYuiMO","proxy"];return(Ce=function(){return t})()}const Ne=Me;function je(){const t=["startsWith","1216887OQGZFI","1353447XNSkzm","setAttribute","repeat","outerHTML",":of","let:key","scope","$lifecycle","default","includes","BODY","$cache","let:","value","each","tagName","ownerDocument","childNodes","div","10gsCuUg","mounted","let:item","$parent","1266jMenlh","append","2514vgtUyA","document","REPEAT","$el","dom","8815192eJzFdr","696624MqpIsb","305jzHHbx","removeAttribute","7382172mDEVGv","$ok","name","35228QFozOw","cmp","cloneNode","content","templates"];return(je=function(){return t})()}function Me(t,e){return t-=181,je()[t]}!function(){const t=Me,e=je();for(;;)try{if(794856==parseInt(t(215))/1+-parseInt(t(207))/2*(-parseInt(t(209))/3)+parseInt(t(221))/4*(-parseInt(t(216))/5)+parseInt(t(218))/6+-parseInt(t(183))/7+-parseInt(t(214))/8+-parseInt(t(184))/9*(-parseInt(t(203))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Re={tag:Ne(186),unwrap:!0,async parse(t){const e=Ne,n=(t[e(212)]?.[e(200)]||globalThis[e(210)]).createElement(t.$parent[e(212)][e(199)]===e(194)?e(202):t[e(206)][e(212)].tagName??e(202));n.setAttribute("as",e(198));for(let r of t.$el.attributes)["as"][e(193)](r[e(220)])||([e(188),":"][e(193)](r.name)||r.name[e(182)](e(196)))&&n[e(185)](r.name,r[e(197)]);t.$el.tagName===e(211)?n[e(208)](...t[e(195)][e(222)][e(181)][e(192)][e(224)][e(223)](!0)[e(201)]):(n.innerHTML=t[e(212)][e(187)],n[e(201)][0][e(217)]("as"),n.childNodes[0][e(217)](e(205)),n[e(201)][0][e(217)](e(189)),n[e(201)][0][e(217)](e(188)),n[e(201)][0][e(208)](...t.$cache[e(222)][e(181)][e(192)][e(224)].cloneNode(!0).childNodes)),t.$ok[e(213)].insertAfter(t[e(206)][e(212)],n,t[e(212)]);const r=t[e(219)][e(190)](n,{$parent:t[e(206)]});t[e(219)].init(n),await r[e(191)][e(204)],await t.$destroy(!0)},mounted(){}};const Le=Pe;function De(){const t=["append","1283270qiHNyp","componentRegistry","div","attachShadow","207WltgpI","templates","$vars","3079100zuESXZ","shadow","4274808dmmHTH","mounted","cmp","all","default","dom","push","1505946KUVrst","6stypTN","832082ructpJ","21wvGaOQ","ownerDocument","setAttribute","$init","3208048orKDjP","1509260ygqjej","createNodes","create","$ok","$el","createElement","config"];return(De=function(){return t})()}function Pe(t,e){return t-=106,De()[t]}!function(){const t=Pe,e=De();for(;;)try{if(955226==-parseInt(t(133))/1+parseInt(t(107))/2+-parseInt(t(131))/3+parseInt(t(106))/4+parseInt(t(122))/5*(-parseInt(t(132))/6)+parseInt(t(134))/7*(-parseInt(t(124))/8)+parseInt(t(119))/9*(parseInt(t(115))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Fe={tag:Le(123),unwrap:!0,async mount(t){const e=Le,n=Object[e(109)](t[e(110)]),r=(t[e(111)][e(135)]||globalThis.document)[e(112)](e(117));r[e(136)]("data-ok-shadow-container","");const o=r[e(118)]({mode:"open"});n[e(113)]={...t.$ok[e(113)],document:o,head:o,body:o},n[e(116)]=Object[e(109)](t[e(110)][e(116)]),n.componentRegistry.ok=n;const s=n[e(108)](t.$cache[e(126)][e(120)][e(128)].innerHTML);o[e(114)](...s),t[e(111)].$shadow=o,t.$ok[e(129)].append(t[e(111)],r);const i=[];for(const r of s)r.$scope=n.scope(r,{$parent:null,$context:t.$context,$vars:t[e(121)]}),r.$scope[e(137)](),i[e(130)](r.$scope.$lifecycle[e(125)]);await Promise[e(127)](i)},unmount(t){t[Le(111)].$shadow=null}},Ue=We;!function(){for(var t=We,e=Be();;)try{if(358333==parseInt(t(229))/1*(-parseInt(t(232))/2)+-parseInt(t(220))/3*(-parseInt(t(223))/4)+-parseInt(t(228))/5+-parseInt(t(222))/6*(parseInt(t(230))/7)+-parseInt(t(231))/8+-parseInt(t(227))/9*(-parseInt(t(226))/10)+parseInt(t(224))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ze={tag:Ue(225),unwrap:!0,mount(t){t[Ue(221)]()}};function We(t,e){return t-=220,Be()[t]}function Be(){var t=["596460QaQfUA","1038861HzVTUB","$ignoreChildren","3793710khbOda","8NPEund","8226790HwhHiW","ignore","56090tJZENS","162TWbifa","227640ZaqSZY","1uufiJp","7DmTWYM","1656400aPYstz"];return(Be=function(){return t})()}function Ke(t,e){return t-=463,He()[t]}function He(){var t=["927aiNqeD","1164mGYLWE","6456yCoYLP","5615720zjqFMw","4qPYaJu","9031DCDFEr","7MjoXee","4131448LHfVkF","9envIgq","691374MomVQo","705380aBOyfS","1396940lYsxfW"];return(He=function(){return t})()}!function(){for(var t=Ke,e=He();;)try{if(433320==parseInt(t(466))/1+-parseInt(t(469))/2*(parseInt(t(468))/3)+parseInt(t(472))/4*(parseInt(t(467))/5)+-parseInt(t(465))/6*(-parseInt(t(474))/7)+parseInt(t(463))/8*(parseInt(t(464))/9)+-parseInt(t(471))/10+parseInt(t(473))/11*(-parseInt(t(470))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ve={ifCmp:dt,fragment:wt,each:xt,slot:Ut,switchCmp:Yt,context:ne,varCmp:ie,component:ce,repeat:Re,crashService:ke,crashBoundary:de,crashBoundaryDefault:we,crashFatal:Ee,singletonService:Se,shadow:Fe,ignore:ze};const qe=Je;function Je(t,e){return t-=357,Ge()[t]}function Ge(){const t=["5633934IHGKDb","range","replaceWith","size","children","$owner","splice","defaultCommentMarker","document","Cannot splice into destroyed handle","end","31503olblKh","createTextNode","5415685EAOIVZ","4112jFqrUY","tagName","Already unwrapped","start","push","50ziBzKo","parentNode","lastChild","isDestroyed","Cannot restore a destroyed handle","defaultEmptyTextMarker","67267PihnnJ","insertBefore","add","272mIXcdD","10467AiAoPI","restore","ownerDocument","nextSibling","placeholder","$handle","isConnected","6RwjUMm","firstChild","nodes","remove","6729268LjFtYm","length","indexOf","firstRealNode","toUpperCase","1392265jCUSoD","$ignore"];return(Ge=function(){return t})()}function Xe(t,e){const n=Je;return(t[n(393)]||globalThis[n(370)])[n(374)]("")}function Ze(t,e){const n=Je;for(const r of t){if(r[n(367)]&&r[n(367)]!==e){const t=r[n(367)][n(396)];if(t){const e=t[n(400)].indexOf(r);-1!==e&&t[n(368)](e,1)}}r[n(367)]=e}}function Ye({marker:t=Xe}={}){const e={unwrap(n){const r=Je;if(n.$handle)throw new Error(r(378));const o=function(t,e,n){const r={el:t,nodes:[],placeholder:null,isDestroyed:!1,get start(){return this.nodes[0]||this.placeholder},get end(){const t=Je;return this[t(400)][this[t(400)].length-1]||this[t(395)]},splice(t,r,...o){const s=Je;if(this[s(384)])throw new Error(s(371));if(0===o[s(403)]&&0===r)return[];const i=this.nodes[t];let a=this[s(372)].$handle?n[s(383)](this.end):this.end,c=a[s(382)];i?(a=i.$handle?n[s(399)](i):i,a[s(396)]&&(a=n[s(399)](a))):a=a[s(394)];const l=this.nodes.splice(t,r,...o);if(Ze(o,this.el),0===this[s(400)].length)this.placeholder||(this[s(395)]=e(this.el,s(395)),this[s(395)][s(361)]=!0,this.placeholder[s(367)]=this.el,c&&c[s(388)](this[s(395)],a));else{const t=a||this.placeholder?.nextSibling||null;for(const e of o)if(e[s(396)]){e.$owner=this.el;for(const n of e.$handle[s(400)])n[s(367)]=e,c?.[s(388)](n,t)}else c?.[s(388)](e,t);this.placeholder?.parentNode&&(this[s(395)][s(401)](),delete this[s(395)][s(367)],this[s(395)]=null)}for(const t of l){if(t[s(396)])for(const e of n[s(363)](t))e.parentNode&&e[s(401)]();else t[s(382)]&&t[s(401)]();t[s(367)]=null}return l},destroy(){const t=Je;this[t(384)]=!0,this[t(395)]?.[t(382)]&&this.placeholder[t(401)](),delete this[t(395)]?.[t(367)],this[t(395)]=null}};return t.$handle=r,r}(n,t,e),s=new Set;let i=n[r(399)];for(;i;){if(i[r(367)]&&i[r(367)]!==n){let t=i.$owner;for(;t?.[r(367)];)t=t[r(367)];s[r(389)](t),i=t[r(396)]?.[r(372)][r(394)];continue}i.$handle?(s[r(389)](i),i=i.$handle[r(372)]?.nextSibling):(s.add(i),i=i[r(394)])}return 0===s[r(365)]?(o.placeholder=t(n,r(395)),o[r(395)].$ignore=!0,o[r(395)].$owner=n,n[r(364)](o[r(395)]),o):(Ze(s,n),o[r(400)][r(380)](...s),n.replaceWith(...e[r(363)](n)),o)},restore(t){const e=Je;if(t[e(384)])throw new Error(e(385));if(t.el.isConnected)throw new Error("Cannot restore: host element is already in the DOM");const n=t[e(379)];t.el[e(396)]=void 0;for(const n of t[e(400)])delete n[e(367)];return n.replaceWith(t.el),t.el.append(...t.nodes),t[e(395)]?.[e(382)]&&t[e(395)][e(401)](),t.placeholder=null,t.el},remove(t){const n=Je;if(!t)return;const r=t[n(367)];if(r?.[n(396)]){const e=r[n(396)],o=e[n(400)][n(357)](t);-1!==o&&e[n(368)](o,1)}if(t[n(396)]){for(const r of[...this[n(363)](t)])e[n(401)](r);t[n(396)][n(395)]?.parentNode&&(t[n(396)].placeholder[n(401)](),t[n(396)][n(395)][n(367)]=null,t[n(396)][n(395)]=null)}t[n(397)]&&t.remove(),t[n(367)]=null,t[n(396)]=null},insertBefore(t,n,r){const o=Je,s=t[o(396)],i=r?.[o(396)]?.[o(379)]||r;if(s){const t=s[o(400)][o(357)](r),e=-1===t?s.nodes[o(403)]:t;return void s.splice(e,0,n)}if(n[o(396)]){n.$owner=t;for(const r of e.range(n))r.$owner=n,t[o(388)](r,i)}else t[o(388)](n,i)},insertAfter(t,n,r){const o=Je,s=t[o(396)];let i=r?.$handle?.end||r;if(s)s[o(368)](s[o(400)][o(357)](r)+1,0,n);else if(n[o(396)]){n[o(367)]=t;for(const r of e.range(n))r.$owner=n,t[o(388)](r,i?.[o(394)]),i=r}else t[o(388)](n,i?.[o(394)])},prepend(t,...n){const r=Je,o=t[r(396)],s=o?o.el:t,i=o?o[r(400)][0]:t.firstChild;for(const t of n)e[r(388)](s,t,i)},replace(t,...e){const n=Je;t[n(396)]&&this[n(392)](t[n(396)]);const r=t.$owner;if(r?.[n(396)]){const o=r[n(396)],s=o.nodes.indexOf(t);if(-1!==s)return void o.splice(s,1,...e)}t[n(364)](...e)},append(t,...n){const r=Je,o=t.$handle,s=o?o.el:t;for(const t of n)e[r(388)](s,t,null)},firstChild(t){const n=Je,r=t[n(396)];return r?r[n(379)][n(396)]?e.firstChild(r[n(379)]):r[n(379)]:t[n(399)]},lastChild(t){const n=Je,r=t[n(396)];return r?r[n(372)][n(396)]?e.lastChild(r[n(372)]):r[n(372)]:t[n(383)]},firstRealNode(t){const n=Je,r=t?.[n(396)];return r?e[n(358)](r.start):t},firstElementChild(t){const n=Je;for(const r of e[n(363)](t))if(r.nodeType===r.ELEMENT_NODE)return r;return null},*children(t){const e=Je,n=t[e(396)];if(n){if(n[e(395)])return;for(const t of n[e(400)])yield t}else for(const e of t.childNodes)yield e},*range(t){const n=Je,r=t.$handle;if(r?.[n(395)])yield r.placeholder;else for(let r of e[n(366)](t))r.$handle?yield*e.range(r):yield r},assignWrapper:Ze};return e}function Qe(t,e){e&&t[en(274)](e)}function tn(t){const e=en;if(t[e(290)])return Promise[e(269)](t)}function en(t,e){return t-=262,rn()[t]}function nn(t,e){const n=en,r=t[n(292)][n(283)],o=t[n(262)],s=[];for(const i of e){const e=i[n(299)]?i:i[n(308)](!0);r.append(o,e),Qe(s,t[n(292)][n(286)](e,{$parent:t}).$init())}return tn(s)}function rn(){const t=["children","every","expr","$scope","19117550jtCWKS","text","static","map","$context","2684XKKAMa","slice","part","cloneNode","document","dynamic","$options","textContent","append","3191640lBMkuy","mount","$vars","216eRiNNL","destroy","$ignore","remove","$parent","$el","4036242dDUIRm","parentNode","trim","isArray","watch","255114iMQaDH","all","$handle","7gTDsDk","$fn","$watch","push","1056241NLwjZp","664854MudwcO","$cache","splitText","cmd","$emit","value","whitespace","dom","unwrap","replace","scope","indexOf","type","3111kZVxes","length","onChange","$ok","watcher","ownerDocument","then"];return(rn=function(){return t})()}function on(t){const e=en,n=[];let r=0,o=0;for(;r<t.length;){const s=t[e(287)]("{{",r);if(-1===s)break;if(s>0&&"\\"===t[s-1]){s-1>o&&n[e(274)]({type:e(302),value:t.slice(o,s-1)}),n.push({type:e(302),value:"{{"}),r=o=s+2;continue}s>o&&n[e(274)]({type:"static",value:t[e(306)](o,s)});const i=t[e(287)]("}}",s+2);if(-1===i)break;n.push({type:e(310),expr:t[e(306)](s+2,i)[e(265)]()}),r=o=i+2}return o<t[e(290)]&&n.push({type:e(302),value:t.slice(o)}),n}!function(){const t=Je,e=Ge();for(;;)try{if(521728==parseInt(t(387))/1*(-parseInt(t(398))/2)+-parseInt(t(373))/3*(parseInt(t(390))/4)+parseInt(t(360))/5+-parseInt(t(362))/6+-parseInt(t(402))/7+parseInt(t(376))/8*(parseInt(t(391))/9)+-parseInt(t(381))/10*(-parseInt(t(375))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),Ye[qe(369)]=function(t,e){const n=Je;return(t[n(393)]||globalThis[n(370)]).createComment(e[n(359)]()+" "+(t[n(377)]||t.textContent||"").trim()+" - "+(t.$scope?.id||""))},Ye[qe(386)]=Xe,function(){const t=en,e=rn();for(;;)try{if(558223==-parseInt(t(275))/1+-parseInt(t(276))/2+-parseInt(t(289))/3*(parseInt(t(305))/4)+parseInt(t(314))/5+-parseInt(t(263))/6*(parseInt(t(271))/7)+parseInt(t(317))/8*(parseInt(t(268))/9)+parseInt(t(300))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var sn=Object.freeze({__proto__:null,mountText:function t(e,n){const r=en,o=e.$el,s=e[r(277)][r(301)]=e[r(277)][r(301)]||{};if(s[r(307)])return function(t){const e=en,n=t[e(277)][e(301)],r=n[e(307)],o=t[e(262)];if(!r)throw t[e(292)].OKError("TEXT_NO_CACHE",null,{message:"No text cache",scope:t});if(r[e(288)]!==e(302))return n[e(279)]=r[e(298)],n.fn=t[e(272)](n.cmd),n[e(281)]=null,function(t,e){const n=en;let r=!0;return e[n(291)]=()=>{const o=n;r?r=!1:e[o(293)]?.[o(267)]();const s=e[o(281)];if(jt(s)||function(t){const e=en;return Array.isArray(t)&&t[e(297)](jt)}(s))return function(t){const e=en,n=t[e(262)],r=t.$ok[e(283)],o=[].concat(t[e(277)].text[e(281)]||[]);if(n[e(270)]){const s=[];for(const o of r[e(296)](n))Qe(s,t.$ok.destroy(o));const i=tn(s);if(i)return i[e(295)](()=>nn(t,o))}else r[e(284)](n);return nn(t,o)}(t);const i=[];for(const e of t[o(292)].dom.children(t[o(262)]))Qe(i,t[o(292)][o(318)](e));const a=tn(i);if(a)return a[o(295)](()=>{const e=o;t[e(262)][e(312)]=""+s});t[o(262)].textContent=""+s},e[n(293)]=t[n(273)](()=>{const r=n,o=e.fn(t);return Array[r(266)](e[r(281)])&&e[r(281)][r(290)],e[r(281)]=o,o},e[n(291)]),e.onChange()}(t,n);o.textContent=r[e(281)]}(e);const i=n?.whitespace??e[r(321)]?.[r(311)]?.[r(282)]??r(320);e[r(280)](r(315));let a=o[r(312)];i===r(320)?a=a[r(285)](/\s+/g,""):i===r(265)&&(a=a[r(265)]());const c=on(a);if(0!==c[r(290)]){if(1===c[r(290)])return"static"===c[0][r(288)]?void(o[r(312)]=c[0][r(281)]):(s[r(307)]=c[0],t(e));if(!1===o[r(264)]?.[r(299)]?.$options[r(278)])return s[r(307)]={type:r(310),expr:"`"+c[r(303)](t=>t[r(288)]===r(302)?t[r(281)][r(285)](/`/g,"\\`"):"${"+t[r(298)]+"}").join("")+"`"},t(e);e[r(292)][r(283)].unwrap(e[r(262)]);for(const t of c){const n=(e[r(262)]?.[r(294)]||globalThis[r(309)]).createTextNode("");n[r(299)]=e[r(292)][r(286)](n,{$parent:e,$context:e[r(304)],$vars:e[r(316)],$cache:{text:{part:t}}}),e[r(292)][r(283)][r(313)](e.$el,n)}}else e[r(262)][r(319)]=!0},parseText:on});!function(){const t=_n,e=dn();for(;;)try{if(963678==-parseInt(t(306))/1*(-parseInt(t(314))/2)+parseInt(t(302))/3+-parseInt(t(291))/4*(-parseInt(t(316))/5)+-parseInt(t(300))/6*(-parseInt(t(305))/7)+parseInt(t(293))/8*(parseInt(t(279))/9)+parseInt(t(303))/10+-parseInt(t(282))/11*(parseInt(t(286))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const an=/^[a-zA-Z][a-zA-Z\d+.-]*:/,cn=/^(https?:)?\/\//,ln=/\.ok\.(?:js|mjs|html)(?:[?#].*)?$/i,un=new WeakMap,fn=new WeakMap;function pn(){return globalThis[_n(320)]??null}function hn(t=pn()){const e=_n;return t?.[e(288)]||t?.[e(297)]?.("base")?.[e(324)]||globalThis[e(309)]?.[e(284)]?.[e(324)]||null}function dn(){const t=['script[type="importmap"]',"10107wcIfQb",'". Add it to an import map or use an explicit URL/path.',"string","55cZWmmF",'Cannot resolve import specifier "',"location","imports","12382356tlqokl","sort","baseURI","from","length","64wvyRmZ","slice","8392Uyhbtx","get","exec","split","querySelector","assign","filter","6vBfbai",'" without a base URL.',"5713308LAQrTB","3289970FJzuxX","parse","4754603izVBKc","7MJpKfJ","scopes","endsWith","window","textContent","has","index","object","339040cjsuPs","startsWith","264270KJEGpf","entries","map","keys","document","signature","trim","Import specifier must be a non-empty string.","href","\n---\n","size","test","value","set"];return(dn=function(){return t})()}function mn(t){const e=_n;return typeof t===e(281)&&(t[e(315)]("./")||t[e(315)]("../"))}function gn(t){const e=_n;return typeof t===e(281)&&t[e(315)]("/")}function yn(t){const e=_n;return typeof t===e(281)&&(cn[e(275)](t)||an[e(275)](t))}function wn(t){const e=_n;return typeof t===e(281)&&t[e(290)]>0&&!mn(t)&&!gn(t)&&!yn(t)}function In(t){const e=_n;return String(t)[e(296)]("#")[0][e(296)]("?")[0]}function bn(t=null,e=pn()){return t||hn(e)}function $n(t,e=null,n=pn()){const r=_n;if(cn[r(275)](t))return t;if(an.test(t))return t;const o=bn(e,n);if(!o)throw new Error(r(283)+t+r(301));return new URL(t,o)[r(324)]}function vn(t,e){return"string"==typeof t&&t?$n(t,e,null):null}function kn(t={},e){const n=_n,r=new Map;for(const[o,s]of Object[n(317)](t||{})){const t=vn(s,e);t&&r[n(277)](o,t)}return r}function On(t,e){const n=_n,r=kn(t?.[n(285)],e),o=new Map;for(const[r,s]of Object[n(317)](t?.scopes||{})){const t=$n(r,e,null);o.set(t,kn(s,e))}return{imports:r,scopes:o,baseURL:e}}function _n(t,e){return t-=275,dn()[t]}function En(t,e){const n=_n;if(!e?.[n(326)])return null;if(e[n(311)](t))return e[n(294)](t);let r=null;for(const o of e[n(319)]())o[n(308)]("/")&&t[n(315)](o)&&(!r||o.length>r[n(290)])&&(r=o);if(!r)return null;const o=e[n(294)](r),s=t[n(292)](r.length);return new URL(s,o)[n(324)]}function An(t,{base:e=null,document:n=pn(),importMap:r=null,allowBareFallback:o=!0,allowUnmappedBare:s=!1}={}){const i=_n;if(typeof t!==i(281)||!t.trim())throw new Error(i(323));const a=t[i(322)]();if(!wn(a))return $n(a,e,n);const{bare:c,suffix:l}=function(t){const e=_n,n=/([?#].*)$/[e(295)](t);return{bare:n?t.slice(0,n[e(312)]):t,suffix:n?.[1]||""}}(a),u=function(t,e,n=null){const r=_n;if(!e)return null;if(n&&e[r(307)]?.[r(326)]){const o=Array[r(289)](e.scopes[r(319)]())[r(299)](t=>n[r(315)](t))[r(287)]((t,e)=>e[r(290)]-t[r(290)]);for(const n of o){const o=En(t,e[r(307)][r(294)](n));if(o)return o}}return En(t,e[r(285)])}(c,function(t,e=pn(),n=bn(null,e)){const r=_n;if(!t)return function(t=pn()){const e=_n;if(!t)return null;const n=Array[e(289)](t.querySelectorAll?.(e(278))||[]);if(!n[e(290)])return null;const r=un[e(294)](t),o=n[e(318)](t=>t.textContent||"").join(e(325));if(r?.[e(321)]===o)return r[e(276)];const s={imports:{},scopes:{}};for(const t of n){const n=t[e(310)]?.trim();if(!n)continue;const r=JSON.parse(n);Object[e(298)](s[e(285)],r[e(285)]||{});for(const[t,n]of Object[e(317)](r[e(307)]||{}))s.scopes[t]={...s[e(307)][t]||{},...n}}const i=On(s,hn(t));return un[e(277)](t,{signature:o,value:i}),i}(e);if(t instanceof Map)return t;if(typeof t===r(281))return On(JSON[r(304)](t),n);if(typeof t===r(313)){const e=fn[r(294)](t);if(e?.baseURL===n)return e[r(276)];const o=On(t,n);return fn[r(277)](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=_n;if(n)return!1;if(!wn(t))return!1;const o=e||In(t);return ln[r(275)](o)}(a,{bare:c}))return $n(a,e,n);if(s)return a;throw new Error('Unable to resolve bare import specifier "'+a+i(280))}const Tn=zn;!function(){const t=zn,e=Un();for(;;)try{if(232501==parseInt(t(609))/1*(-parseInt(t(567))/2)+parseInt(t(484))/3+-parseInt(t(514))/4+parseInt(t(525))/5*(-parseInt(t(512))/6)+-parseInt(t(460))/7+-parseInt(t(463))/8*(-parseInt(t(531))/9)+parseInt(t(595))/10*(parseInt(t(487))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const xn=/^[A-Za-z][A-Za-z0-9._:-]*$/,Sn=/(?:\.ok\.(?:js|mjs|html)|\.(?:js|mjs))$/i;function Cn(t){const e=zn;return typeof t===e(599)&&xn[e(590)](t)}function Nn(t){const e=zn;return typeof t===e(599)&&t[e(554)]>0&&(mn(t)||gn(t)||yn(t)||wn(t)||Sn[e(590)](In(t)))}function jn(t){const e=zn;return t&&"object"==typeof t&&typeof t.import===e(599)}function Mn(t){const e=zn;return t&&typeof t===e(573)&&Cn(t[e(541)])&&1===Object[e(559)](t)[e(554)]}function Rn(t){const e=zn;return t&&typeof t===e(573)&&!(e(466)in t)&&!t[e(442)]}function Ln(t){const e=zn;return t&&typeof t===e(573)&&!0===t[e(442)]}function Dn(t,e={}){const n=zn,{mode:r=n(614),onInvalidUrl:o=()=>{}}=e,s=new Set([n(466),n(541),n(501),"t"]);for(const e in t)if(!s[n(605)](e))throw new Error(n(456)+e+"' in import definition");if(!t[n(466)]||typeof t.import!==n(599))throw new Error("Import definition must include a valid `import` string.");if(t.lazy&&!t[n(541)])throw new Error(n(446));if(t[n(541)]&&!Cn(t.tag))throw new Error("Invalid tag name: "+t[n(541)]);return!Nn(t[n(466)])&&o(n(466),t.import,t),t}const Pn=new Set([Tn(445),Tn(553),Tn(610),Tn(502),Tn(461),Tn(543),Tn(582),"style",Tn(621),"address","article",Tn(619),Tn(475),Tn(540),"h1","h2","h3","h4","h5","h6","hr",Tn(571),Tn(566),"div",Tn(479),"p",Tn(557),"a","em",Tn(578),"small","s",Tn(485),"q",Tn(449),Tn(551),Tn(550),Tn(511),Tn(612),Tn(452),Tn(505),"kbd",Tn(495),Tn(517),"i","b","u",Tn(451),Tn(587),"rt","rp",Tn(448),"bdo","br",Tn(497),Tn(454),Tn(462),"img",Tn(545),Tn(607),"object",Tn(478),Tn(535),"audio",Tn(583),"track",Tn(613),Tn(546),Tn(536),Tn(477),"math",Tn(538),Tn(530),Tn(532),Tn(469),"tbody","thead",Tn(611),"tr","td","th","form",Tn(579),Tn(555),"label",Tn(467),Tn(552),Tn(565),"datalist",Tn(480),Tn(537),Tn(563),Tn(491),Tn(488),Tn(592),Tn(593),Tn(459),Tn(493),"script",Tn(569),Tn(496),Tn(547),"ul","li"]),Fn=new Set([Tn(477),"g",Tn(473),Tn(560),Tn(549),"ellipse","line",Tn(548),Tn(455),Tn(494),Tn(470),"textPath","defs",Tn(457),Tn(597),Tn(575),Tn(450),Tn(458),Tn(509),Tn(591),Tn(468),Tn(604),Tn(506),Tn(620),Tn(471),Tn(529),Tn(533),Tn(616),Tn(489),"feConvolveMatrix","feDiffuseLighting",Tn(447),Tn(608),"feGaussianBlur",Tn(570),Tn(510),Tn(513),"feOffset",Tn(492),Tn(618),"feTurbulence",Tn(542),Tn(564),Tn(556),"set",Tn(465),"desc",Tn(621),"metadata","switch"]);function Un(){const t=['"validate" in attr "',"379670unxrpZ","Only one of [","mask","mounted","string","every",'" must be an array of strings',"$attr","Loaded definition must have a HTMLTemplateElement as `template`","linearGradient","has","ATTR_ALIAS_CONFLICT","embed","feFlood","1YSKxhZ","body","tfoot","code","canvas","dynamic","Ready definitions are not allowed here","feComponentTransfer",'" must be a valid object',"feTile","aside","stop","title","defineProperty",'"required" in attr "',"loaded","Invalid original_tag: ","MISSING_ATTR","html","Lazy import definitions must include a `tag`.","feDisplacementMap","bdi","dfn","pattern","mark","var","accept","ins","polygon","Unexpected field '","marker","symbol","summary","1417458yJdAQt","link","del","1912nSsplz",'Attribute definition "',"foreignObject","import","input","image","col","tspan","filter"," must include logic or template","path","Definition must be an object","footer","Definition is not marked as loaded","svg","param","span","optgroup","empty","Definition for ","alias","740049gCyatf","cite","href","121OrBJMc","progress","feComposite","push","output","feSpecularLighting","dialog","text","sub","template","wbr","includes","original_tag","$error","lazy","base","boolean","mount","samp","radialGradient","entries","style","use","feMerge","time","42YJTvSJ","feMorphology","1254496dQOTMd","dependency","Raw definitions must include a `tag`","sup","Missing required attribute :","ready","Invalid or unsupported component definition","validate","isArray",'"description" in attr "',"Raw definitions cannot include `import`","38915lGnNWt",'" must be a string',"Invalid tag name: ","Import definitions are not allowed here","feBlend","caption","8091BKOnDr","colgroup","feColorMatrix","function","video","area","option","table","unwrap","header","tag","animate","meta","initOwnChildren","iframe","map","slot","polyline","circle","data","abbr","button","head","length","legend","animateMotion","pre","Invalid style entry in component ","keys","rect","required","Dependencies for ","textarea","animateTransform","select","section","152162osAnVS","raw","noscript","feImage","nav","toLowerCase","object",'" must be a boolean',"clipPath","dependencies","attr","strong","fieldset","add"," must be a string","main","source",'" must be a function',"context","default","ruby"," must be an array","unmounted","test","view","meter","details"];return(Un=function(){return t})()}function zn(t,e){return t-=441,Un()[t]}function Wn(){const t=["$cache","$setInnerVars","$svg","> in <","assign","[ok] Unregistered component <","637137cKvHGl","20151420TjyAjk","11OaCfNM","75engdgV","1953471mkOWjK","has","$__locked__$","> at ","4895560nRJBoG","5030937KkCPPl","$cmp","toLowerCase","222004tLiQDm","378rkdhXX","$log","$el","$invoke","warn","svg","$parent","root","tagName","bind","8uRcZmO","39774lJvEIP","_warnedUnregistered","2mqGzEp","add"];return(Wn=function(){return t})()}function Bn(t,e){return t-=272,Wn()[t]}!function(){const t=Bn,e=Wn();for(;;)try{if(544221==-parseInt(t(283))/1*(-parseInt(t(275))/2)+-parseInt(t(287))/3+-parseInt(t(295))/4*(parseInt(t(286))/5)+parseInt(t(273))/6*(-parseInt(t(296))/7)+parseInt(t(272))/8*(parseInt(t(292))/9)+-parseInt(t(291))/10+-parseInt(t(285))/11*(-parseInt(t(284))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Kn=Object.freeze({__proto__:null,mountElement:function(t){const e=Bn,n=t[e(298)].tagName[e(294)]();if(n===e(301)&&t[e(278)]({$svg:{get:()=>!0}}),!(function(t){const e=Tn;return Pn[e(605)](t[e(572)]())}(n)||t.$vars[e(279)]&&(r=n,Fn[Tn(605)](r.toLowerCase())))){const r=t[e(274)]??=new Set;!r[e(288)](n)&&(r[e(276)](n),t[e(297)][e(300)](["init"],e(282)+n+e(280)+(t[e(302)]?.[e(298)][e(304)]||e(303))+e(290)+(t[e(293)]?.[e(298)][e(304)]||e(303))))}var r;return Object[e(281)](t[e(277)],Jt[e(305)](t)),t[e(289)]=!0,t[e(299)]("mount")}});function Hn(t,e){return t-=499,Jn()[t]}function Vn(t,e,n){const r=Hn;if(!e[r(558)])for(const t of n)t[r(546)]();let o=e.parse?.(t);return o?o[r(536)](()=>qn(t,e)):qn(t,e)}function qn(t,e){const n=Hn;if(t[n(563)]||t[n(564)])return;Object[n(553)](t[n(525)],Jt[n(571)](t)),function(t,e,{onUnused:n=(t,e,n)=>{}}={onUnused:null}){const r=zn,o=e[r(577)]||{},s=new Set;for(const[e,n]of Object[r(507)](o)){const o=n[r(483)]||[],i=[];let a=null;for(const e of o)e in t[r(602)]&&(i.push(e),null==a&&(a=e));const c=e in t[r(602)];if(c&&i[r(490)](e),i.length>1)throw t[r(500)]?.(r(606),r(596)+[e,...o].join(", ")+"] should be used",{key:e,aliases:o,used:i});if(i[r(554)]){const o=c?e:a;""===t.$attr[o]&&r(481)in n?t.$attr[e]=n[r(481)]:!c&&null!=a&&Object[r(622)](t[r(602)],e,{get:()=>t[r(602)][a],enumerable:!0,configurable:!0}),s[r(580)](e)}else r(586)in n&&(t.$attr[e]=n[r(586)],s[r(580)](e));if(n[r(561)]&&!(e in t.$attr))throw t[r(500)]?.(r(444),r(518)+e+"=",{key:e,aliases:o});n[r(521)]&&e in t.$attr&&n[r(521)](t,t.$attr[e])}if(n)for(const[t,i]of Object[r(507)](o))!s[r(605)](t)&&!i[r(561)]&&!(r(586)in i)&&n(t,i,e)}(t,e,{onUnused(){}});const r=t.$cache.cmp;if(r.context=t[n(537)][n(550)](e[n(500)]?.(t)||{}),t[n(510)]=r.context,e[n(551)])for(const[o,s]of Object[n(518)](e.attr))if(void 0!==s[n(562)]){let e=t[n(525)][n(571)][o];(!e||e[n(530)]===n(549))&&([e]=Jt.classifyAttr(":"+o,n(567),t[n(532)]),Jt.bindAttribute(t,o,t[n(532)],t[n(565)],e)),e.transform=(t,e)=>"function"==typeof s[n(562)]?s.transform[n(561)](r[n(500)],t,e):s[n(562)],e[n(540)][n(528)]()}return function(t,e){const n=Hn,r=t.$cache[n(501)][n(522)][n(535)],o=[];for(const e of r){const r=e?.[n(541)]?.[n(499)]?.(t,e[n(541)],t[n(525)][n(501)][n(534)]);r&&o[n(509)](r)}return o[n(526)]?Promise[n(515)](o)[n(536)](()=>Gn(t,e)):Gn(t,e)}(t,e)}function Jn(){const t=["templates","ownerDocument","push","$innerContext","3827211DrAFtp","unwrap","$innerVars","dom","all","203223Bfsfqi","$invoke","entries","TEMPLATE","delete","default","registration","unmount","cloneNode","$cache","length","tagName","run","trim","type","scope","$el","mount","def","dependencies","then","$ok","nodeType","append","watcher","ready","events","activate","setAttribute","2QZoOWd","remove","2405855XrtGcT","name","static","proxy","attr","prepare","assign","$id","content","3722782iPczVn","$ext","preserve_whitespace","childNodes","$scope","call","transform","$ignore","$__unmount__$","$attr","1606980xxTOqe","undefined","slot","_instances","document","bind","$setInnerVars","componentRegistry","prepareDep","context","cmp","createElement","1109616DgeZSM","template","4327011DjZtwA","6bpefet"];return(Jn=function(){return t})()}function Gn(t,e){const n=Hn;let r=e[n(552)]?.(t);return r?r[n(536)](()=>Xn(t,e)):Xn(t,e)}function Xn(t,e){const n=Hn;t[n(525)][n(542)][n(552)]?.fn(t),!t[n(513)]&&t[n(572)]({}),t.$__locked__$=!0;const r=t.$el;r[n(539)](e[n(504)][n(555)][n(524)](!0));for(const e of r.querySelectorAll(n(568)))e[n(544)]("cmp-id",t[n(554)]);for(const e of r.childNodes)e[n(560)]||(e[n(560)]=t.$ok[n(531)](e,{$parent:t,$cmp:t}));const o=t[n(517)](n(533));return o?o[n(536)](()=>Zn(t,e)):Zn(t,e)}function Zn(t,e){const n=Hn;t.$__unmount__$||e[n(512)]&&t.$ok[n(514)][n(512)](t.$el)}function Yn(t,e){return t-=289,tr()[t]}function Qn(t){const e=Yn;return!!t.$ignore||!(1!==t.nodeType||!t.hasAttribute(e(365)))&&(t.$ignore=!0,!0)}function tr(){const t=["1099206xiHviw","$owner","384252hNmXWJ","code","cmp","start","13131dtrUFS","$destroyChildren","$children","TEXT_NODE","data-ok","config","mounting","$error","getAttribute","$parent","ACTIVATION_FAILED","has","scope@destroyed","hasAttribute","241722ZQEmeg","$ignore","2217691OyXEPX","tagName","ready","SCRIPT","$offAll","$hasInvoke","ELEMENT_NODE","initPendingRegistrations","initializing","forEach","$ok","initializedOrAborted","emit","nodeType","unmounting","destroyOwnChildren","$scope","children","1310BTkjSQ","$__init__$","setAttribute","$__unmountPromise__$","$childScope","mountElement","getRegistration","now","ok:ignore","$handle","$lifecycle","35teTTXc","resolve","crash","map","$id","init","def","$invoke","push","mount","dom","mounted","componentRegistry","unmounted","all","unregisterScope","$state","290EzxBhH","add","704240sVqNAY","size","$__unmount__$","catch","ignore","pending","initialized","$el","$destroy","whitespace","$emit","length","mountText","330fnimQn"];return(tr=function(){return t})()}async function er(t){const e=Yn;if(t[e(358)])throw t[e(330)]("DOUBLE_INITIALIZATION","Node was already initialized before");1===t[e(310)][e(352)]&&t.$el[e(336)](e(365))&&(t[e(310)][e(338)]=!0),t.$__init__$=performance[e(364)](),t[e(349)].registerScope(t),t.$emit(e(293)),t.$state=e(329);try{t[e(349)][e(296)].pendingInit[e(304)]&&await t.$ok[e(296)][e(346)](t);const n=t.$el;let r;if(n.nodeType===n[e(326)])r=sn[e(315)](t,{whitespace:t[e(349)][e(328)][e(312)]||e(307)});else if(n[e(352)]===n[e(345)]){const n=t[e(349)][e(296)][e(363)](t[e(310)][e(331)]("as")||t.$el.tagName,t);n?(t[e(310)][e(359)]("data-ok",""),r=function(t,e){const n=Hn,r=t[n(532)];e[n(569)].add(t),t[n(557)](n(523),()=>{const r=n;e._instances[r(520)](t)});const o=t[n(525)][n(501)]={registration:e,get def(){return e[n(541)]||e.raw},templates:{},fragment:null},s=Array.from(r[n(559)]),i=[],a=[],c=!!o[n(534)],l=c&&o[n(534)][n(558)];for(const t of s)if(1===t[n(538)]&&t[n(527)]===n(519)){const e=t.getAttribute(n(548))||n(521);o[n(507)][e]=t,t[n(546)]()}else 3===t.nodeType&&""===t.textContent[n(529)]()?c?l?i.push(t):t.remove():a[n(509)](t):i[n(509)](t);if(!o[n(507)][n(521)]&&i[n(526)]){const t=(r[n(508)]||globalThis[n(570)])[n(502)]("TEMPLATE");t.content[n(539)](...i),o[n(507)][n(521)]=t}else for(const t of i)t.remove();const u=t[n(537)][n(573)][n(543)](e,t);return u?u[n(536)](e=>Vn(t,e,a)):Vn(t,o[n(534)],a)}(t,n)):(!t[e(332)]&&t[e(310)].setAttribute(e(327),""),r=Kn[e(362)](t))}if(r&&await r,t[e(300)]!==e(329))return;let o=[];return t[e(310)][e(340)]!==e(342)&&!t.$el[e(338)]&&(o=function(t){const e=Yn,n=[],r=[...t[e(349)].dom[e(356)](t[e(310)])];for(let o of r){if(Qn(o))continue;let r=o[e(355)]||(o[e(355)]=t[e(361)](o));n[e(292)](r),r[e(300)]===e(308)&&er(r)[e(306)](t=>{const n=e;if("ACTIVATION_FAILED"===t?.[n(320)]&&r[n(305)])return;const o=t?.ok?.shared?.[n(370)];if(!o)throw t;o[n(370)](t)})}return n}(t)),await Promise[e(298)](o[e(371)](t=>t[e(367)]?.mountedOrAborted??Promise[e(369)]())),t[e(344)](e(295))&&await t.$invoke(e(295)),t[e(300)]="mounted",t[e(367)][e(295)][e(369)](),t[e(313)]("mounted"),await(t[e(332)]?.[e(367)][e(341)]),t[e(349)].nextFrame(async()=>{const n=e;t[n(344)](n(341))&&await t[n(291)](n(341)),t[n(300)]=n(341),t[n(367)][n(341)].resolve(),t[n(313)]("ready"),o[n(348)](t=>{const e=n;t.$lifecycle?.[e(341)]?.resolve?.()}),await Promise[n(298)](o[n(371)](t=>t[n(367)]?.[n(350)]??Promise.resolve())),t[n(305)]||(t.$state=n(347),t[n(344)](n(289))&&await t[n(291)]("init"),t.$lifecycle[n(309)].resolve(),t[n(300)]=n(309),t[n(313)](n(309)))}),t[e(367)][e(309)]}catch(n){if(t[e(305)])return;throw t[e(367)].unmount[e(369)](),t[e(330)](e(333),n,{})}}!function(){const t=Hn,e=Jn();for(;;)try{if(684305==parseInt(t(516))/1+-parseInt(t(545))/2*(parseInt(t(511))/3)+parseInt(t(566))/4+parseInt(t(547))/5*(parseInt(t(506))/6)+parseInt(t(556))/7+-parseInt(t(503))/8+parseInt(t(505))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=Yn,e=tr();for(;;)try{if(197828==parseInt(t(357))/1*(-parseInt(t(301))/2)+parseInt(t(317))/3+parseInt(t(319))/4+parseInt(t(368))/5*(parseInt(t(337))/6)+-parseInt(t(339))/7+-parseInt(t(303))/8+parseInt(t(323))/9*(parseInt(t(316))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const nr=ir;function rr(){const t=["$resolveDef","resolved","$innerContext can only be set before mounting children","func","error","stop","getOwnPropertyDescriptor","_cleanup","1606720MebbFQ","$parent is not allowed","$_reloadCloneEl","removeAttribute","dom","OKError","$clone","replace","createElement","originalValue","$ext","all","6lGaRuS","add","offAll","$cmp","attributes","_scopeIdCounter","from","innerHTML","$log","$ok","active",'$vars["',"componentRegistry","ownerDocument","OKScope","createScope on a node that already has a scope","RELOADED","SCOPED_WATCHER_ERROR","options","SCOPED_OBSERVER_ERROR","$vars","220874zQSwhK","firstChild","$options","off","mounted","capture","NOT_A_COMPONENT","watch","appendChild","3996OJjKtZ","27JcXEGD","$innerVars can only be set before mounting children","handler","$_failedReload","events","length","17842022SLfuLS","cache","value","extends",'" is read-only',"rejected","assign","$init","$innerVars","filter","boolean","defineProperty","push","name","10NapegT","type","SCOPE_LOCKED","call","$slot","observe","$lifecycle","entries","info","pending","destroy","originalName","$__locked__$","scope:","$owner","emit","3820145zGkoKC","cmp","readyOrAborted","$_reloadRegistrationId","tagName","_hasListenerCleanup",'"] must be an object with a getter',"set","#unknown","$scope","ONCE","$el","initialized","$parent","removeEventListener","722sLkCGK","dispatchEvent","BAD_VARS","OK_SCOPE_SYMBOL","ownKeys","now","proxyInstance","get","setAttribute","document","Component reloaded successfully","templates","function","$cache","parentNode","$ignore","EMIT","code","2774290wWvZLh","$attr","defineProperties","$reload can only be called on component scopes","tag:","$isCmp","unmount","bind","$error","proxy","observeDeep","create","_listeners","$children","timestamp","def",'Variable "',"TEXT_NODE","scope","toLowerCase","_instances","once","SYMBOLS","OFF","$innerContext","$context","registration","ready","1053712eyxJWJ","nodeType","$id"];return(rr=function(){return t})()}!function(){const t=ir,e=rr();for(;;)try{if(574325==parseInt(t(569))/1+parseInt(t(479))/2*(-parseInt(t(578))/3)+-parseInt(t(536))/4+parseInt(t(497))/5+-parseInt(t(548))/6*(parseInt(t(464))/7)+-parseInt(t(525))/8*(parseInt(t(579))/9)+parseInt(t(448))/10*(parseInt(t(585))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const or=Symbol(nr(562)),sr=Object[nr(508)]({[or]:!0,$ext(t,e){const n=nr;this[n(492)][n(588)]||(this[n(492)][n(588)]={}),(this[n(492)][n(588)][t]||=[]).push(e)},$destroyChildren(t=!1){return function(t,e=!1){const n=Yn,r=[],o=new Set,s=t[n(349)].dom[n(356)](t.$el);for(let i of s){if(o.has(i))continue;let s=i.$owner;if(s&&s!==t[n(310)]){for(;s[n(318)]&&s[n(318)]!==t.$el;)s=s[n(318)];const i=s[n(366)];if(i&&i[n(322)]&&!o[n(334)](i[n(322)])){r[n(292)](s[n(355)][n(311)](e));for(const e of t.$ok[n(294)].range(s))o[n(302)](e)}continue}Qn(i)||i.$scope&&!i[n(355)][n(305)]&&(r[n(292)](i[n(355)][n(311)](e)),o[n(302)](i))}if(r[n(314)])return Promise[n(298)](r)}(this,t)},$ignoreChildren(){const t=nr;this[t(475)]&&(this[t(475)][t(494)]=!0)},$init(){return er(this)},$destroy(t=!0){return async function(t,e=!0){const n=Yn;if(!t.$__init__$)return;if(t[n(305)])return;t.$__unmount__$=performance[n(364)](),t[n(313)]("unmount"),t[n(367)].unmount.resolve(),t[n(300)]=n(353);const r=e=>{const o=n;if(o(360)in e||e!==t&&e.$__unmount__$)return e[o(360)];e[o(360)]=e.$invoke("unmount");for(const t of e[o(325)])r(t[o(355)]);return e.$__unmountPromise__$},o=r(t);await o,delete t[n(360)],!t.$cache[n(321)]?.[n(290)]?.[n(354)]&&await t[n(324)](e),await t[n(291)](n(297)),t[n(367)][n(297)][n(369)](),t.$state=n(297),t[n(313)](n(297)),e&&t[n(349)][n(294)].remove(t[n(310)]),t.$ok[n(299)](t),t[n(343)](),t.$el[n(355)]=null,t[n(310)]=null,t.$state="dead",t.$__RIP__$=!0,t[n(349)][n(351)](n(335),{id:t[n(372)]})}(this,t)},$hasInvoke(t){const e=nr;return this.$cache[e(465)]?.[e(512)]?.[t]||this[e(492)][e(583)]?.[t]||this.$cache.extends?.[t]},$invoke(t,...e){const n=nr,r=[],o=t=>{const n=ir;if(!t)return;const o=t[n(451)](this[n(521)],this,...e);o&&"function"==typeof o.then&&r[n(446)](o)};o(this[n(492)][n(465)]?.[n(512)]?.[t]),o(this.$cache.events?.[t]?.listener);for(const e of this.$cache[n(588)]?.[t]||[])o(e);if(r[n(584)])return r[n(584)]?Promise[n(547)](r):void 0},$watch(t,e,n={}){const r=nr,o=this[r(557)][r(485)][r(576)](t,e,{...n,wrapHandle:t=>(...e)=>{const n=r;try{return t(...e)}catch(t){if(t[n(496)]===n(565))throw t;throw this[n(505)](n(565),t)}}});return this[r(546)]("unmount",o[r(533)]),o},$observe(t,e,n=null,r){const o=nr,s=this[o(557)][o(485)][o(453)](t,e,n,{...r,wrapHandle:t=>(...e)=>{const n=o;try{return t(...e)}catch(t){if("SCOPED_OBSERVER_ERROR"===t[n(496)])throw t;throw this[n(505)](n(567),t)}}});return s&&this[o(546)]("unmount",s[o(533)]),s},$observeDeep(t,e){const n=nr,{stop:r}=this[n(557)][n(485)][n(507)](t,e);return this.$ext(n(503),r),{stop:r}},$memo(t){const e=nr,n=this[e(557)][e(485)].memo(t);return!n[e(535)]&&(n[e(535)]=!0,this[e(546)]?.("unmount",()=>n[e(533)]())),n},$fn(t,e={}){const n=nr;return this[n(557)][n(531)](t,{...e,layers:[n(473),"$vars",n(522)]}).bind(this[n(522)])},$error(t,e,n){const r=nr;return new(this[r(557)].OK[r(541)])(t,e,{scope:this,...n})},$setInnerVars(t,e=this.$vars||{}){const n=nr;if(this[n(460)])throw this.$error(n(450),n(580));const r={};for(const t of Reflect[n(483)](e)){const o=Object[n(534)](e,t);o&&(r[t]={...o,configurable:!0})}for(const[e,o]of Object[n(455)](t)){if(!o||typeof o[n(486)]!==n(491))throw this[n(505)](n(481),n(559)+String(e)+n(470),{value:o});r[e]={get:o.get,set:o[n(471)]||(()=>{const t=n;throw this[t(505)]("READONLY_VAR",t(513)+e+t(589))}),enumerable:!0,configurable:!0}}this[n(593)]=Object[n(499)]({},r)},$setInnerContext(t={}){const e=nr;if(this[e(460)])throw this[e(505)](e(450),e(530));this[e(521)]=this[e(557)][e(506)](t)},$childScope(t,e={}){const n=nr;if(e[n(477)]&&e[n(477)]!==this)throw this.$error("BAD_PARENT",n(537),{node:t});return this[n(557)][n(515)](t,{$parent:this,...e})},get $on(){const t=nr;return this[A.SYMBOLS.ON]??=A.on[t(504)](null,this)},get $once(){const t=nr;return this[A[t(519)][t(474)]]??=A[t(518)].bind(null,this)},get $off(){const t=nr;return this[A[t(519)][t(520)]]??=A[t(572)][t(504)](null,this)},get $emit(){const t=nr;return this[A[t(519)][t(495)]]??=(e,...n)=>{const r=t;A[r(463)](this,e,...n),A[r(463)](this[r(557)],"scope@"+e,this,...n)}},get $offAll(){const t=nr;return this[A[t(519)].OFF_ALL]??=A[t(550)][t(504)](null,this)},get $slots(){const t=nr;return this[t(551)]?.[t(492)][t(465)]?.templates||{}},get $isCmp(){const t=nr;return!!this.$cache[t(465)]},get $props(){const t=nr;return this[t(551)]?.[t(498)]},$dispatch(t,e,n){const r=nr;this[r(475)]&&this[r(475)][r(480)](new CustomEvent(t,{detail:e,...n}))},$listen(t,e,n,r=void 0){const o=nr,s=typeof r===o(595)?r:!!r?.[o(574)];this[o(509)]||=[];for(const r of this[o(509)]){const i=typeof r.options===o(595)?r[o(566)]:!!r.options?.capture;if(r.el===t&&r.type===e&&r[o(581)]===n&&i===s)return r}const i={el:t,type:e,handler:n,options:r,active:!0,start(){const s=o;!this[s(558)]&&(t.addEventListener(e,n,r),this[s(558)]=!0)},stop(){const s=o;this[s(558)]&&(t[s(478)](e,n,r),this[s(558)]=!1)}};return t.addEventListener(e,n,r),this[o(509)][o(446)](i),!this[o(469)]&&(this[o(546)](o(503),()=>{const t=o;for(const e of this[t(509)])e[t(533)]();this[t(509)]=[]}),this._hasListenerCleanup=!0),i},$unlisten(t,e,n,r){const o=nr,s=typeof r===o(595)?r:!!r?.capture;this[o(509)]&&(this[o(509)]=this[o(509)][o(594)](r=>{const i=o,a=typeof r[i(566)]===i(595)?r[i(566)]:!!r[i(566)]?.[i(574)],c=r.el===t&&r[i(449)]===e&&r.handler===n&&a===s;return c&&r[i(533)](),!c}))},$clone(){const t=nr,e=(this.$el[t(561)]||globalThis[t(488)])[t(544)](this.$el.tagName);if(this[t(492)][t(504)])for(const[n,r]of Object[t(455)](this.$cache[t(504)]))e[t(487)](r[t(459)],r[t(545)]);if(this[t(492)].events)for(const[n,r]of Object[t(455)](this.$cache[t(583)]))e[t(487)](r[t(459)],r[t(545)]);if(this[t(492)][t(465)]?.[t(490)])for(const n of Object.values(this[t(492)][t(465)].templates))e.appendChild(n.cloneNode(!0));return lr(this[t(557)],e,{$parent:this.$parent,$context:this[t(522)],$vars:this[t(568)],$cmp:this[t(551)],$slot:this.$slot,$attr:this.$attr,$options:this[t(571)]})},async $reload(){const t=nr;if(!this[t(502)]&&!this.$_failedReload)throw this[t(505)](t(575),t(500));const e=this[t(542)]();e[t(538)]=e.$el;const n=this[t(475)],r=this.$_reloadCloneEl||e[t(475)];await this.$destroy(!1),n[t(555)]="";for(const e of Array.from(n[t(552)]))n[t(539)](e[t(447)]);for(const e of Array[t(554)](r[t(552)]))n[t(487)](e[t(447)],e[t(587)]);for(;r[t(570)];)n[t(577)](r[t(570)]);n.$scope=e,e[t(475)]=n;let o=this[t(467)]||this.$cache.cmp?.[t(523)]?.id;const s=e[t(557)][t(560)][t(586)][t(486)](o);e[t(467)]=o,s[t(517)][t(549)](e),this.$_failedReload&&(this[t(557)].dom[t(543)](this[t(582)],e[t(475)]),await this.$ok[t(458)](this[t(582)]),delete this[t(582)]);try{return await e[t(592)](),delete e[t(467)],delete e.$_reloadCloneEl,this[t(556)][t(456)]([t(564)],t(489)),e}catch(n){((e,n)=>{const r=t,o=(e[r(475)]?.[r(561)]||globalThis[r(488)])[r(544)]("crash-boundary-default");e[r(557)][r(540)][r(543)](e.$el,o),o.$scope=e[r(557)][r(515)](o,{$parent:e[r(477)],$context:e[r(522)],$attr:{error:n}}),o[r(473)][r(592)](),e[r(582)]=o,e.$log[r(532)](["RELOAD_FAILED"],n)})(e,n)}}});function ir(t,e){return t-=445,rr()[t]}function ar(t,e){if(t[e])return t[e];let n,r;const o=new Promise((t,e)=>{n=t,r=e});return o.resolve=()=>{const t=ir;o[t(511)]=performance[t(484)](),o[t(529)]=!0,n()},o.reject=t=>{const e=ir;o[e(511)]=performance[e(484)](),o[e(590)]=!0,r(t)},t[e]=o,o}function cr(t,e,...n){return t[e]?t[e]:t[e]=Promise.race(n)}function lr(t,e,n={}){const r=nr;if(e.$scope)throw t[r(532)]("NODE_ALREADY_SCOPED",r(563),{node:e});const o=void 0!==n.$parent?n[r(477)]:e[r(493)]?.$scope||null,s=o||{},i=Object[r(508)](sr);Object[r(445)](i,r(527),{value:++t[r(553)],writable:!1}),Object[r(591)](i,{$el:e,$root:s.$root||o||null,$parent:o,$children:new Set,$state:r(457),$context:t.proxy(n.$context||s[r(521)]||s[r(522)]||{}),$vars:n[r(568)]||s[r(593)]||s.$vars||{},$attr:t[r(506)](n.$attr||{}),$cmp:n.$cmp||s[r(551)]||null,$slot:n[r(452)]||s[r(452)]||null,$cache:n[r(492)]||{},$scope:i,$options:n[r(571)]||{},$ok:t,$innerVars:null,$innerContext:null});const a=void 0!==n.$owner?n[r(462)]:s.$owner;a&&(i.$owner=a);const c=void 0!==n[r(528)]?n[r(528)]:s[r(528)];c&&(i[r(528)]=c);const l={};Object[r(445)](i,r(454),{value:{get mounted(){return ar(l,r(573))},get ready(){return ar(l,r(524))},get initialized(){return ar(l,r(476))},get unmount(){return ar(l,r(503))},get unmounted(){return ar(l,"unmounted")},get mountedOrAborted(){const t=r;return cr(l,"mountedOrAborted",this[t(573)],this[t(503)])},get readyOrAborted(){const t=r;return cr(l,t(466),this[t(524)],this[t(503)])},get initializedOrAborted(){const t=r;return cr(l,"initializedOrAborted",this[t(476)],this[t(503)])}},enumerable:!0});const u=e[r(468)]?.[r(516)]()||(e[r(526)]===e[r(514)]?"#text":r(472));return Object[r(445)](i,r(556),{value:t.createLogger(t,i,[r(461)+i[r(527)],r(501)+u]),enumerable:!0,configurable:!0}),e[r(473)]=i,i[r(477)]?.[r(510)][r(549)](i),i}lr[nr(482)]=or;const ur=pr;function fr(){const t=["warn","data","debug","15832QbsOhK","LOG","error","DEBUG","826265fRJGGQ","4555404QSegTz","8VWjxzU","includes","log","source","create","args","INFO","472674IbRmng","bind","toISOString","30CGpwvR","info","1787000Jwthdp","tags","117pnPMVJ","rootTags","WARN","3861956GEJjHg","_emitLog","map","channel","OKLogger","now","2943816qxIYzU","ERROR"];return(fr=function(){return t})()}function pr(t,e){return t-=302,fr()[t]}!function(){const t=pr,e=fr();for(;;)try{if(791973==-parseInt(t(332))/1+parseInt(t(314))/2+-parseInt(t(305))/3*(parseInt(t(319))/4)+parseInt(t(323))/5*(parseInt(t(335))/6)+-parseInt(t(308))/7*(parseInt(t(325))/8)+-parseInt(t(324))/9+parseInt(t(303))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const hr=t=>{const e=pr;return[...new Set(t.filter(Boolean)[e(310)](String))]},dr={OKLogger:Symbol(ur(312)),INFO:Symbol(ur(331)),ERROR:Symbol(ur(315)),WARN:Symbol(ur(307)),DEBUG:Symbol(ur(322)),LOG:Symbol(ur(320))},mr=Object[ur(329)]({[dr[ur(312)]]:!0,get log(){const t=ur;return this[dr[t(320)]]??=this[t(309)].bind(this,this[t(311)],t(327),this[t(306)],this[t(328)])},get error(){const t=ur;return this[dr[t(315)]]??=this[t(309)][t(333)](this,this[t(311)],t(321),this.rootTags,this[t(328)])},get info(){const t=ur;return this[dr[t(331)]]??=this[t(309)][t(333)](this,this.channel,"info",this[t(306)],this[t(328)])},get warn(){const t=ur;return this[dr.WARN]??=this[t(309)][t(333)](this,this[t(311)],t(316),this[t(306)],this[t(328)])},get debug(){const t=ur;return this[dr[t(322)]]??=this._emitLog[t(333)](this,this[t(311)],t(318),this[t(306)],this.source)},extend(t,e){const n=ur;return gr(this.channel,t,[...this[n(306)],...e])},asConsole(t,e){const n=this.extend(t,e);return{logger:n,log(...t){n.log([],t)},info(...t){n[pr(302)]([],t)},error(...t){n[pr(321)]([],t)},warn(...t){n.warn([],t)},debug(...t){n[pr(318)]([],t)}}},_emitLog(t,e=null,n,r,o,s,i=Date[ur(313)]()){const a=ur,c={channel:t,source:r,tags:[...hr([e,...n,...o])],data:s,timestamp:i};return A.emit(t,a(327),c),c},printToConsole(t){const e=ur,n=t[e(304)].includes(e(321))?e(321):t.tags[e(326)](e(316))?e(316):t.tags[e(326)](e(302))?"info":t[e(304)][e(326)]("debug")?e(318):"log",r=new Date(t.timestamp)[e(334)](),o=t.data?.[e(330)]??[t[e(317)]];(console[n]??console.log)(r,t.tags,...o)}});function gr(t={},e=null,n=[]){const r=ur,o=Object[r(329)](mr);return o[r(311)]=t,o[r(328)]=e,o[r(306)]=n,o}function yr(){const t=["startsWith","endLine","5610Mknods","error","has","length","437985rbHIvD","slice","col","start","30830JKLzWa","> starting at line ","346497Bdyyvd","Unclosed <","resolveImportPath","style","> (line ","/> is not a valid self-closing tag","dependencies","tag",", again at line ","allow"," from ","></","PARSE_FAILED","log","find","script","--\x3e","replace","Overlapping blocks: <","revokeObjectURL","createObjectURL","exec","text","document","1421vmUNuG","meta","data:text/javascript;base64,","embed","202055LNomgW","repeat","Failed to parse .ok.html structure: ","base64","template","throw",'<part> block is missing required "role" attribute (line ',"1448OpXcUx","map","\n//# sourceURL=","join","base","> blocks found (first at line ","test","warn","process","text/javascript","link","format",") overlaps with <","javascript","toString","img","/> auto-expanded inside <","startLine","createElement","content","end","221056IZsJXw","push","1730jjJEMT","role","70Azkoum","Multiple <","html","[ok] <","versions","../","</template>","node","from","parse","toLowerCase","<template","part","IMPORT_FETCH_FAILED","default"];return(yr=function(){return t})()}const wr=Ir;function Ir(t,e){return t-=321,yr()[t]}function br(t,e=null,{selfClosing:n=wr(400),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(327)])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[u(327)]}const f=function(t,{selfClosing:e=wr(400),tag:n=null,href:r=null,onWarn:o=null,onError:s=null}={}){const i=wr,a=new Set(["area",i(343),"br",i(387),i(331),"hr",i(354),"input",i(349),i(329),"source","track","wbr"]);return t[i(321)](/<([a-zA-Z0-9-]+)([^<>]*)\/>/g,(t,c,l)=>{const u=i,f=c.toUpperCase();if(a[u(383)](f))return t;if(e===u(337))throw s&&s(c,n,r),new Error("<"+c+u(396));return e===u(346)&&o&&o(c,n,r),"<"+c+l+u(402)+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(404)]){const s=r?o(401)+r:"";e[o(404)].warn(["parseTemplate"],o(367)+t+o(355)+n+">"+s)}},onError:(t,n,r)=>{const o=u;if(!i)throw e?.[o(382)]?e[o(382)]("INVALID_SELF_CLOSING_TAG","<"+t+"/> is not a valid self-closing tag",{tag:n,href:r}):new Error("<"+t+o(396));i(t,n,r)}}),p=l[u(357)](u(336));return p.innerHTML=f,p}async function $r(t,e=null){const n=wr,r=await fetch(t);if(!r.ok)throw e[n(382)](n(377),r.status+" "+r.statusText+": "+t,{href:t,status:r.status,res:r});const o=await r[n(326)]();try{return async function(t,e,n){const r=wr,o=Object.fromEntries(t[r(340)](t=>[t.role||t.tag,t]));let s=o.script?.content||"",i={style:o[r(394)]?.content||"",template:o[r(336)]?.content||"",__blocks:o};if(o[r(397)])try{i[r(397)]=JSON[r(373)](o[r(397)][r(358)]||"[]")}catch(t){throw e[r(382)](r(403),"Failed to parse dependencies JSON",{cause:t,content:o[r(397)].content})}if(s){s=function(t,e,n=null){const r=wr,o=t=>{const r=Ir;if(!n)return t[r(379)]("./")||t[r(379)](r(369))?new URL(t,e).href:t;try{return n(t,e)}catch{return t}};let s=t[r(321)](/(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(321)](/(import\s*\(\s*)["']([^"']+)["'](\s*\))/g,(t,e,n,r)=>e+'"'+o(n)+'"'+r),s}(s,n,(t,n)=>{const o=r,s=e?.componentRegistry;return s?.resolveImportPath?s[o(393)](t,n,{allowUnmappedBare:!0,allowBareFallback:!1}):t[o(379)]("./")||t[o(379)](o(369))?new URL(t,n).href:t});const t=["\n"[r(333)](o[r(406)][r(356)]-1),s,r(341)+n][r(342)](""),a=!!globalThis[r(347)]?.[r(368)]?.[r(371)],c=a?r(330)+Buffer[r(372)](t,"utf8")[r(353)](r(335)):URL[r(324)](new Blob([t],{type:r(348)}));let l;try{l=s?await import(c):{}}finally{!a&&URL[r(323)](c)}i={...i,...l[r(378)],url:n}}return i}(function(t){const e=Ir,n=[],r=t[e(384)];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(386)](o,o+n[s(384)]);return(r?i[s(374)]():i)===n}function u(n,c,u,f){const p=e;let h=null,d=!1,m=null,g=n===p(336)?1:0;const y=o;for(;o<r;){if("<"===t[o])if(n===p(336))if(l("</template>",!0)){if(g--,0===g){const e=o;for(let t=0;t<p(370).length;t++)i();const r=o;return{tag:n,openTag:c,closeTag:p(370),content:t[p(386)](y,e),start:u,end:r,startLine:f,endLine:s}}}else l(p(375),!0)&&g++;else{const e="</"+n+">";if(l(e,!0)){const r=o;for(let t=0;t<e[p(384)];t++)i();const a=o;return{tag:n,openTag:c,closeTag:e,content:t[p(386)](y,r),start:u,end:a,startLine:f,endLine:s}}}const e=i();if(m){if("--"===m&&l(p(407))||"//"===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(392)+n+p(390)+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(345)](t[c]);)c++;const l=t[e(386)](a,c)[e(374)]();if(["script",e(394),"template",e(376)].includes(l)){const a=o,c=s;for(;o<r&&">"!==t[o];)i();i();const f=t.slice(a,o);let p=null,h=null;if(l===e(376)){const t=/\brole\s*=\s*["']([^"']+)["']/[e(325)](f),n=/\bformat\s*=\s*["']([^"']+)["']/[e(325)](f);if(p=t?.[1]||null,h=n?.[1]||null,!p)throw new Error(e(338)+c+")")}const d=u(l,f,a,c);if(l!==e(376)&&n.find(t=>t.tag===l))throw new Error(e(365)+l+e(344)+n[e(405)](t=>t[e(398)]===l).startLine+e(399)+c+")");for(const t of n)if(d.start>=t[e(388)]&&d.start<t.end||t[e(388)]>=d[e(388)]&&t[e(388)]<d[e(359)])throw new Error(e(322)+t[e(398)]+e(395)+t[e(356)]+e(351)+d.tag+e(395)+d[e(356)]+")");l===e(376)?(d.role=p,d[e(350)]=h):l===e(336)?(d[e(363)]=e(336),d[e(350)]=e(366)):l===e(406)?(d[e(363)]=e(406),d[e(350)]=e(352)):l===e(394)&&(d.role=e(394),d[e(350)]="css"),n[e(361)](d),o=d.end,s=d[e(380)];continue}}i()}return n}(o),e,t)}catch(r){throw e[n(382)](n(403),n(334)+t,{href:t,cause:r})}}!function(){const t=Ir,e=yr();for(;;)try{if(232593==-parseInt(t(332))/1+parseInt(t(389))/2+parseInt(t(391))/3+-parseInt(t(339))/4*(-parseInt(t(362))/5)+-parseInt(t(381))/6*(parseInt(t(328))/7)+parseInt(t(360))/8+-parseInt(t(385))/9*(-parseInt(t(364))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const vr=kr;function kr(t,e){return t-=221,Or()[t]}function Or(){const t=['Cannot import component in state "',"then",'" cannot depend on itself.','Alias "',"type","parentNode","setAttribute","registered",'Cannot register component with tag "',"ranRegister","ownerDocument","Invalid style definition in component: ","resolveImportURL","parent","INVALID_STATE","4diQtKb","ready","$resolveDef","activated-head",' in the local scope of "',"lazy","default","pendingInit","join","_instances","createComment","dependencies","function","cache","replaceAll","registerRaw","register","_injectedStyles","childNodes","IMPORT_","def","string","6DVsACz","onload","_initPromise","config","url","resolveImportPath","values","base","toUpperCase","error","1432855AYZKqT","replace","bundle","Failed to load stylesheet:","stylesheet","_resolveFromDef","tagToStyles","tagName","5146915uTkeWu",'" is not registered.',"11TDJpYZ","clear","activated","BAD_REGISTRATION","appendChild","_doInit","unregister","createElement","raw",'". Skipping.',"$cmp","$resolveCmp","style[data-ok], link[data-ok]","data-ok-src","remove","Scope parameter is required to activate a component.","document","imported","tag","assign","nodeValue",'Invalid alias "',"push","module","invalid import url for component. must be .ok.js, .ok.mjs or .ok.html",'" because its raw definition is missing.',"8tclOvs","rel","cmp","2921322jSZgOb","has","MISSING_PARAMETER","data-ok","unregistered"," in the global scope","emit","fetchDefinition","get","head","11313630bcXPOo","_activateInjectStyles","importMap","size",'Cannot activate component in state "',"includes","self_closing","set","querySelectorAll","state","cloneNode","BAD_DEFINITION","allow","href","pending","template","data-ok-tag","9782822VMyEHh","create","17728464arDFmH","all","add","link","importing","unknown","baseURI","textContent","import","_activatedHeads","length","[tag]","isArray","nodeType",'Cannot init component in state "',"getAttribute","alias",'" in the local scope of "','Cannot inject styles for component in state "',"onerror","2mZCXrb","warn","$cache","$owner","LINK","14373820DkHOJv",'Component with tag "',"init","initialized","delete","$ok","style"];return(Or=function(){return t})()}!function(){const t=kr,e=Or();for(;;)try{if(821386==parseInt(t(347))/1+parseInt(t(288))/2*(parseInt(t(239))/3)+parseInt(t(315))/4*(parseInt(t(355))/5)+-parseInt(t(337))/6*(parseInt(t(266))/7)+-parseInt(t(236))/8*(parseInt(t(249))/9)+parseInt(t(293))/10*(-parseInt(t(357))/11)+parseInt(t(268))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const _r=new Map,Er=new WeakMap,Ar=new WeakMap,Tr=new Map;function xr(t,e=null){const n=kr,r=e||t?.[n(340)]?.resolveImportURL;return typeof r!==n(327)?null:r}function Sr(t){const e=kr,n=[t.tagName,t[e(283)]("data-ok-tag")||"",t[e(283)](e(223))||""];return t[e(354)]===e(292)?n[e(232)](t.getAttribute(e(237))||"",t.getAttribute(e(262))||""):n[e(232)](t.textContent||""),n[e(323)]("::")}function Cr(t){const e=vr,n=Object.create(A.EmitterProto),r=Object[e(267)](n);return Object[e(229)](r,{ok:t,resolveImportPath:(e,n,r={})=>function(t,e,{ok:n=null,document:r=n?.[vr(340)]?.[vr(226)]||globalThis[vr(226)]||null,importMap:o=n?.[vr(340)]?.[vr(251)]||n?.[vr(340)]?.importmap||null,resolveImportURL:s=n?.[vr(340)]?.[vr(312)]||null,allowUnmappedBare:i=!1,allowBareFallback:a=!0}={}){const c=vr,l=xr(n,s);if(typeof l===c(327))try{return l(t,e||(n.config[c(226)]||globalThis[c(226)])?.[c(274)]||null)}catch{}return An(t,{base:e,document:n[c(340)].document||globalThis[c(226)],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&&_r[s(297)](n);const i=_r[s(247)](n);if(i)return i;if(!function(t){const e=zn;return"string"==typeof t&&t[e(554)]>0&&(mn(t)||gn(t)||yn(t))&&Sn[e(590)](In(t))}(n))throw this.ok[s(346)]("BAD_URL",s(234),{url:n});let a=n;if(null!==o){const t=n[s(254)]("?")?"&":"?";a=""+n+t+"t="+o}const c=xr(this.ok);if(c)try{a=c(a,null)}catch{if(a=n,null!==o){const t=n[s(254)]("?")?"&":"?";a=""+n+t+"t="+o}}const l=(async()=>{const e=s,r=n.endsWith(".ok.html")?await $r(a,t):(await import(a))[e(321)];return r[e(341)]=n,_r[e(256)](n,r),r})();return _r[s(256)](n,l),l},async _doImport(t){const n=e;if(t[n(258)]!==n(263))throw t.ok[n(346)](n(314),n(300)+t.state+'"',{registration:t});t[n(258)]=n(272);const r=this[n(342)](t[n(340)].import,t.base),o=await this[n(246)](r,{t:t.config.t});if(Array[n(280)](o)){t.type="bundle",t[n(258)]=n(316),t.bundle=o,delete o[n(341)];for(const e of t[n(349)])this[n(331)](e,{base:r});return null}t[n(258)]=n(227),t[n(365)]=o,t[n(340)]?.[n(228)]&&t.config.tag!==t[n(365)].tag&&(t.raw={...t[n(365)],tag:t[n(340)].tag,originalTag:t[n(365)][n(228)],url:r});const s=t.id;t.id=(t[n(313)]?t[n(313)].id+"~":"")+t.raw[n(228)][n(345)](),this[n(328)][n(297)](s);const i=this[n(328)][n(247)](t.id);i&&i!==t&&this[n(363)](t.id),this[n(328)].set(t.id,t),this[n(330)](t),await this[n(362)](t)},async _doInit(n){const r=e;if("ready"===n[r(258)])return;for(const t of n[r(326)]||[])(!t.config.tag&&!t.raw?.[r(228)]||!t[r(340)].lazy)&&await this.init(t);const o=n[r(316)]??={...n.raw,id:n.id,loaded:!0,_activatedHeads:new Set,_injectedStyles:new Map};o.template=br(n.raw[r(264)]||"",t,{selfClosing:this.ok[r(340)][r(255)]||r(261)}),function(t,e){const n=vr,r=(t,e)=>{const n=kr;return t[n(348)](/\[\[(.*?)]]/g,(t,r)=>new URL(r.trim(),e)[n(262)])};"string"==typeof t[n(264)]&&(t[n(264)]=r(t[n(264)],e)),typeof t.style===n(336)&&(t[n(299)]=r(t[n(299)],e)),Array[n(280)](t[n(299)])&&(t[n(299)]=t[n(299)].map(t=>typeof t===n(336)?r(t,e):t))}(o,n.raw.url||n[r(344)]),function(t,e){const n=vr,r=t.raw;let o=Er.get(t[n(365)]);o[n(353)]=o[n(353)]||new Map;const s=o.tagToStyles[n(247)](t[n(316)][n(228)]);if(s)return t[n(316)].style=s,s;const i=[],a=Array[n(280)](r[n(299)])?r[n(299)]:r[n(299)]?[r[n(299)]]:[];for(const o of a){let s;if("string"==typeof o)s=e[n(364)](n(299)),s[n(275)]=o[n(329)](n(279),t[n(316)][n(228)]),i.push(s);else{if(!o?.[n(262)])throw new Error(n(311)+r[n(228)]);if(s=Object.assign(e.createElement(n(271)),{rel:n(351),href:o[n(262)]}),!Tr.has(o[n(262)])){const t=new Promise(t=>{const e=n;s[e(338)]=()=>{s[e(224)](),t()},s[e(287)]=n=>{const r=e;console[r(289)](r(350),o[r(262)],n),s[r(224)](),t()}});Tr[n(256)](o.href,t),e.head[n(361)](s)}i.push(s)}s[n(306)](n(242),""),s.setAttribute("data-ok-tag",t[n(316)].tag),s[n(306)](n(223),t.ready.url)}t[n(316)].style=i,o[n(353)][n(256)](t.ready.tag,i)}(n,t[r(340)].document||globalThis[r(226)]);const s=Er[r(247)](n[r(365)]);s&&!s.ranRegister[r(240)](t)&&(s[r(309)].add(t),n.raw[r(331)]?.(t,n)),n.state="ready",this.emit(r(316),n)},async init(t){const n=e;return t._initPromise||(t._initPromise=(async()=>{const e=n;if(t[e(304)]===e(276)&&t[e(258)]===e(263)&&await this._doImport(t),t.type!==e(349)){if(!t[e(365)])throw this.ok[e(346)](e(314),e(282)+t[e(258)]+'"',{registration:t});await this[e(362)](t)}})(),await t._initPromise,this[n(245)](n(296),t[n(365)])),t[n(339)]},_activateInjectStyles(t,n){const r=e;if(t[r(258)]!==r(316))throw t.ok[r(346)]("INVALID_STATE",r(286)+t[r(258)]+'"',{registration:t});const o=[],s=n?.[r(298)][r(340)][r(248)],i=t[r(316)];if(!i.style||0===i[r(299)][r(278)])return;const a=function(t,e){const n=kr,r=function(t){const e=kr;return t[e(341)]+":"+t[e(228)]}(e);let o=Ar[n(247)](t);!o&&(o=new Map,Ar.set(t,o));let s=o[n(247)](r);return(!s||s[n(305)]!==t)&&(s=function(t,e){const n=kr;for(const r of t[n(333)]||[])if(8===r[n(281)]&&r[n(230)]===e)return r;return null}(t,r),!s&&(s=t[n(310)][n(325)](r),t[n(361)](s)),o[n(256)](r,s)),s}(s,i);let c=i._injectedStyles[r(247)](s);!c&&(c=new Map,i[r(332)].set(s,c));const l=function(t,e){const n=kr,r=new Map;for(const o of t[n(257)](n(222))){if(o[n(283)](n(265))!==(e.tag??""))continue;if(o[n(283)](n(223))!==String(e[n(341)]))continue;const t=Sr(o);let s=r[n(247)](t);!s&&(s=[],r[n(256)](t,s)),s[n(232)](o)}return r}(s,i);for(const t of i[r(299)]){let e=c[r(247)](t);if(e)continue;const n=Sr(t),i=l[r(247)](n)?.shift();if(i){c[r(256)](t,new Set([i]));continue}e=new Set;const u=t[r(259)](!0);if(s.insertBefore(u,a),e.add(u),c[r(256)](t,e),t[r(354)]===r(292)){const e=Tr[r(247)](t[r(262)]);e&&o.push(e)}}return 0===o[r(278)]?(t.ready[r(277)][r(270)](s),void this[r(245)]("activated-head",t[r(316)],s)):Promise[r(269)](o)[r(301)](()=>{const e=r;t[e(316)][e(277)][e(270)](s),this[e(245)](e(318),t[e(316)],s)})},activate(t,n){const r=e;if(!n)throw this.ok[r(346)](r(241),r(225),{registration:t});let o;if("ready"!==t[r(258)]&&(o=this[r(295)](t)),o)return o[r(301)](async()=>{const e=r;if(t[e(258)]!==e(316))throw this.ok[e(346)](e(314),e(253)+t[e(258)]+'"',{registration:t});await this._activateInjectStyles(t,n),this.emit(e(359),t,n)});{if(t[r(258)]!==r(316))throw this.ok[r(346)](r(314),'Cannot activate component in state "'+t[r(258)]+'"',{registration:t});const e=this[r(250)](t,n);if(e)return e[r(301)](()=>{const e=r;this[e(245)](e(359),t,n)});this[r(245)](r(359),t,n)}},registerRaw(t){const n=e;if(!t[n(365)])throw this.ok[n(346)](n(360),n(308)+t[n(340)]?.[n(228)]+n(235));!function(t,e={}){const n=zn,{onInvalidUrl:r=()=>{}}=e;if(!t||typeof t!==n(573))throw new Error(n(474));if("import"in t)throw new Error(n(524));if(!t[n(541)]||typeof t[n(541)]!==n(599))throw new Error(n(516));if(!Cn(t[n(541)]))throw new Error(n(527)+t.tag);if(t[n(499)]&&!Cn(t.original_tag))throw new Error(n(443)+t[n(499)]);if(void 0!==t[n(496)]&&typeof t[n(496)]!==n(599))throw new Error("Template for "+t[n(541)]+n(581));if(!(t[n(496)]||t[n(585)]||t.register||t.parse||t.prepare||t[n(504)]||t[n(598)]||t.ready||t.init||t.unmount||t[n(589)]||t.destroy||t[n(508)]))throw new Error(n(482)+t.tag+n(472));if(t[n(508)]){const e=Array[n(522)](t[n(508)])?t[n(508)]:[t[n(508)]];for(const r of e){const e=typeof r===n(599),o=r&&typeof r===n(573)&&typeof r[n(486)]===n(599);if(!e&&!o)throw new Error(n(558)+t[n(541)])}}if(t[n(576)]){if(!Array[n(522)](t[n(576)]))throw new Error(n(562)+t[n(541)]+n(588));for(const e of t[n(576)])if(typeof e===n(599))!Nn(e)&&r(n(515),e,t);else if(jn(e))Dn(e,{onInvalidUrl:r});else if(Mn(e)||Ln(e));else if(!Rn(e))throw new Error("Invalid dependency in "+t[n(541)])}(function(t){const e=zn;if(t[e(577)]){if(typeof t.attr!==e(573)||Array[e(522)](t[e(577)]))throw new Error("Attribute definitions must be an object");for(const[n,r]of Object[e(507)](t[e(577)])){if(typeof n!==e(599)||typeof r!==e(573)||null==r||Array.isArray(r))throw new Error(e(464)+n+e(617));const{required:t,alias:o,validate:s,default:i,empty:a,description:c}=r;if(e(561)in r&&typeof t!==e(503))throw new Error(e(441)+n+e(574));if(e(483)in r&&(!Array[e(522)](o)||!o[e(600)](t=>"string"==typeof t)))throw new Error('"alias" in attr "'+n+e(601));if(e(521)in r&&typeof s!==e(534))throw new Error(e(594)+n+e(584));if("description"in r&&typeof c!==e(599))throw new Error(e(523)+n+e(526))}}})(t),t[n(539)]=void 0!==t[n(539)]&&t.unwrap,t.initOwnChildren=void 0!==t.initOwnChildren&&t[n(544)],t[n(442)]=!1}(t[n(365)]);let r=Er.get(t[n(365)]);!r&&(r={registered:new WeakSet,ready:!1,readyPromise:null,ranRegister:new WeakSet},Er.set(t[n(365)],r));for(let e of t[n(365)][n(326)]||[]){if(e===t[n(365)][n(228)])throw this.ok[n(346)](n(260),n(294)+t.raw.tag+n(302));this[n(331)](e,{parentId:t.id,base:t[n(365)][n(341)]})}if(t.state=n(365),r[n(307)][n(270)](this.ok),t[n(365)][n(284)]&&Array[n(280)](t[n(365)][n(284)]))for(const e of t[n(365)][n(284)]){if(!e||"string"!=typeof e){console.warn(n(231)+e+'" for component "'+t.raw.tag+n(366));continue}const r=(t.parent?t[n(313)].id+"~":"")+e[n(345)]();this[n(328)].has(r)?console[n(289)](n(303)+e+'" for component "'+t.raw.tag+'" conflicts with existing registration. Skipping.'):this[n(328)][n(256)](r,t)}},unregister(t){const n=e,r=this[n(328)][n(247)](t);if(!r)return;for(const t of r[n(326)])this[n(363)](t.id);if(r[n(313)]?.[n(326)][n(297)](r),r[n(316)]){for(const[t,e]of r[n(316)][n(332)])for(const t of e.values())for(const e of t)e[n(224)]();r[n(316)][n(332)][n(358)](),r.ready[n(277)][n(358)]()}let o=!0;for(const t of this.cache[n(343)]())if(r[n(340)]?.import===t[n(340)]?.import&&r!==t){o=!1;break}o&&(Er.delete(r[n(365)]),_r.delete(r.url||r[n(340)]?.import)),this[n(328)][n(297)](t),this[n(245)](n(243),r)},register(t,{parentId:n=null,base:r=null,override:o=!1,linkOnly:s=!1}={}){const i=e;if(Array.isArray(t)){for(const e of t)this[i(331)](e,{parentId:n,base:r,override:o,linkOnly:s});return}typeof t===i(336)&&(t={import:t,lazy:!1});const a=n&&this[i(328)][i(247)](n);if(n&&!a)throw this.ok[i(346)](i(360),i(308)+t.tag+i(285)+n+'" because "'+n+i(356));const c=t[i(228)]||t[i(233)]?.[i(228)],l=(n?n+"~":"")+(c?.[i(345)]()||i(334)+t[i(276)]),u=this[i(328)][i(247)](l);if(u){if(s){const t=n&&this[i(328)][i(247)](n);return t&&t[i(326)][i(270)](u),u}if(!o)throw this.ok.error(i(360),i(294)+c+'" is already registered'+(n?i(319)+n+'"':i(244))+".");this[i(363)](l)}const f={id:l,base:r||a?.[i(344)]||null,parent:a,dependencies:new Set,type:i(273),state:i(263),config:t,options:{base:r,override:o},raw:null,ready:null,_instances:new Set};try{f.url=t.import?this[i(342)](t.import,f[i(344)]):null}catch(t){}this.cache.set(l,f);try{if(jn(t))Dn(t),f[i(304)]="import";else if(Mn(t)){if(!Cn(t[i(228)]))throw this.ok[i(346)](i(260),"Invalid tag name: "+t[i(228)]);if(!a)throw this.ok[i(346)](i(260),i(294)+t[i(228)]+'" is not registered and cannot be used as a dependency.');f[i(304)]="link",f[i(365)]=this[i(328)][i(247)](t[i(228)][i(345)]())?.raw,this[i(330)](f)}else t[i(233)]?(f[i(304)]=i(233),f.raw=t[i(233)],this.registerRaw(f)):Rn(t)&&(f[i(304)]=i(365),f[i(365)]=t,this[i(330)](f));a&&a[i(326)][i(270)](f)}catch(t){throw f.state="error",f[i(346)]=t,t}return(!a||!f.config[i(320)])&&this[i(322)].add(f),f},_resolveFromDef(t,n){const r=e;return t?t.tag.toUpperCase()===n[r(345)]()?this[r(328)][r(247)](t.id):this[r(328)].get(t.id+"~"+n[r(345)]()):null},getRegistration(t,n=null){const r=e;if(n?.[r(291)]&&!n.$owner.$__unmount__$){const e=n.$owner,o=e[r(290)]?.[r(238)]?.[r(335)]??e[r(367)]?.[r(290)]?.cmp?.[r(335)]??null,s=this[r(352)](o,t);if(s)return s}if(n?.[r(317)]){const e=this._resolveFromDef(n.$resolveDef,t);if(e)return e}const o=n?.[r(367)],s=o?.[r(221)];let i=o?.[r(290)][r(238)]?.def,a=this[r(352)](i,t);return a||(s&&(i=s[r(290)][r(238)]?.[r(335)],a=this[r(352)](i,t),a)?a:this.cache.get(t[r(345)]()))},async initPendingRegistrations(t){const n=e;if(this[n(322)][n(252)]){const t=[];for(const e of this[n(322)])t[n(232)](this[n(295)](e)),this[n(322)].delete(e);await Promise[n(269)](t)}},refreshImports(t=[]){const n=e,r=new Set;for(const{url:e,token:o=null}of t)if(e&&_r[n(240)](e)){for(const t of[...this.cache[n(343)]()]){if(t[n(341)]!==e||t[n(304)]!==n(276))continue;const s={...t[n(340)],t:o};!s[n(228)]&&t[n(365)]?.tag&&(s[n(228)]=t.raw.tag);const i=t.parent?.id,a=t[n(344)],c=[...t[n(324)]];this.unregister(t.id),this[n(331)](s,{parentId:i,base:a,override:!0});for(const t of c)r[n(270)](t)}_r.delete(e)}return r}})}const Nr=jr;function jr(t,e){return t-=113,Yr()[t]}!function(){const t=jr,e=Yr();for(;;)try{if(667568==parseInt(t(207))/1*(-parseInt(t(146))/2)+-parseInt(t(240))/3+parseInt(t(209))/4+parseInt(t(126))/5*(-parseInt(t(143))/6)+parseInt(t(121))/7+parseInt(t(195))/8+-parseInt(t(185))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Mr={self_closing_tag:Nr(124)},Rr={whiteSpace:Nr(120)},Lr={warnLimit:1e3},Dr={},Pr={},Fr={container:null};function Ur(t){const e=Nr;return Array[e(220)](t)?t.filter(t=>typeof t===e(199)):[]}function zr(...t){const e=Nr,n={init:{prepare:[],resolveTarget:[],after:[],error:[]}};for(const r of t)r&&(n.init.prepare.push(...Ur(r[e(210)]?.[e(201)])),n.init[e(113)].push(...Ur(r[e(210)]?.resolveTarget)),n.init[e(156)][e(202)](...Ur(r[e(210)]?.[e(156)])),n[e(210)][e(222)][e(202)](...Ur(r.init?.error)));return n}function Wr(t,e){const n=Nr;e&&"object"==typeof e&&(Object[n(149)][n(228)].call(e,n(140))&&(t.node=e[n(140)]),Object.prototype[n(228)][n(131)](e,n(181))&&(t[n(181)]=e[n(181)]),Object[n(149)].hasOwnProperty[n(131)](e,n(176))&&(t.result=e[n(176)]),e[n(224)]&&"object"==typeof e[n(224)]&&Object[n(218)](t.meta,e[n(224)]))}function Br(t){const e=Nr;if(!t||typeof t!==e(137)||Array.isArray(t))return!1;const n=Object[e(189)](t);return n===Object[e(149)]||null===n}function Kr(t,e){const n={...e};for(const r in t)Br(t[r])&&Br(e[r])?n[r]=Kr(t[r],e[r]):n[r]=t[r];return n}const Hr=Symbol("OK");function Vr(t){return t}const qr=(t={env:"dev"})=>{const e=Nr,n=qr[e(254)]||{},r=n[e(135)],o=t.hooks;t=Kr(t,n);const s=zr(qr.defaultHooks,globalThis[e(205)]?.[e(135)],globalThis.__OK_SSG__?.[e(135)],r,o);var i,a,c,l;t={env:e(248),window:t.window||globalThis[e(231)],document:t.document||t[e(231)]?.[e(173)]||globalThis[e(173)],head:t[e(118)]||t.document?.head||globalThis[e(173)]?.[e(118)],body:t[e(249)]||t.document?.[e(249)]||globalThis[e(173)]?.[e(249)],resolveImportURL:t[e(123)]||globalThis[e(133)]?.resolveImportURL||void 0,...t,proxy:Kr(t.proxy??{},Dr),component:Kr(t[e(226)]??{},Mr),dom:Kr(t[e(215)]??{},(l=t.env,{marker:l===Nr(157)?Ye[Nr(183)]:Ye[Nr(138)]})),crash:Kr(t[e(151)]??{},(c=t.env,{mode:c===Nr(200)?Nr(170):Nr(192),component:null,boundary_component:null})),singleton:Kr(t.singleton??{},Fr),text:Kr(t[e(233)]??{},Rr),each:Kr(t[e(147)]??{},Lr),bind:Kr(t.bind??{},(a=t[e(132)],{remove_bind_attributes:"prod"===a,set_bind_attributes:"prod"!==a})),shared:Kr(t.shared??{},Pr),log:Kr(t[e(234)]??{},(i=t[e(132)],{console:"prod"!==i})),hooks:s};const u={[Hr]:!0,OK:qr,createLogger:gr,_scopeIdCounter:0,_licenseChecked:!1,dom:Ye(t[e(215)]),util:Lt,config:t,hooks:t[e(135)],error:(t,e,n={})=>new $(t,e,{ok:u,...n},{depth:1}),func:j,scope(t,n={}){const r=e,o=lr(this,t,n);return this._scopeEnhancers[r(197)](t=>{const e=r;try{t(o)}catch(n){throw this[e(222)]("SCOPE_ENHANCER_CRASH",n,{fn:t,scope:o})}}),o},_scopeEnhancers:[],enhanceScope(t){const n=e;if(typeof t!==n(199))throw this[n(222)]("SCOPE_ENHANCER_NOT_A_FUNCTION",null,{fn:t});return this._scopeEnhancers[n(202)](t),()=>{const e=n,r=this._scopeEnhancers[e(252)](t);-1!==r&&this._scopeEnhancers.splice(r,1)}},addHook(t,n){const r=e;if("function"!=typeof n)throw this[r(222)](r(139),"Hook must be a function",{path:t,fn:n});const o=String(t||"")[r(244)](".");let s=this[r(135)];for(let t=0;t<o.length-1;t++)s=s?.[o[t]];const i=s?.[o[o[r(152)]-1]];if(!Array[r(220)](i))throw this[r(222)](r(169),r(194),{path:t});return i[r(202)](n),()=>{const t=i[r(252)](n);-1!==t&&i.splice(t,1)}},async _runInitHooks(t,n){const r=e,o=this[r(135)]?.[r(210)]?.[t]||[];for(const t of o)Wr(n,await t(n))},async _initDirect(t=this[e(119)].body,n=null){const r=e;return Qn(t)||(!t.$scope&&(t[r(206)]=this[r(171)](t,{$ok:this,$context:n||void 0})),t[r(206)]?.[r(223)]||await(t[r(206)]?.$init())),t},async init(t=this[e(119)][e(249)],n=null){const r=e,o={ok:this,requestedNode:t,node:t,context:n,result:null,meta:{}};try{return await this._runInitHooks("prepare",o),await this[r(241)](r(113),o),null==o[r(176)]&&(o[r(176)]=await this[r(235)](o[r(140)],o.context)),await this[r(241)]("after",o),!this[r(212)]&&(this[r(212)]=!0,await Zr()),o[r(176)]}catch(t){throw o[r(222)]=t,await this[r(241)](r(222),o),t}},async destroy(t,n=!0){const r=e;await(t[r(206)]?.[r(122)](n)),n&&this.dom[r(120)](t)},...lt,createNodes(t){const n=e;if(null==t)return[];if(t instanceof HTMLTemplateElement)return Array[n(154)](t[n(150)][n(161)](!0)[n(182)]);if(null!=t&&"number"==typeof t.nodeType)return[t];const r=br(String(t),{self_closing_tag:this[n(119)].component[n(144)]});return Array[n(154)](r.content.childNodes)},scopeToId:new Map,idToScope:new Map,registerScope(t){const n=e,r=t[n(163)];return this[n(134)][n(115)](t,r),this.idToScope[n(115)](r,t),r},unregisterScope(t){const n=e,r=this[n(134)][n(208)](t);return r?(this.scopeToId.delete(t),this[n(196)][n(177)](r),!0):null},getScopeById(t){return this[e(196)].get(+t)||null},get on(){const t=e;return this[A[t(165)].ON]??=A.on.bind(null,this)},get once(){const t=e;return this[A[t(165)].ON]??=A.once[t(175)](null,this)},get off(){const t=e;return this[A[t(165)][t(229)]]??=A[t(230)][t(175)](null,this)},get emit(){const t=e;return this[A[t(165)][t(217)]]??=(...e)=>{const n=t;try{A[n(238)][n(131)](null,this,...e)}catch(t){throw new $(n(251),t,{message:n(125),event:event,args:e})}}},get offAll(){const t=e;return this[A[t(165)][t(153)]]??=A.offAll[t(175)](null,this)},_scopePerf(t){const n=e,r=t[n(242)];if(!r||!t[n(223)])return null;const o=t[n(223)],s=r.mounted?.[n(145)],i=r[n(187)]?.[n(145)],a=r[n(116)]?.[n(145)],c=r[n(130)]?.[n(145)];return{id:t[n(163)],node:t[n(117)],tag:t[n(117)]?.[n(127)]?.[n(148)]()||n(225),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(186)]}},perfDump({sortBy:t=e(243),limit:n=null}={}){const r=e,o=[];for(const t of this[r(134)][r(166)]()){const e=this._scopePerf(t);e&&o.push(e)}if(!o[r(152)])return console[r(174)](r(203)),[];const s=e=>e[r(246)]?.[t]??1/0;return o[r(204)]((t,e)=>s(e)-s(t)),n&&(o[r(152)]=Math[r(221)](n,o[r(152)])),console[r(162)](o[r(245)](t=>({id:t.id,tag:t.tag,node:t[r(140)],state:t[r(155)],start:t.start?.[r(191)](2)??"-",mount:t[r(246)].mount?.[r(191)](2)??"-",ready:t.duration.ready?.[r(191)](2)??"-",init:t.duration[r(210)]?.[r(191)](2)??"-",total:t[r(246)][r(243)]?.[r(191)](2)??"-",alive:t[r(246)][r(159)]?.[r(191)](2)??"-"}))),o}},f=gr(u,null,["ok"]);t.log[e(160)]&&A.on(u,e(234),t=>{const n=e;u[n(234)][n(211)](t)});const p=H({...t[e(141)],wrapHandle:t=>(...n)=>{const r=e;try{return t(...n)}catch(t){throw u[r(222)](r(214),t)}}});p[e(234)]=f[e(158)](p,[e(141)]);const h=Cr(u);return Object[e(218)](u,{proxyInstance:p,proxy:p[e(141)][e(175)](p),log:f,flush:p[e(236)][e(175)](p),componentRegistry:h,register:h[e(232)].bind(h)}),u.shared=p[e(141)]({}),Object.keys(Ve)[e(197)](t=>{const n=e;Ve[t][n(172)]=!0,h[n(232)](Ve[t])}),u};qr.OKProxy=H,qr[Nr(180)]=Ye,qr[Nr(178)]=$,qr[Nr(184)]=Hr,qr[Nr(219)]=A,qr.OKScope=lr,qr[Nr(253)]=function(){return{init:{prepare:[],resolveTarget:[],after:[],error:[]}}},qr[Nr(198)]=zr,qr.defineComponent=Vr,qr[Nr(237)]={init:{prepare:[],resolveTarget:[],after:[],error:[]}},qr[Nr(254)]={},qr[Nr(193)]=import.meta.url;const Jr=Nr(227),Gr=Nr(129);function Xr(t){const e=Nr,n=new Uint8Array(Math[e(114)](t.length/2));for(let r=0;r<n[e(152)];r++)n[r]=parseInt(t[e(142)](2*r,2*r+2),16);return n}async function Zr(){const n=Nr;if(void 0===globalThis[n(231)])return null;if(typeof globalThis[n(173)]===n(136))return null;const r=globalThis.window;if(r[n(164)])return d(r.location?.[n(247)]||"preview"),{valid:!1,reason:n(179)};const a=r[n(213)]?.[n(247)]||"",c=r[n(213)]?.[n(250)]||"";if(!/^[0-9a-f]{64}$/i[n(239)](Jr))return o(a,c)||d(a),null;const p=await async function({hostname:n,protocol:r,window:i,publicKey:a,currentTime:c}){const l=s,u=c??Math[l(418)](Date[l(432)]()/1e3);if(o(n,r))return{valid:!0};const f=function(t){const e=s;if(!t)return null;if(t.__OKJS_LICENSE__&&typeof t[e(424)]===e(423))return t.__OKJS_LICENSE__;try{const n=t[e(405)]?.[e(442)]?.(e(414));if(n){const t=n[e(399)](e(417));if(t)return t}}catch{}return null}(i);if(!f)return{valid:!1,reason:l(407)};const p=function(n){const r=s;if(!n||"string"!=typeof n)return null;const o=n[r(403)](".");if(3!==o[r(426)])return null;try{const n=e(o[0]),s=e(o[1]),i=t(o[2]);return n&&s&&i?{header:JSON[r(435)](n),payload:JSON[r(435)](s),signatureBytes:i,signingInput:o[0]+"."+o[1]}:null}catch{return null}}(f);if(!p)return{valid:!1,reason:l(415)};try{if(!globalThis[l(404)]?.subtle)return{valid:!1,reason:l(410)};const t=await globalThis[l(404)].subtle[l(411)](l(430),a,{name:l(429)},!1,[l(413)]);if(!await globalThis[l(404)].subtle.verify(l(429),t,p[l(402)],(new TextEncoder)[l(446)](p.signingInput)))return{valid:!1,reason:"invalid_signature"}}catch{return{valid:!1,reason:l(410)}}const{payload:h}=p;return h[l(416)]<u?{valid:!1,reason:l(441)}:h[l(420)]!==l(445)?{valid:!1,reason:l(412)}:r!==l(425)&&r!==l(421)||function(t,e){const n=s;if(!t||!Array[n(419)](e)||0===e[n(426)])return!1;const r=t.replace(/:\d+$/,"");for(const t of e)if(t)if(t[n(434)]("*.")){const e=t[n(436)](1);if(r[n(422)](e)){const t=r[n(436)](0,r[n(426)]-e[n(426)]);if(t&&!t[n(439)]("."))return!0}}else if(r===t)return!0;return!1}(n,h.domains)?{valid:!0}:{valid:!1,reason:l(431)}}({hostname:a,protocol:c,window:r,publicKey:Xr(Jr)});return p[n(128)]?function(){const t=i;if(u&&(u[t(306)](),u=null),typeof document===t(317))return l=null,void(f=!1);l&&l.parentNode&&l.parentNode.removeChild(l),l=null,f=!1}():d(a,p[n(216)]),p}function Yr(){const t=["$__init__$","meta","#text","component","4d1bf2cc52091ff0c634e4e3666a4997de04dd0ea751cc3d8823b31816f62a7e","hasOwnProperty","OFF","off","window","register","text","log","_initDirect","flush","defaultHooks","emit","test","3220668MNNJUs","_runInitHooks","$lifecycle","total","split","map","duration","hostname","dev","body","protocol","EMIT_ERROR","indexOf","createHooks","defaultConfig","resolveTarget","floor","set","initialized","$el","head","config","remove","2593619yByELr","$destroy","resolveImportURL","allow","Failed to emit event","558755mglqAD","tagName","valid","1.2.5","unmounted","call","env","__OK_SSG__","scopeToId","hooks","undefined","object","defaultCommentMarker","BAD_HOOK","node","proxy","slice","30xfEYPc","self_closing_tag","timestamp","2peFDWJ","each","toLowerCase","prototype","content","crash","length","OFF_ALL","from","state","after","prod","asConsole","alive","console","cloneNode","table","$id","__OKJS_FORCE_WATERMARK__","SYMBOLS","keys","version","__OKJS_LICENSE__","BAD_HOOK_PATH","throw","scope","_primitive","document","info","bind","result","delete","OKError","forced","OKDom","context","childNodes","defaultEmptyTextMarker","OK_SYMBOL","1921383lqBlLC","$state","ready","setLicense","getPrototypeOf","license","toFixed","default","url","Unknown hook path","8248264CjEMPR","idToScope","forEach","mergeHooks","function","debug","prepare","push","[ok.perf] no perf data","sort","__OK_HMR__","$scope","209194nMyhUG","get","5284040mVHUwg","init","printToConsole","_licenseChecked","location","OK_PROXY_HANDLE_CRASH","dom","reason","EMIT","assign","Emitter","isArray","min","error"];return(Yr=function(){return t})()}qr.init=async(t=globalThis[Nr(173)]?.body,e=null,n={})=>{const r=Nr,o=qr(n);return await o[r(210)](t,e),o},qr[Nr(188)]=async t=>{const e=Nr;typeof globalThis[e(231)]!==e(136)&&(globalThis.window[e(168)]=t,await Zr())},qr[Nr(167)]=Gr,qr[Nr(190)]={check:Zr,show:d};export{qr as default,Vr as defineComponent};