useblocks 1.1.85-dev.6 → 1.1.85-dev.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +17 -3
  2. package/iframe/.vite/manifest.json +4 -4
  3. package/iframe/js/{discussHandlers.Ced_gtP0.js → discussHandlers.BuuVtU3Y.js} +5 -5
  4. package/iframe/js/iframe-eblock.body.js +1 -1
  5. package/iframe/js/iframe-eblock.js +1 -1
  6. package/iframe/js/iframe.body.js +2 -2
  7. package/iframe/js/iframe.js +1 -1
  8. package/node_modules/useblocks-ui-kit/es/components/Custom/FormPanel/FormSection/index.js +1 -1
  9. package/node_modules/useblocks-ui-kit/es/components/Custom/Inputs/ColorPickerInput/index.js +1 -1
  10. package/node_modules/useblocks-ui-kit/es/components/Custom/Inputs/ControlFontFamily/index.js +1 -1
  11. package/node_modules/useblocks-ui-kit/es/components/Custom/Inputs/InputSelect/index.js +34 -31
  12. package/node_modules/useblocks-ui-kit/es/components/Custom/PanelForm/index.js +1 -1
  13. package/node_modules/useblocks-ui-kit/es/components/DataDisplay/Card/index.js +1 -1
  14. package/node_modules/useblocks-ui-kit/es/components/DataDisplay/Skeleton/index.js +1 -1
  15. package/node_modules/useblocks-ui-kit/es/components/DataEntry/Cascader/index.js +1 -1
  16. package/node_modules/useblocks-ui-kit/es/components/DataEntry/Checkbox/index.js +1 -1
  17. package/node_modules/useblocks-ui-kit/es/components/DataEntry/ColorPicker/index.js +1 -1
  18. package/node_modules/useblocks-ui-kit/es/components/DataEntry/DatePicker/index.js +1 -1
  19. package/node_modules/useblocks-ui-kit/es/components/DataEntry/Form/index.js +1 -1
  20. package/node_modules/useblocks-ui-kit/es/components/DataEntry/Input/index.js +1 -1
  21. package/node_modules/useblocks-ui-kit/es/components/DataEntry/InputNumber/index.js +1 -1
  22. package/node_modules/useblocks-ui-kit/es/components/DataEntry/InputOTP/index.js +1 -1
  23. package/node_modules/useblocks-ui-kit/es/components/DataEntry/Password/index.js +1 -1
  24. package/node_modules/useblocks-ui-kit/es/components/DataEntry/Radio/index.js +1 -1
  25. package/node_modules/useblocks-ui-kit/es/components/DataEntry/SearchInput/index.js +1 -1
  26. package/node_modules/useblocks-ui-kit/es/components/DataEntry/Switch/index.js +2 -2
  27. package/node_modules/useblocks-ui-kit/es/components/DataEntry/TextArea/index.js +1 -1
  28. package/node_modules/useblocks-ui-kit/es/components/Feedback/Alert/index.js +1 -1
  29. package/node_modules/useblocks-ui-kit/es/components/Feedback/Popconfirm/index.js +1 -1
  30. package/node_modules/useblocks-ui-kit/es/components/Feedback/Spin/index.js +1 -1
  31. package/node_modules/useblocks-ui-kit/es/components/Feedback/Tooltip/index.js +1 -1
  32. package/node_modules/useblocks-ui-kit/es/components/General/Button/index.js +1 -1
  33. package/node_modules/useblocks-ui-kit/es/components/Layout/Divider/index.js +1 -1
  34. package/node_modules/useblocks-ui-kit/es/components/Layout/Row/index.js +1 -1
  35. package/node_modules/useblocks-ui-kit/es/components/Layout/Space/index.js +1 -1
  36. package/node_modules/useblocks-ui-kit/es/components/Navigation/FloatButton/index.js +1 -1
  37. package/node_modules/useblocks-ui-kit/es/components/Navigation/Segmented/index.js +1 -1
  38. package/node_modules/useblocks-ui-kit/es/components/Navigation/Tabs/index.js +1 -1
  39. package/node_modules/useblocks-ui-kit/package.json +1 -1
  40. package/package.json +2 -2
  41. package/runtime/react/index.js +1 -1
  42. package/static/core/{9600caf9.js → 06d19668.js} +2 -2
  43. package/static/core/{51a46897.js → 13c7b13a.js} +1 -1
  44. package/static/core/{fdfb1e94.js → 1afe0f9c.js} +1 -1
  45. package/static/core/{8035d07f.js → 28160edc.js} +1 -1
  46. package/static/core/{6a939bac.js → 3d7934fb.js} +1 -1
  47. package/static/core/{6741eb70.js → 3df10afa.js} +8 -8
  48. package/static/core/{e2699a48.js → 41028939.js} +1 -1
  49. package/static/core/{7f91ed03.js → 45eb9af1.js} +1 -1
  50. package/static/core/{60f7aa8d.js → 48a8ba9d.js} +1 -1
  51. package/static/core/{740a4f32.js → 49a8dc9c.js} +1 -1
  52. package/static/core/{284b592e.js → 59cfe4a0.js} +1 -1
  53. package/static/core/{ec4827f1.js → 778aee63.js} +1 -1
  54. package/static/core/{c28968c1.js → 799f4d8e.js} +1 -1
  55. package/static/core/{d0eece8b.js → 7c047ede.js} +1 -1
  56. package/static/core/{9ea82ab5.js → 982730aa.js} +1 -1
  57. package/static/core/{23f020c5.js → a46eae76.js} +1 -1
  58. package/static/core/{fc390885.js → b165db74.js} +1 -1
  59. package/static/core/{991b35ff.js → cb42ad65.js} +1 -1
  60. package/static/core/{7d627bff.js → db82c42b.js} +1 -1
  61. package/static/core/{1bdeb37f.js → df189a9d.js} +1 -1
  62. package/static/core/{74c1d64b.js → f1478faf.js} +1 -1
  63. package/static/core/{6ff64eea.js → f1498d3c.js} +1 -1
  64. package/static/core/{b6c5e3be.js → f8d889a1.js} +2 -2
  65. package/static/core/{3a252a3c.js → fa60c7fb.js} +1 -1
  66. package/static/core/{d2bb1c0d.js → ff43365e.js} +1 -1
  67. package/static/esm/349f9e2c.js +1 -0
  68. package/static/umd-runtime/runtime.js +1 -1
  69. package/static/umd-runtime/ui-kit.js +2 -2
  70. package/{useblocks-core.d62ebebc.js → useblocks-core.ee20cf1c.js} +42 -42
  71. package/useblocks-esm.js +10 -10
  72. package/{useblocks-po.d62ebebc.js → useblocks-po.ee20cf1c.js} +1 -1
  73. package/useblocks.d.ts +33 -6
  74. package/useblocks.js +12 -12
  75. package/vite/index.cjs +38 -0
  76. package/vite/index.js +38 -0
  77. package/static/esm/ff1698e6.js +0 -1
  78. /package/iframe/{iframe-eblock.d62ebebc.html → iframe-eblock.ee20cf1c.html} +0 -0
  79. /package/iframe/{iframe.d62ebebc.html → iframe.ee20cf1c.html} +0 -0
@@ -1,4 +1,4 @@
1
- __useblocks__.define("js/discussHandlers.Ced_gtP0.js",["require","exports","module","js/rolldown-runtime.BRlIiq3h.js"],function(Eo,_,IN){const F=Eo("./rolldown-runtime.BRlIiq3h.js");function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function Gm(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xm(e){var t=Gm(e,"string");return Dr(t)=="symbol"?t:t+""}function k(e,t,r){return(t=Xm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ml;ml=Symbol.toStringTag;var _o=class{constructor(){k(this,"_valuesMap",new Map),k(this,ml,"Storage")}getItem(e){const t=String(e);return this._valuesMap.has(e)?String(this._valuesMap.get(t)):null}setItem(e,t){this._valuesMap.set(String(e),String(t))}removeItem(e){this._valuesMap.delete(e)}clear(){this._valuesMap.clear()}key(e){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");return Array.from(this._valuesMap.keys())[e]}get length(){return this._valuesMap.size}};function pl(){const e=new _o;return new Proxy(e,{set:function(t,r,n){return typeof r=="string"&&_o.prototype.hasOwnProperty(r)?e[r]=n:typeof r=="string"&&e.setItem(r,String(n)),!0},get:function(t,r){if(typeof r=="string"){if(_o.prototype.hasOwnProperty(r)){const n=e[r];if(typeof n=="function"){const i=n;return(...o)=>i.apply(e,o)}return n}return e.getItem(r)}}})}function gl(){const e=pl(),t=pl();Object.defineProperty(window,"localStorage",{configurable:!0,enumerable:!0,get:()=>e}),Object.defineProperty(window,"sessionStorage",{configurable:!0,enumerable:!0,get:()=>t});let r=Object.create(null);Object.defineProperty(document,"cookie",{enumerable:!1,configurable:!0,get(){const n=[];for(var i in r)n.push(i+"="+r[i]);return n.join(";")},set(n){const i=n.indexOf("=");var o=n.substr(0,i),s=n.substring(i+1);return r[o]=s,o+"="+s}}),Object.defineProperty(document,"clearCookies",{enumerable:!1,configurable:!0,value:()=>r=Object.create(null)})}gl();function So(e,t){if(e===t)return!0;if(!e||!t||typeof e!="object"||typeof t!="object")return!1;const r=Array.isArray(e);if(r!==Array.isArray(t))return!1;if(r){const o=e,s=t;return o.length===s.length&&o.every((a,l)=>So(a,s[l]))}const n=Object.keys(e),i=Object.keys(t);return n.length!==i.length?!1:n.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&So(e[o],t[o]))}function bl(e,t){const r={watch(n){let i,o=!1;return e.watch(s=>{const a=t(s);o&&So(i,a)||(i=a,o=!0,n(a))})},select(n){return bl(r,n)}};return r}function Ym(...e){let t=e[0],r=e.length>0;const n=new Set,i={get(){return r?t:void 0},set(o){t=o,r=!0;for(const s of Array.from(n))s(o)},watch(o){return n.add(o),r&&o(t),{dispose:()=>n.delete(o)}},select(o){return bl(i,o)}};return i}var Z=class zm{constructor(t=[]){k(this,"_inner",void 0),k(this,"_isDisposed",!1),this._inner=t}addDisposable(t){return this._inner.push(t),t instanceof zm&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(t){this.addDisposable({dispose:t})}removeDisposable(t){const r=this._inner.indexOf(t);r>=0&&this._inner.splice(r,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const t of[...this._inner])t.dispose()}}};function wo(e){return`service_container_${e}`}var Ir=new Set,Co;function Km(){if(!Co)return;const e=new Error("getInstanceAsync"),t=Error;return typeof t.captureStackTrace=="function"&&t.captureStackTrace(e,yl.prototype.getInstanceAsync),e.stack}function Ao(e){Ir.delete(e)&&Co?.end(e)}var yl=class hl extends Z{_runCallbacks(t){this._injectCallbacks.forEach(r=>r(t))}constructor(t=null){super(),k(this,"_parent",void 0),k(this,"_injectCallbacks",[]),k(this,"_injections",Object.create(null)),k(this,"onInject",r=>(this._injectCallbacks.push(r),{dispose:()=>{const n=this._injectCallbacks.indexOf(r);n>=0&&this._injectCallbacks.splice(n,1)}})),this._parent=t,t&&this.addDisposable(t.onInject(r=>this._runCallbacks(r)))}inject(t,r){this._injections[t]=()=>r,this._runCallbacks(t)}injectFactory(t,r,n){const i=this._injections[t];let o=typeof i=="function"?i():i;const s=this._injections[t]=()=>(o=r(this,o),o);n&&s(),this._runCallbacks(t)}_find(t,r=!0){return this._injections[t]||r&&this._parent?._find(t)}_onInject(t,r,n=new Z){return n.addDisposable(this.onInject(i=>{t===i&&(n.dispose(),r(this.getInstance(i)))})),this._parent&&n.addDisposable(this._parent._onInject(t,r,n)),this.addDisposable(n),n}getInstance(t,r=!0){const n=this._find(t,r);if(typeof n=="function")return n()}getOrCreateInstance(t,r){const n=this._find(t);if(typeof n=="function")return n();const i=r(this);return this.inject(t,i),i}getInstanceAsync(t){const r=this._find(t);if(typeof r=="function")return Promise.resolve(r());const n=Km();return new Promise((i,o)=>{const s={id:String(t),startedAt:Date.now(),origin:n,container:this,reject:o};Ir.add(s),Co?.start(s),this._onInject(t,()=>{Ao(s),i(this.getInstance(t))})})}failPendingWaits(t){for(const r of Array.from(Ir))r.container===this&&(Ao(r),r.reject(t))}pendingWaits(){return[...Ir].filter(t=>t.container===this)}addService(t,r){const n=wo(t);this.injectFactory(n,(o,s=[])=>s.indexOf(r)<0?[...s,r]:s);const i=new Z;return i.addDispose(()=>{this.injectFactory(n,(o,s=[])=>s.filter(a=>a!==r))}),i}addServiceFactory(t,r,n){const i=wo(t);let o;this.injectFactory(i,(a,l=[])=>(o=r(a,o),o===void 0?l:l.indexOf(o)<0?[...l,o]:l),n);const s=new Z;return s.addDispose(()=>{this.injectFactory(i,(a,l=[])=>o===void 0?l:l.filter(c=>c!==o))}),s}getServices(t){const r=wo(t);return[...this.getInstance(r,!1)||[],...this._parent?.getServices(t)||[]]}createChild(){return new hl(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{const r=this._parent?.getOrCreateIsolatedContainer(t);return new hl(r)})}remove(t){const r=this._injections;delete r[String(t)]}injectListenerCount(){return this._injectCallbacks.length}dispose(){for(const t of Array.from(Ir))t.container===this&&Ao(t);this._injections=Object.create(null),this._injectCallbacks=[],super.dispose()}};function To(e){return e.startsWith("__")?e:`__${e}__`}function Qm(e){if(typeof globalThis>"u")throw new Error("[di] globalThis is required for namespace container access.");const t=To(e),r=globalThis;return r[t]??(r[t]={})}function Zm(e){return e!=null&&typeof e=="object"&&typeof e.inject=="function"&&typeof e.getInstance=="function"}function Jm(e){if(e)return To(e);const t="useblocks".trim();if(!t)throw new Error("[di] REACT_APP_NAME is required for resolveContainer().");return To(t)}function ko(e){const t=Jm(e),r=Qm(t);if(Zm(r.container))return r.container;const n=new yl(null);return r.container=n,n}function ep(){let e=new Date().getTime(),t=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){let n=Math.random()*16;return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),(r==="x"?n:n&3|8).toString(16)})}function tp(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():ep()}function ge(e=tp()){return e}function vl(){return"iframe".trim()||"unknown"}function rp(e){if(typeof globalThis>"u")return;const t=vl(),r=globalThis[e]??{};globalThis[e]=r;const n=r.__diagnostics??(r.__diagnostics={}),i=n.diModuleEval??(n.diModuleEval={evalCount:0,records:[]});i.records.push({buildSource:t,timestamp:Date.now(),stack:new Error().stack}),i.evalCount+=1}function np(){const e="useblocks".trim();if(!e)throw new Error("[di] REACT_APP_NAME is required for DependencyResolver diagnostics.");return`__${e}__`}function ip(e,t){if(rp(t),typeof globalThis>"u")return e;const r=vl(),n=globalThis,i=n[t]=n[t]||{},o=i.__diagnostics=i.__diagnostics||{},s=o.dependencyResolver=o.dependencyResolver||{entries:[]},a={container:e,source:"packages/runtime-core/di/index.ts",buildSource:r,timestamp:Date.now(),stack:new Error().stack};return s.entries.push(a),e}var Bn;function op(){if(Bn)return Bn;const e=np();return Bn=ip(ko(e),e),Bn}var BN=new Proxy({},{get(e,t,r){const n=op(),i=Reflect.get(n,t,r);return typeof i=="function"?i.bind(n):i}}),sp=new Function("url","return import(url)");function ap(e){if(typeof e!="function")return!1;try{return Reflect.construct(String,[],e),!0}catch{return!1}}function lp(e){return typeof e=="object"&&e!==null&&"type"in e&&"url"in e}function cp(e){return e.type==="umd"||e.resolve==="registry"}function FN(e){return e}var up=class{constructor(e,t,r={}){k(this,"_context",void 0),k(this,"_pluginRegistry",void 0),k(this,"_options",void 0),k(this,"_map",new Map),k(this,"_optionsMap",new Map),k(this,"_readyMap",new Map),k(this,"_resolveMap",new Map),k(this,"_initializingPlugins",new Map),k(this,"_creatingPlugins",new Set),k(this,"_initializedPlugins",new Set),k(this,"_creationOrder",[]),k(this,"_lifecycleListeners",new Set),k(this,"_activated",!1),this._context=e,this._pluginRegistry=t,this._options=r}activate(){return this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}activateSync(){this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}onLifecycle(e){return this._lifecycleListeners.add(e),{dispose:()=>this._lifecycleListeners.delete(e)}}_emitLifecycle(e){for(const t of Array.from(this._lifecycleListeners))try{t(e)}catch{}}async _resolveEntry(e){if(typeof e=="string"||typeof e=="symbol"){const t=await this._pluginRegistry.getAsync(e);if(!t)throw new Error(`Plugin "${String(e)}" not registered.`);return{ctor:t}}if(typeof e=="function")return e.length===0?{ctor:await e()}:{ctor:e};if(Array.isArray(e)){const[t,r]=e;if(typeof t=="function")return{ctor:t,options:r};const n=await this._pluginRegistry.getAsync(t);if(!n)throw new Error(`Plugin "${String(t)}" not registered.`);return{ctor:n,options:r}}if(lp(e))return this._resolveDescriptor(e);throw new Error(`Unknown plugin entry format: ${JSON.stringify(e)}`)}async _resolveDescriptor(e){const t=e.resolve??(e.type==="umd"?"window":"module");if(cp(e)&&await this._options.ensureHostRuntimeReady?.(e),e.type==="esm"){const r=await sp(e.url);if(t==="module")return{ctor:r.default??r};if(t==="registry"&&e.name){const n=await this._pluginRegistry.getAsync(e.name);if(!n)throw new Error(`Plugin "${e.name}" not found in registry after ESM load`);return{ctor:n}}}if(e.type==="umd"){if(await this._loadScript(e.url),t==="window"&&e.name){const r=globalThis[e.name];if(!r)throw new Error(`Plugin "${e.name}" not found on window after script load`);return{ctor:r}}if(t==="registry"&&e.name){const r=await this._pluginRegistry.getAsync(e.name);if(!r)throw new Error(`Plugin "${e.name}" not found in registry after script load`);return{ctor:r}}}throw new Error(`Cannot resolve descriptor: type=${e.type}, resolve=${t}, name=${e.name??"none"}`)}_loadScript(e){return new Promise((t,r)=>{if(typeof document>"u"){r(new Error("Cannot load UMD script in non-browser environment"));return}const n=document.createElement("script");n.src=e,n.onload=()=>t(),n.onerror=()=>r(new Error(`Failed to load script: ${e}`)),document.head.appendChild(n)})}initSync(e){const t=[];for(const r of e){const n=this._getOrCreate(r,void 0);t.push(n)}this._activated=!0,this._startPluginsBatch(t)}async init(e){const t=[],r=new Set;for(const n of e){const{ctor:i,options:o}=await this._resolveEntry(n),s=this._getOrCreate(i,o);r.has(s)||(r.add(s),t.push(s))}this._activated=!0,await this._startPluginsBatch(t)}async setPlugins(e){const t=new Set,r=[];for(const s of e){const a=await this._resolveEntry(s);t.add(a.ctor),r.push(a)}const n=[];this._map.forEach((s,a)=>{t.has(a)||n.push({key:a,plugin:s})});for(let s=n.length-1;s>=0;s--){const{key:a,plugin:l}=n[s];await this._initializingPlugins.get(l),await this._disposePlugin(l,l.constructor.name),this._map.delete(a),this._optionsMap.delete(a),this._readyMap.delete(l),this._resolveMap.delete(l),this._initializingPlugins.delete(l),this._initializedPlugins.delete(l);const c=this._creationOrder.indexOf(l);c>=0&&this._creationOrder.splice(c,1)}const i=[],o=new Set;for(const{ctor:s,options:a}of r){const l=this._getOrCreate(s,a);o.has(l)||(o.add(l),i.push(l))}this._activated&&await this._startPluginsBatch(i)}isReady(e){return this._initializedPlugins.has(e)}ready(e){return this._initializingPlugins.get(e)??this._readyMap.get(e)??Promise.resolve()}async waitFor(e,t){if(this._pluginRegistry.has(e))return this.useByKeyAsync(e);const{timeout:r}=t??{};return await new Promise((n,i)=>{let o,s=!1;const a=()=>{s||(s=!0,o&&clearTimeout(o),this._pluginRegistry.off(e,a),n())};this._pluginRegistry.on(e,a),r!==void 0&&r>0&&(o=setTimeout(()=>{s||(s=!0,this._pluginRegistry.off(e,a),i(new Error(`waitFor("${String(e)}") timed out after ${r}ms`)))},r))}),this.useByKeyAsync(e)}useByKey(e){const t=this._pluginRegistry.get(e);if(!t)throw new Error(`Plugin "${String(e)}" not registered or not loaded yet. Use useByKeyAsync() for async plugins.`);const r=this._getOrCreate(t);return this._activated&&this._startPluginsBatch([r]),r}async useByKeyAsync(e){const t=await this._pluginRegistry.getAsync(e);if(!t)throw new Error(`Plugin "${String(e)}" not registered.`);const r=this._getOrCreate(t);return this._activated&&await this._startPluginsBatch([r]),r}useByCtor(e,t){const r=this._getOrCreate(e,t);return this._activated&&this._startPluginsBatch([r]),r}use(e){return typeof e=="function"?this.useByCtor(e):this.useByKey(e)}async useAsync(e){const{ctor:t,options:r}=await this._resolveEntry(e),n=this._getOrCreate(t,r);return this._activated&&await this._startPluginsBatch([n]),n}_getOrCreate(e,t){const r=e;if(!this._map.has(r)){t!==void 0&&this._optionsMap.set(r,t);const n=this._optionsMap.get(r),i=this._createPluginInstance(e,n),o=i.constructor.name;this._emitLifecycle({type:"created",plugin:i,name:o}),i.required?.(),this._map.set(r,i),this._creationOrder.push(i),this._setupReadyPromise(i)}return this._map.get(r)}_createPluginInstance(e,t){const r=e;if(this._creatingPlugins.has(r))throw new Error(`Cyclic dependency for plugin ${e.name}`);this._creatingPlugins.add(r);try{return ap(e)?new e(this._context,t):e(this._context,t)||{}}finally{this._creatingPlugins.delete(r)}}_setupReadyPromise(e){const t=new Promise(r=>{this._resolveMap.set(e,r)});this._readyMap.set(e,t)}async _startPluginsBatch(e){const t=Array.from(new Set(e)),r=new Set,n=[];for(const i of t){if(this._initializedPlugins.has(i))continue;const o=this._initializingPlugins.get(i);if(o){r.add(o);continue}n.push(i)}if(n.length>0){const i=this._runBatchLifecycle(n);for(const o of n)this._initializingPlugins.set(o,i);r.add(i),i.finally(()=>{for(const o of n)this._initializingPlugins.get(o)===i&&this._initializingPlugins.delete(o)})}await Promise.all(r)}async _runBatchLifecycle(e){const t=[];for(const r of e){const n=r.constructor.name;this._emitLifecycle({type:"init:start",plugin:r,name:n});try{await r.init?.(),this._emitLifecycle({type:"init:success",plugin:r,name:n}),t.push(r)}catch(i){this._emitLifecycle({type:"init:error",plugin:r,name:n,error:i})}}for(const r of t){const n=r.constructor.name;this._emitLifecycle({type:"afterInit:start",plugin:r,name:n});try{await r.afterInit?.(),this._emitLifecycle({type:"afterInit:success",plugin:r,name:n})}catch(i){this._emitLifecycle({type:"afterInit:error",plugin:r,name:n,error:i})}}for(const r of e)this._initializedPlugins.add(r),this._resolveMap.get(r)?.(),this._resolveMap.delete(r)}async _disposePlugin(e,t){this._emitLifecycle({type:"dispose:start",plugin:e,name:t});try{await e.dispose?.(),this._emitLifecycle({type:"dispose:success",plugin:e,name:t})}catch(r){this._emitLifecycle({type:"dispose:error",plugin:e,name:t,error:r})}}async dispose(){for(let e=this._creationOrder.length-1;e>=0;e--){const t=this._creationOrder[e];await this._initializingPlugins.get(t),await this._disposePlugin(t,t.constructor.name)}this._map.clear(),this._optionsMap.clear(),this._readyMap.clear(),this._resolveMap.clear(),this._initializingPlugins.clear(),this._initializedPlugins.clear(),this._creationOrder.length=0,this._lifecycleListeners.clear()}getStatus(){return Array.from(this._map.values()).map(e=>({name:e.constructor.name,initialized:this._initializedPlugins.has(e)}))}},El=class{constructor(){k(this,"_plugins",new Map),k(this,"_listeners",new Map)}_getOrCreateEntry(e){let t=this._plugins.get(e);return t||(t={overrides:[]},this._plugins.set(e,t)),t}_applyOverrides(e,t){const r=this._plugins.get(e);if(r?.overrides)for(const n of r.overrides)t=n(t)||t;return t}_notifyListeners(e,t){const r=this._listeners.get(e);if(!r||r.length===0)return;for(const i of r)try{i.callback(t)}catch{}const n=r.filter(i=>!i.once);n.length>0?this._listeners.set(e,n):this._listeners.delete(e)}get(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor)}async getAsync(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor);if(t?.loading){const r=await t.loading;return this._applyOverrides(e,r)}if(t?.factory){const r=Promise.resolve(t.factory()).then(i=>(t.ctor=i,t.loading=void 0,this._notifyListeners(e,i),i));t.loading=r;const n=await r;return this._applyOverrides(e,n)}return new Promise(r=>{this.on(e,n=>r(this._applyOverrides(e,n)))})}add(e,t){const r=this._getOrCreateEntry(e);r.ctor=t,this._notifyListeners(e,t)}addAll(e){for(const t of Object.keys(e)){const r=e[t];r!==void 0&&this.add(t,r)}}addAsync(e,t){const r=this._getOrCreateEntry(e);return r.factory=t,{dispose:()=>{r.ctor||(r.factory=void 0)}}}has(e){const t=this._plugins.get(e);return!!(t?.ctor||t?.factory)}isLoaded(e){return!!this._plugins.get(e)?.ctor}override(e,t){const r=this._getOrCreateEntry(e);return r.overrides.push(t),{dispose:()=>{const n=r.overrides.indexOf(t);n>=0&&r.overrides.splice(n,1)}}}on(e,t){const r=this.get(e);r&&t(r);let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!1};return n.push(i),{dispose:()=>this._removeListener(e,t)}}once(e,t){const r=this.get(e);if(r)return t(r),{dispose:()=>{}};let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!0};return n.push(i),{dispose:()=>this._removeListener(e,t)}}off(e,t){this._removeListener(e,t)}_removeListener(e,t){const r=this._listeners.get(e);if(r){const n=r.findIndex(i=>i.callback===t);n>=0&&r.splice(n,1),r.length===0&&this._listeners.delete(e)}}keys(){return Array.from(this._plugins.keys())}forContext(){const e=this;return{add(t,r){e.add(t,r)}}}},dp=class{constructor(e){k(this,"resolveRegistry",void 0),this.resolveRegistry=e}target(){return this.resolveRegistry()}get(e){return this.target().get(e)}getAsync(e){return this.target().getAsync(e)}add(e,t){return this.target().add(e,t)}addAll(e){return this.target().addAll(e)}addAsync(e,t){return this.target().addAsync(e,t)}has(e){return this.target().has(e)}isLoaded(e){return this.target().isLoaded(e)}override(e,t){return this.target().override(e,t)}on(e,t){return this.target().on(e,t)}once(e,t){return this.target().once(e,t)}off(e,t){return this.target().off(e,t)}keys(){return this.target().keys()}forContext(){return this.target().forContext()}},_l=class extends Z{constructor(e={}){super(),k(this,"_options",void 0),k(this,"_listeners",[]),k(this,"on",this._addListener.bind(this)),k(this,"event",this._addListener.bind(this)),k(this,"once",(t,r=0,n)=>{const i=this._addListener((...o)=>(i?.dispose(),n?t.call(n,...o):t(...o)),r);return i}),k(this,"un",t=>{const r=this._listeners.findIndex(([n])=>n===t);r>=0&&(this._listeners.splice(r,1),this._listeners.length===0&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove())}),this._options=e}getListeners(e){return this._listeners.flatMap(([t])=>typeof t=="function"?t:t.getListeners(e))}hasListeners(){for(const[e]of this._listeners){if(typeof e=="function")return!0;const t=e;if(typeof t.hasListeners=="function"){if(t.hasListeners())return!0;continue}return!0}return!1}_addListener(e,t=0,r){if(this.isDisposed())return{dispose:()=>{}};const n=this._listeners,i=this._options;r&&typeof e=="function"&&(e=e.bind(r));const o=n.findIndex(([,a])=>a<t),s=[e,t];return n.splice(o>=0?o:n.length,0,s),n.length===1&&i.onFirstListenerAdd&&i.onFirstListenerAdd(),{dispose:()=>{const a=n.indexOf(s);a>=0&&(n.splice(a,1),!n.length&&i.onLastListenerRemove&&i.onLastListenerRemove())}}}dispose(){this._listeners.splice(0,this._listeners.length),this._options.onLastListenerRemove&&this._options.onLastListenerRemove(),super.dispose()}},fp=class extends _l{execute(e,t){for(const r of t)try{r(...e)}catch{}}fire(...e){if(!this.isDisposed()){const t=this.execute(e,this.getListeners(e));return t===void 0?void 0:t}}},ee=class extends fp{execute([e],t){for(const r of t)try{r(e)}catch{}}},hp=class extends _l{fire(e){if(this.isDisposed())return;let t=!1,r=!1;const n={value:e,preventDefault(){t=!0},stopPropagation(){r=!0}},i=this.getListeners([n]);for(const o of i){if(r)break;try{o(n)}catch{}}return t?!1:void 0}};function mp(e,t,r){let n;const i=new ee({onFirstListenerAdd(){n=i.addDisposable(new Z),n.addDisposable(e(o=>{t(o)!==!1&&i.fire(o)}))},onLastListenerRemove(){n?.dispose(),n=void 0}});return r?.addDisposable(i),i.event}var Fn={lockEditorInit:!0,lockEdit:!1,lockEditor:!0,activeElementLocked:0,applicationTheme:"light",applicationMode:"default",previewHeight:0,emailWidth:0,previewPage:!1,globalHolder:null,elementPath:[],activeElementText:"",selectedElem:null,iframeOffsetTop:0,scrollTop:0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,elementAIimageEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,blocksAddPanelEnabled:!0,codeMode:!0,appName:"",isLeftButtonDown:!1,isProgrammaticSelection:!1,isDirectionUP:!1,isDirectionDOWN:!1,isDirectionLEFT:!1,isDirectionRIGHT:!1,actualTargetCount:0,activeCell:[],commonStyles:{},loadStylesTimer:!1,_pushUndoStop:!1},Br=Ym({...Fn});function Re(){return Br.get()}var jn=new ee,qt=new Map,_e={source:Br,get(e){return Re()[e]},getState(){return{...Re()}},getStateRef(){return Re()},set(e,t){if(Re()[e]===t)return;Br.set({...Re(),[e]:t}),jn.fire({[e]:t});const r=qt.get(e);r&&r.forEach(n=>n(t))},update(e){let t=!1;const r={};for(const n of Object.keys(e)){const i=e[n];if(Re()[n]!==i){Br.set({...Re(),[n]:i}),r[n]=i,t=!0;const o=qt.get(n);o&&o.forEach(s=>s(i))}}t&&jn.fire(r)},increment(e,t=1){const r=Re()[e];typeof r=="number"&&_e.set(e,r+t)},decrement(e,t=1){const r=Re()[e];typeof r=="number"&&_e.set(e,r-t)},subscribe(e){return jn.event(e)},subscribeToKey(e,t){qt.has(e)||qt.set(e,new Set);const r=qt.get(e),n=t;return r.add(n),()=>{r.delete(n),r.size===0&&qt.delete(e)}},reset(){Br.set({...Fn}),jn.fire(Re())},resetKey(e){this.set(e,Fn[e])},isEditingLocked(){const e=Re();return e.lockEdit||e.lockEditor||e.lockEditorInit},isActiveElementLocked(){return Re().activeElementLocked>0},getInitialState(){return Fn}},$n=e=>e?.trim().replaceAll(/[\s\u00A0]+/g," ").replaceAll(/\n/g,"");function Sl(e){let t=e;for(;t;){if(t.tagName==="TR")return t;t=t.parentElement}return null}function At(e,t){return Array.from(e.classList).find(r=>r.includes(t))}function wl(e){return!e||!e.childNodes?!1:Array.from(e.childNodes).every(t=>t.nodeType===Node.TEXT_NODE?(t.textContent?.trim()??"")!=="":t.nodeType===Node.ELEMENT_NODE?wl(t):!1)}function z(e){const t=document.createElement(e.tag||"div");if(t.setAttribute("contentEditable","false"),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.left&&(t.style.left=e.left+"px"),e.top&&(t.style.top=e.top+"px"),e.className&&(t.className=e.className),e.style&&t.setAttribute("style",e.style),e.HTMLcontent&&(t.innerHTML=e.HTMLcontent),e.title&&t.setAttribute("title",e.title),e["data-id"]&&t.setAttribute("data-id",e["data-id"]),e.targetElement){const r=typeof e.targetElement=="string"?document.querySelector(e.targetElement):e.targetElement;if(r)switch(e.insertType){case"append":r.append(t);break;case"prepend":r.prepend(t);break;case"before":r.before(t);break;case"after":r.after(t);break;case"replaceWith":r.replaceWith(t)}}return t}function pp(e){try{return JSON.parse(e),!0}catch{return!1}}function gp(e,t,r=2){const n=e.split(""),i=t.split("");if(Math.abs(n.length-i.length)>r)return!1;let o=0;if(n.length===i.length){for(let s=0;s<n.length;s++)if(n[s]!==i[s]&&(o++,o>r))return!1}else{const s=n.length>i.length?n:i,a=n.length>i.length?i:n;let l=0,c=0;for(;l<s.length&&c<a.length;)if(s[l]!==a[c]){if(o++,o>r)return!1;l++}else l++,c++;if(l<s.length&&o++,o>1)return!1}return!0}function bp(e){const t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}function yp(e,t){let r=e;for(;r&&r!==document.body;){const n=r.style?.[t];if(n&&typeof n=="string")return n;if(r.tagName==="EDITOR")return null;r=r.parentElement}return null}function vp(e){const t=e.style?.fontWeight;if(typeof t=="number")return t>=600;if(typeof t=="string"){const r=t.toLowerCase();return r.includes("bold")||r.includes("black")||parseInt(r)>=600}return!1}function Cl(){const e=window.getSelection();if(!e||e.rangeCount===0)return null;const t=e.getRangeAt(0).commonAncestorContainer;return t.nodeType===1?t:t.parentElement}function Ep(e,t=null){const r=e?.innerText;for(;e!==null;){if(e.innerText===r){const n=e.parentElement;if(n===null||n.innerText!==r||n.tagName==="EDITOR"||e.tagName===t?.toUpperCase())return e.tagName===t?.toUpperCase()||!t?e:null}e=e.parentElement}return null}function Al(e,t=Cl()){e=$n(e)??"";const r=o=>$n(o?.textContent||"")??"",n=Array.from(t?.childNodes||[]).filter(o=>!!o&&o.nodeName!=="BR");let i=null;if(t&&t.nodeType===Node.TEXT_NODE&&r(t).includes(e)&&r(t)===e)return t;for(let o=0;o<n.length;o++){const s=n[o];if(s.nodeType===Node.TEXT_NODE&&r(s).includes(e)&&r(s)===e){i=s.parentNode;break}else if(s.nodeType===Node.ELEMENT_NODE&&(i=Al(e,s),i))break}return i}function Tl(e){const t=Array.from(e),r=t.map(o=>o.clientWidth),n=r.reduce((o,s)=>o+s,0),i=r.map(o=>((o||0)/n*100).toFixed(1));t.forEach((o,s)=>{o.setAttribute("data-percent",i[s])})}function Fr(e){e.elem.nodeName==="#comment"&&e.elem.textContent&&e.elem.textContent.indexOf("mso")>-1?e.elem.textContent=e.elem.textContent.replace(/width=".*"/gi,`width="${e.width}"`):e.elem.previousSibling&&Fr({elem:e.elem.previousSibling,width:e.width})}function _p(e){let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i=0;for(;i<e;)t+=r.charAt(Math.floor(Math.random()*62)),i+=1;return t}var Hn=null,Lo=null,Sp=null,wp=null,jr=0;function Cp(e){Hn=e.htmlDocument,Lo=e.remoteDocument,Sp=e.textDocument,wp=e.documentMapping}function Oo(){if(!Hn)throw new Error("Documents not initialized. Call initDocuments first.");return Hn}function kl(){if(!Lo)throw new Error("Documents not initialized. Call initDocuments first.");return Lo}function Ap(e){Oo().commit(e)}async function Tp(e){const t=Oo();try{jr++,await t.commit(e,!0)}finally{jr--}}function kp(){return jr>0}function Lp(){jr++}function Op(){jr--}function xo(){return Hn!==null}var zn=null,Gt=void 0,Po=null;function xp(e){Po=e}function Pp(e){zn=e}function Np(e){if(Po){Po.setEditorFocus(e);return}if(zn&&zn.isEditorInFocus!==e){const t=e;e&&typeof Gt=="boolean"&&(xo()&&kl().saveChanges(Gt),Gt=void 0),zn.setFocus(t),!e&&typeof Gt=="boolean"&&(xo()&&kl().saveChanges(Gt),Gt=void 0)}}function Mp(e,t=window){return{peer:e,send(r){e.postMessage(r,"*")},subscribe(r){const n=i=>{r({data:i.data,source:i.source,ports:i.ports})};return t.addEventListener("message",n),{dispose:()=>t.removeEventListener("message",n)}},close(){}}}function Rp(e){let t=!1;return{peer:e,send(r){e.postMessage(r)},subscribe(r){const n=i=>{r({data:i.data,source:e})};return e.addEventListener("message",n),t||(t=!0,e.start()),{dispose:()=>e.removeEventListener("message",n)}},close(){e.close()}}}function jN(e){return e}function Dp(e){return e&&typeof e=="object"}function Ll(e,t){return e&&typeof e=="object"&&e.operationId===t}var Xe="INIT_MESSAGE",Ip="em:port-ready",Bp="em:window-drained",No="";function Ol(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var Fp=class extends Z{constructor(...e){super(...e),k(this,"_listeners",Object.create(null)),k(this,"addListenerAsync",(t,r,n=0,i)=>{const o=this._listeners[t]||(this._listeners[t]=[]);i&&typeof r=="function"&&(r=r.bind(i));const s=o.findIndex(([l,c])=>n<=c),a=[r,n];return this.isDisposed()||o.splice(s>=0?s:o.length,0,a),{dispose(){const l=o.indexOf(a);l>=0&&o.splice(l,1)}}}),k(this,"fireAsync",(t,r)=>{if(!this.isDisposed()){const n=this._listeners[t]||(this._listeners[t]=[]);let i;for(let o=0;o<n.length;o++){const s=n[o][0],a=i;i=l=>s(l,a)}if(i)return i(r)}}),k(this,"addListener",(t,r,n=0)=>this.addListenerAsync(t,(i,o)=>{try{r(i)}catch{}return o&&o(i)},n))}},jp=class extends Z{constructor(e,t){super(),k(this,"_singleton",void 0),k(this,"_target",void 0),k(this,"_transport",void 0),k(this,"_transportSubscription",void 0),k(this,"_ports",new Map),k(this,"_drained",new WeakSet),k(this,"_inited",!1),k(this,"_emitter",this.addDisposable(new Fp)),k(this,"_handshaken",new WeakSet),k(this,"_greeted",new WeakSet),k(this,"_outgoingFilter",void 0),k(this,"_onTransportMessage",r=>{const n=r,i=n.data,o=n.source,s=i?.port===!0?n.ports?.[0]:void 0,a=!this._isPortSource(n.source);if(a&&o&&i?.operationId==="em:window-drained"){this._drained.add(o);return}if(!(a&&o&&this._drained.has(o))){if(o&&o!==this._target&&this._greeted.has(o)&&Ll(i,Xe)){this._greeted.delete(o),this._handshaken.add(o),this._postMessage(o,{operationId:Xe,data:{}}),s&&this.usePort(s,!0,o);return}if(Dp(i)&&(n.source===this.target||this._isCurrentPort(n.source))||this._singleton&&Ll(i,Xe)){if(s){const d=this._target;Promise.resolve().then(()=>this.usePort(s,!0,d))}const l=this._emitter.fireAsync(i.operationId||No,i.operationId===void 0?n:i.data),c=i.result,u=i.error;c&&u&&Promise.resolve(l).then(d=>this._sendMessage(c,d),d=>this._sendMessage(u,d))}}}),this._singleton=t,this._transport=Mp({postMessage:()=>{}},window),this._transportSubscription=this.addDisposable(this._transport.subscribe(this._onTransportMessage)),this.addListener(Xe,()=>{this._inited||(this._inited=!0,this._target&&this._handshaken.add(this._target),this.send(Xe))}),e&&this.setTarget(e)}setTarget(e){if(this._target!==e){if(this._target=e,!e){this._inited=!1;return}if(this._handshaken.has(e)){this._inited=!0,this._emitter.fireAsync(Xe,void 0);return}this._inited=!1,this._postMessage(e,{operationId:Xe,data:{}})}}sendPort(e,t){this._postMessage(e,{operationId:Xe,data:{},port:!0},[t])}setOutgoingFilter(e){return this._outgoingFilter=e,()=>{this._outgoingFilter===e&&(this._outgoingFilter=void 0)}}greet(e){this._handshaken.has(e)||this._greeted.has(e)||this._target===e||(this._greeted.add(e),this._postMessage(e,{operationId:Xe,data:{}}))}forget(e){this._handshaken.delete(e),this._greeted.delete(e),this._closePort(e),this._drained.delete(e),this._target===e&&(this._inited=!1)}usePort(e,t=!1,r=this._target){if(!r||this._ports.has(r))return;const n=Rp(e),i=n.subscribe(this._onTransportMessage);this._ports.set(r,{transport:n,subscription:i}),t&&(n.send({operationId:Ip,data:{}}),this.drainWindow(r))}useWindow(e=this._target){e&&(this._closePort(e),this._drained.delete(e))}get usesPort(){return this._target!==void 0&&this._ports.has(this._target)}hasPort(e){return this._ports.has(e)}_closePort(e){const t=this._ports.get(e);t&&(t.subscription.dispose(),t.transport.close(),this._ports.delete(e))}drainWindow(e){this._ports.has(e)&&e.postMessage({operationId:Bp,data:{}},"*")}isWindowDrained(e){return this._drained.has(e)}_isPortSource(e){for(const t of this._ports.values())if(t.transport.peer===e)return!0;return!1}_isCurrentPort(e){return this._target!==void 0&&this._ports.get(this._target)?.transport.peer===e}getTarget(){return this._target}get target(){return this._target}_postMessage(e,t,r){let n=t;this._outgoingFilter&&!r?.length&&(n="data"in t?{...t,data:this._outgoingFilter(t.data)}:this._outgoingFilter(t));try{const i=this._ports.get(e);if(i){i.transport.send(n);return}if(r?.length){e.postMessage(n,"*",r);return}e.postMessage(n,"*")}catch(i){if(i?.name==="DataCloneError"){const o=typeof n?.data=="object"&&n?.data!==null?n.data:void 0}throw i}}_sendMessage(e,t,r=!0){if(!r&&!this.isInited())return;const n=this.addDisposable(this.onInit(i=>{const o=e?{operationId:e,data:t}:t;try{this._postMessage(i,{...o})}finally{n.dispose()}}))}send(e,t,r){return typeof e=="string"?this._sendMessage(e,t,r):this._sendMessage(No,e,t)}sendAsync(e,t,r=!0){if(!r&&!this.isInited())return Promise.resolve();const n=Ol(),i=Ol();return new Promise((o,s)=>{const a=this.addDisposable(new Z);a.addDisposable(this.onInit(l=>{try{this._postMessage(l,{operationId:e,data:t,result:n,error:i})}catch(c){a.dispose(),s(c);return}a.addDisposable(this._onMessage(n,c=>{o(c),a.dispose()})),a.addDisposable(this._onMessage(i,c=>{s(c),a.dispose()}))}))})}_onMessage(e,t,r=0){return this._emitter.addListener(e,t,r)}addListener(e,t,r){return t?this._onMessage(e,t,r):this._onMessage(No,e)}addListenerAsyncPipe(e,t,r=0){return this._emitter.addListenerAsync(e,t,r)}addListenerAsync(e,t,r=0){return this._emitter.addListenerAsync(e,async(n,i)=>{const o=await t(n);return i?i(n):o},r)}isInited(){return this._inited}get inited(){return this._inited}onInit(e,t=!0,r=0){const n=this.addDisposable(new Z);return this._inited&&this._target?t&&Promise.resolve().then(()=>{!this._inited||!this._target?n.addDisposable(this.onInit(e,t,r)):e(this._target)}):n.addDisposable(this._onMessage(Xe,()=>{e(this._target)},r)),n}dispose(){for(const e of Array.from(this._ports.keys()))this._closePort(e);this._transport.close(),super.dispose()}},$p=/<\/?[a-zA-Z][a-zA-Z0-9-]*(?:\s[^<>]*)?\/?>/g;function Hp(e){return e.replace($p,t=>/^<br\b/i.test(t)?" ":"")}var zp="fonts.googleapis.com",Vp=e=>{try{const t=new URL(String(e??"").trim());return t.protocol==="https:"?t:null}catch{return null}},Wp=e=>{const t=Vp(String(e??""));return t?t.hostname===zp&&t.pathname.startsWith("/css")&&!!t.searchParams.get("family"):!1},me={MESSAGE:"message",INIT_PREVIEW:"init_preview",UPDATE_PREVIEW:"update_preview",UPDATE_EDITOR:"update_editor",UPDATE_EDITOR_POSITION:"update_editor_position",UPDATE_SIDE_MENU_EDITOR:"update_side_menu_editor",SAVE_EMAIL:"saveEmail",SANDBOX_ELEMENT_SETTINGS_SET:"sandbox_element_settings_set",SANDBOX_IMAGE_RESET:"sandbox_image_reset",SANDBOX_NATIVE_IMAGE_DROP_CLEAR:"sandbox_native-image-drop-clear",SANDBOX_EMAIL_SETTINGS_SET:"sandbox_email_settings_set",SANDBOX_BLOCK_SETTINGS_SET:"sandbox_block_settings_set",SANDBOX_ELEMENT_PARENT_GET:"sandbox_element_parent_get",SANDBOX_ELEMENT_PARENT_TABLE_GET:"sandbox_element_parent_table_get",SANDBOX_ELEMENT_PREV_GET:"sandbox_element_prev_get",SANDBOX_ELEMENT_NEXT_GET:"sandbox_element_next_get",SANDBOX_ELEMENT_REMOVE:"sandbox_element_remove",SANDBOX_ELEMENT_ACTIVE_RESET:"sandbox_element_active_reset",SANDBOX_ELEMENT_ACTIVE_SET:"sandbox_element_active_set",SANDBOX_ELEMENT_HOVER_SET:"sandbox_element_hover_set",SANDBOX_ELEMENT_IMG_LINK:"sandbox_element_img_link",SANDBOX_ELEMENT_TEXT:"sandbox_element_text",SANDBOX_EMAIL_CONTENT_GET:"sandbox_email_content_get",SANDBOX_SET_POSITION_TO_IMG:"sandbox_set_position_to_img",SANDBOX_SET_POSITION_TO_LINK:"sandbox_set_position_to_link",SANDBOX_ACCORDION_ADD_SECTION:"sandbox_accordion_add_section",SANDBOX_ACCORDION_REMOVE_SECTION:"sandbox_accordion_remove_section",APPLICATION_FOCUS_IN_IFRAME:"application_focus_in_iframe",APPLICATION_EMAIL_SETTINGS_SET:"application_email_settings_set",APPLICATION_BLOCK_SETTINGS_SET:"application_block_settings_set",APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",_APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",APPLICATION_ELEMENT_SETTINGS_CLOSE:"application_element_settings_close",APPLICATION_ACTION:"application_action",APPLICATION_EBLOCK_ADD:"application_eblock_add",SANDBOX_EBLOCK_SET_EM_BLOCK_ID:"sandbox_eblock_set_em_block_id",SANDBOX_GLOBAL_BLOCK_REPLACE:"sandbox_global_block_replace",APPLICATION_SCROLL_TO:"application_scroll-to",APPLICATION_SCROLL_BLOCK_SHOW:"application_scroll-block-show",APPLICATION_SCROLL_BLOCK_HIDE:"application_scroll-block-hide",APPLICATION_DISCUSS_SET_ID:"application_discuss_set_id",APPLICATION_DISCUSS_GET_COMMENT:"application_discuss_get_comment",APPLICATION_DISCUSS_NO_COMMENT:"application_discuss_no_comment",APPLICATION_DISCUSS_SAVE_TARGET:"application_discuss_save_target",APPLICATION_IFRAME_SET_HEIGHT:"application_iframe_set_height",APPLICATION_COMMON_STYLES_UPDATE:"application_commonStyles_update",APPLICATION_EMAIL_CONTENT_GET:"application_email_content_get",APPLICATION_OPEN_IMAGE_AI_POPUP:"application_open-image-ai-popup",APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:"application_open-image-upload-popup",APPLICATION_OPEN_IMAGE_EDIT_POPUP:"application_open-image-edit-popup",APPLICATION_OPEN_IMAGE_GIF_POPUP:"application_open-image-gif-popup",APPLICATION_OPEN_IMAGE_STOCK_POPUP:"application_open-image-stock-popup",APPLICATION_CLOSE_IMAGE_EDIT_POPUP:"application_close-image-edit-popup",APPLICATION_NATIVE_IMAGE_DROP:"application_native-image-drop",APPLICATION_SUBJECT_UPDATE:"application_subject_update",APPLICATION_PREHEADER_UPDATE:"application_preheader_update",APPLICATION_DOMPARSER_ERROR:"application_domparser_error",APPLICATION_UPDATE_ENTITY:"application_update_entity",APPLICATION_IFRAME_DRAG_EVENT:"application_iframe_drag_event",APPLICATION_HAS_AMP:"application_has_amp",APPLICATION_CANVAS_IMAGE_GET:"application_canvas_image_get",APPLICATION_PREVIEW_ALERT_SHOW:"application_preview_alert_show",APPLICATION_ATOM_INSERTED:"application_atom_inserted",APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW:"application_template_not_em_alert_show",SANDBOX_WINDOW_CHARACTERISTIC:"sandbox_window-characteristic",SANDBOX_IFRAME_SETSIZE:"sandbox_iframe-setsize",SANDBOX_BLOCK_INSERT:"sandbox_block-insert",SANDBOX_ATOM_INSERT:"sandbox_atom-insert",SANDBOX_DRAG_CANCEL:"sandbox_drag-cancel",UPDATE_EDITOR_POSITION_FROM_EDITOR:"update_position_from_editor",UPDATE_EDITOR_POSITION_FROM_IFRAME:"update_position_from_iframe",SANDBOX_CHANGE_PREVIEW:"sandbox_change_preview",APPLICATION_CHANGE_PREVIEW:"application_change_preview",SANDBOX_LOCK_EDIT:"sandbox_lock_edit",SANDBOX_FLOATBLOCK_ADD:"sandbox_floatBlock_add",SANDBOX_FLOATBLOCK_REMOVE:"sandbox_floatBlock_remove",SANDBOX_FLOATBLOCK_COPY:"sandbox_floatBlock_copy",SANDBOX_FLOATBLOCK_SWAP:"sandbox_floatBlock_swap",EDITOR_CHANGE_FOCUS:"editor_change_focus",SANDBOX_RESIZED:"sandbox_resized",SANDBOX_LOCK_DISCUSS:"sandbox_lock_discuss",SANDBOX_DISCUSS_SET_TARGET:"sandbox_discuss_set_target",SANDBOX_DISCUSS_REMOVE_TARGET:"sandbox_discuss_remove_target",SANDBOX_DISCUSS_RESET:"sandbox_discuss_reset",SANDBOX_DISCUSS_GET_TARGET:"sandbox_discuss_get_target",SANDBOX_READY:"SANDBOX_READY",SANDBOX_FLOATBLOCK_WRAP:"sandbox_floatblock_wrap",SANDBOX_FLOATBLOCK_DIR:"sandbox_floatblock_dir",SANDBOX_SUBJECT_UPDATE:"sandbox_subject_update",SANDBOX_PREHEADER_UPDATE:"sandbox_preheader_update",SANDBOX_DRAG_EVENT:"sandbox_drag_event",SANDBOX_WHEEL:"sandbox_wheel",SANDBOX_ADD_MERGETAG:"sandbox_add_mergetag",SANDBOX_TRANSLATIONS:"sandbox_send_translations",SANDBOX_SET_THEME_VARIABLES:"sandbox_send_theme_variables",SANDBOX_SET_PROJECT_FONTS:"sandbox_set_project_fonts",SANDBOX_CANVAS_IMAGE_CACHE_SETUP:"sandbox_canvas_image_cache_setup",SANDBOX_SET_ENTITY:"sandbox_set_entity",SANDBOX_INIT_START:"sandbox_init_start",SANDBOX_INITED:"sandbox_inited",SANDBOX_UPDATE_ENTITY:"sandbox_update_entity",RELOAD:"reload",SANDBOX_ADD_EXTENSIONS:"sandbox_add_extensions",SANDBOX_REMOVE_EXTENSIONS:"sandbox_remove_extensions",SANDBOX_ADD_SCRIPT:"sandbox_add_script",SANDBOX_IS_EMAIL_EMPTY:"sandbox_is_email_empty",SANDBOX_SWITCH_THEME:"sandbox_switch_theme"},Up=e=>({REORDER_ATOM:e("Reorder element"),CLONE_ATOM:e("Clone element"),REMOVE_ATOM:e("Remove element"),EDIT_ATOM:e("Edit element"),CHANGE_IMAGE:e("Change image"),CHANGE_IMAGE_EDIT:e("Edit"),CHANGE_IMAGE_STOCK:e("Stock"),CHANGE_IMAGE_CHANGETO:e("Upload"),CHANGE_IMAGE_GIF:e("GIF"),CHANGE_IMAGE_AI:e("Generate"),REORDER_BLOCK:e("Reorder block"),REORDER_BLOCK_UP:e("Move up"),REORDER_BLOCK_DOWN:e("Move down"),EDIT_BLOCK:e("Edit block"),CLONE_BLOCK:e("Clone block"),MERGE_BLOCK:e("Merge with the chosen block"),UNMERGE_BLOCK:e("Split blocks"),COPY_BLOCK_TO_CLIPBOARD:e("Copy block to clipboard"),PASTE_BLOCK_FROM_CLIPBOARD:e("Paste block from clipboard"),REMOVE_BLOCK:e("Remove block"),SAVE_TO_BLOCKS:e("Save to Blocks"),UPDATE_GLOBAL_BLOCK_IN_TEMPLATES:e("Push block update to all templates"),ADD_BLOCK:e("Add block"),ADD_EMPTY_BLOCK:e("Add an empty block"),ADD_SAVED_BLOCK:e("Add a saved block"),ADD_COMMON_BLOCK:e("Add a common block"),ADD_TEMPLATE_BLOCK:e("Add a template block"),ADD_SEARCH_BLOCK:e("Search a block"),REORDER_GROUP:e("Reorder group"),EDIT_GROUP:e("Edit group"),CLONE_GROUP:e("Clone group"),REMOVE_GROUP:e("Remove group"),ADD_GROUP:e("Add group"),LINK:e("link"),TABLE_COLUMN:e("cell"),TABLE:e("table"),FLOAT_BLOCK:e("column"),CONTAINER:e("container"),PICTURE:e("picture"),CAROUSEL:e("carousel"),ACCORDION:e("accordion"),SOCIAL:e("Social media"),VERTICAL_INDENT:e("indent"),TEXT:e("text"),BUTTON:e("button"),VAR:e("variable"),STRUCTURE:e("block"),EMAIL:e("email"),GROUP:e("group"),TYPOGRAF:e("Typograf"),COUNTDOWN:e("countdown"),ELEMENT:e("element"),VIDEO:e("video"),ELEMENT_PATH_LINK:e("Link"),ELEMENT_PATH_BLOCK:e("Block"),ELEMENT_PATH_ATOM:e("Element"),ELEMENT_PATH_TD:e("Cell"),ELEMENT_PATH_TABLE:e("Table"),ELEMENT_PATH_FLOATBLOCK:e("Column"),ELEMENT_PATH_TEXT:e("Text"),ELEMENT_PATH_DIV:e("Container"),ELEMENT_PATH_GROUP:e("Group"),ELEMENT_PATH_EMAIL:e("Email"),ELEMENT_PATH_IMG:e("Picture"),ELEMENT_PATH_VINDENT:e("Indent"),ELEMENT_PATH_BUTTON:e("Button"),ELEMENT_PATH_CAROUSEL:e("Carousel"),ELEMENT_PATH_ACCORDION:e("Accordion"),ELEMENT_PATH_SOCIAL:e("Social media"),ELEMENT_PATH_SECTION:e("Section"),TINYMCE_CHANGECASE:e("Case Change"),TINYMCE_UPPERCASE:e("Uppercase"),TINYMCE_LOWERCASE:e("Lowercase"),PASTE_HERE:e("Drop here"),INSERT_COLUMN_BEFORE_TABLE:e("Insert column before"),INSERT_COLUMN_AFTER_TABLE:e("Insert column after"),INSERT_ROW_BEFORE_TABLE:e("Insert row before"),INSERT_ROW_AFTER_TABLE:e("Insert row after"),MERGE_RIGHT_CELL_TABLE:e("Merge right cell"),MERGE_LEFT_CELL_TABLE:e("Merge left cell"),MERGE_TOP_CELL_TABLE:e("Merge top cell"),MERGE_BOTTOM_CELL_TABLE:e("Merge bottom cell"),SPLIT_CELL_TABLE:e("Split cell"),REMOVE_COLUMN_TABLE:e("Remove column"),REMOVE_ROW_TABLE:e("Remove row"),DROP_BLOCK_HINT:e("Click or drag a block")}),X=new jp(window.parent,!0);function xl(e){for(const t of document.querySelectorAll(`[${e}]`))t.removeAttribute(e)}function be(e,t,r=!1){for(const n of e.querySelectorAll(t))r||!n.childNodes.length?n.remove():n.replaceWith(...n.childNodes)}var Vn="em-element-list-ol",Wn="em-element-list-ul",qp="em-element-list-bullet",Gp=`.${Vn}, .${Wn}`,Xp=["DIV","P","TD","H1","H2","H3","H4","H5","H6"],Yp="div, p, td, h1, h2, h3, h4, h5, h6",Kp={LIST:"margin: 0; padding: 0 0 0 20px;",LIST_ITEM:"padding-bottom: 5px;"};function Qp(e,t,r){const n=document.createElement("div");return n.innerHTML=e,n.querySelectorAll("tr").forEach(i=>{const o=i.querySelectorAll("td");if(o.length>1){const s=o[1],a=(s.getAttribute("style")||"").split(";").filter(u=>u.trim()!==""),l={};a.forEach(u=>{const[d,f]=u.split(":").map(h=>h.trim());l[d]=f}),l[t]=`${r}px`;const c=Object.entries(l).map(([u,d])=>`${u}: ${d}`).join("; ");s.setAttribute("style",c)}}),n.innerHTML}function Zp(e,t){const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");o&&(o.innerHTML=t)}}),r.innerHTML}function Jp(e,t){const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");if(o){const s=o.getAttribute("style")||"",a=s.split(";").map(l=>l.trim()).filter(l=>l);if(a.some(l=>l.startsWith("color"))){const l=a.map(c=>c.startsWith("color")?`color: ${t};`:c);o.setAttribute("style",l.join("; "))}else o.setAttribute("style",s?`${s} color: ${t};`:`color: ${t};`)}}}),r.innerHTML}function eg(e,t){const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");if(o){const s=o.getAttribute("style")||"",a=s.split(";").map(l=>l.trim()).filter(l=>l);if(a.some(l=>l.startsWith("font-size"))){const l=a.map(c=>c.startsWith("font-size")?`font-size: ${t}px;`:c);o.setAttribute("style",l.join("; "))}else o.setAttribute("style",s?`${s} font-size: ${t}px;`:`font-size: ${t}px;`)}}}),r.innerHTML}function tg(e,t){if(typeof t!="boolean")throw new Error("Invalid isBold value: must be a boolean");const r=t?"bold":"normal",n=document.createElement("div");return n.innerHTML=e,n.querySelectorAll("tr").forEach(i=>{const o=i.querySelector("td:first-child");if(o){const s=o.querySelector("div");if(s){const a=s.getAttribute("style")||"",l=a.split(";").map(c=>c.trim()).filter(c=>c);if(l.some(c=>c.startsWith("font-weight"))){const c=l.map(u=>u.startsWith("font-weight")?`font-weight: ${r};`:u);s.setAttribute("style",c.join("; "))}else s.setAttribute("style",a?`${a} font-weight: ${r};`:`font-weight: ${r};`)}}}),n.innerHTML}function rg(e,t){if(typeof t!="boolean")throw new Error("Invalid isItalic value: must be a boolean");const r=t?"italic":"normal",n=document.createElement("div");return n.innerHTML=e,n.querySelectorAll("tr").forEach(i=>{const o=i.querySelector("td:first-child");if(o){const s=o.querySelector("div");if(s){const a=s.getAttribute("style")||"",l=a.split(";").map(c=>c.trim()).filter(c=>c);if(l.some(c=>c.startsWith("font-style"))){const c=l.map(u=>u.startsWith("font-style")?`font-style: ${r};`:u);s.setAttribute("style",c.join("; "))}else s.setAttribute("style",a?`${a} font-style: ${r};`:`font-style: ${r};`)}}}),n.innerHTML}function ng(e,t){if(typeof t!="boolean")throw new Error("Invalid shouldUnderline value: must be a boolean");const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");if(o){const s=o.getAttribute("style")||"",a=s.split(";").map(d=>d.trim()).filter(d=>d);let l="none";const c=a.findIndex(d=>d.startsWith("text-decoration"));if(c!==-1){const d=a[c].match(/^text-decoration\s*:\s*(.*)$/);d&&(l=d[1].trim())}let u;t?l.includes("line-through")?u="underline line-through":u="underline":l.includes("line-through")?u="line-through":u="none",c!==-1?(a[c]=`text-decoration: ${u};`,o.setAttribute("style",a.join("; "))):o.setAttribute("style",s?`${s} text-decoration: ${u};`:`text-decoration: ${u};`)}}}),r.innerHTML}function ig(e,t){if(typeof t!="boolean")throw new Error("Invalid shouldStrikethrough value: must be a boolean");const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");if(o){const s=o.getAttribute("style")||"",a=s.split(";").map(d=>d.trim()).filter(d=>d);let l="none";const c=a.findIndex(d=>d.startsWith("text-decoration"));if(c!==-1){const d=a[c].match(/^text-decoration\s*:\s*(.*)$/);d&&(l=d[1].trim())}let u;t?l.includes("underline")?u="underline line-through":u="line-through":l.includes("underline")?u="underline":u="none",c!==-1?(a[c]=`text-decoration: ${u};`,o.setAttribute("style",a.join("; "))):o.setAttribute("style",s?`${s} text-decoration: ${u};`:`text-decoration: ${u};`)}}}),r.innerHTML}function og(e,t){if(!e)return!1;const r=e.closest("table");return r?r.classList.contains(t):!1}function sg(e){return!e||!(e instanceof Node)?null:document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:t=>t.nodeValue?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}).nextNode()}function ag(e){if(!e||!(e instanceof Node))return null;const t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:i=>i.nodeValue?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let r=null,n;for(;n=t.nextNode();)r=n;return r}function lg(e){if(!e||!(e instanceof HTMLElement))return"inside";const t=window.getSelection();if(!t||t.rangeCount===0)return"inside";const r=t.getRangeAt(0);if(!r.collapsed)return"inside";let{startContainer:n,startOffset:i}=r;if(n===e)return i===0?"start":i===e.childNodes.length?"end":"inside";const o=sg(e),s=ag(e);let a=n;return a&&a.nodeType===Node.ELEMENT_NODE&&(a=a.childNodes[0]),o&&a===o&&i===0?"start":s&&n===s&&(i===s?.nodeValue?.length||i===s?.nodeValue?.trim().length)?"end":"inside"}function Pl(e){const t=e.cloneNode(!0),r=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null);let n;for(;n=r.nextNode();)n.nodeValue="";return t}function Mo(e){let t="";for(const r of e.attributes)t+=` ${r.name}="${r.value}"`;return t}function cg(e,t){const r=e.closest(`table.${t}`);if(!r)return null;const n=r.querySelector("tbody"),i=n?n.innerHTML.trim():r.innerHTML.trim(),o=e.closest("tr");if(!o)return{rowHtml:i,firstCellText:"",secondCellText:"",firstCellHtmlNoText:"",secondCellHtmlNoText:"",secondCellWrapperHtml:"",secondCellInnerDivHtml:"",wrappedSecondCellHtml:"",secondCellInnerDivWrapperHtml:"",secondCellTextHTML:""};const s=o.querySelectorAll("td"),a=s[0]||null,l=s[1]||null,c=a?a.textContent.trim():"",u=l?l.textContent.trim():"",d=l?l.innerHTML.trim():"",f=a?Pl(a).outerHTML:"",h=l?Pl(l).outerHTML:"",g=l?`<td${Mo(l)}></td>`:"",y=l?l.querySelector("div"):null;return{rowHtml:i,firstCellText:c,secondCellText:u,firstCellHtmlNoText:f,secondCellHtmlNoText:h,secondCellWrapperHtml:g,secondCellInnerDivHtml:y?y.outerHTML:"",wrappedSecondCellHtml:l&&y?`<td${Mo(l)}>${y.outerHTML}</td>`:"",secondCellInnerDivWrapperHtml:y?`<div${Mo(y)}></div>`:"",secondCellTextHTML:d}}function Un(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}function ug(e,t){const r=document.createElement("template");r.innerHTML=e;const n=r.content.firstElementChild;if(!n||n.tagName.toLowerCase()!=="td")return e;const i=n.querySelector("div");return i?i.textContent=Un(t)||" ":n.insertAdjacentText("afterbegin",Un(t)),n.outerHTML}function dg(e){const t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll("editor").forEach(r=>{r.replaceWith(...Array.from(r.childNodes))}),t.content.querySelectorAll('[em-edit="active"]').forEach(r=>{r.removeAttribute("em-edit")}),t.innerHTML}function fg(e){const t=window.getSelection();if(!t||!t.rangeCount)return null;const r=t.getRangeAt(0);if(!e.contains(r.startContainer))return null;const n=document.createRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.toString(),o=document.createRange();return o.selectNodeContents(e),o.setStart(r.startContainer,r.startOffset),{beforeCursorPosition:i,afterCursorPosition:o.toString()}}function hg(e,t){const r=document.createElement("template");return r.innerHTML=e,r.content.querySelectorAll(`div.${t}`).forEach(n=>{const i=n.closest("tr");i&&i.remove()}),r.innerHTML}function mg(e,t,r,n=!0){const i=document.createElement("template");i.innerHTML=e.trim();const o=i.content.querySelector(`div.${r}`);if(o){const s=o.closest("tr");if(s){const a=n?"beforebegin":"afterend";s.insertAdjacentHTML(a,t)}}return i.innerHTML}function pg(e){const t=/^(\s|&nbsp;)+|(\s|&nbsp;)+$/g,r=e.querySelectorAll("tr"),n=[];return r.forEach(i=>{const o=i.querySelectorAll("td");if(o.length>=2){const s=o[0].querySelector("div"),a=o[1].querySelector("div, editor"),l=s?s.textContent.trim():"";let c="";if(a)if(a.classList.contains("em-text")){const u=a.querySelector("div");c=u?u.innerHTML:""}else c=a.innerHTML;c=c.replace(t,""),n.push({cellOneText:l,cellTwoText:c})}}),n}function gg(e){let t=1;return e.map(r=>{if(r.cellOneText&&/^\d+\.$/.test(r.cellOneText.trim())){const i={...r,cellOneText:`${t}.`};return t++,i}if(!r.cellOneText||/^\s*$/.test(r.cellOneText))return{...r};const n={...r,cellOneText:`${t}.`};return t++,n})}function bg(e,t){if(typeof e!="string")return"";const r=document.createElement("template");r.innerHTML=e.toString().trim();const n=r.content.querySelector("table");return n?(n.querySelectorAll("tr").forEach((i,o)=>{if(o>=t.length)return;const s=i.querySelectorAll("td");if(s.length<2)return;const a=s[0].querySelector("div");a&&(a.textContent=Un(t[o].cellOneText));const l=s[1].querySelector("div");l&&(l.textContent=Un(t[o].cellTwoText))}),n.outerHTML):e}function yg(e){return e.map(t=>({...t,cellOneText:t.cellOneText===""?" ":t.cellOneText,cellTwoText:t.cellTwoText===""?" ":t.cellTwoText}))}function vg(e){if(!Array.isArray(e)||e.length===0)return e;const t=" ",r=e.map(i=>{if(!i.cellOneText)return i;let o=i.cellOneText.trim();return o.endsWith(t)||(o+=t),{...i,cellOneText:o}}),n=Math.max(...r.map(i=>i.cellOneText?i.cellOneText.length:0));return r.map(i=>{if(!i.cellOneText)return i;let o=i.cellOneText;for(;o.length<n;)o+=t;return{...i,cellOneText:o}})}function Eg(e,t,r,n){const i=new DOMParser().parseFromString(e,"text/html"),o=i.querySelector(`div.${t}`);if(!o)return e;const s=o.closest("tr");if(!s)return e;const a=n==="ArrowUp"?s.previousElementSibling:s.nextElementSibling;if(a&&a.tagName==="TR"){const c=a.querySelectorAll("td")[1]||null;if(c){const u=c.querySelector("div");u&&u.classList.add(r)}}else o.classList.add(r);const l=i.querySelector("table");return l?l.outerHTML:e}function _g(e){const t=window.getSelection();if(!t||!t.rangeCount)return null;const r=t.getRangeAt(0);if(!e.contains(r.startContainer))return null;const n=document.createRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.cloneContents(),o=document.createRange();o.selectNodeContents(e),o.setStart(r.startContainer,r.startOffset);const s=o.cloneContents();function a(l){const c=document.createElement("div");return c.appendChild(l),c.childNodes.length===1&&c.firstChild.nodeType===Node.ELEMENT_NODE?c.firstChild.innerHTML:c.innerHTML}return{beforeHTML:a(i),afterHTML:a(s)}}function Sg(e,t,r,n){const i=e.closest(`table.${t}`)||e.closest(`table.${r}`);i&&i.querySelectorAll("tr").forEach(o=>{const s=o.querySelector("td:nth-child(2)");if(!s)return;const a=s.querySelectorAll("div, strong");if(a.length===0){const l=document.createElement("div");l.innerHTML="&nbsp;",s.appendChild(l)}else a.forEach(l=>{let c=l.innerHTML.trim();!c||c.replace(n,"")===""?l.innerHTML="&nbsp;":(c=c.replace(n,""),c.endsWith("&nbsp;")||(c+="&nbsp;"),c=c.replace(/&nbsp;+$/,"&nbsp;"),l.innerHTML=c)})})}function wg(e){const t=`<table><tbody><tr>${e}</tr></tbody></table>`,r=new DOMParser().parseFromString(t,"text/html"),n=r.querySelector("div");return n&&(n.classList.add("remove-new-editor-element"),n.innerHTML.trim()?n.innerHTML+="&nbsp;":n.innerHTML="&nbsp;"),r.querySelector("td")?.outerHTML||""}function Cg(e,t){const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelectorAll("td");if(i.length>1){const o=i[1],s=(o.getAttribute("class")||"").split(" ").map(l=>l.trim()).filter(l=>l!=="");s.includes(t)||s.push(t);const a=s.join(" ");o.setAttribute("class",a)}}),r.innerHTML}function ye(e){if(Ag(e))return Tg(e)?e.trim():kg(e)}var Nl={RGB:/^rgba?\s*\(\s*(?<r>\d+)\s*,\s*(?<g>\d+)\s*,\s*(?<b>\d+)\s*(?:,\s*(?<a>(?:0?\.)?\d+)\s*)?\)/i,HEX:/^\s*#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})\s*$/i},Ag=e=>typeof e=="string"&&e.trim()!=="",Tg=e=>Nl.HEX.test(e);function kg(e){const t=Nl.RGB.exec(e)?.groups;if(!t)return;const r=Lg(t);return xg(r)}var Lg=e=>({r:Ro(e.r),g:Ro(e.g),b:Ro(e.b),a:Og(e.a)}),Ro=e=>parseInt(e||"0",10),Og=e=>parseFloat(e||"1"),xg=e=>`#${Do(e.r)}${Do(e.g)}${Do(e.b)}`,Do=e=>e.toString(16).padStart(2,"0"),Pg=class extends Z{constructor(...e){super(...e),k(this,"_transforms",[]),k(this,"_byAttribute",new Map)}register(e){this._transforms.push(e);for(const t of e.attributes){const r=t.toLowerCase(),n=this._byAttribute.get(r);n?n.push(e):this._byAttribute.set(r,[e])}return{dispose:()=>this._remove(e)}}_remove(e){const t=this._transforms.indexOf(e);if(t!==-1){this._transforms.splice(t,1);for(const r of e.attributes){const n=r.toLowerCase(),i=this._byAttribute.get(n);if(!i)continue;const o=i.indexOf(e);o!==-1&&i.splice(o,1),i.length||this._byAttribute.delete(n)}}}get isEmpty(){return this._transforms.length===0}handles(e){return this._byAttribute.has(e.toLowerCase())}get attributes(){return[...this._byAttribute.keys()]}render(e,t){return this._run("render",e,t)}serialize(e,t){return this._run("serialize",e,t)}_run(e,t,r){const n=this._byAttribute.get(r.attribute.toLowerCase());if(!n?.length)return t;const i=e==="render"?n:[...n].reverse();let o=t;for(const s of i){if(o===null)break;const a=e==="render"?s.render?.(o,r):s.serialize?.(o,r);a!==void 0&&(o=a)}return o}dispose(){this._transforms.length=0,this._byAttribute.clear(),super.dispose()}},$r;function Ng(e){const t=$r;return $r=e,{dispose:()=>{$r===e&&($r=t)}}}function Io(){return $r}var qn=new WeakMap;function Mg(e,t,r){const n=qn.get(e);n?n.set(t.toLowerCase(),r):qn.set(e,new Map([[t.toLowerCase(),r]]))}function Rg(e,t){const r=qn.get(e);r?.size&&qn.set(t,new Map(r))}function Ml(e,t,r){const n=e.tagName.toLowerCase();for(const i of t.attributes){if(!e.hasAttribute(i))continue;const o=e.getAttribute(i)??"",s=t.serialize(o,{element:e,tag:n,attribute:i,stage:r});s===null?e.removeAttribute(i):s!==o&&e.setAttribute(i,s)}}function Bo(e,t={}){const r=t.pipeline??Io(),n=t.stage??"build";let i=e;if(t.clone&&(i=e.cloneNode(!0),r&&!r.isEmpty&&Rl(e,i)),!r||r.isEmpty)return i;i instanceof Element&&Ml(i,r,n);const o=i.querySelectorAll?.("*");if(o)for(const s of o)Ml(s,r,n);return i}function Dg(e,t={}){const r=t.pipeline??Io();return!r||r.isEmpty?e.outerHTML:Bo(e,{...t,pipeline:r,clone:!0}).outerHTML}function Rl(e,t){Rg(e,t);const r=e.childNodes,n=t.childNodes;for(let i=0;i<r.length&&i<n.length;i++)Rl(r[i],n[i])}function Fo(e,t,r,n={}){const i=jo(e,t,r,{stage:"settings",...n});i===null?e.removeAttribute(t):e.setAttribute(t,i)}function jo(e,t,r,n={}){const i=n.pipeline??Io();if(!i||!i.handles(t))return r;const o=e?.tagName.toLowerCase()??"",s=i.render(r,{element:e,tag:o,attribute:t,stage:n.stage??"build"});if(s!==r){const a=n.owner??e;a&&Mg(a,t,r)}return s}var Dl=class{constructor(e){k(this,"_voidElements",void 0),this._voidElements=new Set(e)}isVoidElement(e){return this._voidElements.has(e.toLowerCase())}},Ce=(function(e){return e[e.StartCommentTag=0]="StartCommentTag",e[e.Comment=1]="Comment",e[e.EndCommentTag=2]="EndCommentTag",e[e.StartTagOpen=3]="StartTagOpen",e[e.StartTagClose=4]="StartTagClose",e[e.StartTagSelfClose=5]="StartTagSelfClose",e[e.StartTag=6]="StartTag",e[e.EndTagOpen=7]="EndTagOpen",e[e.EndTagClose=8]="EndTagClose",e[e.EndTag=9]="EndTag",e[e.DelimiterAssign=10]="DelimiterAssign",e[e.AttributeName=11]="AttributeName",e[e.AttributeValue=12]="AttributeValue",e[e.StartDoctypeTag=13]="StartDoctypeTag",e[e.Doctype=14]="Doctype",e[e.EndDoctypeTag=15]="EndDoctypeTag",e[e.Content=16]="Content",e[e.Whitespace=17]="Whitespace",e[e.Unknown=18]="Unknown",e[e.Script=19]="Script",e[e.Styles=20]="Styles",e[e.EOS=21]="EOS",e[e.AdvancedStart=100]="AdvancedStart",e[e.AdvancedEnd=101]="AdvancedEnd",e})({}),Ig=class{constructor(e,t){k(this,"source",void 0),k(this,"len",void 0),k(this,"position",void 0),this.source=e,this.len=e.length,this.position=t}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){let t;if(this.position+e.length>this.source.length)return!1;for(t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceIfRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index+t[0].length,t[0]):""}advanceUntilRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let t=0;for(;t<e.length&&this.source.charCodeAt(this.position+t)===e[t];t++);if(t===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar(e=>e===Vg||e===Wg||e===$g||e===zg||e===Hg)>0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},Il=33,Xt=45,Gn=60,Ye=62,$o=47,Bg=61,Fg=34,jg=39,$g=10,Hg=13,zg=12,Vg=32,Wg=9,Ug={"text/x-handlebars-template":!0,"text/html":!0};function qg(e,t=0,r=0,n=!1){const i=new Ig(e,t);let o=r,s=0,a=18,l,c,u,d,f;function h(){return i.advanceIfRegExp(/^[_:a-zA-Z][_:\w-.\d]*/).toLowerCase()}function g(){return i.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()}function y(C,O,E){return a=O,s=C,l=E,O}function A(){const C=i.pos(),O=o,E=L();return E!==21&&C===i.pos()&&!(n&&(E===4||E===8))?(i.advance(1),y(C,18)):E}function L(){const C=i.pos();if(i.eos())return y(C,21);let O;switch(o){case 6:return i.advanceIfChars([Xt,Xt,Ye])?(o=0,y(C,2)):(i.advanceUntilChars([Xt,Xt,Ye]),y(C,1));case 3:return i.advanceIfChar(Ye)?(o=0,y(C,15)):(i.advanceUntilChar(Ye),y(C,14));case 0:if(i.advanceIfChar(Gn)){if(!i.eos()&&i.peekChar()===Il){if(i.advanceIfChars([Il,Xt,Xt]))return o=6,y(C,0);if(i.advanceIfRegExp(/^!doctype/i))return o=3,y(C,13)}return i.advanceIfChar($o)?(o=2,y(C,7)):(o=1,y(C,3))}return i.advanceUntilChar(Gn),y(C,16);case 2:return h().length>0?(o=5,y(C,9)):i.skipWhitespace()?y(C,17,"Tag name must directly follow the open bracket."):(o=5,i.advanceUntilChar(Ye),C<i.pos()?y(C,18,"End tag name expected."):L());case 5:if(i.skipWhitespace())return y(C,17);if(i.advanceIfChar(Ye))return o=0,y(C,8);if(n&&i.peekChar()===Gn)return o=0,y(C,8,"Closing bracket missing.");O="Closing bracket expected.";break;case 1:return u=h(),f=void 0,d=void 0,u.length>0?(c=!1,o=4,y(C,6)):i.skipWhitespace()?y(C,17,"Tag name must directly follow the open bracket."):(o=4,i.advanceUntilChar(Ye),C<i.pos()?y(C,18,"Start tag name expected."):L());case 4:return i.skipWhitespace()?(c=!0,y(C,17)):c&&(d=g(),d.length>0)?(o=9,c=!1,y(C,11)):i.advanceIfChars([$o,Ye])?(o=0,y(C,5)):i.advanceIfChar(Ye)?(u==="script"?f&&Ug[f]?o=0:o=7:u==="style"?o=8:o=0,y(C,4)):n&&i.peekChar()===Gn?(o=0,y(C,4,"Closing bracket missing.")):(i.advance(1),y(C,18,"Unexpected character in tag."));case 9:return i.skipWhitespace()?(c=!0,y(C,17)):i.advanceIfChar(Bg)?(o=10,y(C,10)):(o=4,L());case 10:if(i.skipWhitespace())return y(C,17);let E=i.advanceIfRegExp(/^[^\s"'`=<>]+/);if(E.length>0)return i.peekChar()===Ye&&i.peekChar(-1)===$o&&(i.goBack(1),E=E.substr(0,E.length-1)),d==="type"&&(f=E),o=4,c=!1,y(C,12);const m=i.peekChar();return m===jg||m===Fg?(i.advance(1),i.advanceUntilChar(m)&&i.advance(1),d==="type"&&(f=i.getSource().substring(C+1,i.pos()-1)),o=4,c=!1,y(C,12)):(o=4,c=!1,L());case 7:let b=1;for(;!i.eos();){const S=i.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(S.length===0)return i.goToEnd(),y(C,19);if(S==="<!--")b===1&&(b=2);else if(S==="-->")b=1;else if(S[1]!=="/")b===2&&(b=3);else if(b===3)b=2;else{i.goBack(S.length);break}}return o=0,C<i.pos()?y(C,19):L();case 8:return i.advanceUntilRegExp(/<\/style/i),o=0,C<i.pos()?y(C,20):L()}return i.advance(1),o=0,y(C,18,O)}return{scan:A,getTokenType:()=>a,getTokenOffset:()=>s,getTokenLength:()=>i.pos()-s,getTokenEnd:()=>i.pos(),getTokenText:()=>i.getSource().substring(s,i.pos()),getScannerState:()=>o,getTokenError:()=>l}}function Gg(e,t){return t||e.start!==e.end?`<!DOCTYPE${e.content}>`:""}function Xg(e,t){const r=`<!DOCTYPE${e.content}>`;return e.start=t,e.endTagStart=e.startTagEnd=e.end=t+r.length,r}function Yg(e,t){return t||e.start!==e.end?`<!--${e.content}-->`:""}function Kg(e,t){const r=`<!--${e.content}-->`;return e.start=t,e.startTagEnd=t+4,e.end=t+r.length,e.endTagStart=e.end-3,r}var Ho=new Set(["area","br","col","embed","hr","img","input","link","meta","param","vk-snippet-end"]);function Qg(e){return e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(t,r)=>r.toUpperCase())}var Bl=Object.create(null);function Zg(e,t){const r=Bl[e]||(Bl[e]=Object.create(null));let n=r[t];if(typeof n!="boolean"){const i=document.createElement(e)[Qg(t)];n=r[t]=typeof i<"u"&&typeof i!="boolean"}return n}function zo(e,t){if(e.start===e.end||t)return"";switch(e.type){case I.ELEMENT:return Wo(e,t);case I.ROOT:return[...e.children].map(r=>zo(r,t)).join("");case I.DOCTYPE:return Gg(e,t);case I.COMMENT:return Yg(e,t);default:return e.content||""}}function Vo(e,t=0){if(e.start===e.end)return"";switch(e.type){case I.ELEMENT:return eb(e,t);case I.ROOT:return jl(e,t);case I.DOCTYPE:return Xg(e,t);case I.COMMENT:return Kg(e,t);default:return e.start=e.startTagEnd=t,e.end=e.endTagStart=t+(e.content?.length||0),e.content||""}}function Fl(e){const t=e.tag?.toLowerCase();let r="";if(t){const n=e.attributes;if(n){const i=Object.keys(n);for(const o of i){const s=n[o]===null?"":n[o];typeof s=="string"&&(r+=s===""&&o!=="em"&&!Zg(t,o)?` ${o}`:` ${o}="${s.replaceAll('"',"'")}"`)}}}return r}function Jg(e,t){let r="";if(e.startTagEnd!==e.endTagStart||t)for(const n of e.children)r+=zo(n);return r}function jl(e,t){let r="";if(e.startTagEnd!==e.endTagStart)for(const n of e.children)r+=Vo(n,t+r.length);return r}function $l(e,t){if(e.start!==e.startTagEnd||t){const r=e.tag?.toLowerCase()||"div",n=Fl(e);return r==="vk-snippet-end"?`<${r}${n}/>`:`<${r}${n}>`}return""}function Hl(e,t){return t||e.endTagStart!==e.end?`</${e.tag?.toLowerCase()||"div"}>`:""}function Wo(e,t,r=!0){const n=e.tag?.toLowerCase()||"div",i=$l(e,t);if(Ho.has(n))return i;{const o=Hl(e,t);return`${i}${r?Jg(e,t):""}${o}`}}function eb(e,t){const r=e.tag?.toLowerCase()||"div",n=$l(e);if(e.start=t,e.startTagEnd=t+n.length,Ho.has(r)){e.endTagStart=e.startTagEnd,e.end=e.startTagEnd;const i=o=>{for(const s of o.children)s.start=s.startTagEnd=s.endTagStart=s.end=o.end,i(s)};return i(e),n}else{const i=jl(e,e.startTagEnd);e.endTagStart=e.startTagEnd+i.length;const o=Hl(e);return e.end=e.endTagStart+o.length,`${n}${i}${o}`}}function Uo(e,t){let r=0,n=e.length;if(n===0)return 0;for(;r<n;){const i=Math.floor((r+n)/2);t(e[i])?n=i:r=i+1}return r}var I=(function(e){return e[e.HTML=0]="HTML",e[e.ELEMENT=1]="ELEMENT",e[e.ROOT=2]="ROOT",e[e.COMMENT=3]="COMMENT",e[e.DOCTYPE=4]="DOCTYPE",e[e.ADVANCED=5]="ADVANCED",e})({}),Xn=e=>e.type===0?e.start-1:e.start,tb=e=>e.type===0?e.end+1:e.end,Oe=class Vm{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}get root(){return this.parent?this.parent.root:this}constructor(t,r,n,i){k(this,"start",void 0),k(this,"end",void 0),k(this,"children",void 0),k(this,"parent",void 0),k(this,"content",void 0),k(this,"type",1),k(this,"tag",void 0),k(this,"closed",!1),k(this,"startTagEnd",void 0),k(this,"endTagStart",void 0),k(this,"attributes",void 0),k(this,"createdBy",void 0),k(this,"isDirty",void 0),this.start=t,this.end=r,this.children=n,this.parent=i}isSameTag(t){return this.tag===void 0?t===void 0:t!==void 0&&this.tag.length===t.length&&this.tag.toLowerCase()===t}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(t){const r=Uo(this.children,n=>t<=Xn(n))-1;if(r>=0){const n=this.children[r];if(t>Xn(n)){if(t<n.end)return n.findNodeBefore(t);const i=n.lastChild;return i&&i.end===n.end?n.findNodeBefore(t):n}}return this}findNodeAt(t){const r=Uo(this.children,n=>t<=Xn(n))-1;if(r>=0){const n=this.children[r];if(t>=Xn(n)&&t<=tb(n))return n.findNodeAt(t)}return this}find(t){if(t(this))return this;for(const r of this.children){const n=r.find(t);if(n)return n}}closest(t){let r=this;do if(t(r))return r;while(r=r.parent)}parents(){return this.parent?[this.parent,...this.parent.parents()]:[]}closestFromRoot(t,r=!0){const n=r?[this,...this.parents()]:this.parents();for(let i=n.length-1;i>=0;i--){const o=n[i];if(t(o))return o}}contains(t){return!!t.closest(r=>r===this)}clone(t=this.parent,r=this.start,n=!0){const i=this.start-r,o=new Vm(r,this.end-i,[],t);return o.children=n?this.children.map(s=>s.clone(o,s.start-i)):[],o.attributes={...this.attributes},o.closed=this.closed,o.content=this.content,o.startTagEnd=this.startTagEnd,o.endTagStart=this.endTagStart,o.tag=this.tag,o.type=this.type,o}};function rb(e){if(typeof e=="string"){const t=e.startsWith("'")||e.startsWith('"')?1:0,r=e.endsWith("'")||e.endsWith('"')?e.length-1:e.length;return e.substring(t,r)}return e}var zl=class{constructor(e,t){k(this,"text",void 0),k(this,"type",void 0),k(this,"node",void 0),k(this,"replaces",void 0),this.text=e,this.type=t}get hasNode(){return!!this.node}addReplace(e){this.replaces?.push(e)}start(e,t,r){if(!this.node){const n=this.node=new Oe(e,this.text.length,[],r);n.type=this.type,n.startTagEnd=t,this.replaces=[]}}finish(e,t){const r=this.replaces,n=this.node,i=e+(t||0);if(r){for(const o of r){const s=o.parent;if(!s)throw new Error("parent not defined");const a=s.children.indexOf(o);s.children.splice(a,1)}this.replaces=void 0}if(n){const o=n.parent;if(!o)throw new Error("parent not defined");o.children.push(n),n.closed=t!==void 0,n.endTagStart=e,n.end=i,n.content=this.text.substring(n.startTagEnd,e),this.node=void 0}}},Vl=class{constructor(e){k(this,"dataManager",void 0),this.dataManager=e}parse(e,t=[]){const r=qg(e,void 0,void 0,!0),n=new Oe(0,e.length,[],void 0);n.type=I.ROOT;let i=n,o=-1,s,a=null,l=r.scan();const c=()=>{if(!i.tag){const g=i.parent.children,y=g[g.length-2],A=e.substring(i.start,i.end);y?.type===I.HTML?(y.content=(y.content||"")+A,y.end=i.end,g.splice(g.length-1,1)):(i.type=I.HTML,i.content=A,i.children=[]),i.type=I.HTML}i=i.parent},u=new zl(e,I.COMMENT),d=new zl(e,I.DOCTYPE),f=g=>{i.children.push(g)};for(;l!==Ce.EOS;){switch(l){case Ce.StartDoctypeTag:d.start(r.getTokenOffset(),r.getTokenEnd(),i);break;case Ce.EndDoctypeTag:{const C=i.lastChild,O=d.node;if(!O)throw new Error("");const E=C?C.end:i.startTagEnd!==void 0?i.startTagEnd:i.start;if(E!==O.start){const m=e.substring(E,O.start);if(m){const b=new Oe(E,O.start,[],i);b.type=I.HTML,b.content=m,f(b)}}d.finish(r.getTokenOffset(),r.getTokenLength());break}case Ce.StartCommentTag:u.start(r.getTokenOffset(),r.getTokenEnd(),i);break;case Ce.EndCommentTag:{const C=i.lastChild,O=u.node;if(!O)throw new Error("");const E=C?C.end:i.startTagEnd!==void 0?i.startTagEnd:i.start;if(E!==O.start){const m=e.substring(E,O.start);if(m){const b=new Oe(E,O.start,[],i);b.type=I.HTML,b.content=m,f(b)}}u.finish(r.getTokenOffset(),r.getTokenLength());break}case Ce.StartTagOpen:const g=i.lastChild,y=new Oe(r.getTokenOffset(),e.length,[],i),A=g?g.end:i.startTagEnd!==void 0?i.startTagEnd:i.start;if(A!==y.start){const C=e.substring(A,y.start);if(C){const O=new Oe(A,y.start,[],i);O.type=I.HTML,O.content=C,f(O)}}f(y),i=y;break;case Ce.StartTag:i.tag=r.getTokenText();break;case Ce.StartTagClose:i.parent&&(i.end=r.getTokenEnd(),r.getTokenLength()?(i.startTagEnd=r.getTokenEnd(),i.tag&&this.dataManager.isVoidElement(i.tag)&&(i.closed=!0,c())):c());break;case Ce.StartTagSelfClose:i.parent&&(i.closed=!0,i.end=r.getTokenEnd(),i.startTagEnd=r.getTokenEnd(),c());break;case Ce.EndTagOpen:o=r.getTokenOffset(),s=void 0;break;case Ce.EndTag:s=r.getTokenText().toLowerCase();break;case Ce.EndTagClose:let L=i;for(;!L.isSameTag(s)&&L.parent;)L=L.parent;if(L.parent){const C=i.lastChild,O=C?C.end:i.startTagEnd===void 0?i.start:i.startTagEnd;if(O!==o){const E=e.substring(O,o);if(E){const m=new Oe(O,o,[],i);m.type=I.HTML,m.content=E,f(m)}}for(;i!==L;)i.end=o,i.closed=!1,c();i.closed=!0,i.endTagStart=o,i.end=r.getTokenEnd(),c()}break;case Ce.AttributeName:{a=r.getTokenText();let C=i.attributes;C||(i.attributes=C={}),C[a]=null;break}case Ce.AttributeValue:{const C=r.getTokenText(),O=i.attributes;O&&a&&(O[a]=rb(C),a=null);break}}l=r.scan()}for(;i.parent;)i.end=e.length,i.closed=!1,c();u.hasNode,u.finish(e.length);const h=n.lastChild?.end||0;if(h<e.length){const g=e.substring(h);if(g){const y=new Oe(h,e.length,[],n);y.type=I.HTML,y.content=g,f(y)}}return{roots:n.children,findNodeBefore:n.findNodeBefore.bind(n),findNodeAt:n.findNodeAt.bind(n)}}},$N=new Vl(new Dl(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"])),nb=new Dl(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"]),ib=new Vl(nb);function Yt(e){return ib.parse(e)}function qo(e){if(e){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",e),t.firstChild||document.createTextNode("")}else return document.createTextNode("")}var Kt,Tt;function ob(e){const t=Kt;return Kt=e,()=>{Kt===e&&(Kt=t)}}function sb(e){const t=Tt;return Tt=e,()=>{Tt===e&&(Tt=t)}}function Wl(e,t,r){return Kt?Kt(e,t,r):r}function ab(){return Tt!==void 0}function Ul(e,t,r){return Tt?Tt(e,t,r):r}var Go;function lb(){return Go||(Go=document.implementation.createHTMLDocument("")),Go}function cb(e,t){let r;switch(t?.toLowerCase()){case"tr":r=e.createElement("table");break;case"td":r=e.createElement("tr");break;case"head":case"body":r=e.createElement("html");break;case"documenttype":case"html":{const n=e.implementation.createHTMLDocument();for(const i of[...n.childNodes])i.remove();return n}default:r=e.createElement("div")}return r}var ub=new Set(["onclick","onload","onchange","onsubmit","onmouseover","onkeydown","onerror"]),db=new Set(["script","style","xmp"]);function fb(e,t){return!(t&&db.has(t.toLowerCase())||ub.has(e.toLowerCase()))}var hb=e=>{let t=e.indexOf("&");for(;t!==-1;){if(e.indexOf(";",t)!==-1)return!0;t=e.indexOf("&",t+1)}return!1};function ql(e,t,r){let n=e.tagName.toLowerCase();n==="html"&&(n="div");const i=`<${n} ${t}="${r}"/>`,o=cb(lb(),n);if(o instanceof Document)return;o.innerHTML=i;const s=o.querySelector(n);if(!s)throw new Error("targetElement is not defined");const a=s.getAttributeNode(t);a&&e.setAttributeNode(a.cloneNode())}function st(e,t,r){try{fb(t,e.tagName)&&!hb(r)?e.setAttribute(t,r):ql(e,t,r)}catch{ql(e,t,r)}}function Yn(e,t=!0){const r=e.content;switch(e.type){case I.ROOT:{const n=document.implementation.createHTMLDocument();for(const i of[...n.childNodes])n.removeChild(i);if(t)for(const i of e.children)n.appendChild(Yn(i));return n}case I.DOCTYPE:return new DOMParser().parseFromString(`<!DOCTYPE${e.content}>`,"text/html").doctype;case I.COMMENT:return document.createComment(r||"");case I.ELEMENT:if(e.tag){const n=document.createElement(e.tag);if(Object.defineProperty(n,"$$tagName",{enumerable:!1,configurable:!1,value:e.tag}),e.attributes)for(const i of e.attributeNames){const o=e.attributes[i];try{const s=Wl(n,i,typeof o=="string"?o:"");s!==null&&st(n,i,s)}catch{}}if(t)for(const i of e.children)n.appendChild(Yn(i));return n}return document.createTextNode("<");case I.HTML:return qo(r||"");default:throw new Error("unsupported node")}}function xe(e){return Yt(e).roots.map(t=>Yn(t))}function Gl(e,t,r){const n=xe(r);switch(t){case"afterend":e.after(...n);break;case"afterbegin":e.prepend(...n);break;case"beforeend":e.append(...n);break;case"beforebegin":e.before(...n)}}function $e(e,t){e.remove?.(t)}var Xo=ge("SandboxHtmlDocument"),Yo=ge("SandboxRemoteDocument"),Ko=ge("SandboxTextDocument"),Qo=ge("SandboxDocumentMapping"),Xl=ge("SandboxSyncCommit"),Yl=ge("SandboxLayoutProfile"),mb=ge("SandboxState"),Kl=ge("SandboxAttributePipeline"),Ql=ge("SandboxAmpService"),Zl=ge("SandboxImageReload"),Zo=ge("SandboxImageCache"),Jl=ge("SandboxFocus");function pb(e){const t=new Pg,r=Ng(t),n=ob((o,s,a)=>t.isEmpty?a:jo(o,s,a,{pipeline:t})),i=sb((o,s,a)=>t.isEmpty?a:t.serialize(a,{element:o,tag:o.tagName.toLowerCase(),attribute:s,stage:"apply"}));return e.inject(Kl,t),{pipeline:t,dispose(){i(),n(),r.dispose(),t.dispose(),$e(e,Kl)}}}function gb(e,t){if(!e)return;const{minify:r,cssbeautify:n,HTMLDocument:i}=t;let o=document.head.querySelector('style[em="styles"]'),s="";o?s=i.getInnerHtml(o):(o=document.createElement("style"),o.setAttribute("em","styles"),o=document.head.insertAdjacentElement("beforeend",o));const a=document.createElement("div");a.insertAdjacentHTML("afterbegin",e);let l=r(s+`
1
+ __useblocks__.define("js/discussHandlers.BuuVtU3Y.js",["require","exports","module","js/rolldown-runtime.BRlIiq3h.js"],function(Eo,_,IN){const F=Eo("./rolldown-runtime.BRlIiq3h.js");function Dr(e){"@babel/helpers - typeof";return Dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dr(e)}function Gm(e,t){if(Dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xm(e){var t=Gm(e,"string");return Dr(t)=="symbol"?t:t+""}function k(e,t,r){return(t=Xm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ml;ml=Symbol.toStringTag;var _o=class{constructor(){k(this,"_valuesMap",new Map),k(this,ml,"Storage")}getItem(e){const t=String(e);return this._valuesMap.has(e)?String(this._valuesMap.get(t)):null}setItem(e,t){this._valuesMap.set(String(e),String(t))}removeItem(e){this._valuesMap.delete(e)}clear(){this._valuesMap.clear()}key(e){if(arguments.length===0)throw new TypeError("Failed to execute 'key' on 'Storage': 1 argument required, but only 0 present.");return Array.from(this._valuesMap.keys())[e]}get length(){return this._valuesMap.size}};function pl(){const e=new _o;return new Proxy(e,{set:function(t,r,n){return typeof r=="string"&&_o.prototype.hasOwnProperty(r)?e[r]=n:typeof r=="string"&&e.setItem(r,String(n)),!0},get:function(t,r){if(typeof r=="string"){if(_o.prototype.hasOwnProperty(r)){const n=e[r];if(typeof n=="function"){const i=n;return(...o)=>i.apply(e,o)}return n}return e.getItem(r)}}})}function gl(){const e=pl(),t=pl();Object.defineProperty(window,"localStorage",{configurable:!0,enumerable:!0,get:()=>e}),Object.defineProperty(window,"sessionStorage",{configurable:!0,enumerable:!0,get:()=>t});let r=Object.create(null);Object.defineProperty(document,"cookie",{enumerable:!1,configurable:!0,get(){const n=[];for(var i in r)n.push(i+"="+r[i]);return n.join(";")},set(n){const i=n.indexOf("=");var o=n.substr(0,i),s=n.substring(i+1);return r[o]=s,o+"="+s}}),Object.defineProperty(document,"clearCookies",{enumerable:!1,configurable:!0,value:()=>r=Object.create(null)})}gl();function So(e,t){if(e===t)return!0;if(!e||!t||typeof e!="object"||typeof t!="object")return!1;const r=Array.isArray(e);if(r!==Array.isArray(t))return!1;if(r){const o=e,s=t;return o.length===s.length&&o.every((a,l)=>So(a,s[l]))}const n=Object.keys(e),i=Object.keys(t);return n.length!==i.length?!1:n.every(o=>Object.prototype.hasOwnProperty.call(t,o)&&So(e[o],t[o]))}function bl(e,t){const r={watch(n){let i,o=!1;return e.watch(s=>{const a=t(s);o&&So(i,a)||(i=a,o=!0,n(a))})},select(n){return bl(r,n)}};return r}function Ym(...e){let t=e[0],r=e.length>0;const n=new Set,i={get(){return r?t:void 0},set(o){t=o,r=!0;for(const s of Array.from(n))s(o)},watch(o){return n.add(o),r&&o(t),{dispose:()=>n.delete(o)}},select(o){return bl(i,o)}};return i}var Z=class zm{constructor(t=[]){k(this,"_inner",void 0),k(this,"_isDisposed",!1),this._inner=t}addDisposable(t){return this._inner.push(t),t instanceof zm&&t.addDispose(()=>{this.removeDisposable(t)}),t}addDispose(t){this.addDisposable({dispose:t})}removeDisposable(t){const r=this._inner.indexOf(t);r>=0&&this._inner.splice(r,1)}isDisposed(){return this._isDisposed}dispose(){if(!this._isDisposed){this._isDisposed=!0;for(const t of[...this._inner])t.dispose()}}};function wo(e){return`service_container_${e}`}var Ir=new Set,Co;function Km(){if(!Co)return;const e=new Error("getInstanceAsync"),t=Error;return typeof t.captureStackTrace=="function"&&t.captureStackTrace(e,yl.prototype.getInstanceAsync),e.stack}function Ao(e){Ir.delete(e)&&Co?.end(e)}var yl=class hl extends Z{_runCallbacks(t){this._injectCallbacks.forEach(r=>r(t))}constructor(t=null){super(),k(this,"_parent",void 0),k(this,"_injectCallbacks",[]),k(this,"_injections",Object.create(null)),k(this,"onInject",r=>(this._injectCallbacks.push(r),{dispose:()=>{const n=this._injectCallbacks.indexOf(r);n>=0&&this._injectCallbacks.splice(n,1)}})),this._parent=t,t&&this.addDisposable(t.onInject(r=>this._runCallbacks(r)))}inject(t,r){this._injections[t]=()=>r,this._runCallbacks(t)}injectFactory(t,r,n){const i=this._injections[t];let o=typeof i=="function"?i():i;const s=this._injections[t]=()=>(o=r(this,o),o);n&&s(),this._runCallbacks(t)}_find(t,r=!0){return this._injections[t]||r&&this._parent?._find(t)}_onInject(t,r,n=new Z){return n.addDisposable(this.onInject(i=>{t===i&&(n.dispose(),r(this.getInstance(i)))})),this._parent&&n.addDisposable(this._parent._onInject(t,r,n)),this.addDisposable(n),n}getInstance(t,r=!0){const n=this._find(t,r);if(typeof n=="function")return n()}getOrCreateInstance(t,r){const n=this._find(t);if(typeof n=="function")return n();const i=r(this);return this.inject(t,i),i}getInstanceAsync(t){const r=this._find(t);if(typeof r=="function")return Promise.resolve(r());const n=Km();return new Promise((i,o)=>{const s={id:String(t),startedAt:Date.now(),origin:n,container:this,reject:o};Ir.add(s),Co?.start(s),this._onInject(t,()=>{Ao(s),i(this.getInstance(t))})})}failPendingWaits(t){for(const r of Array.from(Ir))r.container===this&&(Ao(r),r.reject(t))}pendingWaits(){return[...Ir].filter(t=>t.container===this)}addService(t,r){const n=wo(t);this.injectFactory(n,(o,s=[])=>s.indexOf(r)<0?[...s,r]:s);const i=new Z;return i.addDispose(()=>{this.injectFactory(n,(o,s=[])=>s.filter(a=>a!==r))}),i}addServiceFactory(t,r,n){const i=wo(t);let o;this.injectFactory(i,(a,l=[])=>(o=r(a,o),o===void 0?l:l.indexOf(o)<0?[...l,o]:l),n);const s=new Z;return s.addDispose(()=>{this.injectFactory(i,(a,l=[])=>o===void 0?l:l.filter(c=>c!==o))}),s}getServices(t){const r=wo(t);return[...this.getInstance(r,!1)||[],...this._parent?.getServices(t)||[]]}createChild(){return new hl(this)}getOrCreateIsolatedContainer(t){return this.getOrCreateInstance(t,()=>{const r=this._parent?.getOrCreateIsolatedContainer(t);return new hl(r)})}remove(t){const r=this._injections;delete r[String(t)]}injectListenerCount(){return this._injectCallbacks.length}dispose(){for(const t of Array.from(Ir))t.container===this&&Ao(t);this._injections=Object.create(null),this._injectCallbacks=[],super.dispose()}};function To(e){return e.startsWith("__")?e:`__${e}__`}function Qm(e){if(typeof globalThis>"u")throw new Error("[di] globalThis is required for namespace container access.");const t=To(e),r=globalThis;return r[t]??(r[t]={})}function Zm(e){return e!=null&&typeof e=="object"&&typeof e.inject=="function"&&typeof e.getInstance=="function"}function Jm(e){if(e)return To(e);const t="useblocks".trim();if(!t)throw new Error("[di] REACT_APP_NAME is required for resolveContainer().");return To(t)}function ko(e){const t=Jm(e),r=Qm(t);if(Zm(r.container))return r.container;const n=new yl(null);return r.container=n,n}function ep(){let e=new Date().getTime(),t=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){let n=Math.random()*16;return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),(r==="x"?n:n&3|8).toString(16)})}function tp(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():ep()}function ge(e=tp()){return e}function vl(){return"iframe".trim()||"unknown"}function rp(e){if(typeof globalThis>"u")return;const t=vl(),r=globalThis[e]??{};globalThis[e]=r;const n=r.__diagnostics??(r.__diagnostics={}),i=n.diModuleEval??(n.diModuleEval={evalCount:0,records:[]});i.records.push({buildSource:t,timestamp:Date.now(),stack:new Error().stack}),i.evalCount+=1}function np(){const e="useblocks".trim();if(!e)throw new Error("[di] REACT_APP_NAME is required for DependencyResolver diagnostics.");return`__${e}__`}function ip(e,t){if(rp(t),typeof globalThis>"u")return e;const r=vl(),n=globalThis,i=n[t]=n[t]||{},o=i.__diagnostics=i.__diagnostics||{},s=o.dependencyResolver=o.dependencyResolver||{entries:[]},a={container:e,source:"packages/runtime-core/di/index.ts",buildSource:r,timestamp:Date.now(),stack:new Error().stack};return s.entries.push(a),e}var Bn;function op(){if(Bn)return Bn;const e=np();return Bn=ip(ko(e),e),Bn}var BN=new Proxy({},{get(e,t,r){const n=op(),i=Reflect.get(n,t,r);return typeof i=="function"?i.bind(n):i}}),sp=new Function("url","return import(url)");function ap(e){if(typeof e!="function")return!1;try{return Reflect.construct(String,[],e),!0}catch{return!1}}function lp(e){return typeof e=="object"&&e!==null&&"type"in e&&"url"in e}function cp(e){return e.type==="umd"||e.resolve==="registry"}function FN(e){return e}var up=class{constructor(e,t,r={}){k(this,"_context",void 0),k(this,"_pluginRegistry",void 0),k(this,"_options",void 0),k(this,"_map",new Map),k(this,"_optionsMap",new Map),k(this,"_readyMap",new Map),k(this,"_resolveMap",new Map),k(this,"_initializingPlugins",new Map),k(this,"_creatingPlugins",new Set),k(this,"_initializedPlugins",new Set),k(this,"_creationOrder",[]),k(this,"_lifecycleListeners",new Set),k(this,"_activated",!1),this._context=e,this._pluginRegistry=t,this._options=r}activate(){return this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}activateSync(){this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}onLifecycle(e){return this._lifecycleListeners.add(e),{dispose:()=>this._lifecycleListeners.delete(e)}}_emitLifecycle(e){for(const t of Array.from(this._lifecycleListeners))try{t(e)}catch{}}async _resolveEntry(e){if(typeof e=="string"||typeof e=="symbol"){const t=await this._pluginRegistry.getAsync(e);if(!t)throw new Error(`Plugin "${String(e)}" not registered.`);return{ctor:t}}if(typeof e=="function")return e.length===0?{ctor:await e()}:{ctor:e};if(Array.isArray(e)){const[t,r]=e;if(typeof t=="function")return{ctor:t,options:r};const n=await this._pluginRegistry.getAsync(t);if(!n)throw new Error(`Plugin "${String(t)}" not registered.`);return{ctor:n,options:r}}if(lp(e))return this._resolveDescriptor(e);throw new Error(`Unknown plugin entry format: ${JSON.stringify(e)}`)}async _resolveDescriptor(e){const t=e.resolve??(e.type==="umd"?"window":"module");if(cp(e)&&await this._options.ensureHostRuntimeReady?.(e),e.type==="esm"){const r=await sp(e.url);if(t==="module")return{ctor:r.default??r};if(t==="registry"&&e.name){const n=await this._pluginRegistry.getAsync(e.name);if(!n)throw new Error(`Plugin "${e.name}" not found in registry after ESM load`);return{ctor:n}}}if(e.type==="umd"){if(await this._loadScript(e.url),t==="window"&&e.name){const r=globalThis[e.name];if(!r)throw new Error(`Plugin "${e.name}" not found on window after script load`);return{ctor:r}}if(t==="registry"&&e.name){const r=await this._pluginRegistry.getAsync(e.name);if(!r)throw new Error(`Plugin "${e.name}" not found in registry after script load`);return{ctor:r}}}throw new Error(`Cannot resolve descriptor: type=${e.type}, resolve=${t}, name=${e.name??"none"}`)}_loadScript(e){return new Promise((t,r)=>{if(typeof document>"u"){r(new Error("Cannot load UMD script in non-browser environment"));return}const n=document.createElement("script");n.src=e,n.onload=()=>t(),n.onerror=()=>r(new Error(`Failed to load script: ${e}`)),document.head.appendChild(n)})}initSync(e){const t=[];for(const r of e){const n=this._getOrCreate(r,void 0);t.push(n)}this._activated=!0,this._startPluginsBatch(t)}async init(e){const t=[],r=new Set;for(const n of e){const{ctor:i,options:o}=await this._resolveEntry(n),s=this._getOrCreate(i,o);r.has(s)||(r.add(s),t.push(s))}this._activated=!0,await this._startPluginsBatch(t)}async setPlugins(e){const t=new Set,r=[];for(const s of e){const a=await this._resolveEntry(s);t.add(a.ctor),r.push(a)}const n=[];this._map.forEach((s,a)=>{t.has(a)||n.push({key:a,plugin:s})});for(let s=n.length-1;s>=0;s--){const{key:a,plugin:l}=n[s];await this._initializingPlugins.get(l),await this._disposePlugin(l,l.constructor.name),this._map.delete(a),this._optionsMap.delete(a),this._readyMap.delete(l),this._resolveMap.delete(l),this._initializingPlugins.delete(l),this._initializedPlugins.delete(l);const c=this._creationOrder.indexOf(l);c>=0&&this._creationOrder.splice(c,1)}const i=[],o=new Set;for(const{ctor:s,options:a}of r){const l=this._getOrCreate(s,a);o.has(l)||(o.add(l),i.push(l))}this._activated&&await this._startPluginsBatch(i)}isReady(e){return this._initializedPlugins.has(e)}ready(e){return this._initializingPlugins.get(e)??this._readyMap.get(e)??Promise.resolve()}async waitFor(e,t){if(this._pluginRegistry.has(e))return this.useByKeyAsync(e);const{timeout:r}=t??{};return await new Promise((n,i)=>{let o,s=!1;const a=()=>{s||(s=!0,o&&clearTimeout(o),this._pluginRegistry.off(e,a),n())};this._pluginRegistry.on(e,a),r!==void 0&&r>0&&(o=setTimeout(()=>{s||(s=!0,this._pluginRegistry.off(e,a),i(new Error(`waitFor("${String(e)}") timed out after ${r}ms`)))},r))}),this.useByKeyAsync(e)}useByKey(e){const t=this._pluginRegistry.get(e);if(!t)throw new Error(`Plugin "${String(e)}" not registered or not loaded yet. Use useByKeyAsync() for async plugins.`);const r=this._getOrCreate(t);return this._activated&&this._startPluginsBatch([r]),r}async useByKeyAsync(e){const t=await this._pluginRegistry.getAsync(e);if(!t)throw new Error(`Plugin "${String(e)}" not registered.`);const r=this._getOrCreate(t);return this._activated&&await this._startPluginsBatch([r]),r}useByCtor(e,t){const r=this._getOrCreate(e,t);return this._activated&&this._startPluginsBatch([r]),r}use(e){return typeof e=="function"?this.useByCtor(e):this.useByKey(e)}async useAsync(e){const{ctor:t,options:r}=await this._resolveEntry(e),n=this._getOrCreate(t,r);return this._activated&&await this._startPluginsBatch([n]),n}_getOrCreate(e,t){const r=e;if(!this._map.has(r)){t!==void 0&&this._optionsMap.set(r,t);const n=this._optionsMap.get(r),i=this._createPluginInstance(e,n),o=i.constructor.name;this._emitLifecycle({type:"created",plugin:i,name:o}),i.required?.(),this._map.set(r,i),this._creationOrder.push(i),this._setupReadyPromise(i)}return this._map.get(r)}_createPluginInstance(e,t){const r=e;if(this._creatingPlugins.has(r))throw new Error(`Cyclic dependency for plugin ${e.name}`);this._creatingPlugins.add(r);try{return ap(e)?new e(this._context,t):e(this._context,t)||{}}finally{this._creatingPlugins.delete(r)}}_setupReadyPromise(e){const t=new Promise(r=>{this._resolveMap.set(e,r)});this._readyMap.set(e,t)}async _startPluginsBatch(e){const t=Array.from(new Set(e)),r=new Set,n=[];for(const i of t){if(this._initializedPlugins.has(i))continue;const o=this._initializingPlugins.get(i);if(o){r.add(o);continue}n.push(i)}if(n.length>0){const i=this._runBatchLifecycle(n);for(const o of n)this._initializingPlugins.set(o,i);r.add(i),i.finally(()=>{for(const o of n)this._initializingPlugins.get(o)===i&&this._initializingPlugins.delete(o)})}await Promise.all(r)}async _runBatchLifecycle(e){const t=[];for(const r of e){const n=r.constructor.name;this._emitLifecycle({type:"init:start",plugin:r,name:n});try{await r.init?.(),this._emitLifecycle({type:"init:success",plugin:r,name:n}),t.push(r)}catch(i){this._emitLifecycle({type:"init:error",plugin:r,name:n,error:i})}}for(const r of t){const n=r.constructor.name;this._emitLifecycle({type:"afterInit:start",plugin:r,name:n});try{await r.afterInit?.(),this._emitLifecycle({type:"afterInit:success",plugin:r,name:n})}catch(i){this._emitLifecycle({type:"afterInit:error",plugin:r,name:n,error:i})}}for(const r of e)this._initializedPlugins.add(r),this._resolveMap.get(r)?.(),this._resolveMap.delete(r)}async _disposePlugin(e,t){this._emitLifecycle({type:"dispose:start",plugin:e,name:t});try{await e.dispose?.(),this._emitLifecycle({type:"dispose:success",plugin:e,name:t})}catch(r){this._emitLifecycle({type:"dispose:error",plugin:e,name:t,error:r})}}async dispose(){for(let e=this._creationOrder.length-1;e>=0;e--){const t=this._creationOrder[e];await this._initializingPlugins.get(t),await this._disposePlugin(t,t.constructor.name)}this._map.clear(),this._optionsMap.clear(),this._readyMap.clear(),this._resolveMap.clear(),this._initializingPlugins.clear(),this._initializedPlugins.clear(),this._creationOrder.length=0,this._lifecycleListeners.clear()}getStatus(){return Array.from(this._map.values()).map(e=>({name:e.constructor.name,initialized:this._initializedPlugins.has(e)}))}},El=class{constructor(){k(this,"_plugins",new Map),k(this,"_listeners",new Map)}_getOrCreateEntry(e){let t=this._plugins.get(e);return t||(t={overrides:[]},this._plugins.set(e,t)),t}_applyOverrides(e,t){const r=this._plugins.get(e);if(r?.overrides)for(const n of r.overrides)t=n(t)||t;return t}_notifyListeners(e,t){const r=this._listeners.get(e);if(!r||r.length===0)return;for(const i of r)try{i.callback(t)}catch{}const n=r.filter(i=>!i.once);n.length>0?this._listeners.set(e,n):this._listeners.delete(e)}get(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor)}async getAsync(e){const t=this._plugins.get(e);if(t?.ctor)return this._applyOverrides(e,t.ctor);if(t?.loading){const r=await t.loading;return this._applyOverrides(e,r)}if(t?.factory){const r=Promise.resolve(t.factory()).then(i=>(t.ctor=i,t.loading=void 0,this._notifyListeners(e,i),i));t.loading=r;const n=await r;return this._applyOverrides(e,n)}return new Promise(r=>{this.on(e,n=>r(this._applyOverrides(e,n)))})}add(e,t){const r=this._getOrCreateEntry(e);r.ctor=t,this._notifyListeners(e,t)}addAll(e){for(const t of Object.keys(e)){const r=e[t];r!==void 0&&this.add(t,r)}}addAsync(e,t){const r=this._getOrCreateEntry(e);return r.factory=t,{dispose:()=>{r.ctor||(r.factory=void 0)}}}has(e){const t=this._plugins.get(e);return!!(t?.ctor||t?.factory)}isLoaded(e){return!!this._plugins.get(e)?.ctor}override(e,t){const r=this._getOrCreateEntry(e);return r.overrides.push(t),{dispose:()=>{const n=r.overrides.indexOf(t);n>=0&&r.overrides.splice(n,1)}}}on(e,t){const r=this.get(e);r&&t(r);let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!1};return n.push(i),{dispose:()=>this._removeListener(e,t)}}once(e,t){const r=this.get(e);if(r)return t(r),{dispose:()=>{}};let n=this._listeners.get(e);n||(n=[],this._listeners.set(e,n));const i={callback:t,once:!0};return n.push(i),{dispose:()=>this._removeListener(e,t)}}off(e,t){this._removeListener(e,t)}_removeListener(e,t){const r=this._listeners.get(e);if(r){const n=r.findIndex(i=>i.callback===t);n>=0&&r.splice(n,1),r.length===0&&this._listeners.delete(e)}}keys(){return Array.from(this._plugins.keys())}forContext(){const e=this;return{add(t,r){e.add(t,r)}}}},dp=class{constructor(e){k(this,"resolveRegistry",void 0),this.resolveRegistry=e}target(){return this.resolveRegistry()}get(e){return this.target().get(e)}getAsync(e){return this.target().getAsync(e)}add(e,t){return this.target().add(e,t)}addAll(e){return this.target().addAll(e)}addAsync(e,t){return this.target().addAsync(e,t)}has(e){return this.target().has(e)}isLoaded(e){return this.target().isLoaded(e)}override(e,t){return this.target().override(e,t)}on(e,t){return this.target().on(e,t)}once(e,t){return this.target().once(e,t)}off(e,t){return this.target().off(e,t)}keys(){return this.target().keys()}forContext(){return this.target().forContext()}},_l=class extends Z{constructor(e={}){super(),k(this,"_options",void 0),k(this,"_listeners",[]),k(this,"on",this._addListener.bind(this)),k(this,"event",this._addListener.bind(this)),k(this,"once",(t,r=0,n)=>{const i=this._addListener((...o)=>(i?.dispose(),n?t.call(n,...o):t(...o)),r);return i}),k(this,"un",t=>{const r=this._listeners.findIndex(([n])=>n===t);r>=0&&(this._listeners.splice(r,1),this._listeners.length===0&&this._options.onLastListenerRemove&&this._options.onLastListenerRemove())}),this._options=e}getListeners(e){return this._listeners.flatMap(([t])=>typeof t=="function"?t:t.getListeners(e))}hasListeners(){for(const[e]of this._listeners){if(typeof e=="function")return!0;const t=e;if(typeof t.hasListeners=="function"){if(t.hasListeners())return!0;continue}return!0}return!1}_addListener(e,t=0,r){if(this.isDisposed())return{dispose:()=>{}};const n=this._listeners,i=this._options;r&&typeof e=="function"&&(e=e.bind(r));const o=n.findIndex(([,a])=>a<t),s=[e,t];return n.splice(o>=0?o:n.length,0,s),n.length===1&&i.onFirstListenerAdd&&i.onFirstListenerAdd(),{dispose:()=>{const a=n.indexOf(s);a>=0&&(n.splice(a,1),!n.length&&i.onLastListenerRemove&&i.onLastListenerRemove())}}}dispose(){this._listeners.splice(0,this._listeners.length),this._options.onLastListenerRemove&&this._options.onLastListenerRemove(),super.dispose()}},fp=class extends _l{execute(e,t){for(const r of t)try{r(...e)}catch{}}fire(...e){if(!this.isDisposed()){const t=this.execute(e,this.getListeners(e));return t===void 0?void 0:t}}},ee=class extends fp{execute([e],t){for(const r of t)try{r(e)}catch{}}},hp=class extends _l{fire(e){if(this.isDisposed())return;let t=!1,r=!1;const n={value:e,preventDefault(){t=!0},stopPropagation(){r=!0}},i=this.getListeners([n]);for(const o of i){if(r)break;try{o(n)}catch{}}return t?!1:void 0}};function mp(e,t,r){let n;const i=new ee({onFirstListenerAdd(){n=i.addDisposable(new Z),n.addDisposable(e(o=>{t(o)!==!1&&i.fire(o)}))},onLastListenerRemove(){n?.dispose(),n=void 0}});return r?.addDisposable(i),i.event}var Fn={lockEditorInit:!0,lockEdit:!1,lockEditor:!0,activeElementLocked:0,applicationTheme:"light",applicationMode:"default",previewHeight:0,emailWidth:0,previewPage:!1,globalHolder:null,elementPath:[],activeElementText:"",selectedElem:null,iframeOffsetTop:0,scrollTop:0,copyPasteEnabled:!0,saveBlockEnabled:!0,editImageControlEnabled:!0,elementAIimageEnabled:!0,imageCenterStockEnabled:!0,imageCenterGifEnabled:!0,imageCenterEditorEnabled:!0,blocksAddPanelEnabled:!0,codeMode:!0,appName:"",isLeftButtonDown:!1,isProgrammaticSelection:!1,isDirectionUP:!1,isDirectionDOWN:!1,isDirectionLEFT:!1,isDirectionRIGHT:!1,actualTargetCount:0,activeCell:[],commonStyles:{},loadStylesTimer:!1,_pushUndoStop:!1},Br=Ym({...Fn});function Re(){return Br.get()}var jn=new ee,qt=new Map,_e={source:Br,get(e){return Re()[e]},getState(){return{...Re()}},getStateRef(){return Re()},set(e,t){if(Re()[e]===t)return;Br.set({...Re(),[e]:t}),jn.fire({[e]:t});const r=qt.get(e);r&&r.forEach(n=>n(t))},update(e){let t=!1;const r={};for(const n of Object.keys(e)){const i=e[n];if(Re()[n]!==i){Br.set({...Re(),[n]:i}),r[n]=i,t=!0;const o=qt.get(n);o&&o.forEach(s=>s(i))}}t&&jn.fire(r)},increment(e,t=1){const r=Re()[e];typeof r=="number"&&_e.set(e,r+t)},decrement(e,t=1){const r=Re()[e];typeof r=="number"&&_e.set(e,r-t)},subscribe(e){return jn.event(e)},subscribeToKey(e,t){qt.has(e)||qt.set(e,new Set);const r=qt.get(e),n=t;return r.add(n),()=>{r.delete(n),r.size===0&&qt.delete(e)}},reset(){Br.set({...Fn}),jn.fire(Re())},resetKey(e){this.set(e,Fn[e])},isEditingLocked(){const e=Re();return e.lockEdit||e.lockEditor||e.lockEditorInit},isActiveElementLocked(){return Re().activeElementLocked>0},getInitialState(){return Fn}},$n=e=>e?.trim().replaceAll(/[\s\u00A0]+/g," ").replaceAll(/\n/g,"");function Sl(e){let t=e;for(;t;){if(t.tagName==="TR")return t;t=t.parentElement}return null}function At(e,t){return Array.from(e.classList).find(r=>r.includes(t))}function wl(e){return!e||!e.childNodes?!1:Array.from(e.childNodes).every(t=>t.nodeType===Node.TEXT_NODE?(t.textContent?.trim()??"")!=="":t.nodeType===Node.ELEMENT_NODE?wl(t):!1)}function z(e){const t=document.createElement(e.tag||"div");if(t.setAttribute("contentEditable","false"),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.left&&(t.style.left=e.left+"px"),e.top&&(t.style.top=e.top+"px"),e.className&&(t.className=e.className),e.style&&t.setAttribute("style",e.style),e.HTMLcontent&&(t.innerHTML=e.HTMLcontent),e.title&&t.setAttribute("title",e.title),e["data-id"]&&t.setAttribute("data-id",e["data-id"]),e.targetElement){const r=typeof e.targetElement=="string"?document.querySelector(e.targetElement):e.targetElement;if(r)switch(e.insertType){case"append":r.append(t);break;case"prepend":r.prepend(t);break;case"before":r.before(t);break;case"after":r.after(t);break;case"replaceWith":r.replaceWith(t)}}return t}function pp(e){try{return JSON.parse(e),!0}catch{return!1}}function gp(e,t,r=2){const n=e.split(""),i=t.split("");if(Math.abs(n.length-i.length)>r)return!1;let o=0;if(n.length===i.length){for(let s=0;s<n.length;s++)if(n[s]!==i[s]&&(o++,o>r))return!1}else{const s=n.length>i.length?n:i,a=n.length>i.length?i:n;let l=0,c=0;for(;l<s.length&&c<a.length;)if(s[l]!==a[c]){if(o++,o>r)return!1;l++}else l++,c++;if(l<s.length&&o++,o>1)return!1}return!0}function bp(e){const t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(e))}function yp(e,t){let r=e;for(;r&&r!==document.body;){const n=r.style?.[t];if(n&&typeof n=="string")return n;if(r.tagName==="EDITOR")return null;r=r.parentElement}return null}function vp(e){const t=e.style?.fontWeight;if(typeof t=="number")return t>=600;if(typeof t=="string"){const r=t.toLowerCase();return r.includes("bold")||r.includes("black")||parseInt(r)>=600}return!1}function Cl(){const e=window.getSelection();if(!e||e.rangeCount===0)return null;const t=e.getRangeAt(0).commonAncestorContainer;return t.nodeType===1?t:t.parentElement}function Ep(e,t=null){const r=e?.innerText;for(;e!==null;){if(e.innerText===r){const n=e.parentElement;if(n===null||n.innerText!==r||n.tagName==="EDITOR"||e.tagName===t?.toUpperCase())return e.tagName===t?.toUpperCase()||!t?e:null}e=e.parentElement}return null}function Al(e,t=Cl()){e=$n(e)??"";const r=o=>$n(o?.textContent||"")??"",n=Array.from(t?.childNodes||[]).filter(o=>!!o&&o.nodeName!=="BR");let i=null;if(t&&t.nodeType===Node.TEXT_NODE&&r(t).includes(e)&&r(t)===e)return t;for(let o=0;o<n.length;o++){const s=n[o];if(s.nodeType===Node.TEXT_NODE&&r(s).includes(e)&&r(s)===e){i=s.parentNode;break}else if(s.nodeType===Node.ELEMENT_NODE&&(i=Al(e,s),i))break}return i}function Tl(e){const t=Array.from(e),r=t.map(o=>o.clientWidth),n=r.reduce((o,s)=>o+s,0),i=r.map(o=>((o||0)/n*100).toFixed(1));t.forEach((o,s)=>{o.setAttribute("data-percent",i[s])})}function Fr(e){e.elem.nodeName==="#comment"&&e.elem.textContent&&e.elem.textContent.indexOf("mso")>-1?e.elem.textContent=e.elem.textContent.replace(/width=".*"/gi,`width="${e.width}"`):e.elem.previousSibling&&Fr({elem:e.elem.previousSibling,width:e.width})}function _p(e){let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i=0;for(;i<e;)t+=r.charAt(Math.floor(Math.random()*62)),i+=1;return t}var Hn=null,Lo=null,Sp=null,wp=null,jr=0;function Cp(e){Hn=e.htmlDocument,Lo=e.remoteDocument,Sp=e.textDocument,wp=e.documentMapping}function Oo(){if(!Hn)throw new Error("Documents not initialized. Call initDocuments first.");return Hn}function kl(){if(!Lo)throw new Error("Documents not initialized. Call initDocuments first.");return Lo}function Ap(e){Oo().commit(e)}async function Tp(e){const t=Oo();try{jr++,await t.commit(e,!0)}finally{jr--}}function kp(){return jr>0}function Lp(){jr++}function Op(){jr--}function xo(){return Hn!==null}var zn=null,Gt=void 0,Po=null;function xp(e){Po=e}function Pp(e){zn=e}function Np(e){if(Po){Po.setEditorFocus(e);return}if(zn&&zn.isEditorInFocus!==e){const t=e;e&&typeof Gt=="boolean"&&(xo()&&kl().saveChanges(Gt),Gt=void 0),zn.setFocus(t),!e&&typeof Gt=="boolean"&&(xo()&&kl().saveChanges(Gt),Gt=void 0)}}function Mp(e,t=window){return{peer:e,send(r){e.postMessage(r,"*")},subscribe(r){const n=i=>{r({data:i.data,source:i.source,ports:i.ports})};return t.addEventListener("message",n),{dispose:()=>t.removeEventListener("message",n)}},close(){}}}function Rp(e){let t=!1;return{peer:e,send(r){e.postMessage(r)},subscribe(r){const n=i=>{r({data:i.data,source:e})};return e.addEventListener("message",n),t||(t=!0,e.start()),{dispose:()=>e.removeEventListener("message",n)}},close(){e.close()}}}function jN(e){return e}function Dp(e){return e&&typeof e=="object"}function Ll(e,t){return e&&typeof e=="object"&&e.operationId===t}var Xe="INIT_MESSAGE",Ip="em:port-ready",Bp="em:window-drained",No="";function Ol(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}var Fp=class extends Z{constructor(...e){super(...e),k(this,"_listeners",Object.create(null)),k(this,"addListenerAsync",(t,r,n=0,i)=>{const o=this._listeners[t]||(this._listeners[t]=[]);i&&typeof r=="function"&&(r=r.bind(i));const s=o.findIndex(([l,c])=>n<=c),a=[r,n];return this.isDisposed()||o.splice(s>=0?s:o.length,0,a),{dispose(){const l=o.indexOf(a);l>=0&&o.splice(l,1)}}}),k(this,"fireAsync",(t,r)=>{if(!this.isDisposed()){const n=this._listeners[t]||(this._listeners[t]=[]);let i;for(let o=0;o<n.length;o++){const s=n[o][0],a=i;i=l=>s(l,a)}if(i)return i(r)}}),k(this,"addListener",(t,r,n=0)=>this.addListenerAsync(t,(i,o)=>{try{r(i)}catch{}return o&&o(i)},n))}},jp=class extends Z{constructor(e,t){super(),k(this,"_singleton",void 0),k(this,"_target",void 0),k(this,"_transport",void 0),k(this,"_transportSubscription",void 0),k(this,"_ports",new Map),k(this,"_drained",new WeakSet),k(this,"_inited",!1),k(this,"_emitter",this.addDisposable(new Fp)),k(this,"_handshaken",new WeakSet),k(this,"_greeted",new WeakSet),k(this,"_outgoingFilter",void 0),k(this,"_onTransportMessage",r=>{const n=r,i=n.data,o=n.source,s=i?.port===!0?n.ports?.[0]:void 0,a=!this._isPortSource(n.source);if(a&&o&&i?.operationId==="em:window-drained"){this._drained.add(o);return}if(!(a&&o&&this._drained.has(o))){if(o&&o!==this._target&&this._greeted.has(o)&&Ll(i,Xe)){this._greeted.delete(o),this._handshaken.add(o),this._postMessage(o,{operationId:Xe,data:{}}),s&&this.usePort(s,!0,o);return}if(Dp(i)&&(n.source===this.target||this._isCurrentPort(n.source))||this._singleton&&Ll(i,Xe)){if(s){const d=this._target;Promise.resolve().then(()=>this.usePort(s,!0,d))}const l=this._emitter.fireAsync(i.operationId||No,i.operationId===void 0?n:i.data),c=i.result,u=i.error;c&&u&&Promise.resolve(l).then(d=>this._sendMessage(c,d),d=>this._sendMessage(u,d))}}}),this._singleton=t,this._transport=Mp({postMessage:()=>{}},window),this._transportSubscription=this.addDisposable(this._transport.subscribe(this._onTransportMessage)),this.addListener(Xe,()=>{this._inited||(this._inited=!0,this._target&&this._handshaken.add(this._target),this.send(Xe))}),e&&this.setTarget(e)}setTarget(e){if(this._target!==e){if(this._target=e,!e){this._inited=!1;return}if(this._handshaken.has(e)){this._inited=!0,this._emitter.fireAsync(Xe,void 0);return}this._inited=!1,this._postMessage(e,{operationId:Xe,data:{}})}}sendPort(e,t){this._postMessage(e,{operationId:Xe,data:{},port:!0},[t])}setOutgoingFilter(e){return this._outgoingFilter=e,()=>{this._outgoingFilter===e&&(this._outgoingFilter=void 0)}}sendNow(e){const t=this._target;return!this._inited||!t?!1:(this._postMessage(t,e),!0)}greet(e){this._handshaken.has(e)||this._greeted.has(e)||this._target===e||(this._greeted.add(e),this._postMessage(e,{operationId:Xe,data:{}}))}forget(e){this._handshaken.delete(e),this._greeted.delete(e),this._closePort(e),this._drained.delete(e),this._target===e&&(this._inited=!1)}usePort(e,t=!1,r=this._target){if(!r||this._ports.has(r))return;const n=Rp(e),i=n.subscribe(this._onTransportMessage);this._ports.set(r,{transport:n,subscription:i}),t&&(n.send({operationId:Ip,data:{}}),this.drainWindow(r))}useWindow(e=this._target){e&&(this._closePort(e),this._drained.delete(e))}get usesPort(){return this._target!==void 0&&this._ports.has(this._target)}hasPort(e){return this._ports.has(e)}_closePort(e){const t=this._ports.get(e);t&&(t.subscription.dispose(),t.transport.close(),this._ports.delete(e))}drainWindow(e){this._ports.has(e)&&e.postMessage({operationId:Bp,data:{}},"*")}isWindowDrained(e){return this._drained.has(e)}_isPortSource(e){for(const t of this._ports.values())if(t.transport.peer===e)return!0;return!1}_isCurrentPort(e){return this._target!==void 0&&this._ports.get(this._target)?.transport.peer===e}getTarget(){return this._target}get target(){return this._target}_postMessage(e,t,r){let n=t;this._outgoingFilter&&!r?.length&&(n="data"in t?{...t,data:this._outgoingFilter(t.data)}:this._outgoingFilter(t));try{const i=this._ports.get(e);if(i){i.transport.send(n);return}if(r?.length){e.postMessage(n,"*",r);return}e.postMessage(n,"*")}catch(i){if(i?.name==="DataCloneError"){const o=typeof n?.data=="object"&&n?.data!==null?n.data:void 0}throw i}}_sendMessage(e,t,r=!0){if(!r&&!this.isInited())return;const n=this.addDisposable(this.onInit(i=>{const o=e?{operationId:e,data:t}:t;try{this._postMessage(i,{...o})}finally{n.dispose()}}))}send(e,t,r){return typeof e=="string"?this._sendMessage(e,t,r):this._sendMessage(No,e,t)}sendAsync(e,t,r=!0){if(!r&&!this.isInited())return Promise.resolve();const n=Ol(),i=Ol();return new Promise((o,s)=>{const a=this.addDisposable(new Z);a.addDisposable(this.onInit(l=>{try{this._postMessage(l,{operationId:e,data:t,result:n,error:i})}catch(c){a.dispose(),s(c);return}a.addDisposable(this._onMessage(n,c=>{o(c),a.dispose()})),a.addDisposable(this._onMessage(i,c=>{s(c),a.dispose()}))}))})}_onMessage(e,t,r=0){return this._emitter.addListener(e,t,r)}addListener(e,t,r){return t?this._onMessage(e,t,r):this._onMessage(No,e)}addListenerAsyncPipe(e,t,r=0){return this._emitter.addListenerAsync(e,t,r)}addListenerAsync(e,t,r=0){return this._emitter.addListenerAsync(e,async(n,i)=>{const o=await t(n);return i?i(n):o},r)}isInited(){return this._inited}get inited(){return this._inited}onInit(e,t=!0,r=0){const n=this.addDisposable(new Z);return this._inited&&this._target?t&&Promise.resolve().then(()=>{!this._inited||!this._target?n.addDisposable(this.onInit(e,t,r)):e(this._target)}):n.addDisposable(this._onMessage(Xe,()=>{e(this._target)},r)),n}dispose(){for(const e of Array.from(this._ports.keys()))this._closePort(e);this._transport.close(),super.dispose()}},$p=/<\/?[a-zA-Z][a-zA-Z0-9-]*(?:\s[^<>]*)?\/?>/g;function Hp(e){return e.replace($p,t=>/^<br\b/i.test(t)?" ":"")}var zp="fonts.googleapis.com",Vp=e=>{try{const t=new URL(String(e??"").trim());return t.protocol==="https:"?t:null}catch{return null}},Wp=e=>{const t=Vp(String(e??""));return t?t.hostname===zp&&t.pathname.startsWith("/css")&&!!t.searchParams.get("family"):!1},me={MESSAGE:"message",INIT_PREVIEW:"init_preview",UPDATE_PREVIEW:"update_preview",UPDATE_EDITOR:"update_editor",UPDATE_EDITOR_POSITION:"update_editor_position",UPDATE_SIDE_MENU_EDITOR:"update_side_menu_editor",SAVE_EMAIL:"saveEmail",SANDBOX_ELEMENT_SETTINGS_SET:"sandbox_element_settings_set",SANDBOX_IMAGE_RESET:"sandbox_image_reset",SANDBOX_NATIVE_IMAGE_DROP_CLEAR:"sandbox_native-image-drop-clear",SANDBOX_EMAIL_SETTINGS_SET:"sandbox_email_settings_set",SANDBOX_BLOCK_SETTINGS_SET:"sandbox_block_settings_set",SANDBOX_ELEMENT_PARENT_GET:"sandbox_element_parent_get",SANDBOX_ELEMENT_PARENT_TABLE_GET:"sandbox_element_parent_table_get",SANDBOX_ELEMENT_PREV_GET:"sandbox_element_prev_get",SANDBOX_ELEMENT_NEXT_GET:"sandbox_element_next_get",SANDBOX_ELEMENT_REMOVE:"sandbox_element_remove",SANDBOX_ELEMENT_ACTIVE_RESET:"sandbox_element_active_reset",SANDBOX_ELEMENT_ACTIVE_SET:"sandbox_element_active_set",SANDBOX_ELEMENT_HOVER_SET:"sandbox_element_hover_set",SANDBOX_ELEMENT_IMG_LINK:"sandbox_element_img_link",SANDBOX_ELEMENT_TEXT:"sandbox_element_text",SANDBOX_EMAIL_CONTENT_GET:"sandbox_email_content_get",SANDBOX_SET_POSITION_TO_IMG:"sandbox_set_position_to_img",SANDBOX_SET_POSITION_TO_LINK:"sandbox_set_position_to_link",SANDBOX_ACCORDION_ADD_SECTION:"sandbox_accordion_add_section",SANDBOX_ACCORDION_REMOVE_SECTION:"sandbox_accordion_remove_section",APPLICATION_FOCUS_IN_IFRAME:"application_focus_in_iframe",APPLICATION_EMAIL_SETTINGS_SET:"application_email_settings_set",APPLICATION_BLOCK_SETTINGS_SET:"application_block_settings_set",APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",_APPLICATION_ELEMENT_SETTINGS_SET:"application_element_settings_set",APPLICATION_ELEMENT_SETTINGS_CLOSE:"application_element_settings_close",APPLICATION_ACTION:"application_action",APPLICATION_EBLOCK_ADD:"application_eblock_add",SANDBOX_EBLOCK_SET_EM_BLOCK_ID:"sandbox_eblock_set_em_block_id",SANDBOX_GLOBAL_BLOCK_REPLACE:"sandbox_global_block_replace",APPLICATION_SCROLL_TO:"application_scroll-to",APPLICATION_SCROLL_BLOCK_SHOW:"application_scroll-block-show",APPLICATION_SCROLL_BLOCK_HIDE:"application_scroll-block-hide",APPLICATION_DISCUSS_SET_ID:"application_discuss_set_id",APPLICATION_DISCUSS_GET_COMMENT:"application_discuss_get_comment",APPLICATION_DISCUSS_NO_COMMENT:"application_discuss_no_comment",APPLICATION_DISCUSS_SAVE_TARGET:"application_discuss_save_target",APPLICATION_IFRAME_SET_HEIGHT:"application_iframe_set_height",APPLICATION_COMMON_STYLES_UPDATE:"application_commonStyles_update",APPLICATION_EMAIL_CONTENT_GET:"application_email_content_get",APPLICATION_OPEN_IMAGE_AI_POPUP:"application_open-image-ai-popup",APPLICATION_OPEN_IMAGE_UPLOAD_POPUP:"application_open-image-upload-popup",APPLICATION_OPEN_IMAGE_EDIT_POPUP:"application_open-image-edit-popup",APPLICATION_OPEN_IMAGE_GIF_POPUP:"application_open-image-gif-popup",APPLICATION_OPEN_IMAGE_STOCK_POPUP:"application_open-image-stock-popup",APPLICATION_CLOSE_IMAGE_EDIT_POPUP:"application_close-image-edit-popup",APPLICATION_NATIVE_IMAGE_DROP:"application_native-image-drop",APPLICATION_SUBJECT_UPDATE:"application_subject_update",APPLICATION_PREHEADER_UPDATE:"application_preheader_update",APPLICATION_DOMPARSER_ERROR:"application_domparser_error",APPLICATION_UPDATE_ENTITY:"application_update_entity",APPLICATION_IFRAME_DRAG_EVENT:"application_iframe_drag_event",APPLICATION_HAS_AMP:"application_has_amp",APPLICATION_CANVAS_IMAGE_GET:"application_canvas_image_get",APPLICATION_PREVIEW_ALERT_SHOW:"application_preview_alert_show",APPLICATION_ATOM_INSERTED:"application_atom_inserted",APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW:"application_template_not_em_alert_show",SANDBOX_WINDOW_CHARACTERISTIC:"sandbox_window-characteristic",SANDBOX_IFRAME_SETSIZE:"sandbox_iframe-setsize",SANDBOX_BLOCK_INSERT:"sandbox_block-insert",SANDBOX_ATOM_INSERT:"sandbox_atom-insert",SANDBOX_DRAG_CANCEL:"sandbox_drag-cancel",UPDATE_EDITOR_POSITION_FROM_EDITOR:"update_position_from_editor",UPDATE_EDITOR_POSITION_FROM_IFRAME:"update_position_from_iframe",SANDBOX_CHANGE_PREVIEW:"sandbox_change_preview",APPLICATION_CHANGE_PREVIEW:"application_change_preview",SANDBOX_LOCK_EDIT:"sandbox_lock_edit",SANDBOX_FLOATBLOCK_ADD:"sandbox_floatBlock_add",SANDBOX_FLOATBLOCK_REMOVE:"sandbox_floatBlock_remove",SANDBOX_FLOATBLOCK_COPY:"sandbox_floatBlock_copy",SANDBOX_FLOATBLOCK_SWAP:"sandbox_floatBlock_swap",EDITOR_CHANGE_FOCUS:"editor_change_focus",SANDBOX_RESIZED:"sandbox_resized",SANDBOX_LOCK_DISCUSS:"sandbox_lock_discuss",SANDBOX_DISCUSS_SET_TARGET:"sandbox_discuss_set_target",SANDBOX_DISCUSS_REMOVE_TARGET:"sandbox_discuss_remove_target",SANDBOX_DISCUSS_RESET:"sandbox_discuss_reset",SANDBOX_DISCUSS_GET_TARGET:"sandbox_discuss_get_target",SANDBOX_READY:"SANDBOX_READY",SANDBOX_FLOATBLOCK_WRAP:"sandbox_floatblock_wrap",SANDBOX_FLOATBLOCK_DIR:"sandbox_floatblock_dir",SANDBOX_SUBJECT_UPDATE:"sandbox_subject_update",SANDBOX_PREHEADER_UPDATE:"sandbox_preheader_update",SANDBOX_DRAG_EVENT:"sandbox_drag_event",SANDBOX_WHEEL:"sandbox_wheel",SANDBOX_ADD_MERGETAG:"sandbox_add_mergetag",SANDBOX_TRANSLATIONS:"sandbox_send_translations",SANDBOX_SET_THEME_VARIABLES:"sandbox_send_theme_variables",SANDBOX_SET_PROJECT_FONTS:"sandbox_set_project_fonts",SANDBOX_CANVAS_IMAGE_CACHE_SETUP:"sandbox_canvas_image_cache_setup",SANDBOX_SET_ENTITY:"sandbox_set_entity",SANDBOX_INIT_START:"sandbox_init_start",SANDBOX_INITED:"sandbox_inited",SANDBOX_UPDATE_ENTITY:"sandbox_update_entity",RELOAD:"reload",SANDBOX_ADD_EXTENSIONS:"sandbox_add_extensions",SANDBOX_REMOVE_EXTENSIONS:"sandbox_remove_extensions",SANDBOX_ADD_SCRIPT:"sandbox_add_script",SANDBOX_IS_EMAIL_EMPTY:"sandbox_is_email_empty",SANDBOX_SWITCH_THEME:"sandbox_switch_theme"},Up=e=>({REORDER_ATOM:e("Reorder element"),CLONE_ATOM:e("Clone element"),REMOVE_ATOM:e("Remove element"),EDIT_ATOM:e("Edit element"),CHANGE_IMAGE:e("Change image"),CHANGE_IMAGE_EDIT:e("Edit"),CHANGE_IMAGE_STOCK:e("Stock"),CHANGE_IMAGE_CHANGETO:e("Upload"),CHANGE_IMAGE_GIF:e("GIF"),CHANGE_IMAGE_AI:e("Generate"),REORDER_BLOCK:e("Reorder block"),REORDER_BLOCK_UP:e("Move up"),REORDER_BLOCK_DOWN:e("Move down"),EDIT_BLOCK:e("Edit block"),CLONE_BLOCK:e("Clone block"),MERGE_BLOCK:e("Merge with the chosen block"),UNMERGE_BLOCK:e("Split blocks"),COPY_BLOCK_TO_CLIPBOARD:e("Copy block to clipboard"),PASTE_BLOCK_FROM_CLIPBOARD:e("Paste block from clipboard"),REMOVE_BLOCK:e("Remove block"),SAVE_TO_BLOCKS:e("Save to Blocks"),UPDATE_GLOBAL_BLOCK_IN_TEMPLATES:e("Push block update to all templates"),ADD_BLOCK:e("Add block"),ADD_EMPTY_BLOCK:e("Add an empty block"),ADD_SAVED_BLOCK:e("Add a saved block"),ADD_COMMON_BLOCK:e("Add a common block"),ADD_TEMPLATE_BLOCK:e("Add a template block"),ADD_SEARCH_BLOCK:e("Search a block"),REORDER_GROUP:e("Reorder group"),EDIT_GROUP:e("Edit group"),CLONE_GROUP:e("Clone group"),REMOVE_GROUP:e("Remove group"),ADD_GROUP:e("Add group"),LINK:e("link"),TABLE_COLUMN:e("cell"),TABLE:e("table"),FLOAT_BLOCK:e("column"),CONTAINER:e("container"),PICTURE:e("picture"),CAROUSEL:e("carousel"),ACCORDION:e("accordion"),SOCIAL:e("Social media"),VERTICAL_INDENT:e("indent"),TEXT:e("text"),BUTTON:e("button"),VAR:e("variable"),STRUCTURE:e("block"),EMAIL:e("email"),GROUP:e("group"),TYPOGRAF:e("Typograf"),COUNTDOWN:e("countdown"),ELEMENT:e("element"),VIDEO:e("video"),ELEMENT_PATH_LINK:e("Link"),ELEMENT_PATH_BLOCK:e("Block"),ELEMENT_PATH_ATOM:e("Element"),ELEMENT_PATH_TD:e("Cell"),ELEMENT_PATH_TABLE:e("Table"),ELEMENT_PATH_FLOATBLOCK:e("Column"),ELEMENT_PATH_TEXT:e("Text"),ELEMENT_PATH_DIV:e("Container"),ELEMENT_PATH_GROUP:e("Group"),ELEMENT_PATH_EMAIL:e("Email"),ELEMENT_PATH_IMG:e("Picture"),ELEMENT_PATH_VINDENT:e("Indent"),ELEMENT_PATH_BUTTON:e("Button"),ELEMENT_PATH_CAROUSEL:e("Carousel"),ELEMENT_PATH_ACCORDION:e("Accordion"),ELEMENT_PATH_SOCIAL:e("Social media"),ELEMENT_PATH_SECTION:e("Section"),TINYMCE_CHANGECASE:e("Case Change"),TINYMCE_UPPERCASE:e("Uppercase"),TINYMCE_LOWERCASE:e("Lowercase"),PASTE_HERE:e("Drop here"),INSERT_COLUMN_BEFORE_TABLE:e("Insert column before"),INSERT_COLUMN_AFTER_TABLE:e("Insert column after"),INSERT_ROW_BEFORE_TABLE:e("Insert row before"),INSERT_ROW_AFTER_TABLE:e("Insert row after"),MERGE_RIGHT_CELL_TABLE:e("Merge right cell"),MERGE_LEFT_CELL_TABLE:e("Merge left cell"),MERGE_TOP_CELL_TABLE:e("Merge top cell"),MERGE_BOTTOM_CELL_TABLE:e("Merge bottom cell"),SPLIT_CELL_TABLE:e("Split cell"),REMOVE_COLUMN_TABLE:e("Remove column"),REMOVE_ROW_TABLE:e("Remove row"),DROP_BLOCK_HINT:e("Click or drag a block")}),X=new jp(window.parent,!0);function xl(e){for(const t of document.querySelectorAll(`[${e}]`))t.removeAttribute(e)}function be(e,t,r=!1){for(const n of e.querySelectorAll(t))r||!n.childNodes.length?n.remove():n.replaceWith(...n.childNodes)}var Vn="em-element-list-ol",Wn="em-element-list-ul",qp="em-element-list-bullet",Gp=`.${Vn}, .${Wn}`,Xp=["DIV","P","TD","H1","H2","H3","H4","H5","H6"],Yp="div, p, td, h1, h2, h3, h4, h5, h6",Kp={LIST:"margin: 0; padding: 0 0 0 20px;",LIST_ITEM:"padding-bottom: 5px;"};function Qp(e,t,r){const n=document.createElement("div");return n.innerHTML=e,n.querySelectorAll("tr").forEach(i=>{const o=i.querySelectorAll("td");if(o.length>1){const s=o[1],a=(s.getAttribute("style")||"").split(";").filter(u=>u.trim()!==""),l={};a.forEach(u=>{const[d,f]=u.split(":").map(h=>h.trim());l[d]=f}),l[t]=`${r}px`;const c=Object.entries(l).map(([u,d])=>`${u}: ${d}`).join("; ");s.setAttribute("style",c)}}),n.innerHTML}function Zp(e,t){const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");o&&(o.innerHTML=t)}}),r.innerHTML}function Jp(e,t){const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");if(o){const s=o.getAttribute("style")||"",a=s.split(";").map(l=>l.trim()).filter(l=>l);if(a.some(l=>l.startsWith("color"))){const l=a.map(c=>c.startsWith("color")?`color: ${t};`:c);o.setAttribute("style",l.join("; "))}else o.setAttribute("style",s?`${s} color: ${t};`:`color: ${t};`)}}}),r.innerHTML}function eg(e,t){const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");if(o){const s=o.getAttribute("style")||"",a=s.split(";").map(l=>l.trim()).filter(l=>l);if(a.some(l=>l.startsWith("font-size"))){const l=a.map(c=>c.startsWith("font-size")?`font-size: ${t}px;`:c);o.setAttribute("style",l.join("; "))}else o.setAttribute("style",s?`${s} font-size: ${t}px;`:`font-size: ${t}px;`)}}}),r.innerHTML}function tg(e,t){if(typeof t!="boolean")throw new Error("Invalid isBold value: must be a boolean");const r=t?"bold":"normal",n=document.createElement("div");return n.innerHTML=e,n.querySelectorAll("tr").forEach(i=>{const o=i.querySelector("td:first-child");if(o){const s=o.querySelector("div");if(s){const a=s.getAttribute("style")||"",l=a.split(";").map(c=>c.trim()).filter(c=>c);if(l.some(c=>c.startsWith("font-weight"))){const c=l.map(u=>u.startsWith("font-weight")?`font-weight: ${r};`:u);s.setAttribute("style",c.join("; "))}else s.setAttribute("style",a?`${a} font-weight: ${r};`:`font-weight: ${r};`)}}}),n.innerHTML}function rg(e,t){if(typeof t!="boolean")throw new Error("Invalid isItalic value: must be a boolean");const r=t?"italic":"normal",n=document.createElement("div");return n.innerHTML=e,n.querySelectorAll("tr").forEach(i=>{const o=i.querySelector("td:first-child");if(o){const s=o.querySelector("div");if(s){const a=s.getAttribute("style")||"",l=a.split(";").map(c=>c.trim()).filter(c=>c);if(l.some(c=>c.startsWith("font-style"))){const c=l.map(u=>u.startsWith("font-style")?`font-style: ${r};`:u);s.setAttribute("style",c.join("; "))}else s.setAttribute("style",a?`${a} font-style: ${r};`:`font-style: ${r};`)}}}),n.innerHTML}function ng(e,t){if(typeof t!="boolean")throw new Error("Invalid shouldUnderline value: must be a boolean");const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");if(o){const s=o.getAttribute("style")||"",a=s.split(";").map(d=>d.trim()).filter(d=>d);let l="none";const c=a.findIndex(d=>d.startsWith("text-decoration"));if(c!==-1){const d=a[c].match(/^text-decoration\s*:\s*(.*)$/);d&&(l=d[1].trim())}let u;t?l.includes("line-through")?u="underline line-through":u="underline":l.includes("line-through")?u="line-through":u="none",c!==-1?(a[c]=`text-decoration: ${u};`,o.setAttribute("style",a.join("; "))):o.setAttribute("style",s?`${s} text-decoration: ${u};`:`text-decoration: ${u};`)}}}),r.innerHTML}function ig(e,t){if(typeof t!="boolean")throw new Error("Invalid shouldStrikethrough value: must be a boolean");const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelector("td:first-child");if(i){const o=i.querySelector("div");if(o){const s=o.getAttribute("style")||"",a=s.split(";").map(d=>d.trim()).filter(d=>d);let l="none";const c=a.findIndex(d=>d.startsWith("text-decoration"));if(c!==-1){const d=a[c].match(/^text-decoration\s*:\s*(.*)$/);d&&(l=d[1].trim())}let u;t?l.includes("underline")?u="underline line-through":u="line-through":l.includes("underline")?u="underline":u="none",c!==-1?(a[c]=`text-decoration: ${u};`,o.setAttribute("style",a.join("; "))):o.setAttribute("style",s?`${s} text-decoration: ${u};`:`text-decoration: ${u};`)}}}),r.innerHTML}function og(e,t){if(!e)return!1;const r=e.closest("table");return r?r.classList.contains(t):!1}function sg(e){return!e||!(e instanceof Node)?null:document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:t=>t.nodeValue?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}).nextNode()}function ag(e){if(!e||!(e instanceof Node))return null;const t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:i=>i.nodeValue?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let r=null,n;for(;n=t.nextNode();)r=n;return r}function lg(e){if(!e||!(e instanceof HTMLElement))return"inside";const t=window.getSelection();if(!t||t.rangeCount===0)return"inside";const r=t.getRangeAt(0);if(!r.collapsed)return"inside";let{startContainer:n,startOffset:i}=r;if(n===e)return i===0?"start":i===e.childNodes.length?"end":"inside";const o=sg(e),s=ag(e);let a=n;return a&&a.nodeType===Node.ELEMENT_NODE&&(a=a.childNodes[0]),o&&a===o&&i===0?"start":s&&n===s&&(i===s?.nodeValue?.length||i===s?.nodeValue?.trim().length)?"end":"inside"}function Pl(e){const t=e.cloneNode(!0),r=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null);let n;for(;n=r.nextNode();)n.nodeValue="";return t}function Mo(e){let t="";for(const r of e.attributes)t+=` ${r.name}="${r.value}"`;return t}function cg(e,t){const r=e.closest(`table.${t}`);if(!r)return null;const n=r.querySelector("tbody"),i=n?n.innerHTML.trim():r.innerHTML.trim(),o=e.closest("tr");if(!o)return{rowHtml:i,firstCellText:"",secondCellText:"",firstCellHtmlNoText:"",secondCellHtmlNoText:"",secondCellWrapperHtml:"",secondCellInnerDivHtml:"",wrappedSecondCellHtml:"",secondCellInnerDivWrapperHtml:"",secondCellTextHTML:""};const s=o.querySelectorAll("td"),a=s[0]||null,l=s[1]||null,c=a?a.textContent.trim():"",u=l?l.textContent.trim():"",d=l?l.innerHTML.trim():"",f=a?Pl(a).outerHTML:"",h=l?Pl(l).outerHTML:"",g=l?`<td${Mo(l)}></td>`:"",y=l?l.querySelector("div"):null;return{rowHtml:i,firstCellText:c,secondCellText:u,firstCellHtmlNoText:f,secondCellHtmlNoText:h,secondCellWrapperHtml:g,secondCellInnerDivHtml:y?y.outerHTML:"",wrappedSecondCellHtml:l&&y?`<td${Mo(l)}>${y.outerHTML}</td>`:"",secondCellInnerDivWrapperHtml:y?`<div${Mo(y)}></div>`:"",secondCellTextHTML:d}}function Un(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}function ug(e,t){const r=document.createElement("template");r.innerHTML=e;const n=r.content.firstElementChild;if(!n||n.tagName.toLowerCase()!=="td")return e;const i=n.querySelector("div");return i?i.textContent=Un(t)||" ":n.insertAdjacentText("afterbegin",Un(t)),n.outerHTML}function dg(e){const t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll("editor").forEach(r=>{r.replaceWith(...Array.from(r.childNodes))}),t.content.querySelectorAll('[em-edit="active"]').forEach(r=>{r.removeAttribute("em-edit")}),t.innerHTML}function fg(e){const t=window.getSelection();if(!t||!t.rangeCount)return null;const r=t.getRangeAt(0);if(!e.contains(r.startContainer))return null;const n=document.createRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.toString(),o=document.createRange();return o.selectNodeContents(e),o.setStart(r.startContainer,r.startOffset),{beforeCursorPosition:i,afterCursorPosition:o.toString()}}function hg(e,t){const r=document.createElement("template");return r.innerHTML=e,r.content.querySelectorAll(`div.${t}`).forEach(n=>{const i=n.closest("tr");i&&i.remove()}),r.innerHTML}function mg(e,t,r,n=!0){const i=document.createElement("template");i.innerHTML=e.trim();const o=i.content.querySelector(`div.${r}`);if(o){const s=o.closest("tr");if(s){const a=n?"beforebegin":"afterend";s.insertAdjacentHTML(a,t)}}return i.innerHTML}function pg(e){const t=/^(\s|&nbsp;)+|(\s|&nbsp;)+$/g,r=e.querySelectorAll("tr"),n=[];return r.forEach(i=>{const o=i.querySelectorAll("td");if(o.length>=2){const s=o[0].querySelector("div"),a=o[1].querySelector("div, editor"),l=s?s.textContent.trim():"";let c="";if(a)if(a.classList.contains("em-text")){const u=a.querySelector("div");c=u?u.innerHTML:""}else c=a.innerHTML;c=c.replace(t,""),n.push({cellOneText:l,cellTwoText:c})}}),n}function gg(e){let t=1;return e.map(r=>{if(r.cellOneText&&/^\d+\.$/.test(r.cellOneText.trim())){const i={...r,cellOneText:`${t}.`};return t++,i}if(!r.cellOneText||/^\s*$/.test(r.cellOneText))return{...r};const n={...r,cellOneText:`${t}.`};return t++,n})}function bg(e,t){if(typeof e!="string")return"";const r=document.createElement("template");r.innerHTML=e.toString().trim();const n=r.content.querySelector("table");return n?(n.querySelectorAll("tr").forEach((i,o)=>{if(o>=t.length)return;const s=i.querySelectorAll("td");if(s.length<2)return;const a=s[0].querySelector("div");a&&(a.textContent=Un(t[o].cellOneText));const l=s[1].querySelector("div");l&&(l.textContent=Un(t[o].cellTwoText))}),n.outerHTML):e}function yg(e){return e.map(t=>({...t,cellOneText:t.cellOneText===""?" ":t.cellOneText,cellTwoText:t.cellTwoText===""?" ":t.cellTwoText}))}function vg(e){if(!Array.isArray(e)||e.length===0)return e;const t=" ",r=e.map(i=>{if(!i.cellOneText)return i;let o=i.cellOneText.trim();return o.endsWith(t)||(o+=t),{...i,cellOneText:o}}),n=Math.max(...r.map(i=>i.cellOneText?i.cellOneText.length:0));return r.map(i=>{if(!i.cellOneText)return i;let o=i.cellOneText;for(;o.length<n;)o+=t;return{...i,cellOneText:o}})}function Eg(e,t,r,n){const i=new DOMParser().parseFromString(e,"text/html"),o=i.querySelector(`div.${t}`);if(!o)return e;const s=o.closest("tr");if(!s)return e;const a=n==="ArrowUp"?s.previousElementSibling:s.nextElementSibling;if(a&&a.tagName==="TR"){const c=a.querySelectorAll("td")[1]||null;if(c){const u=c.querySelector("div");u&&u.classList.add(r)}}else o.classList.add(r);const l=i.querySelector("table");return l?l.outerHTML:e}function _g(e){const t=window.getSelection();if(!t||!t.rangeCount)return null;const r=t.getRangeAt(0);if(!e.contains(r.startContainer))return null;const n=document.createRange();n.selectNodeContents(e),n.setEnd(r.startContainer,r.startOffset);const i=n.cloneContents(),o=document.createRange();o.selectNodeContents(e),o.setStart(r.startContainer,r.startOffset);const s=o.cloneContents();function a(l){const c=document.createElement("div");return c.appendChild(l),c.childNodes.length===1&&c.firstChild.nodeType===Node.ELEMENT_NODE?c.firstChild.innerHTML:c.innerHTML}return{beforeHTML:a(i),afterHTML:a(s)}}function Sg(e,t,r,n){const i=e.closest(`table.${t}`)||e.closest(`table.${r}`);i&&i.querySelectorAll("tr").forEach(o=>{const s=o.querySelector("td:nth-child(2)");if(!s)return;const a=s.querySelectorAll("div, strong");if(a.length===0){const l=document.createElement("div");l.innerHTML="&nbsp;",s.appendChild(l)}else a.forEach(l=>{let c=l.innerHTML.trim();!c||c.replace(n,"")===""?l.innerHTML="&nbsp;":(c=c.replace(n,""),c.endsWith("&nbsp;")||(c+="&nbsp;"),c=c.replace(/&nbsp;+$/,"&nbsp;"),l.innerHTML=c)})})}function wg(e){const t=`<table><tbody><tr>${e}</tr></tbody></table>`,r=new DOMParser().parseFromString(t,"text/html"),n=r.querySelector("div");return n&&(n.classList.add("remove-new-editor-element"),n.innerHTML.trim()?n.innerHTML+="&nbsp;":n.innerHTML="&nbsp;"),r.querySelector("td")?.outerHTML||""}function Cg(e,t){const r=document.createElement("div");return r.innerHTML=e,r.querySelectorAll("tr").forEach(n=>{const i=n.querySelectorAll("td");if(i.length>1){const o=i[1],s=(o.getAttribute("class")||"").split(" ").map(l=>l.trim()).filter(l=>l!=="");s.includes(t)||s.push(t);const a=s.join(" ");o.setAttribute("class",a)}}),r.innerHTML}function ye(e){if(Ag(e))return Tg(e)?e.trim():kg(e)}var Nl={RGB:/^rgba?\s*\(\s*(?<r>\d+)\s*,\s*(?<g>\d+)\s*,\s*(?<b>\d+)\s*(?:,\s*(?<a>(?:0?\.)?\d+)\s*)?\)/i,HEX:/^\s*#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})\s*$/i},Ag=e=>typeof e=="string"&&e.trim()!=="",Tg=e=>Nl.HEX.test(e);function kg(e){const t=Nl.RGB.exec(e)?.groups;if(!t)return;const r=Lg(t);return xg(r)}var Lg=e=>({r:Ro(e.r),g:Ro(e.g),b:Ro(e.b),a:Og(e.a)}),Ro=e=>parseInt(e||"0",10),Og=e=>parseFloat(e||"1"),xg=e=>`#${Do(e.r)}${Do(e.g)}${Do(e.b)}`,Do=e=>e.toString(16).padStart(2,"0"),Pg=class extends Z{constructor(...e){super(...e),k(this,"_transforms",[]),k(this,"_byAttribute",new Map)}register(e){this._transforms.push(e);for(const t of e.attributes){const r=t.toLowerCase(),n=this._byAttribute.get(r);n?n.push(e):this._byAttribute.set(r,[e])}return{dispose:()=>this._remove(e)}}_remove(e){const t=this._transforms.indexOf(e);if(t!==-1){this._transforms.splice(t,1);for(const r of e.attributes){const n=r.toLowerCase(),i=this._byAttribute.get(n);if(!i)continue;const o=i.indexOf(e);o!==-1&&i.splice(o,1),i.length||this._byAttribute.delete(n)}}}get isEmpty(){return this._transforms.length===0}handles(e){return this._byAttribute.has(e.toLowerCase())}get attributes(){return[...this._byAttribute.keys()]}render(e,t){return this._run("render",e,t)}serialize(e,t){return this._run("serialize",e,t)}_run(e,t,r){const n=this._byAttribute.get(r.attribute.toLowerCase());if(!n?.length)return t;const i=e==="render"?n:[...n].reverse();let o=t;for(const s of i){if(o===null)break;const a=e==="render"?s.render?.(o,r):s.serialize?.(o,r);a!==void 0&&(o=a)}return o}dispose(){this._transforms.length=0,this._byAttribute.clear(),super.dispose()}},$r;function Ng(e){const t=$r;return $r=e,{dispose:()=>{$r===e&&($r=t)}}}function Io(){return $r}var qn=new WeakMap;function Mg(e,t,r){const n=qn.get(e);n?n.set(t.toLowerCase(),r):qn.set(e,new Map([[t.toLowerCase(),r]]))}function Rg(e,t){const r=qn.get(e);r?.size&&qn.set(t,new Map(r))}function Ml(e,t,r){const n=e.tagName.toLowerCase();for(const i of t.attributes){if(!e.hasAttribute(i))continue;const o=e.getAttribute(i)??"",s=t.serialize(o,{element:e,tag:n,attribute:i,stage:r});s===null?e.removeAttribute(i):s!==o&&e.setAttribute(i,s)}}function Bo(e,t={}){const r=t.pipeline??Io(),n=t.stage??"build";let i=e;if(t.clone&&(i=e.cloneNode(!0),r&&!r.isEmpty&&Rl(e,i)),!r||r.isEmpty)return i;i instanceof Element&&Ml(i,r,n);const o=i.querySelectorAll?.("*");if(o)for(const s of o)Ml(s,r,n);return i}function Dg(e,t={}){const r=t.pipeline??Io();return!r||r.isEmpty?e.outerHTML:Bo(e,{...t,pipeline:r,clone:!0}).outerHTML}function Rl(e,t){Rg(e,t);const r=e.childNodes,n=t.childNodes;for(let i=0;i<r.length&&i<n.length;i++)Rl(r[i],n[i])}function Fo(e,t,r,n={}){const i=jo(e,t,r,{stage:"settings",...n});i===null?e.removeAttribute(t):e.setAttribute(t,i)}function jo(e,t,r,n={}){const i=n.pipeline??Io();if(!i||!i.handles(t))return r;const o=e?.tagName.toLowerCase()??"",s=i.render(r,{element:e,tag:o,attribute:t,stage:n.stage??"build"});if(s!==r){const a=n.owner??e;a&&Mg(a,t,r)}return s}var Dl=class{constructor(e){k(this,"_voidElements",void 0),this._voidElements=new Set(e)}isVoidElement(e){return this._voidElements.has(e.toLowerCase())}},Ce=(function(e){return e[e.StartCommentTag=0]="StartCommentTag",e[e.Comment=1]="Comment",e[e.EndCommentTag=2]="EndCommentTag",e[e.StartTagOpen=3]="StartTagOpen",e[e.StartTagClose=4]="StartTagClose",e[e.StartTagSelfClose=5]="StartTagSelfClose",e[e.StartTag=6]="StartTag",e[e.EndTagOpen=7]="EndTagOpen",e[e.EndTagClose=8]="EndTagClose",e[e.EndTag=9]="EndTag",e[e.DelimiterAssign=10]="DelimiterAssign",e[e.AttributeName=11]="AttributeName",e[e.AttributeValue=12]="AttributeValue",e[e.StartDoctypeTag=13]="StartDoctypeTag",e[e.Doctype=14]="Doctype",e[e.EndDoctypeTag=15]="EndDoctypeTag",e[e.Content=16]="Content",e[e.Whitespace=17]="Whitespace",e[e.Unknown=18]="Unknown",e[e.Script=19]="Script",e[e.Styles=20]="Styles",e[e.EOS=21]="EOS",e[e.AdvancedStart=100]="AdvancedStart",e[e.AdvancedEnd=101]="AdvancedEnd",e})({}),Ig=class{constructor(e,t){k(this,"source",void 0),k(this,"len",void 0),k(this,"position",void 0),this.source=e,this.len=e.length,this.position=t}eos(){return this.len<=this.position}getSource(){return this.source}pos(){return this.position}goBackTo(e){this.position=e}goBack(e){this.position-=e}advance(e){this.position+=e}goToEnd(){this.position=this.source.length}nextChar(){return this.source.charCodeAt(this.position++)||0}peekChar(e=0){return this.source.charCodeAt(this.position+e)||0}advanceIfChar(e){return e===this.source.charCodeAt(this.position)?(this.position++,!0):!1}advanceIfChars(e){let t;if(this.position+e.length>this.source.length)return!1;for(t=0;t<e.length;t++)if(this.source.charCodeAt(this.position+t)!==e[t])return!1;return this.advance(t),!0}advanceIfRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index+t[0].length,t[0]):""}advanceUntilRegExp(e){const t=this.source.substr(this.position).match(e);return t?(this.position=this.position+t.index,t[0]):(this.goToEnd(),"")}advanceUntilChar(e){for(;this.position<this.source.length;){if(this.source.charCodeAt(this.position)===e)return!0;this.advance(1)}return!1}advanceUntilChars(e){for(;this.position+e.length<=this.source.length;){let t=0;for(;t<e.length&&this.source.charCodeAt(this.position+t)===e[t];t++);if(t===e.length)return!0;this.advance(1)}return this.goToEnd(),!1}skipWhitespace(){return this.advanceWhileChar(e=>e===Vg||e===Wg||e===$g||e===zg||e===Hg)>0}advanceWhileChar(e){const t=this.position;for(;this.position<this.len&&e(this.source.charCodeAt(this.position));)this.position++;return this.position-t}},Il=33,Xt=45,Gn=60,Ye=62,$o=47,Bg=61,Fg=34,jg=39,$g=10,Hg=13,zg=12,Vg=32,Wg=9,Ug={"text/x-handlebars-template":!0,"text/html":!0};function qg(e,t=0,r=0,n=!1){const i=new Ig(e,t);let o=r,s=0,a=18,l,c,u,d,f;function h(){return i.advanceIfRegExp(/^[_:a-zA-Z][_:\w-.\d]*/).toLowerCase()}function g(){return i.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase()}function y(C,O,E){return a=O,s=C,l=E,O}function A(){const C=i.pos(),O=o,E=L();return E!==21&&C===i.pos()&&!(n&&(E===4||E===8))?(i.advance(1),y(C,18)):E}function L(){const C=i.pos();if(i.eos())return y(C,21);let O;switch(o){case 6:return i.advanceIfChars([Xt,Xt,Ye])?(o=0,y(C,2)):(i.advanceUntilChars([Xt,Xt,Ye]),y(C,1));case 3:return i.advanceIfChar(Ye)?(o=0,y(C,15)):(i.advanceUntilChar(Ye),y(C,14));case 0:if(i.advanceIfChar(Gn)){if(!i.eos()&&i.peekChar()===Il){if(i.advanceIfChars([Il,Xt,Xt]))return o=6,y(C,0);if(i.advanceIfRegExp(/^!doctype/i))return o=3,y(C,13)}return i.advanceIfChar($o)?(o=2,y(C,7)):(o=1,y(C,3))}return i.advanceUntilChar(Gn),y(C,16);case 2:return h().length>0?(o=5,y(C,9)):i.skipWhitespace()?y(C,17,"Tag name must directly follow the open bracket."):(o=5,i.advanceUntilChar(Ye),C<i.pos()?y(C,18,"End tag name expected."):L());case 5:if(i.skipWhitespace())return y(C,17);if(i.advanceIfChar(Ye))return o=0,y(C,8);if(n&&i.peekChar()===Gn)return o=0,y(C,8,"Closing bracket missing.");O="Closing bracket expected.";break;case 1:return u=h(),f=void 0,d=void 0,u.length>0?(c=!1,o=4,y(C,6)):i.skipWhitespace()?y(C,17,"Tag name must directly follow the open bracket."):(o=4,i.advanceUntilChar(Ye),C<i.pos()?y(C,18,"Start tag name expected."):L());case 4:return i.skipWhitespace()?(c=!0,y(C,17)):c&&(d=g(),d.length>0)?(o=9,c=!1,y(C,11)):i.advanceIfChars([$o,Ye])?(o=0,y(C,5)):i.advanceIfChar(Ye)?(u==="script"?f&&Ug[f]?o=0:o=7:u==="style"?o=8:o=0,y(C,4)):n&&i.peekChar()===Gn?(o=0,y(C,4,"Closing bracket missing.")):(i.advance(1),y(C,18,"Unexpected character in tag."));case 9:return i.skipWhitespace()?(c=!0,y(C,17)):i.advanceIfChar(Bg)?(o=10,y(C,10)):(o=4,L());case 10:if(i.skipWhitespace())return y(C,17);let E=i.advanceIfRegExp(/^[^\s"'`=<>]+/);if(E.length>0)return i.peekChar()===Ye&&i.peekChar(-1)===$o&&(i.goBack(1),E=E.substr(0,E.length-1)),d==="type"&&(f=E),o=4,c=!1,y(C,12);const m=i.peekChar();return m===jg||m===Fg?(i.advance(1),i.advanceUntilChar(m)&&i.advance(1),d==="type"&&(f=i.getSource().substring(C+1,i.pos()-1)),o=4,c=!1,y(C,12)):(o=4,c=!1,L());case 7:let b=1;for(;!i.eos();){const S=i.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);if(S.length===0)return i.goToEnd(),y(C,19);if(S==="<!--")b===1&&(b=2);else if(S==="-->")b=1;else if(S[1]!=="/")b===2&&(b=3);else if(b===3)b=2;else{i.goBack(S.length);break}}return o=0,C<i.pos()?y(C,19):L();case 8:return i.advanceUntilRegExp(/<\/style/i),o=0,C<i.pos()?y(C,20):L()}return i.advance(1),o=0,y(C,18,O)}return{scan:A,getTokenType:()=>a,getTokenOffset:()=>s,getTokenLength:()=>i.pos()-s,getTokenEnd:()=>i.pos(),getTokenText:()=>i.getSource().substring(s,i.pos()),getScannerState:()=>o,getTokenError:()=>l}}function Gg(e,t){return t||e.start!==e.end?`<!DOCTYPE${e.content}>`:""}function Xg(e,t){const r=`<!DOCTYPE${e.content}>`;return e.start=t,e.endTagStart=e.startTagEnd=e.end=t+r.length,r}function Yg(e,t){return t||e.start!==e.end?`<!--${e.content}-->`:""}function Kg(e,t){const r=`<!--${e.content}-->`;return e.start=t,e.startTagEnd=t+4,e.end=t+r.length,e.endTagStart=e.end-3,r}var Ho=new Set(["area","br","col","embed","hr","img","input","link","meta","param","vk-snippet-end"]);function Qg(e){return e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(t,r)=>r.toUpperCase())}var Bl=Object.create(null);function Zg(e,t){const r=Bl[e]||(Bl[e]=Object.create(null));let n=r[t];if(typeof n!="boolean"){const i=document.createElement(e)[Qg(t)];n=r[t]=typeof i<"u"&&typeof i!="boolean"}return n}function zo(e,t){if(e.start===e.end||t)return"";switch(e.type){case I.ELEMENT:return Wo(e,t);case I.ROOT:return[...e.children].map(r=>zo(r,t)).join("");case I.DOCTYPE:return Gg(e,t);case I.COMMENT:return Yg(e,t);default:return e.content||""}}function Vo(e,t=0){if(e.start===e.end)return"";switch(e.type){case I.ELEMENT:return eb(e,t);case I.ROOT:return jl(e,t);case I.DOCTYPE:return Xg(e,t);case I.COMMENT:return Kg(e,t);default:return e.start=e.startTagEnd=t,e.end=e.endTagStart=t+(e.content?.length||0),e.content||""}}function Fl(e){const t=e.tag?.toLowerCase();let r="";if(t){const n=e.attributes;if(n){const i=Object.keys(n);for(const o of i){const s=n[o]===null?"":n[o];typeof s=="string"&&(r+=s===""&&o!=="em"&&!Zg(t,o)?` ${o}`:` ${o}="${s.replaceAll('"',"'")}"`)}}}return r}function Jg(e,t){let r="";if(e.startTagEnd!==e.endTagStart||t)for(const n of e.children)r+=zo(n);return r}function jl(e,t){let r="";if(e.startTagEnd!==e.endTagStart)for(const n of e.children)r+=Vo(n,t+r.length);return r}function $l(e,t){if(e.start!==e.startTagEnd||t){const r=e.tag?.toLowerCase()||"div",n=Fl(e);return r==="vk-snippet-end"?`<${r}${n}/>`:`<${r}${n}>`}return""}function Hl(e,t){return t||e.endTagStart!==e.end?`</${e.tag?.toLowerCase()||"div"}>`:""}function Wo(e,t,r=!0){const n=e.tag?.toLowerCase()||"div",i=$l(e,t);if(Ho.has(n))return i;{const o=Hl(e,t);return`${i}${r?Jg(e,t):""}${o}`}}function eb(e,t){const r=e.tag?.toLowerCase()||"div",n=$l(e);if(e.start=t,e.startTagEnd=t+n.length,Ho.has(r)){e.endTagStart=e.startTagEnd,e.end=e.startTagEnd;const i=o=>{for(const s of o.children)s.start=s.startTagEnd=s.endTagStart=s.end=o.end,i(s)};return i(e),n}else{const i=jl(e,e.startTagEnd);e.endTagStart=e.startTagEnd+i.length;const o=Hl(e);return e.end=e.endTagStart+o.length,`${n}${i}${o}`}}function Uo(e,t){let r=0,n=e.length;if(n===0)return 0;for(;r<n;){const i=Math.floor((r+n)/2);t(e[i])?n=i:r=i+1}return r}var I=(function(e){return e[e.HTML=0]="HTML",e[e.ELEMENT=1]="ELEMENT",e[e.ROOT=2]="ROOT",e[e.COMMENT=3]="COMMENT",e[e.DOCTYPE=4]="DOCTYPE",e[e.ADVANCED=5]="ADVANCED",e})({}),Xn=e=>e.type===0?e.start-1:e.start,tb=e=>e.type===0?e.end+1:e.end,Oe=class Vm{get attributeNames(){return this.attributes?Object.keys(this.attributes):[]}get root(){return this.parent?this.parent.root:this}constructor(t,r,n,i){k(this,"start",void 0),k(this,"end",void 0),k(this,"children",void 0),k(this,"parent",void 0),k(this,"content",void 0),k(this,"type",1),k(this,"tag",void 0),k(this,"closed",!1),k(this,"startTagEnd",void 0),k(this,"endTagStart",void 0),k(this,"attributes",void 0),k(this,"createdBy",void 0),k(this,"isDirty",void 0),this.start=t,this.end=r,this.children=n,this.parent=i}isSameTag(t){return this.tag===void 0?t===void 0:t!==void 0&&this.tag.length===t.length&&this.tag.toLowerCase()===t}get firstChild(){return this.children[0]}get lastChild(){return this.children.length?this.children[this.children.length-1]:void 0}findNodeBefore(t){const r=Uo(this.children,n=>t<=Xn(n))-1;if(r>=0){const n=this.children[r];if(t>Xn(n)){if(t<n.end)return n.findNodeBefore(t);const i=n.lastChild;return i&&i.end===n.end?n.findNodeBefore(t):n}}return this}findNodeAt(t){const r=Uo(this.children,n=>t<=Xn(n))-1;if(r>=0){const n=this.children[r];if(t>=Xn(n)&&t<=tb(n))return n.findNodeAt(t)}return this}find(t){if(t(this))return this;for(const r of this.children){const n=r.find(t);if(n)return n}}closest(t){let r=this;do if(t(r))return r;while(r=r.parent)}parents(){return this.parent?[this.parent,...this.parent.parents()]:[]}closestFromRoot(t,r=!0){const n=r?[this,...this.parents()]:this.parents();for(let i=n.length-1;i>=0;i--){const o=n[i];if(t(o))return o}}contains(t){return!!t.closest(r=>r===this)}clone(t=this.parent,r=this.start,n=!0){const i=this.start-r,o=new Vm(r,this.end-i,[],t);return o.children=n?this.children.map(s=>s.clone(o,s.start-i)):[],o.attributes={...this.attributes},o.closed=this.closed,o.content=this.content,o.startTagEnd=this.startTagEnd,o.endTagStart=this.endTagStart,o.tag=this.tag,o.type=this.type,o}};function rb(e){if(typeof e=="string"){const t=e.startsWith("'")||e.startsWith('"')?1:0,r=e.endsWith("'")||e.endsWith('"')?e.length-1:e.length;return e.substring(t,r)}return e}var zl=class{constructor(e,t){k(this,"text",void 0),k(this,"type",void 0),k(this,"node",void 0),k(this,"replaces",void 0),this.text=e,this.type=t}get hasNode(){return!!this.node}addReplace(e){this.replaces?.push(e)}start(e,t,r){if(!this.node){const n=this.node=new Oe(e,this.text.length,[],r);n.type=this.type,n.startTagEnd=t,this.replaces=[]}}finish(e,t){const r=this.replaces,n=this.node,i=e+(t||0);if(r){for(const o of r){const s=o.parent;if(!s)throw new Error("parent not defined");const a=s.children.indexOf(o);s.children.splice(a,1)}this.replaces=void 0}if(n){const o=n.parent;if(!o)throw new Error("parent not defined");o.children.push(n),n.closed=t!==void 0,n.endTagStart=e,n.end=i,n.content=this.text.substring(n.startTagEnd,e),this.node=void 0}}},Vl=class{constructor(e){k(this,"dataManager",void 0),this.dataManager=e}parse(e,t=[]){const r=qg(e,void 0,void 0,!0),n=new Oe(0,e.length,[],void 0);n.type=I.ROOT;let i=n,o=-1,s,a=null,l=r.scan();const c=()=>{if(!i.tag){const g=i.parent.children,y=g[g.length-2],A=e.substring(i.start,i.end);y?.type===I.HTML?(y.content=(y.content||"")+A,y.end=i.end,g.splice(g.length-1,1)):(i.type=I.HTML,i.content=A,i.children=[]),i.type=I.HTML}i=i.parent},u=new zl(e,I.COMMENT),d=new zl(e,I.DOCTYPE),f=g=>{i.children.push(g)};for(;l!==Ce.EOS;){switch(l){case Ce.StartDoctypeTag:d.start(r.getTokenOffset(),r.getTokenEnd(),i);break;case Ce.EndDoctypeTag:{const C=i.lastChild,O=d.node;if(!O)throw new Error("");const E=C?C.end:i.startTagEnd!==void 0?i.startTagEnd:i.start;if(E!==O.start){const m=e.substring(E,O.start);if(m){const b=new Oe(E,O.start,[],i);b.type=I.HTML,b.content=m,f(b)}}d.finish(r.getTokenOffset(),r.getTokenLength());break}case Ce.StartCommentTag:u.start(r.getTokenOffset(),r.getTokenEnd(),i);break;case Ce.EndCommentTag:{const C=i.lastChild,O=u.node;if(!O)throw new Error("");const E=C?C.end:i.startTagEnd!==void 0?i.startTagEnd:i.start;if(E!==O.start){const m=e.substring(E,O.start);if(m){const b=new Oe(E,O.start,[],i);b.type=I.HTML,b.content=m,f(b)}}u.finish(r.getTokenOffset(),r.getTokenLength());break}case Ce.StartTagOpen:const g=i.lastChild,y=new Oe(r.getTokenOffset(),e.length,[],i),A=g?g.end:i.startTagEnd!==void 0?i.startTagEnd:i.start;if(A!==y.start){const C=e.substring(A,y.start);if(C){const O=new Oe(A,y.start,[],i);O.type=I.HTML,O.content=C,f(O)}}f(y),i=y;break;case Ce.StartTag:i.tag=r.getTokenText();break;case Ce.StartTagClose:i.parent&&(i.end=r.getTokenEnd(),r.getTokenLength()?(i.startTagEnd=r.getTokenEnd(),i.tag&&this.dataManager.isVoidElement(i.tag)&&(i.closed=!0,c())):c());break;case Ce.StartTagSelfClose:i.parent&&(i.closed=!0,i.end=r.getTokenEnd(),i.startTagEnd=r.getTokenEnd(),c());break;case Ce.EndTagOpen:o=r.getTokenOffset(),s=void 0;break;case Ce.EndTag:s=r.getTokenText().toLowerCase();break;case Ce.EndTagClose:let L=i;for(;!L.isSameTag(s)&&L.parent;)L=L.parent;if(L.parent){const C=i.lastChild,O=C?C.end:i.startTagEnd===void 0?i.start:i.startTagEnd;if(O!==o){const E=e.substring(O,o);if(E){const m=new Oe(O,o,[],i);m.type=I.HTML,m.content=E,f(m)}}for(;i!==L;)i.end=o,i.closed=!1,c();i.closed=!0,i.endTagStart=o,i.end=r.getTokenEnd(),c()}break;case Ce.AttributeName:{a=r.getTokenText();let C=i.attributes;C||(i.attributes=C={}),C[a]=null;break}case Ce.AttributeValue:{const C=r.getTokenText(),O=i.attributes;O&&a&&(O[a]=rb(C),a=null);break}}l=r.scan()}for(;i.parent;)i.end=e.length,i.closed=!1,c();u.hasNode,u.finish(e.length);const h=n.lastChild?.end||0;if(h<e.length){const g=e.substring(h);if(g){const y=new Oe(h,e.length,[],n);y.type=I.HTML,y.content=g,f(y)}}return{roots:n.children,findNodeBefore:n.findNodeBefore.bind(n),findNodeAt:n.findNodeAt.bind(n)}}},$N=new Vl(new Dl(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"])),nb=new Dl(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr","vk-snippet-end"]),ib=new Vl(nb);function Yt(e){return ib.parse(e)}function qo(e){if(e){const t=document.createElement("div");return t.insertAdjacentHTML("afterbegin",e),t.firstChild||document.createTextNode("")}else return document.createTextNode("")}var Kt,Tt;function ob(e){const t=Kt;return Kt=e,()=>{Kt===e&&(Kt=t)}}function sb(e){const t=Tt;return Tt=e,()=>{Tt===e&&(Tt=t)}}function Wl(e,t,r){return Kt?Kt(e,t,r):r}function ab(){return Tt!==void 0}function Ul(e,t,r){return Tt?Tt(e,t,r):r}var Go;function lb(){return Go||(Go=document.implementation.createHTMLDocument("")),Go}function cb(e,t){let r;switch(t?.toLowerCase()){case"tr":r=e.createElement("table");break;case"td":r=e.createElement("tr");break;case"head":case"body":r=e.createElement("html");break;case"documenttype":case"html":{const n=e.implementation.createHTMLDocument();for(const i of[...n.childNodes])i.remove();return n}default:r=e.createElement("div")}return r}var ub=new Set(["onclick","onload","onchange","onsubmit","onmouseover","onkeydown","onerror"]),db=new Set(["script","style","xmp"]);function fb(e,t){return!(t&&db.has(t.toLowerCase())||ub.has(e.toLowerCase()))}var hb=e=>{let t=e.indexOf("&");for(;t!==-1;){if(e.indexOf(";",t)!==-1)return!0;t=e.indexOf("&",t+1)}return!1};function ql(e,t,r){let n=e.tagName.toLowerCase();n==="html"&&(n="div");const i=`<${n} ${t}="${r}"/>`,o=cb(lb(),n);if(o instanceof Document)return;o.innerHTML=i;const s=o.querySelector(n);if(!s)throw new Error("targetElement is not defined");const a=s.getAttributeNode(t);a&&e.setAttributeNode(a.cloneNode())}function st(e,t,r){try{fb(t,e.tagName)&&!hb(r)?e.setAttribute(t,r):ql(e,t,r)}catch{ql(e,t,r)}}function Yn(e,t=!0){const r=e.content;switch(e.type){case I.ROOT:{const n=document.implementation.createHTMLDocument();for(const i of[...n.childNodes])n.removeChild(i);if(t)for(const i of e.children)n.appendChild(Yn(i));return n}case I.DOCTYPE:return new DOMParser().parseFromString(`<!DOCTYPE${e.content}>`,"text/html").doctype;case I.COMMENT:return document.createComment(r||"");case I.ELEMENT:if(e.tag){const n=document.createElement(e.tag);if(Object.defineProperty(n,"$$tagName",{enumerable:!1,configurable:!1,value:e.tag}),e.attributes)for(const i of e.attributeNames){const o=e.attributes[i];try{const s=Wl(n,i,typeof o=="string"?o:"");s!==null&&st(n,i,s)}catch{}}if(t)for(const i of e.children)n.appendChild(Yn(i));return n}return document.createTextNode("<");case I.HTML:return qo(r||"");default:throw new Error("unsupported node")}}function xe(e){return Yt(e).roots.map(t=>Yn(t))}function Gl(e,t,r){const n=xe(r);switch(t){case"afterend":e.after(...n);break;case"afterbegin":e.prepend(...n);break;case"beforeend":e.append(...n);break;case"beforebegin":e.before(...n)}}function $e(e,t){e.remove?.(t)}var Xo=ge("SandboxHtmlDocument"),Yo=ge("SandboxRemoteDocument"),Ko=ge("SandboxTextDocument"),Qo=ge("SandboxDocumentMapping"),Xl=ge("SandboxSyncCommit"),Yl=ge("SandboxLayoutProfile"),mb=ge("SandboxState"),Kl=ge("SandboxAttributePipeline"),Ql=ge("SandboxAmpService"),Zl=ge("SandboxImageReload"),Zo=ge("SandboxImageCache"),Jl=ge("SandboxFocus");function pb(e){const t=new Pg,r=Ng(t),n=ob((o,s,a)=>t.isEmpty?a:jo(o,s,a,{pipeline:t})),i=sb((o,s,a)=>t.isEmpty?a:t.serialize(a,{element:o,tag:o.tagName.toLowerCase(),attribute:s,stage:"apply"}));return e.inject(Kl,t),{pipeline:t,dispose(){i(),n(),r.dispose(),t.dispose(),$e(e,Kl)}}}function gb(e,t){if(!e)return;const{minify:r,cssbeautify:n,HTMLDocument:i}=t;let o=document.head.querySelector('style[em="styles"]'),s="";o?s=i.getInnerHtml(o):(o=document.createElement("style"),o.setAttribute("em","styles"),o=document.head.insertAdjacentElement("beforeend",o));const a=document.createElement("div");a.insertAdjacentHTML("afterbegin",e);let l=r(s+`
2
2
  `+[...a.querySelectorAll("style")].map(c=>c.innerHTML).join(`
3
3
  `),{restructure:!0,forceMediaMerge:!0}).css;l=n(l,{indent:" ",autosemicolon:!0}),o.textContent=`
4
4
  `+l+`
@@ -16,7 +16,7 @@ ${Nb()}
16
16
  value: `+(o||"<empty string>")+`
17
17
  --------`+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:r&&r.loc&&r.loc.source||"<unknown>",start:l,end:c},i},ki=new Map,hr=new Map,Li=45,ze=bS,mr=yS;function Vs(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Li&&e.charCodeAt(t+1)===Li}function ju(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Li&&e.charCodeAt(t+1)!==Li){const r=e.indexOf("-",t+2);if(r!==-1)return e.substring(t,r+1)}return""}function bS(e){if(ki.has(e))return ki.get(e);const t=e.toLowerCase();let r=ki.get(t);if(r===void 0){const n=Vs(t,0),i=n?"":ju(t,0);r=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:n})}return ki.set(e,r),r}function yS(e){if(hr.has(e))return hr.get(e);let t=e,r=e[0];r==="/"?r=e[1]==="/"?"//":"/":r!=="_"&&r!=="*"&&r!=="$"&&r!=="#"&&r!=="+"&&r!=="&"&&(r="");const n=Vs(t,r.length);if(!n&&(t=t.toLowerCase(),hr.has(t))){const a=hr.get(t);return hr.set(e,a),a}const i=n?"":ju(t,r.length),o=t.substr(0,r.length+i.length),s=Object.freeze({basename:t.substr(o.length),name:t.substr(r.length),hack:r,vendor:i,prefix:o,custom:n});return hr.set(e,s),s}var $u=["initial","inherit","unset","revert","revert-layer"],en=43,Je=45,Ws=110,pr=!0,vS=!1;function Us(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function tn(e,t,r){for(;e!==null&&(e.type===13||e.type===25);)e=r(++t);return t}function yt(e,t,r,n){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===en||i===Je){if(r)return 0;t++}for(;t<e.value.length;t++)if(!he(e.value.charCodeAt(t)))return 0;return n+1}function qs(e,t,r){let n=!1,i=tn(e,t,r);if(e=r(i),e===null)return t;if(e.type!==10)if(Us(e,en)||Us(e,Je)){if(n=!0,i=tn(r(++i),i,r),e=r(i),e===null||e.type!==10)return 0}else return t;if(!n){const o=e.value.charCodeAt(0);if(o!==en&&o!==Je)return 0}return yt(e,n?0:1,n,i)}function ES(e,t){let r=0;if(!e)return 0;if(e.type===10)return yt(e,0,vS,r);if(e.type===1&&e.value.charCodeAt(0)===Je){if(!ur(e.value,1,Ws))return 0;switch(e.value.length){case 2:return qs(t(++r),r,t);case 3:return e.value.charCodeAt(2)!==Je?0:(r=tn(t(++r),r,t),e=t(r),yt(e,0,pr,r));default:return e.value.charCodeAt(2)!==Je?0:yt(e,3,pr,r)}}else if(e.type===1||Us(e,en)&&t(r+1).type===1){if(e.type!==1&&(e=t(++r)),e===null||!ur(e.value,0,Ws))return 0;switch(e.value.length){case 1:return qs(t(++r),r,t);case 2:return e.value.charCodeAt(1)!==Je?0:(r=tn(t(++r),r,t),e=t(r),yt(e,0,pr,r));default:return e.value.charCodeAt(1)!==Je?0:yt(e,2,pr,r)}}else if(e.type===12){let n=e.value.charCodeAt(0),i=n===en||n===Je?1:0,o=i;for(;o<e.value.length&&he(e.value.charCodeAt(o));o++);return o===i||!ur(e.value,o,Ws)?0:o+1===e.value.length?qs(t(++r),r,t):e.value.charCodeAt(o+1)!==Je?0:o+2===e.value.length?(r=tn(t(++r),r,t),e=t(r),yt(e,0,pr,r)):yt(e,o+2,pr,r)}return 0}var _S=43,Hu=45,zu=63,SS=117;function Gs(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function wS(e,t){return e.value.charCodeAt(0)===t}function rn(e,t,r){let n=0;for(let i=t;i<e.value.length;i++){const o=e.value.charCodeAt(i);if(o===Hu&&r&&n!==0)return rn(e,t+n+1,!1),6;if(!gt(o)||++n>6)return 0}return n}function Oi(e,t,r){if(!e)return 0;for(;Gs(r(t),zu);){if(++e>6)return 0;t++}return t}function CS(e,t){let r=0;if(e===null||e.type!==1||!ur(e.value,0,SS)||(e=t(++r),e===null))return 0;if(Gs(e,_S))return e=t(++r),e===null?0:e.type===1?Oi(rn(e,0,!0),++r,t):Gs(e,zu)?Oi(1,++r,t):0;if(e.type===10){const n=rn(e,1,!0);return n===0?0:(e=t(++r),e===null?r:e.type===12||e.type===10?!wS(e,Hu)||!rn(e,1,!1)?0:r+1:Oi(n,r,t))}return e.type===12?Oi(rn(e,1,!0),++r,t):0}var AS=["calc(","-moz-calc(","-webkit-calc("],Xs=new Map([[2,22],[21,22],[19,20],[23,24]]),TS=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],kS=["deg","grad","rad","turn"],LS=["s","ms"],OS=["hz","khz"],xS=["dpi","dpcm","dppx","x"],PS=["fr"],NS=["db"],MS=["st"];function Ve(e,t){return t<e.length?e.charCodeAt(t):0}function Vu(e,t){return Kr(e,0,e.length,t)}function Wu(e,t){for(let r=0;r<t.length;r++)if(Vu(e,t[r]))return!0;return!1}function Uu(e,t){return t!==e.length-2?!1:Ve(e,t)===92&&he(Ve(e,t+1))}function xi(e,t,r){if(e&&e.type==="Range"){const n=Number(r!==void 0&&r!==t.length?t.substr(0,r):t);if(isNaN(n)||e.min!==null&&n<e.min&&typeof e.min!="string"||e.max!==null&&n>e.max&&typeof e.max!="string")return!0}return!1}function RS(e,t){let r=0,n=[],i=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==r)break e;if(r=n.pop(),n.length===0){i++;break e}break;case 2:case 21:case 19:case 23:n.push(r),r=Xs.get(e.type)}i++}while(e=t(i));return i}function Be(e){return function(t,r,n){return t===null?0:t.type===2&&Wu(t.value,AS)?RS(t,r):e(t,r,n)}}function J(e){return function(t){return t===null||t.type!==e?0:1}}function DS(e){if(e===null||e.type!==1)return 0;const t=e.value.toLowerCase();return Wu(t,$u)||Vu(t,"default")?0:1}function IS(e){return e===null||e.type!==1||Ve(e.value,0)!==45||Ve(e.value,1)!==45?0:1}function BS(e){if(e===null||e.type!==4)return 0;const t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let r=1;r<t;r++)if(!gt(Ve(e.value,r)))return 0;return 1}function FS(e){return e===null||e.type!==4||!vi(Ve(e.value,1),Ve(e.value,2),Ve(e.value,3))?0:1}function jS(e,t){if(!e)return 0;let r=0,n=[],i=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==r)break e;r=n.pop();break;case 17:if(r===0)break e;break;case 9:if(r===0&&e.value==="!")break e;break;case 2:case 21:case 19:case 23:n.push(r),r=Xs.get(e.type)}i++}while(e=t(i));return i}function $S(e,t){if(!e)return 0;let r=0,n=[],i=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==r)break e;r=n.pop();break;case 2:case 21:case 19:case 23:n.push(r),r=Xs.get(e.type)}i++}while(e=t(i));return i}function ct(e){return e&&(e=new Set(e)),function(t,r,n){if(t===null||t.type!==12)return 0;const i=Si(t.value,0);if(e!==null){const o=t.value.indexOf("\\",i),s=o===-1||!Uu(t.value,o)?t.value.substr(i):t.value.substring(i,o);if(e.has(s.toLowerCase())===!1)return 0}return xi(n,t.value,i)?0:1}}function HS(e,t,r){return e===null||e.type!==11||xi(r,e.value,e.value.length-1)?0:1}function qu(e){return typeof e!="function"&&(e=function(){return 0}),function(t,r,n){return t!==null&&t.type===10&&Number(t.value)===0?1:e(t,r,n)}}function zS(e,t,r){if(e===null)return 0;const n=Si(e.value,0);return n!==e.value.length&&!Uu(e.value,n)||xi(r,e.value,n)?0:1}function VS(e,t,r){if(e===null||e.type!==10)return 0;let n=Ve(e.value,0)===43||Ve(e.value,0)===45?1:0;for(;n<e.value.length;n++)if(!he(Ve(e.value,n)))return 0;return xi(r,e.value,n)?0:1}var Gu={"ident-token":J(1),"function-token":J(2),"at-keyword-token":J(3),"hash-token":J(4),"string-token":J(5),"bad-string-token":J(6),"url-token":J(7),"bad-url-token":J(8),"delim-token":J(9),"number-token":J(10),"percentage-token":J(11),"dimension-token":J(12),"whitespace-token":J(13),"CDO-token":J(14),"CDC-token":J(15),"colon-token":J(16),"semicolon-token":J(17),"comma-token":J(18),"[-token":J(19),"]-token":J(20),"(-token":J(21),")-token":J(22),"{-token":J(23),"}-token":J(24),string:J(5),ident:J(1),"custom-ident":DS,"custom-property-name":IS,"hex-color":BS,"id-selector":FS,"an-plus-b":ES,urange:CS,"declaration-value":jS,"any-value":$S,dimension:Be(ct(null)),angle:Be(ct(kS)),decibel:Be(ct(NS)),frequency:Be(ct(OS)),flex:Be(ct(PS)),length:Be(qu(ct(TS))),resolution:Be(ct(xS)),semitones:Be(ct(MS)),time:Be(ct(LS)),percentage:Be(HS),zero:qu(),number:Be(zS),integer:Be(VS)};function WS(e,t,r){return Object.assign(Ai("SyntaxError",e),{input:t,offset:r,rawMessage:e,message:e+`
18
18
  `+t+`
19
- --`+new Array((r||t.length)+1).join("-")+"^"})}var US=9,qS=10,GS=12,XS=13,YS=32,KS=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){const t=this.str.charCodeAt(e);if(t!==XS&&t!==qS&&t!==GS&&t!==YS&&t!==US)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new WS(e,this.str,this.pos)}},QS=9,ZS=10,JS=12,ew=13,tw=32,Xu=33,Ys=35,Yu=38,Pi=39,Ku=40,rw=41,Qu=42,Ks=43,Qs=44,Zu=45,Zs=60,Ju=62,Js=63,nw=64,Ni=91,ea=93,Mi=123,ed=124,td=125,rd=8734,nn=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),nd={" ":1,"&&":2,"||":3,"|":4};function Ri(e){return e.substringToPos(e.findWsEnd(e.pos))}function gr(e){let t=e.pos;for(;t<e.str.length;t++){const r=e.str.charCodeAt(t);if(r>=128||nn[r]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Di(e){let t=e.pos;for(;t<e.str.length;t++){const r=e.str.charCodeAt(t);if(r<48||r>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function iw(e){const t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function id(e){let t=null,r=null;return e.eat(Mi),t=Di(e),e.charCode()===Qs?(e.pos++,e.charCode()!==td&&(r=Di(e))):r=t,e.eat(td),{min:Number(t),max:r?Number(r):0}}function ow(e){let t=null,r=!1;switch(e.charCode()){case Qu:e.pos++,t={min:0,max:0};break;case Ks:e.pos++,t={min:1,max:0};break;case Js:e.pos++,t={min:0,max:1};break;case Ys:e.pos++,r=!0,e.charCode()===Mi?t=id(e):e.charCode()===Js?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Mi:t=id(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}function br(e,t){const r=ow(e);return r!==null?(r.term=t,e.charCode()===Ys&&e.charCodeAt(e.pos-1)===Ks?br(e,r):r):t}function ta(e){const t=e.peek();return t===""?null:{type:"Token",value:t}}function sw(e){let t;return e.eat(Zs),e.eat(Pi),t=gr(e),e.eat(Pi),e.eat(Ju),br(e,{type:"Property",name:t})}function aw(e){let t=null,r=null,n=1;return e.eat(Ni),e.charCode()===Zu&&(e.peek(),n=-1),n==-1&&e.charCode()===rd?e.peek():(t=n*Number(Di(e)),nn[e.charCode()]!==0&&(t+=gr(e))),Ri(e),e.eat(Qs),Ri(e),e.charCode()===rd?e.peek():(n=1,e.charCode()===Zu&&(e.peek(),n=-1),r=n*Number(Di(e)),nn[e.charCode()]!==0&&(r+=gr(e))),e.eat(ea),{type:"Range",min:t,max:r}}function lw(e){let t,r=null;return e.eat(Zs),t=gr(e),e.charCode()===Ku&&e.nextCharCode()===rw&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Ni&&(Ri(e),r=aw(e)),e.eat(Ju),br(e,{type:"Type",name:t,opts:r})}function cw(e){const t=gr(e);return e.charCode()===Ku?(e.pos++,{type:"Function",name:t}):br(e,{type:"Keyword",name:t})}function uw(e,t){function r(i,o){return{type:"Group",terms:i,combinator:o,disallowEmpty:!1,explicit:!1}}let n;for(t=Object.keys(t).sort((i,o)=>nd[i]-nd[o]);t.length>0;){n=t.shift();let i=0,o=0;for(;i<e.length;i++){const s=e[i];s.type==="Combinator"&&(s.value===n?(o===-1&&(o=i-1),e.splice(i,1),i--):(o!==-1&&i-o>1&&(e.splice(o,i-o,r(e.slice(o,i),n)),i=o+1),o=-1))}o!==-1&&t.length&&e.splice(o,i-o,r(e.slice(o,i),n))}return n}function od(e){const t=[],r={};let n,i=null,o=e.pos;for(;n=fw(e);)n.type!=="Spaces"&&(n.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=o,e.error("Unexpected combinator")),r[n.value]=!0):i!==null&&i.type!=="Combinator"&&(r[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(n),i=n,o=e.pos);return i!==null&&i.type==="Combinator"&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:uw(t,r)||" ",disallowEmpty:!1,explicit:!1}}function dw(e){let t;return e.eat(Ni),t=od(e),e.eat(ea),t.explicit=!0,e.charCode()===Xu&&(e.pos++,t.disallowEmpty=!0),t}function fw(e){let t=e.charCode();if(t<128&&nn[t]===1)return cw(e);switch(t){case ea:break;case Ni:return br(e,dw(e));case Zs:return e.nextCharCode()===Pi?sw(e):lw(e);case ed:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===ed?2:1))};case Yu:return e.pos++,e.eat(Yu),{type:"Combinator",value:"&&"};case Qs:return e.pos++,{type:"Comma"};case Pi:return br(e,{type:"String",value:iw(e)});case tw:case QS:case ZS:case ew:case JS:return{type:"Spaces",value:Ri(e)};case nw:return t=e.nextCharCode(),t<128&&nn[t]===1?(e.pos++,{type:"AtKeyword",name:gr(e)}):ta(e);case Qu:case Ks:case Js:case Ys:case Xu:break;case Mi:if(t=e.nextCharCode(),t<48||t>57)return ta(e);break;default:return ta(e)}}function sd(e){const t=new KS(e),r=od(t);return t.pos!==e.length&&t.error("Unexpected input"),r.terms.length===1&&r.terms[0].type==="Group"?r.terms[0]:r}var on=function(){};function ad(e){return typeof e=="function"?e:on}function hw(e,t,r){function n(s){switch(i.call(r,s),s.type){case"Group":s.terms.forEach(n);break;case"Multiplier":n(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}o.call(r,s)}let i=on,o=on;if(typeof t=="function"?i=t:t&&(i=ad(t.enter),o=ad(t.leave)),i===on&&o===on)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");n(e,r)}var mw={decorator(e){const t=[];let r=null;return{...e,node(n){const i=r;r=n,e.node.call(this,n),r=i},emit(n,i,o){t.push({type:i,value:n,node:o?null:r})},result(){return t}}}};function pw(e){const t=[];return Ci(e,(r,n,i)=>t.push({type:r,value:e.slice(n,i),node:null})),t}function gw(e,t){return typeof e=="string"?pw(e):t.generate(e,mw)}var Y={type:"Match"},K={type:"Mismatch"},ra={type:"DisallowEmpty"},bw=40,yw=41;function ve(e,t,r){return t===Y&&r===K||e===Y&&t===Y&&r===Y?e:(e.type==="If"&&e.else===K&&t===Y&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:r})}function ld(e){return e.length>2&&e.charCodeAt(e.length-2)===bw&&e.charCodeAt(e.length-1)===yw}function cd(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&ld(e.name)}function na(e,t,r){switch(e){case" ":{let n=Y;for(let i=t.length-1;i>=0;i--){const o=t[i];n=ve(o,n,K)}return n}case"|":{let n=K,i=null;for(let o=t.length-1;o>=0;o--){let s=t[o];if(cd(s)&&(i===null&&o>0&&cd(t[o-1])&&(i=Object.create(null),n=ve({type:"Enum",map:i},Y,n)),i!==null)){const a=(ld(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in i)){i[a]=s;continue}}i=null,n=ve(s,Y,n)}return n}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=K;for(let i=t.length-1;i>=0;i--){const o=t[i];let s;t.length>1?s=na(e,t.filter(function(a){return a!==o}),!1):s=Y,n=ve(o,s,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let n=r?Y:K;for(let i=t.length-1;i>=0;i--){const o=t[i];let s;t.length>1?s=na(e,t.filter(function(a){return a!==o}),!0):s=Y,n=ve(o,s,n)}return n}}}function vw(e){let t=Y,r=ia(e.term);if(e.max===0)r=ve(r,ra,K),t=ve(r,null,K),t.then=ve(Y,Y,t),e.comma&&(t.then.else=ve({type:"Comma",syntax:e},t,K));else for(let n=e.min||1;n<=e.max;n++)e.comma&&t!==Y&&(t=ve({type:"Comma",syntax:e},t,K)),t=ve(r,ve(Y,Y,t),K);if(e.min===0)t=ve(Y,Y,t);else for(let n=0;n<e.min-1;n++)e.comma&&t!==Y&&(t=ve({type:"Comma",syntax:e},t,K)),t=ve(r,t,K);return t}function ia(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=na(e.combinator,e.terms.map(ia),!1);return e.disallowEmpty&&(t=ve(t,ra,K)),t}case"Multiplier":return vw(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function oa(e,t){return typeof e=="string"&&(e=sd(e)),{type:"MatchGraph",match:ia(e),syntax:t||null,source:e}}var{hasOwnProperty:ud}=Object.prototype,Ew=0,_w=1,sa=2,dd=3,fd="Match",Sw="Mismatch",ww="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Cw=15e3,Aw=0;function Tw(e){let t=null,r=null,n=e;for(;n!==null;)r=n.prev,n.prev=t,t=n,n=r;return t}function aa(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const n=t.charCodeAt(r);let i=e.charCodeAt(r);if(i>=65&&i<=90&&(i=i|32),i!==n)return!1}return!0}function kw(e){return e.type!==9?!1:e.value!=="?"}function hd(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||kw(e)}function md(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function Lw(e,t,r){function n(){do C++,L=C<e.length?e[C]:null;while(L!==null&&(L.type===13||L.type===25))}function i(m){const b=C+m;return b<e.length?e[b]:null}function o(m,b){return{nextState:m,matchStack:E,syntaxStack:d,thenStack:f,tokenIndex:C,prev:b}}function s(m){f={nextState:m,matchStack:E,syntaxStack:d,prev:f}}function a(m){h=o(m,h)}function l(){E={type:_w,syntax:t.syntax,token:L,prev:E},n(),g=null,C>O&&(O=C)}function c(){d={syntax:t.syntax,opts:t.syntax.opts||d!==null&&d.opts||null,prev:d},E={type:sa,syntax:t.syntax,token:E.token,prev:E}}function u(){E.type===sa?E=E.prev:E={type:dd,syntax:d.syntax,token:E.token,prev:E},d=d.prev}let d=null,f=null,h=null,g=null,y=0,A=null,L=null,C=-1,O=0,E={type:Ew,syntax:null,token:null,prev:null};for(n();A===null&&++y<Cw;)switch(t.type){case"Match":if(f===null){if(L!==null&&(C!==e.length-1||L.value!=="\\0"&&L.value!=="\\9")){t=K;break}A=fd;break}if(t=f.nextState,t===ra)if(f.matchStack===E){t=K;break}else t=Y;for(;f.syntaxStack!==d;)u();f=f.prev;break;case"Mismatch":if(g!==null&&g!==!1)(h===null||C>h.tokenIndex)&&(h=g,g=!1);else if(h===null){A=Sw;break}t=h.nextState,f=h.thenStack,d=h.syntaxStack,E=h.matchStack,C=h.tokenIndex,L=C<e.length?e[C]:null,h=h.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==K&&a(t.else),t.then!==Y&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const S=t.syntax.terms;if(t.index===S.length){if(t.mask===0||t.syntax.all){t=K;break}t=Y;break}if(t.mask===(1<<S.length)-1){t=Y;break}for(;t.index<S.length;t.index++){const p=1<<t.index;if((t.mask&p)===0){a(t),s({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|p}),t=S[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(L!==null){let S=L.value.toLowerCase();if(S.indexOf("\\")!==-1&&(S=S.replace(/\\[09].*$/,"")),ud.call(t.map,S)){t=t.map[S];break}}t=K;break;case"Generic":{const S=d!==null?d.opts:null,p=C+Math.floor(t.fn(L,i,S));if(!isNaN(p)&&p>C){for(;C<p;)l();t=Y}else t=K;break}case"Type":case"Property":{const S=t.type==="Type"?"types":"properties",p=ud.call(r,S)?r[S][t.name]:null;if(!p||!p.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(g!==!1&&L!==null&&t.type==="Type"&&(t.name==="custom-ident"&&L.type===1||t.name==="length"&&L.value==="0")){g===null&&(g=o(t,h)),t=K;break}c(),t=p.match;break}case"Keyword":{const S=t.name;if(L!==null){let p=L.value;if(p.indexOf("\\")!==-1&&(p=p.replace(/\\[09].*$/,"")),aa(p,S)){l(),t=Y;break}}t=K;break}case"AtKeyword":case"Function":if(L!==null&&aa(L.value,t.name)){l(),t=Y;break}t=K;break;case"Token":if(L!==null&&L.value===t.value){l(),t=Y;break}t=K;break;case"Comma":L!==null&&L.type===18?hd(E.token)?t=K:(l(),t=md(L)?K:Y):t=hd(E.token)||md(L)?Y:K;break;case"String":let m="",b=C;for(;b<e.length&&m.length<t.value.length;b++)m+=e[b].value;if(aa(m,t.value)){for(;C<b;)l();t=Y}else t=K;break;default:throw new Error("Unknown node type: "+t.type)}switch(Aw+=y,A){case null:A=ww,E=null;break;case fd:for(;d!==null;)u();break;default:E=null}return{tokens:e,reason:A,iterations:y,match:E,longestMatch:O}}function pd(e,t,r){const n=Lw(e,t,r||{});if(n.match===null)return n;let i=n.match,o=n.match={syntax:t.syntax||null,match:[]};const s=[o];for(i=Tw(i).prev;i!==null;){switch(i.type){case sa:o.match.push(o={syntax:i.syntax,match:[]}),s.push(o);break;case dd:s.pop(),o=s[s.length-1];break;default:o.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return n}var Ow=F.__exportAll({getTrace:()=>gd,isKeyword:()=>Nw,isProperty:()=>Pw,isType:()=>xw});function gd(e){function t(i){return i===null?!1:i.type==="Type"||i.type==="Property"||i.type==="Keyword"}function r(i){if(Array.isArray(i.match)){for(let o=0;o<i.match.length;o++)if(r(i.match[o]))return t(i.syntax)&&n.unshift(i.syntax),!0}else if(i.node===e)return n=t(i.syntax)?[i.syntax]:[],!0;return!1}let n=null;return this.matched!==null&&r(this.matched),n}function xw(e,t){return la(this,e,r=>r.type==="Type"&&r.name===t)}function Pw(e,t){return la(this,e,r=>r.type==="Property"&&r.name===t)}function Nw(e){return la(this,e,t=>t.type==="Keyword")}function la(e,t,r){const n=gd.call(e,t);return n===null?!1:n.some(r)}function bd(e){return"node"in e?e.node:bd(e.match[0])}function yd(e){return"node"in e?e.node:yd(e.match[e.match.length-1])}function vd(e,t,r,n,i){function o(a){if(a.syntax!==null&&a.syntax.type===n&&a.syntax.name===i){const l=bd(a),c=yd(a);e.syntax.walk(t,function(u,d,f){if(u===l){const h=new ae;do{if(h.appendData(d.data),d.data===c)break;d=d.next}while(d!==null);s.push({parent:f,nodes:h})}})}Array.isArray(a.match)&&a.match.forEach(o)}const s=[];return r.matched!==null&&o(r.matched),s}var{hasOwnProperty:sn}=Object.prototype;function ca(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Ed(e){return!!e&&ca(e.offset)&&ca(e.line)&&ca(e.column)}function Mw(e,t){return function(n,i){if(!n||n.constructor!==Object)return i(n,"Type of node should be an Object");for(let o in n){let s=!0;if(sn.call(n,o)!==!1){if(o==="type")n.type!==e&&i(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if(o==="loc"){if(n.loc===null)continue;if(n.loc&&n.loc.constructor===Object)if(typeof n.loc.source!="string")o+=".source";else if(!Ed(n.loc.start))o+=".start";else if(!Ed(n.loc.end))o+=".end";else continue;s=!1}else if(t.hasOwnProperty(o)){s=!1;for(let a=0;!s&&a<t[o].length;a++){const l=t[o][a];switch(l){case String:s=typeof n[o]=="string";break;case Boolean:s=typeof n[o]=="boolean";break;case null:s=n[o]===null;break;default:typeof l=="string"?s=n[o]&&n[o].type===l:Array.isArray(l)&&(s=n[o]instanceof ae)}}}else i(n,"Unknown field `"+o+"` for "+e+" node type");s||i(n,"Bad value for `"+e+"."+o+"`")}}for(const o in t)sn.call(t,o)&&sn.call(n,o)===!1&&i(n,"Field `"+e+"."+o+"` is missed")}}function Rw(e,t){const r=t.structure,n={type:String,loc:!0},i={type:'"'+e+'"'};for(const o in r){if(sn.call(r,o)===!1)continue;const s=[],a=n[o]=Array.isArray(r[o])?r[o].slice():[r[o]];for(let l=0;l<a.length;l++){const c=a[l];if(c===String||c===Boolean)s.push(c.name);else if(c===null)s.push("null");else if(typeof c=="string")s.push("<"+c+">");else if(Array.isArray(c))s.push("List");else throw new Error("Wrong value `"+c+"` in `"+e+"."+o+"` structure definition")}i[o]=s.join(" | ")}return{docs:i,check:Mw(e,n)}}function Dw(e){const t={};if(e.node){for(const r in e.node)if(sn.call(e.node,r)){const n=e.node[r];if(n.structure)t[r]=Rw(r,n);else throw new Error("Missed `structure` field in `"+r+"` node type definition")}}return t}var Iw=oa($u.join(" | "));function ua(e,t,r){const n={};for(const i in e)e[i].syntax&&(n[i]=r?e[i].syntax:zs(e[i].syntax,{compact:t}));return n}function Bw(e,t,r){const n={};for(const[i,o]of Object.entries(e))n[i]={prelude:o.prelude&&(r?o.prelude.syntax:zs(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&ua(o.descriptors,t,r)};return n}function Fw(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function We(e,t,r){return{matched:e,iterations:r,error:t,...Ow}}function yr(e,t,r,n){const i=gw(r,e.syntax);let o;return Fw(i)?We(null,new Error("Matching for a tree with var() is not supported")):(n&&(o=pd(i,e.cssWideKeywordsSyntax,e)),(!n||!o.match)&&(o=pd(i,t.match,e),!o.match)?We(null,new gS(o.reason,t.syntax,r,o),o.iterations):We(o.match,null,o.iterations))}var _d=class{constructor(e,t,r){if(this.cssWideKeywordsSyntax=Iw,this.syntax=t,this.generic=!1,this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||Dw(e),e){if(e.types)for(const n in e.types)this.addType_(n,e.types[n]);if(e.generic){this.generic=!0;for(const n in Gu)this.addType_(n,Gu[n])}if(e.atrules)for(const n in e.atrules)this.addAtrule_(n,e.atrules[n]);if(e.properties)for(const n in e.properties)this.addProperty_(n,e.properties[n])}}checkStructure(e){function t(i,o){n.push({node:i,message:o})}const r=this.structure,n=[];return this.syntax.walk(e,function(i){r.hasOwnProperty(i.type)?r[i.type].check(i,t):t(i,"Unknown node type `"+i.type+"`")}),n.length?n:!1}createDescriptor(e,t,r,n=null){const i={type:t,name:r},o={type:t,name:r,parent:n,serializable:typeof e=="string"||e&&typeof e.type=="string",syntax:null,match:null};return typeof e=="function"?o.match=oa(e,i):(typeof e=="string"?Object.defineProperty(o,"syntax",{get(){return Object.defineProperty(o,"syntax",{value:sd(e)}),o.syntax}}):o.syntax=e,Object.defineProperty(o,"match",{get(){return Object.defineProperty(o,"match",{value:oa(o.syntax,i)}),o.match}})),o}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((r,n)=>(r[n]=this.createDescriptor(t.descriptors[n],"AtruleDescriptor",n,e),r),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Jr("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const r=this.checkAtruleName(e);if(r)return r;const n=this.getAtrule(e);if(!n.prelude&&t)return new SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(n.prelude&&!t&&!yr(this,n.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const r=this.checkAtruleName(e);if(r)return r;const n=this.getAtrule(e),i=ze(t);if(!n.descriptors)return new SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!n.descriptors[i.name]&&!n.descriptors[i.basename])return new Jr("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Jr("Unknown property",e)}matchAtrulePrelude(e,t){const r=this.checkAtrulePrelude(e,t);if(r)return We(null,r);const n=this.getAtrule(e);return n.prelude?yr(this,n.prelude,t||"",!1):We(null,null)}matchAtruleDescriptor(e,t,r){const n=this.checkAtruleDescriptorName(e,t);if(n)return We(null,n);const i=this.getAtrule(e),o=ze(t);return yr(this,i.descriptors[o.name]||i.descriptors[o.basename],r,!1)}matchDeclaration(e){return e.type!=="Declaration"?We(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(mr(e).custom)return We(null,new Error("Lexer matching doesn't applicable for custom properties"));const r=this.checkPropertyName(e);return r?We(null,r):yr(this,this.getProperty(e),t,!0)}matchType(e,t){const r=this.getType(e);return r?yr(this,r,t,!1):We(null,new Jr("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?We(null,new Jr("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),yr(this,e,t,!1))}findValueFragments(e,t,r,n){return vd(this,t,this.matchProperty(e,t),r,n)}findDeclarationValueFragments(e,t,r){return vd(this,e.value,this.matchDeclaration(e),t,r)}findAllFragments(e,t,r){const n=[];return this.syntax.walk(e,{visit:"Declaration",enter:i=>{n.push.apply(n,this.findDeclarationValueFragments(i,t,r))}}),n}getAtrule(e,t=!0){const r=ze(e);return(r.vendor&&t?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(e,t=!0){const r=this.getAtrule(e,t);return r&&r.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){const r=mr(e);return(r.vendor&&t?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(n,i,o,s){if(o.has(i))return o.get(i);o.set(i,!1),s.syntax!==null&&hw(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;const l=a.type==="Type"?n.types:n.properties,c=a.type==="Type"?t:r;(!hasOwnProperty.call(l,a.name)||e(n,a.name,c,l[a.name]))&&o.set(i,!0)},this)}let t=new Map,r=new Map;for(const n in this.types)e(this,n,t,this.types[n]);for(const n in this.properties)e(this,n,r,this.properties[n]);return t=[...t.keys()].filter(n=>t.get(n)),r=[...r.keys()].filter(n=>r.get(n)),t.length||r.length?{types:t,properties:r}:null}dump(e,t){return{generic:this.generic,types:ua(this.types,!t,e),properties:ua(this.properties,!t,e),atrules:Bw(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}},{hasOwnProperty:vr}=Object.prototype,jw={generic:!0,types:da,atrules:{prelude:Ad,descriptors:Ad},properties:da,parseContext:$w,scope:wd,atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function Ii(e){return e&&e.constructor===Object}function Sd(e){return Ii(e)?{...e}:e}function $w(e,t){return Object.assign(e,t)}function wd(e,t){for(const r in t)vr.call(t,r)&&(Ii(e[r])?wd(e[r],t[r]):e[r]=Sd(t[r]));return e}function Cd(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function da(e,t){if(typeof t=="string")return Cd(e,t);const r={...e};for(let n in t)vr.call(t,n)&&(r[n]=Cd(vr.call(e,n)?e[n]:void 0,t[n]));return r}function Ad(e,t){const r=da(e,t);return!Ii(r)||Object.keys(r).length?r:null}function an(e,t,r){for(const n in r)if(vr.call(r,n)!==!1){if(r[n]===!0)vr.call(t,n)&&(e[n]=Sd(t[n]));else if(r[n]){if(typeof r[n]=="function"){const i=r[n];e[n]=i({},e[n]),e[n]=i(e[n]||{},t[n])}else if(Ii(r[n])){const i={};for(let o in e[n])i[o]=an({},e[n][o],r[n]);for(let o in t[n])i[o]=an(i[o]||{},t[n][o],r[n]);e[n]=i}else if(Array.isArray(r[n])){const i={},o=r[n].reduce(function(s,a){return s[a]=!0,s},{});for(const[s,a]of Object.entries(e[n]||{}))i[s]={},a&&an(i[s],a,o);for(const s in t[n])vr.call(t[n],s)&&(i[s]||(i[s]={}),t[n]&&t[n][s]&&an(i[s],t[n][s],o));e[n]=i}}}return e}var fa=(e,t)=>an(e,t,jw);function Td(e){const t=U_(e),r=uS(e),n=sS(e),{fromPlainObject:i,toPlainObject:o}=aS(r),s={lexer:null,createLexer:a=>new _d(a,s,s.lexer.structure),tokenize:Ci,parse:t,generate:n,walk:r,find:r.find,findLast:r.findLast,findAll:r.findAll,fromPlainObject:i,toPlainObject:o,fork(a){const l=fa({},e);return Td(typeof a=="function"?a(l,Object.assign):fa(l,a))}};return s.lexer=new _d({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}var Hw=e=>Td(fa({},e)),zw={generic:!0,types:{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|( <calc-sum> )","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fit-content()":"fit-content( [<length>|<percentage>] )","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length>|<percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length>|<percentage>|min-content|max-content|auto] , [<length>|<percentage>|<flex>|min-content|max-content|auto] )","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( <length> )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","saturate()":"saturate( <number-percentage> )","scale()":"scale( <number> , <number>? )","scale3d()":"scale3d( <number> , <number> , <number> )","scaleX()":"scaleX( <number> )","scaleY()":"scaleY( <number> )","scaleZ()":"scaleZ( <number> )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( [<length>|<percentage>] )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text","border-radius":"<length-percentage>{1,2}",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","reversed-counter-name":"reversed( <counter-name> )",right:"<length>|auto","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto","track-group":"'(' [<string>* <track-minmax> <string>*]+ ')' ['[' <positive-integer> ']']?|<track-minmax>","track-list-v0":"[<string>* <track-group> <string>*]+|none","track-minmax":"minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","positive-integer":"<integer [0,∞]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end","caret-color":"auto|<color>",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[size||layout||style||paint]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}}}},Vw=F.__exportAll({generate:()=>Gw,name:()=>Uw,parse:()=>kd,structure:()=>qw}),et=43,Pe=45,Bi=110,Rt=!0,Ww=!1;function Fi(e,t){let r=this.tokenStart+e;const n=this.charCodeAt(r);for((n===et||n===Pe)&&(t&&this.error("Number sign is not allowed"),r++);r<this.tokenEnd;r++)he(this.charCodeAt(r))||this.error("Integer is expected",r)}function Er(e){return Fi.call(this,0,e)}function vt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let r="";switch(t){case Bi:r="N is expected";break;case Pe:r="HyphenMinus is expected"}this.error(r,this.tokenStart+e)}}function ha(){let e=0,t=0,r=this.tokenType;for(;r===13||r===25;)r=this.lookupType(++e);if(r!==10)if(this.isDelim(et,e)||this.isDelim(Pe,e)){t=this.isDelim(et,e)?et:Pe;do r=this.lookupType(++e);while(r===13||r===25);r!==10&&(this.skip(e),Er.call(this,Rt))}else return null;return e>0&&this.skip(e),t===0&&(r=this.charCodeAt(this.tokenStart),r!==et&&r!==Pe&&this.error("Number sign is expected")),Er.call(this,t!==0),t===Pe?"-"+this.consume(10):this.consume(10)}var Uw="AnPlusB",qw={a:[String,null],b:[String,null]};function kd(){const e=this.tokenStart;let t=null,r=null;if(this.tokenType===10)Er.call(this,Ww),r=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,Pe))switch(t="-1",vt.call(this,1,Bi),this.tokenEnd-this.tokenStart){case 2:this.next(),r=ha.call(this);break;case 3:vt.call(this,2,Pe),this.next(),this.skipSC(),Er.call(this,Rt),r="-"+this.consume(10);break;default:vt.call(this,2,Pe),Fi.call(this,3,Rt),this.next(),r=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(et)&&this.lookupType(1)===1){let n=0;switch(t="1",this.isDelim(et)&&(n=1,this.next()),vt.call(this,0,Bi),this.tokenEnd-this.tokenStart){case 1:this.next(),r=ha.call(this);break;case 2:vt.call(this,1,Pe),this.next(),this.skipSC(),Er.call(this,Rt),r="-"+this.consume(10);break;default:vt.call(this,1,Pe),Fi.call(this,2,Rt),this.next(),r=this.substrToCursor(e+n+1)}}else if(this.tokenType===12){const n=this.charCodeAt(this.tokenStart),i=n===et||n===Pe;let o=this.tokenStart+i;for(;o<this.tokenEnd&&he(this.charCodeAt(o));o++);o===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),vt.call(this,o-this.tokenStart,Bi),t=this.substring(e,o),o+1===this.tokenEnd?(this.next(),r=ha.call(this)):(vt.call(this,o-this.tokenStart+1,Pe),o+2===this.tokenEnd?(this.next(),this.skipSC(),Er.call(this,Rt),r="-"+this.consume(10)):(Fi.call(this,o-this.tokenStart+2,Rt),this.next(),r=this.substrToCursor(o+1)))}else this.error();return t!==null&&t.charCodeAt(0)===et&&(t=t.substr(1)),r!==null&&r.charCodeAt(0)===et&&(r=r.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:r}}function Gw(e){if(e.a){const t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){const r=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+r)}else this.tokenize(t)}else this.tokenize(e.b)}var Xw=F.__exportAll({generate:()=>Jw,name:()=>Kw,parse:()=>Od,structure:()=>Zw,walkContext:()=>Qw});function Ld(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Yw(){for(let e=1,t;t=this.lookupType(e);e++){if(t===24)return!0;if(t===23||t===3)return!1}return!1}var Kw="Atrule",Qw="atrule",Zw={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Od(){const e=this.tokenStart;let t,r,n=null,i=null;switch(this.eat(3),t=this.substrToCursor(e+1),r=t.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(this.parseAtrulePrelude?n=this.parseWithFallback(this.AtrulePrelude.bind(this,t),Ld):n=Ld.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?i=this.atrule[r].block.call(this):i=this.Block(Yw.call(this))}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:t,prelude:n,block:i}}function Jw(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var eC=F.__exportAll({generate:()=>iC,name:()=>tC,parse:()=>xd,structure:()=>nC,walkContext:()=>rC}),tC="AtrulePrelude",rC="atrulePrelude",nC={children:[[]]};function xd(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?t=this.atrule[e].prelude.call(this):t=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==23&&this.tokenType!==17&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function iC(e){this.children(e)}var oC=F.__exportAll({generate:()=>hC,name:()=>dC,parse:()=>Nd,structure:()=>fC}),sC=36,Pd=42,ji=61,aC=94,ma=124,lC=126;function cC(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(Pd)?(t=!0,this.next()):this.isDelim(ma)||this.eat(1),this.isDelim(ma)?this.charCodeAt(this.tokenStart+1)!==ji?(this.next(),this.eat(1)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function uC(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==ji&&t!==lC&&t!==aC&&t!==sC&&t!==Pd&&t!==ma&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==ji&&(this.isDelim(ji)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var dC="AttributeSelector",fC={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Nd(){const e=this.tokenStart;let t,r=null,n=null,i=null;return this.eat(19),this.skipSC(),t=cC.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(r=uC.call(this),this.skipSC(),n=this.tokenType===5?this.String():this.Identifier(),this.skipSC()),this.tokenType===1&&(i=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:r,value:n,flags:i}}function hC(e){this.token(9,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(1,e.flags),this.token(9,"]")}var mC=F.__exportAll({generate:()=>EC,name:()=>bC,parse:()=>Dd,structure:()=>vC,walkContext:()=>yC});function Md(e){return this.Raw(e,null,!0)}function pC(){return this.parseWithFallback(this.Rule,Md)}function Rd(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function gC(){if(this.tokenType===17)return Rd.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,Rd);return this.tokenType===17&&this.next(),e}var bC="Block",yC="block",vC={children:[["Atrule","Rule","Declaration"]]};function Dd(e){const t=e?gC:pC,r=this.tokenStart;let n=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:n.push(this.parseWithFallback(this.Atrule,Md));break;default:n.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(r,this.tokenStart),children:n}}function EC(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}var _C=F.__exportAll({generate:()=>CC,name:()=>SC,parse:()=>Id,structure:()=>wC}),SC="Brackets",wC={children:[[]]};function Id(e,t){const r=this.tokenStart;let n=null;return this.eat(19),n=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(r,this.tokenStart),children:n}}function CC(e){this.token(9,"["),this.children(e),this.token(9,"]")}var AC=F.__exportAll({generate:()=>kC,name:()=>"CDC",parse:()=>Bd,structure:()=>TC}),ZN="CDC",TC=[];function Bd(){const e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function kC(){this.token(15,"-->")}var LC=F.__exportAll({generate:()=>xC,name:()=>"CDO",parse:()=>Fd,structure:()=>OC}),JN="CDO",OC=[];function Fd(){const e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function xC(){this.token(14,"<!--")}var PC=F.__exportAll({generate:()=>DC,name:()=>MC,parse:()=>jd,structure:()=>RC}),NC=46,MC="ClassSelector",RC={name:String};function jd(){return this.eatDelim(NC),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function DC(e){this.token(9,"."),this.token(1,e.name)}var IC=F.__exportAll({generate:()=>zC,name:()=>$C,parse:()=>Hd,structure:()=>HC}),BC=43,$d=47,FC=62,jC=126,$C="Combinator",HC={name:String};function Hd(){const e=this.tokenStart;let t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case FC:case BC:case jC:this.next();break;case $d:this.next(),this.eatIdent("deep"),this.eatDelim($d);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function zC(e){this.tokenize(e.name)}var VC=F.__exportAll({generate:()=>XC,name:()=>qC,parse:()=>zd,structure:()=>GC}),WC=42,UC=47,qC="Comment",GC={value:String};function zd(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===WC&&this.charCodeAt(t-1)===UC&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function XC(e){this.token(25,"/*"+e.value+"*/")}var YC=F.__exportAll({generate:()=>aA,name:()=>iA,parse:()=>Ud,structure:()=>sA,walkContext:()=>oA}),Vd=33,KC=35,QC=36,ZC=38,JC=42,eA=43,Wd=47;function tA(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function rA(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function nA(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(Vd)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}var iA="Declaration",oA="declaration",sA={important:[Boolean,String],property:String,value:["Value","Raw"]};function Ud(){const e=this.tokenStart,t=this.tokenIndex,r=lA.call(this),n=Vs(r),i=n?this.parseCustomProperty:this.parseValue,o=n?rA:tA;let s=!1,a;this.skipSC(),this.eat(16);const l=this.tokenIndex;if(n||this.skipSC(),i?a=this.parseWithFallback(nA,o):a=o.call(this,this.tokenIndex),n&&a.type==="Value"&&a.children.isEmpty){for(let c=l-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Vd)&&(s=cA.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==17&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:r,value:a}}function aA(e){this.token(1,e.property),this.token(16,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,e.important===!0?"important":e.important))}function lA(){const e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case JC:case QC:case eA:case KC:case ZC:this.next();break;case Wd:this.next(),this.isDelim(Wd)&&this.next()}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function cA(){this.eat(9),this.skipSC();const e=this.consume(1);return e==="important"?!0:e}var uA=F.__exportAll({generate:()=>mA,name:()=>fA,parse:()=>qd,structure:()=>hA});function dA(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var fA="DeclarationList",hA={children:[["Declaration"]]};function qd(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;default:e.push(this.parseWithFallback(this.Declaration,dA))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function mA(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}var pA=F.__exportAll({generate:()=>yA,name:()=>gA,parse:()=>Gd,structure:()=>bA}),gA="Dimension",bA={value:String,unit:String};function Gd(){const e=this.tokenStart,t=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function yA(e){this.token(12,e.value+e.unit)}var vA=F.__exportAll({generate:()=>wA,name:()=>EA,parse:()=>Xd,structure:()=>SA,walkContext:()=>_A}),EA="Function",_A="function",SA={name:String,children:[[]]};function Xd(e,t){const r=this.tokenStart,n=this.consumeFunctionName(),i=n.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(r,this.tokenStart),name:n,children:o}}function wA(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var CA=F.__exportAll({generate:()=>kA,name:()=>AA,parse:()=>Yd,structure:()=>TA,xxx:()=>"XXX"}),eM="XXX",AA="Hash",TA={value:String};function Yd(){const e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function kA(e){this.token(4,"#"+e.value)}var LA=F.__exportAll({generate:()=>PA,name:()=>OA,parse:()=>Kd,structure:()=>xA}),OA="Identifier",xA={name:String};function Kd(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function PA(e){this.token(1,e.name)}var NA=F.__exportAll({generate:()=>DA,name:()=>MA,parse:()=>Qd,structure:()=>RA}),MA="IdSelector",RA={name:String};function Qd(){const e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function DA(e){this.token(9,"#"+e.name)}var IA=F.__exportAll({generate:()=>jA,name:()=>BA,parse:()=>Zd,structure:()=>FA}),BA="MediaFeature",FA={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Zd(){const e=this.tokenStart;let t,r=null;if(this.eat(21),this.skipSC(),t=this.consume(1),this.skipSC(),this.tokenType!==22){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:this.lookupNonWSType(1)===9?r=this.Ratio():r=this.Number();break;case 12:r=this.Dimension();break;case 1:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:r}}function jA(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var $A=F.__exportAll({generate:()=>VA,name:()=>HA,parse:()=>Jd,structure:()=>zA}),HA="MediaQuery",zA={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Jd(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break e}e.push(t)}return t===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function VA(e){this.children(e)}var WA=F.__exportAll({generate:()=>GA,name:()=>UA,parse:()=>ef,structure:()=>qA}),UA="MediaQueryList",qA={children:[["MediaQuery"]]};function ef(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===18);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function GA(e){this.children(e,()=>this.token(18,","))}var XA=F.__exportAll({generate:()=>KA,name:()=>"Nth",parse:()=>tf,structure:()=>YA}),tM="Nth",YA={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function tf(){this.skipSC();const e=this.tokenStart;let t=e,r=null,n;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?n=this.Identifier():n=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:n,selector:r}}function KA(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}var QA=F.__exportAll({generate:()=>e0,name:()=>ZA,parse:()=>rf,structure:()=>JA}),ZA="Number",JA={value:String};function rf(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function e0(e){this.token(10,e.value)}var t0=F.__exportAll({generate:()=>i0,name:()=>r0,parse:()=>nf,structure:()=>n0}),r0="Operator",n0={value:String};function nf(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function i0(e){this.tokenize(e.value)}var o0=F.__exportAll({generate:()=>l0,name:()=>s0,parse:()=>of,structure:()=>a0}),s0="Parentheses",a0={children:[[]]};function of(e,t){const r=this.tokenStart;let n=null;return this.eat(21),n=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(r,this.tokenStart),children:n}}function l0(e){this.token(21,"("),this.children(e),this.token(22,")")}var c0=F.__exportAll({generate:()=>f0,name:()=>u0,parse:()=>sf,structure:()=>d0}),u0="Percentage",d0={value:String};function sf(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function f0(e){this.token(11,e.value+"%")}var h0=F.__exportAll({generate:()=>b0,name:()=>m0,parse:()=>af,structure:()=>g0,walkContext:()=>p0}),m0="PseudoClassSelector",p0="function",g0={name:String,children:[["Raw"],null]};function af(){const e=this.tokenStart;let t=null,r,n;return this.eat(16),this.tokenType===2?(r=this.consumeFunctionName(),n=r.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),t=this.pseudo[n].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):r=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:r,children:t}}function b0(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var y0=F.__exportAll({generate:()=>S0,name:()=>v0,parse:()=>lf,structure:()=>_0,walkContext:()=>E0}),v0="PseudoElementSelector",E0="function",_0={name:String,children:[["Raw"],null]};function lf(){const e=this.tokenStart;let t=null,r,n;return this.eat(16),this.eat(16),this.tokenType===2?(r=this.consumeFunctionName(),n=r.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),t=this.pseudo[n].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):r=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:r,children:t}}function S0(e){this.token(16,":"),this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var w0=F.__exportAll({generate:()=>L0,name:()=>T0,parse:()=>uf,structure:()=>k0}),C0=47,A0=46;function cf(){this.skipSC();const e=this.consume(10);for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);!he(r)&&r!==A0&&this.error("Unsigned number is expected",this.tokenStart-e.length+t)}return Number(e)===0&&this.error("Zero number is not allowed",this.tokenStart-e.length),e}var T0="Ratio",k0={left:String,right:String};function uf(){const e=this.tokenStart,t=cf.call(this);let r;return this.skipSC(),this.eatDelim(C0),r=cf.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:r}}function L0(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}var O0=F.__exportAll({generate:()=>N0,name:()=>"Raw",parse:()=>df,structure:()=>P0});function x0(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var rM="Raw",P0={value:String};function df(e,t,r){const n=this.getTokenStart(e);let i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r&&this.tokenStart>n?i=x0.call(this):i=this.tokenStart,{type:"Raw",loc:this.getLocation(n,i),value:this.substring(n,i)}}function N0(e){this.tokenize(e.value)}var M0=F.__exportAll({generate:()=>F0,name:()=>D0,parse:()=>hf,structure:()=>B0,walkContext:()=>I0});function ff(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function R0(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}var D0="Rule",I0="rule",B0={prelude:["SelectorList","Raw"],block:["Block"]};function hf(){const e=this.tokenIndex,t=this.tokenStart;let r,n;return this.parseRulePrelude?r=this.parseWithFallback(R0,ff):r=ff.call(this,e),n=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:r,block:n}}function F0(e){this.node(e.prelude),this.node(e.block)}var j0=F.__exportAll({generate:()=>z0,name:()=>$0,parse:()=>mf,structure:()=>H0}),$0="Selector",H0={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function mf(){const e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function z0(e){this.children(e)}var V0=F.__exportAll({generate:()=>G0,name:()=>W0,parse:()=>pf,structure:()=>q0,walkContext:()=>U0}),W0="SelectorList",U0="selector",q0={children:[["Selector","Raw"]]};function pf(){const e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===18){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function G0(e){this.children(e,()=>this.token(18,","))}var pa=92,gf=34,bf=39;function yf(e){const t=e.length,r=e.charCodeAt(0),n=r===gf||r===bf?1:0,i=n===1&&t>1&&e.charCodeAt(t-1)===r?t-2:t-1;let o="";for(let s=n;s<=i;s++){let a=e.charCodeAt(s);if(a===pa){if(s===i){s!==t-1&&(o=e.substr(s+1));break}if(a=e.charCodeAt(++s),Ze(pa,a)){const l=s-1,c=dr(e,l);s=c-1,o+=yu(e.substring(l+1,c))}else a===13&&e.charCodeAt(s+1)===10&&s++}else o+=e[s]}return o}function ga(e,t){const r=t?"'":'"',n=t?bf:gf;let i="",o=!1;for(let s=0;s<e.length;s++){const a=e.charCodeAt(s);if(a===0){i+="�";continue}if(a<=31||a===127){i+="\\"+a.toString(16),o=!0;continue}a===n||a===pa?(i+="\\"+e.charAt(s),o=!1):(o&&(gt(a)||Mt(a))&&(i+=" "),i+=e.charAt(s),o=!1)}return r+i+r}var X0=F.__exportAll({generate:()=>Q0,name:()=>Y0,parse:()=>vf,structure:()=>K0}),Y0="String",K0={value:String};function vf(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:yf(this.consume(5))}}function Q0(e){this.token(5,ga(e.value))}var Z0=F.__exportAll({generate:()=>nT,name:()=>eT,parse:()=>_f,structure:()=>rT,walkContext:()=>tT}),J0=33;function Ef(e){return this.Raw(e,null,!1)}var eT="StyleSheet",tT="stylesheet",rT={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function _f(){const e=this.tokenStart,t=this.createList();let r;for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==J0){this.next();continue}r=this.Comment();break;case 14:r=this.CDO();break;case 15:r=this.CDC();break;case 3:r=this.parseWithFallback(this.Atrule,Ef);break;default:r=this.parseWithFallback(this.Rule,Ef)}t.push(r)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function nT(e){this.children(e)}var iT=F.__exportAll({generate:()=>lT,name:()=>sT,parse:()=>wf,structure:()=>aT}),oT=42,Sf=124;function ba(){this.tokenType!==1&&this.isDelim(oT)===!1&&this.error("Identifier or asterisk is expected"),this.next()}var sT="TypeSelector",aT={name:String};function wf(){const e=this.tokenStart;return this.isDelim(Sf)?(this.next(),ba.call(this)):(ba.call(this),this.isDelim(Sf)&&(this.next(),ba.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function lT(e){this.tokenize(e.name)}var cT=F.__exportAll({generate:()=>mT,name:()=>fT,parse:()=>Tf,structure:()=>hT}),Cf=43,Af=45,ya=63;function ln(e,t){let r=0;for(let n=this.tokenStart+e;n<this.tokenEnd;n++){const i=this.charCodeAt(n);if(i===Af&&t&&r!==0)return ln.call(this,e+r+1,!1),-1;gt(i)||this.error(t&&r!==0?"Hyphen minus"+(r<6?" or hex digit":"")+" is expected":r<6?"Hex digit is expected":"Unexpected input",n),++r>6&&this.error("Too many hex digits",n)}return this.next(),r}function $i(e){let t=0;for(;this.isDelim(ya);)++t>e&&this.error("Too many question marks"),this.next()}function uT(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Cf?"Plus sign":"Hyphen minus")+" is expected")}function dT(){let e=0;switch(this.tokenType){case 10:if(e=ln.call(this,1,!0),this.isDelim(ya)){$i.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){uT.call(this,Af),ln.call(this,1,!1);break}break;case 12:e=ln.call(this,1,!0),e>0&&$i.call(this,6-e);break;default:if(this.eatDelim(Cf),this.tokenType===1){e=ln.call(this,0,!0),e>0&&$i.call(this,6-e);break}if(this.isDelim(ya)){this.next(),$i.call(this,5);break}this.error("Hex digit or question mark is expected")}}var fT="UnicodeRange",hT={value:String};function Tf(){const e=this.tokenStart;return this.eatIdent("u"),dT.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function mT(e){this.tokenize(e.value)}var pT=32,va=92,gT=34,bT=39,yT=40,kf=41;function vT(e){const t=e.length;let r=4,n=e.charCodeAt(t-1)===kf?t-2:t-1,i="";for(;r<n&&Mt(e.charCodeAt(r));)r++;for(;r<n&&Mt(e.charCodeAt(n));)n--;for(let o=r;o<=n;o++){let s=e.charCodeAt(o);if(s===va){if(o===n){o!==t-1&&(i=e.substr(o+1));break}if(s=e.charCodeAt(++o),Ze(va,s)){const a=o-1,l=dr(e,a);o=l-1,i+=yu(e.substring(a+1,l))}else s===13&&e.charCodeAt(o+1)===10&&o++}else i+=e[o]}return i}function Lf(e){let t="",r=!1;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(i===0){t+="�";continue}if(i<=31||i===127){t+="\\"+i.toString(16),r=!0;continue}i===pT||i===va||i===gT||i===bT||i===yT||i===kf?(t+="\\"+e.charAt(n),r=!1):(r&&gt(i)&&(t+=" "),t+=e.charAt(n),r=!1)}return"url("+t+")"}var ET=F.__exportAll({generate:()=>ST,name:()=>"Url",parse:()=>Of,structure:()=>_T}),nM="Url",_T={value:String};function Of(){const e=this.tokenStart;let t;switch(this.tokenType){case 7:t=vT(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),t=yf(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function ST(e){this.token(7,Lf(e.value))}var wT=F.__exportAll({generate:()=>TT,name:()=>CT,parse:()=>xf,structure:()=>AT}),CT="Value",AT={children:[[]]};function xf(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function TT(e){this.children(e)}var kT=F.__exportAll({generate:()=>PT,name:()=>OT,parse:()=>Pf,structure:()=>xT}),LT=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),OT="WhiteSpace",xT={value:String};function Pf(){return this.eat(13),LT}function PT(e){this.token(13,e.value)}var Nf=F.__exportAll({AnPlusB:()=>Vw,Atrule:()=>Xw,AtrulePrelude:()=>eC,AttributeSelector:()=>oC,Block:()=>mC,Brackets:()=>_C,CDC:()=>AC,CDO:()=>LC,ClassSelector:()=>PC,Combinator:()=>IC,Comment:()=>VC,Declaration:()=>YC,DeclarationList:()=>uA,Dimension:()=>pA,Function:()=>vA,Hash:()=>CA,IdSelector:()=>NA,Identifier:()=>LA,MediaFeature:()=>IA,MediaQuery:()=>$A,MediaQueryList:()=>WA,Nth:()=>XA,Number:()=>QA,Operator:()=>t0,Parentheses:()=>o0,Percentage:()=>c0,PseudoClassSelector:()=>h0,PseudoElementSelector:()=>y0,Ratio:()=>w0,Raw:()=>O0,Rule:()=>M0,Selector:()=>j0,SelectorList:()=>V0,String:()=>X0,StyleSheet:()=>Z0,TypeSelector:()=>iT,UnicodeRange:()=>cT,Url:()=>ET,Value:()=>wT,WhiteSpace:()=>kT}),NT={generic:!0,...zw,node:Nf},MT=35,RT=42,Mf=43,DT=45,IT=47,BT=117;function Rf(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,BT)&&this.cmpChar(this.tokenStart+1,Mf)?this.UnicodeRange():this.Identifier();case 9:{const t=this.charCodeAt(this.tokenStart);if(t===IT||t===RT||t===Mf||t===DT)return this.Operator();t===MT&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}var FT={getNode:Rf},jT=35,$T=42,HT=43,zT=47,Df=46,VT=62,WT=124,UT=126;function qT(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function GT(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return this.lookupType(1)===16?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:this.charCodeAt(this.tokenStart)===Df&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case HT:case VT:case UT:case zT:return this.Combinator();case Df:return this.ClassSelector();case $T:case WT:return this.TypeSelector();case jT:return this.IdSelector()}}}var XT={onWhiteSpace:qT,getNode:GT};function YT(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function KT(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());const t=this.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty){for(let n=t-this.tokenIndex;n<=0;n++)if(this.lookupType(n)===13){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(r)}return e}function If(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}var QT={getNode:Rf,onWhiteSpace(e,t){If(e)&&(e.value=" "+e.value),If(t.last)&&(t.last.value+=" ")},expression:YT,var:KT},ZT=F.__exportAll({AtrulePrelude:()=>FT,Selector:()=>XT,Value:()=>QT}),JT={parse:{prelude:null,block(){return this.Block(!0)}}},e1={parse:{prelude(){const e=this.createList();switch(this.skipSC(),this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===1||this.lookupNonWSType(0)===21)&&e.push(this.MediaQueryList()),e},block:null}},t1={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(){return this.Block(!1)}}},r1={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};function n1(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function i1(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):Bf.call(this)}function Bf(){const e=this.createList();let t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:t=this.Function(n1,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(i1,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}var o1={parse:{prelude(){const e=Bf.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(){return this.Block(!1)}}},s1={"font-face":JT,import:e1,media:t1,page:r1,supports:o1},Dt={parse(){return this.createSingleNodeList(this.SelectorList())}},a1={parse(){return this.createSingleNodeList(this.Selector())}},Ff={parse(){return this.createSingleNodeList(this.Identifier())}},Hi={parse(){return this.createSingleNodeList(this.Nth())}},l1={dir:Ff,has:Dt,lang:Ff,matches:Dt,is:Dt,"-moz-any":Dt,"-webkit-any":Dt,where:Dt,not:Dt,"nth-child":Hi,"nth-last-child":Hi,"nth-last-of-type":Hi,"nth-of-type":Hi,slotted:a1},c1=F.__exportAll({AnPlusB:()=>kd,Atrule:()=>Od,AtrulePrelude:()=>xd,AttributeSelector:()=>Nd,Block:()=>Dd,Brackets:()=>Id,CDC:()=>Bd,CDO:()=>Fd,ClassSelector:()=>jd,Combinator:()=>Hd,Comment:()=>zd,Declaration:()=>Ud,DeclarationList:()=>qd,Dimension:()=>Gd,Function:()=>Xd,Hash:()=>Yd,IdSelector:()=>Qd,Identifier:()=>Kd,MediaFeature:()=>Zd,MediaQuery:()=>Jd,MediaQueryList:()=>ef,Nth:()=>tf,Number:()=>rf,Operator:()=>nf,Parentheses:()=>of,Percentage:()=>sf,PseudoClassSelector:()=>af,PseudoElementSelector:()=>lf,Ratio:()=>uf,Raw:()=>df,Rule:()=>hf,Selector:()=>mf,SelectorList:()=>pf,String:()=>vf,StyleSheet:()=>_f,TypeSelector:()=>wf,UnicodeRange:()=>Tf,Url:()=>Of,Value:()=>xf,WhiteSpace:()=>Pf}),u1={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:ZT,atrule:s1,pseudo:l1,node:c1},d1={node:Nf},f1=Hw({...NT,...u1,...d1});function Ea(e){const t={};for(const r in e){let n=e[r];n&&(Array.isArray(n)||n instanceof ae?n=n.map(Ea):n.constructor===Object&&(n=Ea(n))),t[r]=n}return t}var{tokenize:iM,parse:h1,generate:tt,lexer:jf,createLexer:oM,walk:Ae,find:sM,findLast:aM,findAll:lM,toPlainObject:cM,fromPlainObject:uM,fork:m1}=f1,{hasOwnProperty:p1}=Object.prototype;function _a(e,t){const r=Object.create(null);if(!Array.isArray(e))return null;for(let n of e)t&&(n=n.toLowerCase()),r[n]=!0;return r}function $f(e){if(!e)return null;const t=_a(e.tags,!0),r=_a(e.ids),n=_a(e.classes);return t===null&&r===null&&n===null?null:{tags:t,ids:r,classes:n}}function g1(e){let t=!1;if(e.scopes&&Array.isArray(e.scopes)){t=Object.create(null);for(let r=0;r<e.scopes.length;r++){const n=e.scopes[r];if(!n||!Array.isArray(n))throw new Error("Wrong usage format");for(const i of n){if(p1.call(t,i))throw new Error(`Class can't be used for several scopes: ${i}`);t[i]=r+1}}}return{whitelist:$f(e),blacklist:$f(e.blacklist),scopes:t}}function It(e){return!e||!e.children||e.children.isEmpty}function Hf(e,t){return e!==null&&e.children===t}function b1(e,t,r){if(e.block&&(this.stylesheet!==null&&(this.stylesheet.firstAtrulesAllowed=!1),It(e.block))){r.remove(t);return}switch(e.name){case"charset":if(It(e.prelude)){r.remove(t);return}if(t.prev){r.remove(t);return}break;case"import":if(this.stylesheet===null||!this.stylesheet.firstAtrulesAllowed){r.remove(t);return}r.prevUntil(t.prev,function(n){if(!(n.type==="Atrule"&&(n.name==="import"||n.name==="charset")))return this.root.firstAtrulesAllowed=!1,r.remove(t),!0},this);break;default:{const n=ze(e.name).basename;(n==="keyframes"||n==="media"||n==="supports")&&(It(e.prelude)||It(e.block))&&r.remove(t)}}}function y1(e,t,r){r.remove(t)}function v1(e,t,r){if(e.value.children&&e.value.children.isEmpty){r.remove(t);return}mr(e.property).custom&&/\S/.test(e.value.value)&&(e.value.value=e.value.value.trim())}function E1(e,t,r){(Hf(this.stylesheet,r)||Hf(this.block,r))&&r.remove(t)}var{hasOwnProperty:_r}=Object.prototype,_1=new Set(["keyframes"]);function zf(e,t){return e.children.forEach((r,n,i)=>{let o=!1;Ae(r,function(s){if(this.selector===null||this.selector===e)switch(s.type){case"SelectorList":(this.function===null||this.function.name.toLowerCase()!=="not")&&zf(s,t)&&(o=!0);break;case"ClassSelector":t.whitelist!==null&&t.whitelist.classes!==null&&!_r.call(t.whitelist.classes,s.name)&&(o=!0),t.blacklist!==null&&t.blacklist.classes!==null&&_r.call(t.blacklist.classes,s.name)&&(o=!0);break;case"IdSelector":t.whitelist!==null&&t.whitelist.ids!==null&&!_r.call(t.whitelist.ids,s.name)&&(o=!0),t.blacklist!==null&&t.blacklist.ids!==null&&_r.call(t.blacklist.ids,s.name)&&(o=!0);break;case"TypeSelector":s.name.charAt(s.name.length-1)!=="*"&&(t.whitelist!==null&&t.whitelist.tags!==null&&!_r.call(t.whitelist.tags,s.name.toLowerCase())&&(o=!0),t.blacklist!==null&&t.blacklist.tags!==null&&_r.call(t.blacklist.tags,s.name.toLowerCase())&&(o=!0))}}),o&&i.remove(n)}),e.children.isEmpty}function S1(e,t,r,n){if(It(e.prelude)||It(e.block)){r.remove(t);return}if(this.atrule&&_1.has(ze(this.atrule.name).basename))return;const{usage:i}=n;if(i&&(i.whitelist!==null||i.blacklist!==null)&&(zf(e.prelude,i),It(e.prelude))){r.remove(t);return}}function w1(e,t,r){if(t.data.name!=="*")return;const n=t.next&&t.next.data.type;(n==="IdSelector"||n==="ClassSelector"||n==="AttributeSelector"||n==="PseudoClassSelector"||n==="PseudoElementSelector")&&r.remove(t)}function C1(e,t,r){r.remove(t)}var Vf={Atrule:b1,Comment:y1,Declaration:v1,Raw:E1,Rule:S1,TypeSelector:w1,WhiteSpace:C1};function A1(e,t){Ae(e,{leave(r,n,i){Vf.hasOwnProperty(r.type)&&Vf[r.type].call(this,r,n,i,t)}})}function T1(e){e.block.children.forEach(t=>{t.prelude.children.forEach(r=>{r.children.forEach((n,i)=>{n.type==="Percentage"&&n.value==="100"?i.data={type:"TypeSelector",loc:n.loc,name:"to"}:n.type==="TypeSelector"&&n.name==="from"&&(i.data={type:"Percentage",loc:n.loc,value:"0"})})})})}function k1(e){ze(e.name).basename==="keyframes"&&T1(e)}var L1=/^(-?\d|--)|[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;function O1(e){return e===""||e==="-"?!1:!L1.test(e)}function x1(e){const t=e.value;!t||t.type!=="String"||O1(t.value)&&(e.value={type:"Identifier",loc:t.loc,name:t.value})}function P1(e){const t=e.children;t.forEachRight(function(r,n){if(r.type==="Identifier"){if(r.name==="bold")n.data={type:"Number",loc:r.loc,value:"700"};else if(r.name==="normal"){const i=n.prev;i&&i.data.type==="Operator"&&i.data.value==="/"&&this.remove(i),this.remove(n)}}}),t.isEmpty&&t.insert(t.createItem({type:"Identifier",name:"normal"}))}function N1(e){const t=e.children.head.data;if(t.type==="Identifier")switch(t.name){case"normal":e.children.head.data={type:"Number",loc:t.loc,value:"400"};break;case"bold":e.children.head.data={type:"Number",loc:t.loc,value:"700"}}}function M1(e){function t(){n.length||n.unshift({type:"Number",loc:null,value:"0"},{type:"Number",loc:null,value:"0"}),r.push.apply(r,n),n=[]}let r=[],n=[];e.children.forEach(i=>{if(i.type==="Operator"&&i.value===","){t(),r.push(i);return}i.type==="Identifier"&&(i.name==="transparent"||i.name==="none"||i.name==="repeat"||i.name==="scroll")||n.push(i)}),t(),e.children=new ae().fromArray(r)}function Wf(e){e.children.forEach((t,r,n)=>{t.type==="Identifier"&&t.name.toLowerCase()==="none"&&(n.head===n.tail?r.data={type:"Number",loc:t.loc,value:"0"}:n.remove(r))})}var Uf={font:P1,"font-weight":N1,background:M1,border:Wf,outline:Wf};function R1(e){if(!this.declaration)return;const t=mr(this.declaration.property);Uf.hasOwnProperty(t.basename)&&Uf[t.basename](e)}var D1=/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,I1=/^([\+\-])?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,B1=new Set(["Dimension","Hash","Identifier","Number","Raw","UnicodeRange"]);function zi(e,t){const r=t&&t.prev!==null&&B1.has(t.prev.data.type)?I1:D1;return e=String(e).replace(r,"$1$2$3"),(e===""||e==="-")&&(e="0"),e}function F1(e){e.value=zi(e.value)}var j1=new Set(["calc","min","max","clamp"]),$1=new Set(["px","mm","cm","in","pt","pc","em","ex","ch","rem","vh","vw","vmin","vmax","vm"]);function H1(e,t){const r=zi(e.value);if(e.value=r,r==="0"&&this.declaration!==null&&this.atrulePrelude===null){const n=e.unit.toLowerCase();if(!$1.has(n)||this.declaration.property==="-ms-flex"||this.declaration.property==="flex"||this.function&&j1.has(this.function.name))return;t.data={type:"Number",loc:e.loc,value:r}}}var z1=new Set(["width","min-width","max-width","height","min-height","max-height","flex","-ms-flex"]);function V1(e,t){e.value=zi(e.value),e.value==="0"&&this.declaration&&!z1.has(this.declaration.property)&&(t.data={type:"Number",loc:e.loc,value:e.value},jf.matchDeclaration(this.declaration).isType(t.data,"length")||(t.data=e))}function W1(e){e.value=e.value.replace(/\\/g,"/")}var qf={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Gf={8e5:"maroon",800080:"purple",808e3:"olive",808080:"gray","00ffff":"cyan",f0ffff:"azure",f5f5dc:"beige",ffe4c4:"bisque","000000":"black","0000ff":"blue",a52a2a:"brown",ff7f50:"coral",ffd700:"gold","008000":"green","4b0082":"indigo",fffff0:"ivory",f0e68c:"khaki","00ff00":"lime",faf0e6:"linen","000080":"navy",ffa500:"orange",da70d6:"orchid",cd853f:"peru",ffc0cb:"pink",dda0dd:"plum",f00:"red",ff0000:"red",fa8072:"salmon",a0522d:"sienna",c0c0c0:"silver",fffafa:"snow",d2b48c:"tan","008080":"teal",ff6347:"tomato",ee82ee:"violet",f5deb3:"wheat",ffffff:"white",ffff00:"yellow"};function Sa(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Xf(e,t,r,n){let i,o,s;if(t===0)i=o=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;i=Sa(l,a,e+1/3),o=Sa(l,a,e),s=Sa(l,a,e-1/3)}return[Math.round(i*255),Math.round(o*255),Math.round(s*255),n]}function wa(e){return e=e.toString(16),e.length===1?"0"+e:e}function Ca(e,t,r){let n=e.head,i=[],o=!1;for(;n!==null;){const{type:s,value:a}=n.data;switch(s){case"Number":case"Percentage":if(o)return;o=!0,i.push({type:s,value:Number(a)});break;case"Operator":if(a===","){if(!o)return;o=!1}else if(o||a!=="+")return;break;default:return}n=n.next}if(i.length===t){if(i.length===4){if(i[3].type!=="Number")return;i[3].type="Alpha"}if(r){if(i[0].type!==i[1].type||i[0].type!==i[2].type)return}else{if(i[0].type!=="Number"||i[1].type!=="Percentage"||i[2].type!=="Percentage")return;i[0].type="Angle"}return i.map(function(s){let a=Math.max(0,s.value);switch(s.type){case"Number":a=Math.min(a,255);break;case"Percentage":if(a=Math.min(a,100)/100,!r)return a;a=255*a;break;case"Angle":return(a%360+360)%360/360;case"Alpha":return Math.min(a,1)}return Math.round(a)})}}function U1(e,t){let r=e.name,n;if(r==="rgba"||r==="hsla"){if(n=Ca(e.children,4,r==="rgba"),!n)return;if(r==="hsla"&&(n=Xf(...n),e.name="rgba"),n[3]===0){const i=this.function&&this.function.name;if(n[0]===0&&n[1]===0&&n[2]===0||!/^(?:to|from|color-stop)$|gradient$/i.test(i)){t.data={type:"Identifier",loc:e.loc,name:"transparent"};return}}if(n[3]!==1){e.children.forEach((i,o,s)=>{if(i.type==="Operator"){i.value!==","&&s.remove(o);return}o.data={type:"Number",loc:i.loc,value:zi(n.shift())}});return}r="rgb"}if(r==="hsl"){if(n=n||Ca(e.children,3,!1),!n)return;n=Xf(...n),r="rgb"}if(r==="rgb"){if(n=n||Ca(e.children,3,!0),!n)return;t.data={type:"Hash",loc:e.loc,value:wa(n[0])+wa(n[1])+wa(n[2])},Yf(t.data,t)}}function q1(e,t){if(this.declaration===null)return;let r=e.name.toLowerCase();if(qf.hasOwnProperty(r)&&jf.matchDeclaration(this.declaration).isType(e,"color")){const n=qf[r];n.length+1<=r.length?t.data={type:"Hash",loc:e.loc,value:n}:(r==="grey"&&(r="gray"),e.name=r)}}function Yf(e,t){let r=e.value.toLowerCase();r.length===6&&r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&(r=r[0]+r[2]+r[4]),Gf[r]?t.data={type:"Identifier",loc:e.loc,name:Gf[r]}:e.value=r}var Kf={Atrule:k1,AttributeSelector:x1,Value:R1,Dimension:H1,Percentage:V1,Number:F1,Url:W1,Hash:Yf,Identifier:q1,Function:U1};function G1(e){Ae(e,{leave(t,r,n){Kf.hasOwnProperty(t.type)&&Kf[t.type].call(this,t,r,n)}})}var X1=class{constructor(){this.map=new Map}resolve(e){let t=this.map.get(e);return t===void 0&&(t=this.map.size+1,this.map.set(e,t)),t}};function Y1(){const e=new X1;return function(r){const n=tt(r);return r.id=e.resolve(n),r.length=n.length,r.fingerprint=null,r}}function K1(e){return e.type==="Raw"?h1(e.value,{context:"selectorList"}):e}function Q1(e,t){for(let r=0;r<3;r++)if(e[r]!==t[r])return e[r]>t[r]?e:t;return e}function Qf(e){return K1(e).children.reduce((t,r)=>Q1(Aa(r),t),[0,0,0])}function Aa(e){let t=0,r=0,n=0;return e.children.forEach(i=>{switch(i.type){case"IdSelector":t++;break;case"ClassSelector":case"AttributeSelector":r++;break;case"PseudoClassSelector":switch(i.name.toLowerCase()){case"not":case"has":case"is":case"matches":case"-webkit-any":case"-moz-any":{const[o,s,a]=Qf(i.children.first);t+=o,r+=s,n+=a;break}case"nth-child":case"nth-last-child":{const o=i.children.first;if(o.type==="Nth"&&o.selector){const[s,a,l]=Qf(o.selector);t+=s,r+=a+1,n+=l}else r++;break}case"where":break;case"before":case"after":case"first-line":case"first-letter":n++;break;default:r++}break;case"TypeSelector":i.name.endsWith("*")||n++;break;case"PseudoElementSelector":n++}}),[t,r,n]}var Z1=new Set(["first-letter","first-line","after","before"]),J1=new Set(["link","visited","hover","active","first-letter","first-line","after","before"]);function ek(e,t){const r=new Set;e.prelude.children.forEach(function(n){let i="*",o=0;n.children.forEach(function(s){switch(s.type){case"ClassSelector":if(t&&t.scopes){const a=t.scopes[s.name]||0;if(o!==0&&a!==o)throw new Error("Selector can't has classes from different scopes: "+tt(n));o=a}break;case"PseudoClassSelector":{const a=s.name.toLowerCase();J1.has(a)||r.add(`:${a}`);break}case"PseudoElementSelector":{const a=s.name.toLowerCase();Z1.has(a)||r.add(`::${a}`);break}case"TypeSelector":i=s.name.toLowerCase();break;case"AttributeSelector":s.flags&&r.add(`[${s.flags.toLowerCase()}]`);break;case"Combinator":i="*"}}),n.compareMarker=Aa(n).toString(),n.id=null,n.id=tt(n),o&&(n.compareMarker+=":"+o),i!=="*"&&(n.compareMarker+=","+i)}),e.pseudoSignature=r.size>0?[...r].sort().join(","):!1}function tk(e,t){const r=Y1();return Ae(e,{visit:"Rule",enter(n){n.block.children.forEach(r),ek(n,t.usage)}}),Ae(e,{visit:"Atrule",enter(n){n.prelude&&(n.prelude.id=null,n.prelude.id=tt(n.prelude)),ze(n.name).basename==="keyframes"&&(n.block.avoidRulesMerge=!0,n.block.children.forEach(function(i){i.prelude.children.forEach(function(o){o.compareMarker=o.id})}))}}),{declaration:r}}var{hasOwnProperty:Zf}=Object.prototype;function Jf(e,t,r,n){const i=t.data,o=ze(i.name).basename,s=i.name.toLowerCase()+"/"+(i.prelude?i.prelude.id:null);Zf.call(e,o)||(e[o]=Object.create(null)),n&&delete e[o][s],Zf.call(e[o],s)||(e[o][s]=new ae),e[o][s].append(r.remove(t))}function rk(e,t){const r=Object.create(null);let n=null;e.children.forEach(function(i,o,s){if(i.type==="Atrule"){const a=ze(i.name).basename;switch(a){case"keyframes":Jf(r,o,s,!0);return;case"media":if(t.forceMediaMerge){Jf(r,o,s,!1);return}}n===null&&a!=="charset"&&a!=="import"&&(n=o)}else n===null&&(n=o)});for(const i in r)for(const o in r[i])e.children.insertList(r[i][o],i==="media"?null:n)}function eh(e){return e.type==="Atrule"&&e.name==="media"}function nk(e,t,r){if(!eh(e))return;const n=t.prev&&t.prev.data;!n||!eh(n)||e.prelude&&n.prelude&&e.prelude.id===n.prelude.id&&(n.block.children.appendList(e.block.children),r.remove(t))}function ik(e,t){rk(e,t),Ae(e,{visit:"Atrule",reverse:!0,enter:nk})}var{hasOwnProperty:ok}=Object.prototype;function th(e,t){let r=e.head,n=t.head;for(;r!==null&&n!==null&&r.data.id===n.data.id;)r=r.next,n=n.next;return r===null&&n===null}function rh(e,t){let r=e.head,n=t.head;for(;r!==null&&n!==null&&r.data.id===n.data.id;)r=r.next,n=n.next;return r===null&&n===null}function sk(e,t){const r={eq:[],ne1:[],ne2:[],ne2overrided:[]},n=Object.create(null),i=Object.create(null);for(let o=t.head;o;o=o.next)i[o.data.id]=!0;for(let o=e.head;o;o=o.next){const s=o.data;s.fingerprint&&(n[s.fingerprint]=s.important),i[s.id]?(i[s.id]=!1,r.eq.push(s)):r.ne1.push(s)}for(let o=t.head;o;o=o.next){const s=o.data;i[s.id]&&((!ok.call(n,s.fingerprint)||!n[s.fingerprint]&&s.important)&&r.ne2.push(s),r.ne2overrided.push(s))}return r}function cn(e,t){return t.forEach(r=>{const n=r.id;let i=e.head;for(;i;){const o=i.data.id;if(o===n)return;if(o>n)break;i=i.next}e.insert(e.createItem(r),i)}),e}function nh(e,t){let r=e.head;for(;r!==null;){let n=t.head;for(;n!==null;){if(r.data.compareMarker===n.data.compareMarker)return!0;n=n.next}r=r.next}return!1}function Vi(e){switch(e.type){case"Rule":return nh(e.prelude.children,this);case"Atrule":if(e.block)return e.block.children.some(Vi,this);break;case"Declaration":return!1}return!0}function ak(e,t,r){const n=e.prelude.children,i=e.block.children;r.prevUntil(t.prev,function(o){if(o.type!=="Rule")return Vi.call(n,o);const s=o.prelude.children,a=o.block.children;if(e.pseudoSignature===o.pseudoSignature){if(th(s,n))return a.appendList(i),r.remove(t),!0;if(rh(i,a))return cn(s,n),r.remove(t),!0}return nh(n,s)})}function lk(e){Ae(e,{visit:"Rule",enter:ak})}function ck(e,t,r){const n=e.prelude.children;for(;n.head!==n.tail;){const i=new ae;i.insert(n.remove(n.head)),r.insert(r.createItem({type:"Rule",loc:e.loc,prelude:{type:"SelectorList",loc:e.prelude.loc,children:i},block:{type:"Block",loc:e.block.loc,children:e.block.children.copy()},pseudoSignature:e.pseudoSignature}),t)}}function uk(e){Ae(e,{visit:"Rule",reverse:!0,enter:ck})}var ih=1,dk=2,Sr=0,un=1,Ta=2,Wi=3,oh=["top","right","bottom","left"],fk={"margin-top":"top","margin-right":"right","margin-bottom":"bottom","margin-left":"left","padding-top":"top","padding-right":"right","padding-bottom":"bottom","padding-left":"left","border-top-color":"top","border-right-color":"right","border-bottom-color":"bottom","border-left-color":"left","border-top-width":"top","border-right-width":"right","border-bottom-width":"bottom","border-left-width":"left","border-top-style":"top","border-right-style":"right","border-bottom-style":"bottom","border-left-style":"left"},sh={margin:"margin","margin-top":"margin","margin-right":"margin","margin-bottom":"margin","margin-left":"margin",padding:"padding","padding-top":"padding","padding-right":"padding","padding-bottom":"padding","padding-left":"padding","border-color":"border-color","border-top-color":"border-color","border-right-color":"border-color","border-bottom-color":"border-color","border-left-color":"border-color","border-width":"border-width","border-top-width":"border-width","border-right-width":"border-width","border-bottom-width":"border-width","border-left-width":"border-width","border-style":"border-style","border-top-style":"border-style","border-right-style":"border-style","border-bottom-style":"border-style","border-left-style":"border-style"},hk=class{constructor(e){this.name=e,this.loc=null,this.iehack=void 0,this.sides={top:null,right:null,bottom:null,left:null}}getValueSequence(e,t){const r=[];let n="";return e.value.type!=="Value"||e.value.children.some(function(i){let o=!1;switch(i.type){case"Identifier":switch(i.name){case"\\0":case"\\9":n=i.name;return;case"inherit":case"initial":case"unset":case"revert":o=i.name}break;case"Dimension":switch(i.unit){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":o=i.unit}break;case"Hash":case"Number":case"Percentage":break;case"Function":if(i.name==="var")return!0;o=i.name;break;default:return!0}r.push({node:i,special:o,important:e.important})})||r.length>t||typeof this.iehack=="string"&&this.iehack!==n?!1:(this.iehack=n,r)}canOverride(e,t){const r=this.sides[e];return!r||t.important&&!r.important}add(e,t){function r(){const n=this.sides,i=fk[e];if(i){if(!(i in n))return!1;const o=this.getValueSequence(t,1);if(!o||!o.length)return!1;for(const s in n)if(n[s]!==null&&n[s].special!==o[0].special)return!1;return this.canOverride(i,o[0])&&(n[i]=o[0]),!0}else if(e===this.name){const o=this.getValueSequence(t,4);if(!o||!o.length)return!1;switch(o.length){case 1:o[un]=o[Sr],o[Ta]=o[Sr],o[Wi]=o[Sr];break;case 2:o[Ta]=o[Sr],o[Wi]=o[un];break;case 3:o[Wi]=o[un]}for(let s=0;s<4;s++)for(const a in n)if(n[a]!==null&&n[a].special!==o[s].special)return!1;for(let s=0;s<4;s++)this.canOverride(oh[s],o[s])&&(n[oh[s]]=o[s]);return!0}}return r.call(this)?(this.loc||(this.loc=t.loc),!0):!1}isOkToMinimize(){const e=this.sides.top,t=this.sides.right,r=this.sides.bottom,n=this.sides.left;if(e&&t&&r&&n){const i=e.important+t.important+r.important+n.important;return i===0||i===4}return!1}getValue(){const e=new ae,t=this.sides,r=[t.top,t.right,t.bottom,t.left],n=[tt(t.top.node),tt(t.right.node),tt(t.bottom.node),tt(t.left.node)];n[Wi]===n[un]&&(r.pop(),n[Ta]===n[Sr]&&(r.pop(),n[un]===n[Sr]&&r.pop()));for(let i=0;i<r.length;i++)e.appendData(r[i].node);return this.iehack&&e.appendData({type:"Identifier",loc:null,name:this.iehack}),{type:"Value",loc:null,children:e}}getDeclaration(){return{type:"Declaration",loc:this.loc,important:this.sides.top.important,property:this.name,value:this.getValue()}}};function mk(e,t,r,n){const i=e.block.children,o=e.prelude.children.first.id;return e.block.children.forEachRight(function(s,a){const l=s.property;if(!sh.hasOwnProperty(l))return;const c=sh[l];let u,d;if((!n||o===n)&&c in t&&(d=dk,u=t[c]),(!u||!u.add(l,s))&&(d=ih,u=new hk(c),!u.add(l,s))){n=null;return}t[c]=u,r.push({operation:d,block:i,item:a,shorthand:u}),n=o}),n}function pk(e,t){e.forEach(function(r){const n=r.shorthand;n.isOkToMinimize()&&(r.operation===ih?r.item.data=t(n.getDeclaration()):r.block.remove(r.item))})}function gk(e,t){const r={},n=[];Ae(e,{visit:"Rule",reverse:!0,enter(i){const o=this.block||this.stylesheet,s=(i.pseudoSignature||"")+"|"+i.prelude.children.first.id;let a,l;r.hasOwnProperty(o.id)?a=r[o.id]:(a={lastShortSelector:null},r[o.id]=a),a.hasOwnProperty(s)?l=a[s]:(l={},a[s]=l),a.lastShortSelector=mk.call(this,i,l,n,a.lastShortSelector)}}),pk(n,t.declaration)}var bk=1,yk=new Set(["src"]),ah={display:/table|ruby|flex|-(flex)?box$|grid|contents|run-in/i,"text-align":/^(start|end|match-parent|justify-all)$/i},lh={cursor:["auto","crosshair","default","move","text","wait","help","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","pointer","progress","not-allowed","no-drop","vertical-text","all-scroll","col-resize","row-resize"],overflow:["hidden","visible","scroll","auto"],position:["static","relative","absolute","fixed"]},ch={"border-width":["border"],"border-style":["border"],"border-color":["border"],"border-top":["border"],"border-right":["border"],"border-bottom":["border"],"border-left":["border"],"border-top-width":["border-top","border-width","border"],"border-right-width":["border-right","border-width","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left-width":["border-left","border-width","border"],"border-top-style":["border-top","border-style","border"],"border-right-style":["border-right","border-style","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-left-style":["border-left","border-style","border"],"border-top-color":["border-top","border-color","border"],"border-right-color":["border-right","border-color","border"],"border-bottom-color":["border-bottom","border-color","border"],"border-left-color":["border-left","border-color","border"],"margin-top":["margin"],"margin-right":["margin"],"margin-bottom":["margin"],"margin-left":["margin"],"padding-top":["padding"],"padding-right":["padding"],"padding-bottom":["padding"],"padding-left":["padding"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"font-size":["font"],"font-family":["font"],"list-style-type":["list-style"],"list-style-position":["list-style"],"list-style-image":["list-style"]};function uh(e,t,r){const n=mr(e).basename;if(n==="background")return e+":"+tt(t.value);const i=t.id;let o=r[i];if(!o){switch(t.value.type){case"Value":const s={};let a="",l="",c=!1;t.value.children.forEach(function u(d){switch(d.type){case"Value":case"Brackets":case"Parentheses":d.children.forEach(u);break;case"Raw":c=!0;break;case"Identifier":{const{name:f}=d;a||(a=ze(f).vendor),/\\[09]/.test(f)&&(l=RegExp.lastMatch),lh.hasOwnProperty(n)?lh[n].indexOf(f)===-1&&(s[f]=!0):ah.hasOwnProperty(n)&&ah[n].test(f)&&(s[f]=!0);break}case"Function":{let{name:f}=d;a||(a=ze(f).vendor),f==="rect"&&(d.children.some(h=>h.type==="Operator"&&h.value===",")||(f="rect-backward")),s[f+"()"]=!0,d.children.forEach(u);break}case"Dimension":{const{unit:f}=d;switch(/\\[09]/.test(f)&&(l=RegExp.lastMatch),f){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":s[f]=!0}break}}}),o=c?"!"+bk++:"!"+Object.keys(s).sort()+"|"+l+a;break;case"Raw":o="!"+t.value.value;break;default:o=tt(t.value)}r[i]=o}return e+o}function vk(e,t,r){const n=mr(t.property);if(ch.hasOwnProperty(n.basename)){const i=ch[n.basename];for(const o of i){const s=uh(n.prefix+o,t,r),a=e.hasOwnProperty(s)?e[s]:null;if(a&&(!t.important||a.item.data.important))return a}}}function Ek(e,t,r,n,i){const o=e.block.children;o.forEachRight(function(s,a){const{property:l}=s,c=uh(l,s,i),u=n[c];u&&!yk.has(l)?s.important&&!u.item.data.important?(n[c]={block:o,item:a},u.block.remove(u.item)):o.remove(a):vk(n,s,i)?o.remove(a):(s.fingerprint=c,n[c]={block:o,item:a})}),o.isEmpty&&r.remove(t)}function _k(e){const t={},r=Object.create(null);Ae(e,{visit:"Rule",reverse:!0,enter(n,i,o){const s=this.block||this.stylesheet,a=(n.pseudoSignature||"")+"|"+n.prelude.children.first.id;let l,c;t.hasOwnProperty(s.id)?l=t[s.id]:(l={},t[s.id]=l),l.hasOwnProperty(a)?c=l[a]:(c={},l[a]=c),Ek.call(this,n,i,o,c,r)}})}function Sk(e,t,r){const n=e.prelude.children,i=e.block.children,o=n.first.compareMarker,s={};r.nextUntil(t.next,function(a,l){if(a.type!=="Rule")return Vi.call(n,a);if(e.pseudoSignature!==a.pseudoSignature)return!0;const c=a.prelude.children.head,u=a.block.children,d=c.data.compareMarker;if(d in s)return!0;if(n.head===n.tail&&n.first.id===c.data.id){i.appendList(u),r.remove(l);return}if(rh(i,u)){const f=c.data.id;n.some((h,g)=>{const y=h.id;if(f<y)return n.insert(c,g),!0;if(!g.next)return n.insert(c),!0}),r.remove(l);return}if(d===o)return!0;s[d]=!0})}function wk(e){Ae(e,{visit:"Rule",enter:Sk})}function ka(e){return e.reduce((t,r)=>t+r.id.length+1,0)-1}function La(e){let t=0;for(const r of e)t+=r.length;return t+e.length-1}function Ck(e,t,r){const n=this.block!==null?this.block.avoidRulesMerge:!1,i=e.prelude.children,o=e.block,s=Object.create(null);let a=!0,l=!0;r.prevUntil(t.prev,function(c,u){const d=c.block,f=c.type;if(f!=="Rule"){const y=Vi.call(i,c);return!y&&f==="Atrule"&&d&&Ae(d,{visit:"Rule",enter(A){A.prelude.children.forEach(L=>{s[L.compareMarker]=!0})}}),y}if(e.pseudoSignature!==c.pseudoSignature)return!0;const h=c.prelude.children;if(l=!h.some(y=>y.compareMarker in s),!l&&!a)return!0;if(a&&th(h,i))return d.children.appendList(o.children),r.remove(t),!0;const g=sk(o.children,d.children);if(g.eq.length){if(!g.ne1.length&&!g.ne2.length)return l&&(cn(i,h),r.remove(u)),!0;if(!n)if(g.ne1.length&&!g.ne2.length){const y=ka(i),A=La(g.eq);a&&y<A&&(cn(h,i),o.children.fromArray(g.ne1))}else if(!g.ne1.length&&g.ne2.length){const y=ka(h),A=La(g.eq);l&&y<A&&(cn(i,h),d.children.fromArray(g.ne2))}else{const y={type:"SelectorList",loc:null,children:cn(h.copy(),i)},A=ka(y.children)+2;if(La(g.eq)>=A){const L=r.createItem({type:"Rule",loc:null,prelude:y,block:{type:"Block",loc:null,children:new ae().fromArray(g.eq)},pseudoSignature:e.pseudoSignature});return o.children.fromArray(g.ne1),d.children.fromArray(g.ne2overrided),a?r.insert(L,u):r.insert(L,t),!0}}}a&&(a=!h.some(y=>i.some(A=>A.compareMarker===y.compareMarker))),h.forEach(y=>{s[y.compareMarker]=!0})})}function Ak(e){Ae(e,{visit:"Rule",reverse:!0,enter:Ck})}function Tk(e,t){const r=tk(e,t);t.logger("prepare",e),ik(e,t),t.logger("mergeAtrule",e),lk(e),t.logger("initialMergeRuleset",e),uk(e),t.logger("disjoinRuleset",e),gk(e,r),t.logger("restructShorthand",e),_k(e),t.logger("restructBlock",e),wk(e),t.logger("mergeRuleset",e),Ak(e),t.logger("restructRuleset",e)}function kk(e,t){const r=new ae;let n=!1,i;return e.nextUntil(e.head,(o,s,a)=>{if(o.type==="Comment"){if(!t||o.value.charAt(0)!=="!"){a.remove(s);return}if(n||i)return!0;a.remove(s),i=o;return}o.type!=="WhiteSpace"&&(n=!0),r.insert(a.remove(s))}),{comment:i,stylesheet:{type:"StyleSheet",loc:null,children:r}}}function Lk(e,t,r,n){n.logger(`Compress block #${r}`,null,!0);let i=1;return e.type==="StyleSheet"&&(e.firstAtrulesAllowed=t,e.id=i++),Ae(e,{visit:"Atrule",enter(o){o.block!==null&&(o.block.id=i++)}}),n.logger("init",e),A1(e,n),n.logger("clean",e),G1(e,n),n.logger("replace",e),n.restructuring&&Tk(e,n),e}function Ok(e){let t="comments"in e?e.comments:"exclamation";return typeof t=="boolean"?t=t?"exclamation":!1:t!=="exclamation"&&t!=="first-exclamation"&&(t=!1),t}function xk(e){return"restructure"in e?e.restructure:"restructuring"in e?e.restructuring:!0}function Pk(e){return new ae().appendData({type:"Rule",loc:null,prelude:{type:"SelectorList",loc:null,children:new ae().appendData({type:"Selector",loc:null,children:new ae().appendData({type:"TypeSelector",loc:null,name:"x"})})},block:e})}function Nk(e,t){e=e||{type:"StyleSheet",loc:null,children:new ae},t=t||{};const r={logger:typeof t.logger=="function"?t.logger:function(){},restructuring:xk(t),forceMediaMerge:!!t.forceMediaMerge,usage:t.usage?g1(t.usage):!1},n=new ae;let i=Ok(t),o=!0,s,a,l=1,c;t.clone&&(e=Ea(e)),e.type==="StyleSheet"?(s=e.children,e.children=n):s=Pk(e);do{if(a=kk(s,!!i),Lk(a.stylesheet,o,l++,r),c=a.stylesheet.children,a.comment&&(n.isEmpty||n.insert(ae.createItem({type:"Raw",value:`
19
+ --`+new Array((r||t.length)+1).join("-")+"^"})}var US=9,qS=10,GS=12,XS=13,YS=32,KS=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){const t=this.str.charCodeAt(e);if(t!==XS&&t!==qS&&t!==GS&&t!==YS&&t!==US)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new WS(e,this.str,this.pos)}},QS=9,ZS=10,JS=12,ew=13,tw=32,Xu=33,Ys=35,Yu=38,Pi=39,Ku=40,rw=41,Qu=42,Ks=43,Qs=44,Zu=45,Zs=60,Ju=62,Js=63,nw=64,Ni=91,ea=93,Mi=123,ed=124,td=125,rd=8734,nn=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),nd={" ":1,"&&":2,"||":3,"|":4};function Ri(e){return e.substringToPos(e.findWsEnd(e.pos))}function gr(e){let t=e.pos;for(;t<e.str.length;t++){const r=e.str.charCodeAt(t);if(r>=128||nn[r]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Di(e){let t=e.pos;for(;t<e.str.length;t++){const r=e.str.charCodeAt(t);if(r<48||r>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function iw(e){const t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function id(e){let t=null,r=null;return e.eat(Mi),t=Di(e),e.charCode()===Qs?(e.pos++,e.charCode()!==td&&(r=Di(e))):r=t,e.eat(td),{min:Number(t),max:r?Number(r):0}}function ow(e){let t=null,r=!1;switch(e.charCode()){case Qu:e.pos++,t={min:0,max:0};break;case Ks:e.pos++,t={min:1,max:0};break;case Js:e.pos++,t={min:0,max:1};break;case Ys:e.pos++,r=!0,e.charCode()===Mi?t=id(e):e.charCode()===Js?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Mi:t=id(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}function br(e,t){const r=ow(e);return r!==null?(r.term=t,e.charCode()===Ys&&e.charCodeAt(e.pos-1)===Ks?br(e,r):r):t}function ta(e){const t=e.peek();return t===""?null:{type:"Token",value:t}}function sw(e){let t;return e.eat(Zs),e.eat(Pi),t=gr(e),e.eat(Pi),e.eat(Ju),br(e,{type:"Property",name:t})}function aw(e){let t=null,r=null,n=1;return e.eat(Ni),e.charCode()===Zu&&(e.peek(),n=-1),n==-1&&e.charCode()===rd?e.peek():(t=n*Number(Di(e)),nn[e.charCode()]!==0&&(t+=gr(e))),Ri(e),e.eat(Qs),Ri(e),e.charCode()===rd?e.peek():(n=1,e.charCode()===Zu&&(e.peek(),n=-1),r=n*Number(Di(e)),nn[e.charCode()]!==0&&(r+=gr(e))),e.eat(ea),{type:"Range",min:t,max:r}}function lw(e){let t,r=null;return e.eat(Zs),t=gr(e),e.charCode()===Ku&&e.nextCharCode()===rw&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Ni&&(Ri(e),r=aw(e)),e.eat(Ju),br(e,{type:"Type",name:t,opts:r})}function cw(e){const t=gr(e);return e.charCode()===Ku?(e.pos++,{type:"Function",name:t}):br(e,{type:"Keyword",name:t})}function uw(e,t){function r(i,o){return{type:"Group",terms:i,combinator:o,disallowEmpty:!1,explicit:!1}}let n;for(t=Object.keys(t).sort((i,o)=>nd[i]-nd[o]);t.length>0;){n=t.shift();let i=0,o=0;for(;i<e.length;i++){const s=e[i];s.type==="Combinator"&&(s.value===n?(o===-1&&(o=i-1),e.splice(i,1),i--):(o!==-1&&i-o>1&&(e.splice(o,i-o,r(e.slice(o,i),n)),i=o+1),o=-1))}o!==-1&&t.length&&e.splice(o,i-o,r(e.slice(o,i),n))}return n}function od(e){const t=[],r={};let n,i=null,o=e.pos;for(;n=fw(e);)n.type!=="Spaces"&&(n.type==="Combinator"?((i===null||i.type==="Combinator")&&(e.pos=o,e.error("Unexpected combinator")),r[n.value]=!0):i!==null&&i.type!=="Combinator"&&(r[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(n),i=n,o=e.pos);return i!==null&&i.type==="Combinator"&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:uw(t,r)||" ",disallowEmpty:!1,explicit:!1}}function dw(e){let t;return e.eat(Ni),t=od(e),e.eat(ea),t.explicit=!0,e.charCode()===Xu&&(e.pos++,t.disallowEmpty=!0),t}function fw(e){let t=e.charCode();if(t<128&&nn[t]===1)return cw(e);switch(t){case ea:break;case Ni:return br(e,dw(e));case Zs:return e.nextCharCode()===Pi?sw(e):lw(e);case ed:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===ed?2:1))};case Yu:return e.pos++,e.eat(Yu),{type:"Combinator",value:"&&"};case Qs:return e.pos++,{type:"Comma"};case Pi:return br(e,{type:"String",value:iw(e)});case tw:case QS:case ZS:case ew:case JS:return{type:"Spaces",value:Ri(e)};case nw:return t=e.nextCharCode(),t<128&&nn[t]===1?(e.pos++,{type:"AtKeyword",name:gr(e)}):ta(e);case Qu:case Ks:case Js:case Ys:case Xu:break;case Mi:if(t=e.nextCharCode(),t<48||t>57)return ta(e);break;default:return ta(e)}}function sd(e){const t=new KS(e),r=od(t);return t.pos!==e.length&&t.error("Unexpected input"),r.terms.length===1&&r.terms[0].type==="Group"?r.terms[0]:r}var on=function(){};function ad(e){return typeof e=="function"?e:on}function hw(e,t,r){function n(s){switch(i.call(r,s),s.type){case"Group":s.terms.forEach(n);break;case"Multiplier":n(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}o.call(r,s)}let i=on,o=on;if(typeof t=="function"?i=t:t&&(i=ad(t.enter),o=ad(t.leave)),i===on&&o===on)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");n(e,r)}var mw={decorator(e){const t=[];let r=null;return{...e,node(n){const i=r;r=n,e.node.call(this,n),r=i},emit(n,i,o){t.push({type:i,value:n,node:o?null:r})},result(){return t}}}};function pw(e){const t=[];return Ci(e,(r,n,i)=>t.push({type:r,value:e.slice(n,i),node:null})),t}function gw(e,t){return typeof e=="string"?pw(e):t.generate(e,mw)}var Y={type:"Match"},K={type:"Mismatch"},ra={type:"DisallowEmpty"},bw=40,yw=41;function ve(e,t,r){return t===Y&&r===K||e===Y&&t===Y&&r===Y?e:(e.type==="If"&&e.else===K&&t===Y&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:r})}function ld(e){return e.length>2&&e.charCodeAt(e.length-2)===bw&&e.charCodeAt(e.length-1)===yw}function cd(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&ld(e.name)}function na(e,t,r){switch(e){case" ":{let n=Y;for(let i=t.length-1;i>=0;i--){const o=t[i];n=ve(o,n,K)}return n}case"|":{let n=K,i=null;for(let o=t.length-1;o>=0;o--){let s=t[o];if(cd(s)&&(i===null&&o>0&&cd(t[o-1])&&(i=Object.create(null),n=ve({type:"Enum",map:i},Y,n)),i!==null)){const a=(ld(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in i)){i[a]=s;continue}}i=null,n=ve(s,Y,n)}return n}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=K;for(let i=t.length-1;i>=0;i--){const o=t[i];let s;t.length>1?s=na(e,t.filter(function(a){return a!==o}),!1):s=Y,n=ve(o,s,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let n=r?Y:K;for(let i=t.length-1;i>=0;i--){const o=t[i];let s;t.length>1?s=na(e,t.filter(function(a){return a!==o}),!0):s=Y,n=ve(o,s,n)}return n}}}function vw(e){let t=Y,r=ia(e.term);if(e.max===0)r=ve(r,ra,K),t=ve(r,null,K),t.then=ve(Y,Y,t),e.comma&&(t.then.else=ve({type:"Comma",syntax:e},t,K));else for(let n=e.min||1;n<=e.max;n++)e.comma&&t!==Y&&(t=ve({type:"Comma",syntax:e},t,K)),t=ve(r,ve(Y,Y,t),K);if(e.min===0)t=ve(Y,Y,t);else for(let n=0;n<e.min-1;n++)e.comma&&t!==Y&&(t=ve({type:"Comma",syntax:e},t,K)),t=ve(r,t,K);return t}function ia(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=na(e.combinator,e.terms.map(ia),!1);return e.disallowEmpty&&(t=ve(t,ra,K)),t}case"Multiplier":return vw(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function oa(e,t){return typeof e=="string"&&(e=sd(e)),{type:"MatchGraph",match:ia(e),syntax:t||null,source:e}}var{hasOwnProperty:ud}=Object.prototype,Ew=0,_w=1,sa=2,dd=3,fd="Match",Sw="Mismatch",ww="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",Cw=15e3,Aw=0;function Tw(e){let t=null,r=null,n=e;for(;n!==null;)r=n.prev,n.prev=t,t=n,n=r;return t}function aa(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){const n=t.charCodeAt(r);let i=e.charCodeAt(r);if(i>=65&&i<=90&&(i=i|32),i!==n)return!1}return!0}function kw(e){return e.type!==9?!1:e.value!=="?"}function hd(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||kw(e)}function md(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function Lw(e,t,r){function n(){do C++,L=C<e.length?e[C]:null;while(L!==null&&(L.type===13||L.type===25))}function i(m){const b=C+m;return b<e.length?e[b]:null}function o(m,b){return{nextState:m,matchStack:E,syntaxStack:d,thenStack:f,tokenIndex:C,prev:b}}function s(m){f={nextState:m,matchStack:E,syntaxStack:d,prev:f}}function a(m){h=o(m,h)}function l(){E={type:_w,syntax:t.syntax,token:L,prev:E},n(),g=null,C>O&&(O=C)}function c(){d={syntax:t.syntax,opts:t.syntax.opts||d!==null&&d.opts||null,prev:d},E={type:sa,syntax:t.syntax,token:E.token,prev:E}}function u(){E.type===sa?E=E.prev:E={type:dd,syntax:d.syntax,token:E.token,prev:E},d=d.prev}let d=null,f=null,h=null,g=null,y=0,A=null,L=null,C=-1,O=0,E={type:Ew,syntax:null,token:null,prev:null};for(n();A===null&&++y<Cw;)switch(t.type){case"Match":if(f===null){if(L!==null&&(C!==e.length-1||L.value!=="\\0"&&L.value!=="\\9")){t=K;break}A=fd;break}if(t=f.nextState,t===ra)if(f.matchStack===E){t=K;break}else t=Y;for(;f.syntaxStack!==d;)u();f=f.prev;break;case"Mismatch":if(g!==null&&g!==!1)(h===null||C>h.tokenIndex)&&(h=g,g=!1);else if(h===null){A=Sw;break}t=h.nextState,f=h.thenStack,d=h.syntaxStack,E=h.matchStack,C=h.tokenIndex,L=C<e.length?e[C]:null,h=h.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==K&&a(t.else),t.then!==Y&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{const S=t.syntax.terms;if(t.index===S.length){if(t.mask===0||t.syntax.all){t=K;break}t=Y;break}if(t.mask===(1<<S.length)-1){t=Y;break}for(;t.index<S.length;t.index++){const p=1<<t.index;if((t.mask&p)===0){a(t),s({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|p}),t=S[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(L!==null){let S=L.value.toLowerCase();if(S.indexOf("\\")!==-1&&(S=S.replace(/\\[09].*$/,"")),ud.call(t.map,S)){t=t.map[S];break}}t=K;break;case"Generic":{const S=d!==null?d.opts:null,p=C+Math.floor(t.fn(L,i,S));if(!isNaN(p)&&p>C){for(;C<p;)l();t=Y}else t=K;break}case"Type":case"Property":{const S=t.type==="Type"?"types":"properties",p=ud.call(r,S)?r[S][t.name]:null;if(!p||!p.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(g!==!1&&L!==null&&t.type==="Type"&&(t.name==="custom-ident"&&L.type===1||t.name==="length"&&L.value==="0")){g===null&&(g=o(t,h)),t=K;break}c(),t=p.match;break}case"Keyword":{const S=t.name;if(L!==null){let p=L.value;if(p.indexOf("\\")!==-1&&(p=p.replace(/\\[09].*$/,"")),aa(p,S)){l(),t=Y;break}}t=K;break}case"AtKeyword":case"Function":if(L!==null&&aa(L.value,t.name)){l(),t=Y;break}t=K;break;case"Token":if(L!==null&&L.value===t.value){l(),t=Y;break}t=K;break;case"Comma":L!==null&&L.type===18?hd(E.token)?t=K:(l(),t=md(L)?K:Y):t=hd(E.token)||md(L)?Y:K;break;case"String":let m="",b=C;for(;b<e.length&&m.length<t.value.length;b++)m+=e[b].value;if(aa(m,t.value)){for(;C<b;)l();t=Y}else t=K;break;default:throw new Error("Unknown node type: "+t.type)}switch(Aw+=y,A){case null:A=ww,E=null;break;case fd:for(;d!==null;)u();break;default:E=null}return{tokens:e,reason:A,iterations:y,match:E,longestMatch:O}}function pd(e,t,r){const n=Lw(e,t,r||{});if(n.match===null)return n;let i=n.match,o=n.match={syntax:t.syntax||null,match:[]};const s=[o];for(i=Tw(i).prev;i!==null;){switch(i.type){case sa:o.match.push(o={syntax:i.syntax,match:[]}),s.push(o);break;case dd:s.pop(),o=s[s.length-1];break;default:o.match.push({syntax:i.syntax||null,token:i.token.value,node:i.token.node})}i=i.prev}return n}var Ow=F.__exportAll({getTrace:()=>gd,isKeyword:()=>Nw,isProperty:()=>Pw,isType:()=>xw});function gd(e){function t(i){return i===null?!1:i.type==="Type"||i.type==="Property"||i.type==="Keyword"}function r(i){if(Array.isArray(i.match)){for(let o=0;o<i.match.length;o++)if(r(i.match[o]))return t(i.syntax)&&n.unshift(i.syntax),!0}else if(i.node===e)return n=t(i.syntax)?[i.syntax]:[],!0;return!1}let n=null;return this.matched!==null&&r(this.matched),n}function xw(e,t){return la(this,e,r=>r.type==="Type"&&r.name===t)}function Pw(e,t){return la(this,e,r=>r.type==="Property"&&r.name===t)}function Nw(e){return la(this,e,t=>t.type==="Keyword")}function la(e,t,r){const n=gd.call(e,t);return n===null?!1:n.some(r)}function bd(e){return"node"in e?e.node:bd(e.match[0])}function yd(e){return"node"in e?e.node:yd(e.match[e.match.length-1])}function vd(e,t,r,n,i){function o(a){if(a.syntax!==null&&a.syntax.type===n&&a.syntax.name===i){const l=bd(a),c=yd(a);e.syntax.walk(t,function(u,d,f){if(u===l){const h=new ae;do{if(h.appendData(d.data),d.data===c)break;d=d.next}while(d!==null);s.push({parent:f,nodes:h})}})}Array.isArray(a.match)&&a.match.forEach(o)}const s=[];return r.matched!==null&&o(r.matched),s}var{hasOwnProperty:sn}=Object.prototype;function ca(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Ed(e){return!!e&&ca(e.offset)&&ca(e.line)&&ca(e.column)}function Mw(e,t){return function(n,i){if(!n||n.constructor!==Object)return i(n,"Type of node should be an Object");for(let o in n){let s=!0;if(sn.call(n,o)!==!1){if(o==="type")n.type!==e&&i(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if(o==="loc"){if(n.loc===null)continue;if(n.loc&&n.loc.constructor===Object)if(typeof n.loc.source!="string")o+=".source";else if(!Ed(n.loc.start))o+=".start";else if(!Ed(n.loc.end))o+=".end";else continue;s=!1}else if(t.hasOwnProperty(o)){s=!1;for(let a=0;!s&&a<t[o].length;a++){const l=t[o][a];switch(l){case String:s=typeof n[o]=="string";break;case Boolean:s=typeof n[o]=="boolean";break;case null:s=n[o]===null;break;default:typeof l=="string"?s=n[o]&&n[o].type===l:Array.isArray(l)&&(s=n[o]instanceof ae)}}}else i(n,"Unknown field `"+o+"` for "+e+" node type");s||i(n,"Bad value for `"+e+"."+o+"`")}}for(const o in t)sn.call(t,o)&&sn.call(n,o)===!1&&i(n,"Field `"+e+"."+o+"` is missed")}}function Rw(e,t){const r=t.structure,n={type:String,loc:!0},i={type:'"'+e+'"'};for(const o in r){if(sn.call(r,o)===!1)continue;const s=[],a=n[o]=Array.isArray(r[o])?r[o].slice():[r[o]];for(let l=0;l<a.length;l++){const c=a[l];if(c===String||c===Boolean)s.push(c.name);else if(c===null)s.push("null");else if(typeof c=="string")s.push("<"+c+">");else if(Array.isArray(c))s.push("List");else throw new Error("Wrong value `"+c+"` in `"+e+"."+o+"` structure definition")}i[o]=s.join(" | ")}return{docs:i,check:Mw(e,n)}}function Dw(e){const t={};if(e.node){for(const r in e.node)if(sn.call(e.node,r)){const n=e.node[r];if(n.structure)t[r]=Rw(r,n);else throw new Error("Missed `structure` field in `"+r+"` node type definition")}}return t}var Iw=oa($u.join(" | "));function ua(e,t,r){const n={};for(const i in e)e[i].syntax&&(n[i]=r?e[i].syntax:zs(e[i].syntax,{compact:t}));return n}function Bw(e,t,r){const n={};for(const[i,o]of Object.entries(e))n[i]={prelude:o.prelude&&(r?o.prelude.syntax:zs(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&ua(o.descriptors,t,r)};return n}function Fw(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function We(e,t,r){return{matched:e,iterations:r,error:t,...Ow}}function yr(e,t,r,n){const i=gw(r,e.syntax);let o;return Fw(i)?We(null,new Error("Matching for a tree with var() is not supported")):(n&&(o=pd(i,e.cssWideKeywordsSyntax,e)),(!n||!o.match)&&(o=pd(i,t.match,e),!o.match)?We(null,new gS(o.reason,t.syntax,r,o),o.iterations):We(o.match,null,o.iterations))}var _d=class{constructor(e,t,r){if(this.cssWideKeywordsSyntax=Iw,this.syntax=t,this.generic=!1,this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=r||Dw(e),e){if(e.types)for(const n in e.types)this.addType_(n,e.types[n]);if(e.generic){this.generic=!0;for(const n in Gu)this.addType_(n,Gu[n])}if(e.atrules)for(const n in e.atrules)this.addAtrule_(n,e.atrules[n]);if(e.properties)for(const n in e.properties)this.addProperty_(n,e.properties[n])}}checkStructure(e){function t(i,o){n.push({node:i,message:o})}const r=this.structure,n=[];return this.syntax.walk(e,function(i){r.hasOwnProperty(i.type)?r[i.type].check(i,t):t(i,"Unknown node type `"+i.type+"`")}),n.length?n:!1}createDescriptor(e,t,r,n=null){const i={type:t,name:r},o={type:t,name:r,parent:n,serializable:typeof e=="string"||e&&typeof e.type=="string",syntax:null,match:null};return typeof e=="function"?o.match=oa(e,i):(typeof e=="string"?Object.defineProperty(o,"syntax",{get(){return Object.defineProperty(o,"syntax",{value:sd(e)}),o.syntax}}):o.syntax=e,Object.defineProperty(o,"match",{get(){return Object.defineProperty(o,"match",{value:oa(o.syntax,i)}),o.match}})),o}addAtrule_(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((r,n)=>(r[n]=this.createDescriptor(t.descriptors[n],"AtruleDescriptor",n,e),r),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Jr("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const r=this.checkAtruleName(e);if(r)return r;const n=this.getAtrule(e);if(!n.prelude&&t)return new SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(n.prelude&&!t&&!yr(this,n.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const r=this.checkAtruleName(e);if(r)return r;const n=this.getAtrule(e),i=ze(t);if(!n.descriptors)return new SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!n.descriptors[i.name]&&!n.descriptors[i.basename])return new Jr("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Jr("Unknown property",e)}matchAtrulePrelude(e,t){const r=this.checkAtrulePrelude(e,t);if(r)return We(null,r);const n=this.getAtrule(e);return n.prelude?yr(this,n.prelude,t||"",!1):We(null,null)}matchAtruleDescriptor(e,t,r){const n=this.checkAtruleDescriptorName(e,t);if(n)return We(null,n);const i=this.getAtrule(e),o=ze(t);return yr(this,i.descriptors[o.name]||i.descriptors[o.basename],r,!1)}matchDeclaration(e){return e.type!=="Declaration"?We(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(mr(e).custom)return We(null,new Error("Lexer matching doesn't applicable for custom properties"));const r=this.checkPropertyName(e);return r?We(null,r):yr(this,this.getProperty(e),t,!0)}matchType(e,t){const r=this.getType(e);return r?yr(this,r,t,!1):We(null,new Jr("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?We(null,new Jr("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),yr(this,e,t,!1))}findValueFragments(e,t,r,n){return vd(this,t,this.matchProperty(e,t),r,n)}findDeclarationValueFragments(e,t,r){return vd(this,e.value,this.matchDeclaration(e),t,r)}findAllFragments(e,t,r){const n=[];return this.syntax.walk(e,{visit:"Declaration",enter:i=>{n.push.apply(n,this.findDeclarationValueFragments(i,t,r))}}),n}getAtrule(e,t=!0){const r=ze(e);return(r.vendor&&t?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null}getAtrulePrelude(e,t=!0){const r=this.getAtrule(e,t);return r&&r.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){const r=mr(e);return(r.vendor&&t?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(n,i,o,s){if(o.has(i))return o.get(i);o.set(i,!1),s.syntax!==null&&hw(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;const l=a.type==="Type"?n.types:n.properties,c=a.type==="Type"?t:r;(!hasOwnProperty.call(l,a.name)||e(n,a.name,c,l[a.name]))&&o.set(i,!0)},this)}let t=new Map,r=new Map;for(const n in this.types)e(this,n,t,this.types[n]);for(const n in this.properties)e(this,n,r,this.properties[n]);return t=[...t.keys()].filter(n=>t.get(n)),r=[...r.keys()].filter(n=>r.get(n)),t.length||r.length?{types:t,properties:r}:null}dump(e,t){return{generic:this.generic,types:ua(this.types,!t,e),properties:ua(this.properties,!t,e),atrules:Bw(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}},{hasOwnProperty:vr}=Object.prototype,jw={generic:!0,types:da,atrules:{prelude:Ad,descriptors:Ad},properties:da,parseContext:$w,scope:wd,atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function Ii(e){return e&&e.constructor===Object}function Sd(e){return Ii(e)?{...e}:e}function $w(e,t){return Object.assign(e,t)}function wd(e,t){for(const r in t)vr.call(t,r)&&(Ii(e[r])?wd(e[r],t[r]):e[r]=Sd(t[r]));return e}function Cd(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function da(e,t){if(typeof t=="string")return Cd(e,t);const r={...e};for(let n in t)vr.call(t,n)&&(r[n]=Cd(vr.call(e,n)?e[n]:void 0,t[n]));return r}function Ad(e,t){const r=da(e,t);return!Ii(r)||Object.keys(r).length?r:null}function an(e,t,r){for(const n in r)if(vr.call(r,n)!==!1){if(r[n]===!0)vr.call(t,n)&&(e[n]=Sd(t[n]));else if(r[n]){if(typeof r[n]=="function"){const i=r[n];e[n]=i({},e[n]),e[n]=i(e[n]||{},t[n])}else if(Ii(r[n])){const i={};for(let o in e[n])i[o]=an({},e[n][o],r[n]);for(let o in t[n])i[o]=an(i[o]||{},t[n][o],r[n]);e[n]=i}else if(Array.isArray(r[n])){const i={},o=r[n].reduce(function(s,a){return s[a]=!0,s},{});for(const[s,a]of Object.entries(e[n]||{}))i[s]={},a&&an(i[s],a,o);for(const s in t[n])vr.call(t[n],s)&&(i[s]||(i[s]={}),t[n]&&t[n][s]&&an(i[s],t[n][s],o));e[n]=i}}}return e}var fa=(e,t)=>an(e,t,jw);function Td(e){const t=U_(e),r=uS(e),n=sS(e),{fromPlainObject:i,toPlainObject:o}=aS(r),s={lexer:null,createLexer:a=>new _d(a,s,s.lexer.structure),tokenize:Ci,parse:t,generate:n,walk:r,find:r.find,findLast:r.findLast,findAll:r.findAll,fromPlainObject:i,toPlainObject:o,fork(a){const l=fa({},e);return Td(typeof a=="function"?a(l,Object.assign):fa(l,a))}};return s.lexer=new _d({generic:!0,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}var Hw=e=>Td(fa({},e)),zw={generic:!0,types:{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|( <calc-sum> )","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fit-content()":"fit-content( [<length>|<percentage>] )","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length>|<percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length>|<percentage>|min-content|max-content|auto] , [<length>|<percentage>|<flex>|min-content|max-content|auto] )","name-repeat":"repeat( [<integer [1,∞]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( <length> )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","saturate()":"saturate( <number-percentage> )","scale()":"scale( <number> , <number>? )","scale3d()":"scale3d( <number> , <number> , <number> )","scaleX()":"scaleX( <number> )","scaleY()":"scaleY( <number> )","scaleZ()":"scaleZ( <number> )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,∞]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( [<length>|<percentage>] )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text","border-radius":"<length-percentage>{1,2}",bottom:"<length>|auto","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",ratio:"<number [0,∞]> [/ <number [0,∞]>]?","reversed-counter-name":"reversed( <counter-name> )",right:"<length>|auto","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto","track-group":"'(' [<string>* <track-minmax> <string>*]+ ')' ['[' <positive-integer> ']']?|<track-minmax>","track-list-v0":"[<string>* <track-group> <string>*]+|none","track-minmax":"minmax( <track-breadth> , <track-breadth> )|auto|<track-breadth>|fit-content",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,∞]>","positive-integer":"<integer [0,∞]>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end","caret-color":"auto|<color>",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[size||layout||style||paint]",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,∞]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}}}},Vw=F.__exportAll({generate:()=>Gw,name:()=>Uw,parse:()=>kd,structure:()=>qw}),et=43,Pe=45,Bi=110,Rt=!0,Ww=!1;function Fi(e,t){let r=this.tokenStart+e;const n=this.charCodeAt(r);for((n===et||n===Pe)&&(t&&this.error("Number sign is not allowed"),r++);r<this.tokenEnd;r++)he(this.charCodeAt(r))||this.error("Integer is expected",r)}function Er(e){return Fi.call(this,0,e)}function vt(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let r="";switch(t){case Bi:r="N is expected";break;case Pe:r="HyphenMinus is expected"}this.error(r,this.tokenStart+e)}}function ha(){let e=0,t=0,r=this.tokenType;for(;r===13||r===25;)r=this.lookupType(++e);if(r!==10)if(this.isDelim(et,e)||this.isDelim(Pe,e)){t=this.isDelim(et,e)?et:Pe;do r=this.lookupType(++e);while(r===13||r===25);r!==10&&(this.skip(e),Er.call(this,Rt))}else return null;return e>0&&this.skip(e),t===0&&(r=this.charCodeAt(this.tokenStart),r!==et&&r!==Pe&&this.error("Number sign is expected")),Er.call(this,t!==0),t===Pe?"-"+this.consume(10):this.consume(10)}var Uw="AnPlusB",qw={a:[String,null],b:[String,null]};function kd(){const e=this.tokenStart;let t=null,r=null;if(this.tokenType===10)Er.call(this,Ww),r=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,Pe))switch(t="-1",vt.call(this,1,Bi),this.tokenEnd-this.tokenStart){case 2:this.next(),r=ha.call(this);break;case 3:vt.call(this,2,Pe),this.next(),this.skipSC(),Er.call(this,Rt),r="-"+this.consume(10);break;default:vt.call(this,2,Pe),Fi.call(this,3,Rt),this.next(),r=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(et)&&this.lookupType(1)===1){let n=0;switch(t="1",this.isDelim(et)&&(n=1,this.next()),vt.call(this,0,Bi),this.tokenEnd-this.tokenStart){case 1:this.next(),r=ha.call(this);break;case 2:vt.call(this,1,Pe),this.next(),this.skipSC(),Er.call(this,Rt),r="-"+this.consume(10);break;default:vt.call(this,1,Pe),Fi.call(this,2,Rt),this.next(),r=this.substrToCursor(e+n+1)}}else if(this.tokenType===12){const n=this.charCodeAt(this.tokenStart),i=n===et||n===Pe;let o=this.tokenStart+i;for(;o<this.tokenEnd&&he(this.charCodeAt(o));o++);o===this.tokenStart+i&&this.error("Integer is expected",this.tokenStart+i),vt.call(this,o-this.tokenStart,Bi),t=this.substring(e,o),o+1===this.tokenEnd?(this.next(),r=ha.call(this)):(vt.call(this,o-this.tokenStart+1,Pe),o+2===this.tokenEnd?(this.next(),this.skipSC(),Er.call(this,Rt),r="-"+this.consume(10)):(Fi.call(this,o-this.tokenStart+2,Rt),this.next(),r=this.substrToCursor(o+1)))}else this.error();return t!==null&&t.charCodeAt(0)===et&&(t=t.substr(1)),r!==null&&r.charCodeAt(0)===et&&(r=r.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:r}}function Gw(e){if(e.a){const t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){const r=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+r)}else this.tokenize(t)}else this.tokenize(e.b)}var Xw=F.__exportAll({generate:()=>Jw,name:()=>Kw,parse:()=>Od,structure:()=>Zw,walkContext:()=>Qw});function Ld(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function Yw(){for(let e=1,t;t=this.lookupType(e);e++){if(t===24)return!0;if(t===23||t===3)return!1}return!1}var Kw="Atrule",Qw="atrule",Zw={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};function Od(){const e=this.tokenStart;let t,r,n=null,i=null;switch(this.eat(3),t=this.substrToCursor(e+1),r=t.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(this.parseAtrulePrelude?n=this.parseWithFallback(this.AtrulePrelude.bind(this,t),Ld):n=Ld.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?i=this.atrule[r].block.call(this):i=this.Block(Yw.call(this))}return{type:"Atrule",loc:this.getLocation(e,this.tokenStart),name:t,prelude:n,block:i}}function Jw(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}var eC=F.__exportAll({generate:()=>iC,name:()=>tC,parse:()=>xd,structure:()=>nC,walkContext:()=>rC}),tC="AtrulePrelude",rC="atrulePrelude",nC={children:[[]]};function xd(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?t=this.atrule[e].prelude.call(this):t=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==23&&this.tokenType!==17&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function iC(e){this.children(e)}var oC=F.__exportAll({generate:()=>hC,name:()=>dC,parse:()=>Nd,structure:()=>fC}),sC=36,Pd=42,ji=61,aC=94,ma=124,lC=126;function cC(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(Pd)?(t=!0,this.next()):this.isDelim(ma)||this.eat(1),this.isDelim(ma)?this.charCodeAt(this.tokenStart+1)!==ji?(this.next(),this.eat(1)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function uC(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==ji&&t!==lC&&t!==aC&&t!==sC&&t!==Pd&&t!==ma&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==ji&&(this.isDelim(ji)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var dC="AttributeSelector",fC={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Nd(){const e=this.tokenStart;let t,r=null,n=null,i=null;return this.eat(19),this.skipSC(),t=cC.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(r=uC.call(this),this.skipSC(),n=this.tokenType===5?this.String():this.Identifier(),this.skipSC()),this.tokenType===1&&(i=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:r,value:n,flags:i}}function hC(e){this.token(9,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(1,e.flags),this.token(9,"]")}var mC=F.__exportAll({generate:()=>EC,name:()=>bC,parse:()=>Dd,structure:()=>vC,walkContext:()=>yC});function Md(e){return this.Raw(e,null,!0)}function pC(){return this.parseWithFallback(this.Rule,Md)}function Rd(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function gC(){if(this.tokenType===17)return Rd.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,Rd);return this.tokenType===17&&this.next(),e}var bC="Block",yC="block",vC={children:[["Atrule","Rule","Declaration"]]};function Dd(e){const t=e?gC:pC,r=this.tokenStart;let n=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:n.push(this.parseWithFallback(this.Atrule,Md));break;default:n.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(r,this.tokenStart),children:n}}function EC(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}var _C=F.__exportAll({generate:()=>CC,name:()=>SC,parse:()=>Id,structure:()=>wC}),SC="Brackets",wC={children:[[]]};function Id(e,t){const r=this.tokenStart;let n=null;return this.eat(19),n=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(r,this.tokenStart),children:n}}function CC(e){this.token(9,"["),this.children(e),this.token(9,"]")}var AC=F.__exportAll({generate:()=>kC,name:()=>"CDC",parse:()=>Bd,structure:()=>TC}),ZN="CDC",TC=[];function Bd(){const e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function kC(){this.token(15,"-->")}var LC=F.__exportAll({generate:()=>xC,name:()=>"CDO",parse:()=>Fd,structure:()=>OC}),JN="CDO",OC=[];function Fd(){const e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function xC(){this.token(14,"<!--")}var PC=F.__exportAll({generate:()=>DC,name:()=>MC,parse:()=>jd,structure:()=>RC}),NC=46,MC="ClassSelector",RC={name:String};function jd(){return this.eatDelim(NC),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function DC(e){this.token(9,"."),this.token(1,e.name)}var IC=F.__exportAll({generate:()=>zC,name:()=>$C,parse:()=>Hd,structure:()=>HC}),BC=43,$d=47,FC=62,jC=126,$C="Combinator",HC={name:String};function Hd(){const e=this.tokenStart;let t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case FC:case BC:case jC:this.next();break;case $d:this.next(),this.eatIdent("deep"),this.eatDelim($d);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function zC(e){this.tokenize(e.name)}var VC=F.__exportAll({generate:()=>XC,name:()=>qC,parse:()=>zd,structure:()=>GC}),WC=42,UC=47,qC="Comment",GC={value:String};function zd(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===WC&&this.charCodeAt(t-1)===UC&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function XC(e){this.token(25,"/*"+e.value+"*/")}var YC=F.__exportAll({generate:()=>a0,name:()=>i0,parse:()=>Ud,structure:()=>s0,walkContext:()=>o0}),Vd=33,KC=35,QC=36,ZC=38,JC=42,e0=43,Wd=47;function t0(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function r0(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function n0(){const e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(Vd)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}var i0="Declaration",o0="declaration",s0={important:[Boolean,String],property:String,value:["Value","Raw"]};function Ud(){const e=this.tokenStart,t=this.tokenIndex,r=l0.call(this),n=Vs(r),i=n?this.parseCustomProperty:this.parseValue,o=n?r0:t0;let s=!1,a;this.skipSC(),this.eat(16);const l=this.tokenIndex;if(n||this.skipSC(),i?a=this.parseWithFallback(n0,o):a=o.call(this,this.tokenIndex),n&&a.type==="Value"&&a.children.isEmpty){for(let c=l-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(Vd)&&(s=c0.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==17&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:r,value:a}}function a0(e){this.token(1,e.property),this.token(16,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,e.important===!0?"important":e.important))}function l0(){const e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case JC:case QC:case e0:case KC:case ZC:this.next();break;case Wd:this.next(),this.isDelim(Wd)&&this.next()}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function c0(){this.eat(9),this.skipSC();const e=this.consume(1);return e==="important"?!0:e}var u0=F.__exportAll({generate:()=>m0,name:()=>f0,parse:()=>qd,structure:()=>h0});function d0(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var f0="DeclarationList",h0={children:[["Declaration"]]};function qd(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;default:e.push(this.parseWithFallback(this.Declaration,d0))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function m0(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}var p0=F.__exportAll({generate:()=>y0,name:()=>g0,parse:()=>Gd,structure:()=>b0}),g0="Dimension",b0={value:String,unit:String};function Gd(){const e=this.tokenStart,t=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function y0(e){this.token(12,e.value+e.unit)}var v0=F.__exportAll({generate:()=>w0,name:()=>E0,parse:()=>Xd,structure:()=>S0,walkContext:()=>_0}),E0="Function",_0="function",S0={name:String,children:[[]]};function Xd(e,t){const r=this.tokenStart,n=this.consumeFunctionName(),i=n.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(r,this.tokenStart),name:n,children:o}}function w0(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}var C0=F.__exportAll({generate:()=>k0,name:()=>A0,parse:()=>Yd,structure:()=>T0,xxx:()=>"XXX"}),eM="XXX",A0="Hash",T0={value:String};function Yd(){const e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function k0(e){this.token(4,"#"+e.value)}var L0=F.__exportAll({generate:()=>P0,name:()=>O0,parse:()=>Kd,structure:()=>x0}),O0="Identifier",x0={name:String};function Kd(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function P0(e){this.token(1,e.name)}var N0=F.__exportAll({generate:()=>D0,name:()=>M0,parse:()=>Qd,structure:()=>R0}),M0="IdSelector",R0={name:String};function Qd(){const e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function D0(e){this.token(9,"#"+e.name)}var I0=F.__exportAll({generate:()=>j0,name:()=>B0,parse:()=>Zd,structure:()=>F0}),B0="MediaFeature",F0={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function Zd(){const e=this.tokenStart;let t,r=null;if(this.eat(21),this.skipSC(),t=this.consume(1),this.skipSC(),this.tokenType!==22){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:this.lookupNonWSType(1)===9?r=this.Ratio():r=this.Number();break;case 12:r=this.Dimension();break;case 1:r=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:r}}function j0(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}var $0=F.__exportAll({generate:()=>V0,name:()=>H0,parse:()=>Jd,structure:()=>z0}),H0="MediaQuery",z0={children:[["Identifier","MediaFeature","WhiteSpace"]]};function Jd(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break e}e.push(t)}return t===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function V0(e){this.children(e)}var W0=F.__exportAll({generate:()=>G0,name:()=>U0,parse:()=>ef,structure:()=>q0}),U0="MediaQueryList",q0={children:[["MediaQuery"]]};function ef(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===18);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function G0(e){this.children(e,()=>this.token(18,","))}var X0=F.__exportAll({generate:()=>K0,name:()=>"Nth",parse:()=>tf,structure:()=>Y0}),tM="Nth",Y0={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function tf(){this.skipSC();const e=this.tokenStart;let t=e,r=null,n;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?n=this.Identifier():n=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:n,selector:r}}function K0(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}var Q0=F.__exportAll({generate:()=>eA,name:()=>Z0,parse:()=>rf,structure:()=>J0}),Z0="Number",J0={value:String};function rf(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function eA(e){this.token(10,e.value)}var tA=F.__exportAll({generate:()=>iA,name:()=>rA,parse:()=>nf,structure:()=>nA}),rA="Operator",nA={value:String};function nf(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function iA(e){this.tokenize(e.value)}var oA=F.__exportAll({generate:()=>lA,name:()=>sA,parse:()=>of,structure:()=>aA}),sA="Parentheses",aA={children:[[]]};function of(e,t){const r=this.tokenStart;let n=null;return this.eat(21),n=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(r,this.tokenStart),children:n}}function lA(e){this.token(21,"("),this.children(e),this.token(22,")")}var cA=F.__exportAll({generate:()=>fA,name:()=>uA,parse:()=>sf,structure:()=>dA}),uA="Percentage",dA={value:String};function sf(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function fA(e){this.token(11,e.value+"%")}var hA=F.__exportAll({generate:()=>bA,name:()=>mA,parse:()=>af,structure:()=>gA,walkContext:()=>pA}),mA="PseudoClassSelector",pA="function",gA={name:String,children:[["Raw"],null]};function af(){const e=this.tokenStart;let t=null,r,n;return this.eat(16),this.tokenType===2?(r=this.consumeFunctionName(),n=r.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),t=this.pseudo[n].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):r=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:r,children:t}}function bA(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var yA=F.__exportAll({generate:()=>SA,name:()=>vA,parse:()=>lf,structure:()=>_A,walkContext:()=>EA}),vA="PseudoElementSelector",EA="function",_A={name:String,children:[["Raw"],null]};function lf(){const e=this.tokenStart;let t=null,r,n;return this.eat(16),this.eat(16),this.tokenType===2?(r=this.consumeFunctionName(),n=r.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),t=this.pseudo[n].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):r=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:r,children:t}}function SA(e){this.token(16,":"),this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}var wA=F.__exportAll({generate:()=>LA,name:()=>TA,parse:()=>uf,structure:()=>kA}),CA=47,AA=46;function cf(){this.skipSC();const e=this.consume(10);for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);!he(r)&&r!==AA&&this.error("Unsigned number is expected",this.tokenStart-e.length+t)}return Number(e)===0&&this.error("Zero number is not allowed",this.tokenStart-e.length),e}var TA="Ratio",kA={left:String,right:String};function uf(){const e=this.tokenStart,t=cf.call(this);let r;return this.skipSC(),this.eatDelim(CA),r=cf.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:r}}function LA(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}var OA=F.__exportAll({generate:()=>NA,name:()=>"Raw",parse:()=>df,structure:()=>PA});function xA(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var rM="Raw",PA={value:String};function df(e,t,r){const n=this.getTokenStart(e);let i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r&&this.tokenStart>n?i=xA.call(this):i=this.tokenStart,{type:"Raw",loc:this.getLocation(n,i),value:this.substring(n,i)}}function NA(e){this.tokenize(e.value)}var MA=F.__exportAll({generate:()=>FA,name:()=>DA,parse:()=>hf,structure:()=>BA,walkContext:()=>IA});function ff(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function RA(){const e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}var DA="Rule",IA="rule",BA={prelude:["SelectorList","Raw"],block:["Block"]};function hf(){const e=this.tokenIndex,t=this.tokenStart;let r,n;return this.parseRulePrelude?r=this.parseWithFallback(RA,ff):r=ff.call(this,e),n=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:r,block:n}}function FA(e){this.node(e.prelude),this.node(e.block)}var jA=F.__exportAll({generate:()=>zA,name:()=>$A,parse:()=>mf,structure:()=>HA}),$A="Selector",HA={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function mf(){const e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function zA(e){this.children(e)}var VA=F.__exportAll({generate:()=>GA,name:()=>WA,parse:()=>pf,structure:()=>qA,walkContext:()=>UA}),WA="SelectorList",UA="selector",qA={children:[["Selector","Raw"]]};function pf(){const e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===18){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function GA(e){this.children(e,()=>this.token(18,","))}var pa=92,gf=34,bf=39;function yf(e){const t=e.length,r=e.charCodeAt(0),n=r===gf||r===bf?1:0,i=n===1&&t>1&&e.charCodeAt(t-1)===r?t-2:t-1;let o="";for(let s=n;s<=i;s++){let a=e.charCodeAt(s);if(a===pa){if(s===i){s!==t-1&&(o=e.substr(s+1));break}if(a=e.charCodeAt(++s),Ze(pa,a)){const l=s-1,c=dr(e,l);s=c-1,o+=yu(e.substring(l+1,c))}else a===13&&e.charCodeAt(s+1)===10&&s++}else o+=e[s]}return o}function ga(e,t){const r=t?"'":'"',n=t?bf:gf;let i="",o=!1;for(let s=0;s<e.length;s++){const a=e.charCodeAt(s);if(a===0){i+="�";continue}if(a<=31||a===127){i+="\\"+a.toString(16),o=!0;continue}a===n||a===pa?(i+="\\"+e.charAt(s),o=!1):(o&&(gt(a)||Mt(a))&&(i+=" "),i+=e.charAt(s),o=!1)}return r+i+r}var XA=F.__exportAll({generate:()=>QA,name:()=>YA,parse:()=>vf,structure:()=>KA}),YA="String",KA={value:String};function vf(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:yf(this.consume(5))}}function QA(e){this.token(5,ga(e.value))}var ZA=F.__exportAll({generate:()=>nT,name:()=>eT,parse:()=>_f,structure:()=>rT,walkContext:()=>tT}),JA=33;function Ef(e){return this.Raw(e,null,!1)}var eT="StyleSheet",tT="stylesheet",rT={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};function _f(){const e=this.tokenStart,t=this.createList();let r;for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==JA){this.next();continue}r=this.Comment();break;case 14:r=this.CDO();break;case 15:r=this.CDC();break;case 3:r=this.parseWithFallback(this.Atrule,Ef);break;default:r=this.parseWithFallback(this.Rule,Ef)}t.push(r)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function nT(e){this.children(e)}var iT=F.__exportAll({generate:()=>lT,name:()=>sT,parse:()=>wf,structure:()=>aT}),oT=42,Sf=124;function ba(){this.tokenType!==1&&this.isDelim(oT)===!1&&this.error("Identifier or asterisk is expected"),this.next()}var sT="TypeSelector",aT={name:String};function wf(){const e=this.tokenStart;return this.isDelim(Sf)?(this.next(),ba.call(this)):(ba.call(this),this.isDelim(Sf)&&(this.next(),ba.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function lT(e){this.tokenize(e.name)}var cT=F.__exportAll({generate:()=>mT,name:()=>fT,parse:()=>Tf,structure:()=>hT}),Cf=43,Af=45,ya=63;function ln(e,t){let r=0;for(let n=this.tokenStart+e;n<this.tokenEnd;n++){const i=this.charCodeAt(n);if(i===Af&&t&&r!==0)return ln.call(this,e+r+1,!1),-1;gt(i)||this.error(t&&r!==0?"Hyphen minus"+(r<6?" or hex digit":"")+" is expected":r<6?"Hex digit is expected":"Unexpected input",n),++r>6&&this.error("Too many hex digits",n)}return this.next(),r}function $i(e){let t=0;for(;this.isDelim(ya);)++t>e&&this.error("Too many question marks"),this.next()}function uT(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===Cf?"Plus sign":"Hyphen minus")+" is expected")}function dT(){let e=0;switch(this.tokenType){case 10:if(e=ln.call(this,1,!0),this.isDelim(ya)){$i.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){uT.call(this,Af),ln.call(this,1,!1);break}break;case 12:e=ln.call(this,1,!0),e>0&&$i.call(this,6-e);break;default:if(this.eatDelim(Cf),this.tokenType===1){e=ln.call(this,0,!0),e>0&&$i.call(this,6-e);break}if(this.isDelim(ya)){this.next(),$i.call(this,5);break}this.error("Hex digit or question mark is expected")}}var fT="UnicodeRange",hT={value:String};function Tf(){const e=this.tokenStart;return this.eatIdent("u"),dT.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function mT(e){this.tokenize(e.value)}var pT=32,va=92,gT=34,bT=39,yT=40,kf=41;function vT(e){const t=e.length;let r=4,n=e.charCodeAt(t-1)===kf?t-2:t-1,i="";for(;r<n&&Mt(e.charCodeAt(r));)r++;for(;r<n&&Mt(e.charCodeAt(n));)n--;for(let o=r;o<=n;o++){let s=e.charCodeAt(o);if(s===va){if(o===n){o!==t-1&&(i=e.substr(o+1));break}if(s=e.charCodeAt(++o),Ze(va,s)){const a=o-1,l=dr(e,a);o=l-1,i+=yu(e.substring(a+1,l))}else s===13&&e.charCodeAt(o+1)===10&&o++}else i+=e[o]}return i}function Lf(e){let t="",r=!1;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(i===0){t+="�";continue}if(i<=31||i===127){t+="\\"+i.toString(16),r=!0;continue}i===pT||i===va||i===gT||i===bT||i===yT||i===kf?(t+="\\"+e.charAt(n),r=!1):(r&&gt(i)&&(t+=" "),t+=e.charAt(n),r=!1)}return"url("+t+")"}var ET=F.__exportAll({generate:()=>ST,name:()=>"Url",parse:()=>Of,structure:()=>_T}),nM="Url",_T={value:String};function Of(){const e=this.tokenStart;let t;switch(this.tokenType){case 7:t=vT(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),t=yf(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function ST(e){this.token(7,Lf(e.value))}var wT=F.__exportAll({generate:()=>TT,name:()=>CT,parse:()=>xf,structure:()=>AT}),CT="Value",AT={children:[[]]};function xf(){const e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function TT(e){this.children(e)}var kT=F.__exportAll({generate:()=>PT,name:()=>OT,parse:()=>Pf,structure:()=>xT}),LT=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),OT="WhiteSpace",xT={value:String};function Pf(){return this.eat(13),LT}function PT(e){this.token(13,e.value)}var Nf=F.__exportAll({AnPlusB:()=>Vw,Atrule:()=>Xw,AtrulePrelude:()=>eC,AttributeSelector:()=>oC,Block:()=>mC,Brackets:()=>_C,CDC:()=>AC,CDO:()=>LC,ClassSelector:()=>PC,Combinator:()=>IC,Comment:()=>VC,Declaration:()=>YC,DeclarationList:()=>u0,Dimension:()=>p0,Function:()=>v0,Hash:()=>C0,IdSelector:()=>N0,Identifier:()=>L0,MediaFeature:()=>I0,MediaQuery:()=>$0,MediaQueryList:()=>W0,Nth:()=>X0,Number:()=>Q0,Operator:()=>tA,Parentheses:()=>oA,Percentage:()=>cA,PseudoClassSelector:()=>hA,PseudoElementSelector:()=>yA,Ratio:()=>wA,Raw:()=>OA,Rule:()=>MA,Selector:()=>jA,SelectorList:()=>VA,String:()=>XA,StyleSheet:()=>ZA,TypeSelector:()=>iT,UnicodeRange:()=>cT,Url:()=>ET,Value:()=>wT,WhiteSpace:()=>kT}),NT={generic:!0,...zw,node:Nf},MT=35,RT=42,Mf=43,DT=45,IT=47,BT=117;function Rf(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,BT)&&this.cmpChar(this.tokenStart+1,Mf)?this.UnicodeRange():this.Identifier();case 9:{const t=this.charCodeAt(this.tokenStart);if(t===IT||t===RT||t===Mf||t===DT)return this.Operator();t===MT&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}var FT={getNode:Rf},jT=35,$T=42,HT=43,zT=47,Df=46,VT=62,WT=124,UT=126;function qT(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function GT(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return this.lookupType(1)===16?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:this.charCodeAt(this.tokenStart)===Df&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:switch(this.charCodeAt(this.tokenStart)){case HT:case VT:case UT:case zT:return this.Combinator();case Df:return this.ClassSelector();case $T:case WT:return this.TypeSelector();case jT:return this.IdSelector()}}}var XT={onWhiteSpace:qT,getNode:GT};function YT(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function KT(){const e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());const t=this.tokenIndex,r=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(r.type==="Value"&&r.children.isEmpty){for(let n=t-this.tokenIndex;n<=0;n++)if(this.lookupType(n)===13){r.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(r)}return e}function If(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}var QT={getNode:Rf,onWhiteSpace(e,t){If(e)&&(e.value=" "+e.value),If(t.last)&&(t.last.value+=" ")},expression:YT,var:KT},ZT=F.__exportAll({AtrulePrelude:()=>FT,Selector:()=>XT,Value:()=>QT}),JT={parse:{prelude:null,block(){return this.Block(!0)}}},e1={parse:{prelude(){const e=this.createList();switch(this.skipSC(),this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===1||this.lookupNonWSType(0)===21)&&e.push(this.MediaQueryList()),e},block:null}},t1={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(){return this.Block(!1)}}},r1={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};function n1(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function i1(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):Bf.call(this)}function Bf(){const e=this.createList();let t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:t=this.Function(n1,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(i1,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}var o1={parse:{prelude(){const e=Bf.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(){return this.Block(!1)}}},s1={"font-face":JT,import:e1,media:t1,page:r1,supports:o1},Dt={parse(){return this.createSingleNodeList(this.SelectorList())}},a1={parse(){return this.createSingleNodeList(this.Selector())}},Ff={parse(){return this.createSingleNodeList(this.Identifier())}},Hi={parse(){return this.createSingleNodeList(this.Nth())}},l1={dir:Ff,has:Dt,lang:Ff,matches:Dt,is:Dt,"-moz-any":Dt,"-webkit-any":Dt,where:Dt,not:Dt,"nth-child":Hi,"nth-last-child":Hi,"nth-last-of-type":Hi,"nth-of-type":Hi,slotted:a1},c1=F.__exportAll({AnPlusB:()=>kd,Atrule:()=>Od,AtrulePrelude:()=>xd,AttributeSelector:()=>Nd,Block:()=>Dd,Brackets:()=>Id,CDC:()=>Bd,CDO:()=>Fd,ClassSelector:()=>jd,Combinator:()=>Hd,Comment:()=>zd,Declaration:()=>Ud,DeclarationList:()=>qd,Dimension:()=>Gd,Function:()=>Xd,Hash:()=>Yd,IdSelector:()=>Qd,Identifier:()=>Kd,MediaFeature:()=>Zd,MediaQuery:()=>Jd,MediaQueryList:()=>ef,Nth:()=>tf,Number:()=>rf,Operator:()=>nf,Parentheses:()=>of,Percentage:()=>sf,PseudoClassSelector:()=>af,PseudoElementSelector:()=>lf,Ratio:()=>uf,Raw:()=>df,Rule:()=>hf,Selector:()=>mf,SelectorList:()=>pf,String:()=>vf,StyleSheet:()=>_f,TypeSelector:()=>wf,UnicodeRange:()=>Tf,Url:()=>Of,Value:()=>xf,WhiteSpace:()=>Pf}),u1={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:ZT,atrule:s1,pseudo:l1,node:c1},d1={node:Nf},f1=Hw({...NT,...u1,...d1});function Ea(e){const t={};for(const r in e){let n=e[r];n&&(Array.isArray(n)||n instanceof ae?n=n.map(Ea):n.constructor===Object&&(n=Ea(n))),t[r]=n}return t}var{tokenize:iM,parse:h1,generate:tt,lexer:jf,createLexer:oM,walk:Ae,find:sM,findLast:aM,findAll:lM,toPlainObject:cM,fromPlainObject:uM,fork:m1}=f1,{hasOwnProperty:p1}=Object.prototype;function _a(e,t){const r=Object.create(null);if(!Array.isArray(e))return null;for(let n of e)t&&(n=n.toLowerCase()),r[n]=!0;return r}function $f(e){if(!e)return null;const t=_a(e.tags,!0),r=_a(e.ids),n=_a(e.classes);return t===null&&r===null&&n===null?null:{tags:t,ids:r,classes:n}}function g1(e){let t=!1;if(e.scopes&&Array.isArray(e.scopes)){t=Object.create(null);for(let r=0;r<e.scopes.length;r++){const n=e.scopes[r];if(!n||!Array.isArray(n))throw new Error("Wrong usage format");for(const i of n){if(p1.call(t,i))throw new Error(`Class can't be used for several scopes: ${i}`);t[i]=r+1}}}return{whitelist:$f(e),blacklist:$f(e.blacklist),scopes:t}}function It(e){return!e||!e.children||e.children.isEmpty}function Hf(e,t){return e!==null&&e.children===t}function b1(e,t,r){if(e.block&&(this.stylesheet!==null&&(this.stylesheet.firstAtrulesAllowed=!1),It(e.block))){r.remove(t);return}switch(e.name){case"charset":if(It(e.prelude)){r.remove(t);return}if(t.prev){r.remove(t);return}break;case"import":if(this.stylesheet===null||!this.stylesheet.firstAtrulesAllowed){r.remove(t);return}r.prevUntil(t.prev,function(n){if(!(n.type==="Atrule"&&(n.name==="import"||n.name==="charset")))return this.root.firstAtrulesAllowed=!1,r.remove(t),!0},this);break;default:{const n=ze(e.name).basename;(n==="keyframes"||n==="media"||n==="supports")&&(It(e.prelude)||It(e.block))&&r.remove(t)}}}function y1(e,t,r){r.remove(t)}function v1(e,t,r){if(e.value.children&&e.value.children.isEmpty){r.remove(t);return}mr(e.property).custom&&/\S/.test(e.value.value)&&(e.value.value=e.value.value.trim())}function E1(e,t,r){(Hf(this.stylesheet,r)||Hf(this.block,r))&&r.remove(t)}var{hasOwnProperty:_r}=Object.prototype,_1=new Set(["keyframes"]);function zf(e,t){return e.children.forEach((r,n,i)=>{let o=!1;Ae(r,function(s){if(this.selector===null||this.selector===e)switch(s.type){case"SelectorList":(this.function===null||this.function.name.toLowerCase()!=="not")&&zf(s,t)&&(o=!0);break;case"ClassSelector":t.whitelist!==null&&t.whitelist.classes!==null&&!_r.call(t.whitelist.classes,s.name)&&(o=!0),t.blacklist!==null&&t.blacklist.classes!==null&&_r.call(t.blacklist.classes,s.name)&&(o=!0);break;case"IdSelector":t.whitelist!==null&&t.whitelist.ids!==null&&!_r.call(t.whitelist.ids,s.name)&&(o=!0),t.blacklist!==null&&t.blacklist.ids!==null&&_r.call(t.blacklist.ids,s.name)&&(o=!0);break;case"TypeSelector":s.name.charAt(s.name.length-1)!=="*"&&(t.whitelist!==null&&t.whitelist.tags!==null&&!_r.call(t.whitelist.tags,s.name.toLowerCase())&&(o=!0),t.blacklist!==null&&t.blacklist.tags!==null&&_r.call(t.blacklist.tags,s.name.toLowerCase())&&(o=!0))}}),o&&i.remove(n)}),e.children.isEmpty}function S1(e,t,r,n){if(It(e.prelude)||It(e.block)){r.remove(t);return}if(this.atrule&&_1.has(ze(this.atrule.name).basename))return;const{usage:i}=n;if(i&&(i.whitelist!==null||i.blacklist!==null)&&(zf(e.prelude,i),It(e.prelude))){r.remove(t);return}}function w1(e,t,r){if(t.data.name!=="*")return;const n=t.next&&t.next.data.type;(n==="IdSelector"||n==="ClassSelector"||n==="AttributeSelector"||n==="PseudoClassSelector"||n==="PseudoElementSelector")&&r.remove(t)}function C1(e,t,r){r.remove(t)}var Vf={Atrule:b1,Comment:y1,Declaration:v1,Raw:E1,Rule:S1,TypeSelector:w1,WhiteSpace:C1};function A1(e,t){Ae(e,{leave(r,n,i){Vf.hasOwnProperty(r.type)&&Vf[r.type].call(this,r,n,i,t)}})}function T1(e){e.block.children.forEach(t=>{t.prelude.children.forEach(r=>{r.children.forEach((n,i)=>{n.type==="Percentage"&&n.value==="100"?i.data={type:"TypeSelector",loc:n.loc,name:"to"}:n.type==="TypeSelector"&&n.name==="from"&&(i.data={type:"Percentage",loc:n.loc,value:"0"})})})})}function k1(e){ze(e.name).basename==="keyframes"&&T1(e)}var L1=/^(-?\d|--)|[\u0000-\u002c\u002e\u002f\u003A-\u0040\u005B-\u005E\u0060\u007B-\u009f]/;function O1(e){return e===""||e==="-"?!1:!L1.test(e)}function x1(e){const t=e.value;!t||t.type!=="String"||O1(t.value)&&(e.value={type:"Identifier",loc:t.loc,name:t.value})}function P1(e){const t=e.children;t.forEachRight(function(r,n){if(r.type==="Identifier"){if(r.name==="bold")n.data={type:"Number",loc:r.loc,value:"700"};else if(r.name==="normal"){const i=n.prev;i&&i.data.type==="Operator"&&i.data.value==="/"&&this.remove(i),this.remove(n)}}}),t.isEmpty&&t.insert(t.createItem({type:"Identifier",name:"normal"}))}function N1(e){const t=e.children.head.data;if(t.type==="Identifier")switch(t.name){case"normal":e.children.head.data={type:"Number",loc:t.loc,value:"400"};break;case"bold":e.children.head.data={type:"Number",loc:t.loc,value:"700"}}}function M1(e){function t(){n.length||n.unshift({type:"Number",loc:null,value:"0"},{type:"Number",loc:null,value:"0"}),r.push.apply(r,n),n=[]}let r=[],n=[];e.children.forEach(i=>{if(i.type==="Operator"&&i.value===","){t(),r.push(i);return}i.type==="Identifier"&&(i.name==="transparent"||i.name==="none"||i.name==="repeat"||i.name==="scroll")||n.push(i)}),t(),e.children=new ae().fromArray(r)}function Wf(e){e.children.forEach((t,r,n)=>{t.type==="Identifier"&&t.name.toLowerCase()==="none"&&(n.head===n.tail?r.data={type:"Number",loc:t.loc,value:"0"}:n.remove(r))})}var Uf={font:P1,"font-weight":N1,background:M1,border:Wf,outline:Wf};function R1(e){if(!this.declaration)return;const t=mr(this.declaration.property);Uf.hasOwnProperty(t.basename)&&Uf[t.basename](e)}var D1=/^(?:\+|(-))?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,I1=/^([\+\-])?0*(\d*)(?:\.0*|(\.\d*?)0*)?$/,B1=new Set(["Dimension","Hash","Identifier","Number","Raw","UnicodeRange"]);function zi(e,t){const r=t&&t.prev!==null&&B1.has(t.prev.data.type)?I1:D1;return e=String(e).replace(r,"$1$2$3"),(e===""||e==="-")&&(e="0"),e}function F1(e){e.value=zi(e.value)}var j1=new Set(["calc","min","max","clamp"]),$1=new Set(["px","mm","cm","in","pt","pc","em","ex","ch","rem","vh","vw","vmin","vmax","vm"]);function H1(e,t){const r=zi(e.value);if(e.value=r,r==="0"&&this.declaration!==null&&this.atrulePrelude===null){const n=e.unit.toLowerCase();if(!$1.has(n)||this.declaration.property==="-ms-flex"||this.declaration.property==="flex"||this.function&&j1.has(this.function.name))return;t.data={type:"Number",loc:e.loc,value:r}}}var z1=new Set(["width","min-width","max-width","height","min-height","max-height","flex","-ms-flex"]);function V1(e,t){e.value=zi(e.value),e.value==="0"&&this.declaration&&!z1.has(this.declaration.property)&&(t.data={type:"Number",loc:e.loc,value:e.value},jf.matchDeclaration(this.declaration).isType(t.data,"length")||(t.data=e))}function W1(e){e.value=e.value.replace(/\\/g,"/")}var qf={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Gf={8e5:"maroon",800080:"purple",808e3:"olive",808080:"gray","00ffff":"cyan",f0ffff:"azure",f5f5dc:"beige",ffe4c4:"bisque","000000":"black","0000ff":"blue",a52a2a:"brown",ff7f50:"coral",ffd700:"gold","008000":"green","4b0082":"indigo",fffff0:"ivory",f0e68c:"khaki","00ff00":"lime",faf0e6:"linen","000080":"navy",ffa500:"orange",da70d6:"orchid",cd853f:"peru",ffc0cb:"pink",dda0dd:"plum",f00:"red",ff0000:"red",fa8072:"salmon",a0522d:"sienna",c0c0c0:"silver",fffafa:"snow",d2b48c:"tan","008080":"teal",ff6347:"tomato",ee82ee:"violet",f5deb3:"wheat",ffffff:"white",ffff00:"yellow"};function Sa(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Xf(e,t,r,n){let i,o,s;if(t===0)i=o=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;i=Sa(l,a,e+1/3),o=Sa(l,a,e),s=Sa(l,a,e-1/3)}return[Math.round(i*255),Math.round(o*255),Math.round(s*255),n]}function wa(e){return e=e.toString(16),e.length===1?"0"+e:e}function Ca(e,t,r){let n=e.head,i=[],o=!1;for(;n!==null;){const{type:s,value:a}=n.data;switch(s){case"Number":case"Percentage":if(o)return;o=!0,i.push({type:s,value:Number(a)});break;case"Operator":if(a===","){if(!o)return;o=!1}else if(o||a!=="+")return;break;default:return}n=n.next}if(i.length===t){if(i.length===4){if(i[3].type!=="Number")return;i[3].type="Alpha"}if(r){if(i[0].type!==i[1].type||i[0].type!==i[2].type)return}else{if(i[0].type!=="Number"||i[1].type!=="Percentage"||i[2].type!=="Percentage")return;i[0].type="Angle"}return i.map(function(s){let a=Math.max(0,s.value);switch(s.type){case"Number":a=Math.min(a,255);break;case"Percentage":if(a=Math.min(a,100)/100,!r)return a;a=255*a;break;case"Angle":return(a%360+360)%360/360;case"Alpha":return Math.min(a,1)}return Math.round(a)})}}function U1(e,t){let r=e.name,n;if(r==="rgba"||r==="hsla"){if(n=Ca(e.children,4,r==="rgba"),!n)return;if(r==="hsla"&&(n=Xf(...n),e.name="rgba"),n[3]===0){const i=this.function&&this.function.name;if(n[0]===0&&n[1]===0&&n[2]===0||!/^(?:to|from|color-stop)$|gradient$/i.test(i)){t.data={type:"Identifier",loc:e.loc,name:"transparent"};return}}if(n[3]!==1){e.children.forEach((i,o,s)=>{if(i.type==="Operator"){i.value!==","&&s.remove(o);return}o.data={type:"Number",loc:i.loc,value:zi(n.shift())}});return}r="rgb"}if(r==="hsl"){if(n=n||Ca(e.children,3,!1),!n)return;n=Xf(...n),r="rgb"}if(r==="rgb"){if(n=n||Ca(e.children,3,!0),!n)return;t.data={type:"Hash",loc:e.loc,value:wa(n[0])+wa(n[1])+wa(n[2])},Yf(t.data,t)}}function q1(e,t){if(this.declaration===null)return;let r=e.name.toLowerCase();if(qf.hasOwnProperty(r)&&jf.matchDeclaration(this.declaration).isType(e,"color")){const n=qf[r];n.length+1<=r.length?t.data={type:"Hash",loc:e.loc,value:n}:(r==="grey"&&(r="gray"),e.name=r)}}function Yf(e,t){let r=e.value.toLowerCase();r.length===6&&r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&(r=r[0]+r[2]+r[4]),Gf[r]?t.data={type:"Identifier",loc:e.loc,name:Gf[r]}:e.value=r}var Kf={Atrule:k1,AttributeSelector:x1,Value:R1,Dimension:H1,Percentage:V1,Number:F1,Url:W1,Hash:Yf,Identifier:q1,Function:U1};function G1(e){Ae(e,{leave(t,r,n){Kf.hasOwnProperty(t.type)&&Kf[t.type].call(this,t,r,n)}})}var X1=class{constructor(){this.map=new Map}resolve(e){let t=this.map.get(e);return t===void 0&&(t=this.map.size+1,this.map.set(e,t)),t}};function Y1(){const e=new X1;return function(r){const n=tt(r);return r.id=e.resolve(n),r.length=n.length,r.fingerprint=null,r}}function K1(e){return e.type==="Raw"?h1(e.value,{context:"selectorList"}):e}function Q1(e,t){for(let r=0;r<3;r++)if(e[r]!==t[r])return e[r]>t[r]?e:t;return e}function Qf(e){return K1(e).children.reduce((t,r)=>Q1(Aa(r),t),[0,0,0])}function Aa(e){let t=0,r=0,n=0;return e.children.forEach(i=>{switch(i.type){case"IdSelector":t++;break;case"ClassSelector":case"AttributeSelector":r++;break;case"PseudoClassSelector":switch(i.name.toLowerCase()){case"not":case"has":case"is":case"matches":case"-webkit-any":case"-moz-any":{const[o,s,a]=Qf(i.children.first);t+=o,r+=s,n+=a;break}case"nth-child":case"nth-last-child":{const o=i.children.first;if(o.type==="Nth"&&o.selector){const[s,a,l]=Qf(o.selector);t+=s,r+=a+1,n+=l}else r++;break}case"where":break;case"before":case"after":case"first-line":case"first-letter":n++;break;default:r++}break;case"TypeSelector":i.name.endsWith("*")||n++;break;case"PseudoElementSelector":n++}}),[t,r,n]}var Z1=new Set(["first-letter","first-line","after","before"]),J1=new Set(["link","visited","hover","active","first-letter","first-line","after","before"]);function ek(e,t){const r=new Set;e.prelude.children.forEach(function(n){let i="*",o=0;n.children.forEach(function(s){switch(s.type){case"ClassSelector":if(t&&t.scopes){const a=t.scopes[s.name]||0;if(o!==0&&a!==o)throw new Error("Selector can't has classes from different scopes: "+tt(n));o=a}break;case"PseudoClassSelector":{const a=s.name.toLowerCase();J1.has(a)||r.add(`:${a}`);break}case"PseudoElementSelector":{const a=s.name.toLowerCase();Z1.has(a)||r.add(`::${a}`);break}case"TypeSelector":i=s.name.toLowerCase();break;case"AttributeSelector":s.flags&&r.add(`[${s.flags.toLowerCase()}]`);break;case"Combinator":i="*"}}),n.compareMarker=Aa(n).toString(),n.id=null,n.id=tt(n),o&&(n.compareMarker+=":"+o),i!=="*"&&(n.compareMarker+=","+i)}),e.pseudoSignature=r.size>0?[...r].sort().join(","):!1}function tk(e,t){const r=Y1();return Ae(e,{visit:"Rule",enter(n){n.block.children.forEach(r),ek(n,t.usage)}}),Ae(e,{visit:"Atrule",enter(n){n.prelude&&(n.prelude.id=null,n.prelude.id=tt(n.prelude)),ze(n.name).basename==="keyframes"&&(n.block.avoidRulesMerge=!0,n.block.children.forEach(function(i){i.prelude.children.forEach(function(o){o.compareMarker=o.id})}))}}),{declaration:r}}var{hasOwnProperty:Zf}=Object.prototype;function Jf(e,t,r,n){const i=t.data,o=ze(i.name).basename,s=i.name.toLowerCase()+"/"+(i.prelude?i.prelude.id:null);Zf.call(e,o)||(e[o]=Object.create(null)),n&&delete e[o][s],Zf.call(e[o],s)||(e[o][s]=new ae),e[o][s].append(r.remove(t))}function rk(e,t){const r=Object.create(null);let n=null;e.children.forEach(function(i,o,s){if(i.type==="Atrule"){const a=ze(i.name).basename;switch(a){case"keyframes":Jf(r,o,s,!0);return;case"media":if(t.forceMediaMerge){Jf(r,o,s,!1);return}}n===null&&a!=="charset"&&a!=="import"&&(n=o)}else n===null&&(n=o)});for(const i in r)for(const o in r[i])e.children.insertList(r[i][o],i==="media"?null:n)}function eh(e){return e.type==="Atrule"&&e.name==="media"}function nk(e,t,r){if(!eh(e))return;const n=t.prev&&t.prev.data;!n||!eh(n)||e.prelude&&n.prelude&&e.prelude.id===n.prelude.id&&(n.block.children.appendList(e.block.children),r.remove(t))}function ik(e,t){rk(e,t),Ae(e,{visit:"Atrule",reverse:!0,enter:nk})}var{hasOwnProperty:ok}=Object.prototype;function th(e,t){let r=e.head,n=t.head;for(;r!==null&&n!==null&&r.data.id===n.data.id;)r=r.next,n=n.next;return r===null&&n===null}function rh(e,t){let r=e.head,n=t.head;for(;r!==null&&n!==null&&r.data.id===n.data.id;)r=r.next,n=n.next;return r===null&&n===null}function sk(e,t){const r={eq:[],ne1:[],ne2:[],ne2overrided:[]},n=Object.create(null),i=Object.create(null);for(let o=t.head;o;o=o.next)i[o.data.id]=!0;for(let o=e.head;o;o=o.next){const s=o.data;s.fingerprint&&(n[s.fingerprint]=s.important),i[s.id]?(i[s.id]=!1,r.eq.push(s)):r.ne1.push(s)}for(let o=t.head;o;o=o.next){const s=o.data;i[s.id]&&((!ok.call(n,s.fingerprint)||!n[s.fingerprint]&&s.important)&&r.ne2.push(s),r.ne2overrided.push(s))}return r}function cn(e,t){return t.forEach(r=>{const n=r.id;let i=e.head;for(;i;){const o=i.data.id;if(o===n)return;if(o>n)break;i=i.next}e.insert(e.createItem(r),i)}),e}function nh(e,t){let r=e.head;for(;r!==null;){let n=t.head;for(;n!==null;){if(r.data.compareMarker===n.data.compareMarker)return!0;n=n.next}r=r.next}return!1}function Vi(e){switch(e.type){case"Rule":return nh(e.prelude.children,this);case"Atrule":if(e.block)return e.block.children.some(Vi,this);break;case"Declaration":return!1}return!0}function ak(e,t,r){const n=e.prelude.children,i=e.block.children;r.prevUntil(t.prev,function(o){if(o.type!=="Rule")return Vi.call(n,o);const s=o.prelude.children,a=o.block.children;if(e.pseudoSignature===o.pseudoSignature){if(th(s,n))return a.appendList(i),r.remove(t),!0;if(rh(i,a))return cn(s,n),r.remove(t),!0}return nh(n,s)})}function lk(e){Ae(e,{visit:"Rule",enter:ak})}function ck(e,t,r){const n=e.prelude.children;for(;n.head!==n.tail;){const i=new ae;i.insert(n.remove(n.head)),r.insert(r.createItem({type:"Rule",loc:e.loc,prelude:{type:"SelectorList",loc:e.prelude.loc,children:i},block:{type:"Block",loc:e.block.loc,children:e.block.children.copy()},pseudoSignature:e.pseudoSignature}),t)}}function uk(e){Ae(e,{visit:"Rule",reverse:!0,enter:ck})}var ih=1,dk=2,Sr=0,un=1,Ta=2,Wi=3,oh=["top","right","bottom","left"],fk={"margin-top":"top","margin-right":"right","margin-bottom":"bottom","margin-left":"left","padding-top":"top","padding-right":"right","padding-bottom":"bottom","padding-left":"left","border-top-color":"top","border-right-color":"right","border-bottom-color":"bottom","border-left-color":"left","border-top-width":"top","border-right-width":"right","border-bottom-width":"bottom","border-left-width":"left","border-top-style":"top","border-right-style":"right","border-bottom-style":"bottom","border-left-style":"left"},sh={margin:"margin","margin-top":"margin","margin-right":"margin","margin-bottom":"margin","margin-left":"margin",padding:"padding","padding-top":"padding","padding-right":"padding","padding-bottom":"padding","padding-left":"padding","border-color":"border-color","border-top-color":"border-color","border-right-color":"border-color","border-bottom-color":"border-color","border-left-color":"border-color","border-width":"border-width","border-top-width":"border-width","border-right-width":"border-width","border-bottom-width":"border-width","border-left-width":"border-width","border-style":"border-style","border-top-style":"border-style","border-right-style":"border-style","border-bottom-style":"border-style","border-left-style":"border-style"},hk=class{constructor(e){this.name=e,this.loc=null,this.iehack=void 0,this.sides={top:null,right:null,bottom:null,left:null}}getValueSequence(e,t){const r=[];let n="";return e.value.type!=="Value"||e.value.children.some(function(i){let o=!1;switch(i.type){case"Identifier":switch(i.name){case"\\0":case"\\9":n=i.name;return;case"inherit":case"initial":case"unset":case"revert":o=i.name}break;case"Dimension":switch(i.unit){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":o=i.unit}break;case"Hash":case"Number":case"Percentage":break;case"Function":if(i.name==="var")return!0;o=i.name;break;default:return!0}r.push({node:i,special:o,important:e.important})})||r.length>t||typeof this.iehack=="string"&&this.iehack!==n?!1:(this.iehack=n,r)}canOverride(e,t){const r=this.sides[e];return!r||t.important&&!r.important}add(e,t){function r(){const n=this.sides,i=fk[e];if(i){if(!(i in n))return!1;const o=this.getValueSequence(t,1);if(!o||!o.length)return!1;for(const s in n)if(n[s]!==null&&n[s].special!==o[0].special)return!1;return this.canOverride(i,o[0])&&(n[i]=o[0]),!0}else if(e===this.name){const o=this.getValueSequence(t,4);if(!o||!o.length)return!1;switch(o.length){case 1:o[un]=o[Sr],o[Ta]=o[Sr],o[Wi]=o[Sr];break;case 2:o[Ta]=o[Sr],o[Wi]=o[un];break;case 3:o[Wi]=o[un]}for(let s=0;s<4;s++)for(const a in n)if(n[a]!==null&&n[a].special!==o[s].special)return!1;for(let s=0;s<4;s++)this.canOverride(oh[s],o[s])&&(n[oh[s]]=o[s]);return!0}}return r.call(this)?(this.loc||(this.loc=t.loc),!0):!1}isOkToMinimize(){const e=this.sides.top,t=this.sides.right,r=this.sides.bottom,n=this.sides.left;if(e&&t&&r&&n){const i=e.important+t.important+r.important+n.important;return i===0||i===4}return!1}getValue(){const e=new ae,t=this.sides,r=[t.top,t.right,t.bottom,t.left],n=[tt(t.top.node),tt(t.right.node),tt(t.bottom.node),tt(t.left.node)];n[Wi]===n[un]&&(r.pop(),n[Ta]===n[Sr]&&(r.pop(),n[un]===n[Sr]&&r.pop()));for(let i=0;i<r.length;i++)e.appendData(r[i].node);return this.iehack&&e.appendData({type:"Identifier",loc:null,name:this.iehack}),{type:"Value",loc:null,children:e}}getDeclaration(){return{type:"Declaration",loc:this.loc,important:this.sides.top.important,property:this.name,value:this.getValue()}}};function mk(e,t,r,n){const i=e.block.children,o=e.prelude.children.first.id;return e.block.children.forEachRight(function(s,a){const l=s.property;if(!sh.hasOwnProperty(l))return;const c=sh[l];let u,d;if((!n||o===n)&&c in t&&(d=dk,u=t[c]),(!u||!u.add(l,s))&&(d=ih,u=new hk(c),!u.add(l,s))){n=null;return}t[c]=u,r.push({operation:d,block:i,item:a,shorthand:u}),n=o}),n}function pk(e,t){e.forEach(function(r){const n=r.shorthand;n.isOkToMinimize()&&(r.operation===ih?r.item.data=t(n.getDeclaration()):r.block.remove(r.item))})}function gk(e,t){const r={},n=[];Ae(e,{visit:"Rule",reverse:!0,enter(i){const o=this.block||this.stylesheet,s=(i.pseudoSignature||"")+"|"+i.prelude.children.first.id;let a,l;r.hasOwnProperty(o.id)?a=r[o.id]:(a={lastShortSelector:null},r[o.id]=a),a.hasOwnProperty(s)?l=a[s]:(l={},a[s]=l),a.lastShortSelector=mk.call(this,i,l,n,a.lastShortSelector)}}),pk(n,t.declaration)}var bk=1,yk=new Set(["src"]),ah={display:/table|ruby|flex|-(flex)?box$|grid|contents|run-in/i,"text-align":/^(start|end|match-parent|justify-all)$/i},lh={cursor:["auto","crosshair","default","move","text","wait","help","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","pointer","progress","not-allowed","no-drop","vertical-text","all-scroll","col-resize","row-resize"],overflow:["hidden","visible","scroll","auto"],position:["static","relative","absolute","fixed"]},ch={"border-width":["border"],"border-style":["border"],"border-color":["border"],"border-top":["border"],"border-right":["border"],"border-bottom":["border"],"border-left":["border"],"border-top-width":["border-top","border-width","border"],"border-right-width":["border-right","border-width","border"],"border-bottom-width":["border-bottom","border-width","border"],"border-left-width":["border-left","border-width","border"],"border-top-style":["border-top","border-style","border"],"border-right-style":["border-right","border-style","border"],"border-bottom-style":["border-bottom","border-style","border"],"border-left-style":["border-left","border-style","border"],"border-top-color":["border-top","border-color","border"],"border-right-color":["border-right","border-color","border"],"border-bottom-color":["border-bottom","border-color","border"],"border-left-color":["border-left","border-color","border"],"margin-top":["margin"],"margin-right":["margin"],"margin-bottom":["margin"],"margin-left":["margin"],"padding-top":["padding"],"padding-right":["padding"],"padding-bottom":["padding"],"padding-left":["padding"],"font-style":["font"],"font-variant":["font"],"font-weight":["font"],"font-size":["font"],"font-family":["font"],"list-style-type":["list-style"],"list-style-position":["list-style"],"list-style-image":["list-style"]};function uh(e,t,r){const n=mr(e).basename;if(n==="background")return e+":"+tt(t.value);const i=t.id;let o=r[i];if(!o){switch(t.value.type){case"Value":const s={};let a="",l="",c=!1;t.value.children.forEach(function u(d){switch(d.type){case"Value":case"Brackets":case"Parentheses":d.children.forEach(u);break;case"Raw":c=!0;break;case"Identifier":{const{name:f}=d;a||(a=ze(f).vendor),/\\[09]/.test(f)&&(l=RegExp.lastMatch),lh.hasOwnProperty(n)?lh[n].indexOf(f)===-1&&(s[f]=!0):ah.hasOwnProperty(n)&&ah[n].test(f)&&(s[f]=!0);break}case"Function":{let{name:f}=d;a||(a=ze(f).vendor),f==="rect"&&(d.children.some(h=>h.type==="Operator"&&h.value===",")||(f="rect-backward")),s[f+"()"]=!0,d.children.forEach(u);break}case"Dimension":{const{unit:f}=d;switch(/\\[09]/.test(f)&&(l=RegExp.lastMatch),f){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":s[f]=!0}break}}}),o=c?"!"+bk++:"!"+Object.keys(s).sort()+"|"+l+a;break;case"Raw":o="!"+t.value.value;break;default:o=tt(t.value)}r[i]=o}return e+o}function vk(e,t,r){const n=mr(t.property);if(ch.hasOwnProperty(n.basename)){const i=ch[n.basename];for(const o of i){const s=uh(n.prefix+o,t,r),a=e.hasOwnProperty(s)?e[s]:null;if(a&&(!t.important||a.item.data.important))return a}}}function Ek(e,t,r,n,i){const o=e.block.children;o.forEachRight(function(s,a){const{property:l}=s,c=uh(l,s,i),u=n[c];u&&!yk.has(l)?s.important&&!u.item.data.important?(n[c]={block:o,item:a},u.block.remove(u.item)):o.remove(a):vk(n,s,i)?o.remove(a):(s.fingerprint=c,n[c]={block:o,item:a})}),o.isEmpty&&r.remove(t)}function _k(e){const t={},r=Object.create(null);Ae(e,{visit:"Rule",reverse:!0,enter(n,i,o){const s=this.block||this.stylesheet,a=(n.pseudoSignature||"")+"|"+n.prelude.children.first.id;let l,c;t.hasOwnProperty(s.id)?l=t[s.id]:(l={},t[s.id]=l),l.hasOwnProperty(a)?c=l[a]:(c={},l[a]=c),Ek.call(this,n,i,o,c,r)}})}function Sk(e,t,r){const n=e.prelude.children,i=e.block.children,o=n.first.compareMarker,s={};r.nextUntil(t.next,function(a,l){if(a.type!=="Rule")return Vi.call(n,a);if(e.pseudoSignature!==a.pseudoSignature)return!0;const c=a.prelude.children.head,u=a.block.children,d=c.data.compareMarker;if(d in s)return!0;if(n.head===n.tail&&n.first.id===c.data.id){i.appendList(u),r.remove(l);return}if(rh(i,u)){const f=c.data.id;n.some((h,g)=>{const y=h.id;if(f<y)return n.insert(c,g),!0;if(!g.next)return n.insert(c),!0}),r.remove(l);return}if(d===o)return!0;s[d]=!0})}function wk(e){Ae(e,{visit:"Rule",enter:Sk})}function ka(e){return e.reduce((t,r)=>t+r.id.length+1,0)-1}function La(e){let t=0;for(const r of e)t+=r.length;return t+e.length-1}function Ck(e,t,r){const n=this.block!==null?this.block.avoidRulesMerge:!1,i=e.prelude.children,o=e.block,s=Object.create(null);let a=!0,l=!0;r.prevUntil(t.prev,function(c,u){const d=c.block,f=c.type;if(f!=="Rule"){const y=Vi.call(i,c);return!y&&f==="Atrule"&&d&&Ae(d,{visit:"Rule",enter(A){A.prelude.children.forEach(L=>{s[L.compareMarker]=!0})}}),y}if(e.pseudoSignature!==c.pseudoSignature)return!0;const h=c.prelude.children;if(l=!h.some(y=>y.compareMarker in s),!l&&!a)return!0;if(a&&th(h,i))return d.children.appendList(o.children),r.remove(t),!0;const g=sk(o.children,d.children);if(g.eq.length){if(!g.ne1.length&&!g.ne2.length)return l&&(cn(i,h),r.remove(u)),!0;if(!n)if(g.ne1.length&&!g.ne2.length){const y=ka(i),A=La(g.eq);a&&y<A&&(cn(h,i),o.children.fromArray(g.ne1))}else if(!g.ne1.length&&g.ne2.length){const y=ka(h),A=La(g.eq);l&&y<A&&(cn(i,h),d.children.fromArray(g.ne2))}else{const y={type:"SelectorList",loc:null,children:cn(h.copy(),i)},A=ka(y.children)+2;if(La(g.eq)>=A){const L=r.createItem({type:"Rule",loc:null,prelude:y,block:{type:"Block",loc:null,children:new ae().fromArray(g.eq)},pseudoSignature:e.pseudoSignature});return o.children.fromArray(g.ne1),d.children.fromArray(g.ne2overrided),a?r.insert(L,u):r.insert(L,t),!0}}}a&&(a=!h.some(y=>i.some(A=>A.compareMarker===y.compareMarker))),h.forEach(y=>{s[y.compareMarker]=!0})})}function Ak(e){Ae(e,{visit:"Rule",reverse:!0,enter:Ck})}function Tk(e,t){const r=tk(e,t);t.logger("prepare",e),ik(e,t),t.logger("mergeAtrule",e),lk(e),t.logger("initialMergeRuleset",e),uk(e),t.logger("disjoinRuleset",e),gk(e,r),t.logger("restructShorthand",e),_k(e),t.logger("restructBlock",e),wk(e),t.logger("mergeRuleset",e),Ak(e),t.logger("restructRuleset",e)}function kk(e,t){const r=new ae;let n=!1,i;return e.nextUntil(e.head,(o,s,a)=>{if(o.type==="Comment"){if(!t||o.value.charAt(0)!=="!"){a.remove(s);return}if(n||i)return!0;a.remove(s),i=o;return}o.type!=="WhiteSpace"&&(n=!0),r.insert(a.remove(s))}),{comment:i,stylesheet:{type:"StyleSheet",loc:null,children:r}}}function Lk(e,t,r,n){n.logger(`Compress block #${r}`,null,!0);let i=1;return e.type==="StyleSheet"&&(e.firstAtrulesAllowed=t,e.id=i++),Ae(e,{visit:"Atrule",enter(o){o.block!==null&&(o.block.id=i++)}}),n.logger("init",e),A1(e,n),n.logger("clean",e),G1(e,n),n.logger("replace",e),n.restructuring&&Tk(e,n),e}function Ok(e){let t="comments"in e?e.comments:"exclamation";return typeof t=="boolean"?t=t?"exclamation":!1:t!=="exclamation"&&t!=="first-exclamation"&&(t=!1),t}function xk(e){return"restructure"in e?e.restructure:"restructuring"in e?e.restructuring:!0}function Pk(e){return new ae().appendData({type:"Rule",loc:null,prelude:{type:"SelectorList",loc:null,children:new ae().appendData({type:"Selector",loc:null,children:new ae().appendData({type:"TypeSelector",loc:null,name:"x"})})},block:e})}function Nk(e,t){e=e||{type:"StyleSheet",loc:null,children:new ae},t=t||{};const r={logger:typeof t.logger=="function"?t.logger:function(){},restructuring:xk(t),forceMediaMerge:!!t.forceMediaMerge,usage:t.usage?g1(t.usage):!1},n=new ae;let i=Ok(t),o=!0,s,a,l=1,c;t.clone&&(e=Ea(e)),e.type==="StyleSheet"?(s=e.children,e.children=n):s=Pk(e);do{if(a=kk(s,!!i),Lk(a.stylesheet,o,l++,r),c=a.stylesheet.children,a.comment&&(n.isEmpty||n.insert(ae.createItem({type:"Raw",value:`
20
20
  `})),n.insert(ae.createItem(a.comment)),c.isEmpty||n.insert(ae.createItem({type:"Raw",value:`
21
21
  `}))),o&&!c.isEmpty){const u=c.last;(u.type!=="Atrule"||u.name!=="import"&&u.name!=="charset")&&(o=!1)}i!=="exclamation"&&(i=!1),n.appendList(c)}while(!s.isEmpty);return{ast:e}}var Mk=F.__exportAll({compress:()=>Nk,find:()=>jk,findAll:()=>Hk,findLast:()=>$k,fromPlainObject:()=>zk,generate:()=>Bk,lexer:()=>Rk,parse:()=>Ik,specificity:()=>Aa,toPlainObject:()=>Vk,tokenize:()=>Dk,walk:()=>Fk});function dh(e){const t=ga(e,!0),r=ga(e);return t.length<r.length?t:r}var{lexer:Rk,tokenize:Dk,parse:Ik,generate:Bk,walk:Fk,find:jk,findLast:$k,findAll:Hk,fromPlainObject:zk,toPlainObject:Vk}=m1({node:{String:{generate(e){this.token(5,dh(e.value))}},Url:{generate(e){const t=Lf(e.value),r=dh(e.value);this.token(7,t.length<=r.length+5?t:"url("+r+")")}}}}),{parse:Wk,generate:Oa,compress:Uk}=Mk;function wr(e,t,r,n){return t.debug,n}function qk(e){let t;return function(n,i){let o=n;if(i&&(o=`[${((Date.now()-t)/1e3).toFixed(3)}s] ${o}`),e>1&&i){let s=Oa(i);e===2&&s.length>256&&(s=s.substr(0,256)+"..."),o+=`
22
22
  ${s}
@@ -25,7 +25,7 @@ ${Nb()}
25
25
  `;s.innerHTML!==a&&(s.textContent=a,n=!0)}if(s.sheet&&ph(e,s.sheet,i,o)){let a=Kk(s.sheet);a=xa(a,hh).css,a=`
26
26
  `+cssbeautify(a,{indent:" ",autosemicolon:!0})+`
27
27
  `,s.innerHTML!==a&&(s.textContent=a,n=!0)}}return n}function ph(e,t,r,n,i=new Set){let o=!1,s;try{s=t.cssRules}catch{return!1}for(let a=s.length-1;a>=0;a--){const l=s[a];if(l instanceof CSSStyleRule){let c=l.selectorText;r&&c.includes(".em-")&&(c=`${c}, ${c.replace(/\.em-/g,".noresp-em-")}`),Yk(e,c,n)||(t.deleteRule(a),o=!0)}else if(l instanceof CSSGroupingRule)o=ph(e,l,r,n,i)||o,l.cssRules.length||(t.deleteRule(a),o=!0);else if(l instanceof CSSFontFaceRule){const c=l.cssText;i.has(c)?(t.deleteRule(a),o=!0):i.add(c)}}return o}function Yk(e,t,r){if(r.has(t))return r.get(t);let n=!1;try{n=!!e.querySelector(t)}catch{n=!0}return r.set(t,n),n}function Kk(e){return Array.from(e.cssRules,t=>t.cssText).join(`
28
- `)}function dn(e){return ge(e)}var dM=ge("extensions.atomsHandlers"),fM=dn("HANDLE_ATOM_INSERT"),hM=ge("extensions.sandboxExtensions"),Qk="SANDBOX_EXTENSION_SCRIPT_STATUS",mM=ge("MESSAGE_SERVICE"),pM=dn("SETTINGS_PANEL_EVENT"),gM=dn("MODAL_SHOW_EVENT"),bM=dn("MODAL_CLOSE_EVENT"),yM=dn("MODAL_UPDATE_EVENT");function vM(e){return e}var Zk="SandboxApp",gh="IframePluginRegistry",Jk="__sandbox__";function bh(){return ko(Jk)}function eL(e=bh()){return e.getOrCreateInstance(gh,()=>new El)}var Pa=new dp(()=>eL()),Ui=class qm{constructor(){k(this,"container",bh()),k(this,"pluginCollection",new up(this,Pa)),this.pluginCollection.activateSync()}static get instance(){return this._instance||(this._instance=new qm)}static registerPlugin(t,r){Pa.add(t,r)}static registerAll(t){for(const r of Object.keys(t)){let n=r;const i=t[n];i&&Pa.add(n,i)}}static use(t){return this.instance.pluginCollection.use(t)}static initFeatures(t){this.instance.initFeatures(t)}static onLifecycle(t){return this.instance.onLifecycle(t)}use(t){return typeof t=="function"?this.pluginCollection.useByCtor(t):this.pluginCollection.useByKey(t)}initFeatures(t){this.pluginCollection.initSync(t)}onLifecycle(t){return this.pluginCollection.onLifecycle(t)}dispose(){this.pluginCollection.dispose()}};k(Ui,"_instance",void 0);var fn="data-extension";function hn(e,t,r,n){X.send(Qk,{key:e,phase:t,status:r,error:n})}function tL(){if(typeof document>"u")return;const e=document.currentScript;if(e instanceof HTMLScriptElement)return e.getAttribute(fn)||void 0}function yh(e){return{key:e,hasSyncPlugins:!1,pendingPlugins:new Set,loadedNotified:!1,readyNotified:!1,readyFailed:!1}}function Na(e){!e.loadedNotified||e.readyNotified||e.readyFailed||(!e.hasSyncPlugins||e.pendingPlugins.size===0)&&(e.readyNotified=!0,hn(e.key,"ready","success"))}function rL({type:e,attributes:t,key:r,innerHTML:n}){const i=document.createElement(e);if(t)for(const[o,s]of Object.entries(t))s!=null&&i.setAttribute(o,String(s));return i.setAttribute(fn,r),n&&(i.innerHTML=n),e==="script"?t.type||i.setAttribute("type","text/javascript"):e==="style"&&(t.type||i.setAttribute("type","text/css")),i}function nL(e){const t=new Z,r=new Map,n=new Map,i=new Map,o=new WeakMap,s=l=>{let c=i.get(l);return c||(c=yh(l),i.set(l,c)),c},a=l=>{if(l.type==="created"){const d=tL();if(!d)return;const f=s(d);f.hasSyncPlugins=!0,f.pendingPlugins.add(l.plugin),o.set(l.plugin,d);return}const c=o.get(l.plugin);if(!c)return;const u=i.get(c);if(u){if(l.type==="afterInit:success"){u.pendingPlugins.delete(l.plugin),Na(u);return}(l.type==="init:error"||l.type==="afterInit:error")&&(u.pendingPlugins.delete(l.plugin),u.readyFailed=!0,hn(c,"ready","error",`Sandbox plugin "${l.name}" failed during ${l.type==="init:error"?"init":"afterInit"}.`))}};return t.addDisposable(Ui.onLifecycle(a)),t.addDisposable(X.addListener(me.SANDBOX_ADD_EXTENSIONS,l=>{for(const c of l){let u=r.get(c.key);u&&u.remove(),c.type==="script"&&i.set(c.key,yh(c.key));const d=c.parent&&document.querySelector(c.parent)||document.head;if(u=rL(c),c.type==="script"){const f=u;f.src&&(f.onload=()=>{const h=s(c.key);h.loadedNotified=!0,hn(c.key,"load","success"),Na(h)},f.onerror=()=>hn(c.key,"load","error",`Failed to load sandbox script: ${f.src}`))}if(d.appendChild(u),c.type==="script"&&!u.src){const f=s(c.key);f.loadedNotified=!0,hn(c.key,"load","success"),Na(f)}r.set(c.key,u),n.set(c.key,c)}})),t.addDisposable(X.addListener(me.SANDBOX_REMOVE_EXTENSIONS,l=>{for(const c of l){const u=n.get(c),d=document.querySelector(`${u?.type}[${fn}]`);d&&d.remove(),r.delete(c),n.delete(c)}})),t.addDisposable(e.onChange(()=>{for(const[l,c]of r){const u=n.get(l),d=document.querySelector(`${u?.type}[${fn}]`);let f=u.parent?[...document.querySelectorAll(u.parent)]:[];f.length||(f=[document.head]),d?d!==c?r.set(l,d):f.some(h=>d.parentNode===h)||f[0]?.appendChild(d):f[0]?.appendChild(c)}})),t}function iL(e){e.querySelectorAll(`[${fn}]`).forEach(t=>t.remove())}var oL={brightness:100,contrast:100,sepia:0},qi={DARK:"dark",LIGHT:"light"},vh=!1;function sL(e){vh||(e.setFetchMethod(t=>window.fetch(t)),vh=!0)}function aL(){let e=null,t=qi.LIGHT;return{set(r){if(t=r,r===qi.DARK){e??(e=gs(()=>Promise.resolve().then(()=>Eo("./darkreader.CyLMh7_H.js")),void 0,{}.url)),e.then(n=>{t===qi.DARK&&(sL(n),n.enable(oL))}).catch(n=>{e=null});return}e?.then(n=>{t===qi.LIGHT&&n.disable()})},clear(r){return r.replaceAll(/\s*?--darkreader.+?: .*?;/g,"")}}}var Eh=aL(),lL=/^(chrome-extension|moz-extension|safari-extension):\/\//i,cL=/local\.adguard\.org/i,uL=/^bis_/i,dL=new Set(["data-bis-config"]),Cr=/<script\b(?=[^>]*(?:\bbis_use(?:=|\s)|\bdata-bis-config(?:=|\s)|\bdata-dynamic-id(?:=|\s)|local\.adguard\.org|(?:chrome-extension|moz-extension|safari-extension):\/\/))[^>]*>[\s\S]*?<\/script>/gi,fL=/\s(?:bis_[a-z0-9_-]+|data-bis-config|data-dynamic-id)=(["'])(?:(?!\1).)*\1/gi,Gi=/<style\b[^>]*>[\s\S]*?<\/style>/gi,_h=/display:\s*none\s*!important/gi,hL=[".socialshare,",".advertisment,",".adHolder,",".adsbygoogle-noablate","#ab_adblock","#popmechanic-snippet","filter_ads_by_classname","clever-core-ads","--gn-ov-ad-height","pub_728x90.text-ad.textAd","html-load.com/player","content-loader.com/player",".adblock","#advblock","body { overflow: visible!important; }"],Sh=new Set(["em","data-theme-varibalse","data-em-localization"]);function mL(e){return _h.lastIndex=0,(e.match(_h)||[]).length}function Ma(e){const t=e.trim(),r=mL(t);if(r===0)return!1;if(t.includes(".advertisment,")&&t.includes(".adHolder,")&&(t.includes(".socialshare,")||r>=3||t.length>2e3))return!0;const n=hL.filter(i=>t.includes(i)).length;return n>=1&&(r>=3||t.length>2e3)||r>=5&&n>=1?!0:r>=20&&/\b(?:\.ad(?:s|vert|vertisment|Holder|banner|box|Container|Wrapper)?[,{]|#ad[-_]|ins\.adsbygoogle)/i.test(t)}function pL(e){if(Sh.has("em")&&e.getAttribute("em")==="styles")return!1;for(const t of Sh)if(e.hasAttribute(t))return!1;return Ma(e.textContent||"")}function wh(e){return lL.test(e.src)||cL.test(e.src)?!0:e.hasAttribute("bis_use")||e.hasAttribute("data-bis-config")}function Ch(e){let t=!1;for(const r of[...e.attributes])(uL.test(r.name)||dL.has(r.name))&&(e.removeAttribute(r.name),t=!0);return t}function gL(e){Gi.lastIndex=0;for(const t of e.matchAll(Gi))if(Ma(t[0].replace(/^<style\b[^>]*>/i,"").replace(/<\/style>$/i,"")))return!0;return!1}function bL(e){let t=!1;return Gi.lastIndex=0,{html:e.replace(Gi,r=>Ma(r.replace(/^<style\b[^>]*>/i,"").replace(/<\/style>$/i,""))?(t=!0,""):r),found:t}}function Ah(e){let t=!1;return e instanceof Element&&Ch(e)&&(t=!0),e.querySelectorAll("script").forEach(r=>{wh(r)&&(r.remove(),t=!0)}),e.querySelectorAll("style").forEach(r=>{r.tagName==="STYLE"&&pL(r)&&(r.remove(),t=!0)}),e.querySelectorAll("*").forEach(r=>{Ch(r)&&(t=!0)}),t}function yL(e){return Cr.lastIndex=0,Cr.test(e)||/\sbis_[a-z0-9_-]+\s*=/.test(e)||/\sdata-bis-config\s*=/.test(e)||gL(e)}function vL(e){if(!yL(e))return{html:e,found:!1};let t=!1,r=e;Cr.lastIndex=0,Cr.test(r)&&(Cr.lastIndex=0,r=r.replace(Cr,""),t=!0),(/\sbis_[a-z0-9_-]+\s*=/.test(r)||/\sdata-bis-config\s*=/.test(r))&&(r=r.replace(fL,""),t=!0);const n=bL(r);return r=n.html,t=t||n.found,{html:r,found:t}}function EL(e){return Jn(e)}function Th(e){const t=(r,n)=>{const i=r.getAttribute(n);if(!i)return;const o=EL(i);o!==i&&r.setAttribute(n,o)};e.querySelectorAll("[src]").forEach(r=>t(r,"src")),e.querySelectorAll("[___src]").forEach(r=>t(r,"___src"))}var _L=new Set(["normal","400"]),SL=new Set(["normal"]),wL=new Set(["baseline","unset","initial",""]),kh=new Set(["none",""]),CL=["b","strong","em","i","u","s","strike","sup","sub"],AL="___em-internal";function Ra(e){e.querySelectorAll(".em-block-insert").forEach(r=>{r.classList.remove("em-block-insert","em-block-insert_bottom-document","em-block-insert_top-document")}),e.querySelectorAll(".em-block-insert_bottom").forEach(r=>{r.classList.remove("em-block-insert_bottom")}),e.querySelectorAll(".em-block-insert_top").forEach(r=>{r.classList.remove("em-block-insert_top")}),e.querySelectorAll(".em-blockatom-insert").forEach(r=>{r.classList.remove("em-blockatom-insert","em-block-insert_bottom-document","em-block-insert_top-document")}),e.querySelectorAll(".em-atom-insert").forEach(r=>{r.classList.remove("em-atom-insert","em-atom-insert_bottom-document","em-atom-insert_bottom","em-atom-insert_top-document","em-atom-insert_top")}),["em-block-insert-empty","em-atom-insert-empty","em-block-insert-body","em-atom-insert-body","em-resize-start","sortable-chosen","sortable-ghost","em-vindent-table","em-vindent_low","em-vindent","em-relative","em-display-block","em-sandbox-discuss_set-target","em-sandbox-discuss","em-native-img-uploading","em-native-img-drop-target","em-native-img-drop-loading","em-native-file-drag"].forEach(r=>{e.querySelectorAll(`.${r}`).forEach(n=>n.classList.remove(r))}),e.querySelectorAll(".em-powered-logo").forEach(r=>r.remove());for(const r of e.querySelectorAll("[class='']"))r.removeAttribute("class");const t=e instanceof Document?e.documentElement:e;t&&(be(t,"[data-mce-caret=before]",!0),be(t,"span.em-element-resize-img-container"),be(t,"div.em-element-img-change-group",!0),be(t,"div.em-element-block-add",!0),be(t,"meta[http-equiv=Content-Security-Policy]",!0),be(t,"[class*=mce-]"),be(t,"script[em=initial]",!0),be(t,".em-editor-wrapper",!0),be(t,".em-element-resize-height",!0),be(t,".em-element-vindent-remove",!0),be(t,".em-element-vindent",!0),be(t,".em-element-vindent-value",!0),be(t,"div.iframe-resizer-inner"))}function TL(e){e.querySelectorAll("tbody").forEach(t=>t.replaceWith(...Array.from(t.childNodes))),e.querySelectorAll(".em-code").forEach(t=>t.remove()),e.querySelectorAll(':not(editor)[contenteditable="false"]').forEach(t=>t.remove()),e.querySelectorAll('.em-vindent[class*="em-vindent-padding"]').forEach(t=>t.remove()),e.querySelectorAll(".em-code").forEach(t=>t.remove()),e.querySelectorAll("[contenteditable]").forEach(t=>t.removeAttribute("contenteditable")),e.querySelectorAll("[em-edit]").forEach(t=>t.removeAttribute("em-edit")),e.querySelectorAll("[em-state]").forEach(t=>t.removeAttribute("em-state")),e.querySelectorAll("[em-hover]").forEach(t=>t.removeAttribute("em-hover")),e.querySelectorAll("#gtx-anchor").forEach(t=>t.remove()),e.querySelectorAll('[data-mce-bogus="1"]').forEach(t=>t.remove()),e.querySelectorAll("strike").forEach(t=>t.removeAttribute("style")),e.querySelectorAll("u").forEach(t=>t.removeAttribute("style")),e.querySelectorAll('style[data-theme-varibalse="true"]').forEach(t=>t.remove()),e.querySelectorAll('style[data-em-localization="true"]').forEach(t=>t.remove()),e.querySelectorAll(".em-element-img-change-group").forEach(t=>t.remove()),e.querySelectorAll(".em-element-resize-img").forEach(t=>t.remove()),e.querySelectorAll(".em-element-editor").forEach(t=>t.remove()),e.querySelectorAll(".em-element-vindent-bg").forEach(t=>t.remove()),e.querySelectorAll(".em-element-vindent-value").forEach(t=>t.remove()),e.querySelectorAll(".em-element-gap").forEach(t=>t.remove()),e.querySelectorAll(".em-element-gap-marker").forEach(t=>t.remove()),e.querySelectorAll(".em-element-gap-bg").forEach(t=>t.remove()),e.querySelectorAll(".em-gap").forEach(t=>t.remove()),e.querySelectorAll(".em-just-inserted").forEach(t=>t.classList.remove("em-just-inserted")),e.querySelectorAll(".em-native-img-uploading").forEach(t=>t.classList.remove("em-native-img-uploading")),e.querySelectorAll(".em-native-img-drop-target").forEach(t=>t.classList.remove("em-native-img-drop-target")),e.querySelectorAll(".em-native-img-upload-spin-overlay").forEach(t=>t.remove()),e.querySelectorAll(".em-element-list-bullet").forEach(t=>t.classList.remove("em-element-list-bullet")),e.querySelectorAll(".remove-new-editor-element").forEach(t=>t.classList.remove("remove-new-editor-element")),e.querySelectorAll(`.${ps}`).forEach(t=>t.classList.remove(ps)),Ra(e),be(e,"editor",!1),Oh(e),Th(e),Ah(e)}function mn(e){return(e??"").trim().toLowerCase()}function kL(e){const t=mn(e.style.fontWeight);t&&_L.has(t)&&e.style.removeProperty("font-weight");const r=mn(e.style.fontStyle);r&&SL.has(r)&&e.style.removeProperty("font-style");const n=mn(e.style.verticalAlign);n&&wL.has(n)&&e.style.removeProperty("vertical-align");const i=mn(e.style.textDecorationLine);i&&kh.has(i)&&e.style.removeProperty("text-decoration-line");const o=mn(e.style.textDecoration);o&&kh.has(o)&&e.style.removeProperty("text-decoration");const s=e.getAttribute("style");s!==null&&s.trim()===""&&e.removeAttribute("style")}function LL(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}function Lh(e){if(e.attributes.length===0)return!0;for(const t of Array.from(e.attributes))if(t.name!==AL)return!1;return!0}function Oh(e){const t=Array.from(e.querySelectorAll("span"));for(let r=t.length-1;r>=0;r-=1){const n=t[r];kL(n),Lh(n)&&LL(n)}for(const r of CL){const n=Array.from(e.querySelectorAll(r));for(let i=n.length-1;i>=0;i-=1){const o=n[i];o.childNodes.length===0&&Lh(o)&&o.remove()}}}function OL(e){e=e.replaceAll(/\uFEFF/gmu,""),e=e.replaceAll(/<link[^>]*?em="css.*?>/gis,""),e=e.replaceAll(/<link[^>]*?id="mce.*?>/gis,""),e=e.replaceAll(/draggable="false"|draggable="true"/gi,""),e=e.replaceAll(/ style="\s*"/gi,""),e=e.replaceAll(/<div[^>]*?role.*body/gi,"</body"),e=e.replaceAll(/ data-mce.*?".*?"/gi,""),e=e.replaceAll(/<div[^>]*?id="mce.*?div>/gis,""),e=e.replaceAll(/<tbody.*?>/gi,"").replaceAll(/<\/tbody>/gi,""),e=e.replaceAll(/&amp;nbsp;/gi,"&nbsp;").replaceAll(/&amp;zwnj;/gi,"&zwnj;"),e=e.replaceAll(/style="transform: translateZ\(0px\);"/gi,""),e=e.replaceAll(/ +>/gi,">"),e=e.replaceAll(/&amp;/gi,"&"),e=e.replaceAll(/&quot;/gi,""),e=e.replaceAll(/^\s*$(?:\r\n?|\n)/gm,""),e=e.replaceAll(/ em-floatblock-width=".*?"/gi,""),e=e.replaceAll(/<script.*?editor.*?script>/gi,""),e=e.replaceAll(/<script[^>]*\bdata-amd-module-id\s*=[^>]*>[\s\S]*?<\/script>/gi,""),e=e.replaceAll(/<script[^>]*\/iframe\/js\/[^>]*>[\s\S]*?<\/script>/gi,""),e=e.replaceAll(/<style[^>]*?ad-right-container.*?style>/gi,""),e=e.replaceAll(/<div[^>]*?class="jfk-bubble.*?jfk-bubble-arrowimplafter".*?><\/div><\/div><\/div>/gis,""),e=e.replaceAll(/<span[^>]*?style="text-decoration: underline;"[^>]*?>(<a[^>]*?href.*?a>)<\/span>/gis,"$1"),e=e.replaceAll(/ rel="noopener"/gi,""),e=e.replaceAll(/ em-insert-ignore/gi,""),e=e.replaceAll(/ class="\s*"/gi,""),e=e.replaceAll(/<!--<em-root-text>(.*?)-->/gis,"$1"),e=e.replaceAll(/<style id="mceDefaultStyles".*?((.|\n|\r)*?)<\/style>/gi,""),e=e.replaceAll(/<span id="_mce_caret".*?((.|\n|\r)*?)<\/span>/gi,""),e=e.replaceAll(/class="em-block.*?"/gi,""),e=e.replaceAll(/data-percent="[^"]*"/g,""),e=e.replaceAll(/em-optimise="[^"]*"/g,""),e=e.replaceAll(/em-optimise-error="[^"]*"/g,""),e=Eh.clear(e);const t=e.match(/((rgb)\(\d{1,3}(,\s?\d{1,3}){2}\))/gi);return t&&t.forEach(r=>{const n=ye(r);n&&(e=e.replaceAll(r,n))}),e=e.replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,""),e}function xh(e){switch(e.toLowerCase()){case"tr":return document.createElement("table");case"td":return document.createElement("tr");case"head":case"body":return document.createElement("html");default:return document.createElement("div")}}function xL(e,t){if(t.some(l=>l.nodeName==="HTML")){for(const l of t)e.appendChild(l);return}const r=t.find(l=>l.nodeType===Node.DOCUMENT_TYPE_NODE),n=t.find(l=>l.nodeName==="HEAD"),i=t.find(l=>l.nodeName==="BODY");r&&e.appendChild(r);const o=e.createElement("html"),s=n??e.createElement("head"),a=i??e.createElement("body");o.append(s,a);for(const l of t)l===r||l===n||l===i||l.nodeName==="HTML"||l.nodeName==="HEAD"||l.nodeName==="BODY"||a.appendChild(l);e.appendChild(o)}function PL(){const e=Array.from(document.querySelectorAll('style[em="styles"]'));return mh(document,e,{forceMediaMerge:!0})}function pn(e){let t=e.html??"";const r=e.node,n=e.isBlock??!1,i=e.isPartial??!1;if(n||i){let o,s="div";if(r){if(s=r.tagName??"div",s==="DOCTYPE"||s==="html")return pn({node:r});o=xh(s),o.appendChild(r.cloneNode(!0))}else{const a=t.trim(),l=a.match(/<\!?([a-zA-Z]{1,})[^>]*>/i);if(s=l?l[1]:"div",s==="DOCTYPE"||s==="html")return pn({html:t});o=xh(s);const c=xe(a);o.replaceChildren(...c)}Bo(o,{stage:"apply"}),TL(o),t=Se(o),s.toLowerCase()==="head"&&(t=t.replace("<body></body>","")),s.toLowerCase()==="body"&&(t=t.replace("<head></head>",""))}else{const o=document.implementation.createHTMLDocument();for(const s of[...o.childNodes])s.remove();t?xL(o,xe(t)):r&&o.appendChild(r.cloneNode(!0)),o.documentElement&&(o.querySelectorAll("tbody").forEach(s=>s.replaceWith(...Array.from(s.childNodes))),o.querySelectorAll(".em-code").forEach(s=>s.remove()),o.querySelectorAll(':not(editor)[contenteditable="false"]').forEach(s=>s.remove()),o.querySelectorAll(".em-code").forEach(s=>s.remove()),o.querySelectorAll("[contenteditable]").forEach(s=>s.removeAttribute("contenteditable")),o.querySelectorAll("[em-edit]").forEach(s=>s.removeAttribute("em-edit")),o.querySelectorAll("[em-state]").forEach(s=>s.removeAttribute("em-state")),o.querySelectorAll("[em-hover]").forEach(s=>s.removeAttribute("em-hover")),o.querySelectorAll(".em-just-inserted").forEach(s=>s.classList.remove("em-just-inserted")),o.querySelectorAll(".em-native-img-uploading").forEach(s=>s.classList.remove("em-native-img-uploading")),o.querySelectorAll(".em-native-img-drop-target").forEach(s=>s.classList.remove("em-native-img-drop-target")),o.querySelectorAll(".em-native-img-upload-spin-overlay").forEach(s=>s.remove()),o.body?.classList.remove("em-native-img-drop-loading"),o.body?.classList.remove("em-native-file-drag"),o.querySelectorAll("#gtx-anchor").forEach(s=>s.remove()),o.documentElement.removeAttribute("style"),o.querySelectorAll('style[data-theme-varibalse="true"]').forEach(s=>s.remove()),o.querySelectorAll('style[data-em-localization="true"]').forEach(s=>s.remove()),iL(o),Ra(o),o.documentElement&&be(o.documentElement,"editor",!1),o.querySelectorAll("ya-tr-span").forEach(s=>{s.parentNode&&(Array.from(s.childNodes).forEach(a=>s.parentNode.insertBefore(a,s)),s.remove())}),Oh(o)),Bo(o,{stage:"apply"}),Th(o),Ah(o),t=Nt(o)}return vL(OL(t)).html}function Ph(e,t){Mc(),document.body?.classList.contains("em-block-insert-body")&&document.body.classList.remove("em-block-insert-body"),document.body?.classList.contains("em-atom-insert-body")&&document.body.classList.remove("em-atom-insert-body");const r=document.querySelector(".em-block-insert");r&&r.classList.remove("em-block-insert","em-block-insert_bottom-document","em-block-insert_bottom","em-block-insert_top-document","em-block-insert_top");const n=document.querySelector(".em-block-insert-empty");n&&n.classList.remove("em-block-insert-empty");const i=document.querySelector(".em-atom-insert");i&&i.classList.remove("em-atom-insert","em-atom-insert_bottom-document","em-atom-insert_bottom","em-atom-insert_top-document","em-atom-insert_top");const o=document.querySelector(".em-atom-insert-empty");o&&o.classList.remove("em-atom-insert-empty"),document.querySelectorAll(".em-blockatom-insert").forEach(s=>{s.classList.remove("em-blockatom-insert","em-block-insert_bottom-document","em-block-insert_bottom","em-block-insert_top-document","em-block-insert_top")}),t.messageService.send({operation:"application_scroll-block-hide"})}function NL(e,t){t.messageService.send({operation:"application_email_content_get",htmlCode:pn({node:document.body,isPartial:!0})})}var ML={"sandbox_drag-cancel":Ph,sandbox_email_content_get:NL},Da=null,Ia=0,RL=6e5;function DL(e){Da=e,Ia=e?Date.now():0}function IL(){const e=Da,t=Ia;return Da=null,Ia=0,!e||!t||Date.now()-t>RL||!e.isConnected||!e.matches('[em="block"]')?null:e}var Xi=ko("__sandbox__");Xi.injectFactory(Zk,()=>Ui.instance),Xi.getOrCreateInstance(gh,()=>new El),window.__sandbox__={container:Xi},(function(){"use strict";function e(t,r){var n,i=0,o=t.length,s,a="",l,c,u,d,f,h,g,y,A=!0,L=!1,C;n=arguments.length>1?r:{},typeof n.indent>"u"&&(n.indent=" "),typeof n.openbrace=="string"&&(A=n.openbrace==="end-of-line"),typeof n.autosemicolon=="boolean"&&(L=n.autosemicolon);function O(v){return v===" "||v===`
28
+ `)}function dn(e){return ge(e)}var dM=ge("extensions.atomsHandlers"),fM=dn("HANDLE_ATOM_INSERT"),hM=ge("extensions.sandboxExtensions"),Qk="SANDBOX_EXTENSION_SCRIPT_STATUS",mM=ge("MESSAGE_SERVICE"),pM=dn("SETTINGS_PANEL_EVENT"),gM=dn("MODAL_SHOW_EVENT"),bM=dn("MODAL_CLOSE_EVENT"),yM=dn("MODAL_UPDATE_EVENT");function vM(e){return e}var Zk="SandboxApp",gh="IframePluginRegistry",Jk="__sandbox__";function bh(){return ko(Jk)}function eL(e=bh()){return e.getOrCreateInstance(gh,()=>new El)}var Pa=new dp(()=>eL()),Ui=class qm{constructor(){k(this,"container",bh()),k(this,"pluginCollection",new up(this,Pa)),this.pluginCollection.activateSync()}static get instance(){return this._instance||(this._instance=new qm)}static registerPlugin(t,r){Pa.add(t,r)}static registerAll(t){for(const r of Object.keys(t)){let n=r;const i=t[n];i&&Pa.add(n,i)}}static use(t){return this.instance.pluginCollection.use(t)}static initFeatures(t){this.instance.initFeatures(t)}static onLifecycle(t){return this.instance.onLifecycle(t)}use(t){return typeof t=="function"?this.pluginCollection.useByCtor(t):this.pluginCollection.useByKey(t)}initFeatures(t){this.pluginCollection.initSync(t)}onLifecycle(t){return this.pluginCollection.onLifecycle(t)}dispose(){this.pluginCollection.dispose()}};k(Ui,"_instance",void 0);var fn="data-extension";function hn(e,t,r,n){X.send(Qk,{key:e,phase:t,status:r,error:n})}function tL(){if(typeof document>"u")return;const e=document.currentScript;if(e instanceof HTMLScriptElement)return e.getAttribute(fn)||void 0}function yh(e){return{key:e,hasSyncPlugins:!1,pendingPlugins:new Set,loadedNotified:!1,readyNotified:!1,readyFailed:!1}}function Na(e){!e.loadedNotified||e.readyNotified||e.readyFailed||(!e.hasSyncPlugins||e.pendingPlugins.size===0)&&(e.readyNotified=!0,hn(e.key,"ready","success"))}function rL({type:e,attributes:t,key:r,innerHTML:n}){const i=document.createElement(e);if(t)for(const[o,s]of Object.entries(t))s!=null&&i.setAttribute(o,String(s));return i.setAttribute(fn,r),n&&(i.innerHTML=n),e==="script"?t.type||i.setAttribute("type","text/javascript"):e==="style"&&(t.type||i.setAttribute("type","text/css")),i}function nL(e){const t=new Z,r=new Map,n=new Map,i=new Map,o=new WeakMap,s=l=>{let c=i.get(l);return c||(c=yh(l),i.set(l,c)),c},a=l=>{if(l.type==="created"){const d=tL();if(!d)return;const f=s(d);f.hasSyncPlugins=!0,f.pendingPlugins.add(l.plugin),o.set(l.plugin,d);return}const c=o.get(l.plugin);if(!c)return;const u=i.get(c);if(u){if(l.type==="afterInit:success"){u.pendingPlugins.delete(l.plugin),Na(u);return}(l.type==="init:error"||l.type==="afterInit:error")&&(u.pendingPlugins.delete(l.plugin),u.readyFailed=!0,hn(c,"ready","error",`Sandbox plugin "${l.name}" failed during ${l.type==="init:error"?"init":"afterInit"}.`))}};return t.addDisposable(Ui.onLifecycle(a)),t.addDisposable(X.addListener(me.SANDBOX_ADD_EXTENSIONS,l=>{for(const c of l){let u=r.get(c.key);u&&u.remove(),c.type==="script"&&i.set(c.key,yh(c.key));const d=c.parent&&document.querySelector(c.parent)||document.head;if(u=rL(c),c.type==="script"){const f=u;f.src&&(f.onload=()=>{const h=s(c.key);h.loadedNotified=!0,hn(c.key,"load","success"),Na(h)},f.onerror=()=>hn(c.key,"load","error",`Failed to load sandbox script: ${f.src}`))}if(d.appendChild(u),c.type==="script"&&!u.src){const f=s(c.key);f.loadedNotified=!0,hn(c.key,"load","success"),Na(f)}r.set(c.key,u),n.set(c.key,c)}})),t.addDisposable(X.addListener(me.SANDBOX_REMOVE_EXTENSIONS,l=>{for(const c of l){const u=n.get(c),d=document.querySelector(`${u?.type}[${fn}]`);d&&d.remove(),r.delete(c),n.delete(c)}})),t.addDisposable(e.onChange(()=>{for(const[l,c]of r){const u=n.get(l),d=document.querySelector(`${u?.type}[${fn}]`);let f=u.parent?[...document.querySelectorAll(u.parent)]:[];f.length||(f=[document.head]),d?d!==c?r.set(l,d):f.some(h=>d.parentNode===h)||f[0]?.appendChild(d):f[0]?.appendChild(c)}})),t}function iL(e){e.querySelectorAll(`[${fn}]`).forEach(t=>t.remove())}var oL={brightness:100,contrast:100,sepia:0},qi={DARK:"dark",LIGHT:"light"},vh=!1;function sL(e){vh||(e.setFetchMethod(t=>window.fetch(t)),vh=!0)}function aL(){let e=null,t=qi.LIGHT;return{set(r){if(t=r,r===qi.DARK){e??(e=gs(()=>Promise.resolve().then(()=>Eo("./darkreader.CyLMh7_H.js")),void 0,{}.url)),e.then(n=>{t===qi.DARK&&(sL(n),n.enable(oL))}).catch(n=>{e=null});return}e?.then(n=>{t===qi.LIGHT&&n.disable()})},clear(r){return r.replaceAll(/\s*?--darkreader.+?: .*?;/g,"")}}}var Eh=aL(),lL=/^(chrome-extension|moz-extension|safari-extension):\/\//i,cL=/local\.adguard\.org/i,uL=/^bis_/i,dL=new Set(["data-bis-config"]),Cr=/<script\b(?=[^>]*(?:\bbis_use(?:=|\s)|\bdata-bis-config(?:=|\s)|\bdata-dynamic-id(?:=|\s)|local\.adguard\.org|(?:chrome-extension|moz-extension|safari-extension):\/\/))[^>]*>[\s\S]*?<\/script>/gi,fL=/\s(?:bis_[a-z0-9_-]+|data-bis-config|data-dynamic-id)=(["'])(?:(?!\1).)*\1/gi,Gi=/<style\b[^>]*>[\s\S]*?<\/style>/gi,_h=/display:\s*none\s*!important/gi,hL=[".socialshare,",".advertisment,",".adHolder,",".adsbygoogle-noablate","#ab_adblock","#popmechanic-snippet","filter_ads_by_classname","clever-core-ads","--gn-ov-ad-height","pub_728x90.text-ad.textAd","html-load.com/player","content-loader.com/player",".adblock","#advblock","body { overflow: visible!important; }"],Sh=new Set(["em","data-theme-varibalse","data-em-localization"]);function mL(e){return _h.lastIndex=0,(e.match(_h)||[]).length}function Ma(e){const t=e.trim(),r=mL(t);if(r===0)return!1;if(t.includes(".advertisment,")&&t.includes(".adHolder,")&&(t.includes(".socialshare,")||r>=3||t.length>2e3))return!0;const n=hL.filter(i=>t.includes(i)).length;return n>=1&&(r>=3||t.length>2e3)||r>=5&&n>=1?!0:r>=20&&/\b(?:\.ad(?:s|vert|vertisment|Holder|banner|box|Container|Wrapper)?[,{]|#ad[-_]|ins\.adsbygoogle)/i.test(t)}function pL(e){if(Sh.has("em")&&e.getAttribute("em")==="styles")return!1;for(const t of Sh)if(e.hasAttribute(t))return!1;return Ma(e.textContent||"")}function wh(e){return lL.test(e.src)||cL.test(e.src)?!0:e.hasAttribute("bis_use")||e.hasAttribute("data-bis-config")}function Ch(e){let t=!1;for(const r of[...e.attributes])(uL.test(r.name)||dL.has(r.name))&&(e.removeAttribute(r.name),t=!0);return t}function gL(e){Gi.lastIndex=0;for(const t of e.matchAll(Gi))if(Ma(t[0].replace(/^<style\b[^>]*>/i,"").replace(/<\/style>$/i,"")))return!0;return!1}function bL(e){let t=!1;return Gi.lastIndex=0,{html:e.replace(Gi,r=>Ma(r.replace(/^<style\b[^>]*>/i,"").replace(/<\/style>$/i,""))?(t=!0,""):r),found:t}}function Ah(e){let t=!1;return e instanceof Element&&Ch(e)&&(t=!0),e.querySelectorAll("script").forEach(r=>{wh(r)&&(r.remove(),t=!0)}),e.querySelectorAll("style").forEach(r=>{r.tagName==="STYLE"&&pL(r)&&(r.remove(),t=!0)}),e.querySelectorAll("*").forEach(r=>{Ch(r)&&(t=!0)}),t}function yL(e){return Cr.lastIndex=0,Cr.test(e)||/\sbis_[a-z0-9_-]+\s*=/.test(e)||/\sdata-bis-config\s*=/.test(e)||gL(e)}function vL(e){if(!yL(e))return{html:e,found:!1};let t=!1,r=e;Cr.lastIndex=0,Cr.test(r)&&(Cr.lastIndex=0,r=r.replace(Cr,""),t=!0),(/\sbis_[a-z0-9_-]+\s*=/.test(r)||/\sdata-bis-config\s*=/.test(r))&&(r=r.replace(fL,""),t=!0);const n=bL(r);return r=n.html,t=t||n.found,{html:r,found:t}}function EL(e){return Jn(e)}function Th(e){const t=(r,n)=>{const i=r.getAttribute(n);if(!i)return;const o=EL(i);o!==i&&r.setAttribute(n,o)};e.querySelectorAll("[src]").forEach(r=>t(r,"src")),e.querySelectorAll("[___src]").forEach(r=>t(r,"___src"))}var _L=new Set(["normal","400"]),SL=new Set(["normal"]),wL=new Set(["baseline","unset","initial",""]),kh=new Set(["none",""]),CL=["b","strong","em","i","u","s","strike","sup","sub"],AL="___em-internal";function Ra(e){e.querySelectorAll(".em-block-insert").forEach(r=>{r.classList.remove("em-block-insert","em-block-insert_bottom-document","em-block-insert_top-document")}),e.querySelectorAll(".em-block-insert_bottom").forEach(r=>{r.classList.remove("em-block-insert_bottom")}),e.querySelectorAll(".em-block-insert_top").forEach(r=>{r.classList.remove("em-block-insert_top")}),e.querySelectorAll(".em-blockatom-insert").forEach(r=>{r.classList.remove("em-blockatom-insert","em-block-insert_bottom-document","em-block-insert_top-document")}),e.querySelectorAll(".em-atom-insert").forEach(r=>{r.classList.remove("em-atom-insert","em-atom-insert_bottom-document","em-atom-insert_bottom","em-atom-insert_top-document","em-atom-insert_top")}),["em-block-insert-empty","em-atom-insert-empty","em-block-insert-body","em-atom-insert-body","em-resize-start","sortable-chosen","sortable-ghost","em-vindent-table","em-vindent_low","em-vindent","em-relative","em-display-block","em-sandbox-discuss_set-target","em-sandbox-discuss","em-native-img-uploading","em-native-img-drop-target","em-native-img-drop-loading","em-native-file-drag"].forEach(r=>{e.querySelectorAll(`.${r}`).forEach(n=>n.classList.remove(r))}),e.querySelectorAll(".em-powered-logo").forEach(r=>r.remove());for(const r of e.querySelectorAll("[class='']"))r.removeAttribute("class");const t=e instanceof Document?e.documentElement:e;t&&(be(t,"[data-mce-caret=before]",!0),be(t,"span.em-element-resize-img-container"),be(t,"div.em-element-img-change-group",!0),be(t,"div.em-element-block-add",!0),be(t,"meta[http-equiv=Content-Security-Policy]",!0),be(t,"[class*=mce-]"),be(t,"script[em=initial]",!0),be(t,".em-editor-wrapper",!0),be(t,".em-element-resize-height",!0),be(t,".em-element-vindent-remove",!0),be(t,".em-element-vindent",!0),be(t,".em-element-vindent-value",!0),be(t,"div.iframe-resizer-inner"))}function TL(e){e.querySelectorAll("tbody").forEach(t=>t.replaceWith(...Array.from(t.childNodes))),e.querySelectorAll(".em-code").forEach(t=>t.remove()),e.querySelectorAll(':not(editor)[contenteditable="false"]').forEach(t=>t.remove()),e.querySelectorAll('.em-vindent[class*="em-vindent-padding"]').forEach(t=>t.remove()),e.querySelectorAll(".em-code").forEach(t=>t.remove()),e.querySelectorAll("[contenteditable]").forEach(t=>t.removeAttribute("contenteditable")),e.querySelectorAll("[em-edit]").forEach(t=>t.removeAttribute("em-edit")),e.querySelectorAll("[em-state]").forEach(t=>t.removeAttribute("em-state")),e.querySelectorAll("[em-hover]").forEach(t=>t.removeAttribute("em-hover")),e.querySelectorAll("#gtx-anchor").forEach(t=>t.remove()),e.querySelectorAll('[data-mce-bogus="1"]').forEach(t=>t.remove()),e.querySelectorAll("strike").forEach(t=>t.removeAttribute("style")),e.querySelectorAll("u").forEach(t=>t.removeAttribute("style")),e.querySelectorAll('style[data-theme-varibalse="true"]').forEach(t=>t.remove()),e.querySelectorAll('style[data-em-localization="true"]').forEach(t=>t.remove()),e.querySelectorAll(".em-element-img-change-group").forEach(t=>t.remove()),e.querySelectorAll(".em-element-resize-img").forEach(t=>t.remove()),e.querySelectorAll(".em-element-editor").forEach(t=>t.remove()),e.querySelectorAll(".em-element-vindent-bg").forEach(t=>t.remove()),e.querySelectorAll(".em-element-vindent-value").forEach(t=>t.remove()),e.querySelectorAll(".em-element-gap").forEach(t=>t.remove()),e.querySelectorAll(".em-element-gap-marker").forEach(t=>t.remove()),e.querySelectorAll(".em-element-gap-bg").forEach(t=>t.remove()),e.querySelectorAll(".em-gap").forEach(t=>t.remove()),e.querySelectorAll(".em-just-inserted").forEach(t=>t.classList.remove("em-just-inserted")),e.querySelectorAll(".em-native-img-uploading").forEach(t=>t.classList.remove("em-native-img-uploading")),e.querySelectorAll(".em-native-img-drop-target").forEach(t=>t.classList.remove("em-native-img-drop-target")),e.querySelectorAll(".em-native-img-upload-spin-overlay").forEach(t=>t.remove()),e.querySelectorAll(".em-element-list-bullet").forEach(t=>t.classList.remove("em-element-list-bullet")),e.querySelectorAll(".remove-new-editor-element").forEach(t=>t.classList.remove("remove-new-editor-element")),e.querySelectorAll(`.${ps}`).forEach(t=>t.classList.remove(ps)),Ra(e),be(e,"editor",!1),Oh(e),Th(e),Ah(e)}function mn(e){return(e??"").trim().toLowerCase()}function kL(e){const t=mn(e.style.fontWeight);t&&_L.has(t)&&e.style.removeProperty("font-weight");const r=mn(e.style.fontStyle);r&&SL.has(r)&&e.style.removeProperty("font-style");const n=mn(e.style.verticalAlign);n&&wL.has(n)&&e.style.removeProperty("vertical-align");const i=mn(e.style.textDecorationLine);i&&kh.has(i)&&e.style.removeProperty("text-decoration-line");const o=mn(e.style.textDecoration);o&&kh.has(o)&&e.style.removeProperty("text-decoration");const s=e.getAttribute("style");s!==null&&s.trim()===""&&e.removeAttribute("style")}function LL(e){const t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}function Lh(e){if(e.attributes.length===0)return!0;for(const t of Array.from(e.attributes))if(t.name!==AL)return!1;return!0}function Oh(e){const t=Array.from(e.querySelectorAll("span"));for(let r=t.length-1;r>=0;r-=1){const n=t[r];kL(n),Lh(n)&&LL(n)}for(const r of CL){const n=Array.from(e.querySelectorAll(r));for(let i=n.length-1;i>=0;i-=1){const o=n[i];o.childNodes.length===0&&Lh(o)&&o.remove()}}}function OL(e){e=e.replaceAll(/\uFEFF/gmu,""),e=e.replaceAll(/<link[^>]*?em="css.*?>/gis,""),e=e.replaceAll(/draggable="false"|draggable="true"/gi,""),e=e.replaceAll(/ style="\s*"/gi,""),e=e.replaceAll(/<tbody.*?>/gi,"").replaceAll(/<\/tbody>/gi,""),e=e.replaceAll(/&amp;nbsp;/gi,"&nbsp;").replaceAll(/&amp;zwnj;/gi,"&zwnj;"),e=e.replaceAll(/style="transform: translateZ\(0px\);"/gi,""),e=e.replaceAll(/ +>/gi,">"),e=e.replaceAll(/&amp;/gi,"&"),e=e.replaceAll(/&quot;/gi,""),e=e.replaceAll(/^\s*$(?:\r\n?|\n)/gm,""),e=e.replaceAll(/ em-floatblock-width=".*?"/gi,""),e=e.replaceAll(/<script.*?editor.*?script>/gi,""),e=e.replaceAll(/<script[^>]*\bdata-amd-module-id\s*=[^>]*>[\s\S]*?<\/script>/gi,""),e=e.replaceAll(/<script[^>]*\/iframe\/js\/[^>]*>[\s\S]*?<\/script>/gi,""),e=e.replaceAll(/<style[^>]*?ad-right-container.*?style>/gi,""),e=e.replaceAll(/<div[^>]*?class="jfk-bubble.*?jfk-bubble-arrowimplafter".*?><\/div><\/div><\/div>/gis,""),e=e.replaceAll(/<span[^>]*?style="text-decoration: underline;"[^>]*?>(<a[^>]*?href.*?a>)<\/span>/gis,"$1"),e=e.replaceAll(/ rel="noopener"/gi,""),e=e.replaceAll(/ em-insert-ignore/gi,""),e=e.replaceAll(/ class="\s*"/gi,""),e=e.replaceAll(/<!--<em-root-text>(.*?)-->/gis,"$1"),e=e.replaceAll(/class="em-block.*?"/gi,""),e=e.replaceAll(/data-percent="[^"]*"/g,""),e=e.replaceAll(/em-optimise="[^"]*"/g,""),e=e.replaceAll(/em-optimise-error="[^"]*"/g,""),e=Eh.clear(e);const t=e.match(/((rgb)\(\d{1,3}(,\s?\d{1,3}){2}\))/gi);return t&&t.forEach(r=>{const n=ye(r);n&&(e=e.replaceAll(r,n))}),e=e.replaceAll(/<tbody>/gi,"").replaceAll(/<\/tbody>/gi,""),e}function xh(e){switch(e.toLowerCase()){case"tr":return document.createElement("table");case"td":return document.createElement("tr");case"head":case"body":return document.createElement("html");default:return document.createElement("div")}}function xL(e,t){if(t.some(l=>l.nodeName==="HTML")){for(const l of t)e.appendChild(l);return}const r=t.find(l=>l.nodeType===Node.DOCUMENT_TYPE_NODE),n=t.find(l=>l.nodeName==="HEAD"),i=t.find(l=>l.nodeName==="BODY");r&&e.appendChild(r);const o=e.createElement("html"),s=n??e.createElement("head"),a=i??e.createElement("body");o.append(s,a);for(const l of t)l===r||l===n||l===i||l.nodeName==="HTML"||l.nodeName==="HEAD"||l.nodeName==="BODY"||a.appendChild(l);e.appendChild(o)}function PL(){const e=Array.from(document.querySelectorAll('style[em="styles"]'));return mh(document,e,{forceMediaMerge:!0})}function pn(e){let t=e.html??"";const r=e.node,n=e.isBlock??!1,i=e.isPartial??!1;if(n||i){let o,s="div";if(r){if(s=r.tagName??"div",s==="DOCTYPE"||s==="html")return pn({node:r});o=xh(s),o.appendChild(r.cloneNode(!0))}else{const a=t.trim(),l=a.match(/<\!?([a-zA-Z]{1,})[^>]*>/i);if(s=l?l[1]:"div",s==="DOCTYPE"||s==="html")return pn({html:t});o=xh(s);const c=xe(a);o.replaceChildren(...c)}Bo(o,{stage:"apply"}),TL(o),t=Se(o),s.toLowerCase()==="head"&&(t=t.replace("<body></body>","")),s.toLowerCase()==="body"&&(t=t.replace("<head></head>",""))}else{const o=document.implementation.createHTMLDocument();for(const s of[...o.childNodes])s.remove();t?xL(o,xe(t)):r&&o.appendChild(r.cloneNode(!0)),o.documentElement&&(o.querySelectorAll("tbody").forEach(s=>s.replaceWith(...Array.from(s.childNodes))),o.querySelectorAll(".em-code").forEach(s=>s.remove()),o.querySelectorAll(':not(editor)[contenteditable="false"]').forEach(s=>s.remove()),o.querySelectorAll(".em-code").forEach(s=>s.remove()),o.querySelectorAll("[contenteditable]").forEach(s=>s.removeAttribute("contenteditable")),o.querySelectorAll("[em-edit]").forEach(s=>s.removeAttribute("em-edit")),o.querySelectorAll("[em-state]").forEach(s=>s.removeAttribute("em-state")),o.querySelectorAll("[em-hover]").forEach(s=>s.removeAttribute("em-hover")),o.querySelectorAll(".em-just-inserted").forEach(s=>s.classList.remove("em-just-inserted")),o.querySelectorAll(".em-native-img-uploading").forEach(s=>s.classList.remove("em-native-img-uploading")),o.querySelectorAll(".em-native-img-drop-target").forEach(s=>s.classList.remove("em-native-img-drop-target")),o.querySelectorAll(".em-native-img-upload-spin-overlay").forEach(s=>s.remove()),o.body?.classList.remove("em-native-img-drop-loading"),o.body?.classList.remove("em-native-file-drag"),o.querySelectorAll("#gtx-anchor").forEach(s=>s.remove()),o.documentElement.removeAttribute("style"),o.querySelectorAll('style[data-theme-varibalse="true"]').forEach(s=>s.remove()),o.querySelectorAll('style[data-em-localization="true"]').forEach(s=>s.remove()),iL(o),Ra(o),o.documentElement&&be(o.documentElement,"editor",!1),o.querySelectorAll("ya-tr-span").forEach(s=>{s.parentNode&&(Array.from(s.childNodes).forEach(a=>s.parentNode.insertBefore(a,s)),s.remove())}),Oh(o)),Bo(o,{stage:"apply"}),Th(o),Ah(o),t=Nt(o)}return vL(OL(t)).html}function Ph(e,t){Mc(),document.body?.classList.contains("em-block-insert-body")&&document.body.classList.remove("em-block-insert-body"),document.body?.classList.contains("em-atom-insert-body")&&document.body.classList.remove("em-atom-insert-body");const r=document.querySelector(".em-block-insert");r&&r.classList.remove("em-block-insert","em-block-insert_bottom-document","em-block-insert_bottom","em-block-insert_top-document","em-block-insert_top");const n=document.querySelector(".em-block-insert-empty");n&&n.classList.remove("em-block-insert-empty");const i=document.querySelector(".em-atom-insert");i&&i.classList.remove("em-atom-insert","em-atom-insert_bottom-document","em-atom-insert_bottom","em-atom-insert_top-document","em-atom-insert_top");const o=document.querySelector(".em-atom-insert-empty");o&&o.classList.remove("em-atom-insert-empty"),document.querySelectorAll(".em-blockatom-insert").forEach(s=>{s.classList.remove("em-blockatom-insert","em-block-insert_bottom-document","em-block-insert_bottom","em-block-insert_top-document","em-block-insert_top")}),t.messageService.send({operation:"application_scroll-block-hide"})}function NL(e,t){t.messageService.send({operation:"application_email_content_get",htmlCode:pn({node:document.body,isPartial:!0})})}var ML={"sandbox_drag-cancel":Ph,sandbox_email_content_get:NL},Da=null,Ia=0,RL=6e5;function DL(e){Da=e,Ia=e?Date.now():0}function IL(){const e=Da,t=Ia;return Da=null,Ia=0,!e||!t||Date.now()-t>RL||!e.isConnected||!e.matches('[em="block"]')?null:e}var Xi=ko("__sandbox__");Xi.injectFactory(Zk,()=>Ui.instance),Xi.getOrCreateInstance(gh,()=>new El),window.__sandbox__={container:Xi},(function(){"use strict";function e(t,r){var n,i=0,o=t.length,s,a="",l,c,u,d,f,h,g,y,A=!0,L=!1,C;n=arguments.length>1?r:{},typeof n.indent>"u"&&(n.indent=" "),typeof n.openbrace=="string"&&(A=n.openbrace==="end-of-line"),typeof n.autosemicolon=="boolean"&&(L=n.autosemicolon);function O(v){return v===" "||v===`
29
29
  `||v===" "||v==="\r"||v==="\f"}function E(v){return v==="'"||v==='"'}function m(v){return l>="a"&&l<="z"||l>="A"&&l<="Z"||l>="0"&&l<="9"||"-_*.:#[]".indexOf(v)>=0}function b(){for(var v=h;v>0;v-=1)a+=n.indent}function S(){a=C(a),A?a+=" {":(a+=`
30
30
  `,b(),a+="{"),c!==`
31
31
  `&&(a+=`
@@ -68,7 +68,7 @@ ${s}}`;const a=document.querySelector('[data-theme-varibalse="true"]');if(a)a.re
68
68
  ${r}}`;const o=document.querySelector("head")||document.querySelector("body");o?.insertBefore(i,o.firstChild),e.commit(!1)}})),t.addDisposable(X.addListener(me.SANDBOX_SET_THEME_VARIABLES,n)),t}var IO=()=>{try{return localStorage.getItem("em-debug-project-fonts")==="1"}catch{return!1}},Bt=(e,t)=>{IO()},gn=new Map;function zh(e){return gn.get(e.toLowerCase())}function BO(){return gn.size>0}function FO(){return[...gn.values()]}function jO(e){return gn=new Map((e??[]).map(t=>[t.family.toLowerCase(),t])),gn}var $O=e=>{const t=jO(e);Bt("iframe: project fonts map received",{count:t.size,families:[...t.keys()],entries:e})};function HO(){const e=new Z;return e.addDisposable(X.addListener(me.SANDBOX_SET_PROJECT_FONTS,$O)),e}function Vh(e,t){const r=zh(t);return r?(e.style.fontFamily=`${JSON.stringify(r.family)}, sans-serif`,!0):!1}function Zi(e,t){return e.replace(/(^|[;\s])color:\s*[^;]*;?/i,`$1color: ${t};`)}function rt(e){return typeof e=="number"&&Number.isFinite(e)}function zO(e){return!e||typeof e!="object"?!1:rt(e.all)||rt(e.top)||rt(e.right)||rt(e.bottom)||rt(e.left)}function VO(e,t){const r=rt(t.all)?t.all:void 0,n=rt(t.top)?t.top:r,i=rt(t.right)?t.right:r,o=rt(t.bottom)?t.bottom:r,s=rt(t.left)?t.left:r;n!==void 0&&(e.style.paddingTop=`${n}px`),i!==void 0&&(e.style.paddingRight=`${i}px`),o!==void 0&&(e.style.paddingBottom=`${o}px`),s!==void 0&&(e.style.paddingLeft=`${s}px`)}function WO(e,t){const r=document.head.querySelectorAll("link");if(Array.from(r).some(o=>o.getAttribute("em-class")===t))return;const n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n.setAttribute("em-class",t);const i=document.querySelector("title");if(i){i.insertAdjacentElement("afterend",n);return}document.head.appendChild(n)}function Wh(e,t){const r=e.fontFamilyArray[1],n=e.fontFamilyArray[2],i=e.fontFamilyArray[3],o=Qn(n,i);if(r==="Project Fonts"){const f=zh(n);if(Bt("iframe: addFontFamilyClass Project Fonts",{fontFamilyArray:e.fontFamilyArray,emClass:o,entryFound:!!f,entry:f}),f){ie();const h=document.querySelector('style[em="styles"]'),g=Wp(f.source_url);if(g&&WO(f.source_url,o),h){const y=`em-project-font-${Kn(n)}`,A=!g&&!h.textContent?.includes(y);if(A){const C=`/* ${y} */
69
69
  @font-face{font-family:${JSON.stringify(f.family)};src:url(${JSON.stringify(f.source_url)});font-weight:${f.weight};font-style:${f.style};font-display:swap;}`;h.insertAdjacentHTML("afterbegin",C)}const L=!h.textContent?.includes(o);if(L){const C=Zn[i]||f.weight,O=C.replace(/i$/g,""),E=C.indexOf("i")>-1||f.style!=="normal";let m=`font-family: ${JSON.stringify(f.family)}, sans-serif!important;`;m+=` font-weight: ${O}!important;`,E&&(m+=" font-style: italic!important;"),h.insertAdjacentHTML("beforeend",`
70
70
  .${ec(o)} { ${m} }`)}Bt("iframe: project font attached",{marker:y,emClass:o,usesStylesheet:g,faceInserted:A,classInserted:L,source_url:f.source_url})}else Bt("iframe: style[em=styles] not found — @font-face not injected");setTimeout(()=>{bn({elem:document.head},t),t&&t(!1)},0);return}Bt("iframe: Project Fonts entry missing in map — skip Google Fonts fallback",{fontFamily:n,mapSize:document.querySelectorAll('style[em="styles"]').length}),setTimeout(()=>{bn({elem:document.head},t),Ji(t)},0);return}const s=document.head.querySelectorAll("link");if(!Array.from(s).some(f=>f.getAttribute("em-class")===o)){const f=document.createElement("link");f.setAttribute("rel","stylesheet");const h=Zn[i]||"400",g=h.indexOf("i")>-1,y=h.replaceAll("i","");f.setAttribute("href",`https://fonts.googleapis.com/css2?family=${n}:ital,wght@${g?"1":"0"},${y}&display=swap`),f.setAttribute("em-class",o);const A=document.querySelector("title");A&&A.insertAdjacentElement("afterend",f)}ie();const a=Zn[i]||"400",l=a.replaceAll("i",""),c=a.indexOf("i")>-1;let u=`font-family: '${n}', ${ac[r]||"sans-serif"}!important;`;u+=` font-weight: ${l}!important;`,c&&(u+=" font-style: italic!important;");const d=document.querySelector('style[em="styles"]');d&&d.insertAdjacentHTML("beforeend",`
71
- .${ec(o)} { ${u} }`),setTimeout(()=>{bn({elem:document.head},t),Ji(t)},0)}function UO(e,t){const r=t.toLowerCase();return document.querySelector(`[class*="em-font-${t}-"], [class*="em-font-${r}-"]`)?!0:(e.textContent?.toLowerCase()??"").includes(`.em-font-${r}-`)}function Ji(e){const t=document.querySelector('style[em="styles"]');if(!t?.sheet)return;let r=!1;const n=[],i=Array.from(t.sheet.cssRules);for(let o=i.length-1;o>=0;o-=1){const s=i[o];if(s instanceof CSSFontFaceRule){const a=s.style.getPropertyValue("font-family").replace(/['"]/g,"").trim();UO(t,a.replace(/\s/g,""))||(t.sheet.deleteRule(o),r=!0,n.push(a))}}r&&Bt("iframe: clearProjectFontFaces removed stale @font-face",{removedFamilies:n}),r&&e&&e(!1)}function bn(e,t){let r=!1;e.elem.querySelectorAll("link[em-class]").forEach(n=>{const i=n.getAttribute("em-class");i&&!document.querySelector("."+i)&&(r=!0,n.remove())}),r&&t&&t(!1)}function ja(e,t,r){t[0]==="Safe Fonts"?(e.style.fontFamily=t[1],bn({elem:document.head},r),Ji(r)):t[0]==="Google Fonts"&&(t[1]==="Sans Serif"?e.style.fontFamily="Helvetica, Arial, sans-serif":t[1]==="Serif"?e.style.fontFamily='"Times New Roman", Times, serif':t[1]==="Project Fonts"&&Vh(e,t[2]),e.classList.remove(...[...e.classList].filter(n=>n.startsWith("em-font"))),e.classList.add(Qn(t[2],t[3])),Wh({fontFamilyArray:t},r))}function Uh(e,t){if(t){const r=e.querySelector("b");r?r.replaceWith(...r.childNodes):e.querySelector("strong")||(e.innerHTML="<strong>"+e.innerHTML+"</strong>")}else{const r=e.querySelector("strong"),n=e.querySelector("b");r?r.replaceWith(...r.childNodes):n&&n.replaceWith(...n.childNodes)}if(e.style.fontWeight){const r=e.getAttribute("style")?.replace(/(\s+)?font-weight:(\s+)?(bold|[0-9]*)(;)?/,"")||"";e.setAttribute("style",r)}}function qh(e,t){if(t){const r=e.querySelector("i");r?r.replaceWith(...r.childNodes):e.querySelector("em")||(e.innerHTML="<em>"+e.innerHTML+"</em>")}else{const r=e.querySelector("em"),n=e.querySelector("i");r?r.replaceWith(...r.childNodes):n&&n.replaceWith(...n.childNodes)}if(e.style.fontStyle){const r=e.getAttribute("style")?.replace(/(\s+)?font-style:(\s+)?.*?;/,"")||"";e.setAttribute("style",r)}}function Gh(e,t){let r;t>0?r=e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${t}px`):e.getAttribute("style")+` letter-spacing: ${t}px;`:r=e.getAttribute("style")?.replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,"")||"",e.setAttribute("style",r)}function yn(e,t){e&&e.tagName==="TABLE"&&(e.classList.contains("em-vindent-table")||e.querySelector("td")?.innerHTML==="")&&e.querySelector("td")?.setAttribute("height",String(t))}function qO(e,t){const r=es(),n=e.html.substring(0,3)==="<tr"?document.createElement("table"):document.createElement("div");return n.replaceChildren(...xe(e.html)),n.querySelectorAll('[em="atom"] div[style*="font-family"]').forEach(i=>{const o=i;if(!o.style.display&&parseFloat(o.style.fontSize)<=20){const s=r.text?.fontFamily||[],a=Zi((o.getAttribute("style")||"").replace(/font-size:(\s+)?.*?px/,`font-size: ${r.text?.fontSize||16}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${r.text?.lineHeight||24}px`),r.text?.color||"#000000");o.setAttribute("style",a),ja(o,s,t);const l=o.closest('[em="atom"] > tr > td');l?.style.paddingBottom?l.style.paddingBottom=(r.text?.paddingBottom||0)+"px":yn(o.nextElementSibling??o.closest("table")?.nextElementSibling,r.text?.paddingBottom||0)}else if(!o.style.display&&parseFloat(o.style.fontSize)>20){const s=r.headings?.fontFamily||[],a=Zi((o.getAttribute("style")||"").replace(/font-size:(\s+)?.*?px/,`font-size: ${r.headings?.fontSize||24}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${r.headings?.lineHeight||32}px`),r.headings?.color||"#000000");o.setAttribute("style",a),ja(o,s,t),Gh(o,r.headings?.letterSpacing||0),Uh(o,r.headings?.bold||!1),qh(o,r.headings?.italic||!1);const l=o.closest('[em="atom"] > tr > td');l?.style.paddingTop?l.style.paddingTop=(r.headings?.paddingTop||0)+"px":yn(o.previousElementSibling,r.headings?.paddingTop||0),l?.style.paddingBottom?l.style.paddingBottom=(r.headings?.paddingBottom||0)+"px":yn(o.nextElementSibling,r.headings?.paddingBottom||0)}}),n.querySelectorAll('[em="atom"] a[style*="color"]').forEach(i=>{const o=i;if(o.style.display){if(o.style.display==="block"){const s=r.buttons?.fontFamily||[],a=Zi((o.getAttribute("style")||"").replace(/font-size:(\s+)?.*?px/,`font-size: ${r.buttons?.fontSize||16}px`),r.buttons?.color||"#FFFFFF");o.setAttribute("style",a),ja(o,s,t);const l=o.closest("td"),c=!!l&&!!Zt(l)&&!Zt(o),u=c?o:l,d=r.buttons?.backgroundColor||"#1677FF";u&&(u.style.backgroundColor=d,u.tagName==="TD"&&u.setAttribute("bgcolor",d)),l&&l.setAttribute("align",r.buttons?.textAlign||"center"),Gh(o,r.buttons?.letterSpacing||0),Uh(o,r.buttons?.bold||!1),qh(o,r.buttons?.italic||!1);const f=o.closest('[em="atom"] > tr > td'),h=o.closest("table");f?.style.paddingTop?f.style.paddingTop=(r.buttons?.marginTop||0)+"px":h?.previousElementSibling&&yn(h.previousElementSibling,r.buttons?.marginTop||0),f?.style.paddingBottom?f.style.paddingBottom=(r.buttons?.marginBottom||0)+"px":h?.nextElementSibling&&yn(h.nextElementSibling,r.buttons?.marginBottom||0);const g=r.buttons?.padding||{};g.all&&(o.style.padding=g.all+"px"),g.top&&(o.style.paddingTop=g.top+"px"),g.right&&(o.style.paddingRight=g.right+"px"),g.bottom&&(o.style.paddingBottom=g.bottom+"px"),g.left&&(o.style.paddingLeft=g.left+"px"),u&&(r.buttons?.border&&ic({settings:{border:r.buttons.border},elem:u}),r.buttons?.borderRadius&&oc({settings:{borderRadius:r.buttons.borderRadius},elem:u})),c&&wc(o,{backgroundColor:d})}}else{const s=Zi(o.getAttribute("style"),r.links?.color||"#0000FF");o.setAttribute("style",s);let a;r.links?.underline?a=o.style.textDecoration?o.getAttribute("style").replace(/(\s+)?text-decoration:(\s+)?.*?;/,"text-decoration: underline;"):o.getAttribute("style")+" text-decoration: underline;":a=o.style.textDecoration?o.getAttribute("style").replace(/(\s+)?text-decoration:(\s+)?.*?;/,"text-decoration: none;"):o.getAttribute("style")+" text-decoration: none;",o.setAttribute("style",a)}}),n.querySelector('[em="block"]')&&r.block?.backgroundColor&&n.querySelectorAll('[em="block"]').forEach(i=>{i.querySelectorAll(":scope > td").forEach(o=>{const s=o;s.setAttribute("bgcolor",r.block.backgroundColor),s.style.backgroundColor=r.block.backgroundColor})}),n.tagName==="DIV"?Se(n):Se(n.querySelector("tbody")||n)}function GO(e){const t=es(),r=e.html.substring(0,3)==="<tr"?document.createElement("table"):document.createElement("div");r.replaceChildren(...xe(e.html)),r.querySelector('[em="block"]')&&t.block?.backgroundColor&&r.querySelectorAll('[em="block"]').forEach(i=>{i.querySelectorAll(":scope > td").forEach(o=>{const s=o;s.setAttribute("bgcolor",t.block.backgroundColor),s.style.backgroundColor=t.block.backgroundColor})});const n=t.block?.padding;return zO(n)&&r.querySelectorAll('[em="block"] > td').forEach(i=>{VO(i,n)}),r.tagName==="DIV"?Se(r):Se(r.querySelector("tbody")||r)}function XO(e,t,r){return(t=ZO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ut(){return ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ut.apply(null,arguments)}function Xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xh(Object(r),!0).forEach(function(n){XO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YO(e,t){if(e==null)return{};var r,n,i=KO(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function KO(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function QO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZO(e){var t=QO(e,"string");return typeof t=="symbol"?t:t+""}function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}var JO="1.15.7";function dt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var ft=dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),vn=dt(/Edge/i),Yh=dt(/firefox/i),En=dt(/safari/i)&&!dt(/chrome/i)&&!dt(/android/i),Ha=dt(/iP(ad|od|hone)/i),Kh=dt(/chrome/i)&&dt(/android/i),Qh={capture:!1,passive:!1};function q(e,t,r){e.addEventListener(t,r,!ft&&Qh)}function U(e,t,r){e.removeEventListener(t,r,!ft&&Qh)}function eo(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Zh(e){return e.host&&e!==document&&e.host.nodeType&&e.host!==e?e.host:e.parentNode}function Ue(e,t,r,n){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&eo(e,t):eo(e,t))||n&&e===r)return e;if(e===r)break}while(e=Zh(e))}return null}var Jh=/\s+/g;function Ne(e,t,r){e&&t&&(e.classList?e.classList[r?"add":"remove"](t):e.className=((" "+e.className+" ").replace(Jh," ").replace(" "+t+" "," ")+(r?" "+t:"")).replace(Jh," "))}function $(e,t,r){var n=e&&e.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=r+(typeof r=="string"?"":"px")}}function Ar(e,t){var r="";if(typeof e=="string")r=e;else do{var n=$(e,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function em(e,t,r){if(e){var n=e.getElementsByTagName(t),i=0,o=n.length;if(r)for(;i<o;i++)r(n[i],i);return n}return[]}function it(){var e=document.scrollingElement;return e||document.documentElement}function ue(e,t,r,n,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,a,l,c,u,d;if(e!==window&&e.parentNode&&e!==it()?(o=e.getBoundingClientRect(),s=o.top,a=o.left,l=o.bottom,c=o.right,u=o.height,d=o.width):(s=0,a=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||r)&&e!==window&&(i=i||e.parentNode,!ft))do if(i&&i.getBoundingClientRect&&($(i,"transform")!=="none"||r&&$(i,"position")!=="static")){var f=i.getBoundingClientRect();s-=f.top+parseInt($(i,"border-top-width")),a-=f.left+parseInt($(i,"border-left-width")),l=s+o.height,c=a+o.width;break}while(i=i.parentNode);if(n&&e!==window){var h=Ar(i||e),g=h&&h.a,y=h&&h.d;h&&(s/=y,a/=g,d/=g,u/=y,l=s+u,c=a+d)}return{top:s,left:a,bottom:l,right:c,width:d,height:u}}}function tm(e,t,r){for(var n=Et(e,!0),i=ue(e)[t];n;){var o=ue(n)[r],s=void 0;if(r==="top"||r==="left"?s=i>=o:s=i<=o,!s)return n;if(n===it())break;n=Et(n,!1)}return!1}function Tr(e,t,r,n){for(var i=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==j.ghost&&(n||s[o]!==j.dragged)&&Ue(s[o],r.draggable,e,!1)){if(i===t)return s[o];i++}o++}return null}function za(e,t){for(var r=e.lastElementChild;r&&(r===j.ghost||$(r,"display")==="none"||t&&!eo(r,t));)r=r.previousElementSibling;return r||null}function Fe(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==j.clone&&(!t||eo(e,t))&&r++;return r}function rm(e){var t=0,r=0,n=it();if(e)do{var i=Ar(e),o=i.a,s=i.d;t+=e.scrollLeft*o,r+=e.scrollTop*s}while(e!==n&&(e=e.parentNode));return[t,r]}function ex(e,t){for(var r in e)if(e.hasOwnProperty(r)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[r][n])return Number(r)}return-1}function Et(e,t){if(!e||!e.getBoundingClientRect)return it();var r=e,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var i=$(r);if(r.clientWidth<r.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return it();if(n||t)return r;n=!0}}while(r=r.parentNode);return it()}function tx(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function Va(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var _n;function nm(e,t){return function(){if(!_n){var r=arguments,n=this;r.length===1?e.call(n,r[0]):e.apply(n,r),_n=setTimeout(function(){_n=void 0},t)}}}function rx(){clearTimeout(_n),_n=void 0}function im(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function om(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}function sm(e,t,r){var n={};return Array.from(e.children).forEach(function(i){var o,s,a,l;if(!(!Ue(i,t.draggable,e,!1)||i.animated||i===r)){var c=ue(i);n.left=Math.min((o=n.left)!==null&&o!==void 0?o:1/0,c.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,c.top),n.right=Math.max((a=n.right)!==null&&a!==void 0?a:-1/0,c.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Te="Sortable"+new Date().getTime();function nx(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(n){if(!($(n,"display")==="none"||n===j.ghost)){e.push({target:n,rect:ue(n)});var i=nt({},e[e.length-1].rect);if(n.thisAnimationDuration){var o=Ar(n,!0);o&&(i.top-=o.f,i.left-=o.e)}n.fromRect=i}})},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(ex(e,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var o=!1,s=0;e.forEach(function(a){var l=0,c=a.target,u=c.fromRect,d=ue(c),f=c.prevFromRect,h=c.prevToRect,g=a.rect,y=Ar(c,!0);y&&(d.top-=y.f,d.left-=y.e),c.toRect=d,c.thisAnimationDuration&&Va(f,d)&&!Va(u,d)&&(g.top-d.top)/(g.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(l=ox(g,f,h,i.options)),Va(d,u)||(c.prevFromRect=u,c.prevToRect=d,l||(l=i.options.animation),i.animate(c,g,d,l)),l&&(o=!0,s=Math.max(s,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),e=[]},animate:function(n,i,o,s){if(s){$(n,"transition",""),$(n,"transform","");var a=Ar(this.el),l=a&&a.a,c=a&&a.d,u=(i.left-o.left)/(l||1),d=(i.top-o.top)/(c||1);n.animatingX=!!u,n.animatingY=!!d,$(n,"transform","translate3d("+u+"px,"+d+"px,0)"),this.forRepaintDummy=ix(n),$(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),$(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){$(n,"transition",""),$(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function ix(e){return e.offsetWidth}function ox(e,t,r,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*n.animation}var kr=[],Wa={initializeByDefault:!0},Sn={mount:function(t){for(var r in Wa)Wa.hasOwnProperty(r)&&!(r in t)&&(t[r]=Wa[r]);kr.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),kr.push(t)},pluginEvent:function(t,r,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var o=t+"Global";kr.forEach(function(s){r[s.pluginName]&&(r[s.pluginName][o]&&r[s.pluginName][o](nt({sortable:r},n)),r.options[s.pluginName]&&r[s.pluginName][t]&&r[s.pluginName][t](nt({sortable:r},n)))})},initializePlugins:function(t,r,n,i){kr.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var c=new a(t,r,t.options);c.sortable=t,c.options=t.options,t[l]=c,ut(n,c.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);typeof s<"u"&&(t.options[o]=s)}},getEventProperties:function(t,r){var n={};return kr.forEach(function(i){typeof i.eventProperties=="function"&&ut(n,i.eventProperties.call(r[i.pluginName],t))}),n},modifyOption:function(t,r,n){var i;return kr.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[r]=="function"&&(i=o.optionListeners[r].call(t[o.pluginName],n))}),i}};function sx(e){var t=e.sortable,r=e.rootEl,n=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;if(t=t||r&&r[Te],!!t){var y,A=t.options,L="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ft&&!vn?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=s||r,y.from=a||r,y.item=i||r,y.clone=o,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=u,y.newDraggableIndex=d,y.originalEvent=f,y.pullMode=h?h.lastPutMode:void 0;var C=nt(nt({},g),Sn.getEventProperties(n,t));for(var O in C)y[O]=C[O];r&&r.dispatchEvent(y),A[L]&&A[L].call(t,y)}}var ax=["evt"],ke=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,o=YO(n,ax);Sn.pluginEvent.bind(j)(t,r,nt({dragEl:M,parentEl:le,ghostEl:H,rootEl:re,nextEl:Ft,lastDownEl:to,cloneEl:oe,cloneHidden:_t,dragStarted:Cn,putSortable:pe,activeSortable:j.active,originalEvent:i,oldIndex:Lr,oldDraggableIndex:wn,newIndex:Me,newDraggableIndex:St,hideGhostForTarget:hm,unhideGhostForTarget:mm,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){we({sortable:r,name:a,originalEvent:i})}},o))};function we(e){sx(nt({putSortable:pe,cloneEl:oe,targetEl:M,rootEl:re,oldIndex:Lr,oldDraggableIndex:wn,newIndex:Me,newDraggableIndex:St},e))}var M,le,H,re,Ft,to,oe,_t,Lr,Me,wn,St,ro,pe,Or=!1,no=!1,io=[],jt,qe,Ua,qa,am,lm,Cn,xr,An,Tn=!1,oo=!1,so,Ee,Ga=[],Xa=!1,ao=[],lo=typeof document<"u",co=Ha,cm=vn||ft?"cssFloat":"float",lx=lo&&!Kh&&!Ha&&"draggable"in document.createElement("div"),um=(function(){if(lo){if(ft)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),dm=function(t,r){var n=$(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Tr(t,0,r),s=Tr(t,1,r),a=o&&$(o),l=s&&$(s),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ue(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ue(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=i&&n[cm]==="none"||s&&n[cm]==="none"&&c+u>i)?"vertical":"horizontal"},cx=function(t,r,n){var i=n?t.left:t.top,o=n?t.right:t.bottom,s=n?t.width:t.height,a=n?r.left:r.top,l=n?r.right:r.bottom,c=n?r.width:r.height;return i===a||o===l||i+s/2===a+c/2},ux=function(t,r){var n;return io.some(function(i){var o=i[Te].options.emptyInsertThreshold;if(!(!o||za(i))){var s=ue(i),a=t>=s.left-o&&t<=s.right+o,l=r>=s.top-o&&r<=s.bottom+o;if(a&&l)return n=i}}),n},fm=function(t){function r(o,s){return function(a,l,c,u){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(s||d))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return r(o(a,l,c,u),s)(a,l,c,u);var f=(s?a:l).options.group.name;return o===!0||typeof o=="string"&&o===f||o.join&&o.indexOf(f)>-1}}var n={},i=t.group;(!i||$a(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=r(i.pull,!0),n.checkPut=r(i.put),n.revertClone=i.revertClone,t.group=n},hm=function(){!um&&H&&$(H,"display","none")},mm=function(){!um&&H&&$(H,"display","")};lo&&!Kh&&document.addEventListener("click",function(e){if(no)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),no=!1,!1},!0);var $t=function(t){if(M){t=t.touches?t.touches[0]:t;var r=ux(t.clientX,t.clientY);if(r){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=r,n.preventDefault=void 0,n.stopPropagation=void 0,r[Te]._onDragOver(n)}}},dx=function(t){M&&M.parentNode[Te]._isOutsideThisEl(t.target)};function j(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ut({},t),e[Te]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return dm(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:j.supportPointer!==!1&&"PointerEvent"in window&&(!En||Ha),emptyInsertThreshold:5};Sn.initializePlugins(this,e,r);for(var n in r)!(n in t)&&(t[n]=r[n]);fm(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:lx,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?q(e,"pointerdown",this._onTapStart):(q(e,"mousedown",this._onTapStart),q(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(q(e,"dragover",this),q(e,"dragenter",this)),io.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ut(this,nx())}j.prototype={constructor:j,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(xr=null)},_getDirection:function(t,r){return typeof this.options.direction=="function"?this.options.direction.call(this,t,r,M):this.options.direction},_onTapStart:function(t){if(t.cancelable){var r=this,n=this.el,i=this.options,o=i.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,u=i.filter;if(vx(n),!M&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&En&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Ue(l,i.draggable,n,!1),!(l&&l.animated)&&to!==l)){if(Lr=Fe(l),wn=Fe(l,i.draggable),typeof u=="function"){if(u.call(this,t,l,this)){we({sortable:r,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),ke("filter",r,{evt:t}),o&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=Ue(c,d.trim(),n,!1),d)return we({sortable:r,rootEl:d,name:"filter",targetEl:l,fromEl:n,toEl:n}),ke("filter",r,{evt:t}),!0}),u)){o&&t.preventDefault();return}i.handle&&!Ue(c,i.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,r,n){var i=this,o=i.el,s=i.options,a=o.ownerDocument,l;if(n&&!M&&n.parentNode===o){var c=ue(n);if(re=o,M=n,le=M.parentNode,Ft=M.nextSibling,to=n,ro=s.group,j.dragged=M,jt={target:M,clientX:(r||t).clientX,clientY:(r||t).clientY},am=jt.clientX-c.left,lm=jt.clientY-c.top,this._lastX=(r||t).clientX,this._lastY=(r||t).clientY,M.style["will-change"]="all",l=function(){if(ke("delayEnded",i,{evt:t}),j.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Yh&&i.nativeDraggable&&(M.draggable=!0),i._triggerDragStart(t,r),we({sortable:i,name:"choose",originalEvent:t}),Ne(M,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){em(M,u.trim(),Ya)}),q(a,"dragover",$t),q(a,"mousemove",$t),q(a,"touchmove",$t),s.supportPointer?(q(a,"pointerup",i._onDrop),!this.nativeDraggable&&q(a,"pointercancel",i._onDrop)):(q(a,"mouseup",i._onDrop),q(a,"touchend",i._onDrop),q(a,"touchcancel",i._onDrop)),Yh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,M.draggable=!0),ke("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(vn||ft))){if(j.eventCanceled){this._onDrop();return}s.supportPointer?(q(a,"pointerup",i._disableDelayedDrag),q(a,"pointercancel",i._disableDelayedDrag)):(q(a,"mouseup",i._disableDelayedDrag),q(a,"touchend",i._disableDelayedDrag),q(a,"touchcancel",i._disableDelayedDrag)),q(a,"mousemove",i._delayedDragTouchMoveHandler),q(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&q(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var r=t.touches?t.touches[0]:t;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){M&&Ya(M),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;U(t,"mouseup",this._disableDelayedDrag),U(t,"touchend",this._disableDelayedDrag),U(t,"touchcancel",this._disableDelayedDrag),U(t,"pointerup",this._disableDelayedDrag),U(t,"pointercancel",this._disableDelayedDrag),U(t,"mousemove",this._delayedDragTouchMoveHandler),U(t,"touchmove",this._delayedDragTouchMoveHandler),U(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,r){r=r||t.pointerType=="touch"&&t,!this.nativeDraggable||r?this.options.supportPointer?q(document,"pointermove",this._onTouchMove):r?q(document,"touchmove",this._onTouchMove):q(document,"mousemove",this._onTouchMove):(q(M,"dragend",this),q(re,"dragstart",this._onDragStart));try{document.selection?fo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,r){if(Or=!1,re&&M){ke("dragStarted",this,{evt:r}),this.nativeDraggable&&q(document,"dragover",dx);var n=this.options;!t&&Ne(M,n.dragClass,!1),Ne(M,n.ghostClass,!0),j.active=this,t&&this._appendGhost(),we({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(qe){this._lastX=qe.clientX,this._lastY=qe.clientY,hm();for(var t=document.elementFromPoint(qe.clientX,qe.clientY),r=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(qe.clientX,qe.clientY),t!==r);)r=t;if(M.parentNode[Te]._isOutsideThisEl(t),r)do{if(r[Te]){var n=void 0;if(n=r[Te]._onDragOver({clientX:qe.clientX,clientY:qe.clientY,target:t,rootEl:r}),n&&!this.options.dragoverBubble)break}t=r}while(r=Zh(r));mm()}},_onTouchMove:function(t){if(jt){var r=this.options,n=r.fallbackTolerance,i=r.fallbackOffset,o=t.touches?t.touches[0]:t,s=H&&Ar(H,!0),a=H&&s&&s.a,l=H&&s&&s.d,c=co&&Ee&&rm(Ee),u=(o.clientX-jt.clientX+i.x)/(a||1)+(c?c[0]-Ga[0]:0)/(a||1),d=(o.clientY-jt.clientY+i.y)/(l||1)+(c?c[1]-Ga[1]:0)/(l||1);if(!j.active&&!Or){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(H){s?(s.e+=u-(Ua||0),s.f+=d-(qa||0)):s={a:1,b:0,c:0,d:1,e:u,f:d};var f="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");$(H,"webkitTransform",f),$(H,"mozTransform",f),$(H,"msTransform",f),$(H,"transform",f),Ua=u,qa=d,qe=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!H){var t=this.options.fallbackOnBody?document.body:re,r=ue(M,!0,co,!0,t),n=this.options;if(co){for(Ee=t;$(Ee,"position")==="static"&&$(Ee,"transform")==="none"&&Ee!==document;)Ee=Ee.parentNode;Ee!==document.body&&Ee!==document.documentElement?(Ee===document&&(Ee=it()),r.top+=Ee.scrollTop,r.left+=Ee.scrollLeft):Ee=it(),Ga=rm(Ee)}H=M.cloneNode(!0),Ne(H,n.ghostClass,!1),Ne(H,n.fallbackClass,!0),Ne(H,n.dragClass,!0),$(H,"transition",""),$(H,"transform",""),$(H,"box-sizing","border-box"),$(H,"margin",0),$(H,"top",r.top),$(H,"left",r.left),$(H,"width",r.width),$(H,"height",r.height),$(H,"opacity","0.8"),$(H,"position",co?"absolute":"fixed"),$(H,"zIndex","100000"),$(H,"pointerEvents","none"),j.ghost=H,t.appendChild(H),$(H,"transform-origin",am/parseInt(H.style.width)*100+"% "+lm/parseInt(H.style.height)*100+"%")}},_onDragStart:function(t,r){var n=this,i=t.dataTransfer,o=n.options;if(ke("dragStart",this,{evt:t}),j.eventCanceled){this._onDrop();return}ke("setupClone",this),j.eventCanceled||(oe=om(M),oe.removeAttribute("id"),oe.draggable=!1,oe.style["will-change"]="",this._hideClone(),Ne(oe,this.options.chosenClass,!1),j.clone=oe),n.cloneId=fo(function(){ke("clone",n),!j.eventCanceled&&(n.options.removeCloneOnHide||re.insertBefore(oe,M),n._hideClone(),we({sortable:n,name:"clone"}))}),!r&&Ne(M,o.dragClass,!0),r?(no=!0,n._loopId=setInterval(n._emulateDragOver,50)):(U(document,"mouseup",n._onDrop),U(document,"touchend",n._onDrop),U(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,M)),q(document,"drop",n),$(M,"transform","translateZ(0)")),Or=!0,n._dragStartId=fo(n._dragStarted.bind(n,r,t)),q(document,"selectstart",n),Cn=!0,window.getSelection().removeAllRanges(),En&&$(document.body,"user-select","none")},_onDragOver:function(t){var r=this.el,n=t.target,i,o,s,a=this.options,l=a.group,c=j.active,u=ro===l,d=a.sort,f=pe||c,h,g=this,y=!1;if(Xa)return;function A(je,ht){ke(je,g,nt({evt:t,isOwner:u,axis:h?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:d,fromSortable:f,target:n,completed:C,onMove:function(ot,Le){return uo(re,r,M,i,ot,ue(ot),t,Le)},changed:O},ht))}function L(){A("dragOverAnimationCapture"),g.captureAnimationState(),g!==f&&f.captureAnimationState()}function C(je){return A("dragOverCompleted",{insertion:je}),je&&(u?c._hideClone():c._showClone(g),g!==f&&(Ne(M,pe?pe.options.ghostClass:c.options.ghostClass,!1),Ne(M,a.ghostClass,!0)),pe!==g&&g!==j.active?pe=g:g===j.active&&pe&&(pe=null),f===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){A("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(n===M&&!M.animated||n===r&&!n.animated)&&(xr=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(M.parentNode[Te]._isOutsideThisEl(t.target),!je&&$t(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function O(){Me=Fe(M),St=Fe(M,a.draggable),we({sortable:g,name:"change",toEl:r,newIndex:Me,newDraggableIndex:St,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=Ue(n,a.draggable,r,!0),A("dragOver"),j.eventCanceled)return y;if(M.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return C(!1);if(no=!1,c&&!a.disabled&&(u?d||(s=le!==re):pe===this||(this.lastPutMode=ro.checkPull(this,c,M,t))&&l.checkPut(this,c,M,t))){if(h=this._getDirection(t,n)==="vertical",i=ue(M),A("dragOverValid"),j.eventCanceled)return y;if(s)return le=re,L(),this._hideClone(),A("revert"),j.eventCanceled||(Ft?re.insertBefore(M,Ft):re.appendChild(M)),C(!0);var E=za(r,a.draggable);if(!E||px(t,h,this)&&!E.animated){if(E===M)return C(!1);if(E&&r===t.target&&(n=E),n&&(o=ue(n)),uo(re,r,M,i,n,o,t,!!n)!==!1)return L(),E&&E.nextSibling?r.insertBefore(M,E.nextSibling):r.appendChild(M),le=r,O(),C(!0)}else if(E&&mx(t,h,this)){var m=Tr(r,0,a,!0);if(m===M)return C(!1);if(n=m,o=ue(n),uo(re,r,M,i,n,o,t,!1)!==!1)return L(),r.insertBefore(M,m),le=r,O(),C(!0)}else if(n.parentNode===r){o=ue(n);var b=0,S,p=M.parentNode!==r,v=!cx(M.animated&&M.toRect||i,n.animated&&n.toRect||o,h),T=h?"top":"left",w=tm(n,"top","top")||tm(M,"top","top"),P=w?w.scrollTop:void 0;xr!==n&&(S=o[T],Tn=!1,oo=!v&&a.invertSwap||p),b=gx(t,n,o,h,v?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,oo,xr===n);var x;if(b!==0){var R=Fe(M);do R-=b,x=le.children[R];while(x&&($(x,"display")==="none"||x===H))}if(b===0||x===n)return C(!1);xr=n,An=b;var N=n.nextElementSibling,D=!1;D=b===1;var ne=uo(re,r,M,i,n,o,t,D);if(ne!==!1)return(ne===1||ne===-1)&&(D=ne===1),Xa=!0,setTimeout(hx,30),L(),D&&!N?r.appendChild(M):n.parentNode.insertBefore(M,D?N:n),w&&im(w,0,P-w.scrollTop),le=M.parentNode,S!==void 0&&!oo&&(so=Math.abs(S-ue(n)[T])),O(),C(!0)}if(r.contains(M))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){U(document,"mousemove",this._onTouchMove),U(document,"touchmove",this._onTouchMove),U(document,"pointermove",this._onTouchMove),U(document,"dragover",$t),U(document,"mousemove",$t),U(document,"touchmove",$t)},_offUpEvents:function(){var t=this.el.ownerDocument;U(t,"mouseup",this._onDrop),U(t,"touchend",this._onDrop),U(t,"pointerup",this._onDrop),U(t,"pointercancel",this._onDrop),U(t,"touchcancel",this._onDrop),U(document,"selectstart",this)},_onDrop:function(t){var r=this.el,n=this.options;if(Me=Fe(M),St=Fe(M,n.draggable),ke("drop",this,{evt:t}),le=M&&M.parentNode,Me=Fe(M),St=Fe(M,n.draggable),j.eventCanceled){this._nulling();return}Or=!1,oo=!1,Tn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ka(this.cloneId),Ka(this._dragStartId),this.nativeDraggable&&(U(document,"drop",this),U(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),En&&$(document.body,"user-select",""),$(M,"transform",""),t&&(Cn&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),H&&H.parentNode&&H.parentNode.removeChild(H),(re===le||pe&&pe.lastPutMode!=="clone")&&oe&&oe.parentNode&&oe.parentNode.removeChild(oe),M&&(this.nativeDraggable&&U(M,"dragend",this),Ya(M),M.style["will-change"]="",Cn&&!Or&&Ne(M,pe?pe.options.ghostClass:this.options.ghostClass,!1),Ne(M,this.options.chosenClass,!1),we({sortable:this,name:"unchoose",toEl:le,newIndex:null,newDraggableIndex:null,originalEvent:t}),re!==le?(Me>=0&&(we({rootEl:le,name:"add",toEl:le,fromEl:re,originalEvent:t}),we({sortable:this,name:"remove",toEl:le,originalEvent:t}),we({rootEl:le,name:"sort",toEl:le,fromEl:re,originalEvent:t}),we({sortable:this,name:"sort",toEl:le,originalEvent:t})),pe&&pe.save()):Me!==Lr&&Me>=0&&(we({sortable:this,name:"update",toEl:le,originalEvent:t}),we({sortable:this,name:"sort",toEl:le,originalEvent:t})),j.active&&((Me==null||Me===-1)&&(Me=Lr,St=wn),we({sortable:this,name:"end",toEl:le,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ke("nulling",this),re=M=le=H=Ft=oe=to=_t=jt=qe=Cn=Me=St=Lr=wn=xr=An=pe=ro=j.dragged=j.ghost=j.clone=j.active=null;var t=this.el;ao.forEach(function(r){t.contains(r)&&(r.checked=!0)}),ao.length=Ua=qa=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":M&&(this._onDragOver(t),fx(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t=[],r,n=this.el.children,i=0,o=n.length,s=this.options;i<o;i++)r=n[i],Ue(r,s.draggable,this.el,!1)&&t.push(r.getAttribute(s.dataIdAttr)||yx(r));return t},sort:function(t,r){var n={},i=this.el;this.toArray().forEach(function(o,s){var a=i.children[s];Ue(a,this.options.draggable,i,!1)&&(n[o]=a)},this),r&&this.captureAnimationState(),t.forEach(function(o){n[o]&&(i.removeChild(n[o]),i.appendChild(n[o]))}),r&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,r){return Ue(t,r||this.options.draggable,this.el,!1)},option:function(t,r){var n=this.options;if(r===void 0)return n[t];var i=Sn.modifyOption(this,t,r);typeof i<"u"?n[t]=i:n[t]=r,t==="group"&&fm(n)},destroy:function(){ke("destroy",this);var t=this.el;t[Te]=null,U(t,"mousedown",this._onTapStart),U(t,"touchstart",this._onTapStart),U(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(U(t,"dragover",this),U(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),io.splice(io.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_t){if(ke("hideClone",this),j.eventCanceled)return;$(oe,"display","none"),this.options.removeCloneOnHide&&oe.parentNode&&oe.parentNode.removeChild(oe),_t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(ke("showClone",this),j.eventCanceled)return;M.parentNode==re&&!this.options.group.revertClone?re.insertBefore(oe,M):Ft?re.insertBefore(oe,Ft):re.appendChild(oe),this.options.group.revertClone&&this.animate(M,oe),$(oe,"display",""),_t=!1}}};function fx(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function uo(e,t,r,n,i,o,s,a){var l,c=e[Te],u=c.options.onMove,d;return window.CustomEvent&&!ft&&!vn?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=r,l.draggedRect=n,l.related=i||t,l.relatedRect=o||ue(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),u&&(d=u.call(c,l,s)),d}function Ya(e){e.draggable=!1}function hx(){Xa=!1}function mx(e,t,r){var n=ue(Tr(r.el,0,r.options,!0)),i=sm(r.el,r.options,H),o=10;return t?e.clientX<i.left-o||e.clientY<n.top&&e.clientX<n.right:e.clientY<i.top-o||e.clientY<n.bottom&&e.clientX<n.left}function px(e,t,r){var n=ue(za(r.el,r.options.draggable)),i=sm(r.el,r.options,H),o=10;return t?e.clientX>i.right+o||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>i.bottom+o||e.clientX>n.right&&e.clientY>n.top}function gx(e,t,r,n,i,o,s,a){var l=n?e.clientY:e.clientX,c=n?r.height:r.width,u=n?r.top:r.left,d=n?r.bottom:r.right,f=!1;if(!s){if(a&&so<c*i){if(!Tn&&(An===1?l>u+c*o/2:l<d-c*o/2)&&(Tn=!0),Tn)f=!0;else if(An===1?l<u+so:l>d-so)return-An}else if(l>u+c*(1-i)/2&&l<d-c*(1-i)/2)return bx(t)}return f=f||s,f&&(l<u+c*o/2||l>d-c*o/2)?l>u+c/2?1:-1:0}function bx(e){return Fe(M)<Fe(e)?1:-1}function yx(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,n=0;r--;)n+=t.charCodeAt(r);return n.toString(36)}function vx(e){ao.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var n=t[r];n.checked&&ao.push(n)}}function fo(e){return setTimeout(e,0)}function Ka(e){return clearTimeout(e)}lo&&q(document,"touchmove",function(e){(j.active||Or)&&e.cancelable&&e.preventDefault()}),j.utils={on:q,off:U,css:$,find:em,is:function(t,r){return!!Ue(t,r,t,!1)},extend:tx,throttle:nm,closest:Ue,toggleClass:Ne,clone:om,index:Fe,nextTick:fo,cancelNextTick:Ka,detectDirection:dm,getChild:Tr,expando:Te},j.get=function(e){return e[Te]},j.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(j.utils=nt(nt({},j.utils),n.utils)),Sn.mount(n)})},j.create=function(e,t){return new j(e,t)},j.version=JO;var de=[],kn,Qa,Za=!1,Ja,el,ho,Ln;function Ex(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(r){var n=r.originalEvent;this.sortable.nativeDraggable?q(document,"dragover",this._handleAutoScroll):this.options.supportPointer?q(document,"pointermove",this._handleFallbackAutoScroll):n.touches?q(document,"touchmove",this._handleFallbackAutoScroll):q(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var n=r.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?U(document,"dragover",this._handleAutoScroll):(U(document,"pointermove",this._handleFallbackAutoScroll),U(document,"touchmove",this._handleFallbackAutoScroll),U(document,"mousemove",this._handleFallbackAutoScroll)),pm(),mo(),rx()},nulling:function(){ho=Qa=kn=Za=Ln=Ja=el=null,de.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,n){var i=this,o=(r.touches?r.touches[0]:r).clientX,s=(r.touches?r.touches[0]:r).clientY,a=document.elementFromPoint(o,s);if(ho=r,n||this.options.forceAutoScrollFallback||vn||ft||En){tl(r,this.options,a,n);var l=Et(a,!0);Za&&(!Ln||o!==Ja||s!==el)&&(Ln&&pm(),Ln=setInterval(function(){var c=Et(document.elementFromPoint(o,s),!0);c!==l&&(l=c,mo()),tl(r,i.options,c,n)},10),Ja=o,el=s)}else{if(!this.options.bubbleScroll||Et(a,!0)===it()){mo();return}tl(r,this.options,Et(a,!1),!1)}}},ut(e,{pluginName:"scroll",initializeByDefault:!0})}function mo(){de.forEach(function(e){clearInterval(e.pid)}),de=[]}function pm(){clearInterval(Ln)}var tl=nm(function(e,t,r,n){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=it(),c=!1,u;Qa!==r&&(Qa=r,mo(),kn=t.scroll,u=t.scrollFn,kn===!0&&(kn=Et(r,!0)));var d=0,f=kn;do{var h=f,g=ue(h),y=g.top,A=g.bottom,L=g.left,C=g.right,O=g.width,E=g.height,m=void 0,b=void 0,S=h.scrollWidth,p=h.scrollHeight,v=$(h),T=h.scrollLeft,w=h.scrollTop;h===l?(m=O<S&&(v.overflowX==="auto"||v.overflowX==="scroll"||v.overflowX==="visible"),b=E<p&&(v.overflowY==="auto"||v.overflowY==="scroll"||v.overflowY==="visible")):(m=O<S&&(v.overflowX==="auto"||v.overflowX==="scroll"),b=E<p&&(v.overflowY==="auto"||v.overflowY==="scroll"));var P=m&&(Math.abs(C-i)<=s&&T+O<S)-(Math.abs(L-i)<=s&&!!T),x=b&&(Math.abs(A-o)<=s&&w+E<p)-(Math.abs(y-o)<=s&&!!w);if(!de[d])for(var R=0;R<=d;R++)de[R]||(de[R]={});(de[d].vx!=P||de[d].vy!=x||de[d].el!==h)&&(de[d].el=h,de[d].vx=P,de[d].vy=x,clearInterval(de[d].pid),(P!=0||x!=0)&&(c=!0,de[d].pid=setInterval(function(){n&&this.layer===0&&j.active._onTouchMove(ho);var N=de[this.layer].vy?de[this.layer].vy*a:0,D=de[this.layer].vx?de[this.layer].vx*a:0;typeof u=="function"&&u.call(j.dragged.parentNode[Te],D,N,e,ho,de[this.layer].el)!=="continue"||im(de[this.layer].el,D,N)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==l&&(f=Et(f,!1)));Za=c}},30),gm=function(t){var r=t.originalEvent,n=t.putSortable,i=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(r){var c=n||o;a();var u=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,d=document.elementFromPoint(u.clientX,u.clientY);l(),c&&!c.el.contains(d)&&(s("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function rl(){}rl.prototype={startIndex:null,dragStart:function(t){var r=t.oldDraggableIndex;this.startIndex=r},onSpill:function(t){var r=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=Tr(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(r,i):this.sortable.el.appendChild(r),this.sortable.animateAll(),n&&n.animateAll()},drop:gm},ut(rl,{pluginName:"revertOnSpill"});function nl(){}nl.prototype={onSpill:function(t){var r=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),n.animateAll()},drop:gm},ut(nl,{pluginName:"removeOnSpill"}),j.mount(new Ex),j.mount(nl,rl);var _x=class{constructor(){k(this,"_items",new Map)}gc(){for(const[e,t]of[...this._items])e.isConnected||(this._items.delete(e),t.destroy())}get(e){return this._items.get(e)}create(e,t){const r=j.create(e,t);return this._items.set(e,r),r}entries(){return[...this._items]}},wt=new _x,Sx=Number.MAX_VALUE,wx=0;function bm(e){return typeof e=="object"?e.name:e}function Cx(e){wt.gc();const t=document.querySelectorAll("[em=group]");j.prototype._emulateDragOver=function(){};let r;const n=new $h;let i=0,o=0;const s=f=>{i=f.clientX,o=f.clientY},a=f=>{i=f.clientX,o=f.clientY,n.over(i,o)},l=()=>{e.commit(!0)};window.addEventListener("mousedown",s),window.addEventListener("mouseup",()=>n.end(i,o));function c(f){let h;function g(C,O){let E=null,m=Number.MAX_VALUE;const b=bm(j.active?.options.group);for(const[S,p]of wt.entries())if(bm(p.options.group)===b&&(!f||h&&f(S,h)!==!1)){for(const v of S.children)if(!v.classList.contains("sortable-drag")){const T=v.getBoundingClientRect(),w=C<T.left?T.left-C:C>T.right?C-T.right:0,P=O<T.top?T.top-O:O>T.bottom?O-T.bottom:0;if(w<Sx||P<wx){const x=Math.sqrt(w*w+P*P);x<m?(E=[p,v],m=x):x===m&&E[1].contains(v)&&(E=[p,v])}}}return E}function y(C){const O="TouchEvent"in window&&C instanceof TouchEvent?C.touches[0]:C,E=g(O.clientX,O.clientY);if(E){const[S,p]=E,v=p.getBoundingClientRect();var m={clientX:v.left+v.width/2,clientY:O.clientY};for(var b in C)C.hasOwnProperty(b)&&(m[b]=C[b]);m.target=p,m.rootEl=p.parentNode,m.preventDefault=void 0,m.stopPropagation=void 0,S._onDragOver(m)}}return{onStart:C=>{h=C.item,e.beginTextUpdate(),window.addEventListener("mousemove",y),window.addEventListener("touchmove",y),n.start(i,o)?(window.addEventListener("mousemove",a),r&&(r.dispose(),r=void 0)):C.preventDefault()},onEnd:C=>{window.removeEventListener("mousemove",y),window.removeEventListener("touchmove",y),C.from===C.to?n.end(i,o):n.drop(i,o),window.removeEventListener("mousemove",a),e.endTextUpdate(),r&&(r.dispose(),r=void 0),h=void 0}}}if(t.length)for(const f of t){const h=f.parentElement;h&&!wt.get(h)&&wt.create(h,{forceFallback:!0,group:"groups-sorting",handle:`.of-group .${ni.drag}`,...c(),onMove:l})}const u=[...document.querySelectorAll("[em=block]")],d=[...document.querySelectorAll("[em=atom]")].map(f=>f.parentElement);for(const f of u){const h=f.querySelectorAll("td");for(const g of h)!g.innerHTML&&!g.hasAttribute("height")&&[...g.parentElement?.children||[]].indexOf(g)%2===0&&d.push(g)}if(d.length){const f=new Set;for(const h of d)h&&!f.has(h)&&(f.add(h),wt.get(h)||wt.create(h,{forceFallback:!0,group:"atoms-sorting",handle:`.of-atom .${ni.drag}`,...c((g,y)=>{if(y.tagName==="TR"){if(g.tagName!=="TABLE"&&g.tagName!=="TBODY")return!1}else if(y.tagName==="TD"){if(g.tagName!=="TR")return!1}else if(y.tagName==="TABLE"){const A=e.getContext(g);if(A&&Qe(A)&&A.tagName==="AMP-ACCORDION"&&g.tagName==="DIV"&&[...A.querySelectorAll("section > div")].indexOf(g)>=0||e.isInExternal(g)&&g.tagName==="DIV")return!0;if(g.tagName!=="TD")return!1}}),onMove:l,onSort:function(){h.innerHTML.trim()===""&&(h.innerHTML="")}}))}if(u.length){const f=new Set;for(const h of u){const g=h.parentElement;g&&!f.has(g)&&(f.add(g),wt.get(g)||wt.create(g,{forceFallback:!0,group:"blocks-sorting",handle:`.of-block .${ni.drag}`,...c(),onMove:l}))}}}function ym(){X.send({operation:"sandbox_resized"})}function Ax(e,t){const r=new Z,n=0;let i=0;r.addDisposable(t.beforeSave(()=>{i&&(clearTimeout(i),i=0)}));function o(){i||(i=setTimeout(()=>{ym(),i=0},n))}return r.addDisposable(e.onChange(s=>{const a=s.flatMap(function(l){return l.added.flatMap(c=>{if(Qe(c))return pE(c)?c:[...c.querySelectorAll("img")]})}).filter(l=>!!l).map(l=>l.complete?Promise.resolve():new Promise((c,u)=>{l.addEventListener("load",c),l.addEventListener("error",c)}));a.length&&Promise.all(a).then(o)})),window.addEventListener("resize",o),r.addDispose(()=>window.removeEventListener("resize",o)),r}function il(){X.send(me.RELOAD),window.location.reload()}function Tx(e){const t=new Z;function r(){const i=new Set;for(const o of document.querySelectorAll("script"))o instanceof HTMLScriptElement&&wh(o)||e.getOuterHtml(o)&&(o.src||o.innerHTML).trim()&&i.add((o.src||o.innerHTML).trim());return i}let n=r();return t.addDisposable(X.addListener(me.RELOAD,il)),t.addDisposable(e.onChange(()=>{let i=r();for(const o of n)i.has(o)||il();n=i})),t}function kx(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function On(e){let t=e.head;if(!t){t=e.createElement("head");const r=kx(e);r.insertBefore(t,r.firstChild)}return t}function Lx(e){const t=Object.create(null),r=e.getAttributeNames();for(const n of r)t[n]=e.getAttribute(n);return t}function Ox(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}function xx(e){const t=On(e);if(!e.querySelector("style[amp4email-boilerplate]")){const r=e.createElement("style");r.setAttribute("amp4email-boilerplate",""),r.innerHTML="body{visibility:hidden}",t.prepend(r)}}var vm="amp-custom";function Px(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}function Em(e,t,r){for(const n of t)if(Xr.isStyleRule(n)){const i=n.selectorText.split(/\+>~/).flatMap(o=>o.trim().split(" "));if(i.length===1&&i[0].trim().startsWith(".em-")){for(const o of n.style)if(n.style.getPropertyPriority(o)==="important"){for(const s of e.querySelectorAll(n.selectorText))if(Es(s)){const a=s.style;for(const l of[...a])if(l.startsWith(o)){const c=r(l,a.getPropertyValue(l)),u=s.getAttribute("class");s.setAttribute("class",u?`${c} ${u}`:c),a.removeProperty(l)}}}}}else Xr.isMediaRule(n)&&Em(e,n.cssRules,r)}function _m(e,t){const r=t.sheet;if(r){const o=new Set;Em(e,r.cssRules,(s,a)=>{const l=Px(s,a),c=[...r.cssRules],u=`.${l} { ${s}: ${a} }`;return!c.find(d=>Xr.isStyleRule(d)&&d.selectorText===`.${l}`)&&!o.has(u)&&(o.add(u),t.innerHTML=`
71
+ .${ec(o)} { ${u} }`),setTimeout(()=>{bn({elem:document.head},t),Ji(t)},0)}function UO(e,t){const r=t.toLowerCase();return document.querySelector(`[class*="em-font-${t}-"], [class*="em-font-${r}-"]`)?!0:(e.textContent?.toLowerCase()??"").includes(`.em-font-${r}-`)}function Ji(e){const t=document.querySelector('style[em="styles"]');if(!t?.sheet)return;let r=!1;const n=[],i=Array.from(t.sheet.cssRules);for(let o=i.length-1;o>=0;o-=1){const s=i[o];if(s instanceof CSSFontFaceRule){const a=s.style.getPropertyValue("font-family").replace(/['"]/g,"").trim();UO(t,a.replace(/\s/g,""))||(t.sheet.deleteRule(o),r=!0,n.push(a))}}r&&Bt("iframe: clearProjectFontFaces removed stale @font-face",{removedFamilies:n}),r&&e&&e(!1)}function bn(e,t){let r=!1;e.elem.querySelectorAll("link[em-class]").forEach(n=>{const i=n.getAttribute("em-class");i&&!document.querySelector("."+i)&&(r=!0,n.remove())}),r&&t&&t(!1)}function ja(e,t,r){t[0]==="Safe Fonts"?(e.style.fontFamily=t[1],bn({elem:document.head},r),Ji(r)):t[0]==="Google Fonts"&&(t[1]==="Sans Serif"?e.style.fontFamily="Helvetica, Arial, sans-serif":t[1]==="Serif"?e.style.fontFamily='"Times New Roman", Times, serif':t[1]==="Project Fonts"&&Vh(e,t[2]),e.classList.remove(...[...e.classList].filter(n=>n.startsWith("em-font"))),e.classList.add(Qn(t[2],t[3])),Wh({fontFamilyArray:t},r))}function Uh(e,t){if(t){const r=e.querySelector("b");r?r.replaceWith(...r.childNodes):e.querySelector("strong")||(e.innerHTML="<strong>"+e.innerHTML+"</strong>")}else{const r=e.querySelector("strong"),n=e.querySelector("b");r?r.replaceWith(...r.childNodes):n&&n.replaceWith(...n.childNodes)}if(e.style.fontWeight){const r=e.getAttribute("style")?.replace(/(\s+)?font-weight:(\s+)?(bold|[0-9]*)(;)?/,"")||"";e.setAttribute("style",r)}}function qh(e,t){if(t){const r=e.querySelector("i");r?r.replaceWith(...r.childNodes):e.querySelector("em")||(e.innerHTML="<em>"+e.innerHTML+"</em>")}else{const r=e.querySelector("em"),n=e.querySelector("i");r?r.replaceWith(...r.childNodes):n&&n.replaceWith(...n.childNodes)}if(e.style.fontStyle){const r=e.getAttribute("style")?.replace(/(\s+)?font-style:(\s+)?.*?;/,"")||"";e.setAttribute("style",r)}}function Gh(e,t){let r;t>0?r=e.style.letterSpacing?e.getAttribute("style").replace(/letter-spacing:(\s+)?.*?px/,`letter-spacing: ${t}px`):e.getAttribute("style")+` letter-spacing: ${t}px;`:r=e.getAttribute("style")?.replace(/(\s+)?letter-spacing:(\s+)?.*?px(;)?/,"")||"",e.setAttribute("style",r)}function yn(e,t){e&&e.tagName==="TABLE"&&(e.classList.contains("em-vindent-table")||e.querySelector("td")?.innerHTML==="")&&e.querySelector("td")?.setAttribute("height",String(t))}function qO(e,t){const r=es(),n=e.html.substring(0,3)==="<tr"?document.createElement("table"):document.createElement("div");return n.replaceChildren(...xe(e.html)),n.querySelectorAll('[em="atom"] div[style*="font-family"]').forEach(i=>{const o=i;if(!o.style.display&&parseFloat(o.style.fontSize)<=20){const s=r.text?.fontFamily||[],a=Zi((o.getAttribute("style")||"").replace(/font-size:(\s+)?.*?px/,`font-size: ${r.text?.fontSize||16}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${r.text?.lineHeight||24}px`),r.text?.color||"#000000");o.setAttribute("style",a),ja(o,s,t);const l=o.closest('[em="atom"] > tr > td');l?.style.paddingBottom?l.style.paddingBottom=(r.text?.paddingBottom||0)+"px":yn(o.nextElementSibling??o.closest("table")?.nextElementSibling,r.text?.paddingBottom||0)}else if(!o.style.display&&parseFloat(o.style.fontSize)>20){const s=r.headings?.fontFamily||[],a=Zi((o.getAttribute("style")||"").replace(/font-size:(\s+)?.*?px/,`font-size: ${r.headings?.fontSize||24}px`).replace(/line-height:(\s+)?.*?px/,`line-height: ${r.headings?.lineHeight||32}px`),r.headings?.color||"#000000");o.setAttribute("style",a),ja(o,s,t),Gh(o,r.headings?.letterSpacing||0),Uh(o,r.headings?.bold||!1),qh(o,r.headings?.italic||!1);const l=o.closest('[em="atom"] > tr > td');l?.style.paddingTop?l.style.paddingTop=(r.headings?.paddingTop||0)+"px":yn(o.previousElementSibling,r.headings?.paddingTop||0),l?.style.paddingBottom?l.style.paddingBottom=(r.headings?.paddingBottom||0)+"px":yn(o.nextElementSibling,r.headings?.paddingBottom||0)}}),n.querySelectorAll('[em="atom"] a[style*="color"]').forEach(i=>{const o=i;if(o.style.display){if(o.style.display==="block"){const s=r.buttons?.fontFamily||[],a=Zi((o.getAttribute("style")||"").replace(/font-size:(\s+)?.*?px/,`font-size: ${r.buttons?.fontSize||16}px`),r.buttons?.color||"#FFFFFF");o.setAttribute("style",a),ja(o,s,t);const l=o.closest("td"),c=!!l&&!!Zt(l)&&!Zt(o),u=c?o:l,d=r.buttons?.backgroundColor||"#1677FF";u&&(u.style.backgroundColor=d,u.tagName==="TD"&&u.setAttribute("bgcolor",d)),l&&l.setAttribute("align",r.buttons?.textAlign||"center"),Gh(o,r.buttons?.letterSpacing||0),Uh(o,r.buttons?.bold||!1),qh(o,r.buttons?.italic||!1);const f=o.closest('[em="atom"] > tr > td'),h=o.closest("table");f?.style.paddingTop?f.style.paddingTop=(r.buttons?.marginTop||0)+"px":h?.previousElementSibling&&yn(h.previousElementSibling,r.buttons?.marginTop||0),f?.style.paddingBottom?f.style.paddingBottom=(r.buttons?.marginBottom||0)+"px":h?.nextElementSibling&&yn(h.nextElementSibling,r.buttons?.marginBottom||0);const g=r.buttons?.padding||{};g.all&&(o.style.padding=g.all+"px"),g.top&&(o.style.paddingTop=g.top+"px"),g.right&&(o.style.paddingRight=g.right+"px"),g.bottom&&(o.style.paddingBottom=g.bottom+"px"),g.left&&(o.style.paddingLeft=g.left+"px"),u&&(r.buttons?.border&&ic({settings:{border:r.buttons.border},elem:u}),r.buttons?.borderRadius&&oc({settings:{borderRadius:r.buttons.borderRadius},elem:u})),c&&wc(o,{backgroundColor:d})}}else{const s=Zi(o.getAttribute("style"),r.links?.color||"#0000FF");o.setAttribute("style",s);let a;r.links?.underline?a=o.style.textDecoration?o.getAttribute("style").replace(/(\s+)?text-decoration:(\s+)?.*?;/,"text-decoration: underline;"):o.getAttribute("style")+" text-decoration: underline;":a=o.style.textDecoration?o.getAttribute("style").replace(/(\s+)?text-decoration:(\s+)?.*?;/,"text-decoration: none;"):o.getAttribute("style")+" text-decoration: none;",o.setAttribute("style",a)}}),n.querySelector('[em="block"]')&&r.block?.backgroundColor&&n.querySelectorAll('[em="block"]').forEach(i=>{i.querySelectorAll(":scope > td").forEach(o=>{const s=o;s.setAttribute("bgcolor",r.block.backgroundColor),s.style.backgroundColor=r.block.backgroundColor})}),n.tagName==="DIV"?Se(n):Se(n.querySelector("tbody")||n)}function GO(e){const t=es(),r=e.html.substring(0,3)==="<tr"?document.createElement("table"):document.createElement("div");r.replaceChildren(...xe(e.html)),r.querySelector('[em="block"]')&&t.block?.backgroundColor&&r.querySelectorAll('[em="block"]').forEach(i=>{i.querySelectorAll(":scope > td").forEach(o=>{const s=o;s.setAttribute("bgcolor",t.block.backgroundColor),s.style.backgroundColor=t.block.backgroundColor})});const n=t.block?.padding;return zO(n)&&r.querySelectorAll('[em="block"] > td').forEach(i=>{VO(i,n)}),r.tagName==="DIV"?Se(r):Se(r.querySelector("tbody")||r)}function XO(e,t,r){return(t=ZO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ut(){return ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ut.apply(null,arguments)}function Xh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xh(Object(r),!0).forEach(function(n){XO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YO(e,t){if(e==null)return{};var r,n,i=KO(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function KO(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function QO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZO(e){var t=QO(e,"string");return typeof t=="symbol"?t:t+""}function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}var JO="1.15.7";function dt(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var ft=dt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),vn=dt(/Edge/i),Yh=dt(/firefox/i),En=dt(/safari/i)&&!dt(/chrome/i)&&!dt(/android/i),Ha=dt(/iP(ad|od|hone)/i),Kh=dt(/chrome/i)&&dt(/android/i),Qh={capture:!1,passive:!1};function q(e,t,r){e.addEventListener(t,r,!ft&&Qh)}function U(e,t,r){e.removeEventListener(t,r,!ft&&Qh)}function eo(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Zh(e){return e.host&&e!==document&&e.host.nodeType&&e.host!==e?e.host:e.parentNode}function Ue(e,t,r,n){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&eo(e,t):eo(e,t))||n&&e===r)return e;if(e===r)break}while(e=Zh(e))}return null}var Jh=/\s+/g;function Ne(e,t,r){e&&t&&(e.classList?e.classList[r?"add":"remove"](t):e.className=((" "+e.className+" ").replace(Jh," ").replace(" "+t+" "," ")+(r?" "+t:"")).replace(Jh," "))}function $(e,t,r){var n=e&&e.style;if(n){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=r+(typeof r=="string"?"":"px")}}function Ar(e,t){var r="";if(typeof e=="string")r=e;else do{var n=$(e,"transform");n&&n!=="none"&&(r=n+" "+r)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function em(e,t,r){if(e){var n=e.getElementsByTagName(t),i=0,o=n.length;if(r)for(;i<o;i++)r(n[i],i);return n}return[]}function it(){var e=document.scrollingElement;return e||document.documentElement}function ue(e,t,r,n,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,a,l,c,u,d;if(e!==window&&e.parentNode&&e!==it()?(o=e.getBoundingClientRect(),s=o.top,a=o.left,l=o.bottom,c=o.right,u=o.height,d=o.width):(s=0,a=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||r)&&e!==window&&(i=i||e.parentNode,!ft))do if(i&&i.getBoundingClientRect&&($(i,"transform")!=="none"||r&&$(i,"position")!=="static")){var f=i.getBoundingClientRect();s-=f.top+parseInt($(i,"border-top-width")),a-=f.left+parseInt($(i,"border-left-width")),l=s+o.height,c=a+o.width;break}while(i=i.parentNode);if(n&&e!==window){var h=Ar(i||e),g=h&&h.a,y=h&&h.d;h&&(s/=y,a/=g,d/=g,u/=y,l=s+u,c=a+d)}return{top:s,left:a,bottom:l,right:c,width:d,height:u}}}function tm(e,t,r){for(var n=Et(e,!0),i=ue(e)[t];n;){var o=ue(n)[r],s=void 0;if(r==="top"||r==="left"?s=i>=o:s=i<=o,!s)return n;if(n===it())break;n=Et(n,!1)}return!1}function Tr(e,t,r,n){for(var i=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==j.ghost&&(n||s[o]!==j.dragged)&&Ue(s[o],r.draggable,e,!1)){if(i===t)return s[o];i++}o++}return null}function za(e,t){for(var r=e.lastElementChild;r&&(r===j.ghost||$(r,"display")==="none"||t&&!eo(r,t));)r=r.previousElementSibling;return r||null}function Fe(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==j.clone&&(!t||eo(e,t))&&r++;return r}function rm(e){var t=0,r=0,n=it();if(e)do{var i=Ar(e),o=i.a,s=i.d;t+=e.scrollLeft*o,r+=e.scrollTop*s}while(e!==n&&(e=e.parentNode));return[t,r]}function ex(e,t){for(var r in e)if(e.hasOwnProperty(r)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[r][n])return Number(r)}return-1}function Et(e,t){if(!e||!e.getBoundingClientRect)return it();var r=e,n=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var i=$(r);if(r.clientWidth<r.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return it();if(n||t)return r;n=!0}}while(r=r.parentNode);return it()}function tx(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function Va(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var _n;function nm(e,t){return function(){if(!_n){var r=arguments,n=this;r.length===1?e.call(n,r[0]):e.apply(n,r),_n=setTimeout(function(){_n=void 0},t)}}}function rx(){clearTimeout(_n),_n=void 0}function im(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function om(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}function sm(e,t,r){var n={};return Array.from(e.children).forEach(function(i){var o,s,a,l;if(!(!Ue(i,t.draggable,e,!1)||i.animated||i===r)){var c=ue(i);n.left=Math.min((o=n.left)!==null&&o!==void 0?o:1/0,c.left),n.top=Math.min((s=n.top)!==null&&s!==void 0?s:1/0,c.top),n.right=Math.max((a=n.right)!==null&&a!==void 0?a:-1/0,c.right),n.bottom=Math.max((l=n.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Te="Sortable"+new Date().getTime();function nx(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(n){if(!($(n,"display")==="none"||n===j.ghost)){e.push({target:n,rect:ue(n)});var i=nt({},e[e.length-1].rect);if(n.thisAnimationDuration){var o=Ar(n,!0);o&&(i.top-=o.f,i.left-=o.e)}n.fromRect=i}})},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(ex(e,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var o=!1,s=0;e.forEach(function(a){var l=0,c=a.target,u=c.fromRect,d=ue(c),f=c.prevFromRect,h=c.prevToRect,g=a.rect,y=Ar(c,!0);y&&(d.top-=y.f,d.left-=y.e),c.toRect=d,c.thisAnimationDuration&&Va(f,d)&&!Va(u,d)&&(g.top-d.top)/(g.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(l=ox(g,f,h,i.options)),Va(d,u)||(c.prevFromRect=u,c.prevToRect=d,l||(l=i.options.animation),i.animate(c,g,d,l)),l&&(o=!0,s=Math.max(s,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof n=="function"&&n()},s):typeof n=="function"&&n(),e=[]},animate:function(n,i,o,s){if(s){$(n,"transition",""),$(n,"transform","");var a=Ar(this.el),l=a&&a.a,c=a&&a.d,u=(i.left-o.left)/(l||1),d=(i.top-o.top)/(c||1);n.animatingX=!!u,n.animatingY=!!d,$(n,"transform","translate3d("+u+"px,"+d+"px,0)"),this.forRepaintDummy=ix(n),$(n,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),$(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){$(n,"transition",""),$(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},s)}}}}function ix(e){return e.offsetWidth}function ox(e,t,r,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*n.animation}var kr=[],Wa={initializeByDefault:!0},Sn={mount:function(t){for(var r in Wa)Wa.hasOwnProperty(r)&&!(r in t)&&(t[r]=Wa[r]);kr.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),kr.push(t)},pluginEvent:function(t,r,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var o=t+"Global";kr.forEach(function(s){r[s.pluginName]&&(r[s.pluginName][o]&&r[s.pluginName][o](nt({sortable:r},n)),r.options[s.pluginName]&&r[s.pluginName][t]&&r[s.pluginName][t](nt({sortable:r},n)))})},initializePlugins:function(t,r,n,i){kr.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var c=new a(t,r,t.options);c.sortable=t,c.options=t.options,t[l]=c,ut(n,c.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);typeof s<"u"&&(t.options[o]=s)}},getEventProperties:function(t,r){var n={};return kr.forEach(function(i){typeof i.eventProperties=="function"&&ut(n,i.eventProperties.call(r[i.pluginName],t))}),n},modifyOption:function(t,r,n){var i;return kr.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[r]=="function"&&(i=o.optionListeners[r].call(t[o.pluginName],n))}),i}};function sx(e){var t=e.sortable,r=e.rootEl,n=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;if(t=t||r&&r[Te],!!t){var y,A=t.options,L="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ft&&!vn?y=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(y=document.createEvent("Event"),y.initEvent(n,!0,!0)),y.to=s||r,y.from=a||r,y.item=i||r,y.clone=o,y.oldIndex=l,y.newIndex=c,y.oldDraggableIndex=u,y.newDraggableIndex=d,y.originalEvent=f,y.pullMode=h?h.lastPutMode:void 0;var C=nt(nt({},g),Sn.getEventProperties(n,t));for(var O in C)y[O]=C[O];r&&r.dispatchEvent(y),A[L]&&A[L].call(t,y)}}var ax=["evt"],ke=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,o=YO(n,ax);Sn.pluginEvent.bind(j)(t,r,nt({dragEl:M,parentEl:le,ghostEl:H,rootEl:re,nextEl:Ft,lastDownEl:to,cloneEl:oe,cloneHidden:_t,dragStarted:Cn,putSortable:pe,activeSortable:j.active,originalEvent:i,oldIndex:Lr,oldDraggableIndex:wn,newIndex:Me,newDraggableIndex:St,hideGhostForTarget:hm,unhideGhostForTarget:mm,cloneNowHidden:function(){_t=!0},cloneNowShown:function(){_t=!1},dispatchSortableEvent:function(a){we({sortable:r,name:a,originalEvent:i})}},o))};function we(e){sx(nt({putSortable:pe,cloneEl:oe,targetEl:M,rootEl:re,oldIndex:Lr,oldDraggableIndex:wn,newIndex:Me,newDraggableIndex:St},e))}var M,le,H,re,Ft,to,oe,_t,Lr,Me,wn,St,ro,pe,Or=!1,no=!1,io=[],jt,qe,Ua,qa,am,lm,Cn,xr,An,Tn=!1,oo=!1,so,Ee,Ga=[],Xa=!1,ao=[],lo=typeof document<"u",co=Ha,cm=vn||ft?"cssFloat":"float",lx=lo&&!Kh&&!Ha&&"draggable"in document.createElement("div"),um=(function(){if(lo){if(ft)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),dm=function(t,r){var n=$(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Tr(t,0,r),s=Tr(t,1,r),a=o&&$(o),l=s&&$(s),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ue(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ue(s).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=i&&n[cm]==="none"||s&&n[cm]==="none"&&c+u>i)?"vertical":"horizontal"},cx=function(t,r,n){var i=n?t.left:t.top,o=n?t.right:t.bottom,s=n?t.width:t.height,a=n?r.left:r.top,l=n?r.right:r.bottom,c=n?r.width:r.height;return i===a||o===l||i+s/2===a+c/2},ux=function(t,r){var n;return io.some(function(i){var o=i[Te].options.emptyInsertThreshold;if(!(!o||za(i))){var s=ue(i),a=t>=s.left-o&&t<=s.right+o,l=r>=s.top-o&&r<=s.bottom+o;if(a&&l)return n=i}}),n},fm=function(t){function r(o,s){return function(a,l,c,u){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(s||d))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return r(o(a,l,c,u),s)(a,l,c,u);var f=(s?a:l).options.group.name;return o===!0||typeof o=="string"&&o===f||o.join&&o.indexOf(f)>-1}}var n={},i=t.group;(!i||$a(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=r(i.pull,!0),n.checkPut=r(i.put),n.revertClone=i.revertClone,t.group=n},hm=function(){!um&&H&&$(H,"display","none")},mm=function(){!um&&H&&$(H,"display","")};lo&&!Kh&&document.addEventListener("click",function(e){if(no)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),no=!1,!1},!0);var $t=function(t){if(M){t=t.touches?t.touches[0]:t;var r=ux(t.clientX,t.clientY);if(r){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=r,n.preventDefault=void 0,n.stopPropagation=void 0,r[Te]._onDragOver(n)}}},dx=function(t){M&&M.parentNode[Te]._isOutsideThisEl(t.target)};function j(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=ut({},t),e[Te]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return dm(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:j.supportPointer!==!1&&"PointerEvent"in window&&(!En||Ha),emptyInsertThreshold:5};Sn.initializePlugins(this,e,r);for(var n in r)!(n in t)&&(t[n]=r[n]);fm(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:lx,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?q(e,"pointerdown",this._onTapStart):(q(e,"mousedown",this._onTapStart),q(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(q(e,"dragover",this),q(e,"dragenter",this)),io.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ut(this,nx())}j.prototype={constructor:j,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(xr=null)},_getDirection:function(t,r){return typeof this.options.direction=="function"?this.options.direction.call(this,t,r,M):this.options.direction},_onTapStart:function(t){if(t.cancelable){var r=this,n=this.el,i=this.options,o=i.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,u=i.filter;if(vx(n),!M&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&En&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Ue(l,i.draggable,n,!1),!(l&&l.animated)&&to!==l)){if(Lr=Fe(l),wn=Fe(l,i.draggable),typeof u=="function"){if(u.call(this,t,l,this)){we({sortable:r,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),ke("filter",r,{evt:t}),o&&t.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=Ue(c,d.trim(),n,!1),d)return we({sortable:r,rootEl:d,name:"filter",targetEl:l,fromEl:n,toEl:n}),ke("filter",r,{evt:t}),!0}),u)){o&&t.preventDefault();return}i.handle&&!Ue(c,i.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,r,n){var i=this,o=i.el,s=i.options,a=o.ownerDocument,l;if(n&&!M&&n.parentNode===o){var c=ue(n);if(re=o,M=n,le=M.parentNode,Ft=M.nextSibling,to=n,ro=s.group,j.dragged=M,jt={target:M,clientX:(r||t).clientX,clientY:(r||t).clientY},am=jt.clientX-c.left,lm=jt.clientY-c.top,this._lastX=(r||t).clientX,this._lastY=(r||t).clientY,M.style["will-change"]="all",l=function(){if(ke("delayEnded",i,{evt:t}),j.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Yh&&i.nativeDraggable&&(M.draggable=!0),i._triggerDragStart(t,r),we({sortable:i,name:"choose",originalEvent:t}),Ne(M,s.chosenClass,!0)},s.ignore.split(",").forEach(function(u){em(M,u.trim(),Ya)}),q(a,"dragover",$t),q(a,"mousemove",$t),q(a,"touchmove",$t),s.supportPointer?(q(a,"pointerup",i._onDrop),!this.nativeDraggable&&q(a,"pointercancel",i._onDrop)):(q(a,"mouseup",i._onDrop),q(a,"touchend",i._onDrop),q(a,"touchcancel",i._onDrop)),Yh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,M.draggable=!0),ke("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(vn||ft))){if(j.eventCanceled){this._onDrop();return}s.supportPointer?(q(a,"pointerup",i._disableDelayedDrag),q(a,"pointercancel",i._disableDelayedDrag)):(q(a,"mouseup",i._disableDelayedDrag),q(a,"touchend",i._disableDelayedDrag),q(a,"touchcancel",i._disableDelayedDrag)),q(a,"mousemove",i._delayedDragTouchMoveHandler),q(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&q(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var r=t.touches?t.touches[0]:t;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){M&&Ya(M),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;U(t,"mouseup",this._disableDelayedDrag),U(t,"touchend",this._disableDelayedDrag),U(t,"touchcancel",this._disableDelayedDrag),U(t,"pointerup",this._disableDelayedDrag),U(t,"pointercancel",this._disableDelayedDrag),U(t,"mousemove",this._delayedDragTouchMoveHandler),U(t,"touchmove",this._delayedDragTouchMoveHandler),U(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,r){r=r||t.pointerType=="touch"&&t,!this.nativeDraggable||r?this.options.supportPointer?q(document,"pointermove",this._onTouchMove):r?q(document,"touchmove",this._onTouchMove):q(document,"mousemove",this._onTouchMove):(q(M,"dragend",this),q(re,"dragstart",this._onDragStart));try{document.selection?fo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,r){if(Or=!1,re&&M){ke("dragStarted",this,{evt:r}),this.nativeDraggable&&q(document,"dragover",dx);var n=this.options;!t&&Ne(M,n.dragClass,!1),Ne(M,n.ghostClass,!0),j.active=this,t&&this._appendGhost(),we({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(qe){this._lastX=qe.clientX,this._lastY=qe.clientY,hm();for(var t=document.elementFromPoint(qe.clientX,qe.clientY),r=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(qe.clientX,qe.clientY),t!==r);)r=t;if(M.parentNode[Te]._isOutsideThisEl(t),r)do{if(r[Te]){var n=void 0;if(n=r[Te]._onDragOver({clientX:qe.clientX,clientY:qe.clientY,target:t,rootEl:r}),n&&!this.options.dragoverBubble)break}t=r}while(r=Zh(r));mm()}},_onTouchMove:function(t){if(jt){var r=this.options,n=r.fallbackTolerance,i=r.fallbackOffset,o=t.touches?t.touches[0]:t,s=H&&Ar(H,!0),a=H&&s&&s.a,l=H&&s&&s.d,c=co&&Ee&&rm(Ee),u=(o.clientX-jt.clientX+i.x)/(a||1)+(c?c[0]-Ga[0]:0)/(a||1),d=(o.clientY-jt.clientY+i.y)/(l||1)+(c?c[1]-Ga[1]:0)/(l||1);if(!j.active&&!Or){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(H){s?(s.e+=u-(Ua||0),s.f+=d-(qa||0)):s={a:1,b:0,c:0,d:1,e:u,f:d};var f="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");$(H,"webkitTransform",f),$(H,"mozTransform",f),$(H,"msTransform",f),$(H,"transform",f),Ua=u,qa=d,qe=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!H){var t=this.options.fallbackOnBody?document.body:re,r=ue(M,!0,co,!0,t),n=this.options;if(co){for(Ee=t;$(Ee,"position")==="static"&&$(Ee,"transform")==="none"&&Ee!==document;)Ee=Ee.parentNode;Ee!==document.body&&Ee!==document.documentElement?(Ee===document&&(Ee=it()),r.top+=Ee.scrollTop,r.left+=Ee.scrollLeft):Ee=it(),Ga=rm(Ee)}H=M.cloneNode(!0),Ne(H,n.ghostClass,!1),Ne(H,n.fallbackClass,!0),Ne(H,n.dragClass,!0),$(H,"transition",""),$(H,"transform",""),$(H,"box-sizing","border-box"),$(H,"margin",0),$(H,"top",r.top),$(H,"left",r.left),$(H,"width",r.width),$(H,"height",r.height),$(H,"opacity","0.8"),$(H,"position",co?"absolute":"fixed"),$(H,"zIndex","100000"),$(H,"pointerEvents","none"),j.ghost=H,t.appendChild(H),$(H,"transform-origin",am/parseInt(H.style.width)*100+"% "+lm/parseInt(H.style.height)*100+"%")}},_onDragStart:function(t,r){var n=this,i=t.dataTransfer,o=n.options;if(ke("dragStart",this,{evt:t}),j.eventCanceled){this._onDrop();return}ke("setupClone",this),j.eventCanceled||(oe=om(M),oe.removeAttribute("id"),oe.draggable=!1,oe.style["will-change"]="",this._hideClone(),Ne(oe,this.options.chosenClass,!1),j.clone=oe),n.cloneId=fo(function(){ke("clone",n),!j.eventCanceled&&(n.options.removeCloneOnHide||re.insertBefore(oe,M),n._hideClone(),we({sortable:n,name:"clone"}))}),!r&&Ne(M,o.dragClass,!0),r?(no=!0,n._loopId=setInterval(n._emulateDragOver,50)):(U(document,"mouseup",n._onDrop),U(document,"touchend",n._onDrop),U(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,M)),q(document,"drop",n),$(M,"transform","translateZ(0)")),Or=!0,n._dragStartId=fo(n._dragStarted.bind(n,r,t)),q(document,"selectstart",n),Cn=!0,window.getSelection().removeAllRanges(),En&&$(document.body,"user-select","none")},_onDragOver:function(t){var r=this.el,n=t.target,i,o,s,a=this.options,l=a.group,c=j.active,u=ro===l,d=a.sort,f=pe||c,h,g=this,y=!1;if(Xa)return;function A(je,ht){ke(je,g,nt({evt:t,isOwner:u,axis:h?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:d,fromSortable:f,target:n,completed:C,onMove:function(ot,Le){return uo(re,r,M,i,ot,ue(ot),t,Le)},changed:O},ht))}function L(){A("dragOverAnimationCapture"),g.captureAnimationState(),g!==f&&f.captureAnimationState()}function C(je){return A("dragOverCompleted",{insertion:je}),je&&(u?c._hideClone():c._showClone(g),g!==f&&(Ne(M,pe?pe.options.ghostClass:c.options.ghostClass,!1),Ne(M,a.ghostClass,!0)),pe!==g&&g!==j.active?pe=g:g===j.active&&pe&&(pe=null),f===g&&(g._ignoreWhileAnimating=n),g.animateAll(function(){A("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(n===M&&!M.animated||n===r&&!n.animated)&&(xr=null),!a.dragoverBubble&&!t.rootEl&&n!==document&&(M.parentNode[Te]._isOutsideThisEl(t.target),!je&&$t(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function O(){Me=Fe(M),St=Fe(M,a.draggable),we({sortable:g,name:"change",toEl:r,newIndex:Me,newDraggableIndex:St,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=Ue(n,a.draggable,r,!0),A("dragOver"),j.eventCanceled)return y;if(M.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||g._ignoreWhileAnimating===n)return C(!1);if(no=!1,c&&!a.disabled&&(u?d||(s=le!==re):pe===this||(this.lastPutMode=ro.checkPull(this,c,M,t))&&l.checkPut(this,c,M,t))){if(h=this._getDirection(t,n)==="vertical",i=ue(M),A("dragOverValid"),j.eventCanceled)return y;if(s)return le=re,L(),this._hideClone(),A("revert"),j.eventCanceled||(Ft?re.insertBefore(M,Ft):re.appendChild(M)),C(!0);var E=za(r,a.draggable);if(!E||px(t,h,this)&&!E.animated){if(E===M)return C(!1);if(E&&r===t.target&&(n=E),n&&(o=ue(n)),uo(re,r,M,i,n,o,t,!!n)!==!1)return L(),E&&E.nextSibling?r.insertBefore(M,E.nextSibling):r.appendChild(M),le=r,O(),C(!0)}else if(E&&mx(t,h,this)){var m=Tr(r,0,a,!0);if(m===M)return C(!1);if(n=m,o=ue(n),uo(re,r,M,i,n,o,t,!1)!==!1)return L(),r.insertBefore(M,m),le=r,O(),C(!0)}else if(n.parentNode===r){o=ue(n);var b=0,S,p=M.parentNode!==r,v=!cx(M.animated&&M.toRect||i,n.animated&&n.toRect||o,h),T=h?"top":"left",w=tm(n,"top","top")||tm(M,"top","top"),P=w?w.scrollTop:void 0;xr!==n&&(S=o[T],Tn=!1,oo=!v&&a.invertSwap||p),b=gx(t,n,o,h,v?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,oo,xr===n);var x;if(b!==0){var R=Fe(M);do R-=b,x=le.children[R];while(x&&($(x,"display")==="none"||x===H))}if(b===0||x===n)return C(!1);xr=n,An=b;var N=n.nextElementSibling,D=!1;D=b===1;var ne=uo(re,r,M,i,n,o,t,D);if(ne!==!1)return(ne===1||ne===-1)&&(D=ne===1),Xa=!0,setTimeout(hx,30),L(),D&&!N?r.appendChild(M):n.parentNode.insertBefore(M,D?N:n),w&&im(w,0,P-w.scrollTop),le=M.parentNode,S!==void 0&&!oo&&(so=Math.abs(S-ue(n)[T])),O(),C(!0)}if(r.contains(M))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){U(document,"mousemove",this._onTouchMove),U(document,"touchmove",this._onTouchMove),U(document,"pointermove",this._onTouchMove),U(document,"dragover",$t),U(document,"mousemove",$t),U(document,"touchmove",$t)},_offUpEvents:function(){var t=this.el.ownerDocument;U(t,"mouseup",this._onDrop),U(t,"touchend",this._onDrop),U(t,"pointerup",this._onDrop),U(t,"pointercancel",this._onDrop),U(t,"touchcancel",this._onDrop),U(document,"selectstart",this)},_onDrop:function(t){var r=this.el,n=this.options;if(Me=Fe(M),St=Fe(M,n.draggable),ke("drop",this,{evt:t}),le=M&&M.parentNode,Me=Fe(M),St=Fe(M,n.draggable),j.eventCanceled){this._nulling();return}Or=!1,oo=!1,Tn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ka(this.cloneId),Ka(this._dragStartId),this.nativeDraggable&&(U(document,"drop",this),U(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),En&&$(document.body,"user-select",""),$(M,"transform",""),t&&(Cn&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),H&&H.parentNode&&H.parentNode.removeChild(H),(re===le||pe&&pe.lastPutMode!=="clone")&&oe&&oe.parentNode&&oe.parentNode.removeChild(oe),M&&(this.nativeDraggable&&U(M,"dragend",this),Ya(M),M.style["will-change"]="",Cn&&!Or&&Ne(M,pe?pe.options.ghostClass:this.options.ghostClass,!1),Ne(M,this.options.chosenClass,!1),we({sortable:this,name:"unchoose",toEl:le,newIndex:null,newDraggableIndex:null,originalEvent:t}),re!==le?(Me>=0&&(we({rootEl:le,name:"add",toEl:le,fromEl:re,originalEvent:t}),we({sortable:this,name:"remove",toEl:le,originalEvent:t}),we({rootEl:le,name:"sort",toEl:le,fromEl:re,originalEvent:t}),we({sortable:this,name:"sort",toEl:le,originalEvent:t})),pe&&pe.save()):Me!==Lr&&Me>=0&&(we({sortable:this,name:"update",toEl:le,originalEvent:t}),we({sortable:this,name:"sort",toEl:le,originalEvent:t})),j.active&&((Me==null||Me===-1)&&(Me=Lr,St=wn),we({sortable:this,name:"end",toEl:le,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){ke("nulling",this),re=M=le=H=Ft=oe=to=_t=jt=qe=Cn=Me=St=Lr=wn=xr=An=pe=ro=j.dragged=j.ghost=j.clone=j.active=null;var t=this.el;ao.forEach(function(r){t.contains(r)&&(r.checked=!0)}),ao.length=Ua=qa=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":M&&(this._onDragOver(t),fx(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t=[],r,n=this.el.children,i=0,o=n.length,s=this.options;i<o;i++)r=n[i],Ue(r,s.draggable,this.el,!1)&&t.push(r.getAttribute(s.dataIdAttr)||yx(r));return t},sort:function(t,r){var n={},i=this.el;this.toArray().forEach(function(o,s){var a=i.children[s];Ue(a,this.options.draggable,i,!1)&&(n[o]=a)},this),r&&this.captureAnimationState(),t.forEach(function(o){n[o]&&(i.removeChild(n[o]),i.appendChild(n[o]))}),r&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,r){return Ue(t,r||this.options.draggable,this.el,!1)},option:function(t,r){var n=this.options;if(r===void 0)return n[t];var i=Sn.modifyOption(this,t,r);typeof i<"u"?n[t]=i:n[t]=r,t==="group"&&fm(n)},destroy:function(){ke("destroy",this);var t=this.el;t[Te]=null,U(t,"mousedown",this._onTapStart),U(t,"touchstart",this._onTapStart),U(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(U(t,"dragover",this),U(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),io.splice(io.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!_t){if(ke("hideClone",this),j.eventCanceled)return;$(oe,"display","none"),this.options.removeCloneOnHide&&oe.parentNode&&oe.parentNode.removeChild(oe),_t=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(_t){if(ke("showClone",this),j.eventCanceled)return;M.parentNode==re&&!this.options.group.revertClone?re.insertBefore(oe,M):Ft?re.insertBefore(oe,Ft):re.appendChild(oe),this.options.group.revertClone&&this.animate(M,oe),$(oe,"display",""),_t=!1}}};function fx(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function uo(e,t,r,n,i,o,s,a){var l,c=e[Te],u=c.options.onMove,d;return window.CustomEvent&&!ft&&!vn?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=r,l.draggedRect=n,l.related=i||t,l.relatedRect=o||ue(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),u&&(d=u.call(c,l,s)),d}function Ya(e){e.draggable=!1}function hx(){Xa=!1}function mx(e,t,r){var n=ue(Tr(r.el,0,r.options,!0)),i=sm(r.el,r.options,H),o=10;return t?e.clientX<i.left-o||e.clientY<n.top&&e.clientX<n.right:e.clientY<i.top-o||e.clientY<n.bottom&&e.clientX<n.left}function px(e,t,r){var n=ue(za(r.el,r.options.draggable)),i=sm(r.el,r.options,H),o=10;return t?e.clientX>i.right+o||e.clientY>n.bottom&&e.clientX>n.left:e.clientY>i.bottom+o||e.clientX>n.right&&e.clientY>n.top}function gx(e,t,r,n,i,o,s,a){var l=n?e.clientY:e.clientX,c=n?r.height:r.width,u=n?r.top:r.left,d=n?r.bottom:r.right,f=!1;if(!s){if(a&&so<c*i){if(!Tn&&(An===1?l>u+c*o/2:l<d-c*o/2)&&(Tn=!0),Tn)f=!0;else if(An===1?l<u+so:l>d-so)return-An}else if(l>u+c*(1-i)/2&&l<d-c*(1-i)/2)return bx(t)}return f=f||s,f&&(l<u+c*o/2||l>d-c*o/2)?l>u+c/2?1:-1:0}function bx(e){return Fe(M)<Fe(e)?1:-1}function yx(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,n=0;r--;)n+=t.charCodeAt(r);return n.toString(36)}function vx(e){ao.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var n=t[r];n.checked&&ao.push(n)}}function fo(e){return setTimeout(e,0)}function Ka(e){return clearTimeout(e)}lo&&q(document,"touchmove",function(e){(j.active||Or)&&e.cancelable&&e.preventDefault()}),j.utils={on:q,off:U,css:$,find:em,is:function(t,r){return!!Ue(t,r,t,!1)},extend:tx,throttle:nm,closest:Ue,toggleClass:Ne,clone:om,index:Fe,nextTick:fo,cancelNextTick:Ka,detectDirection:dm,getChild:Tr,expando:Te},j.get=function(e){return e[Te]},j.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(j.utils=nt(nt({},j.utils),n.utils)),Sn.mount(n)})},j.create=function(e,t){return new j(e,t)},j.version=JO;var de=[],kn,Qa,Za=!1,Ja,el,ho,Ln;function Ex(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(r){var n=r.originalEvent;this.sortable.nativeDraggable?q(document,"dragover",this._handleAutoScroll):this.options.supportPointer?q(document,"pointermove",this._handleFallbackAutoScroll):n.touches?q(document,"touchmove",this._handleFallbackAutoScroll):q(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var n=r.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?U(document,"dragover",this._handleAutoScroll):(U(document,"pointermove",this._handleFallbackAutoScroll),U(document,"touchmove",this._handleFallbackAutoScroll),U(document,"mousemove",this._handleFallbackAutoScroll)),pm(),mo(),rx()},nulling:function(){ho=Qa=kn=Za=Ln=Ja=el=null,de.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,n){var i=this,o=(r.touches?r.touches[0]:r).clientX,s=(r.touches?r.touches[0]:r).clientY,a=document.elementFromPoint(o,s);if(ho=r,n||this.options.forceAutoScrollFallback||vn||ft||En){tl(r,this.options,a,n);var l=Et(a,!0);Za&&(!Ln||o!==Ja||s!==el)&&(Ln&&pm(),Ln=setInterval(function(){var c=Et(document.elementFromPoint(o,s),!0);c!==l&&(l=c,mo()),tl(r,i.options,c,n)},10),Ja=o,el=s)}else{if(!this.options.bubbleScroll||Et(a,!0)===it()){mo();return}tl(r,this.options,Et(a,!1),!1)}}},ut(e,{pluginName:"scroll",initializeByDefault:!0})}function mo(){de.forEach(function(e){clearInterval(e.pid)}),de=[]}function pm(){clearInterval(Ln)}var tl=nm(function(e,t,r,n){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=it(),c=!1,u;Qa!==r&&(Qa=r,mo(),kn=t.scroll,u=t.scrollFn,kn===!0&&(kn=Et(r,!0)));var d=0,f=kn;do{var h=f,g=ue(h),y=g.top,A=g.bottom,L=g.left,C=g.right,O=g.width,E=g.height,m=void 0,b=void 0,S=h.scrollWidth,p=h.scrollHeight,v=$(h),T=h.scrollLeft,w=h.scrollTop;h===l?(m=O<S&&(v.overflowX==="auto"||v.overflowX==="scroll"||v.overflowX==="visible"),b=E<p&&(v.overflowY==="auto"||v.overflowY==="scroll"||v.overflowY==="visible")):(m=O<S&&(v.overflowX==="auto"||v.overflowX==="scroll"),b=E<p&&(v.overflowY==="auto"||v.overflowY==="scroll"));var P=m&&(Math.abs(C-i)<=s&&T+O<S)-(Math.abs(L-i)<=s&&!!T),x=b&&(Math.abs(A-o)<=s&&w+E<p)-(Math.abs(y-o)<=s&&!!w);if(!de[d])for(var R=0;R<=d;R++)de[R]||(de[R]={});(de[d].vx!=P||de[d].vy!=x||de[d].el!==h)&&(de[d].el=h,de[d].vx=P,de[d].vy=x,clearInterval(de[d].pid),(P!=0||x!=0)&&(c=!0,de[d].pid=setInterval(function(){n&&this.layer===0&&j.active._onTouchMove(ho);var N=de[this.layer].vy?de[this.layer].vy*a:0,D=de[this.layer].vx?de[this.layer].vx*a:0;typeof u=="function"&&u.call(j.dragged.parentNode[Te],D,N,e,ho,de[this.layer].el)!=="continue"||im(de[this.layer].el,D,N)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==l&&(f=Et(f,!1)));Za=c}},30),gm=function(t){var r=t.originalEvent,n=t.putSortable,i=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(r){var c=n||o;a();var u=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,d=document.elementFromPoint(u.clientX,u.clientY);l(),c&&!c.el.contains(d)&&(s("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function rl(){}rl.prototype={startIndex:null,dragStart:function(t){var r=t.oldDraggableIndex;this.startIndex=r},onSpill:function(t){var r=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=Tr(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(r,i):this.sortable.el.appendChild(r),this.sortable.animateAll(),n&&n.animateAll()},drop:gm},ut(rl,{pluginName:"revertOnSpill"});function nl(){}nl.prototype={onSpill:function(t){var r=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),n.animateAll()},drop:gm},ut(nl,{pluginName:"removeOnSpill"}),j.mount(new Ex),j.mount(nl,rl);var _x=class{constructor(){k(this,"_items",new Map)}gc(){for(const[e,t]of[...this._items])e.isConnected||(this._items.delete(e),t.destroy())}get(e){return this._items.get(e)}create(e,t){const r=j.create(e,t);return this._items.set(e,r),r}entries(){return[...this._items]}},wt=new _x,Sx=Number.MAX_VALUE,wx=0;function bm(e){return typeof e=="object"?e.name:e}function Cx(e){wt.gc();const t=document.querySelectorAll("[em=group]");j.prototype._emulateDragOver=function(){};let r;const n=new $h;let i=0,o=0;const s=f=>{i=f.clientX,o=f.clientY},a=f=>{i=f.clientX,o=f.clientY,n.over(i,o)},l=()=>{e.commit(!0)};window.addEventListener("mousedown",s),window.addEventListener("mouseup",()=>n.end(i,o));function c(f){let h;function g(C,O){let E=null,m=Number.MAX_VALUE;const b=bm(j.active?.options.group);for(const[S,p]of wt.entries())if(bm(p.options.group)===b&&(!f||h&&f(S,h)!==!1)){for(const v of S.children)if(!v.classList.contains("sortable-drag")){const T=v.getBoundingClientRect(),w=C<T.left?T.left-C:C>T.right?C-T.right:0,P=O<T.top?T.top-O:O>T.bottom?O-T.bottom:0;if(w<Sx||P<wx){const x=Math.sqrt(w*w+P*P);x<m?(E=[p,v],m=x):x===m&&E[1].contains(v)&&(E=[p,v])}}}return E}function y(C){const O="TouchEvent"in window&&C instanceof TouchEvent?C.touches[0]:C,E=g(O.clientX,O.clientY);if(E){const[S,p]=E,v=p.getBoundingClientRect();var m={clientX:v.left+v.width/2,clientY:O.clientY};for(var b in C)C.hasOwnProperty(b)&&(m[b]=C[b]);m.target=p,m.rootEl=p.parentNode,m.preventDefault=void 0,m.stopPropagation=void 0,S._onDragOver(m)}}return{onStart:C=>{h=C.item,e.beginTextUpdate(),window.addEventListener("mousemove",y),window.addEventListener("touchmove",y),n.start(i,o)?(window.addEventListener("mousemove",a),r&&(r.dispose(),r=void 0)):C.preventDefault()},onEnd:C=>{window.removeEventListener("mousemove",y),window.removeEventListener("touchmove",y),C.from===C.to?n.end(i,o):n.drop(i,o),window.removeEventListener("mousemove",a),e.endTextUpdate(),C.from===C.to&&C.oldIndex!==C.newIndex&&e.commit(!0),r&&(r.dispose(),r=void 0),h=void 0}}}if(t.length)for(const f of t){const h=f.parentElement;h&&!wt.get(h)&&wt.create(h,{forceFallback:!0,group:"groups-sorting",handle:`.of-group .${ni.drag}`,...c(),onMove:l})}const u=[...document.querySelectorAll("[em=block]")],d=[...document.querySelectorAll("[em=atom]")].map(f=>f.parentElement);for(const f of u){const h=f.querySelectorAll("td");for(const g of h)!g.innerHTML&&!g.hasAttribute("height")&&[...g.parentElement?.children||[]].indexOf(g)%2===0&&d.push(g)}if(d.length){const f=new Set;for(const h of d)h&&!f.has(h)&&(f.add(h),wt.get(h)||wt.create(h,{forceFallback:!0,group:"atoms-sorting",handle:`.of-atom .${ni.drag}`,...c((g,y)=>{if(y.tagName==="TR"){if(g.tagName!=="TABLE"&&g.tagName!=="TBODY")return!1}else if(y.tagName==="TD"){if(g.tagName!=="TR")return!1}else if(y.tagName==="TABLE"){const A=e.getContext(g);if(A&&Qe(A)&&A.tagName==="AMP-ACCORDION"&&g.tagName==="DIV"&&[...A.querySelectorAll("section > div")].indexOf(g)>=0||e.isInExternal(g)&&g.tagName==="DIV")return!0;if(g.tagName!=="TD")return!1}}),onMove:l,onSort:function(){h.innerHTML.trim()===""&&(h.innerHTML="")}}))}if(u.length){const f=new Set;for(const h of u){const g=h.parentElement;g&&!f.has(g)&&(f.add(g),wt.get(g)||wt.create(g,{forceFallback:!0,group:"blocks-sorting",handle:`.of-block .${ni.drag}`,...c(),onMove:l}))}}}function ym(){X.send({operation:"sandbox_resized"})}function Ax(e,t){const r=new Z,n=0;let i=0;r.addDisposable(t.beforeSave(()=>{i&&(clearTimeout(i),i=0)}));function o(){i||(i=setTimeout(()=>{ym(),i=0},n))}return r.addDisposable(e.onChange(s=>{const a=s.flatMap(function(l){return l.added.flatMap(c=>{if(Qe(c))return pE(c)?c:[...c.querySelectorAll("img")]})}).filter(l=>!!l).map(l=>l.complete?Promise.resolve():new Promise((c,u)=>{l.addEventListener("load",c),l.addEventListener("error",c)}));a.length&&Promise.all(a).then(o)})),window.addEventListener("resize",o),r.addDispose(()=>window.removeEventListener("resize",o)),r}function il(){X.send(me.RELOAD),window.location.reload()}function Tx(e){const t=new Z;function r(){const i=new Set;for(const o of document.querySelectorAll("script"))o instanceof HTMLScriptElement&&wh(o)||e.getOuterHtml(o)&&(o.src||o.innerHTML).trim()&&i.add((o.src||o.innerHTML).trim());return i}let n=r();return t.addDisposable(X.addListener(me.RELOAD,il)),t.addDisposable(e.onChange(()=>{let i=r();for(const o of n)i.has(o)||il();n=i})),t}function kx(e){let t=e.documentElement;return t||(t=e.createElement("html"),e.appendChild(t)),t}function On(e){let t=e.head;if(!t){t=e.createElement("head");const r=kx(e);r.insertBefore(t,r.firstChild)}return t}function Lx(e){const t=Object.create(null),r=e.getAttributeNames();for(const n of r)t[n]=e.getAttribute(n);return t}function Ox(e){for(const t of document.querySelectorAll("iframe"))if(t.contentDocument===e.ownerDocument)return t}function xx(e){const t=On(e);if(!e.querySelector("style[amp4email-boilerplate]")){const r=e.createElement("style");r.setAttribute("amp4email-boilerplate",""),r.innerHTML="body{visibility:hidden}",t.prepend(r)}}var vm="amp-custom";function Px(e,t){return`em-${e.replaceAll("-","_")}-${t.toLowerCase()}`}function Em(e,t,r){for(const n of t)if(Xr.isStyleRule(n)){const i=n.selectorText.split(/\+>~/).flatMap(o=>o.trim().split(" "));if(i.length===1&&i[0].trim().startsWith(".em-")){for(const o of n.style)if(n.style.getPropertyPriority(o)==="important"){for(const s of e.querySelectorAll(n.selectorText))if(Es(s)){const a=s.style;for(const l of[...a])if(l.startsWith(o)){const c=r(l,a.getPropertyValue(l)),u=s.getAttribute("class");s.setAttribute("class",u?`${c} ${u}`:c),a.removeProperty(l)}}}}}else Xr.isMediaRule(n)&&Em(e,n.cssRules,r)}function _m(e,t){const r=t.sheet;if(r){const o=new Set;Em(e,r.cssRules,(s,a)=>{const l=Px(s,a),c=[...r.cssRules],u=`.${l} { ${s}: ${a} }`;return!c.find(d=>Xr.isStyleRule(d)&&d.selectorText===`.${l}`)&&!o.has(u)&&(o.add(u),t.innerHTML=`
72
72
  .${l} { ${s}: ${a} };
73
73
  ${t.innerHTML}`),l}),o.size&&(t.innerHTML=`
74
74
  ${[...o].join(`
@@ -82,4 +82,4 @@ ${i.join("")}
82
82
  `+Se(r)+`
83
83
  `),t()},i.src=n.getAttribute("src")||"",!1}function XP(e){const t=e.blockHTML.substring(0,3)==="<tr"?document.createElement("table"):document.createElement("div");t.replaceChildren(...xe(e.blockHTML));const r=t.querySelector("img.em-countdown");if(!r)return Se(t);const n=r.getAttribute("em-cd-settings")||"",i=e.project==="useblocks"?"https://cdt3.useblocks.io/rndt?":"https://cdt3.emcdn.ru/rndt?",o=new URL(i+n),s=new Date;return o.searchParams.set("time",new Date(+s+432e6).toISOString()),Fo(r,"src",o.href),r.setAttribute("em-cd-settings",o.search.substring(1)),Se(t)}function YP(e){const t=e.blockIsTr?document.createElement("table"):document.createElement("div");return t.replaceChildren(...xe(e.blockHTML)),document.querySelector(".noresp-em-narrow-table")?t.querySelectorAll('[class^="em-mob-"], [class*=" em-mob-"]').forEach(r=>{r.className=r.className.split(" ").map(n=>n.startsWith("em-mob-")?"noresp-"+n:n).join(" ")}):t.querySelectorAll('[class^="noresp-"], [class*=" noresp-"]').forEach(r=>{r.className=r.className.split(" ").map(n=>n.startsWith("noresp-")?n.substring(7):n).join(" ")}),cl(t),Se(t)}function KP(e,t){const r=t.getOuterHtml(e),n=document.createElement("html").appendChild(document.createElement("body"));let i;e.tagName==="TR"?i=document.createElement("table"):i=document.createElement("div"),document.querySelectorAll("style").forEach(a=>{const l=t.getOuterHtml(a);l&&i.insertAdjacentHTML("beforeend",l)}),i.insertAdjacentHTML("beforeend",`
84
84
  `);const o=xe(r)[0];if(!o)return null;o.querySelectorAll("style").forEach(a=>{a.remove()}),o.classList.remove("em-structure"),o.querySelectorAll(".em-structure").forEach(a=>a.classList.remove("em-structure")),i.appendChild(o),e.querySelectorAll('[class*="em-font-"]').forEach(a=>{const l=[...a.classList].find(c=>c.startsWith("em-font-")&&c!=="em-font-custom");if(l){const c=`link[em-class="${l}"]`;!i.querySelector(c)&&document.querySelector(c)&&(i.insertAdjacentHTML("afterbegin",`
85
- `),i.prepend(document.querySelector(c).cloneNode(!0)))}}),n.append(i),mh(n,[...n.querySelectorAll("style")],{forceMediaMerge:!0});let s=Nt(n);return e.tagName==="TR"?s=s.replaceAll(/<body(.|\n|\r)*?><table>/gi,"").replaceAll(/<\/table><\/body>/gi,""):s=s.replaceAll(/<body(.|\n|\r)*?><div>/gi,"").replaceAll(/<\/div><\/body>/gi,""),s=s.replaceAll(/html {((.|\n|\r)*?)}/gi,"").replaceAll(/<style[^>]*>\s*<\/style>/gi,""),s}function QP(e,t){const{HTMLDocument:r,messageService:n}=t,i=e.closest('[em="block"]');if(!i)return;const o=KP(i,r);if(!o)return;DL(i);const s=i.getAttribute("em-block-id"),a=i.getAttribute("em-block-version");n.send({operation:"application_eblock_add",data:pn({html:o.trim(),isBlock:!0}),settings:{...s?{emBlockId:s}:{},...a?{emBlockVersion:a}:{}}})}function ZP(e){const t=document.querySelector(".em-element-editor:not(.of-atom)");if(!t)return;const r=(t.closest('[em="block"]')||t.closest('[em="group"]'))?.getBoundingClientRect().top||0;if(e.scrollTop>r+55){const n=e.scrollTop-r;t.style.top=n+8+"px"}else t.style.removeProperty("top")}function JP(e){const t=document.querySelector(".em-element-editor");if(!t)return;const r=t.getBoundingClientRect(),n=document.querySelector(".em-element-editor-widget");n&&(r.top<0?n.classList.add("sticky"):n.classList.remove("sticky"),r.top+t.offsetHeight-10-n.offsetHeight<0&&n.classList.remove("sticky"),e(!1))}function Im(){return _e.get("emailWidth")}function eN(e){const t=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)");for(let r=0;r<t.length;r++){const n=t[r];if(n.classList.contains("em-insert-ignore"))continue;const i=n.getAttribute("width");if(i!=null&&i!=="")return!0}return!1}function tN(e,t){const r=Im(),n=document.createElement("table");n.replaceChildren(...xe(e.blockHTML));let i=660;if(e.targetBlock.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")){i=0;const a=n.querySelector(".em-mob-wrap:empty, .noresp-em-mob-wrap:empty")?660:e.project==="useblocks"?640:660;if(document.body.clientWidth>(r||a))i=e.targetBlock.clientWidth;else{const l=e.targetBlock.querySelector(".em-mob-wrap, .noresp-em-mob-wrap");if(l&&l.parentElement){l.parentElement.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").forEach(f=>{i+=parseFloat(f.getAttribute("width")||"0")});const c=l.parentElement.closest("td"),u=parseFloat(c?.style.paddingLeft||"0")||0,d=parseFloat(c?.style.paddingRight||"0")||0;i+=u,i+=d}}}else if(e.targetBlock.closest(".container-td"))i=parseInt(String(e.targetBlock.offsetWidth));else{const a=e.targetBlock.querySelector('table[style*="max-width"]'),l=e.targetBlock.querySelector('div[style*="max-width"]'),c=e.targetBlock.querySelector('.row-content[style*="width"]');a?i=parseInt(String(a.offsetWidth)):l?i=parseInt(String(l.offsetWidth)):c?i=parseInt(String(c.offsetWidth)):i=e.targetBlock.style.maxWidth?parseFloat(e.targetBlock.style.maxWidth):e.targetBlock.getBoundingClientRect().width}let o=n.querySelector(".em-mob-wrap:empty, .noresp-em-mob-wrap:empty")?660:e.project==="useblocks"?640:660;if(n.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")){o=0;const a=n.querySelector(".em-mob-wrap, .noresp-em-mob-wrap");if(a&&a.parentElement){a.parentElement.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").forEach(d=>{o+=parseFloat(d.getAttribute("width")||"0")});const l=a.parentElement.closest("td"),c=parseFloat(l?.style.paddingLeft||"0")||0,u=parseFloat(l?.style.paddingRight||"0")||0;o+=c,o+=u}}if(n.querySelector('div[style*="inline-block"]')){if(i<660&&n.querySelector('div[style*="inline-block"]'))if(n.querySelectorAll('div[style*="inline-block"]').length>1)n.querySelectorAll('div[style*="inline-block"]').forEach(a=>{const l=a,c=parseFloat(l.style.width),u=c/o,d=a.firstElementChild;if(!d)return;const f=c-parseFloat(d.getAttribute("width")||"0"),h=parseFloat(String(i*u));l.style.width=h+"px",d.setAttribute("width",String(h-f)),Fr({elem:l,width:h})});else{const a=n.querySelector('div[style*="inline-block"]');a.style.maxWidth=i+"px",Fr({elem:a,width:i}),a.firstElementChild&&(a.firstElementChild.setAttribute("width",String(Math.round(i*.91))),a.firstElementChild.style.maxWidth=Math.round(i*.91)+"px")}}else if(n.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")){const a=[];n.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").forEach(function(l){const c=Sl(l);c&&a.indexOf(c)===-1&&a.push(c)}),a.forEach(l=>{const c=l.querySelector(".em-mob-wrap, .noresp-em-mob-wrap");if(!c||!c.parentElement)return;const u=c.parentElement.closest("td"),d=parseFloat(u?.style.paddingLeft||"0")||0,f=parseFloat(u?.style.paddingRight||"0")||0;if(l.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").length>1){if(!eN(l))return;const h=l.querySelector(".em-mob-wrap:nth-child(even), .noresp-em-mob-wrap:nth-child(even)"),g=h?parseFloat(h.getAttribute("width")||"0"):0,y=l.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").length;let A=0,L=0;l.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").forEach(E=>{if(E.getAttribute("width")&&!E.classList.contains("em-insert-ignore")){const m=parseFloat(E.getAttribute("width"))/o,b=Math.round(parseFloat(String(i*m))-g/(y*2));E.setAttribute("width",String(b)),A+=b}});const C=i-(d+f+g*(y-1)+A);l.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").forEach(E=>{if(E.getAttribute("width")&&!E.classList.contains("em-insert-ignore")){const m=parseFloat(E.getAttribute("width"))+Math.round(C/y);L+=m,E.setAttribute("width",String(m)),E.querySelector("img")&&E.querySelectorAll("img").forEach(b=>{parseFloat(b.getAttribute("width")||"0")>parseFloat(E.getAttribute("width"))+Math.round(C/y)&&(b.setAttribute("width",E.getAttribute("width")),b.style.maxWidth=E.getAttribute("width")+"px")})}}),L=L+g*(y-1)+d+f;const O=i-L;if(O!==0&&A>0){const E=l.querySelector(".em-mob-wrap:last-child, .noresp-em-mob-wrap:last-child");if(E&&!E.classList.contains("em-insert-ignore")){const m=parseFloat(E.getAttribute("width")||"0");E.setAttribute("width",String(m+O))}else{const m=l.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)");for(let b=m.length-1;b>=0;b--){const S=m[b];if(S.classList.contains("em-insert-ignore"))continue;const p=parseFloat(S.getAttribute("width")||"0");S.setAttribute("width",String(p+O));break}}}}else if(c.getAttribute("width")&&!c.classList.contains("em-insert-ignore")){const h=Math.round(i-d-f);c.setAttribute("width",String(h))}})}const s=n.querySelector("tr");return s?Nt(s):Se(n)}function rN(e,t){const r=Im(),n=document.createElement("table");n.replaceChildren(...xe(e.blockHTML));let i=660;const o=e.targetBlock.tagName==="TR"?document.createElement("table"):document.createElement("div");if(o.style.width=r+"px",o.style.height="1000px",o.style.borderCollapse="collapse",o.setAttribute("cellpadding","0"),o.setAttribute("cellspacing","0"),o.style.position="absolute",o.style.top="-9999px",o.style.left="-9999px",document.body.appendChild(o),o.innerHTML=t.getOuterHtml(e.targetBlock),r)i=r;else{const l=o.querySelector('table[style*="max-width"]'),c=o.querySelector('div[style*="max-width"]'),u=o.querySelector('.row-content[style*="width"]');if(l)i=parseInt(String(l.offsetWidth));else if(c)i=parseInt(String(c.offsetWidth));else if(u)i=parseInt(String(u.offsetWidth));else{const d=o.querySelector(e.targetBlock.tagName);i=d?.style.maxWidth?parseFloat(d.style.maxWidth):d?.getBoundingClientRect().width||660}}document.body.removeChild(o);const s=n.querySelector("table:first-child");s?.style.maxWidth&&(s.style.maxWidth=i+"px",Fr({elem:s,width:i}));const a=n.querySelector("tr");return a?Nt(a):Se(n)}function ul(e){const t=e.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap");if(!t.length)return;const r=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)"),n=Array.from(r).filter(u=>!u.classList.contains("em-insert-ignore")&&u.getAttribute("width")!=null&&u.getAttribute("width")!=="");if(n.length===0)return;const i=e.parentElement?.getBoundingClientRect().width||0;let o=0,s=0;t.forEach(u=>{o+=parseFloat(u.getAttribute("width")||"0")});let a=e.querySelector(".em-mob-wrap");for(;a&&a!==e.parentElement?.parentElement;){const u=window.getComputedStyle(a),d=parseFloat(u.paddingLeft)||0,f=parseFloat(u.paddingRight)||0;(d>0||f>0)&&(s+=d+f),a=a.parentElement}const l=i-(o+s),c=n.length;n.forEach(u=>{const d=parseFloat(u.getAttribute("width")||"0")+Math.ceil(l/c);u.setAttribute("width",String(d))})}function nN(e){const t={all:null,top:null,right:null,bottom:null,left:null},r={all:null,top:null,right:null,bottom:null,left:null},n=ts({elem:e}),i=n.mobileWidth,o=n.mobileHeight;(e.style.padding||e.style.paddingTop||e.style.paddingRight||e.style.paddingBottom||e.style.paddingLeft)&&(!e.style.padding||e.style.padding.indexOf(" ")>-1?t.all=null:!e.style.padding&&e.style.paddingTop&&e.style.paddingRight&&e.style.paddingBottom&&e.style.paddingLeft&&e.style.paddingTop===e.style.paddingRight&&e.style.paddingRight===e.style.paddingBottom&&e.style.paddingBottom===e.style.paddingLeft?t.all=parseFloat(e.style.paddingTop):t.all=parseFloat(e.style.padding),t.top=e.style.paddingTop?parseFloat(e.style.paddingTop):null,t.right=e.style.paddingRight?parseFloat(e.style.paddingRight):null,t.bottom=e.style.paddingBottom?parseFloat(e.style.paddingBottom):null,t.left=e.style.paddingLeft?parseFloat(e.style.paddingLeft):null),(n.mobilePadding.all!==null||n.mobilePadding.top!==null||n.mobilePadding.right!==null||n.mobilePadding.bottom!==null||n.mobilePadding.left!==null)&&(n.mobilePadding.all?!n.mobilePadding.all&&n.mobilePadding.top&&n.mobilePadding.right&&n.mobilePadding.bottom&&n.mobilePadding.left&&n.mobilePadding.top===n.mobilePadding.right&&n.mobilePadding.right===n.mobilePadding.bottom&&n.mobilePadding.bottom===n.mobilePadding.left?r.all=parseFloat(String(n.mobilePadding.top)):r.all=n.mobilePadding.all!==null?parseFloat(String(n.mobilePadding.all)):null:r.all=null,r.top=n.mobilePadding.top!==null?parseFloat(String(n.mobilePadding.top)):n.mobilePadding.all===null?null:n.mobilePadding.all,r.right=n.mobilePadding.right!==null?parseFloat(String(n.mobilePadding.right)):n.mobilePadding.all===null?null:n.mobilePadding.all,r.bottom=n.mobilePadding.bottom!==null?parseFloat(String(n.mobilePadding.bottom)):n.mobilePadding.all===null?null:n.mobilePadding.all,r.left=n.mobilePadding.left!==null?parseFloat(String(n.mobilePadding.left)):n.mobilePadding.all===null?null:n.mobilePadding.all);let s=e.getAttribute("align")??"";e.parentElement?.getAttribute("em")!=="group"&&e.querySelector('[em="atom"]')&&e.querySelectorAll('[em="atom"] > tr > td').forEach(c=>{c.getAttribute("align")!==s&&(s="")});const a={padding:t,borderRadius:rc(e),backgroundColor:e.style.backgroundColor?ye(e.style.backgroundColor):e.getAttribute("bgcolor")||"",backgroundImage:[{type:"url",value:""}],backgroundPositionX:e.style.backgroundPositionX&&e.style.backgroundPositionX!=="initial"?e.style.backgroundPositionX:"",backgroundPositionY:e.style.backgroundPositionY&&e.style.backgroundPositionY!=="initial"?e.style.backgroundPositionY:"",backgroundRepeat:e.style.backgroundRepeat||"repeat",backgroundSize:e.style.backgroundSize||"auto",height:{value:e.getAttribute("height")&&e.getAttribute("height")!=="auto"?parseFloat(e.getAttribute("height")):null,dim:e.getAttribute("height")&&e.getAttribute("height")!=="auto"&&e.getAttribute("height").indexOf("%")>-1?"%":"px"},align:s,valign:e.getAttribute("valign")??"",border:tc(e),boxShadow:nc(e),mobileWidth:{value:i!==null?i:null,dim:n.mobileWidthDim},mobileHeight:{value:o!==null?o:null,dim:n.mobileHeightDim},mobileBorder:n.mobileBorder,mobileBorderRadius:n.mobileBorderRadius,mobileBoxShadow:n.mobileBoxShadow,mobileAlign:n.mobileAlign,mobileVerticalAlign:n.mobileVerticalAlign,mobileDirection:n.mobileDirection,mobileBackgroundColor:n.mobileBackgroundColor,mobileBackgroundImage:n.mobileBackgroundImage,mobileBackgroundPositionX:n.mobileBackgroundPositionX,mobileBackgroundPositionY:n.mobileBackgroundPositionY,mobileBackgroundRepeat:n.mobileBackgroundRepeat,mobileBackgroundSize:n.mobileBackgroundSize,mobilePadding:r,show:n.show,exportAsPicture:e.getAttribute("em-operation")==="exportAsPicture",outlookBackground:is(e,"inside")},l=e.closest("table");if(l&&l.getAttribute("em")==="atom"){const c=l.getAttribute("width");a.width={value:c&&c!=="auto"?parseFloat(c):null,dim:c&&c!=="auto"&&c.indexOf("%")>-1?"%":"px"}}else{const c=e.getAttribute("width");a.width={value:c&&c!=="auto"?parseFloat(c):null,dim:c&&c!=="auto"&&c.indexOf("%")>-1?"%":"px"}}if(e.style.backgroundImage){const c=e.style.backgroundImage;a.backgroundImage=[{type:"url",value:c?c.substring(5,c.length-2):""}]}else e.getAttribute("background")&&(a.backgroundImage=[{type:"url",value:e.getAttribute("background")||""}]);return a}function iN(e){let t=[],r=null,n=null,i="",o,s=!1;if(e.elem.closest(".em-mob-wrap, .noresp-em-mob-wrap")){const a=e.elem.closest(".em-mob-wrap, .noresp-em-mob-wrap");if(o=!0,a.parentElement.querySelectorAll(":scope > .em-mob-wrap, :scope > .noresp-em-mob-wrap").length>1)a.parentElement.querySelectorAll(":scope > .em-mob-wrap:nth-child(odd), :scope > .noresp-em-mob-wrap:nth-child(odd)").forEach(l=>{t.push({width:parseFloat(l.getAttribute("width")||"0"),current:l===a});const c=a.parentElement.querySelector(":scope > .em-mob-wrap, :scope > .noresp-em-mob-wrap");c?.nextElementSibling&&(r=parseFloat(c.nextElementSibling.getAttribute("width")||"0"),n=ts({elem:c.nextElementSibling}).mobileHeight||0),(l.classList.contains("em-mob-wrap-cancel")||l.classList.contains("noresp-em-mob-wrap-cancel"))&&(o=!1)});else{const l=a.parentElement.querySelector(":scope > .em-mob-wrap, :scope > .noresp-em-mob-wrap");t=[{width:parseFloat(l?.getAttribute("width")||"0"),current:!0}],r=0}i=a.parentElement.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")?.getAttribute("valign")||"",(e.elem.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")?document.querySelector('[em-edit="active"]'):e.elem.closest(".em-mob-wrap, .noresp-em-mob-wrap").parentElement.closest("td"))?.getAttribute("dir")==="rtl"&&(s=!0)}else{const a=e.elem.closest('div[style*="inline-block"]');if(a&&a.parentElement.querySelectorAll('div[style*="inline-block"]').length>1)a.parentElement.querySelectorAll('div[style*="inline-block"]').forEach(l=>{const c=l;if(!c.style.fontFamily){const u=l.firstElementChild;t.push({width:parseFloat(u?.getAttribute("width")||"0"),current:l===a});const d=u?.getAttribute("width"),f=parseFloat(c.style.width);r=f-(!d||d.indexOf("%")>-1?f:parseFloat(d))}});else{const l=a?.parentElement?.querySelector('div[style*="inline-block"]');t=[{width:parseFloat(l?.firstElementChild?.getAttribute("width")||"0"),current:!0}],r=0}i=a?.parentElement?.querySelector('div[style*="inline-block"]')?.style.verticalAlign||"",(e.elem.querySelector('div[style*="inline-block"]')?document.querySelector('[em-edit="active"]'):e.elem.closest('div[style*="inline-block"]')?.parentElement)?.getAttribute("dir")==="rtl"&&(s=!0)}return{items:t,gap:r,gapMobile:n,valign:i,wrap:o,dirRevers:s}}var oN='table[em-type="social"]';function sN(e){return e.closest(oN)}function aN(e,t){return t.contains(e)?!!(e.tagName==="IMG"||e.tagName==="TD"&&(e.hasAttribute("em-platform")||e.hasAttribute("data-em-platform"))||e.tagName==="A"&&e.querySelector(":scope > img")):!1}function Bm(e){const t=sN(e);if(t&&e!==t&&aN(e,t))return t;const r=e.parentNode;if(!r)return!1;const n=r.tagName,i=r.style,o=r.parentNode;return n==="TD"||n==="TABLE"&&o?.style.display!=="inline-block"&&!e.closest(".em-narrow-table")&&r.getAttribute("em")!=="atom"||n==="DIV"&&(i.display==="inline-block"||i.display==="table-cell")&&i.verticalAlign||(n==="DIV"||n==="TABLE")&&lN(i)?r:Bm(r)}function lN(e){return!!(e.width||e.minWidth||e.maxWidth||e.height||e.background||e.backgroundColor||e.backgroundPositionX||e.backgroundPositionY||e.backgroundImage||e.backgroundRepeat||e.backgroundSize||e.padding||e.paddingTop||e.paddingRight||e.paddingBottom||e.paddingLeft||e.border||e.borderBottom||e.borderBottomWidth||e.borderBottomStyle||e.borderBottomColor||e.borderLeft||e.borderLeftWidth||e.borderLeftStyle||e.borderLeftColor||e.borderTop||e.borderTopWidth||e.borderTopStyle||e.borderTopColor||e.borderRight||e.borderRightWidth||e.borderRightStyle||e.borderRightColor||e.borderRadius||e.borderTopLeftRadius||e.borderTopRightRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius||e.boxShadow||e.textAlign||e.align||e.verticalAlign)}function Ht(e,t){return{settings:e,elem:t}}var Q=null;function cN(e){Q=e}function uN(){return _e.get("emailWidth")||475}function bo(){return document.documentElement.clientWidth<=uN()}function dl(e,t,r,n){if(!Q)return;const i=e;i.style.cursor=r,i.mousemove=t,i.onmousedown=function(){window.getSelection()?.removeAllRanges(),Q.applicationElementSettingsSet({elem:e});const o=document.querySelector("[em-edit]");o&&Q.setCursorPosition(o),document.documentElement.classList.add("em-resize-start");try{document.documentElement.addEventListener("mousemove",i.doDrag,!1),document.documentElement.addEventListener("mouseup",i.stopDrag,!1)}catch{}},i.doDrag=function(o){if(o.which!=1){i.stopDrag();return}i.mousemove(o)},i.stopDrag=function(){document.documentElement.removeEventListener("mousemove",i.doDrag,!1),document.documentElement.removeEventListener("mouseup",i.stopDrag,!1),n&&n(),setTimeout(()=>{document.documentElement.classList.remove("em-resize-start"),Q.commit(!1)})}}function zt(e,t,r){dl(e,t,"ns-resize",r)}function Nn(e,t,r){dl(e,t,"ew-resize",r)}function dN(e,t,r){dl(e,t,"nwse-resize",r)}function Vt(e,t){if(!Q)return;let r=null,n=0;const i=bo();if(e.closest('div[style*="font-size"][style*="line-height"]')){if(r=e.closest('div[style*="height"][style*="line-height"]'),!r)return;n=r.clientHeight+t,i?ti(Ht({mobileHeight:{value:n>0?n:0,dim:"px",classNamePrefix:"em-mob-height-"}},r)):(r.style.height=n+"px",r.style.lineHeight=n+"px")}else if(e.closest(".em-gap")){if(r=e.closest(".em-gap"),!r)return;r.classList.add("em-hover"),n=r.clientHeight+t,r.closest("tr")?.querySelectorAll(".em-gap").forEach(o=>{const s={mobileHeight:{value:n>0?n:0,dim:"px",classNamePrefix:"em-mob-height-"}},a=o.closest(".em-mob-wrap, .noresp-em-mob-wrap");ti(Ht(s,a)),o.style.height=n+"px";const l=o.querySelector(".em-element-gap-value");l&&(l.innerHTML=n+"px")})}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingTop")){if(r=e.closest(".em-vindent-paddingTop"),!r)return;const o=r.parentElement;r.classList.add("em-hover"),n=r.clientHeight+t,r.style.height=n+"px",i&&o?zr(Ht({mobilePadding:{top:n>0?n:0,classNamePrefix:"em-mob-padding_"}},o)):o&&(o.style.paddingTop=n+"px")}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingBottom")){if(r=e.closest(".em-vindent-paddingBottom"),!r)return;const o=r.parentElement;r.classList.add("em-hover"),n=r.clientHeight+t,r.style.height=n+"px",i&&o?zr(Ht({mobilePadding:{bottom:n>0?n:0,classNamePrefix:"em-mob-padding_"}},o)):o&&(o.style.paddingBottom=n+"px")}else{if(r=e.closest("td"),!r)return;n=r.clientHeight+t,i?ti(Ht({mobileHeight:{value:n>0?n:0,dim:"px",classNamePrefix:"em-mob-height-"}},r)):r.setAttribute("height",String(n))}if(r&&!e.closest(".em-gap")){if(n>=0){const o=r.querySelector(".em-element-vindent-value");o&&(o.innerHTML=n+"px")}n<30?r.classList.add("em-vindent_low"):r.classList.remove("em-vindent_low")}r&&Q.commit()}function Wt(e){if(!Q)return;let t=null;const r=bo();if(e.closest('div[style*="height"][style*="line-height"]')){if(t=e.closest('div[style*="height"][style*="line-height"]'),!t)return;parseInt(t.style.height)<=0?t.remove():Q.applicationElementSettingsSet({elem:t})}else if(e.closest(".em-gap")){if(t=e.closest(".em-gap"),!t)return;Q.applicationElementSettingsSet({elem:t.closest('[em="block"] > td')})}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingTop")){if(t=e.closest(".em-vindent-paddingTop"),!t)return;t.classList.remove("em-hover");const n=t.parentElement;parseInt(t.style.height)<=0?r&&n?Q.applicationElementSettingsSet({elem:n}):n&&n.style.removeProperty("padding-top"):n&&Q.applicationElementSettingsSet({elem:n})}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingBottom")){if(t=e.closest(".em-vindent-paddingBottom"),!t)return;t.classList.remove("em-hover");const n=t.parentElement;parseInt(t.style.height)<=0?r&&n?Q.applicationElementSettingsSet({elem:n}):n&&n.style.removeProperty("padding-bottom"):n&&Q.applicationElementSettingsSet({elem:n})}else{if(t=e.closest("td"),!t)return;const n=t.getAttribute("height");n&&parseInt(n)<=0?t.closest("table")?.remove():Q.applicationElementSettingsSet({elem:t})}t&&Q.commit()}function Pr(e,t){if(!Q)return;let r=null,n=0;const i=bo();if(e.closest(".em-element-resize-img-container")){const o=e.closest(".em-element-resize-img-container")?.querySelector("img");if(!o)return;const s=o.clientWidth+t;o.style.maxWidth=s+"px",o.setAttribute("width",String(s)),Q.commit()}else if(e.closest(".em-gap")){if(r=e.closest(".em-gap"),!r)return;if(r.classList.add("em-hover"),n=r.clientWidth+t,n>=0){const o=r.clientWidth,s=Array.from(r.closest("tr")?.querySelectorAll(".em-mob-wrap:nth-child(odd)")||[]).map(u=>u.clientWidth),a=s.reduce((u,d)=>u+d,0),l=a+(s.length-1)*o,c=r.closest("tr");if(!c)return;if(l-3<=c.clientWidth||t<=0){let u=Array.from(c.querySelectorAll(".em-mob-wrap:nth-child(odd)")).filter(A=>A.dataset.percent).map(A=>A.dataset.percent);u.length||(u=s.map(A=>((A||0)/a*100).toFixed(1)),Tl(c.querySelectorAll(".em-mob-wrap:nth-child(odd)")));const d=l-(s.length-1)*n,f=(A,L)=>Math.round(L*parseFloat(A)/100);let h=s.map((A,L)=>f(u[L],d));const g=l-(h.reduce((A,L)=>A+L,0)+(s.length-1)*n);if(g!==0){const A=h.length-Math.abs(g);h=h.map((L,C)=>A<=C?L+(g>0?1:-1):L)}const y=h;c.querySelectorAll(".em-mob-wrap:nth-child(odd)").forEach((A,L)=>{Array.from(A.querySelectorAll("table[width]")).filter(C=>!C.getAttribute("width")?.includes("%")).forEach(C=>{+(C.getAttribute("width")||0)<=y[L]&&(C.style.maxWidth=String(y[L]),C.setAttribute("width","100%"))})}),r.style.width=n+"px",c.querySelectorAll(".em-mob-wrap:nth-child(odd)").forEach((A,L)=>A.setAttribute("width",String(y[L]))),c.querySelectorAll(".em-gap").forEach(A=>{A.parentElement?.setAttribute("width",String(n)),A.style.width=n+"px";const L=A.querySelector(".em-element-gap-value");L&&(L.innerHTML=n+"px")})}}}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingLeft")){if(r=e.closest(".em-vindent-paddingLeft"),!r)return;const o=r.parentElement;r.classList.add("em-hover"),n=r.clientWidth+t,r.style.width=n+"px",i&&o?zr(Ht({mobilePadding:{left:n>0?n:0,classNamePrefix:"em-mob-padding_"}},o)):o&&(o.style.paddingLeft=n+"px",o.querySelectorAll(":scope > table").forEach(s=>ul(s)))}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingRight")){if(r=e.closest(".em-vindent-paddingRight"),!r)return;const o=r.parentElement;r.classList.add("em-hover"),n=r.clientWidth+t,r.style.width=n+"px",i&&o?zr(Ht({mobilePadding:{right:n>0?n:0,classNamePrefix:"em-mob-padding_"}},o)):o&&(o.style.paddingRight=n+"px",o.querySelectorAll(":scope > table").forEach(s=>ul(s)))}if(r&&!e.closest(".em-gap")){if(n>=0){const o=r.querySelector(".em-element-vindent-value, .em-element-gap-value");o&&(o.innerHTML=n+"px")}n<30?r.classList.add("em-vindent_low"):r.classList.remove("em-vindent_low")}r&&Q.commit()}function Nr(e){if(!Q)return;let t=null;const r=bo();if(e.closest(".em-element-resize-img-container")){const n=e.closest(".em-element-resize-img-container")?.querySelector("img");n&&(Q.applicationElementSettingsSet({elem:n}),Q.commit())}else if(e.closest(".em-gap"))t=e.closest(".em-gap"),t&&Q.applicationElementSettingsSet({elem:t.closest('[em="block"] > td')});else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingLeft")){if(t=e.closest(".em-vindent-paddingLeft"),!t)return;t.classList.remove("em-hover");const n=t.parentElement;parseInt(t.style.width)<=0?r&&n?Q.applicationElementSettingsSet({elem:n}):n&&n.style.removeProperty("padding-left"):n&&Q.applicationElementSettingsSet({elem:n})}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingRight")){if(t=e.closest(".em-vindent-paddingRight"),!t)return;t.classList.remove("em-hover");const n=t.parentElement;parseInt(t.style.width)<=0?r&&n?Q.applicationElementSettingsSet({elem:n}):n&&n.style.removeProperty("padding-right"):n&&Q.applicationElementSettingsSet({elem:n})}t&&Q.commit()}var fN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 15 4 L 15 24.0625 L 8.21875 17.28125 L 6.78125 18.71875 L 15.28125 27.21875 L 16 27.90625 L 16.71875 27.21875 L 25.21875 18.71875 L 23.78125 17.28125 L 17 24.0625 L 17 4 Z"/></svg>',hN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 16 4.09375 L 15.28125 4.78125 L 6.78125 13.28125 L 8.21875 14.71875 L 15 7.9375 L 15 28 L 17 28 L 17 7.9375 L 23.78125 14.71875 L 25.21875 13.28125 L 16.71875 4.78125 Z"/></svg>',mN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 12 6 C 10.894531 6 10 6.894531 10 8 C 10 9.105469 10.894531 10 12 10 C 13.105469 10 14 9.105469 14 8 C 14 6.894531 13.105469 6 12 6 Z M 20 6 C 18.894531 6 18 6.894531 18 8 C 18 9.105469 18.894531 10 20 10 C 21.105469 10 22 9.105469 22 8 C 22 6.894531 21.105469 6 20 6 Z M 12 14 C 10.894531 14 10 14.894531 10 16 C 10 17.105469 10.894531 18 12 18 C 13.105469 18 14 17.105469 14 16 C 14 14.894531 13.105469 14 12 14 Z M 20 14 C 18.894531 14 18 14.894531 18 16 C 18 17.105469 18.894531 18 20 18 C 21.105469 18 22 17.105469 22 16 C 22 14.894531 21.105469 14 20 14 Z M 12 22 C 10.894531 22 10 22.894531 10 24 C 10 25.105469 10.894531 26 12 26 C 13.105469 26 14 25.105469 14 24 C 14 22.894531 13.105469 22 12 22 Z M 20 22 C 18.894531 22 18 22.894531 18 24 C 18 25.105469 18.894531 26 20 26 C 21.105469 26 22 25.105469 22 24 C 22 22.894531 21.105469 22 20 22 Z"/></svg>',pN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 4 4 L 4 24 L 11 24 L 11 22 L 6 22 L 6 6 L 18 6 L 18 7 L 20 7 L 20 4 Z M 12 8 L 12 28 L 28 28 L 28 8 Z M 14 10 L 26 10 L 26 26 L 14 26 Z"/></svg>',gN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 5 5 L 5 9 L 6 9 L 6 23 L 5 23 L 5 27 L 9 27 L 9 26 L 23 26 L 23 27 L 27 27 L 27 23 L 26 23 L 26 9 L 27 9 L 27 5 L 23 5 L 23 6 L 9 6 L 9 5 Z M 9 8 L 23 8 L 23 9 L 24 9 L 24 23 L 23 23 L 23 24 L 9 24 L 9 23 L 8 23 L 8 9 L 9 9 Z M 10 10 L 10 18 L 14 18 L 14 22 L 22 22 L 22 14 L 18 14 L 18 10 Z M 12 12 L 16 12 L 16 16 L 12 16 Z M 18 16 L 20 16 L 20 20 L 16 20 L 16 18 L 18 18 Z"/></svg>',fl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 23.90625 3.96875 C 22.859375 3.96875 21.8125 4.375 21 5.1875 L 5.1875 21 L 5.125 21.3125 L 4.03125 26.8125 L 3.71875 28.28125 L 5.1875 27.96875 L 10.6875 26.875 L 11 26.8125 L 26.8125 11 C 28.4375 9.375 28.4375 6.8125 26.8125 5.1875 C 26 4.375 24.953125 3.96875 23.90625 3.96875 Z M 23.90625 5.875 C 24.410156 5.875 24.917969 6.105469 25.40625 6.59375 C 26.378906 7.566406 26.378906 8.621094 25.40625 9.59375 L 24.6875 10.28125 L 21.71875 7.3125 L 22.40625 6.59375 C 22.894531 6.105469 23.402344 5.875 23.90625 5.875 Z M 20.3125 8.71875 L 23.28125 11.6875 L 11.1875 23.78125 C 10.53125 22.5 9.5 21.46875 8.21875 20.8125 Z M 6.9375 22.4375 C 8.136719 22.921875 9.078125 23.863281 9.5625 25.0625 L 6.28125 25.71875 Z"/></svg>',bN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 15 5 L 15 15 L 5 15 L 5 17 L 15 17 L 15 27 L 17 27 L 17 17 L 27 17 L 27 15 L 17 15 L 17 5 Z"/></svg>',yN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 5 5 L 5 27 L 27 27 L 27 9.59375 L 26.71875 9.28125 L 22.71875 5.28125 L 22.40625 5 Z M 7 7 L 10 7 L 10 13 L 22 13 L 22 7.4375 L 25 10.4375 L 25 25 L 23 25 L 23 16 L 9 16 L 9 25 L 7 25 Z M 12 7 L 16 7 L 16 9 L 18 9 L 18 7 L 20 7 L 20 11 L 12 11 Z M 11 18 L 21 18 L 21 25 L 11 25 Z"/></svg>',vN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 15 4 C 14.476563 4 13.941406 4.183594 13.5625 4.5625 C 13.183594 4.941406 13 5.476563 13 6 L 13 7 L 7 7 L 7 9 L 8 9 L 8 25 C 8 26.644531 9.355469 28 11 28 L 23 28 C 24.644531 28 26 26.644531 26 25 L 26 9 L 27 9 L 27 7 L 21 7 L 21 6 C 21 5.476563 20.816406 4.941406 20.4375 4.5625 C 20.058594 4.183594 19.523438 4 19 4 Z M 15 6 L 19 6 L 19 7 L 15 7 Z M 10 9 L 24 9 L 24 25 C 24 25.554688 23.554688 26 23 26 L 11 26 C 10.445313 26 10 25.554688 10 25 Z M 12 12 L 12 23 L 14 23 L 14 12 Z M 16 12 L 16 23 L 18 23 L 18 12 Z M 20 12 L 20 23 L 22 23 L 22 12 Z"/></svg>';function yo(e,t,r=""){const n=`class="${t}" width="1em" height="1em" fill="currentColor" aria-hidden="true"`;return e.replace("<svg",`<svg ${n}${r?` ${r}`:""}`)}var Mn=null;function EN(e){Mn=e}function _N(){if(!Mn)return;const e=_e.get("applicationTheme")||"light";let t=!1;try{Mn.textDocument.beginUpdate();const r=[...document.querySelectorAll('[em="css"]')].map(s=>s.getAttribute("href"));let n=document.getElementsByTagName("head")[0];if(!n)if(document.documentElement)n=document.createElement("head"),document.documentElement.insertBefore(n,document.documentElement.firstChild),t=!0;else return;const i="css/sandbox.css?d62ebebc";if(r.indexOf(i)<0){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("em","css"),s.setAttribute("href",i),n.appendChild(s),t=!0}const o=`css/sandbox-${e}.css?d62ebebc`;if(r.indexOf(o)<0){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("em","css"),s.setAttribute("href",o),n.appendChild(s),t=!0}}finally{Mn.textDocument.endUpdate()}t&&Mn.commit(!1)}var SN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z"/></svg>',vo=null,wN=".em-prevent-action",Fm=new WeakSet;function CN(e){vo=e}function AN(){return _e.get("emailWidth")||475}function TN(){return _e.get("isLeftButtonDown")||!1}function kN(){return _e.get("editImageControlEnabled")||!1}function jm(){return _e.get("imageCenterEditorEnabled")||!1}function LN(){return _e.get("imageCenterStockEnabled")||!1}function ON(){return _e.get("imageCenterGifEnabled")||!1}function xN(){return _e.get("elementAIimageEnabled")||!1}function PN(e){if(!vo||document.body?.classList.contains("em-native-file-drag"))return;const t=vo.getLocale(),r=AN(),n=TN(),i=jm(),o=document.documentElement.clientWidth<=(r||475);if(document.body&&!document.body.classList.contains("mceNonEditable")&&!n){if(e.tagName==="TD"&&e.innerHTML===""&&e.getAttribute("height")&&!e.classList.contains("em-vindent")&&!e.closest("editor")){e.classList.add("em-vindent"),e.closest("table")?.classList.add("em-vindent-table"),parseInt(e.getAttribute("height")||"0")<30&&e.classList.add("em-vindent_low");const g=z({targetElement:e,insertType:"append",className:"em-element-resize-height"});z({targetElement:e,insertType:"append",className:"em-element-vindent"}),z({targetElement:e,insertType:"append",className:"em-element-vindent-bg"}),zt(g,function(y){Vt(g,y.movementY)},function(){Wt(g)})}if(e.closest(wN))return;if((e.classList.contains("em-vindent")||e.closest(".em-vindent"))&&e.getAttribute("height")&&!e.querySelector(".em-element-vindent-value")){const g=At(e,"em-mob-height"),y=g?parseFloat(g.substring(14,g.length-2)):void 0;z({targetElement:e.querySelector(".em-element-vindent"),insertType:"append",className:"em-element-vindent-value",HTMLcontent:o?(y||e.getAttribute("height"))+"px":e.getAttribute("height")+"px"}),!o||!y?parseInt(e.getAttribute("height")||"0")<30?e.classList.add("em-vindent_low"):e.classList.remove("em-vindent_low"):y<30?e.classList.add("em-vindent_low"):e.classList.remove("em-vindent_low")}if(e.tagName==="DIV"&&e.style.height&&e.style.fontSize&&!e.classList.contains("em-vindent")&&!e.closest("editor")&&e.style.height&&e.style.lineHeight&&!e.style.fontFamily){e.classList.add("em-vindent"),parseFloat(e.style.height)<30&&e.classList.add("em-vindent_low");const g=z({targetElement:e,insertType:"append",className:"em-element-resize-height"}),y=z({targetElement:e,insertType:"append",className:"em-element-vindent"});z({targetElement:y,insertType:"append",className:"em-element-vindent-value",HTMLcontent:e.style.height}),z({targetElement:e,insertType:"append",className:"em-element-vindent-bg"}),zt(g,function(A){Vt(g,A.movementY)},function(){Wt(g)})}if((e.classList.contains("em-vindent")||e.closest(".em-vindent"))&&e.style.height&&e.style.fontSize&&!e.querySelector(".em-element-vindent-value")){const g=At(e,"em-mob-height"),y=g?parseFloat(g.substring(14,g.length-2)):void 0;z({targetElement:e.querySelector(".em-element-vindent"),insertType:"append",className:"em-element-vindent-value",HTMLcontent:o?(y||parseFloat(e.style.height))+"px":parseFloat(e.style.height)+"px"}),!o||!y?parseFloat(e.style.height)<30?e.classList.add("em-vindent_low"):e.classList.remove("em-vindent_low"):y<30?e.classList.add("em-vindent_low"):e.classList.remove("em-vindent_low")}const s=At(e,"em-mob-padding_top"),a=s?parseFloat(s.substring(19)):void 0,l=At(e,"em-mob-padding_bottom"),c=l?parseFloat(l.substring(22)):void 0,u=At(e,"em-mob-padding_left"),d=u?parseFloat(u.substring(20)):void 0,f=At(e,"em-mob-padding_right"),h=f?parseFloat(f.substring(21)):void 0;if((e.style.padding||e.style.paddingTop||e.style.paddingBottom||e.style.paddingLeft||e.style.paddingRight)&&!e.closest("editor")&&(e.tagName!=="A"||e.style.height)){if(e.style.paddingTop&&!e.querySelector(":scope > .em-vindent-paddingTop")&&!e.querySelector(":scope > editor > .em-vindent-paddingTop")&&(!a||!o)){const g=z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingTop",style:`height: ${e.style.paddingTop}`});e.getBoundingClientRect().top<30&&g.classList.add("top-crossed")}e.style.paddingBottom&&!e.querySelector(":scope > .em-vindent-paddingBottom")&&!e.querySelector(":scope > editor > .em-vindent-paddingBottom")&&(!c||!o)&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingBottom",style:`height: ${e.style.paddingBottom}`}),e.style.paddingLeft&&!e.querySelector(":scope > .em-vindent-paddingLeft")&&!e.querySelector(":scope > editor > .em-vindent-paddingLeft")&&(!d||!o)&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingLeft",style:`width: ${e.style.paddingLeft}`}),e.style.paddingRight&&!e.querySelector(":scope > .em-vindent-paddingRight")&&!e.querySelector(":scope > editor > .em-vindent-paddingRight")&&(!h||!o)&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingRight",style:`width: ${e.style.paddingRight}`}),e.querySelectorAll('[class*="em-vindent-padding"]').forEach(g=>{if(!g.querySelector(".em-element-resize-height")){const y=g;(parseFloat(y.style.height)<30||parseFloat(y.style.width)<30)&&g.classList.add("em-vindent_low");const A=z({targetElement:y,insertType:"append",className:"em-element-resize-height"});z({targetElement:y,insertType:"append",className:"em-element-vindent-marker"}),z({targetElement:y,insertType:"append",className:"em-element-vindent-bg"});const L=z({targetElement:y,insertType:"append",className:"em-element-vindent"});let C="";y.className.indexOf("paddingTop")>-1?(C=e.style.paddingTop,zt(A,function(O){Vt(A,O.movementY)},function(){Wt(A)})):y.className.indexOf("paddingBottom")>-1?(C=e.style.paddingBottom,zt(A,function(O){Vt(A,O.movementY)},function(){Wt(A)})):y.className.indexOf("paddingLeft")>-1?(C=e.style.paddingLeft,Nn(A,function(O){Pr(A,O.movementX)},function(){Nr(A)})):y.className.indexOf("paddingRight")>-1&&(C=e.style.paddingRight,Nn(A,function(O){Pr(A,-O.movementX)},function(){Nr(A)})),z({targetElement:L,insertType:"append",className:"em-element-vindent-value",HTMLcontent:C})}})}if(e.className.length&&e.className?.includes("em-mob-padding")&&!e.closest("editor")&&o&&(a&&!e.querySelector(":scope > .em-vindent-paddingTop")&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingTop",style:`height: ${a}px`}),c&&!e.querySelector(":scope > .em-vindent-paddingBottom")&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingBottom",style:`height: ${c}px`}),d&&!e.querySelector(":scope > .em-vindent-paddingLeft")&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingLeft",style:`width: ${d}px`}),h&&!e.querySelector(":scope > .em-vindent-paddingRight")&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingRight",style:`width: ${h}px`}),e.querySelectorAll('[class*="em-vindent-padding"]').forEach(g=>{if(!g.querySelector(".em-element-resize-height")){const y=g;(parseFloat(y.style.height)<30||parseFloat(y.style.width)<30)&&g.classList.add("em-vindent_low");const A=z({targetElement:y,insertType:"append",className:"em-element-resize-height"});z({targetElement:y,insertType:"append",className:"em-element-vindent-marker"}),z({targetElement:y,insertType:"append",className:"em-element-vindent-bg"});const L=z({targetElement:y,insertType:"append",className:"em-element-vindent"});let C="";y.className.indexOf("paddingTop")>-1?(C=a,zt(A,function(O){Vt(A,O.movementY)},function(){Wt(A)})):y.className.indexOf("paddingBottom")>-1?(C=c,zt(A,function(O){Vt(A,O.movementY)},function(){Wt(A)})):y.className.indexOf("paddingLeft")>-1?(C=d,Nn(A,function(O){Pr(A,O.movementX)},function(){Nr(A)})):y.className.indexOf("paddingRight")>-1&&(C=h,Nn(A,function(O){Pr(A,-O.movementX)},function(){Nr(A)})),z({targetElement:L,insertType:"append",className:"em-element-vindent-value",HTMLcontent:String(C)})}})),e.closest('[em="block"]')?.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")&&(e.closest('[em="block"]')?.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").length||0)>2&&!e.closest('[em="block"]')?.querySelector(".em-mob-wrap .em-gap, .noresp-em-mob-wrap .em-gap")){const g=At(e.closest('[em="block"]')?.querySelector(".em-mob-wrap:nth-child(even), .noresp-em-mob-wrap:nth-child(even)"),"em-mob-height"),y=g?parseFloat(g.substring(14,g.length-2)):void 0;e.closest('[em="block"]')?.querySelectorAll(".em-mob-wrap:nth-child(even), .noresp-em-mob-wrap:nth-child(even)").forEach(A=>{z({targetElement:A,insertType:"append",className:"em-gap",style:o?`height: ${y}px;`:`width: ${A.getAttribute("width")}px;`})}),e.closest('[em="block"]')?.querySelectorAll(".em-gap").forEach(A=>{if(!A.querySelector(".em-element-resize-height")){const L=A,C=z({targetElement:L,insertType:"append",className:"em-element-resize-height"});z({targetElement:L,insertType:"append",className:"em-element-gap-marker"}),z({targetElement:L,insertType:"append",className:"em-element-gap-bg"});const O=z({targetElement:L,insertType:"append",className:"em-element-gap"});let E="";o?(E=L.style.height,zt(C,function(m){Vt(C,m.movementY)},function(){Wt(C)})):(E=L.style.width,Nn(C,function(m){Pr(C,m.movementX)},function(){Nr(C)})),z({targetElement:O,insertType:"append",className:"em-element-gap-value",HTMLcontent:E})}})}if(e.tagName==="IMG"){const g=e;if(g.closest("td[em-platform], td[data-em-platform]"))return;if(g.closest(".em-element-resize-img-container")||g.closest('div[style*="font-size"][style*="line-height"][style*="font-family"]')||g.closest("editor")||g.classList.contains("em-video")){if(g.closest(".em-element-resize-img-container")){const C=g.closest(".em-element-resize-img-container"),O=C.querySelector(".em-element-img-edit");!g.getAttribute("src")?.includes(".gif")&&i?O||z({targetElement:C.querySelector(".em-element-img-change-group"),insertType:"prepend",className:"em-element-img-edit",tag:"i",HTMLcontent:yo(fl,`${ii}`),title:t.CHANGE_IMAGE_EDIT}):C.querySelector(".em-element-img-edit")?.remove()}return}const y=document.createElement("span");y.classList.add("em-element-resize-img-container");const A=g.parentElement instanceof HTMLAnchorElement?g.parentElement:g;A.parentElement?.insertBefore(y,A),y.appendChild(A);const L=z({targetElement:y,insertType:"append",tag:"span",className:"em-element-resize-img"});dN(L,function(C){Pr(L,C.movementX)},function(){Nr(L)}),g?.style.maxWidth&&g?.style.display==="block"&&g.closest(".em-element-resize-img-container")?.classList.add("em-display-block"),$m(g,y)}}}function $m(e,t){const r=vo;if(!r||t.querySelector(".em-element-img-change-group"))return;const n=r.getLocale(),i=kN(),o=jm(),s=LN(),a=ON(),l=xN();if(i&&e.getBoundingClientRect().width>40&&e.getBoundingClientRect().height>40&&!e.classList.contains("em-countdown")){const c=z({targetElement:t,insertType:"append",className:"em-element-img-change-group"});if(z({targetElement:c,insertType:"append",className:"em-element-img-change",HTMLcontent:'<svg viewBox="0 0 20 20" focusable="false" data-icon="bg-colors" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M3.75 17.5C3.41667 17.5 3.125 17.375 2.875 17.125C2.625 16.875 2.5 16.5833 2.5 16.25V3.75C2.5 3.41667 2.625 3.125 2.875 2.875C3.125 2.625 3.41667 2.5 3.75 2.5H16.25C16.5833 2.5 16.875 2.625 17.125 2.875C17.375 3.125 17.5 3.41667 17.5 3.75V16.25C17.5 16.5833 17.375 16.875 17.125 17.125C16.875 17.375 16.5833 17.5 16.25 17.5H3.75ZM3.75 16.25H16.25V3.75H3.75V16.25ZM4.91667 14.2292H15.1042L12.0417 10.1458L9.29167 13.7083L7.35417 11.0625L4.91667 14.2292Z"></path></svg>',title:n.CHANGE_IMAGE}),!e.getAttribute("src")?.includes(".gif")&&o&&z({targetElement:c,insertType:"append",className:"em-element-img-edit",tag:"i",HTMLcontent:yo(fl,`${ii}`),title:n.CHANGE_IMAGE_EDIT}),s&&z({targetElement:c,insertType:"append",className:"em-element-img-stock",tag:"i",HTMLcontent:'<svg viewBox="0 0 12 12" focusable="false" data-icon="ai" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M4.12726 7.18183H9.6909L7.86364 4.76364L6.44545 6.63637L5.4909 5.49092L4.12726 7.18183ZM0.909082 11.3636C0.659082 11.3636 0.445068 11.2746 0.267041 11.0966C0.0890136 10.9186 0 10.7046 0 10.4546V2.99999H0.909082V10.4546H10.7273V11.3636H0.909082ZM2.72726 9.54546C2.47726 9.54546 2.26325 9.45644 2.08522 9.27842C1.90719 9.10039 1.81818 8.88638 1.81818 8.63638V1.90908C1.81818 1.65908 1.90719 1.44507 2.08522 1.26704C2.26325 1.08901 2.47726 1 2.72726 1H5.81817L6.90908 2.09091H11.0909C11.3409 2.09091 11.5549 2.17992 11.733 2.35795C11.911 2.53598 12 2.74999 12 2.99999V8.63638C12 8.88638 11.911 9.10039 11.733 9.27842C11.5549 9.45644 11.3409 9.54546 11.0909 9.54546H2.72726ZM2.72726 8.63638H11.0909V2.99999H6.53182L5.44091 1.90908H2.72726V8.63638Z"></path></svg>',title:n.CHANGE_IMAGE_STOCK}),z({targetElement:c,insertType:"append",className:"em-element-img-changeto",tag:"i",HTMLcontent:yo(SN,`${ii}`),title:n.CHANGE_IMAGE_CHANGETO}),a&&z({targetElement:c,insertType:"append",className:"em-element-img-gif",tag:"i",HTMLcontent:'<svg viewBox="0 0 12 12" focusable="false" data-icon="ai" width="1em" height="1em" fill="currentColor" aria-hidden="true"><<path d="M5.68571 8.14286V3H6.79999V8.14286H5.68571ZM0.771429 8.14286C0.54 8.14286 0.353571 8.06786 0.212143 7.91786C0.0707142 7.76786 0 7.58571 0 7.37143V3.77143C0 3.55714 0.0707142 3.375 0.212143 3.225C0.353571 3.075 0.54 3 0.771429 3H3.40001C3.63144 3 3.81786 3.075 3.95929 3.225C4.10072 3.375 4.17144 3.55714 4.17144 3.77143V4.11429H1.11429V7.02857H3.05715V5.57143H4.17144V7.37143C4.17144 7.58571 4.10072 7.76786 3.95929 7.91786C3.81786 8.06786 3.63144 8.14286 3.40001 8.14286H0.771429ZM8.25714 8.14286V3H12V4.11429H9.37142V5.25714H11.1V6.37142H9.37142V8.14286H8.25714Z"></path></svg>',title:n.CHANGE_IMAGE_GIF}),l&&z({targetElement:c,insertType:"append",className:"em-element-img-ai",tag:"i",HTMLcontent:'<svg viewBox="0 0 12 12" focusable="false" data-icon="ai" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M2.45454 11.7273C2.45454 11.7273 2.16994 10.446 1.66154 9.88113C1.15314 9.31625 0 9 0 9C0 9 1.15314 8.68374 1.66154 8.11887C2.16994 7.554 2.45454 6.27273 2.45454 6.27273C2.45454 6.27273 2.73915 7.554 3.24755 8.11887C3.75594 8.68374 4.90909 9 4.90909 9C4.90909 9 3.75594 9.31625 3.24755 9.88113C2.73915 10.446 2.45454 11.7273 2.45454 11.7273Z"></path><path d="M7.63636 9C7.63636 9 7.1304 6.94996 6.22658 6.04614C5.32276 5.14233 3.27273 4.63636 3.27273 4.63636C3.27273 4.63636 5.32276 4.1304 6.22658 3.22657C7.1304 2.32275 7.63636 0.272728 7.63636 0.272728C7.63636 0.272728 8.14233 2.32275 9.04615 3.22657C9.94996 4.1304 12 4.63636 12 4.63636C12 4.63636 9.94996 5.14233 9.04615 6.04614C8.14233 6.94996 7.63636 9 7.63636 9Z"></path><path d="M1.63636 4.09091C1.63636 4.09091 1.44663 3.19402 1.10769 2.7986C0.768758 2.40318 0 2.18182 0 2.18182C0 2.18182 0.768758 1.96046 1.10769 1.56503C1.44663 1.16961 1.63636 0.272728 1.63636 0.272728C1.63636 0.272728 1.8261 1.16961 2.16503 1.56503C2.50397 1.96046 3.27273 2.18182 3.27273 2.18182C3.27273 2.18182 2.50397 2.40318 2.16503 2.7986C1.8261 3.19402 1.63636 4.09091 1.63636 4.09091Z"></path><path d="M10.6364 11.7273C10.6364 11.7273 10.4782 11.0866 10.1958 10.8042C9.91336 10.5218 9.27273 10.3636 9.27273 10.3636C9.27273 10.3636 9.91336 10.2055 10.1958 9.92307C10.4782 9.64064 10.6364 9 10.6364 9C10.6364 9 10.7945 9.64064 11.0769 9.92307C11.3594 10.2055 12 10.3636 12 10.3636C12 10.3636 11.3594 10.5218 11.0769 10.8042C10.7945 11.0866 10.6364 11.7273 10.6364 11.7273Z"></path></svg>',title:n.CHANGE_IMAGE_AI}),r.commit(!1),Fm.has(c))return;Fm.add(c),c.addEventListener("click",function(u){const d=u.target.closest('i[class*="em-element-img"]');let f={};e.classList.contains("em-ai-img")||d?.classList.contains("em-element-img-ai")?f={operation:"application_open-image-ai-popup"}:GL(e.getAttribute("src"))||d?.classList.contains("em-element-img-changeto")?f={operation:"application_open-image-upload-popup",src:e.getAttribute("src")}:d?.classList.contains("em-element-img-gif")?f={operation:"application_open-image-gif-popup",src:e.getAttribute("src")}:d?.classList.contains("em-element-img-stock")?f={operation:"application_open-image-stock-popup",src:e.getAttribute("src")}:f={operation:"application_open-image-edit-popup",src:e.getAttribute("src")},setTimeout(()=>{r.messageService.send(f)},100)})}}function NN(){return document.body?.classList.contains("em-sandbox-discuss")&&!document.body.classList.contains("em-sandbox-discuss_set-target")}function MN(){return document.body?.classList.contains("em-sandbox-discuss_set-target")??!1}function RN(e){const t=e.getAttribute("em-discuss-id");return t&&X.send({operation:"application_discuss_get_comment",settings:{targetId:t}}),!1}function DN(e,t){let r=e;const n=r.getAttribute("em-discuss-id"),i=r.classList.contains("em-discuss-id-new");if(!n||n&&i){if(document.querySelectorAll(".em-discuss-id-new").forEach(o=>{o!==r&&(o.removeAttribute("em-discuss-id"),o.removeAttribute("contenteditable"),o.removeAttribute("em-edit"))}),r.tagName==="EDITOR"&&(r=r.parentElement),r.getAttribute("em-discuss-id"))r.removeAttribute("em-discuss-id"),r.removeAttribute("contenteditable"),r.removeAttribute("em-edit"),X.send({operation:"application_discuss_set_id",settings:{value:""}});else{const o=t.makeId(5);r.setAttribute("em-discuss-id",o),r.setAttribute("em-edit","active"),r.setAttribute("contenteditable","true"),r.classList.add("em-discuss-id-new"),X.send({operation:"application_discuss_set_id",settings:{value:o}})}t.commit()}return{handled:!0,newClickedElement:r}}Object.defineProperty(_,"AppImpl",{enumerable:!0,get:function(){return Ui}}),Object.defineProperty(_,"CLASS_BACKGROUND_ACTIVE_CELL",{enumerable:!0,get:function(){return Ov}}),Object.defineProperty(_,"CLASS_FOR_BASIC_CELL",{enumerable:!0,get:function(){return kv}}),Object.defineProperty(_,"CLASS_FOR_BASIC_ROW",{enumerable:!0,get:function(){return Lv}}),Object.defineProperty(_,"CLASS_NAME_OL",{enumerable:!0,get:function(){return Vn}}),Object.defineProperty(_,"CLASS_NAME_UL",{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(_,"DEFAULT_LINK_COLOR",{enumerable:!0,get:function(){return Rb}}),Object.defineProperty(_,"DOCUMENT_MAPPING_ID",{enumerable:!0,get:function(){return Qo}}),Object.defineProperty(_,"Disposable",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_,"EVENT_TYPES",{enumerable:!0,get:function(){return me}}),Object.defineProperty(_,"HTML_DOCUMENT_ID",{enumerable:!0,get:function(){return Xo}}),Object.defineProperty(_,"ICON_ROLE",{enumerable:!0,get:function(){return ni}}),Object.defineProperty(_,"ICON_SIZE",{enumerable:!0,get:function(){return ii}}),Object.defineProperty(_,"IMAGE_CACHE_ID",{enumerable:!0,get:function(){return Zo}}),Object.defineProperty(_,"LIST_REGEX",{enumerable:!0,get:function(){return Sv}}),Object.defineProperty(_,"LIST_TEMP_CLASSES",{enumerable:!0,get:function(){return Rc}}),Object.defineProperty(_,"Node",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(_,"NodeType",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_,"REMOTE_DOCUMENT_ID",{enumerable:!0,get:function(){return Yo}}),Object.defineProperty(_,"STANDARD_LIST_CONTAINER_SELECTOR",{enumerable:!0,get:function(){return Yp}}),Object.defineProperty(_,"STANDARD_LIST_CONTAINER_TAGS",{enumerable:!0,get:function(){return Xp}}),Object.defineProperty(_,"STANDARD_LIST_STYLES",{enumerable:!0,get:function(){return Kp}}),Object.defineProperty(_,"TABLE_LIST_SELECTOR",{enumerable:!0,get:function(){return Gp}}),Object.defineProperty(_,"TEMPORARY_ACTIVE_CELL_BACKGROUND_COLOR",{enumerable:!0,get:function(){return ps}}),Object.defineProperty(_,"TEMPORARY_CELL_CLASS",{enumerable:!0,get:function(){return Pv}}),Object.defineProperty(_,"TEMPORARY_CLASS",{enumerable:!0,get:function(){return xv}}),Object.defineProperty(_,"TEXT_DOCUMENT_ID",{enumerable:!0,get:function(){return Ko}}),Object.defineProperty(_,"UpdateQueue",{enumerable:!0,get:function(){return dO}}),Object.defineProperty(_,"__vitePreload",{enumerable:!0,get:function(){return gs}}),Object.defineProperty(_,"_defineProperty",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_,"addBlockToProject",{enumerable:!0,get:function(){return QP}}),Object.defineProperty(_,"addClassToSecondCell",{enumerable:!0,get:function(){return Cg}}),Object.defineProperty(_,"addElement",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_,"addFontFamilyClass",{enumerable:!0,get:function(){return Wh}}),Object.defineProperty(_,"addNewRange",{enumerable:!0,get:function(){return bp}}),Object.defineProperty(_,"applyAttributesToTag",{enumerable:!0,get:function(){return SP}}),Object.defineProperty(_,"applyProjectFontInlineFallback",{enumerable:!0,get:function(){return Vh}}),Object.defineProperty(_,"applyVMLBackgroundToggle",{enumerable:!0,get:function(){return my}}),Object.defineProperty(_,"arrow_down_solid_default",{enumerable:!0,get:function(){return fN}}),Object.defineProperty(_,"arrow_up_solid_default",{enumerable:!0,get:function(){return hN}}),Object.defineProperty(_,"attachFocusService",{enumerable:!0,get:function(){return xp}}),Object.defineProperty(_,"braille_solid_default",{enumerable:!0,get:function(){return mN}}),Object.defineProperty(_,"buildEmFontClassName",{enumerable:!0,get:function(){return Qn}}),Object.defineProperty(_,"captionByRules",{enumerable:!0,get:function(){return Yx}}),Object.defineProperty(_,"changeBullets",{enumerable:!0,get:function(){return Zp}}),Object.defineProperty(_,"changeBulletsColor",{enumerable:!0,get:function(){return Jp}}),Object.defineProperty(_,"changeBulletsItalic",{enumerable:!0,get:function(){return rg}}),Object.defineProperty(_,"changeBulletsSize",{enumerable:!0,get:function(){return eg}}),Object.defineProperty(_,"changeBulletsStrikethrough",{enumerable:!0,get:function(){return ig}}),Object.defineProperty(_,"changeBulletsUnderline",{enumerable:!0,get:function(){return ng}}),Object.defineProperty(_,"changeBulletsWeight",{enumerable:!0,get:function(){return tg}}),Object.defineProperty(_,"checkBlockAdaptivity",{enumerable:!0,get:function(){return YP}}),Object.defineProperty(_,"checkForTextNodes",{enumerable:!0,get:function(){return Pm}}),Object.defineProperty(_,"checkForWorkClass",{enumerable:!0,get:function(){return fP}}),Object.defineProperty(_,"checkIsEditorInited",{enumerable:!0,get:function(){return LP}}),Object.defineProperty(_,"checkSandboxStyles",{enumerable:!0,get:function(){return _N}}),Object.defineProperty(_,"clearActiveEditElements",{enumerable:!0,get:function(){return OP}}),Object.defineProperty(_,"clearLinkTags",{enumerable:!0,get:function(){return bn}}),Object.defineProperty(_,"clearPendingPaletteInsert",{enumerable:!0,get:function(){return Mc}}),Object.defineProperty(_,"clearProjectFontFaces",{enumerable:!0,get:function(){return Ji}}),Object.defineProperty(_,"commit",{enumerable:!0,get:function(){return Ap}}),Object.defineProperty(_,"commitLockedAsync",{enumerable:!0,get:function(){return Tp}}),Object.defineProperty(_,"commonStylesApply",{enumerable:!0,get:function(){return qO}}),Object.defineProperty(_,"commonStylesApplyToBlock",{enumerable:!0,get:function(){return GO}}),Object.defineProperty(_,"compareStrings",{enumerable:!0,get:function(){return gp}}),Object.defineProperty(_,"container",{enumerable:!0,get:function(){return Xi}}),Object.defineProperty(_,"copy_solid_default",{enumerable:!0,get:function(){return pN}}),Object.defineProperty(_,"createBeforeInputHandler",{enumerable:!0,get:function(){return By}}),Object.defineProperty(_,"createFontClassName",{enumerable:!0,get:function(){return bb}}),Object.defineProperty(_,"createHandleChangesWithRemovedElementsOnly",{enumerable:!0,get:function(){return _O}}),Object.defineProperty(_,"createMapObj",{enumerable:!0,get:function(){return pO}}),Object.defineProperty(_,"createWrapEditor",{enumerable:!0,get:function(){return Iy}}),Object.defineProperty(_,"darkMode",{enumerable:!0,get:function(){return Eh}}),Object.defineProperty(_,"decrementLock",{enumerable:!0,get:function(){return Op}}),Object.defineProperty(_,"defaultVisibleTextMapFn",{enumerable:!0,get:function(){return EP}}),Object.defineProperty(_,"discuss_default",{enumerable:!0,get:function(){return Rv}}),Object.defineProperty(_,"display_default",{enumerable:!0,get:function(){return ML}}),Object.defineProperty(_,"editConditionalComment",{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(_,"emFilter",{enumerable:!0,get:function(){return pn}}),Object.defineProperty(_,"emFilterCSS",{enumerable:!0,get:function(){return PL}}),Object.defineProperty(_,"extractTableRowData",{enumerable:!0,get:function(){return cg}}),Object.defineProperty(_,"findElementWithSelectedText",{enumerable:!0,get:function(){return Al}}),Object.defineProperty(_,"findForeignButtonSpan",{enumerable:!0,get:function(){return us}}),Object.defineProperty(_,"findOutermostParentWithText",{enumerable:!0,get:function(){return Ep}}),Object.defineProperty(_,"findParentTr",{enumerable:!0,get:function(){return Sl}}),Object.defineProperty(_,"findParentWithExplicitStyle",{enumerable:!0,get:function(){return Tb}}),Object.defineProperty(_,"findParentWithExplicitStyle$1",{enumerable:!0,get:function(){return yp}}),Object.defineProperty(_,"findParentWithFontSizeAndTag",{enumerable:!0,get:function(){return vP}}),Object.defineProperty(_,"findRoundrectComment",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(_,"fontFamilyValues",{enumerable:!0,get:function(){return ac}}),Object.defineProperty(_,"fontValues",{enumerable:!0,get:function(){return Zn}}),Object.defineProperty(_,"formatCellOneText",{enumerable:!0,get:function(){return vg}}),Object.defineProperty(_,"getActiveEditElement",{enumerable:!0,get:function(){return kP}}),Object.defineProperty(_,"getAllComments",{enumerable:!0,get:function(){return iv}}),Object.defineProperty(_,"getCursorPositionType",{enumerable:!0,get:function(){return lg}}),Object.defineProperty(_,"getElementBorder",{enumerable:!0,get:function(){return tc}}),Object.defineProperty(_,"getElementBorderRadius",{enumerable:!0,get:function(){return rc}}),Object.defineProperty(_,"getElementBoxShadow",{enumerable:!0,get:function(){return nc}}),Object.defineProperty(_,"getElementInnerHTML",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(_,"getElementMobileProps",{enumerable:!0,get:function(){return ts}}),Object.defineProperty(_,"getElementParent",{enumerable:!0,get:function(){return Bm}}),Object.defineProperty(_,"getElementTdDiv",{enumerable:!0,get:function(){return nN}}),Object.defineProperty(_,"getFontFamilyFromElement",{enumerable:!0,get:function(){return pP}}),Object.defineProperty(_,"getFontFamilyFromElement$1",{enumerable:!0,get:function(){return wb}}),Object.defineProperty(_,"getHtmlDocument",{enumerable:!0,get:function(){return Oo}}),Object.defineProperty(_,"getHtmlPartsAtCursor",{enumerable:!0,get:function(){return _g}}),Object.defineProperty(_,"getLineHeightInPixels",{enumerable:!0,get:function(){return mP}}),Object.defineProperty(_,"getLineHeightInPixels$1",{enumerable:!0,get:function(){return Sb}}),Object.defineProperty(_,"getListBullet",{enumerable:!0,get:function(){return Cv}}),Object.defineProperty(_,"getListContainer",{enumerable:!0,get:function(){return Av}}),Object.defineProperty(_,"getListContext",{enumerable:!0,get:function(){return wv}}),Object.defineProperty(_,"getOrCreateAfterSpan",{enumerable:!0,get:function(){return oP}}),Object.defineProperty(_,"getOuterHtml",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(_,"getParentElementOfSelection",{enumerable:!0,get:function(){return kb}}),Object.defineProperty(_,"getParentElementOfSelection$1",{enumerable:!0,get:function(){return Cl}}),Object.defineProperty(_,"getPendingPaletteInsert",{enumerable:!0,get:function(){return dv}}),Object.defineProperty(_,"getProjectFontEntries",{enumerable:!0,get:function(){return FO}}),Object.defineProperty(_,"getRangeFromSelection",{enumerable:!0,get:function(){return gP}}),Object.defineProperty(_,"getSelectedText",{enumerable:!0,get:function(){return bO}}),Object.defineProperty(_,"getSimpleBorderType",{enumerable:!0,get:function(){return xb}}),Object.defineProperty(_,"getStructureColumns",{enumerable:!0,get:function(){return iN}}),Object.defineProperty(_,"getTagNameForContainer",{enumerable:!0,get:function(){return _P}}),Object.defineProperty(_,"getTextPartsAtCursor",{enumerable:!0,get:function(){return fg}}),Object.defineProperty(_,"getVariableByIcon",{enumerable:!0,get:function(){return lv}}),Object.defineProperty(_,"getVariableIcon",{enumerable:!0,get:function(){return av}}),Object.defineProperty(_,"getVisibleText",{enumerable:!0,get:function(){return Nm}}),Object.defineProperty(_,"handleAddBlockMenu",{enumerable:!0,get:function(){return UP}}),Object.defineProperty(_,"handleAddGroup",{enumerable:!0,get:function(){return $P}}),Object.defineProperty(_,"handleArrowRight",{enumerable:!0,get:function(){return yv}}),Object.defineProperty(_,"handleCloneAtom",{enumerable:!0,get:function(){return PP}}),Object.defineProperty(_,"handleCloneBlock",{enumerable:!0,get:function(){return NP}}),Object.defineProperty(_,"handleCloneGroup",{enumerable:!0,get:function(){return HP}}),Object.defineProperty(_,"handleDeleteKey",{enumerable:!0,get:function(){return bv}}),Object.defineProperty(_,"handleDiscussGetTarget",{enumerable:!0,get:function(){return $c}}),Object.defineProperty(_,"handleDiscussRemoveTarget",{enumerable:!0,get:function(){return Fc}}),Object.defineProperty(_,"handleDiscussReset",{enumerable:!0,get:function(){return jc}}),Object.defineProperty(_,"handleDiscussSetTarget",{enumerable:!0,get:function(){return Bc}}),Object.defineProperty(_,"handleDiscussSetTargetClick",{enumerable:!0,get:function(){return DN}}),Object.defineProperty(_,"handleDiscussViewClick",{enumerable:!0,get:function(){return RN}}),Object.defineProperty(_,"handleDragCancel",{enumerable:!0,get:function(){return Ph}}),Object.defineProperty(_,"handleEnterForBr",{enumerable:!0,get:function(){return vv}}),Object.defineProperty(_,"handleEscapeKey",{enumerable:!0,get:function(){return gv}}),Object.defineProperty(_,"handleLockDiscuss",{enumerable:!0,get:function(){return Ic}}),Object.defineProperty(_,"handleMergeBlocks",{enumerable:!0,get:function(){return IP}}),Object.defineProperty(_,"handleMoveBlockDown",{enumerable:!0,get:function(){return RP}}),Object.defineProperty(_,"handleMoveBlockUp",{enumerable:!0,get:function(){return MP}}),Object.defineProperty(_,"handleMoveGroupDown",{enumerable:!0,get:function(){return jP}}),Object.defineProperty(_,"handleMoveGroupUp",{enumerable:!0,get:function(){return FP}}),Object.defineProperty(_,"handleRemoveAtom",{enumerable:!0,get:function(){return xP}}),Object.defineProperty(_,"handleRemoveBlock",{enumerable:!0,get:function(){return DP}}),Object.defineProperty(_,"handleRemoveGroup",{enumerable:!0,get:function(){return zP}}),Object.defineProperty(_,"handleSaveHotkey",{enumerable:!0,get:function(){return hv}}),Object.defineProperty(_,"handleToggleEditorHotkey",{enumerable:!0,get:function(){return pv}}),Object.defineProperty(_,"handleUndoRedoHotkey",{enumerable:!0,get:function(){return mv}}),Object.defineProperty(_,"handleUnmergeBlocks",{enumerable:!0,get:function(){return BP}}),Object.defineProperty(_,"handleVMLButtonInput",{enumerable:!0,get:function(){return Ev}}),Object.defineProperty(_,"handleVMLButtonText",{enumerable:!0,get:function(){return _v}}),Object.defineProperty(_,"hasClosestTrWithClass",{enumerable:!0,get:function(){return og}}),Object.defineProperty(_,"hasElementVMLBackground",{enumerable:!0,get:function(){return is}}),Object.defineProperty(_,"hasForeignButtonStructure",{enumerable:!0,get:function(){return _y}}),Object.defineProperty(_,"hasLinkInSelection",{enumerable:!0,get:function(){return Ob}}),Object.defineProperty(_,"hasOnlyTextNodesDeep",{enumerable:!0,get:function(){return wl}}),Object.defineProperty(_,"hasPendingPaletteAtom",{enumerable:!0,get:function(){return fv}}),Object.defineProperty(_,"hasProjectFonts",{enumerable:!0,get:function(){return BO}}),Object.defineProperty(_,"hasTextNodeInElement",{enumerable:!0,get:function(){return CP}}),Object.defineProperty(_,"icon",{enumerable:!0,get:function(){return yo}}),Object.defineProperty(_,"implementImageControls",{enumerable:!0,get:function(){return $m}}),Object.defineProperty(_,"implementPolyfills",{enumerable:!0,get:function(){return gl}}),Object.defineProperty(_,"implementResizableElems",{enumerable:!0,get:function(){return PN}}),Object.defineProperty(_,"incrementLock",{enumerable:!0,get:function(){return Lp}}),Object.defineProperty(_,"initDocuments",{enumerable:!0,get:function(){return Cp}}),Object.defineProperty(_,"initFocusManager",{enumerable:!0,get:function(){return Pp}}),Object.defineProperty(_,"initResizableElements",{enumerable:!0,get:function(){return CN}}),Object.defineProperty(_,"initResizer",{enumerable:!0,get:function(){return cN}}),Object.defineProperty(_,"initSandboxStyles",{enumerable:!0,get:function(){return EN}}),Object.defineProperty(_,"initSortable",{enumerable:!0,get:function(){return Cx}}),Object.defineProperty(_,"injectTextIntoFirstDiv",{enumerable:!0,get:function(){return ug}}),Object.defineProperty(_,"insertAdjacentHTML",{enumerable:!0,get:function(){return Gl}}),Object.defineProperty(_,"insertCountdown",{enumerable:!0,get:function(){return GP}}),Object.defineProperty(_,"insertRowRelativeToDivClass",{enumerable:!0,get:function(){return mg}}),Object.defineProperty(_,"isAddBlockMenuClick",{enumerable:!0,get:function(){return WP}}),Object.defineProperty(_,"isCaretAtEndOfEmReplace",{enumerable:!0,get:function(){return aP}}),Object.defineProperty(_,"isCaretAtEndOfStandardElement",{enumerable:!0,get:function(){return lP}}),Object.defineProperty(_,"isClickAtEndOfEmReplace",{enumerable:!0,get:function(){return iP}}),Object.defineProperty(_,"isComment",{enumerable:!0,get:function(){return Ss}}),Object.defineProperty(_,"isDiscussSetTargetMode",{enumerable:!0,get:function(){return MN}}),Object.defineProperty(_,"isDiscussViewMode",{enumerable:!0,get:function(){return NN}}),Object.defineProperty(_,"isEditorContentOnlyNbsp",{enumerable:!0,get:function(){return TP}}),Object.defineProperty(_,"isEditorContentOnlyNbsp$1",{enumerable:!0,get:function(){return rP}}),Object.defineProperty(_,"isElementHasBold",{enumerable:!0,get:function(){return Ab}}),Object.defineProperty(_,"isElementHasBold$1",{enumerable:!0,get:function(){return vp}}),Object.defineProperty(_,"isElementLocked",{enumerable:!0,get:function(){return kp}}),Object.defineProperty(_,"isInitialized",{enumerable:!0,get:function(){return xo}}),Object.defineProperty(_,"isJsonString",{enumerable:!0,get:function(){return pp}}),Object.defineProperty(_,"isPathElementByRules",{enumerable:!0,get:function(){return Xx}}),Object.defineProperty(_,"isRangeCoveringAllVisibleText",{enumerable:!0,get:function(){return nP}}),Object.defineProperty(_,"isShowOnMobile",{enumerable:!0,get:function(){return Lb}}),Object.defineProperty(_,"isSrcElement",{enumerable:!0,get:function(){return tu}}),Object.defineProperty(_,"isTableElement",{enumerable:!0,get:function(){return vE}}),Object.defineProperty(_,"isTextNode",{enumerable:!0,get:function(){return fi}}),Object.defineProperty(_,"isVariableComment",{enumerable:!0,get:function(){return Pc}}),Object.defineProperty(_,"isVariableText",{enumerable:!0,get:function(){return xc}}),Object.defineProperty(_,"logProjectFonts",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(_,"makeId",{enumerable:!0,get:function(){return _p}}),Object.defineProperty(_,"markProjectFontClass",{enumerable:!0,get:function(){return vb}}),Object.defineProperty(_,"messageService",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_,"minifyStylesheet",{enumerable:!0,get:function(){return xa}}),Object.defineProperty(_,"modifyHtml",{enumerable:!0,get:function(){return Eg}}),Object.defineProperty(_,"normalizeSpaces",{enumerable:!0,get:function(){return $n}}),Object.defineProperty(_,"object_group_solid_default",{enumerable:!0,get:function(){return gN}}),Object.defineProperty(_,"parseFromString",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(_,"parseTableToArray",{enumerable:!0,get:function(){return pg}}),Object.defineProperty(_,"pen_solid_default",{enumerable:!0,get:function(){return fl}}),Object.defineProperty(_,"plus_solid_default",{enumerable:!0,get:function(){return bN}}),Object.defineProperty(_,"prepareEditorHTML",{enumerable:!0,get:function(){return Mm}}),Object.defineProperty(_,"processTableText",{enumerable:!0,get:function(){return Sg}}),Object.defineProperty(_,"provideAmp",{enumerable:!0,get:function(){return tP}}),Object.defineProperty(_,"provideAttributePipeline",{enumerable:!0,get:function(){return pb}}),Object.defineProperty(_,"provideDocumentSync",{enumerable:!0,get:function(){return cO}}),Object.defineProperty(_,"provideEmVersion",{enumerable:!0,get:function(){return HL}}),Object.defineProperty(_,"provideFocus",{enumerable:!0,get:function(){return dP}}),Object.defineProperty(_,"provideImageCache",{enumerable:!0,get:function(){return aO}}),Object.defineProperty(_,"provideSandboxState",{enumerable:!0,get:function(){return uO}}),Object.defineProperty(_,"registerCorrectVariableSelectionService",{enumerable:!0,get:function(){return cv}}),Object.defineProperty(_,"registerCrossDomainDD",{enumerable:!0,get:function(){return mO}}),Object.defineProperty(_,"registerExtensionScriptsService",{enumerable:!0,get:function(){return nL}}),Object.defineProperty(_,"registerLocalizationService",{enumerable:!0,get:function(){return AO}}),Object.defineProperty(_,"registerProjectFontsService",{enumerable:!0,get:function(){return HO}}),Object.defineProperty(_,"registerResetService",{enumerable:!0,get:function(){return Tx}}),Object.defineProperty(_,"registerResizeWatch",{enumerable:!0,get:function(){return Ax}}),Object.defineProperty(_,"registerThemeVariablesService",{enumerable:!0,get:function(){return DO}}),Object.defineProperty(_,"removeAllAttributes",{enumerable:!0,get:function(){return xl}}),Object.defineProperty(_,"removeBySelector",{enumerable:!0,get:function(){return be}}),Object.defineProperty(_,"removeClassesByPrefix",{enumerable:!0,get:function(){return Mb}}),Object.defineProperty(_,"removeClassesByPrefix$1",{enumerable:!0,get:function(){return Eb}}),Object.defineProperty(_,"removeEditorTags",{enumerable:!0,get:function(){return dg}}),Object.defineProperty(_,"removeEmptyParents",{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(_,"removeHiddenClasses",{enumerable:!0,get:function(){return Ra}}),Object.defineProperty(_,"removeLastWord",{enumerable:!0,get:function(){return AP}}),Object.defineProperty(_,"removeTemporaryListClasses",{enumerable:!0,get:function(){return Tv}}),Object.defineProperty(_,"removeTrContainingDivWithClass",{enumerable:!0,get:function(){return hg}}),Object.defineProperty(_,"renumberCellOneText",{enumerable:!0,get:function(){return gg}}),Object.defineProperty(_,"replaceEmptyWithNbsp",{enumerable:!0,get:function(){return yg}}),Object.defineProperty(_,"resolveActiveElement",{enumerable:!0,get:function(){return dc}}),Object.defineProperty(_,"rgbToHex",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(_,"save_solid_default",{enumerable:!0,get:function(){return yN}}),Object.defineProperty(_,"sendResizeEvent",{enumerable:!0,get:function(){return ym}}),Object.defineProperty(_,"serializeOuterHtml",{enumerable:!0,get:function(){return Dg}}),Object.defineProperty(_,"setBlockGroupControlsPosition",{enumerable:!0,get:function(){return ZP}}),Object.defineProperty(_,"setBlockMaxWidth",{enumerable:!0,get:function(){return rN}}),Object.defineProperty(_,"setContrastBlock",{enumerable:!0,get:function(){return oy}}),Object.defineProperty(_,"setCursorInsideSpan",{enumerable:!0,get:function(){return sP}}),Object.defineProperty(_,"setCursorPositionSimple",{enumerable:!0,get:function(){return cP}}),Object.defineProperty(_,"setCursorToElement",{enumerable:!0,get:function(){return wP}}),Object.defineProperty(_,"setCustomColor",{enumerable:!0,get:function(){return hP}}),Object.defineProperty(_,"setDocumentStyles",{enumerable:!0,get:function(){return gb}}),Object.defineProperty(_,"setEditorFocus",{enumerable:!0,get:function(){return Np}}),Object.defineProperty(_,"setElementBorder",{enumerable:!0,get:function(){return ic}}),Object.defineProperty(_,"setElementBorderRadius",{enumerable:!0,get:function(){return oc}}),Object.defineProperty(_,"setElementBoxShadow",{enumerable:!0,get:function(){return Pb}}),Object.defineProperty(_,"setElementMobileAlign",{enumerable:!0,get:function(){return qb}}),Object.defineProperty(_,"setElementMobileBackgroundColor",{enumerable:!0,get:function(){return Kb}}),Object.defineProperty(_,"setElementMobileBackgroundImage",{enumerable:!0,get:function(){return Qb}}),Object.defineProperty(_,"setElementMobileBackgroundPositionX",{enumerable:!0,get:function(){return Zb}}),Object.defineProperty(_,"setElementMobileBackgroundPositionY",{enumerable:!0,get:function(){return Jb}}),Object.defineProperty(_,"setElementMobileBackgroundRepeat",{enumerable:!0,get:function(){return ey}}),Object.defineProperty(_,"setElementMobileBackgroundSize",{enumerable:!0,get:function(){return ty}}),Object.defineProperty(_,"setElementMobileBorder",{enumerable:!0,get:function(){return Vb}}),Object.defineProperty(_,"setElementMobileBorderRadius",{enumerable:!0,get:function(){return Wb}}),Object.defineProperty(_,"setElementMobileBoxShadow",{enumerable:!0,get:function(){return Ub}}),Object.defineProperty(_,"setElementMobileContentWidth",{enumerable:!0,get:function(){return zb}}),Object.defineProperty(_,"setElementMobileDirection",{enumerable:!0,get:function(){return Yb}}),Object.defineProperty(_,"setElementMobileFontSize",{enumerable:!0,get:function(){return ry}}),Object.defineProperty(_,"setElementMobileHeight",{enumerable:!0,get:function(){return ti}}),Object.defineProperty(_,"setElementMobileLineHeight",{enumerable:!0,get:function(){return ny}}),Object.defineProperty(_,"setElementMobilePadding",{enumerable:!0,get:function(){return zr}}),Object.defineProperty(_,"setElementMobileTableAlign",{enumerable:!0,get:function(){return Gb}}),Object.defineProperty(_,"setElementMobileVerticalAlign",{enumerable:!0,get:function(){return Xb}}),Object.defineProperty(_,"setElementMobileWidth",{enumerable:!0,get:function(){return Hb}}),Object.defineProperty(_,"setElementShow",{enumerable:!0,get:function(){return iy}}),Object.defineProperty(_,"setEmailBackgroundSettings",{enumerable:!0,get:function(){return _b}}),Object.defineProperty(_,"setFloatBlocksWidth",{enumerable:!0,get:function(){return tN}}),Object.defineProperty(_,"setImageWidth",{enumerable:!0,get:function(){return qP}}),Object.defineProperty(_,"setPendingPaletteInsert",{enumerable:!0,get:function(){return uv}}),Object.defineProperty(_,"setPercentsForColumns",{enumerable:!0,get:function(){return Tl}}),Object.defineProperty(_,"setRenderedAttribute",{enumerable:!0,get:function(){return Fo}}),Object.defineProperty(_,"setStructureBlocksWidth",{enumerable:!0,get:function(){return ul}}),Object.defineProperty(_,"state",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(_,"stickyCheck",{enumerable:!0,get:function(){return JP}}),Object.defineProperty(_,"stripButtonVML",{enumerable:!0,get:function(){return Oy}}),Object.defineProperty(_,"stripSubjectTags",{enumerable:!0,get:function(){return Hp}}),Object.defineProperty(_,"styleMenuElement",{enumerable:!0,get:function(){return Mv}}),Object.defineProperty(_,"styleMenuElementList",{enumerable:!0,get:function(){return Nv}}),Object.defineProperty(_,"syncButtonVML",{enumerable:!0,get:function(){return wc}}),Object.defineProperty(_,"takeEblockRootSavedToProject",{enumerable:!0,get:function(){return IL}}),Object.defineProperty(_,"textHasStyle",{enumerable:!0,get:function(){return bP}}),Object.defineProperty(_,"textHasStyle$1",{enumerable:!0,get:function(){return Cb}}),Object.defineProperty(_,"toEmFontClassToken",{enumerable:!0,get:function(){return Kn}}),Object.defineProperty(_,"trash_alt_solid_default",{enumerable:!0,get:function(){return vN}}),Object.defineProperty(_,"updateButtonVMLLabel",{enumerable:!0,get:function(){return cs}}),Object.defineProperty(_,"updateDivWithClassAndNbsp",{enumerable:!0,get:function(){return wg}}),Object.defineProperty(_,"updateTableNumbering",{enumerable:!0,get:function(){return bg}}),Object.defineProperty(_,"updateTableStyle",{enumerable:!0,get:function(){return Qp}}),Object.defineProperty(_,"uptimeCountdown",{enumerable:!0,get:function(){return XP}})});
85
+ `),i.prepend(document.querySelector(c).cloneNode(!0)))}}),n.append(i),mh(n,[...n.querySelectorAll("style")],{forceMediaMerge:!0});let s=Nt(n);return e.tagName==="TR"?s=s.replaceAll(/<body(.|\n|\r)*?><table>/gi,"").replaceAll(/<\/table><\/body>/gi,""):s=s.replaceAll(/<body(.|\n|\r)*?><div>/gi,"").replaceAll(/<\/div><\/body>/gi,""),s=s.replaceAll(/html {((.|\n|\r)*?)}/gi,"").replaceAll(/<style[^>]*>\s*<\/style>/gi,""),s}function QP(e,t){const{HTMLDocument:r,messageService:n}=t,i=e.closest('[em="block"]');if(!i)return;const o=KP(i,r);if(!o)return;DL(i);const s=i.getAttribute("em-block-id"),a=i.getAttribute("em-block-version");n.send({operation:"application_eblock_add",data:pn({html:o.trim(),isBlock:!0}),settings:{...s?{emBlockId:s}:{},...a?{emBlockVersion:a}:{}}})}function ZP(e){const t=document.querySelector(".em-element-editor:not(.of-atom)");if(!t)return;const r=(t.closest('[em="block"]')||t.closest('[em="group"]'))?.getBoundingClientRect().top||0;if(e.scrollTop>r+55){const n=e.scrollTop-r;t.style.top=n+8+"px"}else t.style.removeProperty("top")}function JP(e){const t=document.querySelector(".em-element-editor");if(!t)return;const r=t.getBoundingClientRect(),n=document.querySelector(".em-element-editor-widget");n&&(r.top<0?n.classList.add("sticky"):n.classList.remove("sticky"),r.top+t.offsetHeight-10-n.offsetHeight<0&&n.classList.remove("sticky"),e(!1))}function Im(){return _e.get("emailWidth")}function eN(e){const t=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)");for(let r=0;r<t.length;r++){const n=t[r];if(n.classList.contains("em-insert-ignore"))continue;const i=n.getAttribute("width");if(i!=null&&i!=="")return!0}return!1}function tN(e,t){const r=Im(),n=document.createElement("table");n.replaceChildren(...xe(e.blockHTML));let i=660;if(e.targetBlock.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")){i=0;const a=n.querySelector(".em-mob-wrap:empty, .noresp-em-mob-wrap:empty")?660:e.project==="useblocks"?640:660;if(document.body.clientWidth>(r||a))i=e.targetBlock.clientWidth;else{const l=e.targetBlock.querySelector(".em-mob-wrap, .noresp-em-mob-wrap");if(l&&l.parentElement){l.parentElement.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").forEach(f=>{i+=parseFloat(f.getAttribute("width")||"0")});const c=l.parentElement.closest("td"),u=parseFloat(c?.style.paddingLeft||"0")||0,d=parseFloat(c?.style.paddingRight||"0")||0;i+=u,i+=d}}}else if(e.targetBlock.closest(".container-td"))i=parseInt(String(e.targetBlock.offsetWidth));else{const a=e.targetBlock.querySelector('table[style*="max-width"]'),l=e.targetBlock.querySelector('div[style*="max-width"]'),c=e.targetBlock.querySelector('.row-content[style*="width"]');a?i=parseInt(String(a.offsetWidth)):l?i=parseInt(String(l.offsetWidth)):c?i=parseInt(String(c.offsetWidth)):i=e.targetBlock.style.maxWidth?parseFloat(e.targetBlock.style.maxWidth):e.targetBlock.getBoundingClientRect().width}let o=n.querySelector(".em-mob-wrap:empty, .noresp-em-mob-wrap:empty")?660:e.project==="useblocks"?640:660;if(n.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")){o=0;const a=n.querySelector(".em-mob-wrap, .noresp-em-mob-wrap");if(a&&a.parentElement){a.parentElement.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").forEach(d=>{o+=parseFloat(d.getAttribute("width")||"0")});const l=a.parentElement.closest("td"),c=parseFloat(l?.style.paddingLeft||"0")||0,u=parseFloat(l?.style.paddingRight||"0")||0;o+=c,o+=u}}if(n.querySelector('div[style*="inline-block"]')){if(i<660&&n.querySelector('div[style*="inline-block"]'))if(n.querySelectorAll('div[style*="inline-block"]').length>1)n.querySelectorAll('div[style*="inline-block"]').forEach(a=>{const l=a,c=parseFloat(l.style.width),u=c/o,d=a.firstElementChild;if(!d)return;const f=c-parseFloat(d.getAttribute("width")||"0"),h=parseFloat(String(i*u));l.style.width=h+"px",d.setAttribute("width",String(h-f)),Fr({elem:l,width:h})});else{const a=n.querySelector('div[style*="inline-block"]');a.style.maxWidth=i+"px",Fr({elem:a,width:i}),a.firstElementChild&&(a.firstElementChild.setAttribute("width",String(Math.round(i*.91))),a.firstElementChild.style.maxWidth=Math.round(i*.91)+"px")}}else if(n.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")){const a=[];n.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").forEach(function(l){const c=Sl(l);c&&a.indexOf(c)===-1&&a.push(c)}),a.forEach(l=>{const c=l.querySelector(".em-mob-wrap, .noresp-em-mob-wrap");if(!c||!c.parentElement)return;const u=c.parentElement.closest("td"),d=parseFloat(u?.style.paddingLeft||"0")||0,f=parseFloat(u?.style.paddingRight||"0")||0;if(l.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").length>1){if(!eN(l))return;const h=l.querySelector(".em-mob-wrap:nth-child(even), .noresp-em-mob-wrap:nth-child(even)"),g=h?parseFloat(h.getAttribute("width")||"0"):0,y=l.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").length;let A=0,L=0;l.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").forEach(E=>{if(E.getAttribute("width")&&!E.classList.contains("em-insert-ignore")){const m=parseFloat(E.getAttribute("width"))/o,b=Math.round(parseFloat(String(i*m))-g/(y*2));E.setAttribute("width",String(b)),A+=b}});const C=i-(d+f+g*(y-1)+A);l.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)").forEach(E=>{if(E.getAttribute("width")&&!E.classList.contains("em-insert-ignore")){const m=parseFloat(E.getAttribute("width"))+Math.round(C/y);L+=m,E.setAttribute("width",String(m)),E.querySelector("img")&&E.querySelectorAll("img").forEach(b=>{parseFloat(b.getAttribute("width")||"0")>parseFloat(E.getAttribute("width"))+Math.round(C/y)&&(b.setAttribute("width",E.getAttribute("width")),b.style.maxWidth=E.getAttribute("width")+"px")})}}),L=L+g*(y-1)+d+f;const O=i-L;if(O!==0&&A>0){const E=l.querySelector(".em-mob-wrap:last-child, .noresp-em-mob-wrap:last-child");if(E&&!E.classList.contains("em-insert-ignore")){const m=parseFloat(E.getAttribute("width")||"0");E.setAttribute("width",String(m+O))}else{const m=l.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)");for(let b=m.length-1;b>=0;b--){const S=m[b];if(S.classList.contains("em-insert-ignore"))continue;const p=parseFloat(S.getAttribute("width")||"0");S.setAttribute("width",String(p+O));break}}}}else if(c.getAttribute("width")&&!c.classList.contains("em-insert-ignore")){const h=Math.round(i-d-f);c.setAttribute("width",String(h))}})}const s=n.querySelector("tr");return s?Nt(s):Se(n)}function rN(e,t){const r=Im(),n=document.createElement("table");n.replaceChildren(...xe(e.blockHTML));let i=660;const o=e.targetBlock.tagName==="TR"?document.createElement("table"):document.createElement("div");if(o.style.width=r+"px",o.style.height="1000px",o.style.borderCollapse="collapse",o.setAttribute("cellpadding","0"),o.setAttribute("cellspacing","0"),o.style.position="absolute",o.style.top="-9999px",o.style.left="-9999px",document.body.appendChild(o),o.innerHTML=t.getOuterHtml(e.targetBlock),r)i=r;else{const l=o.querySelector('table[style*="max-width"]'),c=o.querySelector('div[style*="max-width"]'),u=o.querySelector('.row-content[style*="width"]');if(l)i=parseInt(String(l.offsetWidth));else if(c)i=parseInt(String(c.offsetWidth));else if(u)i=parseInt(String(u.offsetWidth));else{const d=o.querySelector(e.targetBlock.tagName);i=d?.style.maxWidth?parseFloat(d.style.maxWidth):d?.getBoundingClientRect().width||660}}document.body.removeChild(o);const s=n.querySelector("table:first-child");s?.style.maxWidth&&(s.style.maxWidth=i+"px",Fr({elem:s,width:i}));const a=n.querySelector("tr");return a?Nt(a):Se(n)}function ul(e){const t=e.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap");if(!t.length)return;const r=e.querySelectorAll(".em-mob-wrap:nth-child(odd), .noresp-em-mob-wrap:nth-child(odd)"),n=Array.from(r).filter(u=>!u.classList.contains("em-insert-ignore")&&u.getAttribute("width")!=null&&u.getAttribute("width")!=="");if(n.length===0)return;const i=e.parentElement?.getBoundingClientRect().width||0;let o=0,s=0;t.forEach(u=>{o+=parseFloat(u.getAttribute("width")||"0")});let a=e.querySelector(".em-mob-wrap");for(;a&&a!==e.parentElement?.parentElement;){const u=window.getComputedStyle(a),d=parseFloat(u.paddingLeft)||0,f=parseFloat(u.paddingRight)||0;(d>0||f>0)&&(s+=d+f),a=a.parentElement}const l=i-(o+s),c=n.length;n.forEach(u=>{const d=parseFloat(u.getAttribute("width")||"0")+Math.ceil(l/c);u.setAttribute("width",String(d))})}function nN(e){const t={all:null,top:null,right:null,bottom:null,left:null},r={all:null,top:null,right:null,bottom:null,left:null},n=ts({elem:e}),i=n.mobileWidth,o=n.mobileHeight;(e.style.padding||e.style.paddingTop||e.style.paddingRight||e.style.paddingBottom||e.style.paddingLeft)&&(!e.style.padding||e.style.padding.indexOf(" ")>-1?t.all=null:!e.style.padding&&e.style.paddingTop&&e.style.paddingRight&&e.style.paddingBottom&&e.style.paddingLeft&&e.style.paddingTop===e.style.paddingRight&&e.style.paddingRight===e.style.paddingBottom&&e.style.paddingBottom===e.style.paddingLeft?t.all=parseFloat(e.style.paddingTop):t.all=parseFloat(e.style.padding),t.top=e.style.paddingTop?parseFloat(e.style.paddingTop):null,t.right=e.style.paddingRight?parseFloat(e.style.paddingRight):null,t.bottom=e.style.paddingBottom?parseFloat(e.style.paddingBottom):null,t.left=e.style.paddingLeft?parseFloat(e.style.paddingLeft):null),(n.mobilePadding.all!==null||n.mobilePadding.top!==null||n.mobilePadding.right!==null||n.mobilePadding.bottom!==null||n.mobilePadding.left!==null)&&(n.mobilePadding.all?!n.mobilePadding.all&&n.mobilePadding.top&&n.mobilePadding.right&&n.mobilePadding.bottom&&n.mobilePadding.left&&n.mobilePadding.top===n.mobilePadding.right&&n.mobilePadding.right===n.mobilePadding.bottom&&n.mobilePadding.bottom===n.mobilePadding.left?r.all=parseFloat(String(n.mobilePadding.top)):r.all=n.mobilePadding.all!==null?parseFloat(String(n.mobilePadding.all)):null:r.all=null,r.top=n.mobilePadding.top!==null?parseFloat(String(n.mobilePadding.top)):n.mobilePadding.all===null?null:n.mobilePadding.all,r.right=n.mobilePadding.right!==null?parseFloat(String(n.mobilePadding.right)):n.mobilePadding.all===null?null:n.mobilePadding.all,r.bottom=n.mobilePadding.bottom!==null?parseFloat(String(n.mobilePadding.bottom)):n.mobilePadding.all===null?null:n.mobilePadding.all,r.left=n.mobilePadding.left!==null?parseFloat(String(n.mobilePadding.left)):n.mobilePadding.all===null?null:n.mobilePadding.all);let s=e.getAttribute("align")??"";e.parentElement?.getAttribute("em")!=="group"&&e.querySelector('[em="atom"]')&&e.querySelectorAll('[em="atom"] > tr > td').forEach(c=>{c.getAttribute("align")!==s&&(s="")});const a={padding:t,borderRadius:rc(e),backgroundColor:e.style.backgroundColor?ye(e.style.backgroundColor):e.getAttribute("bgcolor")||"",backgroundImage:[{type:"url",value:""}],backgroundPositionX:e.style.backgroundPositionX&&e.style.backgroundPositionX!=="initial"?e.style.backgroundPositionX:"",backgroundPositionY:e.style.backgroundPositionY&&e.style.backgroundPositionY!=="initial"?e.style.backgroundPositionY:"",backgroundRepeat:e.style.backgroundRepeat||"repeat",backgroundSize:e.style.backgroundSize||"auto",height:{value:e.getAttribute("height")&&e.getAttribute("height")!=="auto"?parseFloat(e.getAttribute("height")):null,dim:e.getAttribute("height")&&e.getAttribute("height")!=="auto"&&e.getAttribute("height").indexOf("%")>-1?"%":"px"},align:s,valign:e.getAttribute("valign")??"",border:tc(e),boxShadow:nc(e),mobileWidth:{value:i!==null?i:null,dim:n.mobileWidthDim},mobileHeight:{value:o!==null?o:null,dim:n.mobileHeightDim},mobileBorder:n.mobileBorder,mobileBorderRadius:n.mobileBorderRadius,mobileBoxShadow:n.mobileBoxShadow,mobileAlign:n.mobileAlign,mobileVerticalAlign:n.mobileVerticalAlign,mobileDirection:n.mobileDirection,mobileBackgroundColor:n.mobileBackgroundColor,mobileBackgroundImage:n.mobileBackgroundImage,mobileBackgroundPositionX:n.mobileBackgroundPositionX,mobileBackgroundPositionY:n.mobileBackgroundPositionY,mobileBackgroundRepeat:n.mobileBackgroundRepeat,mobileBackgroundSize:n.mobileBackgroundSize,mobilePadding:r,show:n.show,exportAsPicture:e.getAttribute("em-operation")==="exportAsPicture",outlookBackground:is(e,"inside")},l=e.closest("table");if(l&&l.getAttribute("em")==="atom"){const c=l.getAttribute("width");a.width={value:c&&c!=="auto"?parseFloat(c):null,dim:c&&c!=="auto"&&c.indexOf("%")>-1?"%":"px"}}else{const c=e.getAttribute("width");a.width={value:c&&c!=="auto"?parseFloat(c):null,dim:c&&c!=="auto"&&c.indexOf("%")>-1?"%":"px"}}if(e.style.backgroundImage){const c=e.style.backgroundImage;a.backgroundImage=[{type:"url",value:c?c.substring(5,c.length-2):""}]}else e.getAttribute("background")&&(a.backgroundImage=[{type:"url",value:e.getAttribute("background")||""}]);return a}function iN(e){let t=[],r=null,n=null,i="",o,s=!1;if(e.elem.closest(".em-mob-wrap, .noresp-em-mob-wrap")){const a=e.elem.closest(".em-mob-wrap, .noresp-em-mob-wrap");if(o=!0,a.parentElement.querySelectorAll(":scope > .em-mob-wrap, :scope > .noresp-em-mob-wrap").length>1)a.parentElement.querySelectorAll(":scope > .em-mob-wrap:nth-child(odd), :scope > .noresp-em-mob-wrap:nth-child(odd)").forEach(l=>{t.push({width:parseFloat(l.getAttribute("width")||"0"),current:l===a});const c=a.parentElement.querySelector(":scope > .em-mob-wrap, :scope > .noresp-em-mob-wrap");c?.nextElementSibling&&(r=parseFloat(c.nextElementSibling.getAttribute("width")||"0"),n=ts({elem:c.nextElementSibling}).mobileHeight||0),(l.classList.contains("em-mob-wrap-cancel")||l.classList.contains("noresp-em-mob-wrap-cancel"))&&(o=!1)});else{const l=a.parentElement.querySelector(":scope > .em-mob-wrap, :scope > .noresp-em-mob-wrap");t=[{width:parseFloat(l?.getAttribute("width")||"0"),current:!0}],r=0}i=a.parentElement.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")?.getAttribute("valign")||"",(e.elem.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")?document.querySelector('[em-edit="active"]'):e.elem.closest(".em-mob-wrap, .noresp-em-mob-wrap").parentElement.closest("td"))?.getAttribute("dir")==="rtl"&&(s=!0)}else{const a=e.elem.closest('div[style*="inline-block"]');if(a&&a.parentElement.querySelectorAll('div[style*="inline-block"]').length>1)a.parentElement.querySelectorAll('div[style*="inline-block"]').forEach(l=>{const c=l;if(!c.style.fontFamily){const u=l.firstElementChild;t.push({width:parseFloat(u?.getAttribute("width")||"0"),current:l===a});const d=u?.getAttribute("width"),f=parseFloat(c.style.width);r=f-(!d||d.indexOf("%")>-1?f:parseFloat(d))}});else{const l=a?.parentElement?.querySelector('div[style*="inline-block"]');t=[{width:parseFloat(l?.firstElementChild?.getAttribute("width")||"0"),current:!0}],r=0}i=a?.parentElement?.querySelector('div[style*="inline-block"]')?.style.verticalAlign||"",(e.elem.querySelector('div[style*="inline-block"]')?document.querySelector('[em-edit="active"]'):e.elem.closest('div[style*="inline-block"]')?.parentElement)?.getAttribute("dir")==="rtl"&&(s=!0)}return{items:t,gap:r,gapMobile:n,valign:i,wrap:o,dirRevers:s}}var oN='table[em-type="social"]';function sN(e){return e.closest(oN)}function aN(e,t){return t.contains(e)?!!(e.tagName==="IMG"||e.tagName==="TD"&&(e.hasAttribute("em-platform")||e.hasAttribute("data-em-platform"))||e.tagName==="A"&&e.querySelector(":scope > img")):!1}function Bm(e){const t=sN(e);if(t&&e!==t&&aN(e,t))return t;const r=e.parentNode;if(!r)return!1;const n=r.tagName,i=r.style,o=r.parentNode;return n==="TD"||n==="TABLE"&&o?.style.display!=="inline-block"&&!e.closest(".em-narrow-table")&&r.getAttribute("em")!=="atom"||n==="DIV"&&(i.display==="inline-block"||i.display==="table-cell")&&i.verticalAlign||(n==="DIV"||n==="TABLE")&&lN(i)?r:Bm(r)}function lN(e){return!!(e.width||e.minWidth||e.maxWidth||e.height||e.background||e.backgroundColor||e.backgroundPositionX||e.backgroundPositionY||e.backgroundImage||e.backgroundRepeat||e.backgroundSize||e.padding||e.paddingTop||e.paddingRight||e.paddingBottom||e.paddingLeft||e.border||e.borderBottom||e.borderBottomWidth||e.borderBottomStyle||e.borderBottomColor||e.borderLeft||e.borderLeftWidth||e.borderLeftStyle||e.borderLeftColor||e.borderTop||e.borderTopWidth||e.borderTopStyle||e.borderTopColor||e.borderRight||e.borderRightWidth||e.borderRightStyle||e.borderRightColor||e.borderRadius||e.borderTopLeftRadius||e.borderTopRightRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius||e.boxShadow||e.textAlign||e.align||e.verticalAlign)}function Ht(e,t){return{settings:e,elem:t}}var Q=null;function cN(e){Q=e}function uN(){return _e.get("emailWidth")||475}function bo(){return document.documentElement.clientWidth<=uN()}function dl(e,t,r,n){if(!Q)return;const i=e;i.style.cursor=r,i.mousemove=t,i.onmousedown=function(){window.getSelection()?.removeAllRanges(),Q.applicationElementSettingsSet({elem:e});const o=document.querySelector("[em-edit]");o&&Q.setCursorPosition(o),document.documentElement.classList.add("em-resize-start");try{document.documentElement.addEventListener("mousemove",i.doDrag,!1),document.documentElement.addEventListener("mouseup",i.stopDrag,!1)}catch{}},i.doDrag=function(o){if(o.which!=1){i.stopDrag();return}i.mousemove(o)},i.stopDrag=function(){document.documentElement.removeEventListener("mousemove",i.doDrag,!1),document.documentElement.removeEventListener("mouseup",i.stopDrag,!1),n&&n(),setTimeout(()=>{document.documentElement.classList.remove("em-resize-start"),Q.commit(!1)})}}function zt(e,t,r){dl(e,t,"ns-resize",r)}function Nn(e,t,r){dl(e,t,"ew-resize",r)}function dN(e,t,r){dl(e,t,"nwse-resize",r)}function Vt(e,t){if(!Q)return;let r=null,n=0;const i=bo();if(e.closest('div[style*="font-size"][style*="line-height"]')){if(r=e.closest('div[style*="height"][style*="line-height"]'),!r)return;n=r.clientHeight+t,i?ti(Ht({mobileHeight:{value:n>0?n:0,dim:"px",classNamePrefix:"em-mob-height-"}},r)):(r.style.height=n+"px",r.style.lineHeight=n+"px")}else if(e.closest(".em-gap")){if(r=e.closest(".em-gap"),!r)return;r.classList.add("em-hover"),n=r.clientHeight+t,r.closest("tr")?.querySelectorAll(".em-gap").forEach(o=>{const s={mobileHeight:{value:n>0?n:0,dim:"px",classNamePrefix:"em-mob-height-"}},a=o.closest(".em-mob-wrap, .noresp-em-mob-wrap");ti(Ht(s,a)),o.style.height=n+"px";const l=o.querySelector(".em-element-gap-value");l&&(l.innerHTML=n+"px")})}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingTop")){if(r=e.closest(".em-vindent-paddingTop"),!r)return;const o=r.parentElement;r.classList.add("em-hover"),n=r.clientHeight+t,r.style.height=n+"px",i&&o?zr(Ht({mobilePadding:{top:n>0?n:0,classNamePrefix:"em-mob-padding_"}},o)):o&&(o.style.paddingTop=n+"px")}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingBottom")){if(r=e.closest(".em-vindent-paddingBottom"),!r)return;const o=r.parentElement;r.classList.add("em-hover"),n=r.clientHeight+t,r.style.height=n+"px",i&&o?zr(Ht({mobilePadding:{bottom:n>0?n:0,classNamePrefix:"em-mob-padding_"}},o)):o&&(o.style.paddingBottom=n+"px")}else{if(r=e.closest("td"),!r)return;n=r.clientHeight+t,i?ti(Ht({mobileHeight:{value:n>0?n:0,dim:"px",classNamePrefix:"em-mob-height-"}},r)):r.setAttribute("height",String(n))}if(r&&!e.closest(".em-gap")){if(n>=0){const o=r.querySelector(".em-element-vindent-value");o&&(o.innerHTML=n+"px")}n<30?r.classList.add("em-vindent_low"):r.classList.remove("em-vindent_low")}r&&Q.commit()}function Wt(e){if(!Q)return;let t=null;const r=bo();if(e.closest('div[style*="height"][style*="line-height"]')){if(t=e.closest('div[style*="height"][style*="line-height"]'),!t)return;parseInt(t.style.height)<=0?t.remove():Q.applicationElementSettingsSet({elem:t})}else if(e.closest(".em-gap")){if(t=e.closest(".em-gap"),!t)return;Q.applicationElementSettingsSet({elem:t.closest('[em="block"] > td')})}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingTop")){if(t=e.closest(".em-vindent-paddingTop"),!t)return;t.classList.remove("em-hover");const n=t.parentElement;parseInt(t.style.height)<=0?r&&n?Q.applicationElementSettingsSet({elem:n}):n&&n.style.removeProperty("padding-top"):n&&Q.applicationElementSettingsSet({elem:n})}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingBottom")){if(t=e.closest(".em-vindent-paddingBottom"),!t)return;t.classList.remove("em-hover");const n=t.parentElement;parseInt(t.style.height)<=0?r&&n?Q.applicationElementSettingsSet({elem:n}):n&&n.style.removeProperty("padding-bottom"):n&&Q.applicationElementSettingsSet({elem:n})}else{if(t=e.closest("td"),!t)return;const n=t.getAttribute("height");n&&parseInt(n)<=0?t.closest("table")?.remove():Q.applicationElementSettingsSet({elem:t})}t&&Q.commit()}function Pr(e,t){if(!Q)return;let r=null,n=0;const i=bo();if(e.closest(".em-element-resize-img-container")){const o=e.closest(".em-element-resize-img-container")?.querySelector("img");if(!o)return;const s=o.clientWidth+t;o.style.maxWidth=s+"px",o.setAttribute("width",String(s)),Q.commit()}else if(e.closest(".em-gap")){if(r=e.closest(".em-gap"),!r)return;if(r.classList.add("em-hover"),n=r.clientWidth+t,n>=0){const o=r.clientWidth,s=Array.from(r.closest("tr")?.querySelectorAll(".em-mob-wrap:nth-child(odd)")||[]).map(u=>u.clientWidth),a=s.reduce((u,d)=>u+d,0),l=a+(s.length-1)*o,c=r.closest("tr");if(!c)return;if(l-3<=c.clientWidth||t<=0){let u=Array.from(c.querySelectorAll(".em-mob-wrap:nth-child(odd)")).filter(A=>A.dataset.percent).map(A=>A.dataset.percent);u.length||(u=s.map(A=>((A||0)/a*100).toFixed(1)),Tl(c.querySelectorAll(".em-mob-wrap:nth-child(odd)")));const d=l-(s.length-1)*n,f=(A,L)=>Math.round(L*parseFloat(A)/100);let h=s.map((A,L)=>f(u[L],d));const g=l-(h.reduce((A,L)=>A+L,0)+(s.length-1)*n);if(g!==0){const A=h.length-Math.abs(g);h=h.map((L,C)=>A<=C?L+(g>0?1:-1):L)}const y=h;c.querySelectorAll(".em-mob-wrap:nth-child(odd)").forEach((A,L)=>{Array.from(A.querySelectorAll("table[width]")).filter(C=>!C.getAttribute("width")?.includes("%")).forEach(C=>{+(C.getAttribute("width")||0)<=y[L]&&(C.style.maxWidth=String(y[L]),C.setAttribute("width","100%"))})}),r.style.width=n+"px",c.querySelectorAll(".em-mob-wrap:nth-child(odd)").forEach((A,L)=>A.setAttribute("width",String(y[L]))),c.querySelectorAll(".em-gap").forEach(A=>{A.parentElement?.setAttribute("width",String(n)),A.style.width=n+"px";const L=A.querySelector(".em-element-gap-value");L&&(L.innerHTML=n+"px")})}}}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingLeft")){if(r=e.closest(".em-vindent-paddingLeft"),!r)return;const o=r.parentElement;r.classList.add("em-hover"),n=r.clientWidth+t,r.style.width=n+"px",i&&o?zr(Ht({mobilePadding:{left:n>0?n:0,classNamePrefix:"em-mob-padding_"}},o)):o&&(o.style.paddingLeft=n+"px",o.querySelectorAll(":scope > table").forEach(s=>ul(s)))}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingRight")){if(r=e.closest(".em-vindent-paddingRight"),!r)return;const o=r.parentElement;r.classList.add("em-hover"),n=r.clientWidth+t,r.style.width=n+"px",i&&o?zr(Ht({mobilePadding:{right:n>0?n:0,classNamePrefix:"em-mob-padding_"}},o)):o&&(o.style.paddingRight=n+"px",o.querySelectorAll(":scope > table").forEach(s=>ul(s)))}if(r&&!e.closest(".em-gap")){if(n>=0){const o=r.querySelector(".em-element-vindent-value, .em-element-gap-value");o&&(o.innerHTML=n+"px")}n<30?r.classList.add("em-vindent_low"):r.classList.remove("em-vindent_low")}r&&Q.commit()}function Nr(e){if(!Q)return;let t=null;const r=bo();if(e.closest(".em-element-resize-img-container")){const n=e.closest(".em-element-resize-img-container")?.querySelector("img");n&&(Q.applicationElementSettingsSet({elem:n}),Q.commit())}else if(e.closest(".em-gap"))t=e.closest(".em-gap"),t&&Q.applicationElementSettingsSet({elem:t.closest('[em="block"] > td')});else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingLeft")){if(t=e.closest(".em-vindent-paddingLeft"),!t)return;t.classList.remove("em-hover");const n=t.parentElement;parseInt(t.style.width)<=0?r&&n?Q.applicationElementSettingsSet({elem:n}):n&&n.style.removeProperty("padding-left"):n&&Q.applicationElementSettingsSet({elem:n})}else if(e.closest(".em-vindent")?.classList.contains("em-vindent-paddingRight")){if(t=e.closest(".em-vindent-paddingRight"),!t)return;t.classList.remove("em-hover");const n=t.parentElement;parseInt(t.style.width)<=0?r&&n?Q.applicationElementSettingsSet({elem:n}):n&&n.style.removeProperty("padding-right"):n&&Q.applicationElementSettingsSet({elem:n})}t&&Q.commit()}var fN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 15 4 L 15 24.0625 L 8.21875 17.28125 L 6.78125 18.71875 L 15.28125 27.21875 L 16 27.90625 L 16.71875 27.21875 L 25.21875 18.71875 L 23.78125 17.28125 L 17 24.0625 L 17 4 Z"/></svg>',hN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 16 4.09375 L 15.28125 4.78125 L 6.78125 13.28125 L 8.21875 14.71875 L 15 7.9375 L 15 28 L 17 28 L 17 7.9375 L 23.78125 14.71875 L 25.21875 13.28125 L 16.71875 4.78125 Z"/></svg>',mN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 12 6 C 10.894531 6 10 6.894531 10 8 C 10 9.105469 10.894531 10 12 10 C 13.105469 10 14 9.105469 14 8 C 14 6.894531 13.105469 6 12 6 Z M 20 6 C 18.894531 6 18 6.894531 18 8 C 18 9.105469 18.894531 10 20 10 C 21.105469 10 22 9.105469 22 8 C 22 6.894531 21.105469 6 20 6 Z M 12 14 C 10.894531 14 10 14.894531 10 16 C 10 17.105469 10.894531 18 12 18 C 13.105469 18 14 17.105469 14 16 C 14 14.894531 13.105469 14 12 14 Z M 20 14 C 18.894531 14 18 14.894531 18 16 C 18 17.105469 18.894531 18 20 18 C 21.105469 18 22 17.105469 22 16 C 22 14.894531 21.105469 14 20 14 Z M 12 22 C 10.894531 22 10 22.894531 10 24 C 10 25.105469 10.894531 26 12 26 C 13.105469 26 14 25.105469 14 24 C 14 22.894531 13.105469 22 12 22 Z M 20 22 C 18.894531 22 18 22.894531 18 24 C 18 25.105469 18.894531 26 20 26 C 21.105469 26 22 25.105469 22 24 C 22 22.894531 21.105469 22 20 22 Z"/></svg>',pN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 4 4 L 4 24 L 11 24 L 11 22 L 6 22 L 6 6 L 18 6 L 18 7 L 20 7 L 20 4 Z M 12 8 L 12 28 L 28 28 L 28 8 Z M 14 10 L 26 10 L 26 26 L 14 26 Z"/></svg>',gN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 5 5 L 5 9 L 6 9 L 6 23 L 5 23 L 5 27 L 9 27 L 9 26 L 23 26 L 23 27 L 27 27 L 27 23 L 26 23 L 26 9 L 27 9 L 27 5 L 23 5 L 23 6 L 9 6 L 9 5 Z M 9 8 L 23 8 L 23 9 L 24 9 L 24 23 L 23 23 L 23 24 L 9 24 L 9 23 L 8 23 L 8 9 L 9 9 Z M 10 10 L 10 18 L 14 18 L 14 22 L 22 22 L 22 14 L 18 14 L 18 10 Z M 12 12 L 16 12 L 16 16 L 12 16 Z M 18 16 L 20 16 L 20 20 L 16 20 L 16 18 L 18 18 Z"/></svg>',fl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 23.90625 3.96875 C 22.859375 3.96875 21.8125 4.375 21 5.1875 L 5.1875 21 L 5.125 21.3125 L 4.03125 26.8125 L 3.71875 28.28125 L 5.1875 27.96875 L 10.6875 26.875 L 11 26.8125 L 26.8125 11 C 28.4375 9.375 28.4375 6.8125 26.8125 5.1875 C 26 4.375 24.953125 3.96875 23.90625 3.96875 Z M 23.90625 5.875 C 24.410156 5.875 24.917969 6.105469 25.40625 6.59375 C 26.378906 7.566406 26.378906 8.621094 25.40625 9.59375 L 24.6875 10.28125 L 21.71875 7.3125 L 22.40625 6.59375 C 22.894531 6.105469 23.402344 5.875 23.90625 5.875 Z M 20.3125 8.71875 L 23.28125 11.6875 L 11.1875 23.78125 C 10.53125 22.5 9.5 21.46875 8.21875 20.8125 Z M 6.9375 22.4375 C 8.136719 22.921875 9.078125 23.863281 9.5625 25.0625 L 6.28125 25.71875 Z"/></svg>',bN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 15 5 L 15 15 L 5 15 L 5 17 L 15 17 L 15 27 L 17 27 L 17 17 L 27 17 L 27 15 L 17 15 L 17 5 Z"/></svg>',yN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 5 5 L 5 27 L 27 27 L 27 9.59375 L 26.71875 9.28125 L 22.71875 5.28125 L 22.40625 5 Z M 7 7 L 10 7 L 10 13 L 22 13 L 22 7.4375 L 25 10.4375 L 25 25 L 23 25 L 23 16 L 9 16 L 9 25 L 7 25 Z M 12 7 L 16 7 L 16 9 L 18 9 L 18 7 L 20 7 L 20 11 L 12 11 Z M 11 18 L 21 18 L 21 25 L 11 25 Z"/></svg>',vN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 15 4 C 14.476563 4 13.941406 4.183594 13.5625 4.5625 C 13.183594 4.941406 13 5.476563 13 6 L 13 7 L 7 7 L 7 9 L 8 9 L 8 25 C 8 26.644531 9.355469 28 11 28 L 23 28 C 24.644531 28 26 26.644531 26 25 L 26 9 L 27 9 L 27 7 L 21 7 L 21 6 C 21 5.476563 20.816406 4.941406 20.4375 4.5625 C 20.058594 4.183594 19.523438 4 19 4 Z M 15 6 L 19 6 L 19 7 L 15 7 Z M 10 9 L 24 9 L 24 25 C 24 25.554688 23.554688 26 23 26 L 11 26 C 10.445313 26 10 25.554688 10 25 Z M 12 12 L 12 23 L 14 23 L 14 12 Z M 16 12 L 16 23 L 18 23 L 18 12 Z M 20 12 L 20 23 L 22 23 L 22 12 Z"/></svg>';function yo(e,t,r=""){const n=`class="${t}" width="1em" height="1em" fill="currentColor" aria-hidden="true"`;return e.replace("<svg",`<svg ${n}${r?` ${r}`:""}`)}var Mn=null;function EN(e){Mn=e}function _N(){if(!Mn)return;const e=_e.get("applicationTheme")||"light";let t=!1;try{Mn.textDocument.beginUpdate();const r=[...document.querySelectorAll('[em="css"]')].map(s=>s.getAttribute("href"));let n=document.getElementsByTagName("head")[0];if(!n)if(document.documentElement)n=document.createElement("head"),document.documentElement.insertBefore(n,document.documentElement.firstChild),t=!0;else return;const i="css/sandbox.css?ee20cf1c";if(r.indexOf(i)<0){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("em","css"),s.setAttribute("href",i),n.appendChild(s),t=!0}const o=`css/sandbox-${e}.css?ee20cf1c`;if(r.indexOf(o)<0){const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("type","text/css"),s.setAttribute("em","css"),s.setAttribute("href",o),n.appendChild(s),t=!0}}finally{Mn.textDocument.endUpdate()}t&&Mn.commit(!1)}var SN='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M 16 4 C 10.886719 4 6.617188 7.160156 4.875 11.625 L 6.71875 12.375 C 8.175781 8.640625 11.710938 6 16 6 C 19.242188 6 22.132813 7.589844 23.9375 10 L 20 10 L 20 12 L 27 12 L 27 5 L 25 5 L 25 8.09375 C 22.808594 5.582031 19.570313 4 16 4 Z M 25.28125 19.625 C 23.824219 23.359375 20.289063 26 16 26 C 12.722656 26 9.84375 24.386719 8.03125 22 L 12 22 L 12 20 L 5 20 L 5 27 L 7 27 L 7 23.90625 C 9.1875 26.386719 12.394531 28 16 28 C 21.113281 28 25.382813 24.839844 27.125 20.375 Z"/></svg>',vo=null,wN=".em-prevent-action",Fm=new WeakSet;function CN(e){vo=e}function AN(){return _e.get("emailWidth")||475}function TN(){return _e.get("isLeftButtonDown")||!1}function kN(){return _e.get("editImageControlEnabled")||!1}function jm(){return _e.get("imageCenterEditorEnabled")||!1}function LN(){return _e.get("imageCenterStockEnabled")||!1}function ON(){return _e.get("imageCenterGifEnabled")||!1}function xN(){return _e.get("elementAIimageEnabled")||!1}function PN(e){if(!vo||document.body?.classList.contains("em-native-file-drag"))return;const t=vo.getLocale(),r=AN(),n=TN(),i=jm(),o=document.documentElement.clientWidth<=(r||475);if(document.body&&!document.body.classList.contains("mceNonEditable")&&!n){if(e.tagName==="TD"&&e.innerHTML===""&&e.getAttribute("height")&&!e.classList.contains("em-vindent")&&!e.closest("editor")){e.classList.add("em-vindent"),e.closest("table")?.classList.add("em-vindent-table"),parseInt(e.getAttribute("height")||"0")<30&&e.classList.add("em-vindent_low");const g=z({targetElement:e,insertType:"append",className:"em-element-resize-height"});z({targetElement:e,insertType:"append",className:"em-element-vindent"}),z({targetElement:e,insertType:"append",className:"em-element-vindent-bg"}),zt(g,function(y){Vt(g,y.movementY)},function(){Wt(g)})}if(e.closest(wN))return;if((e.classList.contains("em-vindent")||e.closest(".em-vindent"))&&e.getAttribute("height")&&!e.querySelector(".em-element-vindent-value")){const g=At(e,"em-mob-height"),y=g?parseFloat(g.substring(14,g.length-2)):void 0;z({targetElement:e.querySelector(".em-element-vindent"),insertType:"append",className:"em-element-vindent-value",HTMLcontent:o?(y||e.getAttribute("height"))+"px":e.getAttribute("height")+"px"}),!o||!y?parseInt(e.getAttribute("height")||"0")<30?e.classList.add("em-vindent_low"):e.classList.remove("em-vindent_low"):y<30?e.classList.add("em-vindent_low"):e.classList.remove("em-vindent_low")}if(e.tagName==="DIV"&&e.style.height&&e.style.fontSize&&!e.classList.contains("em-vindent")&&!e.closest("editor")&&e.style.height&&e.style.lineHeight&&!e.style.fontFamily){e.classList.add("em-vindent"),parseFloat(e.style.height)<30&&e.classList.add("em-vindent_low");const g=z({targetElement:e,insertType:"append",className:"em-element-resize-height"}),y=z({targetElement:e,insertType:"append",className:"em-element-vindent"});z({targetElement:y,insertType:"append",className:"em-element-vindent-value",HTMLcontent:e.style.height}),z({targetElement:e,insertType:"append",className:"em-element-vindent-bg"}),zt(g,function(A){Vt(g,A.movementY)},function(){Wt(g)})}if((e.classList.contains("em-vindent")||e.closest(".em-vindent"))&&e.style.height&&e.style.fontSize&&!e.querySelector(".em-element-vindent-value")){const g=At(e,"em-mob-height"),y=g?parseFloat(g.substring(14,g.length-2)):void 0;z({targetElement:e.querySelector(".em-element-vindent"),insertType:"append",className:"em-element-vindent-value",HTMLcontent:o?(y||parseFloat(e.style.height))+"px":parseFloat(e.style.height)+"px"}),!o||!y?parseFloat(e.style.height)<30?e.classList.add("em-vindent_low"):e.classList.remove("em-vindent_low"):y<30?e.classList.add("em-vindent_low"):e.classList.remove("em-vindent_low")}const s=At(e,"em-mob-padding_top"),a=s?parseFloat(s.substring(19)):void 0,l=At(e,"em-mob-padding_bottom"),c=l?parseFloat(l.substring(22)):void 0,u=At(e,"em-mob-padding_left"),d=u?parseFloat(u.substring(20)):void 0,f=At(e,"em-mob-padding_right"),h=f?parseFloat(f.substring(21)):void 0;if((e.style.padding||e.style.paddingTop||e.style.paddingBottom||e.style.paddingLeft||e.style.paddingRight)&&!e.closest("editor")&&(e.tagName!=="A"||e.style.height)){if(e.style.paddingTop&&!e.querySelector(":scope > .em-vindent-paddingTop")&&!e.querySelector(":scope > editor > .em-vindent-paddingTop")&&(!a||!o)){const g=z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingTop",style:`height: ${e.style.paddingTop}`});e.getBoundingClientRect().top<30&&g.classList.add("top-crossed")}e.style.paddingBottom&&!e.querySelector(":scope > .em-vindent-paddingBottom")&&!e.querySelector(":scope > editor > .em-vindent-paddingBottom")&&(!c||!o)&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingBottom",style:`height: ${e.style.paddingBottom}`}),e.style.paddingLeft&&!e.querySelector(":scope > .em-vindent-paddingLeft")&&!e.querySelector(":scope > editor > .em-vindent-paddingLeft")&&(!d||!o)&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingLeft",style:`width: ${e.style.paddingLeft}`}),e.style.paddingRight&&!e.querySelector(":scope > .em-vindent-paddingRight")&&!e.querySelector(":scope > editor > .em-vindent-paddingRight")&&(!h||!o)&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingRight",style:`width: ${e.style.paddingRight}`}),e.querySelectorAll('[class*="em-vindent-padding"]').forEach(g=>{if(!g.querySelector(".em-element-resize-height")){const y=g;(parseFloat(y.style.height)<30||parseFloat(y.style.width)<30)&&g.classList.add("em-vindent_low");const A=z({targetElement:y,insertType:"append",className:"em-element-resize-height"});z({targetElement:y,insertType:"append",className:"em-element-vindent-marker"}),z({targetElement:y,insertType:"append",className:"em-element-vindent-bg"});const L=z({targetElement:y,insertType:"append",className:"em-element-vindent"});let C="";y.className.indexOf("paddingTop")>-1?(C=e.style.paddingTop,zt(A,function(O){Vt(A,O.movementY)},function(){Wt(A)})):y.className.indexOf("paddingBottom")>-1?(C=e.style.paddingBottom,zt(A,function(O){Vt(A,O.movementY)},function(){Wt(A)})):y.className.indexOf("paddingLeft")>-1?(C=e.style.paddingLeft,Nn(A,function(O){Pr(A,O.movementX)},function(){Nr(A)})):y.className.indexOf("paddingRight")>-1&&(C=e.style.paddingRight,Nn(A,function(O){Pr(A,-O.movementX)},function(){Nr(A)})),z({targetElement:L,insertType:"append",className:"em-element-vindent-value",HTMLcontent:C})}})}if(e.className.length&&e.className?.includes("em-mob-padding")&&!e.closest("editor")&&o&&(a&&!e.querySelector(":scope > .em-vindent-paddingTop")&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingTop",style:`height: ${a}px`}),c&&!e.querySelector(":scope > .em-vindent-paddingBottom")&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingBottom",style:`height: ${c}px`}),d&&!e.querySelector(":scope > .em-vindent-paddingLeft")&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingLeft",style:`width: ${d}px`}),h&&!e.querySelector(":scope > .em-vindent-paddingRight")&&z({targetElement:e,insertType:"append",className:"em-vindent em-vindent-paddingRight",style:`width: ${h}px`}),e.querySelectorAll('[class*="em-vindent-padding"]').forEach(g=>{if(!g.querySelector(".em-element-resize-height")){const y=g;(parseFloat(y.style.height)<30||parseFloat(y.style.width)<30)&&g.classList.add("em-vindent_low");const A=z({targetElement:y,insertType:"append",className:"em-element-resize-height"});z({targetElement:y,insertType:"append",className:"em-element-vindent-marker"}),z({targetElement:y,insertType:"append",className:"em-element-vindent-bg"});const L=z({targetElement:y,insertType:"append",className:"em-element-vindent"});let C="";y.className.indexOf("paddingTop")>-1?(C=a,zt(A,function(O){Vt(A,O.movementY)},function(){Wt(A)})):y.className.indexOf("paddingBottom")>-1?(C=c,zt(A,function(O){Vt(A,O.movementY)},function(){Wt(A)})):y.className.indexOf("paddingLeft")>-1?(C=d,Nn(A,function(O){Pr(A,O.movementX)},function(){Nr(A)})):y.className.indexOf("paddingRight")>-1&&(C=h,Nn(A,function(O){Pr(A,-O.movementX)},function(){Nr(A)})),z({targetElement:L,insertType:"append",className:"em-element-vindent-value",HTMLcontent:String(C)})}})),e.closest('[em="block"]')?.querySelector(".em-mob-wrap, .noresp-em-mob-wrap")&&(e.closest('[em="block"]')?.querySelectorAll(".em-mob-wrap, .noresp-em-mob-wrap").length||0)>2&&!e.closest('[em="block"]')?.querySelector(".em-mob-wrap .em-gap, .noresp-em-mob-wrap .em-gap")){const g=At(e.closest('[em="block"]')?.querySelector(".em-mob-wrap:nth-child(even), .noresp-em-mob-wrap:nth-child(even)"),"em-mob-height"),y=g?parseFloat(g.substring(14,g.length-2)):void 0;e.closest('[em="block"]')?.querySelectorAll(".em-mob-wrap:nth-child(even), .noresp-em-mob-wrap:nth-child(even)").forEach(A=>{z({targetElement:A,insertType:"append",className:"em-gap",style:o?`height: ${y}px;`:`width: ${A.getAttribute("width")}px;`})}),e.closest('[em="block"]')?.querySelectorAll(".em-gap").forEach(A=>{if(!A.querySelector(".em-element-resize-height")){const L=A,C=z({targetElement:L,insertType:"append",className:"em-element-resize-height"});z({targetElement:L,insertType:"append",className:"em-element-gap-marker"}),z({targetElement:L,insertType:"append",className:"em-element-gap-bg"});const O=z({targetElement:L,insertType:"append",className:"em-element-gap"});let E="";o?(E=L.style.height,zt(C,function(m){Vt(C,m.movementY)},function(){Wt(C)})):(E=L.style.width,Nn(C,function(m){Pr(C,m.movementX)},function(){Nr(C)})),z({targetElement:O,insertType:"append",className:"em-element-gap-value",HTMLcontent:E})}})}if(e.tagName==="IMG"){const g=e;if(g.closest("td[em-platform], td[data-em-platform]"))return;if(g.closest(".em-element-resize-img-container")||g.closest('div[style*="font-size"][style*="line-height"][style*="font-family"]')||g.closest("editor")||g.classList.contains("em-video")){if(g.closest(".em-element-resize-img-container")){const C=g.closest(".em-element-resize-img-container"),O=C.querySelector(".em-element-img-edit");!g.getAttribute("src")?.includes(".gif")&&i?O||z({targetElement:C.querySelector(".em-element-img-change-group"),insertType:"prepend",className:"em-element-img-edit",tag:"i",HTMLcontent:yo(fl,`${ii}`),title:t.CHANGE_IMAGE_EDIT}):C.querySelector(".em-element-img-edit")?.remove()}return}const y=document.createElement("span");y.classList.add("em-element-resize-img-container");const A=g.parentElement instanceof HTMLAnchorElement?g.parentElement:g;A.parentElement?.insertBefore(y,A),y.appendChild(A);const L=z({targetElement:y,insertType:"append",tag:"span",className:"em-element-resize-img"});dN(L,function(C){Pr(L,C.movementX)},function(){Nr(L)}),g?.style.maxWidth&&g?.style.display==="block"&&g.closest(".em-element-resize-img-container")?.classList.add("em-display-block"),$m(g,y)}}}function $m(e,t){const r=vo;if(!r||t.querySelector(".em-element-img-change-group"))return;const n=r.getLocale(),i=kN(),o=jm(),s=LN(),a=ON(),l=xN();if(i&&e.getBoundingClientRect().width>40&&e.getBoundingClientRect().height>40&&!e.classList.contains("em-countdown")){const c=z({targetElement:t,insertType:"append",className:"em-element-img-change-group"});if(z({targetElement:c,insertType:"append",className:"em-element-img-change",HTMLcontent:'<svg viewBox="0 0 20 20" focusable="false" data-icon="bg-colors" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M3.75 17.5C3.41667 17.5 3.125 17.375 2.875 17.125C2.625 16.875 2.5 16.5833 2.5 16.25V3.75C2.5 3.41667 2.625 3.125 2.875 2.875C3.125 2.625 3.41667 2.5 3.75 2.5H16.25C16.5833 2.5 16.875 2.625 17.125 2.875C17.375 3.125 17.5 3.41667 17.5 3.75V16.25C17.5 16.5833 17.375 16.875 17.125 17.125C16.875 17.375 16.5833 17.5 16.25 17.5H3.75ZM3.75 16.25H16.25V3.75H3.75V16.25ZM4.91667 14.2292H15.1042L12.0417 10.1458L9.29167 13.7083L7.35417 11.0625L4.91667 14.2292Z"></path></svg>',title:n.CHANGE_IMAGE}),!e.getAttribute("src")?.includes(".gif")&&o&&z({targetElement:c,insertType:"append",className:"em-element-img-edit",tag:"i",HTMLcontent:yo(fl,`${ii}`),title:n.CHANGE_IMAGE_EDIT}),s&&z({targetElement:c,insertType:"append",className:"em-element-img-stock",tag:"i",HTMLcontent:'<svg viewBox="0 0 12 12" focusable="false" data-icon="ai" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M4.12726 7.18183H9.6909L7.86364 4.76364L6.44545 6.63637L5.4909 5.49092L4.12726 7.18183ZM0.909082 11.3636C0.659082 11.3636 0.445068 11.2746 0.267041 11.0966C0.0890136 10.9186 0 10.7046 0 10.4546V2.99999H0.909082V10.4546H10.7273V11.3636H0.909082ZM2.72726 9.54546C2.47726 9.54546 2.26325 9.45644 2.08522 9.27842C1.90719 9.10039 1.81818 8.88638 1.81818 8.63638V1.90908C1.81818 1.65908 1.90719 1.44507 2.08522 1.26704C2.26325 1.08901 2.47726 1 2.72726 1H5.81817L6.90908 2.09091H11.0909C11.3409 2.09091 11.5549 2.17992 11.733 2.35795C11.911 2.53598 12 2.74999 12 2.99999V8.63638C12 8.88638 11.911 9.10039 11.733 9.27842C11.5549 9.45644 11.3409 9.54546 11.0909 9.54546H2.72726ZM2.72726 8.63638H11.0909V2.99999H6.53182L5.44091 1.90908H2.72726V8.63638Z"></path></svg>',title:n.CHANGE_IMAGE_STOCK}),z({targetElement:c,insertType:"append",className:"em-element-img-changeto",tag:"i",HTMLcontent:yo(SN,`${ii}`),title:n.CHANGE_IMAGE_CHANGETO}),a&&z({targetElement:c,insertType:"append",className:"em-element-img-gif",tag:"i",HTMLcontent:'<svg viewBox="0 0 12 12" focusable="false" data-icon="ai" width="1em" height="1em" fill="currentColor" aria-hidden="true"><<path d="M5.68571 8.14286V3H6.79999V8.14286H5.68571ZM0.771429 8.14286C0.54 8.14286 0.353571 8.06786 0.212143 7.91786C0.0707142 7.76786 0 7.58571 0 7.37143V3.77143C0 3.55714 0.0707142 3.375 0.212143 3.225C0.353571 3.075 0.54 3 0.771429 3H3.40001C3.63144 3 3.81786 3.075 3.95929 3.225C4.10072 3.375 4.17144 3.55714 4.17144 3.77143V4.11429H1.11429V7.02857H3.05715V5.57143H4.17144V7.37143C4.17144 7.58571 4.10072 7.76786 3.95929 7.91786C3.81786 8.06786 3.63144 8.14286 3.40001 8.14286H0.771429ZM8.25714 8.14286V3H12V4.11429H9.37142V5.25714H11.1V6.37142H9.37142V8.14286H8.25714Z"></path></svg>',title:n.CHANGE_IMAGE_GIF}),l&&z({targetElement:c,insertType:"append",className:"em-element-img-ai",tag:"i",HTMLcontent:'<svg viewBox="0 0 12 12" focusable="false" data-icon="ai" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M2.45454 11.7273C2.45454 11.7273 2.16994 10.446 1.66154 9.88113C1.15314 9.31625 0 9 0 9C0 9 1.15314 8.68374 1.66154 8.11887C2.16994 7.554 2.45454 6.27273 2.45454 6.27273C2.45454 6.27273 2.73915 7.554 3.24755 8.11887C3.75594 8.68374 4.90909 9 4.90909 9C4.90909 9 3.75594 9.31625 3.24755 9.88113C2.73915 10.446 2.45454 11.7273 2.45454 11.7273Z"></path><path d="M7.63636 9C7.63636 9 7.1304 6.94996 6.22658 6.04614C5.32276 5.14233 3.27273 4.63636 3.27273 4.63636C3.27273 4.63636 5.32276 4.1304 6.22658 3.22657C7.1304 2.32275 7.63636 0.272728 7.63636 0.272728C7.63636 0.272728 8.14233 2.32275 9.04615 3.22657C9.94996 4.1304 12 4.63636 12 4.63636C12 4.63636 9.94996 5.14233 9.04615 6.04614C8.14233 6.94996 7.63636 9 7.63636 9Z"></path><path d="M1.63636 4.09091C1.63636 4.09091 1.44663 3.19402 1.10769 2.7986C0.768758 2.40318 0 2.18182 0 2.18182C0 2.18182 0.768758 1.96046 1.10769 1.56503C1.44663 1.16961 1.63636 0.272728 1.63636 0.272728C1.63636 0.272728 1.8261 1.16961 2.16503 1.56503C2.50397 1.96046 3.27273 2.18182 3.27273 2.18182C3.27273 2.18182 2.50397 2.40318 2.16503 2.7986C1.8261 3.19402 1.63636 4.09091 1.63636 4.09091Z"></path><path d="M10.6364 11.7273C10.6364 11.7273 10.4782 11.0866 10.1958 10.8042C9.91336 10.5218 9.27273 10.3636 9.27273 10.3636C9.27273 10.3636 9.91336 10.2055 10.1958 9.92307C10.4782 9.64064 10.6364 9 10.6364 9C10.6364 9 10.7945 9.64064 11.0769 9.92307C11.3594 10.2055 12 10.3636 12 10.3636C12 10.3636 11.3594 10.5218 11.0769 10.8042C10.7945 11.0866 10.6364 11.7273 10.6364 11.7273Z"></path></svg>',title:n.CHANGE_IMAGE_AI}),r.commit(!1),Fm.has(c))return;Fm.add(c),c.addEventListener("click",function(u){const d=u.target.closest('i[class*="em-element-img"]');let f={};e.classList.contains("em-ai-img")||d?.classList.contains("em-element-img-ai")?f={operation:"application_open-image-ai-popup"}:GL(e.getAttribute("src"))||d?.classList.contains("em-element-img-changeto")?f={operation:"application_open-image-upload-popup",src:e.getAttribute("src")}:d?.classList.contains("em-element-img-gif")?f={operation:"application_open-image-gif-popup",src:e.getAttribute("src")}:d?.classList.contains("em-element-img-stock")?f={operation:"application_open-image-stock-popup",src:e.getAttribute("src")}:f={operation:"application_open-image-edit-popup",src:e.getAttribute("src")},setTimeout(()=>{r.messageService.send(f)},100)})}}function NN(){return document.body?.classList.contains("em-sandbox-discuss")&&!document.body.classList.contains("em-sandbox-discuss_set-target")}function MN(){return document.body?.classList.contains("em-sandbox-discuss_set-target")??!1}function RN(e){const t=e.getAttribute("em-discuss-id");return t&&X.send({operation:"application_discuss_get_comment",settings:{targetId:t}}),!1}function DN(e,t){let r=e;const n=r.getAttribute("em-discuss-id"),i=r.classList.contains("em-discuss-id-new");if(!n||n&&i){if(document.querySelectorAll(".em-discuss-id-new").forEach(o=>{o!==r&&(o.removeAttribute("em-discuss-id"),o.removeAttribute("contenteditable"),o.removeAttribute("em-edit"))}),r.tagName==="EDITOR"&&(r=r.parentElement),r.getAttribute("em-discuss-id"))r.removeAttribute("em-discuss-id"),r.removeAttribute("contenteditable"),r.removeAttribute("em-edit"),X.send({operation:"application_discuss_set_id",settings:{value:""}});else{const o=t.makeId(5);r.setAttribute("em-discuss-id",o),r.setAttribute("em-edit","active"),r.setAttribute("contenteditable","true"),r.classList.add("em-discuss-id-new"),X.send({operation:"application_discuss_set_id",settings:{value:o}})}t.commit()}return{handled:!0,newClickedElement:r}}Object.defineProperty(_,"AppImpl",{enumerable:!0,get:function(){return Ui}}),Object.defineProperty(_,"CLASS_BACKGROUND_ACTIVE_CELL",{enumerable:!0,get:function(){return Ov}}),Object.defineProperty(_,"CLASS_FOR_BASIC_CELL",{enumerable:!0,get:function(){return kv}}),Object.defineProperty(_,"CLASS_FOR_BASIC_ROW",{enumerable:!0,get:function(){return Lv}}),Object.defineProperty(_,"CLASS_NAME_OL",{enumerable:!0,get:function(){return Vn}}),Object.defineProperty(_,"CLASS_NAME_UL",{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(_,"DEFAULT_LINK_COLOR",{enumerable:!0,get:function(){return Rb}}),Object.defineProperty(_,"DOCUMENT_MAPPING_ID",{enumerable:!0,get:function(){return Qo}}),Object.defineProperty(_,"Disposable",{enumerable:!0,get:function(){return Z}}),Object.defineProperty(_,"EVENT_TYPES",{enumerable:!0,get:function(){return me}}),Object.defineProperty(_,"HTML_DOCUMENT_ID",{enumerable:!0,get:function(){return Xo}}),Object.defineProperty(_,"ICON_ROLE",{enumerable:!0,get:function(){return ni}}),Object.defineProperty(_,"ICON_SIZE",{enumerable:!0,get:function(){return ii}}),Object.defineProperty(_,"IMAGE_CACHE_ID",{enumerable:!0,get:function(){return Zo}}),Object.defineProperty(_,"LIST_REGEX",{enumerable:!0,get:function(){return Sv}}),Object.defineProperty(_,"LIST_TEMP_CLASSES",{enumerable:!0,get:function(){return Rc}}),Object.defineProperty(_,"Node",{enumerable:!0,get:function(){return Oe}}),Object.defineProperty(_,"NodeType",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_,"REMOTE_DOCUMENT_ID",{enumerable:!0,get:function(){return Yo}}),Object.defineProperty(_,"STANDARD_LIST_CONTAINER_SELECTOR",{enumerable:!0,get:function(){return Yp}}),Object.defineProperty(_,"STANDARD_LIST_CONTAINER_TAGS",{enumerable:!0,get:function(){return Xp}}),Object.defineProperty(_,"STANDARD_LIST_STYLES",{enumerable:!0,get:function(){return Kp}}),Object.defineProperty(_,"TABLE_LIST_SELECTOR",{enumerable:!0,get:function(){return Gp}}),Object.defineProperty(_,"TEMPORARY_ACTIVE_CELL_BACKGROUND_COLOR",{enumerable:!0,get:function(){return ps}}),Object.defineProperty(_,"TEMPORARY_CELL_CLASS",{enumerable:!0,get:function(){return Pv}}),Object.defineProperty(_,"TEMPORARY_CLASS",{enumerable:!0,get:function(){return xv}}),Object.defineProperty(_,"TEXT_DOCUMENT_ID",{enumerable:!0,get:function(){return Ko}}),Object.defineProperty(_,"UpdateQueue",{enumerable:!0,get:function(){return dO}}),Object.defineProperty(_,"__vitePreload",{enumerable:!0,get:function(){return gs}}),Object.defineProperty(_,"_defineProperty",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_,"addBlockToProject",{enumerable:!0,get:function(){return QP}}),Object.defineProperty(_,"addClassToSecondCell",{enumerable:!0,get:function(){return Cg}}),Object.defineProperty(_,"addElement",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_,"addFontFamilyClass",{enumerable:!0,get:function(){return Wh}}),Object.defineProperty(_,"addNewRange",{enumerable:!0,get:function(){return bp}}),Object.defineProperty(_,"applyAttributesToTag",{enumerable:!0,get:function(){return SP}}),Object.defineProperty(_,"applyProjectFontInlineFallback",{enumerable:!0,get:function(){return Vh}}),Object.defineProperty(_,"applyVMLBackgroundToggle",{enumerable:!0,get:function(){return my}}),Object.defineProperty(_,"arrow_down_solid_default",{enumerable:!0,get:function(){return fN}}),Object.defineProperty(_,"arrow_up_solid_default",{enumerable:!0,get:function(){return hN}}),Object.defineProperty(_,"attachFocusService",{enumerable:!0,get:function(){return xp}}),Object.defineProperty(_,"braille_solid_default",{enumerable:!0,get:function(){return mN}}),Object.defineProperty(_,"buildEmFontClassName",{enumerable:!0,get:function(){return Qn}}),Object.defineProperty(_,"captionByRules",{enumerable:!0,get:function(){return Yx}}),Object.defineProperty(_,"changeBullets",{enumerable:!0,get:function(){return Zp}}),Object.defineProperty(_,"changeBulletsColor",{enumerable:!0,get:function(){return Jp}}),Object.defineProperty(_,"changeBulletsItalic",{enumerable:!0,get:function(){return rg}}),Object.defineProperty(_,"changeBulletsSize",{enumerable:!0,get:function(){return eg}}),Object.defineProperty(_,"changeBulletsStrikethrough",{enumerable:!0,get:function(){return ig}}),Object.defineProperty(_,"changeBulletsUnderline",{enumerable:!0,get:function(){return ng}}),Object.defineProperty(_,"changeBulletsWeight",{enumerable:!0,get:function(){return tg}}),Object.defineProperty(_,"checkBlockAdaptivity",{enumerable:!0,get:function(){return YP}}),Object.defineProperty(_,"checkForTextNodes",{enumerable:!0,get:function(){return Pm}}),Object.defineProperty(_,"checkForWorkClass",{enumerable:!0,get:function(){return fP}}),Object.defineProperty(_,"checkIsEditorInited",{enumerable:!0,get:function(){return LP}}),Object.defineProperty(_,"checkSandboxStyles",{enumerable:!0,get:function(){return _N}}),Object.defineProperty(_,"clearActiveEditElements",{enumerable:!0,get:function(){return OP}}),Object.defineProperty(_,"clearLinkTags",{enumerable:!0,get:function(){return bn}}),Object.defineProperty(_,"clearPendingPaletteInsert",{enumerable:!0,get:function(){return Mc}}),Object.defineProperty(_,"clearProjectFontFaces",{enumerable:!0,get:function(){return Ji}}),Object.defineProperty(_,"commit",{enumerable:!0,get:function(){return Ap}}),Object.defineProperty(_,"commitLockedAsync",{enumerable:!0,get:function(){return Tp}}),Object.defineProperty(_,"commonStylesApply",{enumerable:!0,get:function(){return qO}}),Object.defineProperty(_,"commonStylesApplyToBlock",{enumerable:!0,get:function(){return GO}}),Object.defineProperty(_,"compareStrings",{enumerable:!0,get:function(){return gp}}),Object.defineProperty(_,"container",{enumerable:!0,get:function(){return Xi}}),Object.defineProperty(_,"copy_solid_default",{enumerable:!0,get:function(){return pN}}),Object.defineProperty(_,"createBeforeInputHandler",{enumerable:!0,get:function(){return By}}),Object.defineProperty(_,"createFontClassName",{enumerable:!0,get:function(){return bb}}),Object.defineProperty(_,"createHandleChangesWithRemovedElementsOnly",{enumerable:!0,get:function(){return _O}}),Object.defineProperty(_,"createMapObj",{enumerable:!0,get:function(){return pO}}),Object.defineProperty(_,"createWrapEditor",{enumerable:!0,get:function(){return Iy}}),Object.defineProperty(_,"darkMode",{enumerable:!0,get:function(){return Eh}}),Object.defineProperty(_,"decrementLock",{enumerable:!0,get:function(){return Op}}),Object.defineProperty(_,"defaultVisibleTextMapFn",{enumerable:!0,get:function(){return EP}}),Object.defineProperty(_,"discuss_default",{enumerable:!0,get:function(){return Rv}}),Object.defineProperty(_,"display_default",{enumerable:!0,get:function(){return ML}}),Object.defineProperty(_,"editConditionalComment",{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(_,"emFilter",{enumerable:!0,get:function(){return pn}}),Object.defineProperty(_,"emFilterCSS",{enumerable:!0,get:function(){return PL}}),Object.defineProperty(_,"extractTableRowData",{enumerable:!0,get:function(){return cg}}),Object.defineProperty(_,"findElementWithSelectedText",{enumerable:!0,get:function(){return Al}}),Object.defineProperty(_,"findForeignButtonSpan",{enumerable:!0,get:function(){return us}}),Object.defineProperty(_,"findOutermostParentWithText",{enumerable:!0,get:function(){return Ep}}),Object.defineProperty(_,"findParentTr",{enumerable:!0,get:function(){return Sl}}),Object.defineProperty(_,"findParentWithExplicitStyle",{enumerable:!0,get:function(){return Tb}}),Object.defineProperty(_,"findParentWithExplicitStyle$1",{enumerable:!0,get:function(){return yp}}),Object.defineProperty(_,"findParentWithFontSizeAndTag",{enumerable:!0,get:function(){return vP}}),Object.defineProperty(_,"findRoundrectComment",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(_,"fontFamilyValues",{enumerable:!0,get:function(){return ac}}),Object.defineProperty(_,"fontValues",{enumerable:!0,get:function(){return Zn}}),Object.defineProperty(_,"formatCellOneText",{enumerable:!0,get:function(){return vg}}),Object.defineProperty(_,"getActiveEditElement",{enumerable:!0,get:function(){return kP}}),Object.defineProperty(_,"getAllComments",{enumerable:!0,get:function(){return iv}}),Object.defineProperty(_,"getCursorPositionType",{enumerable:!0,get:function(){return lg}}),Object.defineProperty(_,"getElementBorder",{enumerable:!0,get:function(){return tc}}),Object.defineProperty(_,"getElementBorderRadius",{enumerable:!0,get:function(){return rc}}),Object.defineProperty(_,"getElementBoxShadow",{enumerable:!0,get:function(){return nc}}),Object.defineProperty(_,"getElementInnerHTML",{enumerable:!0,get:function(){return Se}}),Object.defineProperty(_,"getElementMobileProps",{enumerable:!0,get:function(){return ts}}),Object.defineProperty(_,"getElementParent",{enumerable:!0,get:function(){return Bm}}),Object.defineProperty(_,"getElementTdDiv",{enumerable:!0,get:function(){return nN}}),Object.defineProperty(_,"getFontFamilyFromElement",{enumerable:!0,get:function(){return pP}}),Object.defineProperty(_,"getFontFamilyFromElement$1",{enumerable:!0,get:function(){return wb}}),Object.defineProperty(_,"getHtmlDocument",{enumerable:!0,get:function(){return Oo}}),Object.defineProperty(_,"getHtmlPartsAtCursor",{enumerable:!0,get:function(){return _g}}),Object.defineProperty(_,"getLineHeightInPixels",{enumerable:!0,get:function(){return mP}}),Object.defineProperty(_,"getLineHeightInPixels$1",{enumerable:!0,get:function(){return Sb}}),Object.defineProperty(_,"getListBullet",{enumerable:!0,get:function(){return Cv}}),Object.defineProperty(_,"getListContainer",{enumerable:!0,get:function(){return Av}}),Object.defineProperty(_,"getListContext",{enumerable:!0,get:function(){return wv}}),Object.defineProperty(_,"getOrCreateAfterSpan",{enumerable:!0,get:function(){return oP}}),Object.defineProperty(_,"getOuterHtml",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(_,"getParentElementOfSelection",{enumerable:!0,get:function(){return kb}}),Object.defineProperty(_,"getParentElementOfSelection$1",{enumerable:!0,get:function(){return Cl}}),Object.defineProperty(_,"getPendingPaletteInsert",{enumerable:!0,get:function(){return dv}}),Object.defineProperty(_,"getProjectFontEntries",{enumerable:!0,get:function(){return FO}}),Object.defineProperty(_,"getRangeFromSelection",{enumerable:!0,get:function(){return gP}}),Object.defineProperty(_,"getSelectedText",{enumerable:!0,get:function(){return bO}}),Object.defineProperty(_,"getSimpleBorderType",{enumerable:!0,get:function(){return xb}}),Object.defineProperty(_,"getStructureColumns",{enumerable:!0,get:function(){return iN}}),Object.defineProperty(_,"getTagNameForContainer",{enumerable:!0,get:function(){return _P}}),Object.defineProperty(_,"getTextPartsAtCursor",{enumerable:!0,get:function(){return fg}}),Object.defineProperty(_,"getVariableByIcon",{enumerable:!0,get:function(){return lv}}),Object.defineProperty(_,"getVariableIcon",{enumerable:!0,get:function(){return av}}),Object.defineProperty(_,"getVisibleText",{enumerable:!0,get:function(){return Nm}}),Object.defineProperty(_,"handleAddBlockMenu",{enumerable:!0,get:function(){return UP}}),Object.defineProperty(_,"handleAddGroup",{enumerable:!0,get:function(){return $P}}),Object.defineProperty(_,"handleArrowRight",{enumerable:!0,get:function(){return yv}}),Object.defineProperty(_,"handleCloneAtom",{enumerable:!0,get:function(){return PP}}),Object.defineProperty(_,"handleCloneBlock",{enumerable:!0,get:function(){return NP}}),Object.defineProperty(_,"handleCloneGroup",{enumerable:!0,get:function(){return HP}}),Object.defineProperty(_,"handleDeleteKey",{enumerable:!0,get:function(){return bv}}),Object.defineProperty(_,"handleDiscussGetTarget",{enumerable:!0,get:function(){return $c}}),Object.defineProperty(_,"handleDiscussRemoveTarget",{enumerable:!0,get:function(){return Fc}}),Object.defineProperty(_,"handleDiscussReset",{enumerable:!0,get:function(){return jc}}),Object.defineProperty(_,"handleDiscussSetTarget",{enumerable:!0,get:function(){return Bc}}),Object.defineProperty(_,"handleDiscussSetTargetClick",{enumerable:!0,get:function(){return DN}}),Object.defineProperty(_,"handleDiscussViewClick",{enumerable:!0,get:function(){return RN}}),Object.defineProperty(_,"handleDragCancel",{enumerable:!0,get:function(){return Ph}}),Object.defineProperty(_,"handleEnterForBr",{enumerable:!0,get:function(){return vv}}),Object.defineProperty(_,"handleEscapeKey",{enumerable:!0,get:function(){return gv}}),Object.defineProperty(_,"handleLockDiscuss",{enumerable:!0,get:function(){return Ic}}),Object.defineProperty(_,"handleMergeBlocks",{enumerable:!0,get:function(){return IP}}),Object.defineProperty(_,"handleMoveBlockDown",{enumerable:!0,get:function(){return RP}}),Object.defineProperty(_,"handleMoveBlockUp",{enumerable:!0,get:function(){return MP}}),Object.defineProperty(_,"handleMoveGroupDown",{enumerable:!0,get:function(){return jP}}),Object.defineProperty(_,"handleMoveGroupUp",{enumerable:!0,get:function(){return FP}}),Object.defineProperty(_,"handleRemoveAtom",{enumerable:!0,get:function(){return xP}}),Object.defineProperty(_,"handleRemoveBlock",{enumerable:!0,get:function(){return DP}}),Object.defineProperty(_,"handleRemoveGroup",{enumerable:!0,get:function(){return zP}}),Object.defineProperty(_,"handleSaveHotkey",{enumerable:!0,get:function(){return hv}}),Object.defineProperty(_,"handleToggleEditorHotkey",{enumerable:!0,get:function(){return pv}}),Object.defineProperty(_,"handleUndoRedoHotkey",{enumerable:!0,get:function(){return mv}}),Object.defineProperty(_,"handleUnmergeBlocks",{enumerable:!0,get:function(){return BP}}),Object.defineProperty(_,"handleVMLButtonInput",{enumerable:!0,get:function(){return Ev}}),Object.defineProperty(_,"handleVMLButtonText",{enumerable:!0,get:function(){return _v}}),Object.defineProperty(_,"hasClosestTrWithClass",{enumerable:!0,get:function(){return og}}),Object.defineProperty(_,"hasElementVMLBackground",{enumerable:!0,get:function(){return is}}),Object.defineProperty(_,"hasForeignButtonStructure",{enumerable:!0,get:function(){return _y}}),Object.defineProperty(_,"hasLinkInSelection",{enumerable:!0,get:function(){return Ob}}),Object.defineProperty(_,"hasOnlyTextNodesDeep",{enumerable:!0,get:function(){return wl}}),Object.defineProperty(_,"hasPendingPaletteAtom",{enumerable:!0,get:function(){return fv}}),Object.defineProperty(_,"hasProjectFonts",{enumerable:!0,get:function(){return BO}}),Object.defineProperty(_,"hasTextNodeInElement",{enumerable:!0,get:function(){return CP}}),Object.defineProperty(_,"icon",{enumerable:!0,get:function(){return yo}}),Object.defineProperty(_,"implementImageControls",{enumerable:!0,get:function(){return $m}}),Object.defineProperty(_,"implementPolyfills",{enumerable:!0,get:function(){return gl}}),Object.defineProperty(_,"implementResizableElems",{enumerable:!0,get:function(){return PN}}),Object.defineProperty(_,"incrementLock",{enumerable:!0,get:function(){return Lp}}),Object.defineProperty(_,"initDocuments",{enumerable:!0,get:function(){return Cp}}),Object.defineProperty(_,"initFocusManager",{enumerable:!0,get:function(){return Pp}}),Object.defineProperty(_,"initResizableElements",{enumerable:!0,get:function(){return CN}}),Object.defineProperty(_,"initResizer",{enumerable:!0,get:function(){return cN}}),Object.defineProperty(_,"initSandboxStyles",{enumerable:!0,get:function(){return EN}}),Object.defineProperty(_,"initSortable",{enumerable:!0,get:function(){return Cx}}),Object.defineProperty(_,"injectTextIntoFirstDiv",{enumerable:!0,get:function(){return ug}}),Object.defineProperty(_,"insertAdjacentHTML",{enumerable:!0,get:function(){return Gl}}),Object.defineProperty(_,"insertCountdown",{enumerable:!0,get:function(){return GP}}),Object.defineProperty(_,"insertRowRelativeToDivClass",{enumerable:!0,get:function(){return mg}}),Object.defineProperty(_,"isAddBlockMenuClick",{enumerable:!0,get:function(){return WP}}),Object.defineProperty(_,"isCaretAtEndOfEmReplace",{enumerable:!0,get:function(){return aP}}),Object.defineProperty(_,"isCaretAtEndOfStandardElement",{enumerable:!0,get:function(){return lP}}),Object.defineProperty(_,"isClickAtEndOfEmReplace",{enumerable:!0,get:function(){return iP}}),Object.defineProperty(_,"isComment",{enumerable:!0,get:function(){return Ss}}),Object.defineProperty(_,"isDiscussSetTargetMode",{enumerable:!0,get:function(){return MN}}),Object.defineProperty(_,"isDiscussViewMode",{enumerable:!0,get:function(){return NN}}),Object.defineProperty(_,"isEditorContentOnlyNbsp",{enumerable:!0,get:function(){return TP}}),Object.defineProperty(_,"isEditorContentOnlyNbsp$1",{enumerable:!0,get:function(){return rP}}),Object.defineProperty(_,"isElementHasBold",{enumerable:!0,get:function(){return Ab}}),Object.defineProperty(_,"isElementHasBold$1",{enumerable:!0,get:function(){return vp}}),Object.defineProperty(_,"isElementLocked",{enumerable:!0,get:function(){return kp}}),Object.defineProperty(_,"isInitialized",{enumerable:!0,get:function(){return xo}}),Object.defineProperty(_,"isJsonString",{enumerable:!0,get:function(){return pp}}),Object.defineProperty(_,"isPathElementByRules",{enumerable:!0,get:function(){return Xx}}),Object.defineProperty(_,"isRangeCoveringAllVisibleText",{enumerable:!0,get:function(){return nP}}),Object.defineProperty(_,"isShowOnMobile",{enumerable:!0,get:function(){return Lb}}),Object.defineProperty(_,"isSrcElement",{enumerable:!0,get:function(){return tu}}),Object.defineProperty(_,"isTableElement",{enumerable:!0,get:function(){return vE}}),Object.defineProperty(_,"isTextNode",{enumerable:!0,get:function(){return fi}}),Object.defineProperty(_,"isVariableComment",{enumerable:!0,get:function(){return Pc}}),Object.defineProperty(_,"isVariableText",{enumerable:!0,get:function(){return xc}}),Object.defineProperty(_,"logProjectFonts",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(_,"makeId",{enumerable:!0,get:function(){return _p}}),Object.defineProperty(_,"markProjectFontClass",{enumerable:!0,get:function(){return vb}}),Object.defineProperty(_,"messageService",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_,"minifyStylesheet",{enumerable:!0,get:function(){return xa}}),Object.defineProperty(_,"modifyHtml",{enumerable:!0,get:function(){return Eg}}),Object.defineProperty(_,"normalizeSpaces",{enumerable:!0,get:function(){return $n}}),Object.defineProperty(_,"object_group_solid_default",{enumerable:!0,get:function(){return gN}}),Object.defineProperty(_,"parseFromString",{enumerable:!0,get:function(){return xe}}),Object.defineProperty(_,"parseTableToArray",{enumerable:!0,get:function(){return pg}}),Object.defineProperty(_,"pen_solid_default",{enumerable:!0,get:function(){return fl}}),Object.defineProperty(_,"plus_solid_default",{enumerable:!0,get:function(){return bN}}),Object.defineProperty(_,"prepareEditorHTML",{enumerable:!0,get:function(){return Mm}}),Object.defineProperty(_,"processTableText",{enumerable:!0,get:function(){return Sg}}),Object.defineProperty(_,"provideAmp",{enumerable:!0,get:function(){return tP}}),Object.defineProperty(_,"provideAttributePipeline",{enumerable:!0,get:function(){return pb}}),Object.defineProperty(_,"provideDocumentSync",{enumerable:!0,get:function(){return cO}}),Object.defineProperty(_,"provideEmVersion",{enumerable:!0,get:function(){return HL}}),Object.defineProperty(_,"provideFocus",{enumerable:!0,get:function(){return dP}}),Object.defineProperty(_,"provideImageCache",{enumerable:!0,get:function(){return aO}}),Object.defineProperty(_,"provideSandboxState",{enumerable:!0,get:function(){return uO}}),Object.defineProperty(_,"registerCorrectVariableSelectionService",{enumerable:!0,get:function(){return cv}}),Object.defineProperty(_,"registerCrossDomainDD",{enumerable:!0,get:function(){return mO}}),Object.defineProperty(_,"registerExtensionScriptsService",{enumerable:!0,get:function(){return nL}}),Object.defineProperty(_,"registerLocalizationService",{enumerable:!0,get:function(){return AO}}),Object.defineProperty(_,"registerProjectFontsService",{enumerable:!0,get:function(){return HO}}),Object.defineProperty(_,"registerResetService",{enumerable:!0,get:function(){return Tx}}),Object.defineProperty(_,"registerResizeWatch",{enumerable:!0,get:function(){return Ax}}),Object.defineProperty(_,"registerThemeVariablesService",{enumerable:!0,get:function(){return DO}}),Object.defineProperty(_,"removeAllAttributes",{enumerable:!0,get:function(){return xl}}),Object.defineProperty(_,"removeBySelector",{enumerable:!0,get:function(){return be}}),Object.defineProperty(_,"removeClassesByPrefix",{enumerable:!0,get:function(){return Mb}}),Object.defineProperty(_,"removeClassesByPrefix$1",{enumerable:!0,get:function(){return Eb}}),Object.defineProperty(_,"removeEditorTags",{enumerable:!0,get:function(){return dg}}),Object.defineProperty(_,"removeEmptyParents",{enumerable:!0,get:function(){return Pn}}),Object.defineProperty(_,"removeHiddenClasses",{enumerable:!0,get:function(){return Ra}}),Object.defineProperty(_,"removeLastWord",{enumerable:!0,get:function(){return AP}}),Object.defineProperty(_,"removeTemporaryListClasses",{enumerable:!0,get:function(){return Tv}}),Object.defineProperty(_,"removeTrContainingDivWithClass",{enumerable:!0,get:function(){return hg}}),Object.defineProperty(_,"renumberCellOneText",{enumerable:!0,get:function(){return gg}}),Object.defineProperty(_,"replaceEmptyWithNbsp",{enumerable:!0,get:function(){return yg}}),Object.defineProperty(_,"resolveActiveElement",{enumerable:!0,get:function(){return dc}}),Object.defineProperty(_,"rgbToHex",{enumerable:!0,get:function(){return ye}}),Object.defineProperty(_,"save_solid_default",{enumerable:!0,get:function(){return yN}}),Object.defineProperty(_,"sendResizeEvent",{enumerable:!0,get:function(){return ym}}),Object.defineProperty(_,"serializeOuterHtml",{enumerable:!0,get:function(){return Dg}}),Object.defineProperty(_,"setBlockGroupControlsPosition",{enumerable:!0,get:function(){return ZP}}),Object.defineProperty(_,"setBlockMaxWidth",{enumerable:!0,get:function(){return rN}}),Object.defineProperty(_,"setContrastBlock",{enumerable:!0,get:function(){return oy}}),Object.defineProperty(_,"setCursorInsideSpan",{enumerable:!0,get:function(){return sP}}),Object.defineProperty(_,"setCursorPositionSimple",{enumerable:!0,get:function(){return cP}}),Object.defineProperty(_,"setCursorToElement",{enumerable:!0,get:function(){return wP}}),Object.defineProperty(_,"setCustomColor",{enumerable:!0,get:function(){return hP}}),Object.defineProperty(_,"setDocumentStyles",{enumerable:!0,get:function(){return gb}}),Object.defineProperty(_,"setEditorFocus",{enumerable:!0,get:function(){return Np}}),Object.defineProperty(_,"setElementBorder",{enumerable:!0,get:function(){return ic}}),Object.defineProperty(_,"setElementBorderRadius",{enumerable:!0,get:function(){return oc}}),Object.defineProperty(_,"setElementBoxShadow",{enumerable:!0,get:function(){return Pb}}),Object.defineProperty(_,"setElementMobileAlign",{enumerable:!0,get:function(){return qb}}),Object.defineProperty(_,"setElementMobileBackgroundColor",{enumerable:!0,get:function(){return Kb}}),Object.defineProperty(_,"setElementMobileBackgroundImage",{enumerable:!0,get:function(){return Qb}}),Object.defineProperty(_,"setElementMobileBackgroundPositionX",{enumerable:!0,get:function(){return Zb}}),Object.defineProperty(_,"setElementMobileBackgroundPositionY",{enumerable:!0,get:function(){return Jb}}),Object.defineProperty(_,"setElementMobileBackgroundRepeat",{enumerable:!0,get:function(){return ey}}),Object.defineProperty(_,"setElementMobileBackgroundSize",{enumerable:!0,get:function(){return ty}}),Object.defineProperty(_,"setElementMobileBorder",{enumerable:!0,get:function(){return Vb}}),Object.defineProperty(_,"setElementMobileBorderRadius",{enumerable:!0,get:function(){return Wb}}),Object.defineProperty(_,"setElementMobileBoxShadow",{enumerable:!0,get:function(){return Ub}}),Object.defineProperty(_,"setElementMobileContentWidth",{enumerable:!0,get:function(){return zb}}),Object.defineProperty(_,"setElementMobileDirection",{enumerable:!0,get:function(){return Yb}}),Object.defineProperty(_,"setElementMobileFontSize",{enumerable:!0,get:function(){return ry}}),Object.defineProperty(_,"setElementMobileHeight",{enumerable:!0,get:function(){return ti}}),Object.defineProperty(_,"setElementMobileLineHeight",{enumerable:!0,get:function(){return ny}}),Object.defineProperty(_,"setElementMobilePadding",{enumerable:!0,get:function(){return zr}}),Object.defineProperty(_,"setElementMobileTableAlign",{enumerable:!0,get:function(){return Gb}}),Object.defineProperty(_,"setElementMobileVerticalAlign",{enumerable:!0,get:function(){return Xb}}),Object.defineProperty(_,"setElementMobileWidth",{enumerable:!0,get:function(){return Hb}}),Object.defineProperty(_,"setElementShow",{enumerable:!0,get:function(){return iy}}),Object.defineProperty(_,"setEmailBackgroundSettings",{enumerable:!0,get:function(){return _b}}),Object.defineProperty(_,"setFloatBlocksWidth",{enumerable:!0,get:function(){return tN}}),Object.defineProperty(_,"setImageWidth",{enumerable:!0,get:function(){return qP}}),Object.defineProperty(_,"setPendingPaletteInsert",{enumerable:!0,get:function(){return uv}}),Object.defineProperty(_,"setPercentsForColumns",{enumerable:!0,get:function(){return Tl}}),Object.defineProperty(_,"setRenderedAttribute",{enumerable:!0,get:function(){return Fo}}),Object.defineProperty(_,"setStructureBlocksWidth",{enumerable:!0,get:function(){return ul}}),Object.defineProperty(_,"state",{enumerable:!0,get:function(){return _e}}),Object.defineProperty(_,"stickyCheck",{enumerable:!0,get:function(){return JP}}),Object.defineProperty(_,"stripButtonVML",{enumerable:!0,get:function(){return Oy}}),Object.defineProperty(_,"stripSubjectTags",{enumerable:!0,get:function(){return Hp}}),Object.defineProperty(_,"styleMenuElement",{enumerable:!0,get:function(){return Mv}}),Object.defineProperty(_,"styleMenuElementList",{enumerable:!0,get:function(){return Nv}}),Object.defineProperty(_,"syncButtonVML",{enumerable:!0,get:function(){return wc}}),Object.defineProperty(_,"takeEblockRootSavedToProject",{enumerable:!0,get:function(){return IL}}),Object.defineProperty(_,"textHasStyle",{enumerable:!0,get:function(){return bP}}),Object.defineProperty(_,"textHasStyle$1",{enumerable:!0,get:function(){return Cb}}),Object.defineProperty(_,"toEmFontClassToken",{enumerable:!0,get:function(){return Kn}}),Object.defineProperty(_,"trash_alt_solid_default",{enumerable:!0,get:function(){return vN}}),Object.defineProperty(_,"updateButtonVMLLabel",{enumerable:!0,get:function(){return cs}}),Object.defineProperty(_,"updateDivWithClassAndNbsp",{enumerable:!0,get:function(){return wg}}),Object.defineProperty(_,"updateTableNumbering",{enumerable:!0,get:function(){return bg}}),Object.defineProperty(_,"updateTableStyle",{enumerable:!0,get:function(){return Qp}}),Object.defineProperty(_,"uptimeCountdown",{enumerable:!0,get:function(){return XP}})});