@simai-studio/ui 5.20261020.2238 → 5.20261021.2249

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.
@@ -178,7 +178,7 @@
178
178
  "badge-count": {
179
179
  "type": "string",
180
180
  "default": "",
181
- "description": "A count on the icon button (simai/ui-source#12): a whole number above 0 shows, 0 or empty hides the badge. Above badge-cap it reads «<cap>+»; the exact number joins the icon button's accessible name («Анна Белова, 3 непрочитанных») and the badge's tooltip. On an anchor of size 1/3 or 1/2 a count is drawn as a dot."
181
+ "description": "A count on the icon button (simai/ui-source#12): a whole number above 0 shows, 0 or empty hides the badge. Above badge-cap it reads «<cap>+»; the exact number joins the icon button's accessible name («Уведомления, 5 непрочитанных») and the badge's tooltip. On an anchor of size 1/3 or 1/2 a count is drawn as a dot."
182
182
  },
183
183
  "badge-dot": {
184
184
  "type": "boolean",
@@ -97,7 +97,7 @@
97
97
  "badge-count": {
98
98
  "type": "string",
99
99
  "default": "",
100
- "description": "A count on the icon (simai/ui-source#12): a whole number above 0 shows, 0 or empty hides the badge. Above badge-cap it reads «<cap>+»; the exact number joins the icon's accessible name («Анна Белова, 3 непрочитанных») and the badge's tooltip. On an anchor of size 1/3 or 1/2 a count is drawn as a dot."
100
+ "description": "A count on the icon (simai/ui-source#12): a whole number above 0 shows, 0 or empty hides the badge. Above badge-cap it reads «<cap>+»; the exact number joins the icon's accessible name («Почта, 3 непрочитанных») and the badge's tooltip. On an anchor of size 1/3 or 1/2 a count is drawn as a dot."
101
101
  },
102
102
  "badge-dot": {
103
103
  "type": "boolean",
@@ -1 +1 @@
1
- (()=>{"use strict";const e="data-sf-resizer-active";function t(e,t,n=t.measure()){const{min:s,max:i}=t.limits();e.setAttribute("aria-valuemin",String(Math.round(s))),e.setAttribute("aria-valuemax",String(Math.round(i))),n&&e.setAttribute("aria-valuenow",String(Math.round(n)))}function n(e,t){const{min:n,max:s}=e.limits();return Math.round(Math.min(Math.max(n,s),Math.max(n,t)))}function s(s,i={}){const r=e=>i.handles?e?.closest?.(i.handles):s,o=e=>(e=>e&&(e===s||s.contains(e)))(e)?i.session?.(e)??null:null;let a=null;const l=t=>{const n=a;n&&(a=null,globalThis.removeEventListener("pointermove",n.move,!0),globalThis.removeEventListener("pointerup",n.up,!0),globalThis.removeEventListener("pointercancel",n.up,!0),document.documentElement.removeAttribute(e),delete n.handle.dataset.sfResizing,n.session.end?.(),t&&n.width!==Math.round(n.from)&&n.session.commit?.(n.width))},u=s=>{if(s.button>0||a)return;const i=r(s.target),u=o(i);if(!u)return;s.preventDefault(),s.stopPropagation(),i.focus?.({preventScroll:!0});const c=u.measure(),h={handle:i,session:u,pointer:s.pointerId,x:s.clientX,from:c,width:Math.round(c),move:e=>{if(e.pointerId!==h.pointer)return;const s=n(u,h.from+(e.clientX-h.x)*(u.direction?.()??1));s!==h.width&&(h.width=u.apply(s,"move")??s,t(i,u,h.width))},up:e=>{e.pointerId===h.pointer&&l(!0)}};a=h,u.start?.(),i.dataset.sfResizing="",document.documentElement.setAttribute(e,""),globalThis.addEventListener("pointermove",h.move,!0),globalThis.addEventListener("pointerup",h.up,!0),globalThis.addEventListener("pointercancel",h.up,!0)},c=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const s=r(e.target);if(s!==e.target)return;const i=o(s);if(!i)return;const{min:a,max:l}=i.limits(),u=i.measure(),c="rtl"===getComputedStyle(s).direction,h=i.direction?.()??1,d=(i.step??16)*(e.shiftKey?4:1),p=(c?-1:1)*h;let m=null;if("ArrowRight"===e.key)m=u+d*p;else if("ArrowLeft"===e.key)m=u-d*p;else if("PageUp"===e.key)m=u+4*d;else if("PageDown"===e.key)m=u-4*d;else if("Home"===e.key)m=a;else if("End"===e.key)m=l;else if("Enter"===e.key||" "===e.key)return e.preventDefault(),e.stopPropagation(),void i.reset?.();if(null===m)return;e.preventDefault(),e.stopPropagation();const g=i.apply(n(i,m),"end")??n(i,m);t(s,i,g),i.commit?.(g)},h=e=>{const t=r(e.target),n=o(t);n&&(e.preventDefault(),e.stopPropagation(),n.reset?.())},d=e=>{const n=r(e.target),s=o(n);s&&t(n,s)};return s.addEventListener("pointerdown",u),s.addEventListener("keydown",c),s.addEventListener("dblclick",h),s.addEventListener("focusin",d),i.handles||(s.setAttribute("role","separator"),s.setAttribute("aria-orientation","vertical")),()=>{l(!1),s.removeEventListener("pointerdown",u),s.removeEventListener("keydown",c),s.removeEventListener("dblclick",h),s.removeEventListener("focusin",d)}}const i="sf-pref:",r=/^[\w.*:-]+(?:\/[\w.*:/-]+)?$/u;function o(){try{return globalThis.localStorage??null}catch{return null}}function a(e){return"string"==typeof e&&e.length>0&&e.length<=200&&r.test(e)}function l(e,t){try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}function u(e){return null==e?null:JSON.parse(JSON.stringify(e))}"undefined"!=typeof globalThis&&(globalThis.SF=globalThis.SF||{},globalThis.SF.Preferences||(globalThis.SF.Preferences=function(){const e={adapter:null,values:new Map},t=new Map,n=new Map;let s=!1;const r=()=>{if(s)return;const e=globalThis.document?.querySelector?.('script[type="application/json"][data-sf-preferences], script#sf-preferences[type="application/json"]');if(e){s=!0;try{g.preload(JSON.parse(e.textContent||"{}"))}catch{}}},c=(e,n)=>{for(const s of t.get(e)??[])try{s(u(n),e)}catch(t){console.error("SF.Preferences listener failed",e,t)}},h=e=>{const t=o();if(!t)return null;try{const n=t.getItem(i+e);return null===n?null:JSON.parse(n)}catch{return null}},d=(e,t)=>{const n=o();if(n)try{null===t?n.removeItem(i+e):n.setItem(i+e,JSON.stringify(t))}catch{}},p=t=>{clearTimeout(n.get(t)),n.delete(t);const s=e.adapter;if(!s)return;const i=e.values.has(t)?e.values.get(t):h(t);try{const e=null===i?s.remove?.(t):s.save?.(t,u(i));Promise.resolve(e).catch(e=>console.warn("SF.Preferences: the host did not keep",t,e))}catch(e){console.warn("SF.Preferences: the host did not keep",t,e)}},m=t=>{e.adapter&&(clearTimeout(n.get(t)),n.set(t,setTimeout(()=>p(t),400)))},g={read:t=>a(t)?(r(),e.values.has(t)?u(e.values.get(t)):u(h(t))):null,readMerged(...e){const t={};let n=!1;for(const s of e.flat()){const e=g.read(s);e&&"object"==typeof e&&!Array.isArray(e)&&(Object.assign(t,e),n=!0)}return n?t:null},write(t,n){if(!a(t))return!1;const s=u(n);return JSON.stringify(g.read(t))===JSON.stringify(s)||(e.values.has(t)&&e.values.set(t,s),d(t,s),m(t)),!0},remove:t=>!!a(t)&&(e.values.has(t)&&e.values.set(t,null),d(t,null),m(t),c(t,null),!0),subscribe:(e,n)=>a(e)&&"function"==typeof n?(t.has(e)||t.set(e,new Set),t.get(e).add(n),()=>t.get(e)?.delete(n)):()=>{},preload(t){if(t&&"object"==typeof t)for(const[n,s]of Object.entries(t)){if(!a(n))continue;const t=u(s),i=g.read(n);e.values.set(n,t),d(n,t),l(i,t)||c(n,t)}},useHost(t){if(!t||"function"!=typeof t.save)throw new TypeError("A preferences host saves: {save(key, value)}");return e.adapter=t,g},async load(t){const n=[].concat(t).filter(t=>a(t)&&!e.values.has(t));if(n.length&&"function"==typeof e.adapter?.load)try{g.preload(await e.adapter.load(n))}catch(e){console.warn("SF.Preferences: the host did not answer",n,e)}},get hosted(){return Boolean(e.adapter)},flush(){for(const e of[...n.keys()])p(e)}};return globalThis.addEventListener?.("storage",t=>{if(!t.key?.startsWith(i)||t.storageArea!==o())return;const n=t.key.slice(8);if(e.values.has(n))return;let s=null;try{s=null===t.newValue?null:JSON.parse(t.newValue)}catch{s=null}c(n,s)}),globalThis.addEventListener?.("pagehide",()=>g.flush()),r(),Object.freeze(g)}()));const c=globalThis.SF?.Preferences,h=c,d={en:{label:"Resize",hint:"Drag, or use the arrow keys; a double click restores the width."},ru:{label:"Изменить ширину",hint:"Тяните или нажимайте стрелки; двойной щелчок возвращает ширину."}};function p(e,t){if(null==e||""===e)return null;const n=Number(e);if(Number.isFinite(n))return n;const s=document.createElement("span");s.style.cssText="position:absolute;visibility:hidden;pointer-events:none;block-size:0;padding:0;border:0",s.style.inlineSize=String(e),(t?.isConnected?t:document.body).append(s);const i=parseFloat(getComputedStyle(s).width);return s.remove(),Number.isFinite(i)?i:null}const m=()=>globalThis.SF?.Preferences||h,g=e=>`sf-resizer/${String(e).replace(/[^\w.:-]+/gu,"-")}`;function f(e,t){e&&(null===t?m()?.remove(g(e)):m()?.write(g(e),{v:1,width:Math.round(t)}))}class b extends HTMLElement{static get observedAttributes(){return["min","max","label","disabled","value"]}constructor(){super(),this._onWindowResize=()=>this.clampToLimits()}connectedCallback(){this.hasAttribute("tabindex")||(this.tabIndex=0),this.syncLabel(),this._detach=s(this,{session:()=>this.disabled?null:this.session()}),globalThis.addEventListener("resize",this._onWindowResize),requestAnimationFrame(()=>{if(!this.isConnected)return;const e=this.target();e&&"static"===getComputedStyle(e).position&&(e.style.position="relative");const t=Number(this.getAttribute("value"))||function(e){if(!e)return null;const t=m()?.read(g(e));if(Number.isFinite(t?.width))return t.width;try{const t=Number(globalThis.localStorage?.getItem(`sf-resizer:${e}`))||null;return t&&(m()?.write(g(e),{v:1,width:t}),globalThis.localStorage?.removeItem(`sf-resizer:${e}`)),t}catch{return null}}(this.storageKey);t&&this.apply(t),this.syncValue()})}disconnectedCallback(){this._detach?.(),this._detach=null,globalThis.removeEventListener("resize",this._onWindowResize)}attributeChangedCallback(e,t,n){"value"===e&&n&&n!==t&&this.isConnected?this.restore(n):this.isConnected&&(this.syncLabel(),this.syncValue())}get storageKey(){return this.getAttribute("storage-key")||""}get property(){return this.getAttribute("property")||""}get step(){return Math.max(1,Number(this.getAttribute("step"))||16)}get disabled(){return this.hasAttribute("disabled")}target(){const e=this.getAttribute("target");return(e?this.parentElement?.closest(e):this.parentElement)??null}limits(){const e=this.target()?.parentElement??document.body,t=p(this.getAttribute("min")||"12rem",e)??0,n=p(this.getAttribute("max")||"40rem",e)??1/0;return{min:t,max:Math.max(t,n)}}width(){return this.target()?.getBoundingClientRect().width??0}session(){return{measure:()=>this.width(),limits:()=>this.limits(),apply:(e,t)=>{const n=this.apply(e);return"move"===t&&null!==n&&this.announce(n,"move"),n},commit:e=>this.commit(e),reset:()=>this.reset(),direction:()=>("rtl"===getComputedStyle(this).direction?-1:1)*("inline-start"===this.getAttribute("edge")?-1:1),step:this.step}}apply(e){const t=this.target();if(!t)return null;const{min:n,max:s}=this.limits(),i=Math.round(Math.min(s,Math.max(n,e)));return this.property?t.style.setProperty(this.property,`${i}px`):t.style.inlineSize=`${i}px`,this.syncValue(i),i}announce(e,t){this.dispatchEvent(new CustomEvent("sf-resize",{bubbles:!0,composed:!0,detail:{width:e,phase:t}}))}commit(e){f(this.storageKey,e),this.announce(e,"end")}reset(){if(this.disabled)return;const e=this.target();e&&(this.property?e.style.removeProperty(this.property):e.style.removeProperty("inline-size"),f(this.storageKey,null),requestAnimationFrame(()=>{const e=Math.round(this.width());this.syncValue(e),this.announce(e,"reset")}))}restore(e){const t=Number(e);if(!Number.isFinite(t)||t<=0)return null;const n=this.apply(t);return null!==n&&f(this.storageKey,n),n}clampToLimits(){const e=this.target();if(!e)return;const t=this.property?e.style.getPropertyValue(this.property):e.style.inlineSize;if(!t)return;const{min:n,max:s}=this.limits(),i=Number.parseFloat(t);Number.isFinite(i)&&(i>s||i<n)&&this.apply(i)}syncLabel(){const e=d[function(e){const t=(e.closest("[lang]")?.getAttribute("lang")||document.documentElement.lang||"en").slice(0,2).toLowerCase();return d[t]?t:"en"}(this)];this.getAttribute("aria-label")&&!this._ownLabel||(this.setAttribute("aria-label",this.getAttribute("label")||e.label),this._ownLabel=!0),this.title=this.getAttribute("label")?`${this.getAttribute("label")}. ${e.hint}`:e.hint,this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}syncValue(e=this.width()){t(this,{limits:()=>this.limits(),measure:()=>e},e)}}customElements.get("sf-resizer")||customElements.define("sf-resizer",b),globalThis.SF=globalThis.SF||{},globalThis.SF.Resizer=Object.freeze({SfResizer:b,attach:s,attachResizer:s})})();
1
+ (()=>{"use strict";var e={"51250bf01ab0"(e,t,r){const n="sf-pref:",s=/^[\w.*:-]+(?:\/[\w.*:/-]+)?$/u;function i(){try{return globalThis.localStorage??null}catch{return null}}function o(e){return"string"==typeof e&&e.length>0&&e.length<=200&&s.test(e)}function a(e,t){try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}function l(e){return null==e?null:JSON.parse(JSON.stringify(e))}"undefined"!=typeof globalThis&&(globalThis.SF=globalThis.SF||{},globalThis.SF.Preferences||(globalThis.SF.Preferences=function(){const e={adapter:null,values:new Map},t=new Map,r=new Map;let s=!1;const u=()=>{if(s)return;const e=globalThis.document?.querySelector?.('script[type="application/json"][data-sf-preferences], script#sf-preferences[type="application/json"]');if(e){s=!0;try{f.preload(JSON.parse(e.textContent||"{}"))}catch{}}},c=(e,r)=>{for(const n of t.get(e)??[])try{n(l(r),e)}catch(t){console.error("SF.Preferences listener failed",e,t)}},h=e=>{const t=i();if(!t)return null;try{const r=t.getItem(n+e);return null===r?null:JSON.parse(r)}catch{return null}},d=(e,t)=>{const r=i();if(r)try{null===t?r.removeItem(n+e):r.setItem(n+e,JSON.stringify(t))}catch{}},p=t=>{clearTimeout(r.get(t)),r.delete(t);const n=e.adapter;if(!n)return;const s=e.values.has(t)?e.values.get(t):h(t);try{const e=null===s?n.remove?.(t):n.save?.(t,l(s));Promise.resolve(e).catch(e=>console.warn("SF.Preferences: the host did not keep",t,e))}catch(e){console.warn("SF.Preferences: the host did not keep",t,e)}},m=t=>{e.adapter&&(clearTimeout(r.get(t)),r.set(t,setTimeout(()=>p(t),400)))},f={read:t=>o(t)?(u(),e.values.has(t)?l(e.values.get(t)):l(h(t))):null,readMerged(...e){const t={};let r=!1;for(const n of e.flat()){const e=f.read(n);e&&"object"==typeof e&&!Array.isArray(e)&&(Object.assign(t,e),r=!0)}return r?t:null},write(t,r){if(!o(t))return!1;const n=l(r);return JSON.stringify(f.read(t))===JSON.stringify(n)||(e.values.has(t)&&e.values.set(t,n),d(t,n),m(t)),!0},remove:t=>!!o(t)&&(e.values.has(t)&&e.values.set(t,null),d(t,null),m(t),c(t,null),!0),subscribe:(e,r)=>o(e)&&"function"==typeof r?(t.has(e)||t.set(e,new Set),t.get(e).add(r),()=>t.get(e)?.delete(r)):()=>{},preload(t){if(t&&"object"==typeof t)for(const[r,n]of Object.entries(t)){if(!o(r))continue;const t=l(n),s=f.read(r);e.values.set(r,t),d(r,t),a(s,t)||c(r,t)}},useHost(t){if(!t||"function"!=typeof t.save)throw new TypeError("A preferences host saves: {save(key, value)}");return e.adapter=t,f},async load(t){const r=[].concat(t).filter(t=>o(t)&&!e.values.has(t));if(r.length&&"function"==typeof e.adapter?.load)try{f.preload(await e.adapter.load(r))}catch(e){console.warn("SF.Preferences: the host did not answer",r,e)}},get hosted(){return Boolean(e.adapter)},flush(){for(const e of[...r.keys()])p(e)}};return globalThis.addEventListener?.("storage",t=>{if(!t.key?.startsWith(n)||t.storageArea!==i())return;const r=t.key.slice(8);if(e.values.has(r))return;let s=null;try{s=null===t.newValue?null:JSON.parse(t.newValue)}catch{s=null}c(r,s)}),globalThis.addEventListener?.("pagehide",()=>f.flush()),u(),Object.freeze(f)}()));const u=globalThis.SF?.Preferences,c=u;r.d(t,["A",0,c])},f7b9ec5790a0(e,t,r){r.a(e,async(e,t)=>{try{var n=r("bffb4b61998b"),s=r("0d662e4d7d63"),i=r("51250bf01ab0"),o=e([s]),a=o.then?(await o)():o;s=a[0];const l={en:{label:"Resize",hint:"Drag, or use the arrow keys; a double click restores the width."},ru:{label:"Изменить ширину",hint:"Тяните или нажимайте стрелки; двойной щелчок возвращает ширину."}},u=(e,t)=>(0,s.pageText)(l,t,e,"sf-resizer");function c(e,t){if(null==e||""===e)return null;const r=Number(e);if(Number.isFinite(r))return r;const n=document.createElement("span");n.style.cssText="position:absolute;visibility:hidden;pointer-events:none;block-size:0;padding:0;border:0",n.style.inlineSize=String(e),(t?.isConnected?t:document.body).append(n);const s=parseFloat(getComputedStyle(n).width);return n.remove(),Number.isFinite(s)?s:null}const h=()=>globalThis.SF?.Preferences||i.A,d=e=>`sf-resizer/${String(e).replace(/[^\w.:-]+/gu,"-")}`;function p(e){if(!e)return null;const t=h()?.read(d(e));if(Number.isFinite(t?.width))return t.width;try{const t=Number(globalThis.localStorage?.getItem(`sf-resizer:${e}`))||null;return t&&(h()?.write(d(e),{v:1,width:t}),globalThis.localStorage?.removeItem(`sf-resizer:${e}`)),t}catch{return null}}function m(e,t){e&&(null===t?h()?.remove(d(e)):h()?.write(d(e),{v:1,width:Math.round(t)}))}class f extends HTMLElement{static get observedAttributes(){return["min","max","label","disabled","value"]}constructor(){super(),this._onWindowResize=()=>this.clampToLimits()}connectedCallback(){this.hasAttribute("tabindex")||(this.tabIndex=0),this.syncLabel(),this._detach=(0,n.y)(this,{session:()=>this.disabled?null:this.session()}),globalThis.addEventListener("resize",this._onWindowResize),this._languageOff=s.language.onChange(()=>{this.isConnected&&this.syncLabel()}),requestAnimationFrame(()=>{if(!this.isConnected)return;const e=this.target();e&&"static"===getComputedStyle(e).position&&(e.style.position="relative");const t=Number(this.getAttribute("value"))||p(this.storageKey);t&&this.apply(t),this.syncValue()})}disconnectedCallback(){this._detach?.(),this._detach=null,this._languageOff?.(),this._languageOff=null,globalThis.removeEventListener("resize",this._onWindowResize)}attributeChangedCallback(e,t,r){"value"===e&&r&&r!==t&&this.isConnected?this.restore(r):this.isConnected&&(this.syncLabel(),this.syncValue())}get storageKey(){return this.getAttribute("storage-key")||""}get property(){return this.getAttribute("property")||""}get step(){return Math.max(1,Number(this.getAttribute("step"))||16)}get disabled(){return this.hasAttribute("disabled")}target(){const e=this.getAttribute("target");return(e?this.parentElement?.closest(e):this.parentElement)??null}limits(){const e=this.target()?.parentElement??document.body,t=c(this.getAttribute("min")||"12rem",e)??0,r=c(this.getAttribute("max")||"40rem",e)??1/0;return{min:t,max:Math.max(t,r)}}width(){return this.target()?.getBoundingClientRect().width??0}session(){return{measure:()=>this.width(),limits:()=>this.limits(),apply:(e,t)=>{const r=this.apply(e);return"move"===t&&null!==r&&this.announce(r,"move"),r},commit:e=>this.commit(e),reset:()=>this.reset(),direction:()=>("rtl"===getComputedStyle(this).direction?-1:1)*("inline-start"===this.getAttribute("edge")?-1:1),step:this.step}}apply(e){const t=this.target();if(!t)return null;const{min:r,max:n}=this.limits(),s=Math.round(Math.min(n,Math.max(r,e)));return this.property?t.style.setProperty(this.property,`${s}px`):t.style.inlineSize=`${s}px`,this.syncValue(s),s}announce(e,t){this.dispatchEvent(new CustomEvent("sf-resize",{bubbles:!0,composed:!0,detail:{width:e,phase:t}}))}commit(e){m(this.storageKey,e),this.announce(e,"end")}reset(){if(this.disabled)return;const e=this.target();e&&(this.property?e.style.removeProperty(this.property):e.style.removeProperty("inline-size"),m(this.storageKey,null),requestAnimationFrame(()=>{const e=Math.round(this.width());this.syncValue(e),this.announce(e,"reset")}))}restore(e){const t=Number(e);if(!Number.isFinite(t)||t<=0)return null;const r=this.apply(t);return null!==r&&m(this.storageKey,r),r}clampToLimits(){const e=this.target();if(!e)return;const t=this.property?e.style.getPropertyValue(this.property):e.style.inlineSize;if(!t)return;const{min:r,max:n}=this.limits(),s=Number.parseFloat(t);Number.isFinite(s)&&(s>n||s<r)&&this.apply(s)}syncLabel(){const e=u(this,"label"),t=u(this,"hint");this.getAttribute("aria-label")&&!this._ownLabel||(this.setAttribute("aria-label",this.getAttribute("label")||e),this._ownLabel=!0),this.title=this.getAttribute("label")?`${this.getAttribute("label")}. ${t}`:t,this.disabled?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}syncValue(e=this.width()){(0,n.M)(this,{limits:()=>this.limits(),measure:()=>e},e)}}customElements.get("sf-resizer")||customElements.define("sf-resizer",f),globalThis.SF=globalThis.SF||{},globalThis.SF.Resizer=Object.freeze({SfResizer:f,attach:n.y,attachResizer:n.y}),t()}catch(b){t(b)}})},"0d662e4d7d63"(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("page-language"):new Promise(e=>globalThis.addEventListener("sf-runtime-ready",()=>e(globalThis.SF.runtimeModule("page-language")),{once:!0}))},bffb4b61998b(e,t,r){r.d(t,{M:()=>s,y:()=>o});const n="data-sf-resizer-active";function s(e,t,r=t.measure()){const{min:n,max:s}=t.limits();e.setAttribute("aria-valuemin",String(Math.round(n))),e.setAttribute("aria-valuemax",String(Math.round(s))),r&&e.setAttribute("aria-valuenow",String(Math.round(r)))}function i(e,t){const{min:r,max:n}=e.limits();return Math.round(Math.min(Math.max(r,n),Math.max(r,t)))}function o(e,t={}){const r=r=>t.handles?r?.closest?.(t.handles):e,o=r=>(t=>t&&(t===e||e.contains(t)))(r)?t.session?.(r)??null:null;let a=null;const l=e=>{const t=a;t&&(a=null,globalThis.removeEventListener("pointermove",t.move,!0),globalThis.removeEventListener("pointerup",t.up,!0),globalThis.removeEventListener("pointercancel",t.up,!0),document.documentElement.removeAttribute(n),delete t.handle.dataset.sfResizing,t.session.end?.(),e&&t.width!==Math.round(t.from)&&t.session.commit?.(t.width))},u=e=>{if(e.button>0||a)return;const t=r(e.target),u=o(t);if(!u)return;e.preventDefault(),e.stopPropagation(),t.focus?.({preventScroll:!0});const c=u.measure(),h={handle:t,session:u,pointer:e.pointerId,x:e.clientX,from:c,width:Math.round(c),move:e=>{if(e.pointerId!==h.pointer)return;const r=i(u,h.from+(e.clientX-h.x)*(u.direction?.()??1));r!==h.width&&(h.width=u.apply(r,"move")??r,s(t,u,h.width))},up:e=>{e.pointerId===h.pointer&&l(!0)}};a=h,u.start?.(),t.dataset.sfResizing="",document.documentElement.setAttribute(n,""),globalThis.addEventListener("pointermove",h.move,!0),globalThis.addEventListener("pointerup",h.up,!0),globalThis.addEventListener("pointercancel",h.up,!0)},c=e=>{if(e.altKey||e.ctrlKey||e.metaKey)return;const t=r(e.target);if(t!==e.target)return;const n=o(t);if(!n)return;const{min:a,max:l}=n.limits(),u=n.measure(),c="rtl"===getComputedStyle(t).direction,h=n.direction?.()??1,d=(n.step??16)*(e.shiftKey?4:1),p=(c?-1:1)*h;let m=null;if("ArrowRight"===e.key)m=u+d*p;else if("ArrowLeft"===e.key)m=u-d*p;else if("PageUp"===e.key)m=u+4*d;else if("PageDown"===e.key)m=u-4*d;else if("Home"===e.key)m=a;else if("End"===e.key)m=l;else if("Enter"===e.key||" "===e.key)return e.preventDefault(),e.stopPropagation(),void n.reset?.();if(null===m)return;e.preventDefault(),e.stopPropagation();const f=n.apply(i(n,m),"end")??i(n,m);s(t,n,f),n.commit?.(f)},h=e=>{const t=r(e.target),n=o(t);n&&(e.preventDefault(),e.stopPropagation(),n.reset?.())},d=e=>{const t=r(e.target),n=o(t);n&&s(t,n)};return e.addEventListener("pointerdown",u),e.addEventListener("keydown",c),e.addEventListener("dblclick",h),e.addEventListener("focusin",d),t.handles||(e.setAttribute("role","separator"),e.setAttribute("aria-orientation","vertical")),()=>{l(!1),e.removeEventListener("pointerdown",u),e.removeEventListener("keydown",c),e.removeEventListener("dblclick",h),e.removeEventListener("focusin",d)}}}};const t={};function r(n){const s=t[n];if(void 0!==s)return s.exports;const i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(()=>{const e="function"==typeof Symbol,t=e?Symbol("webpack queues"):"__webpack_queues__",n=e?Symbol("webpack exports"):"__webpack_exports__",s=e?Symbol("webpack error"):"__webpack_error__",i=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};r.a=(e,r,o)=>{let a;o&&((a=[]).d=-1);const l=new Set,u=e.exports;let c,h,d;const p=new Promise((e,t)=>{d=t,h=e});p[n]=u,p[t]=e=>(a&&e(a),l.forEach(e),p.catch(e=>{})),e.exports=p;r(e=>{let r;c=(e=>e.map(e=>{if(null!==e&&"object"==typeof e){if(e[t])return e;if(e.then){const r=[];r.d=0,e.then(e=>{o[n]=e,i(r)},e=>{o[s]=e,i(r)});const o={};return o[t]=e=>e(r),o}}const r={};return r[t]=e=>{},r[n]=e,r}))(e);const o=()=>c.map(e=>{if(e[s])throw e[s];return e[n]}),u=new Promise(e=>{r=()=>e(o),r.r=0;const n=e=>e!==a&&!l.has(e)&&(l.add(e),e&&!e.d&&(r.r++,e.push(r)));c.map(e=>e[t](n))});return r.r?u:o()},e=>(e?d(p[s]=e):h(u),i(a))),a?.d<0&&(a.d=0)}})(),r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var s=t[n++],i=t[n++];r.o(e,s)?0===i&&n++:0===i?Object.defineProperty(e,s,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,s,{enumerable:!0,get:i})}else for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);r("f7b9ec5790a0")})();
@@ -247,7 +247,7 @@
247
247
  "source_artifacts": [
248
248
  {
249
249
  "path": "src/smart/resizer/index.js",
250
- "sha256": "4dfc61356b7893fc835ff6aead80da238732f8b2f38126664b42e2f7ea10aa58"
250
+ "sha256": "a6f1cfc9b24cfcb099433b6025ee1560c5b061fe768e2aa2b58d28f1b19705ed"
251
251
  },
252
252
  {
253
253
  "path": "src/smart/resizer/scss/_smart__resizer.scss",
@@ -259,7 +259,7 @@
259
259
  },
260
260
  {
261
261
  "path": "src/smart/resizer/docs.md",
262
- "sha256": "e5eb7804b2d5c649ef0173b6fd77520a1179f6f75a5d24bd5cbc651515759808"
262
+ "sha256": "07c0310ff06d517c456ebebac95df8b744a7daa56582c9605b718baee698e1b3"
263
263
  },
264
264
  {
265
265
  "path": "src/smart/resizer/engine.mjs",
@@ -1 +1 @@
1
- (()=>{"use strict";var e={"6064f55a0aa2"(e,t,s){s.a(e,async(e,t)=>{try{var n=s("7c1f9c2b36da"),i=e([n]);(0,(n=(i.then?(await i)():i)[0]).mH)(),globalThis.SF=globalThis.SF||{},globalThis.SF.Sortable=Object.freeze({SORTABLE_INTENT_EVENT:n.dd,SORTABLE_STATE_EVENT:n.WK,activeSortableSession:n.Ld,attach:n.q0,attachSortable:n.q0,registerSortableDropTarget:n.OE,sortableIndexAt:n.AI}),t()}catch(e){t(e)}})},"0d662e4d7d63"(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("page-language"):new Promise(e=>globalThis.addEventListener("sf-runtime-ready",()=>e(globalThis.SF.runtimeModule("page-language")),{once:!0}))},"7c1f9c2b36da"(e,t,s){s.a(e,async(e,n)=>{try{s.d(t,{AI:()=>R,Ld:()=>y,OE:()=>T,mH:()=>D,q0:()=>q});var i=s("0d662e4d7d63"),o=e([i]),r=o.then?(await o)():o;i=r[0];const l="sf-sortable-intent",a="sf-sortable-state",c="[data-sf-sortable-item]",d="[data-sf-sortable-handle]",u='a[href],button,input,select,textarea,summary,[contenteditable]:not([contenteditable="false"])',h=/^[a-z][a-z0-9-]{0,31}$/u,g=4,f=32,p={ru:{instructions:"Пробел или Enter — взять, стрелки — переместить, Пробел или Enter — положить, Escape — отменить.",picked:"Взято: {item}. Позиция {index} из {total} в «{list}».",moved:"Позиция {index} из {total} в «{list}».",dropped:"Положено: {item}, позиция {index} в «{list}».",cancelled:"Перемещение отменено.",target:"Цель: {target}."},en:{instructions:"Space or Enter to pick up, arrows to move, Space or Enter to drop, Escape to cancel.",picked:"Picked up {item}. Position {index} of {total} in “{list}”.",moved:"Position {index} of {total} in “{list}”.",dropped:"Dropped {item} at position {index} in “{list}”.",cancelled:"Move cancelled.",target:"Target: {target}."}},b=(e,t)=>e.replace(/\{(\w+)\}/gu,(e,s)=>String(t[s]??"")),m=()=>Object.fromEntries(Object.keys(p.en).map(e=>[e,(0,i.pageText)(p,e,void 0,"sf-sortable")])),v=globalThis.__sfSortableSharedV1||(globalThis.__sfSortableSharedV1={targets:new Set,session:null}),x=v.targets;function y(){return v.session?Object.freeze({item:v.session.item,from:v.session.from,group:v.session.group,mode:v.session.mode,input:v.session.input}):null}function T(e){if(!e||"function"!=typeof e.resolve||"function"!=typeof e.drop)throw new TypeError("Drop target needs resolve and drop");return x.add(e),()=>x.delete(e)}function E(e){if(e.getAttribute("aria-label"))return e.getAttribute("aria-label");const t=e.cloneNode(!0);for(const e of t.querySelectorAll('[aria-hidden="true"]'))e.remove();return t.textContent.replace(/\s+/gu," ").trim()}function A(e){return e.getAttribute("label")||e.getAttribute("aria-label")||e.getAttribute("group")||""}function w(e){return[...e.querySelectorAll(c)].filter(t=>t.closest("sf-sortable")===e)}function S(e,t){if(!e||"copy"===e.getAttribute("mode"))return!1;const s=e.getAttribute("group"),n=(e.getAttribute("accepts")||"").split(/\s+/u).filter(Boolean);return t===s||n.includes(t)}function k(e){for(let t=e?.parentElement;t;t=t.parentElement){const e=globalThis.getComputedStyle(t);if(/(auto|scroll)/u.test(e.overflowY)&&t.scrollHeight>t.clientHeight)return t}return globalThis.document.scrollingElement}function L(){let e=globalThis.document.querySelector(".sf-sortable-indicator");return e||(e=globalThis.document.createElement("div"),e.className="sf-sortable-indicator",e.setAttribute("aria-hidden","true"),globalThis.document.body.append(e)),e}function C(e){const t=L();e?(t.hidden=!1,Object.assign(t.style,{left:`${e.left}px`,top:`${e.top}px`,width:`${e.width}px`,height:`${e.height}px`})):t.hidden=!0}function O(e){return"line"!==e.getAttribute("preview")}function B(e){if(e.placeholder)return e.placeholder;const t=e.sourceBox,s=globalThis.document.createElement("div");return s.className="sf-sortable-placeholder",s.setAttribute("aria-hidden","true"),Object.assign(s.style,{inlineSize:`${t.width}px`,blockSize:`${t.height}px`}),e.placeholder=s,s}function I(e,t,s,n){const i="horizontal"===t.getAttribute("orientation"),o=w(t).filter(t=>t!==e.source);let r;if(!i&&(_(o)||e.wrappedLists?.has(t)))r=$(o,s,n);else{r=R(o.map(e=>{const t=e.getBoundingClientRect();return i?{start:t.left,end:t.right}:{start:t.top,end:t.bottom}}),i?s:n)}const l=B(e),a=o[r];if(a)l.nextElementSibling!==a&&a.before(l);else if(o.length){const e=o[o.length-1];e.nextElementSibling!==l&&e.after(l)}else l.parentElement!==t&&t.append(l);return r}function R(e,t,s=-1){let n=0;for(let i=0;i<e.length;i+=1){if(i===s)continue;const o=e[i];t>o.start+(o.end-o.start)/2&&(n=i+1)}return n}function _(e){for(let t=1;t<e.length;t+=1){const s=e[t-1].getBoundingClientRect(),n=e[t].getBoundingClientRect();if(n.top<s.bottom-1&&n.left>=s.right-1)return!0}return!1}function $(e,t,s){let n=0;for(let i=0;i<e.length;i+=1){const o=e[i].getBoundingClientRect();(s>o.bottom||!(s<o.top)&&t>o.left+o.width/2)&&(n=i+1)}return n}function j(e,t,s){const n=w(e),i="horizontal"===e.getAttribute("orientation");if(!i&&_(n)){const i=$(n,t,s);return{list:e,index:i,rect:F(e,n,i)}}const o=R(n.map(e=>{const t=e.getBoundingClientRect();return i?{start:t.left,end:t.right}:{start:t.top,end:t.bottom}}),i?t:s);return{list:e,index:o,rect:M(e,n,o,i)}}function F(e,t,s){const n=e.getBoundingClientRect(),i=t[s],o=t[s-1];if(i){const e=i.getBoundingClientRect();return{left:e.left-1,top:e.top,width:2,height:e.height}}if(o){const e=o.getBoundingClientRect();return{left:e.right-1,top:e.top,width:2,height:e.height}}return{left:n.left,top:n.top,width:2,height:n.height}}function M(e,t,s,n){const i=e.getBoundingClientRect(),o=t[s],r=t[s-1];if(n){return{left:(o?o.getBoundingClientRect().left:r?r.getBoundingClientRect().right:i.left)-1,top:i.top,width:2,height:i.height}}const l=o?o.getBoundingClientRect().top:r?r.getBoundingClientRect().bottom:i.top;return{left:i.left,top:l-1,width:i.width,height:2}}function P(e,t){if(!v.session)return;const s=v.session;v.session=null,s.cleanup?.abort(),s.scrollFrame&&globalThis.cancelAnimationFrame(s.scrollFrame),s.source?.removeAttribute("data-sf-sortable-dragging"),s.source?.removeAttribute("data-sf-sortable-lifted"),s.placeholder?.remove(),s.ghost?.remove(),C(null);for(const e of x)e.leave?.();globalThis.document.documentElement.removeAttribute("data-sf-sortable-active"),e.dispatchEvent(new globalThis.CustomEvent(a,{bubbles:!0,composed:!0,detail:Object.freeze({state:t,item:s.item})}))}function D(e=globalThis.customElements){if(!e||"function"!=typeof globalThis.HTMLElement)return null;const t=e.get("sf-sortable");if(t)return t;class s extends globalThis.HTMLElement{constructor(){super(),this.connection=null,this.live=null,this.instructions=null}connectedCallback(){if(this.connection)return;this.connection=new AbortController;const e={signal:this.connection.signal};this.live||(this.live=globalThis.document.createElement("div"),this.live.className="sf-sortable-live",this.live.setAttribute("aria-live","polite"),this.instructions=globalThis.document.createElement("div"),this.instructions.className="sf-sortable-live",this.instructions.id=`sf-sortable-help-${Math.random().toString(36).slice(2,10)}`),this.instructions.textContent=m().instructions,this.append(this.live,this.instructions),this.addEventListener("pointerdown",e=>this.onPointerDown(e),e),this.addEventListener("keydown",e=>this.onKeyDown(e),e),this.addEventListener("focusin",e=>this.prepareItem(e.target.closest?.(c)),e);for(const e of w(this))this.prepareItem(e);this.observer=new globalThis.MutationObserver(()=>{for(const e of w(this))this.prepareItem(e)}),this.observer.observe(this,{childList:!0,subtree:!0}),this.setAttribute("data-sf-sortable","connected")}disconnectedCallback(){this.observer?.disconnect(),this.observer=null,this.connection?.abort(),this.connection=null,v.session?.fromList!==this&&v.session?.list!==this||P(this,"cancelled"),this.setAttribute("data-sf-sortable","disposed")}prepareItem(e){if(!e||e.closest("sf-sortable")!==this)return;e.hasAttribute("tabindex")||e.matches(u)||(e.tabIndex=0);const t=(e.getAttribute("aria-describedby")||"").split(/\s+/u);this.instructions&&!t.includes(this.instructions.id)&&e.setAttribute("aria-describedby",[...t.filter(Boolean),this.instructions.id].join(" ")),e.querySelector(d)||(e.style.touchAction="none")}announce(e){this.live&&(this.live.textContent=e)}get group(){const e=this.getAttribute("group")||"";return h.test(e)?e:""}get mode(){return"copy"===this.getAttribute("mode")?"copy":"move"}begin(e,t){const s=e.getAttribute("data-sf-sortable-item");if(!s||!this.group||v.session)return!1;const n=w(this),i=e.getBoundingClientRect();return v.session={sourceBox:i,item:s,from:this.getAttribute("id")||this.group,group:this.group,mode:this.mode,input:t,source:e,fromList:this,sourceIndex:n.indexOf(e),list:"copy"===this.mode?null:this,index:n.indexOf(e),external:null,cleanup:new AbortController},e.setAttribute("data-sf-sortable-dragging",""),globalThis.document.documentElement.setAttribute("data-sf-sortable-active",""),this.dispatchEvent(new globalThis.CustomEvent(a,{bubbles:!0,composed:!0,detail:Object.freeze({state:"picked",item:s})})),!0}onPointerDown(e){if(0!==e.button||v.session)return;const t=e.target.closest?.(c);if(!t||t.closest("sf-sortable")!==this)return;const s=t.querySelector(d);if(s&&!s.contains(e.target))return;if(!s&&e.target.closest(u)&&e.target.closest(u)!==t)return;const n=e.clientX,i=e.clientY,o=e.pointerId;let r=!1;const l=new AbortController,a=()=>{l.abort(),r&&P(this,"cancelled")};globalThis.addEventListener("pointermove",e=>{if(e.pointerId===o){if(!r){if(Math.hypot(e.clientX-n,e.clientY-i)<g)return;if(!this.begin(t,e.pointerType||"mouse"))return void l.abort();r=!0,t.setPointerCapture?.(o),v.session.ghost=this.ghost(t,e),O(this)&&"copy"!==this.mode&&(v.session.silhouette=!0,v.session.wrappedLists=new Set(_(w(this))?[this]:[]),t.setAttribute("data-sf-sortable-lifted",""),this.retarget(e.clientX,e.clientY))}e.preventDefault(),this.track(e.clientX,e.clientY)}},{signal:l.signal,passive:!1}),globalThis.addEventListener("pointerup",e=>{e.pointerId===o&&(l.abort(),r&&this.drop())},{signal:l.signal}),globalThis.addEventListener("pointercancel",a,{signal:l.signal}),globalThis.addEventListener("keydown",e=>{"Escape"===e.key&&r&&(e.preventDefault(),e.stopPropagation(),a())},{signal:l.signal,capture:!0})}ghost(e,t){const s=e.getBoundingClientRect(),n=e.cloneNode(!0);n.removeAttribute("id");for(const e of n.querySelectorAll("[id]"))e.removeAttribute("id");return n.classList.add("sf-sortable-ghost"),n.setAttribute("aria-hidden","true"),n.inert=!0,Object.assign(n.style,{width:`${s.width}px`,left:`${s.left}px`,top:`${s.top}px`}),v.session.offset={x:t.clientX-s.left,y:t.clientY-s.top},globalThis.document.body.append(n),n}track(e,t){v.session&&(v.session.pointer={x:e,y:t},v.session.ghost&&Object.assign(v.session.ghost.style,{left:e-v.session.offset.x+"px",top:t-v.session.offset.y+"px"}),this.retarget(e,t),this.startAutoScroll())}retarget(e,t){const s=globalThis.document.elementFromPoint(e,t),n=s?.closest?.("sf-sortable");for(const s of x){const n=s.resolve(e,t,y());if(n)return v.session.list=null,v.session.external={target:s,...n},void C(n.rect)}if(v.session.external=null,n&&S(n,v.session.group)&&v.session.silhouette&&O(n))return v.session.list=n,v.session.index=I(v.session,n,e,t),void C(null);if(v.session.placeholder?.remove(),n&&S(n,v.session.group)){const s=j(n,e,t);v.session.list=n,v.session.index=n===v.session.fromList&&"move"===v.session.mode&&s.index>v.session.sourceIndex?s.index-1:s.index,C(s.rect)}else v.session.list=null,C(null)}startAutoScroll(){if(!v.session||v.session.scrollFrame)return;const e=()=>{if(!v.session?.pointer)return;v.session.scrollFrame=0;const{x:t,y:s}=v.session.pointer,n=k(globalThis.document.elementFromPoint(t,s));if(!n)return;const i=n===globalThis.document.scrollingElement?{top:0,bottom:globalThis.innerHeight}:n.getBoundingClientRect(),o=n.scrollHeight-n.clientHeight;let r=0;s<i.top+f&&n.scrollTop>0?r=-Math.ceil((i.top+f-s)/4):s>i.bottom-f&&n.scrollTop<o&&(r=Math.ceil((s-i.bottom+f)/4)),r&&(n.scrollBy({top:r,behavior:"instant"}),this.retarget(t,s),v.session.scrollFrame=globalThis.requestAnimationFrame(e))};v.session.scrollFrame=globalThis.requestAnimationFrame(e)}drop(){if(!v.session)return;const e=v.session;if(e.external)return e.external.target.drop(y(),e.external.descriptor),void P(this,"dropped");if(e.list){const n=e.index;if(!(e.list===e.fromList&&n===e.sourceIndex))return t=e.list,s={item:e.item,from:e.from,to:e.list.getAttribute("id")||e.list.group,index:n,mode:e.mode},t.dispatchEvent(new globalThis.CustomEvent(l,{bubbles:!0,composed:!0,detail:Object.freeze(s)})),e.list.announce?.(b(m().dropped,{item:E(e.source),index:n+1,list:A(e.list)})),void P(this,"dropped")}var t,s;P(this,"cancelled")}keyboardTargets(){return[...globalThis.document.querySelectorAll("sf-sortable")].filter(e=>e===v.session?.fromList?"move"===v.session.mode:S(e,v.session?.group))}describeKeyboard(e=!0){if(!v.session)return;if(v.session.external)return C(v.session.external.rect),void(e&&this.announce(b(m().target,{target:v.session.external.label||""})));const t=v.session.list,s=w(t),n=t===v.session.fromList&&"move"===v.session.mode,i=s.length+(n?0:1),o=n&&v.session.index>v.session.sourceIndex?v.session.index+1:v.session.index;C(M(t,s,Math.min(o,s.length),"horizontal"===t.getAttribute("orientation"))),e&&this.announce(b(m().moved,{index:v.session.index+1,total:i,list:A(t)}))}onKeyDown(e){const t=e.target.closest?.(c);if(!v.session){if(!t||t.closest("sf-sortable")!==this||e.target!==t)return;if(" "!==e.key&&"Enter"!==e.key)return;if(e.preventDefault(),!this.begin(t,"keyboard"))return;const s=()=>{v.session?.fromList===this&&(this.announce(m().cancelled),P(this,"cancelled"))},n={signal:v.session.cleanup.signal};if(this.addEventListener("focusout",e=>{e.relatedTarget&&this.contains(e.relatedTarget)||globalThis.setTimeout(()=>{this.contains(globalThis.document.activeElement)||s()},0)},n),globalThis.document.addEventListener("pointerdown",e=>{this.contains(e.target)||s()},{...n,capture:!0}),"copy"===v.session.mode){const[e]=this.keyboardTargets(),t=[...x].flatMap(e=>(e.keyboardTargets?.(y())||[]).map(t=>({target:e,...t})));if(e)v.session.list=e,v.session.index=w(e).length;else{if(!t.length)return void P(this,"cancelled");v.session.external=t[0]}}if(v.session.external)return this.describeKeyboard(!1),void this.announce(`${b(m().picked,{item:E(t),index:1,total:1,list:""}).split(".")[0]}. ${b(m().target,{target:v.session.external.label||""})}`);const i=w(v.session.list);return this.describeKeyboard(!1),void this.announce(b(m().picked,{item:E(t),index:v.session.index+1,total:i.length,list:A(v.session.list)}))}if("keyboard"!==v.session.input||v.session.fromList!==this)return;const s=this.keyboardTargets(),n=[...x].flatMap(e=>(e.keyboardTargets?.(y())||[]).map(t=>({target:e,...t})));if("Escape"===e.key||"Tab"===e.key)return"Escape"===e.key&&e.preventDefault(),this.announce(m().cancelled),void P(this,"cancelled");if(" "===e.key||"Enter"===e.key)return e.preventDefault(),void this.drop();const i={ArrowUp:-1,ArrowDown:1}[e.key],o={ArrowLeft:-1,ArrowRight:1}[e.key];if(void 0===i&&void 0===o)return;if(e.preventDefault(),v.session.external){const e=n.findIndex(e=>e.target===v.session.external.target&&JSON.stringify(e.descriptor)===JSON.stringify(v.session.external.descriptor)),t=n[e+(i??o)];return t?v.session.external=t:(i??o)<0&&s.length&&(v.session.external=null,v.session.list=s.at(-1),v.session.index=w(v.session.list).length-(v.session.list===v.session.fromList&&"move"===v.session.mode?1:0)),void this.describeKeyboard()}const r=v.session.list,l=w(r).length-(r===v.session.fromList&&"move"===v.session.mode?1:0);if(void 0!==i){const e=v.session.index+i;e>=0&&e<=l?v.session.index=e:e>l&&void 0===o&&n.length&&s.indexOf(r)===s.length-1&&(v.session.external=n[0])}else{const e=s[s.indexOf(r)+o];e?(v.session.list=e,v.session.index=Math.min(v.session.index,w(e).length-(e===v.session.fromList&&"move"===v.session.mode?1:0))):o>0&&n.length&&(v.session.external=n[0])}this.describeKeyboard()}}return e.define("sf-sortable",s),s}function q(e,t={}){if(!(e instanceof globalThis.Element)||"string"!=typeof t.items)throw new TypeError("attachSortable needs a container and an items selector");const s=globalThis.document,n="line"===t.preview?"line":"column",i="function"==typeof t.groupOf?t.groupOf:()=>"",o="function"==typeof t.canStart?t.canStart:()=>!0,r="function"==typeof t.cellsOf?t.cellsOf:e=>[e],l=s.createElement("div");l.className="sf-sortable-live",l.setAttribute("aria-live","polite"),s.body.append(l);const a=new AbortController;let c=null;const d=s=>[...e.querySelectorAll(t.items)].filter(e=>i(e)===s),u=i=>{const o=d(c.group).filter(e=>e!==c.item).map(e=>e.getBoundingClientRect());let r=o.length;for(let e=0;e<o.length;e+=1)if(i<o[e].left+o[e].width/2){r=e;break}c.index=r;const l=(t.extent?.isConnected?t.extent:e).getBoundingClientRect(),a=c.width,u=o[r],h=o[r-1];let g;g="column"===n?r>c.originalIndex&&h?h.right-a:u?u.left:h?h.right-a:l.left:(u?u.left:h?h.right:l.left)-1,Object.assign((()=>{if(c.outline)return c.outline;const e=s.createElement("div");return e.className="column"===n?"sf-sortable-column-outline":"sf-sortable-indicator",e.setAttribute("aria-hidden","true"),s.body.append(e),c.outline=e,e})().style,{left:`${g}px`,top:`${l.top}px`,width:"column"===n?`${a}px`:"2px",height:`${l.height}px`})},h=n=>{const i=c;if(c=null,!i)return;i.pending.abort(),i.ghost?.remove(),i.outline?.remove();for(const e of i.cells)e.removeAttribute("data-sf-sortable-column-source");if(s.documentElement.removeAttribute("data-sf-sortable-active"),!i.started)return;const o=e=>{e.preventDefault(),e.stopImmediatePropagation()};if(e.addEventListener("click",o,{capture:!0,once:!0}),globalThis.setTimeout(()=>e.removeEventListener("click",o,{capture:!0}),0),!n)return void(l.textContent=m().cancelled);if(void 0===i.index||i.index===i.originalIndex)return;const r=i.item.getAttribute("data-sf-sortable-item")||i.item.dataset.key||"";l.textContent=b(m().dropped,{item:E(i.item),index:i.index+1,list:t.label||""}),t.onIntent?.({item:r,from:i.group,index:i.index,group:i.group})};return e.addEventListener("pointerdown",n=>{if(0!==n.button||c||v.session)return;const l=n.target.closest?.(t.items);if(!l||!e.contains(l)||!o(n,l))return;const a=i(l),p=d(a);if(p.length<2)return;const b=n.clientX,m=n.clientY,x=new AbortController,y=l.getBoundingClientRect();c={item:l,group:a,pending:x,started:!1,cells:[],width:y.width,originalIndex:p.indexOf(l)};globalThis.addEventListener("pointermove",t=>{if(t.pointerId===n.pointerId&&c){if(!c.started){if(Math.hypot(t.clientX-b,t.clientY-m)<g)return;c.started=!0,s.documentElement.setAttribute("data-sf-sortable-active","");const e=l.cloneNode(!0);e.removeAttribute("id");for(const t of e.querySelectorAll("[id]"))t.removeAttribute("id");e.classList.add("sf-sortable-ghost"),e.setAttribute("aria-hidden","true"),e.inert=!0,Object.assign(e.style,{width:`${y.width}px`,height:`${y.height}px`,left:`${y.left}px`,top:`${y.top}px`}),s.body.append(e),c.ghost=e,c.offset={x:b-y.left,y:m-y.top},c.cells=r(l).filter(Boolean);for(const e of c.cells)e.setAttribute("data-sf-sortable-column-source","")}t.preventDefault(),Object.assign(c.ghost.style,{left:t.clientX-c.offset.x+"px",top:t.clientY-c.offset.y+"px"}),(t=>{for(let s=e.parentElement;s;s=s.parentElement){const e=globalThis.getComputedStyle(s);if(!/(auto|scroll)/u.test(e.overflowX)||s.scrollWidth<=s.clientWidth)continue;const n=s.getBoundingClientRect();return void(t<n.left+f?s.scrollBy({left:-Math.ceil((n.left+f-t)/4),behavior:"instant"}):t>n.right-f&&s.scrollBy({left:Math.ceil((t-n.right+f)/4),behavior:"instant"}))}})(t.clientX),u(t.clientX)}},{signal:x.signal,passive:!1}),globalThis.addEventListener("pointerup",e=>{e.pointerId===n.pointerId&&h(!0)},{signal:x.signal}),globalThis.addEventListener("pointercancel",()=>h(!1),{signal:x.signal}),globalThis.addEventListener("keydown",e=>{"Escape"===e.key&&c?.started&&(e.preventDefault(),e.stopPropagation(),h(!1))},{signal:x.signal,capture:!0})},{signal:a.signal}),()=>{h(!1),a.abort(),l.remove()}}s.d(t,["WK",0,a,"dd",0,l]),n()}catch(N){n(N)}})}};const t={};function s(n){const i=t[n];if(void 0!==i)return i.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,s),o.exports}(()=>{const e="function"==typeof Symbol,t=e?Symbol("webpack queues"):"__webpack_queues__",n=e?Symbol("webpack exports"):"__webpack_exports__",i=e?Symbol("webpack error"):"__webpack_error__",o=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};s.a=(e,s,r)=>{let l;r&&((l=[]).d=-1);const a=new Set,c=e.exports;let d,u,h;const g=new Promise((e,t)=>{h=t,u=e});g[n]=c,g[t]=e=>(l&&e(l),a.forEach(e),g.catch(e=>{})),e.exports=g;s(e=>{let s;d=(e=>e.map(e=>{if(null!==e&&"object"==typeof e){if(e[t])return e;if(e.then){const s=[];s.d=0,e.then(e=>{r[n]=e,o(s)},e=>{r[i]=e,o(s)});const r={};return r[t]=e=>e(s),r}}const s={};return s[t]=e=>{},s[n]=e,s}))(e);const r=()=>d.map(e=>{if(e[i])throw e[i];return e[n]}),c=new Promise(e=>{s=()=>e(r),s.r=0;const n=e=>e!==l&&!a.has(e)&&(a.add(e),e&&!e.d&&(s.r++,e.push(s)));d.map(e=>e[t](n))});return s.r?c:r()},e=>(e?h(g[i]=e):u(c),o(l))),l?.d<0&&(l.d=0)}})(),s.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var i=t[n++],o=t[n++];s.o(e,i)?0===o&&n++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);s("6064f55a0aa2")})();
1
+ (()=>{"use strict";var e={"6064f55a0aa2"(e,t,s){s.a(e,async(e,t)=>{try{var n=s("7c1f9c2b36da"),i=e([n]);(0,(n=(i.then?(await i)():i)[0]).mH)(),globalThis.SF=globalThis.SF||{},globalThis.SF.Sortable=Object.freeze({SORTABLE_INTENT_EVENT:n.dd,SORTABLE_STATE_EVENT:n.WK,activeSortableSession:n.Ld,attach:n.q0,attachSortable:n.q0,registerSortableDropTarget:n.OE,sortableIndexAt:n.AI}),t()}catch(e){t(e)}})},"0d662e4d7d63"(e){e.exports=globalThis.SF&&globalThis.SF.runtimeModule?globalThis.SF.runtimeModule("page-language"):new Promise(e=>globalThis.addEventListener("sf-runtime-ready",()=>e(globalThis.SF.runtimeModule("page-language")),{once:!0}))},"7c1f9c2b36da"(e,t,s){s.a(e,async(e,n)=>{try{s.d(t,{AI:()=>R,Ld:()=>y,OE:()=>T,mH:()=>P,q0:()=>D});var i=s("0d662e4d7d63"),o=e([i]),r=o.then?(await o)():o;i=r[0];const l="sf-sortable-intent",a="sf-sortable-state",c="[data-sf-sortable-item]",d="[data-sf-sortable-handle]",u='a[href],button,input,select,textarea,summary,[contenteditable]:not([contenteditable="false"])',h=/^[a-z][a-z0-9-]{0,31}$/u,g=4,f=32,p={ru:{instructions:"Пробел или Enter — взять, стрелки — переместить, Пробел или Enter — положить, Escape — отменить.",picked:"Взято: {item}. Позиция {index} из {total} в «{list}».",moved:"Позиция {index} из {total} в «{list}».",dropped:"Положено: {item}, позиция {index} в «{list}».",cancelled:"Перемещение отменено.",target:"Цель: {target}."},en:{instructions:"Space or Enter to pick up, arrows to move, Space or Enter to drop, Escape to cancel.",picked:"Picked up {item}. Position {index} of {total} in “{list}”.",moved:"Position {index} of {total} in “{list}”.",dropped:"Dropped {item} at position {index} in “{list}”.",cancelled:"Move cancelled.",target:"Target: {target}."}},b=(e,t)=>e.replace(/\{(\w+)\}/gu,(e,s)=>String(t[s]??"")),m=()=>Object.fromEntries(Object.keys(p.en).map(e=>[e,(0,i.pageText)(p,e,void 0,"sf-sortable")])),v=globalThis.__sfSortableSharedV1||(globalThis.__sfSortableSharedV1={targets:new Set,session:null}),x=v.targets;function y(){return v.session?Object.freeze({item:v.session.item,from:v.session.from,group:v.session.group,mode:v.session.mode,input:v.session.input}):null}function T(e){if(!e||"function"!=typeof e.resolve||"function"!=typeof e.drop)throw new TypeError("Drop target needs resolve and drop");return x.add(e),()=>x.delete(e)}function A(e){if(e.getAttribute("aria-label"))return e.getAttribute("aria-label");const t=e.cloneNode(!0);for(const e of t.querySelectorAll('[aria-hidden="true"]'))e.remove();return t.textContent.replace(/\s+/gu," ").trim()}function E(e){return e.getAttribute("label")||e.getAttribute("aria-label")||e.getAttribute("group")||""}function w(e){return[...e.querySelectorAll(c)].filter(t=>t.closest("sf-sortable")===e)}function S(e,t){if(!e||"copy"===e.getAttribute("mode"))return!1;const s=e.getAttribute("group"),n=(e.getAttribute("accepts")||"").split(/\s+/u).filter(Boolean);return t===s||n.includes(t)}function k(e){for(let t=e?.parentElement;t;t=t.parentElement){const e=globalThis.getComputedStyle(t);if(/(auto|scroll)/u.test(e.overflowY)&&t.scrollHeight>t.clientHeight)return t}return globalThis.document.scrollingElement}function C(){let e=globalThis.document.querySelector(".sf-sortable-indicator");return e||(e=globalThis.document.createElement("div"),e.className="sf-sortable-indicator",e.setAttribute("aria-hidden","true"),globalThis.document.body.append(e)),e}function L(e){const t=C();e?(t.hidden=!1,Object.assign(t.style,{left:`${e.left}px`,top:`${e.top}px`,width:`${e.width}px`,height:`${e.height}px`})):t.hidden=!0}function O(e){return"line"!==e.getAttribute("preview")}function B(e){if(e.placeholder)return e.placeholder;const t=e.sourceBox,s=globalThis.document.createElement("div");return s.className="sf-sortable-placeholder",s.setAttribute("aria-hidden","true"),Object.assign(s.style,{inlineSize:`${t.width}px`,blockSize:`${t.height}px`}),e.placeholder=s,s}function I(e,t,s,n){const i="horizontal"===t.getAttribute("orientation"),o=w(t).filter(t=>t!==e.source);let r;if(!i&&(_(o)||e.wrappedLists?.has(t)))r=$(o,s,n);else{r=R(o.map(e=>{const t=e.getBoundingClientRect();return i?{start:t.left,end:t.right}:{start:t.top,end:t.bottom}}),i?s:n)}const l=B(e),a=o[r];if(a)l.nextElementSibling!==a&&a.before(l);else if(o.length){const e=o[o.length-1];e.nextElementSibling!==l&&e.after(l)}else l.parentElement!==t&&t.append(l);return r}function R(e,t,s=-1){let n=0;for(let i=0;i<e.length;i+=1){if(i===s)continue;const o=e[i];t>o.start+(o.end-o.start)/2&&(n=i+1)}return n}function _(e){for(let t=1;t<e.length;t+=1){const s=e[t-1].getBoundingClientRect(),n=e[t].getBoundingClientRect();if(n.top<s.bottom-1&&n.left>=s.right-1)return!0}return!1}function $(e,t,s){let n=0;for(let i=0;i<e.length;i+=1){const o=e[i].getBoundingClientRect();(s>o.bottom||!(s<o.top)&&t>o.left+o.width/2)&&(n=i+1)}return n}function F(e,t,s){const n=w(e),i="horizontal"===e.getAttribute("orientation");if(!i&&_(n)){const i=$(n,t,s);return{list:e,index:i,rect:j(e,n,i)}}const o=R(n.map(e=>{const t=e.getBoundingClientRect();return i?{start:t.left,end:t.right}:{start:t.top,end:t.bottom}}),i?t:s);return{list:e,index:o,rect:q(e,n,o,i)}}function j(e,t,s){const n=e.getBoundingClientRect(),i=t[s],o=t[s-1];if(i){const e=i.getBoundingClientRect();return{left:e.left-1,top:e.top,width:2,height:e.height}}if(o){const e=o.getBoundingClientRect();return{left:e.right-1,top:e.top,width:2,height:e.height}}return{left:n.left,top:n.top,width:2,height:n.height}}function q(e,t,s,n){const i=e.getBoundingClientRect(),o=t[s],r=t[s-1];if(n){return{left:(o?o.getBoundingClientRect().left:r?r.getBoundingClientRect().right:i.left)-1,top:i.top,width:2,height:i.height}}const l=o?o.getBoundingClientRect().top:r?r.getBoundingClientRect().bottom:i.top;return{left:i.left,top:l-1,width:i.width,height:2}}function N(e){const t=globalThis.document,s=e.item;if(!s||!t)return;const n=()=>{const n=t.activeElement;if(n&&n!==t.body&&t.contains(n))return;const i=(e.list&&t.contains(e.list)?e.list:t).querySelector(`[data-sf-sortable-item="${globalThis.CSS?.escape?globalThis.CSS.escape(s):s}"]`);i?.focus?.({preventScroll:!1})};"function"==typeof globalThis.requestAnimationFrame?globalThis.requestAnimationFrame(()=>globalThis.requestAnimationFrame(n)):n()}function M(e,t){if(!v.session)return;const s=v.session;v.session=null,s.cleanup?.abort(),s.scrollFrame&&globalThis.cancelAnimationFrame(s.scrollFrame),s.source?.removeAttribute("data-sf-sortable-dragging"),s.source?.removeAttribute("data-sf-sortable-lifted"),s.placeholder?.remove(),s.ghost?.remove(),L(null);for(const e of x)e.leave?.();globalThis.document.documentElement.removeAttribute("data-sf-sortable-active"),e.dispatchEvent(new globalThis.CustomEvent(a,{bubbles:!0,composed:!0,detail:Object.freeze({state:t,item:s.item})})),"dropped"===t&&"keyboard"===s.input&&N(s)}function P(e=globalThis.customElements){if(!e||"function"!=typeof globalThis.HTMLElement)return null;const t=e.get("sf-sortable");if(t)return t;class s extends globalThis.HTMLElement{constructor(){super(),this.connection=null,this.live=null,this.instructions=null}connectedCallback(){if(this.connection)return;this.connection=new AbortController;const e={signal:this.connection.signal};this.live||(this.live=globalThis.document.createElement("div"),this.live.className="sf-sortable-live",this.live.setAttribute("aria-live","polite"),this.instructions=globalThis.document.createElement("div"),this.instructions.className="sf-sortable-live",this.instructions.id=`sf-sortable-help-${Math.random().toString(36).slice(2,10)}`),this.instructions.textContent=m().instructions,this.append(this.live,this.instructions),this.addEventListener("pointerdown",e=>this.onPointerDown(e),e),this.addEventListener("keydown",e=>this.onKeyDown(e),e),this.addEventListener("focusin",e=>this.prepareItem(e.target.closest?.(c)),e);for(const e of w(this))this.prepareItem(e);this.observer=new globalThis.MutationObserver(()=>{this.ensureAccessibilityNodes();for(const e of w(this))this.prepareItem(e)}),this.observer.observe(this,{childList:!0,subtree:!0}),this.setAttribute("data-sf-sortable","connected")}disconnectedCallback(){this.observer?.disconnect(),this.observer=null,this.connection?.abort(),this.connection=null,v.session?.fromList!==this&&v.session?.list!==this||M(this,"cancelled"),this.setAttribute("data-sf-sortable","disposed")}prepareItem(e){if(!e||e.closest("sf-sortable")!==this)return;e.hasAttribute("tabindex")||e.matches(u)||(e.tabIndex=0);const t=(e.getAttribute("aria-describedby")||"").split(/\s+/u);this.instructions&&!t.includes(this.instructions.id)&&e.setAttribute("aria-describedby",[...t.filter(Boolean),this.instructions.id].join(" ")),e.querySelector(d)||(e.style.touchAction="none")}ensureAccessibilityNodes(){this.live&&this.instructions&&(this.live.parentNode===this&&this.instructions.parentNode===this||(this.instructions.textContent=m().instructions,this.append(this.live,this.instructions)))}announce(e){this.ensureAccessibilityNodes(),this.live&&(this.live.textContent=e)}get group(){const e=this.getAttribute("group")||"";return h.test(e)?e:""}get mode(){return"copy"===this.getAttribute("mode")?"copy":"move"}begin(e,t){const s=e.getAttribute("data-sf-sortable-item");if(!s||!this.group||v.session)return!1;const n=w(this),i=e.getBoundingClientRect();return v.session={sourceBox:i,item:s,from:this.getAttribute("id")||this.group,group:this.group,mode:this.mode,input:t,source:e,fromList:this,sourceIndex:n.indexOf(e),list:"copy"===this.mode?null:this,index:n.indexOf(e),external:null,cleanup:new AbortController},e.setAttribute("data-sf-sortable-dragging",""),globalThis.document.documentElement.setAttribute("data-sf-sortable-active",""),this.dispatchEvent(new globalThis.CustomEvent(a,{bubbles:!0,composed:!0,detail:Object.freeze({state:"picked",item:s})})),!0}onPointerDown(e){if(0!==e.button||v.session)return;const t=e.target.closest?.(c);if(!t||t.closest("sf-sortable")!==this)return;const s=t.querySelector(d);if(s&&!s.contains(e.target))return;if(!s&&e.target.closest(u)&&e.target.closest(u)!==t)return;const n=e.clientX,i=e.clientY,o=e.pointerId;let r=!1;const l=new AbortController,a=()=>{l.abort(),r&&M(this,"cancelled")};globalThis.addEventListener("pointermove",e=>{if(e.pointerId===o){if(!r){if(Math.hypot(e.clientX-n,e.clientY-i)<g)return;if(!this.begin(t,e.pointerType||"mouse"))return void l.abort();r=!0,t.setPointerCapture?.(o),v.session.ghost=this.ghost(t,e),O(this)&&"copy"!==this.mode&&(v.session.silhouette=!0,v.session.wrappedLists=new Set(_(w(this))?[this]:[]),t.setAttribute("data-sf-sortable-lifted",""),this.retarget(e.clientX,e.clientY))}e.preventDefault(),this.track(e.clientX,e.clientY)}},{signal:l.signal,passive:!1}),globalThis.addEventListener("pointerup",e=>{e.pointerId===o&&(l.abort(),r&&this.drop())},{signal:l.signal}),globalThis.addEventListener("pointercancel",a,{signal:l.signal}),globalThis.addEventListener("keydown",e=>{"Escape"===e.key&&r&&(e.preventDefault(),e.stopPropagation(),a())},{signal:l.signal,capture:!0})}ghost(e,t){const s=e.getBoundingClientRect(),n=e.cloneNode(!0);n.removeAttribute("id");for(const e of n.querySelectorAll("[id]"))e.removeAttribute("id");return n.classList.add("sf-sortable-ghost"),n.setAttribute("aria-hidden","true"),n.inert=!0,Object.assign(n.style,{width:`${s.width}px`,left:`${s.left}px`,top:`${s.top}px`}),v.session.offset={x:t.clientX-s.left,y:t.clientY-s.top},globalThis.document.body.append(n),n}track(e,t){v.session&&(v.session.pointer={x:e,y:t},v.session.ghost&&Object.assign(v.session.ghost.style,{left:e-v.session.offset.x+"px",top:t-v.session.offset.y+"px"}),this.retarget(e,t),this.startAutoScroll())}retarget(e,t){const s=globalThis.document.elementFromPoint(e,t),n=s?.closest?.("sf-sortable");for(const s of x){const n=s.resolve(e,t,y());if(n)return v.session.list=null,v.session.external={target:s,...n},void L(n.rect)}if(v.session.external=null,n&&S(n,v.session.group)&&v.session.silhouette&&O(n))return v.session.list=n,v.session.index=I(v.session,n,e,t),void L(null);if(v.session.placeholder?.remove(),n&&S(n,v.session.group)){const s=F(n,e,t);v.session.list=n,v.session.index=n===v.session.fromList&&"move"===v.session.mode&&s.index>v.session.sourceIndex?s.index-1:s.index,L(s.rect)}else v.session.list=null,L(null)}startAutoScroll(){if(!v.session||v.session.scrollFrame)return;const e=()=>{if(!v.session?.pointer)return;v.session.scrollFrame=0;const{x:t,y:s}=v.session.pointer,n=k(globalThis.document.elementFromPoint(t,s));if(!n)return;const i=n===globalThis.document.scrollingElement?{top:0,bottom:globalThis.innerHeight}:n.getBoundingClientRect(),o=n.scrollHeight-n.clientHeight;let r=0;s<i.top+f&&n.scrollTop>0?r=-Math.ceil((i.top+f-s)/4):s>i.bottom-f&&n.scrollTop<o&&(r=Math.ceil((s-i.bottom+f)/4)),r&&(n.scrollBy({top:r,behavior:"instant"}),this.retarget(t,s),v.session.scrollFrame=globalThis.requestAnimationFrame(e))};v.session.scrollFrame=globalThis.requestAnimationFrame(e)}drop(){if(!v.session)return;const e=v.session;if(e.external)return e.external.target.drop(y(),e.external.descriptor),void M(this,"dropped");if(e.list){const n=e.index;if(!(e.list===e.fromList&&n===e.sourceIndex))return t=e.list,s={item:e.item,from:e.from,to:e.list.getAttribute("id")||e.list.group,index:n,mode:e.mode},t.dispatchEvent(new globalThis.CustomEvent(l,{bubbles:!0,composed:!0,detail:Object.freeze(s)})),e.list.announce?.(b(m().dropped,{item:A(e.source),index:n+1,list:E(e.list)})),void M(this,"dropped")}var t,s;M(this,"cancelled")}keyboardTargets(){return[...globalThis.document.querySelectorAll("sf-sortable")].filter(e=>e===v.session?.fromList?"move"===v.session.mode:S(e,v.session?.group))}describeKeyboard(e=!0){if(!v.session)return;if(v.session.external)return L(v.session.external.rect),void(e&&this.announce(b(m().target,{target:v.session.external.label||""})));const t=v.session.list,s=w(t),n=t===v.session.fromList&&"move"===v.session.mode,i=s.length+(n?0:1),o=n&&v.session.index>v.session.sourceIndex?v.session.index+1:v.session.index;L(q(t,s,Math.min(o,s.length),"horizontal"===t.getAttribute("orientation"))),e&&this.announce(b(m().moved,{index:v.session.index+1,total:i,list:E(t)}))}onKeyDown(e){const t=e.target.closest?.(c);if(!v.session){if(!t||t.closest("sf-sortable")!==this||e.target!==t)return;if(" "!==e.key&&"Enter"!==e.key)return;if(e.preventDefault(),!this.begin(t,"keyboard"))return;const s=()=>{v.session?.fromList===this&&(this.announce(m().cancelled),M(this,"cancelled"))},n={signal:v.session.cleanup.signal};if(this.addEventListener("focusout",e=>{e.relatedTarget&&this.contains(e.relatedTarget)||globalThis.setTimeout(()=>{this.contains(globalThis.document.activeElement)||s()},0)},n),globalThis.document.addEventListener("pointerdown",e=>{this.contains(e.target)||s()},{...n,capture:!0}),"copy"===v.session.mode){const[e]=this.keyboardTargets(),t=[...x].flatMap(e=>(e.keyboardTargets?.(y())||[]).map(t=>({target:e,...t})));if(e)v.session.list=e,v.session.index=w(e).length;else{if(!t.length)return void M(this,"cancelled");v.session.external=t[0]}}if(v.session.external)return this.describeKeyboard(!1),void this.announce(`${b(m().picked,{item:A(t),index:1,total:1,list:""}).split(".")[0]}. ${b(m().target,{target:v.session.external.label||""})}`);const i=w(v.session.list);return this.describeKeyboard(!1),void this.announce(b(m().picked,{item:A(t),index:v.session.index+1,total:i.length,list:E(v.session.list)}))}if("keyboard"!==v.session.input||v.session.fromList!==this)return;const s=this.keyboardTargets(),n=[...x].flatMap(e=>(e.keyboardTargets?.(y())||[]).map(t=>({target:e,...t})));if("Escape"===e.key||"Tab"===e.key)return"Escape"===e.key&&e.preventDefault(),this.announce(m().cancelled),void M(this,"cancelled");if(" "===e.key||"Enter"===e.key)return e.preventDefault(),void this.drop();const i={ArrowUp:-1,ArrowDown:1}[e.key],o={ArrowLeft:-1,ArrowRight:1}[e.key];if(void 0===i&&void 0===o)return;if(e.preventDefault(),v.session.external){const e=n.findIndex(e=>e.target===v.session.external.target&&JSON.stringify(e.descriptor)===JSON.stringify(v.session.external.descriptor)),t=n[e+(i??o)];return t?v.session.external=t:(i??o)<0&&s.length&&(v.session.external=null,v.session.list=s.at(-1),v.session.index=w(v.session.list).length-(v.session.list===v.session.fromList&&"move"===v.session.mode?1:0)),void this.describeKeyboard()}const r=v.session.list,l=w(r).length-(r===v.session.fromList&&"move"===v.session.mode?1:0);if(void 0!==i){const e=v.session.index+i;e>=0&&e<=l?v.session.index=e:e>l&&void 0===o&&n.length&&s.indexOf(r)===s.length-1&&(v.session.external=n[0])}else{const e=s[s.indexOf(r)+o];e?(v.session.list=e,v.session.index=Math.min(v.session.index,w(e).length-(e===v.session.fromList&&"move"===v.session.mode?1:0))):o>0&&n.length&&(v.session.external=n[0])}this.describeKeyboard()}}return e.define("sf-sortable",s),s}function D(e,t={}){if(!(e instanceof globalThis.Element)||"string"!=typeof t.items)throw new TypeError("attachSortable needs a container and an items selector");const s=globalThis.document,n="line"===t.preview?"line":"column",i="function"==typeof t.groupOf?t.groupOf:()=>"",o="function"==typeof t.canStart?t.canStart:()=>!0,r="function"==typeof t.cellsOf?t.cellsOf:e=>[e],l=s.createElement("div");l.className="sf-sortable-live",l.setAttribute("aria-live","polite"),s.body.append(l);const a=new AbortController;let c=null;const d=s=>[...e.querySelectorAll(t.items)].filter(e=>i(e)===s),u=i=>{const o=d(c.group).filter(e=>e!==c.item).map(e=>e.getBoundingClientRect());let r=o.length;for(let e=0;e<o.length;e+=1)if(i<o[e].left+o[e].width/2){r=e;break}c.index=r;const l=(t.extent?.isConnected?t.extent:e).getBoundingClientRect(),a=c.width,u=o[r],h=o[r-1];let g;g="column"===n?r>c.originalIndex&&h?h.right-a:u?u.left:h?h.right-a:l.left:(u?u.left:h?h.right:l.left)-1,Object.assign((()=>{if(c.outline)return c.outline;const e=s.createElement("div");return e.className="column"===n?"sf-sortable-column-outline":"sf-sortable-indicator",e.setAttribute("aria-hidden","true"),s.body.append(e),c.outline=e,e})().style,{left:`${g}px`,top:`${l.top}px`,width:"column"===n?`${a}px`:"2px",height:`${l.height}px`})},h=n=>{const i=c;if(c=null,!i)return;i.pending.abort(),i.ghost?.remove(),i.outline?.remove();for(const e of i.cells)e.removeAttribute("data-sf-sortable-column-source");if(s.documentElement.removeAttribute("data-sf-sortable-active"),!i.started)return;const o=e=>{e.preventDefault(),e.stopImmediatePropagation()};if(e.addEventListener("click",o,{capture:!0,once:!0}),globalThis.setTimeout(()=>e.removeEventListener("click",o,{capture:!0}),0),!n)return void(l.textContent=m().cancelled);if(void 0===i.index||i.index===i.originalIndex)return;const r=i.item.getAttribute("data-sf-sortable-item")||i.item.dataset.key||"";l.textContent=b(m().dropped,{item:A(i.item),index:i.index+1,list:t.label||""}),t.onIntent?.({item:r,from:i.group,index:i.index,group:i.group})};return e.addEventListener("pointerdown",n=>{if(0!==n.button||c||v.session)return;const l=n.target.closest?.(t.items);if(!l||!e.contains(l)||!o(n,l))return;const a=i(l),p=d(a);if(p.length<2)return;const b=n.clientX,m=n.clientY,x=new AbortController,y=l.getBoundingClientRect();c={item:l,group:a,pending:x,started:!1,cells:[],width:y.width,originalIndex:p.indexOf(l)};globalThis.addEventListener("pointermove",t=>{if(t.pointerId===n.pointerId&&c){if(!c.started){if(Math.hypot(t.clientX-b,t.clientY-m)<g)return;c.started=!0,s.documentElement.setAttribute("data-sf-sortable-active","");const e=l.cloneNode(!0);e.removeAttribute("id");for(const t of e.querySelectorAll("[id]"))t.removeAttribute("id");e.classList.add("sf-sortable-ghost"),e.setAttribute("aria-hidden","true"),e.inert=!0,Object.assign(e.style,{width:`${y.width}px`,height:`${y.height}px`,left:`${y.left}px`,top:`${y.top}px`}),s.body.append(e),c.ghost=e,c.offset={x:b-y.left,y:m-y.top},c.cells=r(l).filter(Boolean);for(const e of c.cells)e.setAttribute("data-sf-sortable-column-source","")}t.preventDefault(),Object.assign(c.ghost.style,{left:t.clientX-c.offset.x+"px",top:t.clientY-c.offset.y+"px"}),(t=>{for(let s=e.parentElement;s;s=s.parentElement){const e=globalThis.getComputedStyle(s);if(!/(auto|scroll)/u.test(e.overflowX)||s.scrollWidth<=s.clientWidth)continue;const n=s.getBoundingClientRect();return void(t<n.left+f?s.scrollBy({left:-Math.ceil((n.left+f-t)/4),behavior:"instant"}):t>n.right-f&&s.scrollBy({left:Math.ceil((t-n.right+f)/4),behavior:"instant"}))}})(t.clientX),u(t.clientX)}},{signal:x.signal,passive:!1}),globalThis.addEventListener("pointerup",e=>{e.pointerId===n.pointerId&&h(!0)},{signal:x.signal}),globalThis.addEventListener("pointercancel",()=>h(!1),{signal:x.signal}),globalThis.addEventListener("keydown",e=>{"Escape"===e.key&&c?.started&&(e.preventDefault(),e.stopPropagation(),h(!1))},{signal:x.signal,capture:!0})},{signal:a.signal}),()=>{h(!1),a.abort(),l.remove()}}s.d(t,["WK",0,a,"dd",0,l]),n()}catch(z){n(z)}})}};const t={};function s(n){const i=t[n];if(void 0!==i)return i.exports;const o=t[n]={exports:{}};return e[n](o,o.exports,s),o.exports}(()=>{const e="function"==typeof Symbol,t=e?Symbol("webpack queues"):"__webpack_queues__",n=e?Symbol("webpack exports"):"__webpack_exports__",i=e?Symbol("webpack error"):"__webpack_error__",o=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};s.a=(e,s,r)=>{let l;r&&((l=[]).d=-1);const a=new Set,c=e.exports;let d,u,h;const g=new Promise((e,t)=>{h=t,u=e});g[n]=c,g[t]=e=>(l&&e(l),a.forEach(e),g.catch(e=>{})),e.exports=g;s(e=>{let s;d=(e=>e.map(e=>{if(null!==e&&"object"==typeof e){if(e[t])return e;if(e.then){const s=[];s.d=0,e.then(e=>{r[n]=e,o(s)},e=>{r[i]=e,o(s)});const r={};return r[t]=e=>e(s),r}}const s={};return s[t]=e=>{},s[n]=e,s}))(e);const r=()=>d.map(e=>{if(e[i])throw e[i];return e[n]}),c=new Promise(e=>{s=()=>e(r),s.r=0;const n=e=>e!==l&&!a.has(e)&&(a.add(e),e&&!e.d&&(s.r++,e.push(s)));d.map(e=>e[t](n))});return s.r?c:r()},e=>(e?h(g[i]=e):u(c),o(l))),l?.d<0&&(l.d=0)}})(),s.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var i=t[n++],o=t[n++];s.o(e,i)?0===o&&n++:0===o?Object.defineProperty(e,i,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,i,{enumerable:!0,get:o})}else for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);s("6064f55a0aa2")})();
@@ -273,11 +273,11 @@
273
273
  },
274
274
  {
275
275
  "path": "src/smart/sortable/docs.md",
276
- "sha256": "5c4a69bed4f633e9ba5b0c2adbe31fe4b0b24db527bdd86901d9c1863a2d359a"
276
+ "sha256": "3f188e42083936683cf54d58c3f0116f9fbacae42dedecbb52039d9b67dd89a6"
277
277
  },
278
278
  {
279
279
  "path": "src/core/js/composition/sortable.mjs",
280
- "sha256": "3d3e18a88181a12712eb8d812de87894d272fa656c26c70e52e0db8db3cc114a"
280
+ "sha256": "871e5e7c95e47ce43dbe7616a984cfdc0e7a048900f6d438121bd84f7a6bf056"
281
281
  }
282
282
  ],
283
283
  "generated_runtime": []
@@ -1,5 +1,5 @@
1
1
  /*! For license information please see theme-generator.min.js.LICENSE.txt */
2
- (()=>{"use strict";var t={fe439ce5e974(t,e,r){function n(t){return t<0?-1:0===t?0:1}function a(t,e,r){return(1-r)*t+r*e}function o(t){return(t%=360)<0&&(t+=360),t}function s(t,e){return[t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2]]}r.d(e,{mC:()=>R,HE:()=>F,AZ:()=>B,cV:()=>k,jb:()=>q,pQ:()=>H,fR:()=>z,q1:()=>V,vS:()=>N});const i=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],h=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],c=[95.047,100,108.883];function u(t,e,r){return(255<<24|(255&t)<<16|(255&e)<<8|255&r)>>>0}function l(t){return u(w(t[0]),w(t[1]),w(t[2]))}function m(t){return t>>16&255}function f(t){return t>>8&255}function d(t){return 255&t}function p(t,e,r){const n=h,a=n[0][0]*t+n[0][1]*e+n[0][2]*r,o=n[1][0]*t+n[1][1]*e+n[1][2]*r,s=n[2][0]*t+n[2][1]*e+n[2][2]*r;return u(w(a),w(o),w(s))}function b(t){const e=function(t){return s([g(m(t)),g(f(t)),g(d(t))],i)}(t)[1];return 116*_(e/100)-16}function M(t){return 100*y((t+16)/116)}function g(t){const e=t/255;return e<=.040449936?e/12.92*100:100*Math.pow((e+.055)/1.055,2.4)}function w(t){const e=t/100;let r=0;return r=e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,n=0,a=255,(o=Math.round(255*r))<n?n:o>a?a:o;var n,a,o}function _(t){const e=24389/27;return t>216/24389?Math.pow(t,1/3):(e*t+16)/116}function y(t){const e=t*t*t;return e>216/24389?e:(116*t-16)/(24389/27)}class C{static make(t=function(){return c}(),e=200/Math.PI*M(50)/100,r=50,n=2,o=!1){const s=t,i=.401288*s[0]+.650173*s[1]+-.051461*s[2],h=-.250268*s[0]+1.204414*s[1]+.045854*s[2],u=-.002079*s[0]+.048952*s[1]+.953127*s[2],l=.8+n/10,m=l>=.9?a(.59,.69,10*(l-.9)):a(.525,.59,10*(l-.8));let f=o?1:l*(1-1/3.6*Math.exp((-e-42)/92));f=f>1?1:f<0?0:f;const d=l,p=[f*(100/i)+1-f,f*(100/h)+1-f,f*(100/u)+1-f],b=1/(5*e+1),g=b*b*b*b,w=1-g,_=g*e+.1*w*w*Math.cbrt(5*e),y=M(r)/t[1],v=1.48+Math.sqrt(y),I=.725/Math.pow(y,.2),T=I,A=[Math.pow(_*p[0]*i/100,.42),Math.pow(_*p[1]*h/100,.42),Math.pow(_*p[2]*u/100,.42)],S=[400*A[0]/(A[0]+27.13),400*A[1]/(A[1]+27.13),400*A[2]/(A[2]+27.13)];return new C(y,(2*S[0]+S[1]+.05*S[2])*I,I,T,m,d,p,_,Math.pow(_,.25),v)}constructor(t,e,r,n,a,o,s,i,h,c){this.n=t,this.aw=e,this.nbb=r,this.ncb=n,this.c=a,this.nc=o,this.rgbD=s,this.fl=i,this.fLRoot=h,this.z=c}}C.DEFAULT=C.make();class v{constructor(t,e,r,n,a,o,s,i,h){this.hue=t,this.chroma=e,this.j=r,this.q=n,this.m=a,this.s=o,this.jstar=s,this.astar=i,this.bstar=h}distance(t){const e=this.jstar-t.jstar,r=this.astar-t.astar,n=this.bstar-t.bstar,a=Math.sqrt(e*e+r*r+n*n);return 1.41*Math.pow(a,.63)}static fromInt(t){return v.fromIntInViewingConditions(t,C.DEFAULT)}static fromIntInViewingConditions(t,e){const r=(65280&t)>>8,a=255&t,s=g((16711680&t)>>16),i=g(r),h=g(a),c=.41233895*s+.35762064*i+.18051042*h,u=.2126*s+.7152*i+.0722*h,l=.01932141*s+.11916382*i+.95034478*h,m=.401288*c+.650173*u-.051461*l,f=-.250268*c+1.204414*u+.045854*l,d=-.002079*c+.048952*u+.953127*l,p=e.rgbD[0]*m,b=e.rgbD[1]*f,M=e.rgbD[2]*d,w=Math.pow(e.fl*Math.abs(p)/100,.42),_=Math.pow(e.fl*Math.abs(b)/100,.42),y=Math.pow(e.fl*Math.abs(M)/100,.42),C=400*n(p)*w/(w+27.13),I=400*n(b)*_/(_+27.13),T=400*n(M)*y/(y+27.13),A=(11*C+-12*I+T)/11,S=(C+I-2*T)/9,$=(20*C+20*I+21*T)/20,x=(40*C+20*I+T)/20,O=o(180*Math.atan2(S,A)/Math.PI),E=O*Math.PI/180,F=x*e.nbb,P=100*Math.pow(F/e.aw,e.c*e.z),L=4/e.c*Math.sqrt(P/100)*(e.aw+4)*e.fLRoot,R=O<20.14?O+360:O,j=5e4/13*(.25*(Math.cos(R*Math.PI/180+2)+3.8))*e.nc*e.ncb*Math.sqrt(A*A+S*S)/($+.305),q=Math.pow(j,.9)*Math.pow(1.64-Math.pow(.29,e.n),.73),D=q*Math.sqrt(P/100),k=D*e.fLRoot,z=50*Math.sqrt(q*e.c/(e.aw+4)),H=(1+100*.007)*P/(1+.007*P),N=1/.0228*Math.log(1+.0228*k),V=N*Math.cos(E),B=N*Math.sin(E);return new v(O,D,P,L,k,z,H,V,B)}static fromJch(t,e,r){return v.fromJchInViewingConditions(t,e,r,C.DEFAULT)}static fromJchInViewingConditions(t,e,r,n){const a=4/n.c*Math.sqrt(t/100)*(n.aw+4)*n.fLRoot,o=e*n.fLRoot,s=e/Math.sqrt(t/100),i=50*Math.sqrt(s*n.c/(n.aw+4)),h=r*Math.PI/180,c=(1+100*.007)*t/(1+.007*t),u=1/.0228*Math.log(1+.0228*o),l=u*Math.cos(h),m=u*Math.sin(h);return new v(r,e,t,a,o,i,c,l,m)}static fromUcs(t,e,r){return v.fromUcsInViewingConditions(t,e,r,C.DEFAULT)}static fromUcsInViewingConditions(t,e,r,n){const a=e,o=r,s=Math.sqrt(a*a+o*o),i=(Math.exp(.0228*s)-1)/.0228/n.fLRoot;let h=Math.atan2(o,a)*(180/Math.PI);h<0&&(h+=360);const c=t/(1-.007*(t-100));return v.fromJchInViewingConditions(c,i,h,n)}toInt(){return this.viewed(C.DEFAULT)}viewed(t){const e=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,o=.25*(Math.cos(a+2)+3.8),s=t.aw*Math.pow(this.j/100,1/t.c/t.z),i=o*(5e4/13)*t.nc*t.ncb,h=s/t.nbb,c=Math.sin(a),u=Math.cos(a),l=23*(h+.305)*r/(23*i+11*r*u+108*r*c),m=l*u,f=l*c,d=(460*h+451*m+288*f)/1403,b=(460*h-891*m-261*f)/1403,M=(460*h-220*m-6300*f)/1403,g=Math.max(0,27.13*Math.abs(d)/(400-Math.abs(d))),w=n(d)*(100/t.fl)*Math.pow(g,1/.42),_=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=n(b)*(100/t.fl)*Math.pow(_,1/.42),C=Math.max(0,27.13*Math.abs(M)/(400-Math.abs(M))),v=n(M)*(100/t.fl)*Math.pow(C,1/.42),I=w/t.rgbD[0],T=y/t.rgbD[1],A=v/t.rgbD[2];return p(1.86206786*I-1.01125463*T+.14918677*A,.38752654*I+.62144744*T-.00897398*A,-.0158415*I-.03412294*T+1.04996444*A)}static fromXyzInViewingConditions(t,e,r,a){const o=.401288*t+.650173*e-.051461*r,s=-.250268*t+1.204414*e+.045854*r,i=-.002079*t+.048952*e+.953127*r,h=a.rgbD[0]*o,c=a.rgbD[1]*s,u=a.rgbD[2]*i,l=Math.pow(a.fl*Math.abs(h)/100,.42),m=Math.pow(a.fl*Math.abs(c)/100,.42),f=Math.pow(a.fl*Math.abs(u)/100,.42),d=400*n(h)*l/(l+27.13),p=400*n(c)*m/(m+27.13),b=400*n(u)*f/(f+27.13),M=(11*d+-12*p+b)/11,g=(d+p-2*b)/9,w=(20*d+20*p+21*b)/20,_=(40*d+20*p+b)/20,y=180*Math.atan2(g,M)/Math.PI,C=y<0?y+360:y>=360?y-360:y,I=C*Math.PI/180,T=_*a.nbb,A=100*Math.pow(T/a.aw,a.c*a.z),S=4/a.c*Math.sqrt(A/100)*(a.aw+4)*a.fLRoot,$=C<20.14?C+360:C,x=5e4/13*(1/4*(Math.cos($*Math.PI/180+2)+3.8))*a.nc*a.ncb*Math.sqrt(M*M+g*g)/(w+.305),O=Math.pow(x,.9)*Math.pow(1.64-Math.pow(.29,a.n),.73),E=O*Math.sqrt(A/100),F=E*a.fLRoot,P=50*Math.sqrt(O*a.c/(a.aw+4)),L=(1+100*.007)*A/(1+.007*A),R=Math.log(1+.0228*F)/.0228,j=R*Math.cos(I),q=R*Math.sin(I);return new v(C,E,A,S,F,P,L,j,q)}xyzInViewingConditions(t){const e=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,o=.25*(Math.cos(a+2)+3.8),s=t.aw*Math.pow(this.j/100,1/t.c/t.z),i=o*(5e4/13)*t.nc*t.ncb,h=s/t.nbb,c=Math.sin(a),u=Math.cos(a),l=23*(h+.305)*r/(23*i+11*r*u+108*r*c),m=l*u,f=l*c,d=(460*h+451*m+288*f)/1403,p=(460*h-891*m-261*f)/1403,b=(460*h-220*m-6300*f)/1403,M=Math.max(0,27.13*Math.abs(d)/(400-Math.abs(d))),g=n(d)*(100/t.fl)*Math.pow(M,1/.42),w=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),_=n(p)*(100/t.fl)*Math.pow(w,1/.42),y=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),C=n(b)*(100/t.fl)*Math.pow(y,1/.42),v=g/t.rgbD[0],I=_/t.rgbD[1],T=C/t.rgbD[2];return[1.86206786*v-1.01125463*I+.14918677*T,.38752654*v+.62144744*I-.00897398*T,-.0158415*v-.03412294*I+1.04996444*T]}}class I{static sanitizeRadians(t){return(t+8*Math.PI)%(2*Math.PI)}static trueDelinearized(t){const e=t/100;let r=0;return r=e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,255*r}static chromaticAdaptation(t){const e=Math.pow(Math.abs(t),.42);return 400*n(t)*e/(e+27.13)}static hueOf(t){const e=s(t,I.SCALED_DISCOUNT_FROM_LINRGB),r=I.chromaticAdaptation(e[0]),n=I.chromaticAdaptation(e[1]),a=I.chromaticAdaptation(e[2]),o=(11*r+-12*n+a)/11,i=(r+n-2*a)/9;return Math.atan2(i,o)}static areInCyclicOrder(t,e,r){return I.sanitizeRadians(e-t)<I.sanitizeRadians(r-t)}static intercept(t,e,r){return(e-t)/(r-t)}static lerpPoint(t,e,r){return[t[0]+(r[0]-t[0])*e,t[1]+(r[1]-t[1])*e,t[2]+(r[2]-t[2])*e]}static setCoordinate(t,e,r,n){const a=I.intercept(t[n],e,r[n]);return I.lerpPoint(t,a,r)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,e){const r=I.Y_FROM_LINRGB[0],n=I.Y_FROM_LINRGB[1],a=I.Y_FROM_LINRGB[2],o=e%4<=1?0:100,s=e%2==0?0:100;if(e<4){const e=o,i=s,h=(t-e*n-i*a)/r;return I.isBounded(h)?[h,e,i]:[-1,-1,-1]}if(e<8){const e=o,i=s,h=(t-i*r-e*a)/n;return I.isBounded(h)?[i,h,e]:[-1,-1,-1]}{const e=o,i=s,h=(t-e*r-i*n)/a;return I.isBounded(h)?[e,i,h]:[-1,-1,-1]}}static bisectToSegment(t,e){let r=[-1,-1,-1],n=r,a=0,o=0,s=!1,i=!0;for(let h=0;h<12;h++){const c=I.nthVertex(t,h);if(c[0]<0)continue;const u=I.hueOf(c);s?(i||I.areInCyclicOrder(a,u,o))&&(i=!1,I.areInCyclicOrder(a,e,u)?(n=c,o=u):(r=c,a=u)):(r=c,n=c,a=u,o=u,s=!0)}return[r,n]}static midpoint(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,e){const r=I.bisectToSegment(t,e);let n=r[0],a=I.hueOf(n),o=r[1];for(let t=0;t<3;t++)if(n[t]!==o[t]){let r=-1,s=255;n[t]<o[t]?(r=I.criticalPlaneBelow(I.trueDelinearized(n[t])),s=I.criticalPlaneAbove(I.trueDelinearized(o[t]))):(r=I.criticalPlaneAbove(I.trueDelinearized(n[t])),s=I.criticalPlaneBelow(I.trueDelinearized(o[t])));for(let i=0;i<8&&!(Math.abs(s-r)<=1);i++){const i=Math.floor((r+s)/2),h=I.CRITICAL_PLANES[i],c=I.setCoordinate(n,h,o,t),u=I.hueOf(c);I.areInCyclicOrder(a,e,u)?(o=c,s=i):(n=c,a=u,r=i)}}return I.midpoint(n,o)}static inverseChromaticAdaptation(t){const e=Math.abs(t),r=Math.max(0,27.13*e/(400-e));return n(t)*Math.pow(r,1/.42)}static findResultByJ(t,e,r){let n=11*Math.sqrt(r);const a=C.DEFAULT,o=1/Math.pow(1.64-Math.pow(.29,a.n),.73),i=.25*(Math.cos(t+2)+3.8)*(5e4/13)*a.nc*a.ncb,h=Math.sin(t),c=Math.cos(t);for(let t=0;t<5;t++){const u=n/100,m=0===e||0===n?0:e/Math.sqrt(u),f=Math.pow(m*o,1/.9),d=a.aw*Math.pow(u,1/a.c/a.z)/a.nbb,p=23*(d+.305)*f/(23*i+11*f*c+108*f*h),b=p*c,M=p*h,g=(460*d+451*b+288*M)/1403,w=(460*d-891*b-261*M)/1403,_=(460*d-220*b-6300*M)/1403,y=s([I.inverseChromaticAdaptation(g),I.inverseChromaticAdaptation(w),I.inverseChromaticAdaptation(_)],I.LINRGB_FROM_SCALED_DISCOUNT);if(y[0]<0||y[1]<0||y[2]<0)return 0;const C=I.Y_FROM_LINRGB[0],v=I.Y_FROM_LINRGB[1],T=I.Y_FROM_LINRGB[2],A=C*y[0]+v*y[1]+T*y[2];if(A<=0)return 0;if(4===t||Math.abs(A-r)<.002)return y[0]>100.01||y[1]>100.01||y[2]>100.01?0:l(y);n-=(A-r)*n/(2*A)}return 0}static solveToInt(t,e,r){if(e<1e-4||r<1e-4||r>99.9999)return function(t){const e=w(M(t));return u(e,e,e)}(r);const n=(t=o(t))/180*Math.PI,a=M(r),s=I.findResultByJ(n,e,a);if(0!==s)return s;return l(I.bisectToLimit(a,n))}static solveToCam(t,e,r){return v.fromInt(I.solveToInt(t,e,r))}}I.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],I.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],I.Y_FROM_LINRGB=[.2126,.7152,.0722],I.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];class T{static from(t,e,r){return new T(I.solveToInt(t,e,r))}static fromInt(t){return new T(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(I.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(I.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(I.solveToInt(this.internalHue,this.internalChroma,t))}setValue(t,e){this[t]=e}toString(){return`HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(t){return t>=250&&t<270}static isYellow(t){return t>=105&&t<125}static isCyan(t){return t>=170&&t<207}constructor(t){this.argb=t;const e=v.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=b(t),this.argb=t}setInternalState(t){const e=v.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=b(t),this.argb=t}inViewingConditions(t){const e=v.fromInt(this.toInt()).xyzInViewingConditions(t),r=v.fromXyzInViewingConditions(e[0],e[1],e[2],C.make());return T.from(r.hue,r.chroma,116*_(e[1]/100)-16)}}class A{static fromInt(t){const e=T.fromInt(t);return A.fromHct(e)}static fromHct(t){return new A(t.hue,t.chroma,t)}static fromHueAndChroma(t,e){const r=new S(t,e).create();return new A(t,e,r)}constructor(t,e,r){this.hue=t,this.chroma=e,this.keyColor=r,this.cache=new Map}tone(t){let e=this.cache.get(t);return void 0===e&&(e=99==t&&T.isYellow(this.hue)?this.averageArgb(this.tone(98),this.tone(100)):T.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,e)),e}getHct(t){return T.fromInt(this.tone(t))}averageArgb(t,e){const r=t>>>16&255,n=t>>>8&255,a=255&t,o=e>>>16&255,s=e>>>8&255,i=255&e;return(255<<24|(255&Math.round((r+o)/2))<<16|(255&Math.round((n+s)/2))<<8|255&Math.round((a+i)/2))>>>0}}class S{constructor(t,e){this.hue=t,this.requestedChroma=e,this.chromaCache=new Map,this.maxChromaValue=200}create(){let t=0,e=100;for(;t<e;){const r=Math.floor((t+e)/2),n=this.maxChroma(r)<this.maxChroma(r+1);if(this.maxChroma(r)>=this.requestedChroma-.01)if(Math.abs(t-50)<Math.abs(e-50))e=r;else{if(t===r)return T.from(this.hue,this.requestedChroma,t);t=r}else n?t=r+1:e=r}return T.from(this.hue,this.requestedChroma,t)}maxChroma(t){if(this.chromaCache.has(t))return this.chromaCache.get(t);const e=T.from(this.hue,this.maxChromaValue,t).chroma;return this.chromaCache.set(t,e),e}}function $(t){const e=m(t),r=f(t),n=d(t),a=[e.toString(16),r.toString(16),n.toString(16)];for(const[t,e]of a.entries())1===e.length&&(a[t]="0"+e);return"#"+a.join("")}function x(t){return parseInt(t,16)}const O=Object.freeze([98,95,90,85,80,70,60,50,40,35,30,25,20,15,10,5]),E=Object.freeze({primary:{hue:t=>t.hue,chroma:t=>t.chroma},secondary:{hue:t=>t.hue,chroma:20},tertiary:{hue:t=>(t.hue+60)%360,chroma:40},neutral:{hue:t=>t.hue,chroma:5},error:{hue:25,chroma:85},warning:{hue:60,chroma:60},success:{hue:145,chroma:65},info:{hue:t=>t.hue,chroma:t=>t.chroma}}),F=Object.freeze(Object.keys(E)),P=Object.freeze({primary:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},secondary:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},tertiary:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},neutral:{50:[4,8,12,16,20,24,32,48,80],60:[48,64],80:[48],90:[4,8,12,16,20,24,32,48]},error:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},warning:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},success:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},info:{50:[12,16,20,24,28,32]}}),L=t=>Math.round(255*t/100).toString(16).padStart(2,"0"),R="#005bbe",j=/^#?(?:[0-9a-f]{3}|[0-9a-f]{6})$/iu;function q(t){return"string"==typeof t&&j.test(t.trim())}const D=t=>Math.round(10*t)/10;function k(t){if(!q(t))throw new TypeError(`A theme colour is a hex colour, #rgb or #rrggbb: ${String(t)}`);const e=(t=>{const e=t.trim().replace(/^#/u,"").toLowerCase();return`#${3===e.length?[...e].map(t=>t+t).join(""):e}`})(t),r=T.fromInt(function(t){const e=3===(t=t.replace("#","")).length,r=6===t.length,n=8===t.length;if(!e&&!r&&!n)throw new Error("unexpected hex "+t);let a=0,o=0,s=0;return e?(a=x(t.slice(0,1).repeat(2)),o=x(t.slice(1,2).repeat(2)),s=x(t.slice(2,3).repeat(2))):r?(a=x(t.slice(0,2)),o=x(t.slice(2,4)),s=x(t.slice(4,6))):n&&(a=x(t.slice(2,4)),o=x(t.slice(4,6)),s=x(t.slice(6,8))),(255<<24|(255&a)<<16|(255&o)<<8|255&s)>>>0}(e)),n=T.from(r.hue,200,r.tone).chroma,a=r.chroma>=n-1?Math.max(85,Math.round(r.chroma)):Math.round(r.chroma);return{hex:e,hue:Math.round(r.hue)%360,chroma:a,tone:D(r.tone)}}function z({hue:t,chroma:e}={},r={}){if(!Number.isFinite(t)||!Number.isFinite(e))throw new TypeError("A theme is made from a hue and a chroma");const n={hue:(t%360+360)%360,chroma:Math.max(0,e)},a={};for(const t of F){const e={...E[t],...r[t]??{}},o="function"==typeof e.hue?e.hue(n):Number(e.hue),s="function"==typeof e.chroma?e.chroma(n):Number(e.chroma);if(!Number.isFinite(o)||!Number.isFinite(s))throw new TypeError(`${t}: hue and chroma are numbers`);const i=A.fromHueAndChroma((o%360+360)%360,Math.max(0,s));a[t]={hue:D(i.hue),chroma:D(i.chroma),tones:Object.fromEntries(O.map(t=>[t,$(i.tone(t))]))}}return{schema:"simai.framework.theme",schema_version:1,source:n,palettes:a}}function H(t=R,e={}){const r=k(t),n=z(r,e);return{...n,source:{...n.source,hex:r.hex,tone:r.tone}}}function N(t){const e={};for(const[r,n]of Object.entries(t?.palettes??{}))for(const[t,a]of Object.entries(n.tones??{}))e[`--sf-${r}-${t}`]=a;for(const[r,n]of Object.entries(t?.palettes??{}))for(const[t,a]of Object.entries(P[r]??{})){const o=n.tones?.[t];if(o)for(const n of a)e[`--sf-${r}-${t}--alfa-${n}`]=`${o}${L(n)}`}return e}function V(t,e=":root"){return`${e} {\n${Object.entries(N(t)).map(([t,e])=>` ${t}: ${e};`).join("\n")}\n}\n`}function B(t,e=globalThis.document?.documentElement){if(!e?.style)return()=>{};const r=N(t),n=Object.fromEntries(Object.keys(r).map(t=>[t,e.style.getPropertyValue(t)]));for(const[t,n]of Object.entries(r))e.style.setProperty(t,n);return()=>{for(const[t,r]of Object.entries(n))r?e.style.setProperty(t,r):e.style.removeProperty(t)}}"undefined"!=typeof window&&(window.SF=window.SF||{},window.SF.ThemePalette=Object.freeze({themeFromColor:H,themeFromHct:z,colorToHct:k,themeToCss:V,themeVariables:N,applyTheme:B,isThemeColor:q,THEME_TONES:O,THEME_PALETTES:F,THEME_ALPHA:P,DEFAULT_THEME_COLOR:R}))},"7596c29157bc"(t,e,r){r.a(t,async(t,e)=>{try{var n=r("fbe0570fcc69"),a=r("0d662e4d7d63"),o=r("fe439ce5e974"),s=r("ef761541fe6e"),i=t([n,a,s]);[n,a,s]=i.then?(await i)():i;var h=r.n(n);const c=["1/2","1","2"],u=[90,70,50,40,30,10],l={hue:[0,360],chroma:[0,150]},m={en:{color:"Main colour",inherited:"Framework colour",advanced:"Advanced",hue:"Hue",hueHint:"0 to 360",chroma:"Chroma",chromaHint:"0 to 150",reset:"Reset",preview:"Theme preview",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",error:"Error",warning:"Warning",success:"Success",info:"Information"},ru:{color:"Основной цвет",inherited:"цвет Framework",advanced:"Тонкая настройка",hue:"Тон",hueHint:"От 0 до 360",chroma:"Насыщенность",chromaHint:"От 0 до 150",reset:"Сбросить",preview:"Предпросмотр темы",primary:"Основная",secondary:"Вторичная",tertiary:"Дополнительная",neutral:"Нейтральная",error:"Ошибка",warning:"Предупреждение",success:"Успех",info:"Информация"}},f=t=>{let e=String(t??"").trim();return/^#?[0-9a-f]{8}$/iu.test(e)&&(e=e.replace(/^#?/u,"#").slice(0,7)),(0,o.jb)(e)?(0,o.cV)(e).hex:""},d=(t,[e,r],n=!1)=>{const a=String(t??"").trim();if(!/^-?\d+(?:[.,]\d+)?$/u.test(a))return null;const o=Math.round(Number(a.replace(",",".")));return Number.isFinite(o)?o<e||o>r?n?Math.min(r,Math.max(e,o)):null:o:null},p=t=>JSON.parse(JSON.stringify(t));class b extends(h()){constructor(){super(),this._themeKey=null,this._theme=null,this._undo=null,this._applied={target:null,key:null},this._quiet=!1,this._committedKey=null}static get props(){return{templateName:{attribute:"template",default:"default"},value:{default:""},hue:{default:""},chroma:{default:""},size:{default:"1",values:["1/2","1","2"]},swatches:{default:""},apply:{type:Boolean,default:!1},target:{default:""},selector:{default:":root"},rootClass:{default:""}}}get value(){return f(this.getAttribute("value"))}set value(t){const e=f(t);e?this.setAttribute("value",e):this.removeAttribute("value")}get color(){return this.value||o.mC}get hue(){return d(this.getAttribute("hue"),l.hue,!0)??(0,o.cV)(this.color).hue}get chroma(){return d(this.getAttribute("chroma"),l.chroma,!0)??(0,o.cV)(this.color).chroma}get size(){const t=this.getAttribute("size");return c.includes(t)?t:"1"}get selector(){return this.getAttribute("selector")||":root"}get swatches(){return this.getAttribute("swatches")||""}get theme(){return p(this._currentTheme())}toCSS(t=this.selector){return(0,o.q1)(this._currentTheme(),t||":root")}toJSON(){return p(this._currentTheme())}reset(){this._batch(()=>{this.removeAttribute("value"),this.removeAttribute("hue"),this.removeAttribute("chroma")}),this._emitChange(),this._commit(!0)}_key(){const t=t=>d(this.getAttribute(t),l[t],!0)??"";return`${this.color}|${t("hue")}|${t("chroma")}`}_currentTheme(){const t=this._key();if(t!==this._themeKey){const e=this.hasAttribute("hue")||this.hasAttribute("chroma");this._theme=e?(0,o.fR)({hue:this.hue,chroma:this.chroma}):(0,o.pQ)(this.color),this._themeKey=t}return this._theme}_detail(){const t=this._currentTheme();return{value:this.value,hue:this.hue,chroma:this.chroma,theme:p(t),variables:(0,o.vS)(t),css:(0,o.q1)(t,this.selector)}}_emitChange(){const t=this._detail();this.emitComponentEvent("theme-generator-change",t),this.emitComponentEvent("theme-change",t)}_commit(t=!1){const e=this._key();if(!t&&e===this._committedKey)return;this._committedKey=e;const r=this._detail();this.emitComponentEvent("theme-generator-apply",r),this.emitComponentEvent("theme-apply",r)}_batch(t){this._quiet=!0;try{t()}finally{this._quiet=!1}this._sync(),this.requestComponentUpdate("theme")}_target(){if(!this.hasAttribute("apply")||"false"===this.getAttribute("apply"))return null;const t=this.getAttribute("target");if(!t)return document.documentElement;try{return document.querySelector(t)}catch{return null}}_sync(){if(!this.isConnected)return;const t=this._target(),e=t?this._key():null;t===this._applied.target&&e===this._applied.key||(this._unapply(),t&&(this._undo=(0,o.AZ)(this._currentTheme(),t)),this._applied={target:t,key:e})}_unapply(){this._undo?.(),this._undo=null,this._applied={target:null,key:null}}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),e===r||this._quiet||this._sync()}connectedCallback(){super.connectedCallback?.(),this._committedKey=this._key(),this._sync()}disconnectedCallback(){this._unapply(),super.disconnectedCallback?.()}_colorInput(t){t.stopPropagation();const e=f(t.detail?.value??t.target?.value);if(!e)return;(e!==this.value||this.hasAttribute("hue")||this.hasAttribute("chroma"))&&(this._batch(()=>{this.setAttribute("value",e),this.removeAttribute("hue"),this.removeAttribute("chroma")}),this._emitChange())}_colorChange(t){this._colorInput(t),this._commit()}_fieldInput(t,e){e.stopPropagation();const r=d(e.target?.value,l[t]);null!==r&&String(r)!==this.getAttribute(t)&&(this._batch(()=>this.setAttribute(t,String(r))),this._emitChange())}_fieldCommit(t,e){const r=d(e?.value,l[t],!0);null!==r&&String(r)!==this.getAttribute(t)&&(this._batch(()=>this.setAttribute(t,String(r))),this._emitChange()),e&&String(e.value)!==String(this[t])&&(e.value=String(this[t])),this._commit()}_fieldChange(t,e){e.stopPropagation(),this._fieldCommit(t,e.currentTarget)}_fieldKey(t,e){"Enter"===e.key&&(e.preventDefault(),this._fieldCommit(t,e.currentTarget))}templateContext(){const t=t=>(0,a.pageText)(m,t,this,"sf-theme-generator"),e=this._currentTheme();return this.createTemplateContext({...this.getPropsContext(),component:this,size:this.size,value:this.value,inheritedValue:o.mC,hue:this.hue,chroma:this.chroma,swatches:this.swatches,text:{color:t("color"),inherited:t("inherited"),advanced:t("advanced"),hue:t("hue"),hueHint:t("hueHint"),chroma:t("chroma"),chromaHint:t("chromaHint"),reset:t("reset"),preview:t("preview")},palettes:o.HE.map(r=>({name:r,label:t(r),swatches:u.map(t=>({tone:t,hex:e.palettes[r].tones[t]}))})),rootClass:this.getRootClass()})}template(){return(0,s.J)(this.templateContext())}}b.define("sf-theme-generator"),e()}catch(t){e(t)}})},ef761541fe6e(t,e,r){r.a(t,async(t,n)=>{try{r.d(e,{J:()=>i});var a=r("ddf1cdb42ecc"),o=t([a]),s=o.then?(await o)():o;a=s[0];function i(t){const{component:e,size:r,text:n}=t,o=(t,o,s)=>a.html`
2
+ (()=>{"use strict";var t={fe439ce5e974(t,e,r){function n(t){return t<0?-1:0===t?0:1}function a(t,e,r){return(1-r)*t+r*e}function o(t){return(t%=360)<0&&(t+=360),t}function s(t,e){return[t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2]]}r.d(e,{mC:()=>R,HE:()=>F,AZ:()=>B,cV:()=>k,jb:()=>q,pQ:()=>H,fR:()=>z,q1:()=>V,vS:()=>N});const i=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],h=[[3.2413774792388685,-1.5376652402851851,-.49885366846268053],[-.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-.20395524564742123,1.0571799111220335]],c=[95.047,100,108.883];function u(t,e,r){return(255<<24|(255&t)<<16|(255&e)<<8|255&r)>>>0}function l(t){return u(w(t[0]),w(t[1]),w(t[2]))}function m(t){return t>>16&255}function f(t){return t>>8&255}function d(t){return 255&t}function p(t,e,r){const n=h,a=n[0][0]*t+n[0][1]*e+n[0][2]*r,o=n[1][0]*t+n[1][1]*e+n[1][2]*r,s=n[2][0]*t+n[2][1]*e+n[2][2]*r;return u(w(a),w(o),w(s))}function b(t){const e=function(t){return s([g(m(t)),g(f(t)),g(d(t))],i)}(t)[1];return 116*_(e/100)-16}function M(t){return 100*y((t+16)/116)}function g(t){const e=t/255;return e<=.040449936?e/12.92*100:100*Math.pow((e+.055)/1.055,2.4)}function w(t){const e=t/100;let r=0;return r=e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,n=0,a=255,(o=Math.round(255*r))<n?n:o>a?a:o;var n,a,o}function _(t){const e=24389/27;return t>216/24389?Math.pow(t,1/3):(e*t+16)/116}function y(t){const e=t*t*t;return e>216/24389?e:(116*t-16)/(24389/27)}class C{static make(t=function(){return c}(),e=200/Math.PI*M(50)/100,r=50,n=2,o=!1){const s=t,i=.401288*s[0]+.650173*s[1]+-.051461*s[2],h=-.250268*s[0]+1.204414*s[1]+.045854*s[2],u=-.002079*s[0]+.048952*s[1]+.953127*s[2],l=.8+n/10,m=l>=.9?a(.59,.69,10*(l-.9)):a(.525,.59,10*(l-.8));let f=o?1:l*(1-1/3.6*Math.exp((-e-42)/92));f=f>1?1:f<0?0:f;const d=l,p=[f*(100/i)+1-f,f*(100/h)+1-f,f*(100/u)+1-f],b=1/(5*e+1),g=b*b*b*b,w=1-g,_=g*e+.1*w*w*Math.cbrt(5*e),y=M(r)/t[1],v=1.48+Math.sqrt(y),I=.725/Math.pow(y,.2),T=I,A=[Math.pow(_*p[0]*i/100,.42),Math.pow(_*p[1]*h/100,.42),Math.pow(_*p[2]*u/100,.42)],S=[400*A[0]/(A[0]+27.13),400*A[1]/(A[1]+27.13),400*A[2]/(A[2]+27.13)];return new C(y,(2*S[0]+S[1]+.05*S[2])*I,I,T,m,d,p,_,Math.pow(_,.25),v)}constructor(t,e,r,n,a,o,s,i,h,c){this.n=t,this.aw=e,this.nbb=r,this.ncb=n,this.c=a,this.nc=o,this.rgbD=s,this.fl=i,this.fLRoot=h,this.z=c}}C.DEFAULT=C.make();class v{constructor(t,e,r,n,a,o,s,i,h){this.hue=t,this.chroma=e,this.j=r,this.q=n,this.m=a,this.s=o,this.jstar=s,this.astar=i,this.bstar=h}distance(t){const e=this.jstar-t.jstar,r=this.astar-t.astar,n=this.bstar-t.bstar,a=Math.sqrt(e*e+r*r+n*n);return 1.41*Math.pow(a,.63)}static fromInt(t){return v.fromIntInViewingConditions(t,C.DEFAULT)}static fromIntInViewingConditions(t,e){const r=(65280&t)>>8,a=255&t,s=g((16711680&t)>>16),i=g(r),h=g(a),c=.41233895*s+.35762064*i+.18051042*h,u=.2126*s+.7152*i+.0722*h,l=.01932141*s+.11916382*i+.95034478*h,m=.401288*c+.650173*u-.051461*l,f=-.250268*c+1.204414*u+.045854*l,d=-.002079*c+.048952*u+.953127*l,p=e.rgbD[0]*m,b=e.rgbD[1]*f,M=e.rgbD[2]*d,w=Math.pow(e.fl*Math.abs(p)/100,.42),_=Math.pow(e.fl*Math.abs(b)/100,.42),y=Math.pow(e.fl*Math.abs(M)/100,.42),C=400*n(p)*w/(w+27.13),I=400*n(b)*_/(_+27.13),T=400*n(M)*y/(y+27.13),A=(11*C+-12*I+T)/11,S=(C+I-2*T)/9,$=(20*C+20*I+21*T)/20,x=(40*C+20*I+T)/20,O=o(180*Math.atan2(S,A)/Math.PI),E=O*Math.PI/180,F=x*e.nbb,P=100*Math.pow(F/e.aw,e.c*e.z),L=4/e.c*Math.sqrt(P/100)*(e.aw+4)*e.fLRoot,R=O<20.14?O+360:O,j=5e4/13*(.25*(Math.cos(R*Math.PI/180+2)+3.8))*e.nc*e.ncb*Math.sqrt(A*A+S*S)/($+.305),q=Math.pow(j,.9)*Math.pow(1.64-Math.pow(.29,e.n),.73),D=q*Math.sqrt(P/100),k=D*e.fLRoot,z=50*Math.sqrt(q*e.c/(e.aw+4)),H=(1+100*.007)*P/(1+.007*P),N=1/.0228*Math.log(1+.0228*k),V=N*Math.cos(E),B=N*Math.sin(E);return new v(O,D,P,L,k,z,H,V,B)}static fromJch(t,e,r){return v.fromJchInViewingConditions(t,e,r,C.DEFAULT)}static fromJchInViewingConditions(t,e,r,n){const a=4/n.c*Math.sqrt(t/100)*(n.aw+4)*n.fLRoot,o=e*n.fLRoot,s=e/Math.sqrt(t/100),i=50*Math.sqrt(s*n.c/(n.aw+4)),h=r*Math.PI/180,c=(1+100*.007)*t/(1+.007*t),u=1/.0228*Math.log(1+.0228*o),l=u*Math.cos(h),m=u*Math.sin(h);return new v(r,e,t,a,o,i,c,l,m)}static fromUcs(t,e,r){return v.fromUcsInViewingConditions(t,e,r,C.DEFAULT)}static fromUcsInViewingConditions(t,e,r,n){const a=e,o=r,s=Math.sqrt(a*a+o*o),i=(Math.exp(.0228*s)-1)/.0228/n.fLRoot;let h=Math.atan2(o,a)*(180/Math.PI);h<0&&(h+=360);const c=t/(1-.007*(t-100));return v.fromJchInViewingConditions(c,i,h,n)}toInt(){return this.viewed(C.DEFAULT)}viewed(t){const e=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,o=.25*(Math.cos(a+2)+3.8),s=t.aw*Math.pow(this.j/100,1/t.c/t.z),i=o*(5e4/13)*t.nc*t.ncb,h=s/t.nbb,c=Math.sin(a),u=Math.cos(a),l=23*(h+.305)*r/(23*i+11*r*u+108*r*c),m=l*u,f=l*c,d=(460*h+451*m+288*f)/1403,b=(460*h-891*m-261*f)/1403,M=(460*h-220*m-6300*f)/1403,g=Math.max(0,27.13*Math.abs(d)/(400-Math.abs(d))),w=n(d)*(100/t.fl)*Math.pow(g,1/.42),_=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),y=n(b)*(100/t.fl)*Math.pow(_,1/.42),C=Math.max(0,27.13*Math.abs(M)/(400-Math.abs(M))),v=n(M)*(100/t.fl)*Math.pow(C,1/.42),I=w/t.rgbD[0],T=y/t.rgbD[1],A=v/t.rgbD[2];return p(1.86206786*I-1.01125463*T+.14918677*A,.38752654*I+.62144744*T-.00897398*A,-.0158415*I-.03412294*T+1.04996444*A)}static fromXyzInViewingConditions(t,e,r,a){const o=.401288*t+.650173*e-.051461*r,s=-.250268*t+1.204414*e+.045854*r,i=-.002079*t+.048952*e+.953127*r,h=a.rgbD[0]*o,c=a.rgbD[1]*s,u=a.rgbD[2]*i,l=Math.pow(a.fl*Math.abs(h)/100,.42),m=Math.pow(a.fl*Math.abs(c)/100,.42),f=Math.pow(a.fl*Math.abs(u)/100,.42),d=400*n(h)*l/(l+27.13),p=400*n(c)*m/(m+27.13),b=400*n(u)*f/(f+27.13),M=(11*d+-12*p+b)/11,g=(d+p-2*b)/9,w=(20*d+20*p+21*b)/20,_=(40*d+20*p+b)/20,y=180*Math.atan2(g,M)/Math.PI,C=y<0?y+360:y>=360?y-360:y,I=C*Math.PI/180,T=_*a.nbb,A=100*Math.pow(T/a.aw,a.c*a.z),S=4/a.c*Math.sqrt(A/100)*(a.aw+4)*a.fLRoot,$=C<20.14?C+360:C,x=5e4/13*(1/4*(Math.cos($*Math.PI/180+2)+3.8))*a.nc*a.ncb*Math.sqrt(M*M+g*g)/(w+.305),O=Math.pow(x,.9)*Math.pow(1.64-Math.pow(.29,a.n),.73),E=O*Math.sqrt(A/100),F=E*a.fLRoot,P=50*Math.sqrt(O*a.c/(a.aw+4)),L=(1+100*.007)*A/(1+.007*A),R=Math.log(1+.0228*F)/.0228,j=R*Math.cos(I),q=R*Math.sin(I);return new v(C,E,A,S,F,P,L,j,q)}xyzInViewingConditions(t){const e=0===this.chroma||0===this.j?0:this.chroma/Math.sqrt(this.j/100),r=Math.pow(e/Math.pow(1.64-Math.pow(.29,t.n),.73),1/.9),a=this.hue*Math.PI/180,o=.25*(Math.cos(a+2)+3.8),s=t.aw*Math.pow(this.j/100,1/t.c/t.z),i=o*(5e4/13)*t.nc*t.ncb,h=s/t.nbb,c=Math.sin(a),u=Math.cos(a),l=23*(h+.305)*r/(23*i+11*r*u+108*r*c),m=l*u,f=l*c,d=(460*h+451*m+288*f)/1403,p=(460*h-891*m-261*f)/1403,b=(460*h-220*m-6300*f)/1403,M=Math.max(0,27.13*Math.abs(d)/(400-Math.abs(d))),g=n(d)*(100/t.fl)*Math.pow(M,1/.42),w=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),_=n(p)*(100/t.fl)*Math.pow(w,1/.42),y=Math.max(0,27.13*Math.abs(b)/(400-Math.abs(b))),C=n(b)*(100/t.fl)*Math.pow(y,1/.42),v=g/t.rgbD[0],I=_/t.rgbD[1],T=C/t.rgbD[2];return[1.86206786*v-1.01125463*I+.14918677*T,.38752654*v+.62144744*I-.00897398*T,-.0158415*v-.03412294*I+1.04996444*T]}}class I{static sanitizeRadians(t){return(t+8*Math.PI)%(2*Math.PI)}static trueDelinearized(t){const e=t/100;let r=0;return r=e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,255*r}static chromaticAdaptation(t){const e=Math.pow(Math.abs(t),.42);return 400*n(t)*e/(e+27.13)}static hueOf(t){const e=s(t,I.SCALED_DISCOUNT_FROM_LINRGB),r=I.chromaticAdaptation(e[0]),n=I.chromaticAdaptation(e[1]),a=I.chromaticAdaptation(e[2]),o=(11*r+-12*n+a)/11,i=(r+n-2*a)/9;return Math.atan2(i,o)}static areInCyclicOrder(t,e,r){return I.sanitizeRadians(e-t)<I.sanitizeRadians(r-t)}static intercept(t,e,r){return(e-t)/(r-t)}static lerpPoint(t,e,r){return[t[0]+(r[0]-t[0])*e,t[1]+(r[1]-t[1])*e,t[2]+(r[2]-t[2])*e]}static setCoordinate(t,e,r,n){const a=I.intercept(t[n],e,r[n]);return I.lerpPoint(t,a,r)}static isBounded(t){return 0<=t&&t<=100}static nthVertex(t,e){const r=I.Y_FROM_LINRGB[0],n=I.Y_FROM_LINRGB[1],a=I.Y_FROM_LINRGB[2],o=e%4<=1?0:100,s=e%2==0?0:100;if(e<4){const e=o,i=s,h=(t-e*n-i*a)/r;return I.isBounded(h)?[h,e,i]:[-1,-1,-1]}if(e<8){const e=o,i=s,h=(t-i*r-e*a)/n;return I.isBounded(h)?[i,h,e]:[-1,-1,-1]}{const e=o,i=s,h=(t-e*r-i*n)/a;return I.isBounded(h)?[e,i,h]:[-1,-1,-1]}}static bisectToSegment(t,e){let r=[-1,-1,-1],n=r,a=0,o=0,s=!1,i=!0;for(let h=0;h<12;h++){const c=I.nthVertex(t,h);if(c[0]<0)continue;const u=I.hueOf(c);s?(i||I.areInCyclicOrder(a,u,o))&&(i=!1,I.areInCyclicOrder(a,e,u)?(n=c,o=u):(r=c,a=u)):(r=c,n=c,a=u,o=u,s=!0)}return[r,n]}static midpoint(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2,(t[2]+e[2])/2]}static criticalPlaneBelow(t){return Math.floor(t-.5)}static criticalPlaneAbove(t){return Math.ceil(t-.5)}static bisectToLimit(t,e){const r=I.bisectToSegment(t,e);let n=r[0],a=I.hueOf(n),o=r[1];for(let t=0;t<3;t++)if(n[t]!==o[t]){let r=-1,s=255;n[t]<o[t]?(r=I.criticalPlaneBelow(I.trueDelinearized(n[t])),s=I.criticalPlaneAbove(I.trueDelinearized(o[t]))):(r=I.criticalPlaneAbove(I.trueDelinearized(n[t])),s=I.criticalPlaneBelow(I.trueDelinearized(o[t])));for(let i=0;i<8&&!(Math.abs(s-r)<=1);i++){const i=Math.floor((r+s)/2),h=I.CRITICAL_PLANES[i],c=I.setCoordinate(n,h,o,t),u=I.hueOf(c);I.areInCyclicOrder(a,e,u)?(o=c,s=i):(n=c,a=u,r=i)}}return I.midpoint(n,o)}static inverseChromaticAdaptation(t){const e=Math.abs(t),r=Math.max(0,27.13*e/(400-e));return n(t)*Math.pow(r,1/.42)}static findResultByJ(t,e,r){let n=11*Math.sqrt(r);const a=C.DEFAULT,o=1/Math.pow(1.64-Math.pow(.29,a.n),.73),i=.25*(Math.cos(t+2)+3.8)*(5e4/13)*a.nc*a.ncb,h=Math.sin(t),c=Math.cos(t);for(let t=0;t<5;t++){const u=n/100,m=0===e||0===n?0:e/Math.sqrt(u),f=Math.pow(m*o,1/.9),d=a.aw*Math.pow(u,1/a.c/a.z)/a.nbb,p=23*(d+.305)*f/(23*i+11*f*c+108*f*h),b=p*c,M=p*h,g=(460*d+451*b+288*M)/1403,w=(460*d-891*b-261*M)/1403,_=(460*d-220*b-6300*M)/1403,y=s([I.inverseChromaticAdaptation(g),I.inverseChromaticAdaptation(w),I.inverseChromaticAdaptation(_)],I.LINRGB_FROM_SCALED_DISCOUNT);if(y[0]<0||y[1]<0||y[2]<0)return 0;const C=I.Y_FROM_LINRGB[0],v=I.Y_FROM_LINRGB[1],T=I.Y_FROM_LINRGB[2],A=C*y[0]+v*y[1]+T*y[2];if(A<=0)return 0;if(4===t||Math.abs(A-r)<.002)return y[0]>100.01||y[1]>100.01||y[2]>100.01?0:l(y);n-=(A-r)*n/(2*A)}return 0}static solveToInt(t,e,r){if(e<1e-4||r<1e-4||r>99.9999)return function(t){const e=w(M(t));return u(e,e,e)}(r);const n=(t=o(t))/180*Math.PI,a=M(r),s=I.findResultByJ(n,e,a);if(0!==s)return s;return l(I.bisectToLimit(a,n))}static solveToCam(t,e,r){return v.fromInt(I.solveToInt(t,e,r))}}I.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]],I.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]],I.Y_FROM_LINRGB=[.2126,.7152,.0722],I.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];class T{static from(t,e,r){return new T(I.solveToInt(t,e,r))}static fromInt(t){return new T(t)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(t){this.setInternalState(I.solveToInt(t,this.internalChroma,this.internalTone))}get chroma(){return this.internalChroma}set chroma(t){this.setInternalState(I.solveToInt(this.internalHue,t,this.internalTone))}get tone(){return this.internalTone}set tone(t){this.setInternalState(I.solveToInt(this.internalHue,this.internalChroma,t))}setValue(t,e){this[t]=e}toString(){return`HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(t){return t>=250&&t<270}static isYellow(t){return t>=105&&t<125}static isCyan(t){return t>=170&&t<207}constructor(t){this.argb=t;const e=v.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=b(t),this.argb=t}setInternalState(t){const e=v.fromInt(t);this.internalHue=e.hue,this.internalChroma=e.chroma,this.internalTone=b(t),this.argb=t}inViewingConditions(t){const e=v.fromInt(this.toInt()).xyzInViewingConditions(t),r=v.fromXyzInViewingConditions(e[0],e[1],e[2],C.make());return T.from(r.hue,r.chroma,116*_(e[1]/100)-16)}}class A{static fromInt(t){const e=T.fromInt(t);return A.fromHct(e)}static fromHct(t){return new A(t.hue,t.chroma,t)}static fromHueAndChroma(t,e){const r=new S(t,e).create();return new A(t,e,r)}constructor(t,e,r){this.hue=t,this.chroma=e,this.keyColor=r,this.cache=new Map}tone(t){let e=this.cache.get(t);return void 0===e&&(e=99==t&&T.isYellow(this.hue)?this.averageArgb(this.tone(98),this.tone(100)):T.from(this.hue,this.chroma,t).toInt(),this.cache.set(t,e)),e}getHct(t){return T.fromInt(this.tone(t))}averageArgb(t,e){const r=t>>>16&255,n=t>>>8&255,a=255&t,o=e>>>16&255,s=e>>>8&255,i=255&e;return(255<<24|(255&Math.round((r+o)/2))<<16|(255&Math.round((n+s)/2))<<8|255&Math.round((a+i)/2))>>>0}}class S{constructor(t,e){this.hue=t,this.requestedChroma=e,this.chromaCache=new Map,this.maxChromaValue=200}create(){let t=0,e=100;for(;t<e;){const r=Math.floor((t+e)/2),n=this.maxChroma(r)<this.maxChroma(r+1);if(this.maxChroma(r)>=this.requestedChroma-.01)if(Math.abs(t-50)<Math.abs(e-50))e=r;else{if(t===r)return T.from(this.hue,this.requestedChroma,t);t=r}else n?t=r+1:e=r}return T.from(this.hue,this.requestedChroma,t)}maxChroma(t){if(this.chromaCache.has(t))return this.chromaCache.get(t);const e=T.from(this.hue,this.maxChromaValue,t).chroma;return this.chromaCache.set(t,e),e}}function $(t){const e=m(t),r=f(t),n=d(t),a=[e.toString(16),r.toString(16),n.toString(16)];for(const[t,e]of a.entries())1===e.length&&(a[t]="0"+e);return"#"+a.join("")}function x(t){return parseInt(t,16)}const O=Object.freeze([98,95,90,85,80,70,60,50,40,35,30,25,20,15,10,5]),E=Object.freeze({primary:{hue:t=>t.hue,chroma:t=>t.chroma},secondary:{hue:t=>t.hue,chroma:20},tertiary:{hue:t=>(t.hue+60)%360,chroma:40},neutral:{hue:t=>t.hue,chroma:5},error:{hue:25,chroma:85},warning:{hue:60,chroma:60},success:{hue:145,chroma:65},info:{hue:265.1,chroma:58.6}}),F=Object.freeze(Object.keys(E)),P=Object.freeze({primary:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},secondary:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},tertiary:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},neutral:{50:[4,8,12,16,20,24,32,48,80],60:[48,64],80:[48],90:[4,8,12,16,20,24,32,48]},error:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},warning:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},success:{50:[4,8,12,16,20,24,28,32],90:[4,8,12,24]},info:{50:[12,16,20,24,28,32]}}),L=t=>Math.round(255*t/100).toString(16).padStart(2,"0"),R="#005bbe",j=/^#?(?:[0-9a-f]{3}|[0-9a-f]{6})$/iu;function q(t){return"string"==typeof t&&j.test(t.trim())}const D=t=>Math.round(10*t)/10;function k(t){if(!q(t))throw new TypeError(`A theme colour is a hex colour, #rgb or #rrggbb: ${String(t)}`);const e=(t=>{const e=t.trim().replace(/^#/u,"").toLowerCase();return`#${3===e.length?[...e].map(t=>t+t).join(""):e}`})(t),r=T.fromInt(function(t){const e=3===(t=t.replace("#","")).length,r=6===t.length,n=8===t.length;if(!e&&!r&&!n)throw new Error("unexpected hex "+t);let a=0,o=0,s=0;return e?(a=x(t.slice(0,1).repeat(2)),o=x(t.slice(1,2).repeat(2)),s=x(t.slice(2,3).repeat(2))):r?(a=x(t.slice(0,2)),o=x(t.slice(2,4)),s=x(t.slice(4,6))):n&&(a=x(t.slice(2,4)),o=x(t.slice(4,6)),s=x(t.slice(6,8))),(255<<24|(255&a)<<16|(255&o)<<8|255&s)>>>0}(e)),n=T.from(r.hue,200,r.tone).chroma,a=r.chroma>=n-1?Math.max(85,Math.round(r.chroma)):Math.round(r.chroma);return{hex:e,hue:Math.round(r.hue)%360,chroma:a,tone:D(r.tone)}}function z({hue:t,chroma:e}={},r={}){if(!Number.isFinite(t)||!Number.isFinite(e))throw new TypeError("A theme is made from a hue and a chroma");const n={hue:(t%360+360)%360,chroma:Math.max(0,e)},a={};for(const t of F){const e={...E[t],...r[t]??{}},o="function"==typeof e.hue?e.hue(n):Number(e.hue),s="function"==typeof e.chroma?e.chroma(n):Number(e.chroma);if(!Number.isFinite(o)||!Number.isFinite(s))throw new TypeError(`${t}: hue and chroma are numbers`);const i=A.fromHueAndChroma((o%360+360)%360,Math.max(0,s));a[t]={hue:D(i.hue),chroma:D(i.chroma),tones:Object.fromEntries(O.map(t=>[t,$(i.tone(t))]))}}return{schema:"simai.framework.theme",schema_version:1,source:n,palettes:a}}function H(t=R,e={}){const r=k(t),n=z(r,e);return{...n,source:{...n.source,hex:r.hex,tone:r.tone}}}function N(t){const e={};for(const[r,n]of Object.entries(t?.palettes??{}))for(const[t,a]of Object.entries(n.tones??{}))e[`--sf-${r}-${t}`]=a;for(const[r,n]of Object.entries(t?.palettes??{}))for(const[t,a]of Object.entries(P[r]??{})){const o=n.tones?.[t];if(o)for(const n of a)e[`--sf-${r}-${t}--alfa-${n}`]=`${o}${L(n)}`}return e}function V(t,e=":root"){return`${e} {\n${Object.entries(N(t)).map(([t,e])=>` ${t}: ${e};`).join("\n")}\n}\n`}function B(t,e=globalThis.document?.documentElement){if(!e?.style)return()=>{};const r=N(t),n=Object.fromEntries(Object.keys(r).map(t=>[t,e.style.getPropertyValue(t)]));for(const[t,n]of Object.entries(r))e.style.setProperty(t,n);return()=>{for(const[t,r]of Object.entries(n))r?e.style.setProperty(t,r):e.style.removeProperty(t)}}"undefined"!=typeof window&&(window.SF=window.SF||{},window.SF.ThemePalette=Object.freeze({themeFromColor:H,themeFromHct:z,colorToHct:k,themeToCss:V,themeVariables:N,applyTheme:B,isThemeColor:q,THEME_TONES:O,THEME_PALETTES:F,THEME_ALPHA:P,DEFAULT_THEME_COLOR:R}))},"7596c29157bc"(t,e,r){r.a(t,async(t,e)=>{try{var n=r("fbe0570fcc69"),a=r("0d662e4d7d63"),o=r("fe439ce5e974"),s=r("ef761541fe6e"),i=t([n,a,s]);[n,a,s]=i.then?(await i)():i;var h=r.n(n);const c=["1/2","1","2"],u=[90,70,50,40,30,10],l={hue:[0,360],chroma:[0,150]},m={en:{color:"Main colour",inherited:"Framework colour",advanced:"Advanced",hue:"Hue",hueHint:"0 to 360",chroma:"Chroma",chromaHint:"0 to 150",reset:"Reset",preview:"Theme preview",primary:"Primary",secondary:"Secondary",tertiary:"Tertiary",neutral:"Neutral",error:"Error",warning:"Warning",success:"Success",info:"Information"},ru:{color:"Основной цвет",inherited:"цвет Framework",advanced:"Тонкая настройка",hue:"Тон",hueHint:"От 0 до 360",chroma:"Насыщенность",chromaHint:"От 0 до 150",reset:"Сбросить",preview:"Предпросмотр темы",primary:"Основная",secondary:"Вторичная",tertiary:"Дополнительная",neutral:"Нейтральная",error:"Ошибка",warning:"Предупреждение",success:"Успех",info:"Информация"}},f=t=>{let e=String(t??"").trim();return/^#?[0-9a-f]{8}$/iu.test(e)&&(e=e.replace(/^#?/u,"#").slice(0,7)),(0,o.jb)(e)?(0,o.cV)(e).hex:""},d=(t,[e,r],n=!1)=>{const a=String(t??"").trim();if(!/^-?\d+(?:[.,]\d+)?$/u.test(a))return null;const o=Math.round(Number(a.replace(",",".")));return Number.isFinite(o)?o<e||o>r?n?Math.min(r,Math.max(e,o)):null:o:null},p=t=>JSON.parse(JSON.stringify(t));class b extends(h()){constructor(){super(),this._themeKey=null,this._theme=null,this._undo=null,this._applied={target:null,key:null},this._quiet=!1,this._committedKey=null}static get props(){return{templateName:{attribute:"template",default:"default"},value:{default:""},hue:{default:""},chroma:{default:""},size:{default:"1",values:["1/2","1","2"]},swatches:{default:""},apply:{type:Boolean,default:!1},target:{default:""},selector:{default:":root"},rootClass:{default:""}}}get value(){return f(this.getAttribute("value"))}set value(t){const e=f(t);e?this.setAttribute("value",e):this.removeAttribute("value")}get color(){return this.value||o.mC}get hue(){return d(this.getAttribute("hue"),l.hue,!0)??(0,o.cV)(this.color).hue}get chroma(){return d(this.getAttribute("chroma"),l.chroma,!0)??(0,o.cV)(this.color).chroma}get size(){const t=this.getAttribute("size");return c.includes(t)?t:"1"}get selector(){return this.getAttribute("selector")||":root"}get swatches(){return this.getAttribute("swatches")||""}get theme(){return p(this._currentTheme())}toCSS(t=this.selector){return(0,o.q1)(this._currentTheme(),t||":root")}toJSON(){return p(this._currentTheme())}reset(){this._batch(()=>{this.removeAttribute("value"),this.removeAttribute("hue"),this.removeAttribute("chroma")}),this._emitChange(),this._commit(!0)}_key(){const t=t=>d(this.getAttribute(t),l[t],!0)??"";return`${this.color}|${t("hue")}|${t("chroma")}`}_currentTheme(){const t=this._key();if(t!==this._themeKey){const e=this.hasAttribute("hue")||this.hasAttribute("chroma");this._theme=e?(0,o.fR)({hue:this.hue,chroma:this.chroma}):(0,o.pQ)(this.color),this._themeKey=t}return this._theme}_detail(){const t=this._currentTheme();return{value:this.value,hue:this.hue,chroma:this.chroma,theme:p(t),variables:(0,o.vS)(t),css:(0,o.q1)(t,this.selector)}}_emitChange(){const t=this._detail();this.emitComponentEvent("theme-generator-change",t),this.emitComponentEvent("theme-change",t)}_commit(t=!1){const e=this._key();if(!t&&e===this._committedKey)return;this._committedKey=e;const r=this._detail();this.emitComponentEvent("theme-generator-apply",r),this.emitComponentEvent("theme-apply",r)}_batch(t){this._quiet=!0;try{t()}finally{this._quiet=!1}this._sync(),this.requestComponentUpdate("theme")}_target(){if(!this.hasAttribute("apply")||"false"===this.getAttribute("apply"))return null;const t=this.getAttribute("target");if(!t)return document.documentElement;try{return document.querySelector(t)}catch{return null}}_sync(){if(!this.isConnected)return;const t=this._target(),e=t?this._key():null;t===this._applied.target&&e===this._applied.key||(this._unapply(),t&&(this._undo=(0,o.AZ)(this._currentTheme(),t)),this._applied={target:t,key:e})}_unapply(){this._undo?.(),this._undo=null,this._applied={target:null,key:null}}attributeChangedCallback(t,e,r){super.attributeChangedCallback?.(t,e,r),e===r||this._quiet||this._sync()}connectedCallback(){super.connectedCallback?.(),this._committedKey=this._key(),this._sync()}disconnectedCallback(){this._unapply(),super.disconnectedCallback?.()}_colorInput(t){t.stopPropagation();const e=f(t.detail?.value??t.target?.value);if(!e)return;(e!==this.value||this.hasAttribute("hue")||this.hasAttribute("chroma"))&&(this._batch(()=>{this.setAttribute("value",e),this.removeAttribute("hue"),this.removeAttribute("chroma")}),this._emitChange())}_colorChange(t){this._colorInput(t),this._commit()}_fieldInput(t,e){e.stopPropagation();const r=d(e.target?.value,l[t]);null!==r&&String(r)!==this.getAttribute(t)&&(this._batch(()=>this.setAttribute(t,String(r))),this._emitChange())}_fieldCommit(t,e){const r=d(e?.value,l[t],!0);null!==r&&String(r)!==this.getAttribute(t)&&(this._batch(()=>this.setAttribute(t,String(r))),this._emitChange()),e&&String(e.value)!==String(this[t])&&(e.value=String(this[t])),this._commit()}_fieldChange(t,e){e.stopPropagation(),this._fieldCommit(t,e.currentTarget)}_fieldKey(t,e){"Enter"===e.key&&(e.preventDefault(),this._fieldCommit(t,e.currentTarget))}templateContext(){const t=t=>(0,a.pageText)(m,t,this,"sf-theme-generator"),e=this._currentTheme();return this.createTemplateContext({...this.getPropsContext(),component:this,size:this.size,value:this.value,inheritedValue:o.mC,hue:this.hue,chroma:this.chroma,swatches:this.swatches,text:{color:t("color"),inherited:t("inherited"),advanced:t("advanced"),hue:t("hue"),hueHint:t("hueHint"),chroma:t("chroma"),chromaHint:t("chromaHint"),reset:t("reset"),preview:t("preview")},palettes:o.HE.map(r=>({name:r,label:t(r),swatches:u.map(t=>({tone:t,hex:e.palettes[r].tones[t]}))})),rootClass:this.getRootClass()})}template(){return(0,s.J)(this.templateContext())}}b.define("sf-theme-generator"),e()}catch(t){e(t)}})},ef761541fe6e(t,e,r){r.a(t,async(t,n)=>{try{r.d(e,{J:()=>i});var a=r("ddf1cdb42ecc"),o=t([a]),s=o.then?(await o)():o;a=s[0];function i(t){const{component:e,size:r,text:n}=t,o=(t,o,s)=>a.html`
3
3
  <sf-input class="sf-theme-generator-field" data-field=${t} size=${r}
4
4
  label=${n[t]} hint=${s} value=${String(o)}
5
5
  inputmode="numeric" maxlength="3"
@@ -373,11 +373,11 @@
373
373
  },
374
374
  {
375
375
  "path": "src/smart/theme-generator/docs.md",
376
- "sha256": "c4eb2570ecace352f12f417dcb5268e399daa54097098c50ff9e12eff872d2bc"
376
+ "sha256": "f81fad2013c6d6848dee4d103da8b2127236470bc87076f38fb29f9379407ad8"
377
377
  },
378
378
  {
379
379
  "path": "src/core/js/theme-palette.js",
380
- "sha256": "1a1eadb297a50cd0c0a89e644d366cd2ed83b9401639cd10d4bda684f4c5ffa0"
380
+ "sha256": "e4082a61d2c58cd2a28c979b95779cf51a7b7f1fc6e7079dcde9a851ff77cd31"
381
381
  }
382
382
  ],
383
383
  "generated_runtime": []
@@ -1,11 +1,11 @@
1
1
  {
2
- "release": "ui-020f4a1acc31",
3
- "commit": "020f4a1acc315f5d6bffe44f07f16982c098fa9f",
4
- "version": "5.20261020.2238",
2
+ "release": "ui-68a2e7c1167f",
3
+ "commit": "68a2e7c1167f93042b7bd47bbcef7b399fe781be",
4
+ "version": "5.20261021.2249",
5
5
  "files": {
6
6
  "distr/component/accordion/css/accordion.min.css": "sha256-Sn5M6q2XskfMvRHwMFgraYLTGk0vOUDCRFJGQfCsZ4Y=",
7
7
  "distr/component/accordion/js/accordion.min.js": "sha256-HiHgZKWDDIOVBjMwOgKFlJqGKvZWwN3NeJluAWwE6ck=",
8
- "distr/component/admin-menu/css/admin-menu.min.css": "sha256-EUY5tFrpJ0x3wVf/anmgGvtG6spVMWtAF+nQYcEpznw=",
8
+ "distr/component/admin-menu/css/admin-menu.min.css": "sha256-t6/FMJxR6HDMq8GqGF/mQW9foeujQO0iVAwfXgJv89A=",
9
9
  "distr/component/admin-menu/js/admin-menu.min.js": "sha256-Y5EtlvKPyvgpw0snI0HnefcMGXskiJew73QIV7geubQ=",
10
10
  "distr/component/admin-menu/json/admin-menu.utility.json": "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=",
11
11
  "distr/component/ajax/js/ajax.min.js": "sha256-d8VVo/QKbke0FaLvEfbZL9F593UB/j10wZ8TRYL1TeQ=",
@@ -17,7 +17,7 @@
17
17
  "distr/component/avatars/json/avatar-card.utility.json": "sha256-rYTeG+syKhLV+IAuqr53qqYvKS0MMIf5zeUFyHX72Wc=",
18
18
  "distr/component/avatars/json/avatar-label-group.utility.json": "sha256-gI8txoZUIG2P8vpBZQs08tYDyDHNy8NdOl2Woe+FOLM=",
19
19
  "distr/component/badges/css/badges.min.css": "sha256-fMV36nxPyGPRTDgPLtsQXscykf5YtT0DizOoApSdrX0=",
20
- "distr/component/badges/js/badges.min.js": "sha256-3TBDwaPnhW3SJZ2QQzAGaiSrm5Vx48zSGbxumKXsFsM=",
20
+ "distr/component/badges/js/badges.min.js": "sha256-Te7MjD7HgtUAuYFCJbTmj+vg92wM3iNGenq61T22GPI=",
21
21
  "distr/component/badges/json/badge.utility.json": "sha256-Odge3I2GF0xO5ONqL3ASLeFWLnFtNaXLi+/GOS2b2qQ=",
22
22
  "distr/component/breadcrumbs/css/breadcrumbs.min.css": "sha256-yipE92YTD0toCy1l2hHJVldxUSAnu6k3/5BrmsaPkYU=",
23
23
  "distr/component/breadcrumbs/js/breadcrumbs.min.js": "sha256-h1h+iLKzUJiPCcPP6LeJ37qhmu83MGa757ee1PMIRu0=",
@@ -1529,8 +1529,8 @@
1529
1529
  "distr/core/contracts/public-variables.v1.schema.json": "sha256-gZGmNuRXKAfF+r61UpOQH5S3g/KRuw/rIAnX7O1LXfA=",
1530
1530
  "distr/core/contracts/third-party-notices.v1.json": "sha256-dHJ8Yw6xgvw23DAYiLzZjVyWIoBEL5qAmum1rdf5kQ8=",
1531
1531
  "distr/core/contracts/utility-module-aliases.v1.json": "sha256-QQtd5fFNNLcNziRRpX5zRZlbMVS9KiqNWb5wFVs2Hv0=",
1532
- "distr/core/css/core.css": "sha256-n7Tif4Coz/QKDBEAFC58IXs3MWCpc9R8MKJ01BQQCQE=",
1533
- "distr/core/css/core.min.css": "sha256-CZp1WUe3UtF2JBgq7Z6rh0CybTIE1+BgcEhVwJJx4gw=",
1532
+ "distr/core/css/core.css": "sha256-914cSMITPAfCD5OVXU8ZcHB+sjUqRu2IgQtALoKBCdo=",
1533
+ "distr/core/css/core.min.css": "sha256-JbfSwPt3xrewmQDOZPt4VSW+a5uYwghT3wbomt4UHoE=",
1534
1534
  "distr/core/css/utility.full.css": "sha256-PsBiW6jZuBTLRkmoMeR4SxQpyxR2j7Cns613x0YW83w=",
1535
1535
  "distr/core/f4df85d151e5ee39bc2b.woff2": "sha256-bp4CCiX5tW1BjywIWx08CXJaTaI/5pOltGMGRgZzIZA=",
1536
1536
  "distr/core/figma_variables/img.png": "sha256-dRsA4eSVfBIVPL/g+qMBD2SiY4QVENOCAxLbLPb+U04=",
@@ -1554,9 +1554,9 @@
1554
1554
  "distr/core/js/composition/regions.mjs": "sha256-XwN9RQ5OFxrVJG9HdIvqaAzrpmZC/VR1J6EMQGMMQuk=",
1555
1555
  "distr/core/js/composition/routing.mjs": "sha256-gt5pofwnNPb+m8bQxsK2CbLzlKbyU3SUDCmyqAtOkqo=",
1556
1556
  "distr/core/js/composition/schema-name.mjs": "sha256-FKi3M+inZZxdFGDsSmAncsTrC3kNltnidUehn/jwXHg=",
1557
- "distr/core/js/composition/sortable.mjs": "sha256-PT4YqIGBoScS642BLeh4lNJy+mVsJscOUuDbjbPMEUo=",
1558
- "distr/core/js/core-loader.js": "sha256-IVrSQEk1SPVcK+RpV9ke+xqTKKzQmbRy6/zL4zf08n0=",
1559
- "distr/core/js/core-loader.min.js": "sha256-rnKGoimDHAgitzIXnvWjbCz+esznwoQaL3Cp9jwsXeQ=",
1557
+ "distr/core/js/composition/sortable.mjs": "sha256-hx5efJXkfOQ9vnYWqYTP3A56BIkA9tQ4EhvYT3pr8FY=",
1558
+ "distr/core/js/core-loader.js": "sha256-BPmw3n1VQm/gpPqT1F6/pxtULUC8l/88T1ndiyD80g4=",
1559
+ "distr/core/js/core-loader.min.js": "sha256-m+IrQB16D0+vEvCY1A3skOvrwD8wTr0Dn3KG+6NwvFo=",
1560
1560
  "distr/core/js/core-loader.min.js.LICENSE.txt": "sha256-OGQ73LJ2Q42m+eSQArLYBGgYwlj31M3brgBVVCYs9Ew=",
1561
1561
  "distr/core/js/core-rules.js": "sha256-CWwZoa1obNBz0iNbwC7anC04waw9ZEly/cKfsb1lrTw=",
1562
1562
  "distr/core/js/core-rules.min.js": "sha256-s1Gt35NhYtHr9G00SQS/w7mO9EjHccBGTdx3/5T7FNA=",
@@ -1565,8 +1565,8 @@
1565
1565
  "distr/core/js/core.js": "sha256-qbs8xXt8fxoEw024S0UbIVE884LpmLp7cKT3oVWMmVI=",
1566
1566
  "distr/core/js/core.min.js": "sha256-Dw1uWOTqGE8dRMF7CCspJMk4iB6BcPNtTxqFPxLUn8Y=",
1567
1567
  "distr/core/js/page-language.js": "sha256-ex3UjrAxZk/wAxW7S9yRpwwaYNWsB4ONwbBO5sdojRY=",
1568
- "distr/core/js/smart-base.js": "sha256-2uY6f6Lw8a6/Wjm3wCCNFdaqjte0CEoLxu94/rMLBv0=",
1569
- "distr/core/js/smart-base.min.js": "sha256-RMDaiUnUJsGF7eR9DMKtehcJCttoowOXCrayTVChXPg=",
1568
+ "distr/core/js/smart-base.js": "sha256-MBkub2jqYUt6jP1jzeOxHG6xcZSKZsyHVMGXI/83ve4=",
1569
+ "distr/core/js/smart-base.min.js": "sha256-Y/91hNWh9jxwnz6oCYqmjM6n0wb7pkiY+IjW+on5Eis=",
1570
1570
  "distr/core/js/smart-base.min.js.LICENSE.txt": "sha256-PlFzR0khuvjQTDM+5pMjyVdXgn4HKRNUueUs5RB9LrQ=",
1571
1571
  "distr/core/js/template-utilities.generated.json": "sha256-yPOn0Y+ASa2jiTI7Wr+lGHue8mqZsQ2HeMkIxjSg/GI=",
1572
1572
  "distr/core/js/vendor/material-color-utilities/package.json": "sha256-SOhHhg3U8JB86R40bbsApKEiExY609gKlTw0PrmhGXk=",
@@ -1611,8 +1611,8 @@
1611
1611
  "distr/smart/button-group/studio.fixture.json": "sha256-rJ/uRxQgxyNRFI1zCfG5yIl6tKqMXaWoZBxb3AlW6wE=",
1612
1612
  "distr/smart/button-group/studio.scenario.json": "sha256-lOK6oz/lGuP3xbbaHZFU1KNH1P/ALI8Gg4ACocAwUH4=",
1613
1613
  "distr/smart/button-group/template/default.js": "sha256-1kShck1HW/+re/cCUvaHVwLLfXJQviWxNMTW9Zg3mmY=",
1614
- "distr/smart/buttons/js/buttons.min.js": "sha256-KF/arhZlmwjZq+B5OHRTbMQVQ5yZpwWx9HEol35V5Rg=",
1615
- "distr/smart/buttons/smart.manifest.json": "sha256-RGK54bJr++dH0FBSQY53BSDEu6N3s6ezdm7zrZGZBIg=",
1614
+ "distr/smart/buttons/js/buttons.min.js": "sha256-9tGbvdBhOtYl07bP1v0UnWTq7lsa5A5MduhEmOYf+EQ=",
1615
+ "distr/smart/buttons/smart.manifest.json": "sha256-6p8fwr+VGn2DhBsgBR2+Sl5ndt+R9v+QJK0ZgTOCP4s=",
1616
1616
  "distr/smart/buttons/studio.fixture.json": "sha256-a98vkqYFlyIJNAhQMKA5tdlWJCmtP6z4rl019PoLrHw=",
1617
1617
  "distr/smart/buttons/studio.scenario.json": "sha256-YnipuyuoGQRtDBGOFrKHyiRv0SOHgN9F/gtJ/X50JrA=",
1618
1618
  "distr/smart/buttons/template/default.js": "sha256-LBCPBNGHZtRPEC2gjsxdcfz6GOQWDAbc94/pZL9NxvQ=",
@@ -1635,7 +1635,7 @@
1635
1635
  "distr/smart/color/template/default.js": "sha256-Wxe6ubdisU1ZSw8hFR09KH08nPjhxnBMz+zmjPQU4HE=",
1636
1636
  "distr/smart/composition-overlay/css/composition-overlay.min.css": "sha256-C9xkvh7QUIELEu9SEF2qXle9VIqIeLGOfzDmgy3UOjE=",
1637
1637
  "distr/smart/composition-overlay/js/composition-overlay.min.js": "sha256-bPkjluOES1dH1XVIMVMtySYH9DxAJVAB3AvNnbahjBo=",
1638
- "distr/smart/composition-overlay/smart.manifest.json": "sha256-JEi7gkUCtY0czqI4GALDCHh0JJuUgpoQ7zKlFakfml4=",
1638
+ "distr/smart/composition-overlay/smart.manifest.json": "sha256-Far3hf7+2xab+3VaePZIGCBhl/F9n06CKPliy8dPEVk=",
1639
1639
  "distr/smart/composition-overlay/studio.fixture.json": "sha256-80HNRBN2pDu1YxCwaeYD3Hyder6NUZ97gIJiTrZe/Tg=",
1640
1640
  "distr/smart/composition-overlay/studio.scenario.json": "sha256-ZZ4nzIXnAN5Xh5z139KRQfZUhoVBEEioJ8HNz8Jtzdk=",
1641
1641
  "distr/smart/context-menu/js/context-menu.min.js": "sha256-nfOf8rl2flxBGH3p91bj7J8btaBjuTkcPTKsErUIdlw=",
@@ -1707,13 +1707,13 @@
1707
1707
  "distr/smart/help-mark/template/default.js": "sha256-+cw7nkpfXmVUpvoQSZGx5byhH8VBsSCmGXcpH4mOAx0=",
1708
1708
  "distr/smart/icon-buttons/css/icon-buttons.min.css": "sha256-HPdh7dNrw76hmHy69Q/tX2k91f6XGlLXZw323/CeR1w=",
1709
1709
  "distr/smart/icon-buttons/js/icon-buttons.min.js": "sha256-f8eH4wZ7nIfi1yjYc9c5BurPKXcOeOkrdNccj22pXes=",
1710
- "distr/smart/icon-buttons/smart.manifest.json": "sha256-Y77YDK4u3BaT0RHGOdypzO4wVhU0KuMBPwvAzrFkw5k=",
1710
+ "distr/smart/icon-buttons/smart.manifest.json": "sha256-X+/eelNOtfnlwttk3pTM1frCFWZ4gcSrLEzFU9hSleI=",
1711
1711
  "distr/smart/icon-buttons/studio.fixture.json": "sha256-qe0jlTL4VljC1mDUwqQM5WkZt2veUVZXIv4wBHGBhss=",
1712
1712
  "distr/smart/icon-buttons/studio.scenario.json": "sha256-Xm9bpPkbPBgpZSRHWEVHTxKWfbGatevxlSRXqyGD4eA=",
1713
1713
  "distr/smart/icon-buttons/template/default.css": "sha256-Aa/GTc0OQh54vE3637T9Rh4C/kaZpdMjCH0Zyr/2NJI=",
1714
1714
  "distr/smart/icon-buttons/template/default.js": "sha256-WGF6RowHJnwsIlHQycymAI5PriyXkdejPKw8SP1I3cQ=",
1715
1715
  "distr/smart/icons/js/icons.min.js": "sha256-fGdsYMAZdfhII1+XTHPXQuxiif3/RRNchOs/6dEDddk=",
1716
- "distr/smart/icons/smart.manifest.json": "sha256-1yocIy2FndK24gNCA1fmIAJu6a06/lDFZEuVthNWcMo=",
1716
+ "distr/smart/icons/smart.manifest.json": "sha256-FZTcg9zdcY3z2zlIUnMb4hg3lXsiOt6R5qGnmxGchNc=",
1717
1717
  "distr/smart/icons/studio.fixture.json": "sha256-LfkBOapRlxzysIph4Ryrs+X3XJ2LurxlADC1ZMGTfBQ=",
1718
1718
  "distr/smart/icons/studio.scenario.json": "sha256-8DLMMzeZXB/KyRsrhXTkVgV6uUp/IlZRF3i+33t2WUc=",
1719
1719
  "distr/smart/icons/template/default.js": "sha256-VKbj+C/fOtnJcVcN4uAb11RmIPEad5PUbs5CLyx+40I=",
@@ -1787,8 +1787,8 @@
1787
1787
  "distr/smart/reference-link/studio.scenario.json": "sha256-2SxbXcfANMMd2oz8ZQYprA0ln7HeWFU7VTpXaIpQFxE=",
1788
1788
  "distr/smart/reference-link/template/default.js": "sha256-eu0PCRlyyuoZ8gnaProqyaJQsiCSEh/UIRkyUrN128U=",
1789
1789
  "distr/smart/resizer/css/resizer.min.css": "sha256-rRM7Iqvc/+pRLoiJ4v8h/D8Zb+VScDkQONO4jgtdBbw=",
1790
- "distr/smart/resizer/js/resizer.min.js": "sha256-kkd3myUNj346qY1PswS/UbCgLqEFy5qb3yd4WhdpYbE=",
1791
- "distr/smart/resizer/smart.manifest.json": "sha256-ywRgSfmao1x7SNuFmYNT4uO0G28e5w84Bls5VOLiF5A=",
1790
+ "distr/smart/resizer/js/resizer.min.js": "sha256-Bf9kqYBDIb+XVsHCzqDX911cYPOxFm1Hz5FexO1pxSw=",
1791
+ "distr/smart/resizer/smart.manifest.json": "sha256-blku0gvbCNRApxc8sP7NykZ3TrY2MIM5iih/2ROjAXs=",
1792
1792
  "distr/smart/resizer/studio.fixture.json": "sha256-q5c+GB2/fQzKoxYTi5+NSbK5C+lJ8UVYjMfyVEJMzNY=",
1793
1793
  "distr/smart/resizer/studio.scenario.json": "sha256-S+z1E9PsBopxbeI7Zg4sxbKdTXdu8HbfxvKJZpLN5gw=",
1794
1794
  "distr/smart/skeleton/js/skeleton.min.js": "sha256-dBcwGODyzfubvIwU5PRhQjWsbOqo/l84TeKZf/IYxyE=",
@@ -1803,8 +1803,8 @@
1803
1803
  "distr/smart/slider/template/default.js": "sha256-t+uDss3rV6RAVZoLM1ZP9sUKKzUAhPw7JBpqJJiJ30s=",
1804
1804
  "distr/smart/slider/template/default/index.html": "sha256-/iotgMwZy1BCzrQdN6klAp42yYC2IdUPp3faJgKHxeY=",
1805
1805
  "distr/smart/sortable/css/sortable.min.css": "sha256-aPiVRLT1+Ax0CcN2lQyPQa6vy0iemHyz3Uw4DDtOkrc=",
1806
- "distr/smart/sortable/js/sortable.min.js": "sha256-9Zr/k5JlNF5xEGN8VnrxdX0mcVfF9nsOj0mtgbPbhqA=",
1807
- "distr/smart/sortable/smart.manifest.json": "sha256-Y+QqmaZN0Dz5WQrVhd1OE/yy0vmFDr4xAjhnPDum6Pk=",
1806
+ "distr/smart/sortable/js/sortable.min.js": "sha256-uk9By04zWjGkV7/CC/q+02nEO7/zcWQZGOjO9efWeNQ=",
1807
+ "distr/smart/sortable/smart.manifest.json": "sha256-JTOv18Ll8E010XlqremWbRzsbXhQYcZacbx+OXqHIlA=",
1808
1808
  "distr/smart/sortable/studio.fixture.json": "sha256-jyS0j3s74TnL9aeUmVj3Usd3PLIswNZu01R0fZPdGHQ=",
1809
1809
  "distr/smart/sortable/studio.scenario.json": "sha256-5/a9AnHKFp7NxNEOd5Dnl+9IpLIBl0QKXywfNA1tGnc=",
1810
1810
  "distr/smart/spinner/js/spinner.min.js": "sha256-idNxCmOzkN4lvwpWAZ6X2WaWB8dX534PWADNBcbFIJY=",
@@ -1842,9 +1842,9 @@
1842
1842
  "distr/smart/textarea/studio.scenario.json": "sha256-WB43dLFWTGcutZ3owiJ8aWA3EhDn1fOEUJDzQlXJBXY=",
1843
1843
  "distr/smart/textarea/template/default.js": "sha256-JbkPxEvuK0vN71qGnS+e1ugOv1OtBl1iZ9MDEzUF15I=",
1844
1844
  "distr/smart/theme-generator/css/theme-generator.min.css": "sha256-4+vbdu9gGDaDF2tNHkilm15eKPRjyPlkJe2mLNGIrSI=",
1845
- "distr/smart/theme-generator/js/theme-generator.min.js": "sha256-WihJUP6lhqyT4DYK2DdkfAyGVoSjoRYJLNoQWwEpNGY=",
1845
+ "distr/smart/theme-generator/js/theme-generator.min.js": "sha256-e+F7x3LVwSbPG+FVdQgZIV+y4xc4gipazgQNVDrqEGE=",
1846
1846
  "distr/smart/theme-generator/js/theme-generator.min.js.LICENSE.txt": "sha256-23zSZbEiFIJN/DwgdvoFrrFGqdKgOO1Eo+eqJkhkut8=",
1847
- "distr/smart/theme-generator/smart.manifest.json": "sha256-zg4vpCtBHVE8lUT9IbGmKdyNUhn67UrGW1XcbilVCW0=",
1847
+ "distr/smart/theme-generator/smart.manifest.json": "sha256-JN5LJNPOAOhzXKZiyjWsovMhvMzxBCv9i3b+iH8IEB4=",
1848
1848
  "distr/smart/theme-generator/studio.fixture.json": "sha256-5s4xDCWy4k2BXqw3KRUsLYSG2l0eIuhUaBgd5DnSKrg=",
1849
1849
  "distr/smart/theme-generator/studio.scenario.json": "sha256-GHhjVfgZXyDEtqu9f7SULgQEcXFxihHnKtTtp6IIEqw=",
1850
1850
  "distr/smart/theme-generator/template/default.js": "sha256-mtuyb9Fqd5tSQYfgR//SwkQZi7I4liVxtSYDsaXhMrg=",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@simai-studio/ui",
3
- "version": "5.20261020.2238",
4
- "description": "SIMAI Framework distribution, release ui-020f4a1acc31: Core, the Loader, components, utilities and Smart Components, ready to serve from distr/.",
3
+ "version": "5.20261021.2249",
4
+ "description": "SIMAI Framework distribution, release ui-68a2e7c1167f: Core, the Loader, components, utilities and Smart Components, ready to serve from distr/.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://ui.simai.io/",
7
7
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "README.md"
18
18
  ],
19
19
  "simai": {
20
- "release": "ui-020f4a1acc31",
21
- "commit": "020f4a1acc315f5d6bffe44f07f16982c098fa9f"
20
+ "release": "ui-68a2e7c1167f",
21
+ "commit": "68a2e7c1167f93042b7bd47bbcef7b399fe781be"
22
22
  }
23
23
  }