@diplodoc/transform 4.70.2 → 4.70.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- "use strict";(()=>{(()=>{var he=Object.create,K=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,oe=Object.getOwnPropertyNames,ve=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty,Te=(e,t,n)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ye=(e,t)=>function(){return t||(0,e[oe(e)[0]])((t={exports:{}}).exports,t),t.exports},Le=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of oe(t))!be.call(e,s)&&s!==n&&K(e,s,{get:()=>t[s],enumerable:!(a=ge(t,s))||a.enumerable});return e},we=(e,t,n)=>(n=e!=null?he(ve(e)):{},Le(t||!e||!e.__esModule?K(n,"default",{value:e,enumerable:!0}):n,e)),Ee=(e,t,n)=>Te(e,typeof t!="symbol"?t+"":t,n),Ae=ye({"node_modules/get-root-node-polyfill/index.js"(e,t){"use strict";function n(d){var h=typeof d=="object"&&!!d.composed;return h?a(this):s(this)}function a(d){var h=s(d);return c(h)?a(h.host):h}function s(d){return d.parentNode!=null?s(d.parentNode):d}function c(d){return d.nodeName==="#document-fragment"&&d.constructor.name==="ShadowRoot"}typeof t=="object"&&t.exports&&(t.exports=n)}});(()=>{var e="yfm_cut",t={Cut:"yfm-cut",Title:"yfm-cut-title",Content:"yfm-cut-content",Highlight:"yfm-cut-highlight"},n=class{constructor(){Ee(this,"disposers",[]),this.disposers.push(this.init())}init(){let c=!1,d=()=>{c=!0},h=()=>{c=!1},b=w=>{s(w.target)&&!c&&this.focusActiveCut(w.target)};return document.addEventListener("mousedown",d),document.addEventListener("mouseup",h),document.addEventListener("focus",b,!0),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("mouseup",h),document.removeEventListener("focus",b,!0)}}dispose(){for(let c of this.disposers)c()}focusActiveCut(c){let d=c.parentNode;if(!a(d))return;let h=d;for(;h;)a(h)&&(h.open=!0),h=h.parentElement;setTimeout(()=>{d.classList.add(t.Highlight)},70),setTimeout(()=>{d.classList.remove(t.Highlight)},1e3)}};function a(c){var d;return((d=c==null?void 0:c.tagName)==null?void 0:d.toLowerCase())==="details"&&(c==null?void 0:c.classList.contains(t.Cut))}function s(c){var d;return((d=c==null?void 0:c.tagName)==null?void 0:d.toLowerCase())==="summary"&&(c==null?void 0:c.classList.contains(t.Title))}typeof window<"u"&&!window[e]&&(window[e]=new n)})(),(()=>{var e="yfm-tabs",t="yfm-tab",n="yfm-tab-panel",a="yfm-tab-list",s="active",c="data-diplodoc-group",d="data-diplodoc-key",h="data-diplodoc-variant",b="data-diplodoc-id",w="defaultTabsGroup-",C="data-diplodoc-forced",M="yfm-tabs-dropdown-select",F="yfm-tabs-vertical",D=(o=>(o.Regular="regular",o.Radio="radio",o.Dropdown="dropdown",o.Accordion="accordion",o))(D||{}),L=Symbol.for("diplodocTabs"),E=o=>{let i=o.composedPath();return Array.isArray(i)&&i.length>0?i[0]:o.target},H=o=>{let i=E(o);return!i||!i.matches},O=o=>Math.abs(o.scrollHeight-o.clientHeight)>1?o:o.parentElement?O(o.parentElement):void 0,B=(o,i)=>{let r=o.getBoundingClientRect(),l=i.getBoundingClientRect();return{top:r.top-l.top,left:r.left-l.left,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}},v={TABS:`.${e}`,TAB_LIST:`.${a}`,TAB:`.${t}`,TAB_PANEL:`.${n}`,VERTICAL_TABS:`.${F}`},k=class{constructor(o,i={}){this._onSelectTabHandlers=new Set,this._currentPageTabGroups=[],this._isRestoringTabs=!1,this._document=o,this._options=Object.assign({saveTabsToLocalStorage:!1,saveTabsToQueryStateMode:"none"},i),this._document.addEventListener("click",r=>{let l=E(r);if(r.target&&this.hideAllDropdown(r.target),H(r))return;if(this.isElementDropdownSelect(l)){l.classList.toggle(s);return}if(!this.isValidTabElement(l))return;let u=this.getTabDataFromHTMLElement(l);u&&this._selectTab(u,l)}),this._document.addEventListener("keydown",r=>{let l=null;switch(r.key){case"ArrowLeft":{l="left";break}case"ArrowRight":{l="right";break}case"ArrowUp":{l="left";break}case"ArrowDown":{l="right";break}}if(!l)return;let u=E(r);if(H(r)||!this.isValidTabElement(u))return;let{tabs:f,nodes:p}=this.getTabs(u),m=this.getTabDataFromHTMLElement(u),g=f.findIndex(({key:y})=>(m==null?void 0:m.key)&&y===m.key);if(!m||f.length<=1||g===-1)return;let T=(g+(l==="left"?-1:1)+f.length)%f.length;this.selectTab(f[T]),p[T].focus()})}configure(o){this._options=Object.assign(this._options,o)}onSelectTab(o){return this._onSelectTabHandlers.add(o),()=>{this._onSelectTabHandlers.delete(o)}}selectTabById(o,i){let r=this._document.querySelector(`${v.TAB}[${b}="${o}"]`);if(!r||!this.isValidTabElement(r))return;let l=this.getTabDataFromHTMLElement(r);l&&this._selectTab(l,r),i!=null&&i.scrollToElement&&r.scrollIntoView()}selectTab(o){this._selectTab(o)}restoreTabs(o){this._isRestoringTabs=!0;try{for(let[i,r]of Object.entries(o))if(i){let l={group:i,...r};this.selectTab(l)}}finally{this._isRestoringTabs=!1}}getTabsFromLocalStorage(){return JSON.parse(localStorage.getItem("tabsHistory")||"{}")}getTabsFromSearchQuery(){let o={},i=new URLSearchParams(window.location.search);return i.has("tabs")&&(i.get("tabs")||"").split(",").forEach(r=>{let l=r.split("_"),[u,f]=l,p="regular";if(l.length===3&&(p=l[2]),u&&f&&Object.values(D).includes(p)){let m=f;o[u]={key:m,variant:p}}}),o}updateLocalStorageWithTabs(o){this._options.saveTabsToLocalStorage&&(this._isRestoringTabs||localStorage.setItem("tabsHistory",JSON.stringify(o)))}updateQueryParamWithTabs(o){if(this._isRestoringTabs)return;let i=new URLSearchParams(window.location.search),r=Object.entries(o).map(([f,{key:p,variant:m}])=>m==="regular"?`${f}_${p}`:`${f}_${p}_${m}`);r.length>0?i.set("tabs",r.join(",")):i.delete("tabs");let l=history.state||{},u=new URL(window.location.href);u.search=i.toString(),window.history.replaceState({...l},document.title,u.href)}getCurrentPageTabHistory(o){return Object.fromEntries(Object.entries(o).filter(([i])=>this._currentPageTabGroups.includes(i)))}onPageChanged(){this._currentPageTabGroups=this.getCurrentPageTabGroups()}getCurrentPageTabGroups(){let o=this._document.getElementsByClassName(e),i=new Set;return Array.from(o).forEach(r=>{let l=r.getAttribute(c);l&&i.add(l)}),Array.from(i)}clearTabsPreferred(){localStorage.removeItem("tabsHistory"),this.updateQueryParamWithTabs({})}_selectTab(o,i){let{group:r,key:l,variant:u}=o;if(!r)return;this.saveTabPreferred({group:r,key:l,variant:u});let f=i&&O(i),p=f&&B(i,f);this.updateHTML({group:r,key:l,variant:u},i,u)>0&&(this.fireSelectTabEvent({group:r,key:l,variant:u},i==null?void 0:i.dataset.diplodocId),p&&this.resetScroll(i,f,p))}updateHTML(o,i,r){switch(r){case"radio":return this.updateHTMLRadio(o,i);case"accordion":return this.updateHTMLAccordion(o,i);case"regular":return this.updateHTMLRegular(o);case"dropdown":return this.updateHTMLDropdown(o);default:return 0}}saveTabPreferred(o){let i={};switch(this._options.saveTabsToLocalStorage&&(i=JSON.parse(localStorage.getItem("tabsHistory")||"{}")),i[o.group]={key:o.key,variant:o.variant},this._options.saveTabsToLocalStorage&&this.updateLocalStorageWithTabs(i),this._options.saveTabsToQueryStateMode){case"all":{this.updateQueryParamWithTabs(i);break}case"page":{this.updateQueryParamWithTabs(this.getCurrentPageTabHistory(i));break}}}updateHTMLRadio(o,i){let{group:r,key:l}=o,{isForced:u,root:f}=this.didTabOpenForce(i),p=u?`.yfm-vertical-tab[${C}="true"]`:"",m=this._document.querySelectorAll(`${v.TABS}[${c}="${r}"] ${v.TAB}[${d}="${l}"]${p}`);u&&(f==null||f.removeAttribute(C));let g=0;return m.forEach(T=>{let y=T.parentNode.children;for(let _=0;_<y.length;_+=2){let[S,A]=[y.item(_),y.item(_+1)],R=S.children.item(0);if(S===T){R.checked?(S.classList.remove("active"),A==null||A.classList.remove("active"),R.removeAttribute("checked")):(S.classList.add("active"),A==null||A.classList.add("active"),R.setAttribute("checked","true"));continue}R.hasAttribute("checked")&&(S.classList.remove("active"),A==null||A.classList.remove("active"),R.removeAttribute("checked")),g++}}),g}updateHTMLRegular(o){let{group:i,key:r}=o,l=this._document.querySelectorAll(`${v.TABS}[${c}="${i}"] ${v.TAB}[${d}="${r}"]`),u=0;return l.forEach(f=>{let p=f;if(!this.isValidTabElement(p)||p.dataset.diplodocIsActive==="true")return;u++;let m=f,g=m.parentNode,T=g==null?void 0:g.parentNode,y=Array.from((g==null?void 0:g.querySelectorAll(v.TAB))||[]),_=Array.from((T==null?void 0:T.children)||[]).filter(A=>A.classList.contains(n)),S=y.indexOf(m);y.forEach((A,R)=>{let Ue=_[R],W=R===S,Qe=A;Qe.dataset.diplodocIsActive=W?"true":"false",A.classList.toggle(s,W),A.setAttribute("aria-selected",W.toString()),A.setAttribute("tabindex",W?"0":"-1"),Ue.classList.toggle(s,W)})}),u}updateHTMLDropdown(o){let{group:i,key:r}=o,l=this._document.querySelectorAll(`${v.TABS}[${c}="${i}"] ${v.TAB}[${d}="${r}"]`),u=0;return l.forEach(f=>{let p=f.closest(`[${h}=dropdown]`);if(!(p!=null&&p.children))return;let m=p.children.item(0),g=p.children.item(1);m==null||m.classList.remove(s);let T=Array.from((g==null?void 0:g.children)||[]).indexOf(f)+2;for(let y=2;y<p.children.length;y++){let _=p.children.item(y),S=g==null?void 0:g.children.item(y-2);if(u++,T===y){_==null||_.classList.add(s),S.classList.add(s),m.innerHTML=f.innerHTML,m.classList.add("filled");continue}S.classList.remove(s),_.classList.remove(s)}}),u}updateHTMLAccordion(o,i){let{group:r,key:l}=o,u=this._document.querySelectorAll(`${v.TABS}[${c}="${r}"] ${v.TAB}[${d}="${l}"]`),f=0;return u.forEach(p=>{let m=p.closest(`[${h}=accordion]`);if(m!=null&&m.children)for(let g=0;g<m.children.length;g+=2){let T=m.children.item(g),y=m.children.item(g+1);if(f++,p===T){T==null||T.classList.toggle(s),y==null||y.classList.toggle(s);continue}T==null||T.classList.remove(s),y==null||y.classList.remove(s)}}),i&&!this.checkVisible(i)&&setTimeout(()=>{i.scrollIntoView({block:"nearest"})}),f}checkVisible(o){let i=o.getBoundingClientRect(),r=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(i.bottom<0||i.top-r>=0)}hideAllDropdown(o){this._document.querySelectorAll(".yfm-tabs-dropdown-select.active").forEach(i=>{i.contains(o)||i.classList.remove(s)})}resetScroll(o,i,r){let l=B(o,i),u=l.top-r.top,f=l.left-r.left,p=l.scrollTop-r.scrollTop,m=l.scrollLeft-r.scrollLeft;i.scrollTo(i.scrollLeft+f-m,i.scrollTop+u-p)}didTabOpenForce(o){if(!o)return{};if(o.dataset.diplodocForced)return{root:o,isForced:!0};let i=o.dataset.diplodocVerticalTab?o:o.parentElement,r=typeof(i==null?void 0:i.dataset.diplodocForced)!="undefined";return{root:i,isForced:r}}fireSelectTabEvent(o,i){let{group:r,key:l,variant:u}=o,f=r.startsWith(w)?{key:l,variant:u}:o;this._onSelectTabHandlers.forEach(p=>{p({tab:f,currentTabId:i})})}getTabsType(o){let i=o.closest(`[${h}]`);if(i)return i.dataset.diplodocVariant}isValidTabElement(o){return!!this.getTabsType(o)}isElementDropdownSelect(o){return o.classList.contains(M)}getTabDataFromHTMLElement(o){var i,r,l;let u=this.getTabsType(o);if(u==="radio"){let m=o.dataset.diplodocVerticalTab?o:o.parentElement,g=m.dataset.diplodocKey,T=(i=m.closest(v.TABS))==null?void 0:i.dataset.diplodocGroup;return g&&T?{group:T,key:g,variant:"radio"}:null}if(u==="dropdown"||u==="accordion"){let m=o.dataset.diplodocKey,g=(r=o.closest(v.TABS))==null?void 0:r.dataset.diplodocGroup;return m&&g?{group:g,key:m,variant:u}:null}let f=o.dataset.diplodocKey,p=(l=o.closest(v.TABS))==null?void 0:l.dataset.diplodocGroup;return f&&p?{group:p,key:f,variant:"regular"}:null}getTabs(o){var i,r;let l=(i=o.closest(v.TABS))==null?void 0:i.dataset.diplodocGroup,u=(r=o.closest(v.TAB_LIST))==null?void 0:r.querySelectorAll(v.TAB),f=[];return u.forEach(p=>{let m=p==null?void 0:p.dataset.diplodocKey;m&&f.push({group:l,key:m,variant:"regular"})}),{tabs:f,nodes:u}}};typeof window!="undefined"&&typeof document!="undefined"&&!window[L]&&(window[L]=new k(document))})();var _e=we(Ae());typeof document!="undefined"&&(function(e){let t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;t?e.matches=e.matchesSelector=t:e.matches=e.matchesSelector=function(a){let c=(e.getRootNode?e.getRootNode():_e.default.call(e)).querySelectorAll(a),d=this;return Array.prototype.some.call(c,h=>h===d)}})(Element.prototype);var I=e=>{let t=e.composedPath();return Array.isArray(t)&&t.length>0?t[0]:e.target},j=e=>{let t=I(e);return!t||!t.matches},q=async e=>{if(!e)return;if(navigator.clipboard&&typeof navigator.clipboard.writeText)return navigator.clipboard.writeText(e);let t=document.createElement("textarea");t.setAttribute("style","position: absolute; left: 1000%"),t.textContent=e,document.body.append(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},Se=".yfm-clipboard-button",Ce=".yfm-wrapping-button";function Ne(e){if(!e)return;let t=e.getAttribute("data-animation"),n=e.getRootNode().getElementById(`visibileAnimation-${t}`);n&&n.beginElement()}function Oe(e){var t;let n=(t=e.parentNode)==null?void 0:t.parentNode,a=n==null?void 0:n.querySelector("pre code");if(!n||!a)return;let s=Array.from(a.childNodes).filter(c=>!(c instanceof HTMLElement&&c.classList.contains("yfm-line-number"))).map(c=>c.textContent).join("");q(s.trim()).then(()=>{Ne(n.querySelector(".yfm-clipboard-icon")),setTimeout(()=>e.blur(),1500)})}function Be(e){var t;let n=(t=e.parentNode)==null?void 0:t.parentNode,a=n==null?void 0:n.querySelector("pre code");!n||!a||(a.classList.toggle("wrap"),setTimeout(()=>e.blur(),500))}typeof document!="undefined"&&document.addEventListener("click",e=>{if(j(e))return;let t=I(e);t.matches(Se)?Oe(t):t.matches(Ce)&&Be(t)});var Re=".yfm-clipboard-anchor";typeof document!="undefined"&&document.addEventListener("click",e=>{let t=I(e);if(j(e)||!t.matches(Re))return;let n=t.getAttribute("data-href")||"",a=new URL(n,window.location.href).toString();q(a)});var U=".yfm-clipboard-inline-code",ie="tooltip_inline_clipboard_dialog",ke="yfm inline_code_tooltip",P="open",re={ru:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",en:"Copied",ar:"\u062A\u0645 \u0627\u0644\u0646\u0633\u062E",cs:"Zkop\xEDrov\xE1no",fr:"Copi\xE9",es:"Copiado",he:"\u05D4\u05D5\u05E2\u05EA\u05E7",bg:"\u041A\u043E\u043F\u0438\u0440\u0430\u043D\u043E",et:"Kopeeritud",el:"\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5",pt:"Copiado",zh:"\u5DF2\u590D\u5236","zh-tw":"\u5DF2\u8907\u88FD",kk:"\u041A\u04E9\u0448\u0456\u0440\u0456\u043B\u0434\u0456",tr:"Kopyaland\u0131",uz:"Nusxalandi"},Q={TITLE:".yfm .yfm-term_title",CONTENT:".yfm .yfm-term_dfn"},$="open",V=Q.CONTENT.replace(/\./g,"")+" "+$,G=!0;function Ie(e,t){let n=t.getAttribute("id")||Math.random().toString(36).substr(2,8);e==null||e.setAttribute("term-id",n)}function Pe(e,t){let n=t.getAttribute("aria-live")||"polite";e==null||e.setAttribute("aria-live",n),e==null||e.setAttribute("aria-modal","true")}function J(e,t){let{x:n,y:a,right:s,left:c,width:d,height:h}=t.getBoundingClientRect(),b=ae(t);if(!b)return;let{right:w,left:C}=b.getBoundingClientRect();if((w<c||C>s)&&!G){Y(e);return}G&&b&&(b.addEventListener("scroll",se),G=!1);let M=Number(e.getAttribute("relativeX")),F=Number(e.getAttribute("relativeY"));if(M===n&&F===a)return;e.setAttribute("relativeX",String(n)),e.setAttribute("relativeY",String(a));let D=h+5,L=e.parentElement;if(!L)return;let{width:E}=e.getBoundingClientRect(),{left:H}=L.getBoundingClientRect(),O=Number(N(t).left),B=E+O,v=O-E<0,k=B>document.body.clientWidth,i=(k||document.dir==="rtl")&&!v?E-d:0,r=N(L).top-L.offsetTop,u=k?B-document.body.clientWidth+5:0,f=N(t).left-H+L.offsetLeft-i,p=f+E>=document.body.clientWidth;e.style.top=Number(N(t).top+D-r)+"px",e.style.left=Number(f-(p?u:0))+"px"}function se(){let e=document.getElementsByClassName(V)[0];if(!e)return;let t=e.getAttribute("term-id")||"",n=document.getElementById(t);n&&J(e,n)}function ae(e){return e?e.closest("table")||e.closest("code")||e.parentElement:null}function le(e){let t=document.getElementsByClassName(V)[0],n=e.getAttribute("id"),a=e.getAttribute("term-key"),s=document.getElementById(a+"_element");if(t&&n===t.getAttribute("term-id")){Y(t);return}let d=e.closest([Q.CONTENT.replace(" ",""),$].join("."));t&&!d&&Y(t),!(!e.matches(Q.TITLE)||!s)&&(Ie(s,e),Pe(s,e),J(s,e),s.classList.toggle($),De(s))}function Y(e){e.classList.remove($);let t=ce(e),n=ae(t);n&&(n.removeEventListener("scroll",se),G=!0)}function N(e){let t=e.getBoundingClientRect(),n=document.body,a=document.documentElement,s=window.pageYOffset||a.scrollTop||n.scrollTop,c=window.pageXOffset||a.scrollLeft||n.scrollLeft,d=a.clientTop||n.clientTop||0,h=a.clientLeft||n.clientLeft||0,b=t.top+s-d,w=t.left+c-h;return{top:Math.round(b),left:Math.round(w)}}function De(e){let t=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),n=t[0],a=t[t.length-1];n&&n.focus(),e.addEventListener("keydown",function(s){(s.key==="Tab"||s.keyCode===9)&&(s.shiftKey?document.activeElement===n&&(a.focus(),s.preventDefault()):document.activeElement===a&&(n.focus(),s.preventDefault()))})}function ce(e){let t=e.getAttribute("term-id");return t?document.getElementById(t):null}var x=null,z=!0;function X(){return document.getElementById(ie)}function He(e,t){let n=t.getAttribute("aria-live")||"polite";e==null||e.setAttribute("aria-live",n),e==null||e.setAttribute("aria-modal","true")}function de(){x&&(clearTimeout(x),x=null)}function Z(e){return e?e.closest("table")||e.closest("code")||e.parentElement:null}function ue(){let e=X();if(!e)return;let t=e.getAttribute("inline-id")||"",n=document.getElementById(t);n&&ee(e,n)}function ee(e,t){let{x:n,y:a,right:s,left:c,width:d,height:h}=t.getBoundingClientRect(),b=Z(t);if(!b)return;let{right:w,left:C}=b.getBoundingClientRect();if((w<c||C>s)&&!z){te(e);return}z&&b&&(b.addEventListener("scroll",ue),z=!1);let M=Number(e.getAttribute("relativeX")),F=Number(e.getAttribute("relativeY"));if(M===n&&F===a)return;e.setAttribute("relativeX",String(n)),e.setAttribute("relativeY",String(a));let D=h+5,L=e.parentElement;if(!L)return;let{width:E}=e.getBoundingClientRect(),{left:H}=L.getBoundingClientRect(),O=Number(N(t).left),B=E+O,v=O-E<0,k=B>document.body.clientWidth,i=(k||document.dir==="rtl")&&!v?E-d:0,r=N(L).top-L.offsetTop,u=k?B-document.body.clientWidth+5:0,f=N(t).left-H+L.offsetLeft-i,p=f+E>=document.body.clientWidth;e.style.top=Number(N(t).top+D-r)+"px",e.style.left=Number(f-(p?u:0))+"px"}function fe(e){let t=e.getAttribute("inline-id");return t?document.getElementById(t):null}function $e(e){e.classList.remove(P);let t=fe(e),n=Z(t),a=Z(e);e.removeAttribute("inline-id"),!(!n||!a)&&(a.removeChild(e),n.removeEventListener("scroll",ue),z=!0)}function xe(){var e;let t=X();if(!t){let n=document.querySelector(".dc-doc-page__content")||document.body,a=document.documentElement.lang||"en",s=(e=re[a])!=null?e:re.en,c=document.createElement("div");c.innerHTML=`
1
+ "use strict";(()=>{(()=>{var he=Object.create,X=Object.defineProperty,ge=Object.getOwnPropertyDescriptor,oe=Object.getOwnPropertyNames,ve=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty,ye=(e,t,n)=>t in e?X(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Te=(e,t)=>function(){return t||(0,e[oe(e)[0]])((t={exports:{}}).exports,t),t.exports},Le=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of oe(t))!be.call(e,l)&&l!==n&&X(e,l,{get:()=>t[l],enumerable:!(s=ge(t,l))||s.enumerable});return e},we=(e,t,n)=>(n=e!=null?he(ve(e)):{},Le(t||!e||!e.__esModule?X(n,"default",{value:e,enumerable:!0}):n,e)),Ee=(e,t,n)=>ye(e,typeof t!="symbol"?t+"":t,n),Ae=Te({"node_modules/get-root-node-polyfill/index.js"(e,t){"use strict";function n(c){var h=typeof c=="object"&&!!c.composed;return h?s(this):l(this)}function s(c){var h=l(c);return d(h)?s(h.host):h}function l(c){return c.parentNode!=null?l(c.parentNode):c}function d(c){return c.nodeName==="#document-fragment"&&c.constructor.name==="ShadowRoot"}typeof t=="object"&&t.exports&&(t.exports=n)}});(()=>{var e="yfm_cut",t={Cut:"yfm-cut",Title:"yfm-cut-title",Content:"yfm-cut-content",Highlight:"yfm-cut-highlight"},n=class{constructor(){Ee(this,"disposers",[]),this.disposers.push(this.init())}init(){let d=!1,c=()=>{d=!0},h=()=>{d=!1},v=L=>{l(L.target)&&!d&&this.focusActiveCut(L.target)};return document.addEventListener("mousedown",c),document.addEventListener("mouseup",h),document.addEventListener("focus",v,!0),()=>{document.removeEventListener("mousedown",c),document.removeEventListener("mouseup",h),document.removeEventListener("focus",v,!0)}}dispose(){for(let d of this.disposers)d()}focusActiveCut(d){let c=d.parentNode;if(!s(c))return;let h=c;for(;h;)s(h)&&(h.open=!0),h=h.parentElement;setTimeout(()=>{c.classList.add(t.Highlight)},70),setTimeout(()=>{c.classList.remove(t.Highlight)},1e3)}};function s(d){var c;return((c=d==null?void 0:d.tagName)==null?void 0:c.toLowerCase())==="details"&&(d==null?void 0:d.classList.contains(t.Cut))}function l(d){var c;return((c=d==null?void 0:d.tagName)==null?void 0:c.toLowerCase())==="summary"&&(d==null?void 0:d.classList.contains(t.Title))}typeof window<"u"&&!window[e]&&(window[e]=new n)})(),(()=>{var e="yfm-tabs",t="yfm-tab",n="yfm-tab-panel",s="yfm-tab-list",l="active",d="data-diplodoc-group",c="data-diplodoc-key",h="data-diplodoc-variant",v="data-diplodoc-id",L="defaultTabsGroup-",C="data-diplodoc-forced",D="yfm-tabs-dropdown-select",B="yfm-tabs-vertical",O=(o=>(o.Regular="regular",o.Radio="radio",o.Dropdown="dropdown",o.Accordion="accordion",o))(O||{}),w=Symbol.for("diplodocTabs"),E=o=>{let i=o.composedPath();return Array.isArray(i)&&i.length>0?i[0]:o.target},I=o=>{let i=E(o);return!i||!i.matches},k=o=>Math.abs(o.scrollHeight-o.clientHeight)>1?o:o.parentElement?k(o.parentElement):void 0,R=(o,i)=>{let r=o.getBoundingClientRect(),a=i.getBoundingClientRect();return{top:r.top-a.top,left:r.left-a.left,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}},b={TABS:`.${e}`,TAB_LIST:`.${s}`,TAB:`.${t}`,TAB_PANEL:`.${n}`,VERTICAL_TABS:`.${B}`},$=class{constructor(o,i={}){this._onSelectTabHandlers=new Set,this._currentPageTabGroups=[],this._isRestoringTabs=!1,this._document=o,this._options=Object.assign({saveTabsToLocalStorage:!1,saveTabsToQueryStateMode:"none"},i),this._document.addEventListener("click",r=>{let a=E(r);if(r.target&&this.hideAllDropdown(r.target),I(r))return;if(this.isElementDropdownSelect(a)){a.classList.toggle(l);return}if(!this.isValidTabElement(a))return;let u=this.getTabDataFromHTMLElement(a);u&&this._selectTab(u,a)}),this._document.addEventListener("keydown",r=>{let a=null;switch(r.key){case"ArrowLeft":{a="left";break}case"ArrowRight":{a="right";break}case"ArrowUp":{a="left";break}case"ArrowDown":{a="right";break}}if(!a)return;let u=E(r);if(I(r)||!this.isValidTabElement(u))return;let{tabs:f,nodes:m}=this.getTabs(u),p=this.getTabDataFromHTMLElement(u),g=f.findIndex(({key:T})=>(p==null?void 0:p.key)&&T===p.key);if(!p||f.length<=1||g===-1)return;let y=(g+(a==="left"?-1:1)+f.length)%f.length;this.selectTab(f[y]),m[y].focus()})}configure(o){this._options=Object.assign(this._options,o)}onSelectTab(o){return this._onSelectTabHandlers.add(o),()=>{this._onSelectTabHandlers.delete(o)}}selectTabById(o,i){let r=this._document.querySelector(`${b.TAB}[${v}="${o}"]`);if(!r||!this.isValidTabElement(r))return;let a=this.getTabDataFromHTMLElement(r);a&&this._selectTab(a,r),i!=null&&i.scrollToElement&&r.scrollIntoView()}selectTab(o){this._selectTab(o)}restoreTabs(o){this._isRestoringTabs=!0;try{for(let[i,r]of Object.entries(o))if(i){let a={group:i,...r};this.selectTab(a)}}finally{this._isRestoringTabs=!1}}getTabsFromLocalStorage(){return JSON.parse(localStorage.getItem("tabsHistory")||"{}")}getTabsFromSearchQuery(){let o={},i=new URLSearchParams(window.location.search);return i.has("tabs")&&(i.get("tabs")||"").split(",").forEach(r=>{let a=r.split("_"),[u,f]=a,m="regular";if(a.length===3&&(m=a[2]),u&&f&&Object.values(O).includes(m)){let p=f;o[u]={key:p,variant:m}}}),o}updateLocalStorageWithTabs(o){this._options.saveTabsToLocalStorage&&(this._isRestoringTabs||localStorage.setItem("tabsHistory",JSON.stringify(o)))}updateQueryParamWithTabs(o){if(this._isRestoringTabs)return;let i=new URLSearchParams(window.location.search),r=Object.entries(o).map(([f,{key:m,variant:p}])=>p==="regular"?`${f}_${m}`:`${f}_${m}_${p}`);r.length>0?i.set("tabs",r.join(",")):i.delete("tabs");let a=history.state||{},u=new URL(window.location.href);u.search=i.toString(),window.history.replaceState({...a},document.title,u.href)}getCurrentPageTabHistory(o){return Object.fromEntries(Object.entries(o).filter(([i])=>this._currentPageTabGroups.includes(i)))}onPageChanged(){this._currentPageTabGroups=this.getCurrentPageTabGroups()}getCurrentPageTabGroups(){let o=this._document.getElementsByClassName(e),i=new Set;return Array.from(o).forEach(r=>{let a=r.getAttribute(d);a&&i.add(a)}),Array.from(i)}clearTabsPreferred(){localStorage.removeItem("tabsHistory"),this.updateQueryParamWithTabs({})}_selectTab(o,i){let{group:r,key:a,variant:u}=o;if(!r)return;this.saveTabPreferred({group:r,key:a,variant:u});let f=i&&k(i),m=f&&R(i,f);this.updateHTML({group:r,key:a,variant:u},i,u)>0&&(this.fireSelectTabEvent({group:r,key:a,variant:u},i==null?void 0:i.dataset.diplodocId),m&&this.resetScroll(i,f,m))}updateHTML(o,i,r){switch(r){case"radio":return this.updateHTMLRadio(o,i);case"accordion":return this.updateHTMLAccordion(o,i);case"regular":return this.updateHTMLRegular(o);case"dropdown":return this.updateHTMLDropdown(o);default:return 0}}saveTabPreferred(o){let i={};switch(this._options.saveTabsToLocalStorage&&(i=JSON.parse(localStorage.getItem("tabsHistory")||"{}")),i[o.group]={key:o.key,variant:o.variant},this._options.saveTabsToLocalStorage&&this.updateLocalStorageWithTabs(i),this._options.saveTabsToQueryStateMode){case"all":{this.updateQueryParamWithTabs(i);break}case"page":{this.updateQueryParamWithTabs(this.getCurrentPageTabHistory(i));break}}}updateHTMLRadio(o,i){let{group:r,key:a}=o,{isForced:u,root:f}=this.didTabOpenForce(i),m=u?`.yfm-vertical-tab[${C}="true"]`:"",p=this._document.querySelectorAll(`${b.TABS}[${d}="${r}"] ${b.TAB}[${c}="${a}"]${m}`);u&&(f==null||f.removeAttribute(C));let g=0;return p.forEach(y=>{let T=y.parentNode.children;for(let _=0;_<T.length;_+=2){let[S,A]=[T.item(_),T.item(_+1)],P=S.children.item(0);if(S===y){P.checked?(S.classList.remove("active"),A==null||A.classList.remove("active"),P.removeAttribute("checked")):(S.classList.add("active"),A==null||A.classList.add("active"),P.setAttribute("checked","true"));continue}P.hasAttribute("checked")&&(S.classList.remove("active"),A==null||A.classList.remove("active"),P.removeAttribute("checked")),g++}}),g}updateHTMLRegular(o){let{group:i,key:r}=o,a=this._document.querySelectorAll(`${b.TABS}[${d}="${i}"] ${b.TAB}[${c}="${r}"]`),u=0;return a.forEach(f=>{let m=f;if(!this.isValidTabElement(m)||m.dataset.diplodocIsActive==="true")return;u++;let p=f,g=p.parentNode,y=g==null?void 0:g.parentNode,T=Array.from((g==null?void 0:g.querySelectorAll(b.TAB))||[]),_=Array.from((y==null?void 0:y.children)||[]).filter(A=>A.classList.contains(n)),S=T.indexOf(p);T.forEach((A,P)=>{let Ue=_[P],W=P===S,Qe=A;Qe.dataset.diplodocIsActive=W?"true":"false",A.classList.toggle(l,W),A.setAttribute("aria-selected",W.toString()),A.setAttribute("tabindex",W?"0":"-1"),Ue.classList.toggle(l,W)})}),u}updateHTMLDropdown(o){let{group:i,key:r}=o,a=this._document.querySelectorAll(`${b.TABS}[${d}="${i}"] ${b.TAB}[${c}="${r}"]`),u=0;return a.forEach(f=>{let m=f.closest(`[${h}=dropdown]`);if(!(m!=null&&m.children))return;let p=m.children.item(0),g=m.children.item(1);p==null||p.classList.remove(l);let y=Array.from((g==null?void 0:g.children)||[]).indexOf(f)+2;for(let T=2;T<m.children.length;T++){let _=m.children.item(T),S=g==null?void 0:g.children.item(T-2);if(u++,y===T){_==null||_.classList.add(l),S.classList.add(l),p.innerHTML=f.innerHTML,p.classList.add("filled");continue}S.classList.remove(l),_.classList.remove(l)}}),u}updateHTMLAccordion(o,i){let{group:r,key:a}=o,u=this._document.querySelectorAll(`${b.TABS}[${d}="${r}"] ${b.TAB}[${c}="${a}"]`),f=0;return u.forEach(m=>{let p=m.closest(`[${h}=accordion]`);if(p!=null&&p.children)for(let g=0;g<p.children.length;g+=2){let y=p.children.item(g),T=p.children.item(g+1);if(f++,m===y){y==null||y.classList.toggle(l),T==null||T.classList.toggle(l);continue}y==null||y.classList.remove(l),T==null||T.classList.remove(l)}}),i&&!this.checkVisible(i)&&setTimeout(()=>{i.scrollIntoView({block:"nearest"})}),f}checkVisible(o){let i=o.getBoundingClientRect(),r=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(i.bottom<0||i.top-r>=0)}hideAllDropdown(o){this._document.querySelectorAll(".yfm-tabs-dropdown-select.active").forEach(i=>{i.contains(o)||i.classList.remove(l)})}resetScroll(o,i,r){let a=R(o,i),u=a.top-r.top,f=a.left-r.left,m=a.scrollTop-r.scrollTop,p=a.scrollLeft-r.scrollLeft;i.scrollTo(i.scrollLeft+f-p,i.scrollTop+u-m)}didTabOpenForce(o){if(!o)return{};if(o.dataset.diplodocForced)return{root:o,isForced:!0};let i=o.dataset.diplodocVerticalTab?o:o.parentElement,r=typeof(i==null?void 0:i.dataset.diplodocForced)!="undefined";return{root:i,isForced:r}}fireSelectTabEvent(o,i){let{group:r,key:a,variant:u}=o,f=r.startsWith(L)?{key:a,variant:u}:o;this._onSelectTabHandlers.forEach(m=>{m({tab:f,currentTabId:i})})}getTabsType(o){let i=o.closest(`[${h}]`);if(i)return i.dataset.diplodocVariant}isValidTabElement(o){return!!this.getTabsType(o)}isElementDropdownSelect(o){return o.classList.contains(D)}getTabDataFromHTMLElement(o){var i,r,a;let u=this.getTabsType(o);if(u==="radio"){let p=o.dataset.diplodocVerticalTab?o:o.parentElement,g=p.dataset.diplodocKey,y=(i=p.closest(b.TABS))==null?void 0:i.dataset.diplodocGroup;return g&&y?{group:y,key:g,variant:"radio"}:null}if(u==="dropdown"||u==="accordion"){let p=o.dataset.diplodocKey,g=(r=o.closest(b.TABS))==null?void 0:r.dataset.diplodocGroup;return p&&g?{group:g,key:p,variant:u}:null}let f=o.dataset.diplodocKey,m=(a=o.closest(b.TABS))==null?void 0:a.dataset.diplodocGroup;return f&&m?{group:m,key:f,variant:"regular"}:null}getTabs(o){var i,r;let a=(i=o.closest(b.TABS))==null?void 0:i.dataset.diplodocGroup,u=(r=o.closest(b.TAB_LIST))==null?void 0:r.querySelectorAll(b.TAB),f=[];return u.forEach(m=>{let p=m==null?void 0:m.dataset.diplodocKey;p&&f.push({group:a,key:p,variant:"regular"})}),{tabs:f,nodes:u}}};typeof window!="undefined"&&typeof document!="undefined"&&!window[w]&&(window[w]=new $(document))})();var _e=we(Ae());typeof document!="undefined"&&(function(e){let t=e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;t?e.matches=e.matchesSelector=t:e.matches=e.matchesSelector=function(s){let d=(e.getRootNode?e.getRootNode():_e.default.call(e)).querySelectorAll(s),c=this;return Array.prototype.some.call(d,h=>h===c)}})(Element.prototype);var H=e=>{let t=e.composedPath();return Array.isArray(t)&&t.length>0?t[0]:e.target},q=e=>{let t=H(e);return!t||!t.matches},j=async e=>{if(!e)return;if(navigator.clipboard&&typeof navigator.clipboard.writeText)return navigator.clipboard.writeText(e);let t=document.createElement("textarea");t.setAttribute("style","position: absolute; left: 1000%"),t.textContent=e,document.body.append(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)},Se=".yfm-clipboard-button",Ce=".yfm-wrapping-button";function Ne(e){if(!e)return;let t=e.getAttribute("data-animation"),n=e.getRootNode().getElementById(`visibileAnimation-${t}`);n&&n.beginElement()}function Be(e){var t;let n=(t=e.parentNode)==null?void 0:t.parentNode,s=n==null?void 0:n.querySelector("pre code");if(!n||!s)return;let l=Array.from(s.childNodes).filter(d=>!(d instanceof HTMLElement&&d.classList.contains("yfm-line-number"))).map(d=>d.textContent).join("");j(l.trim()).then(()=>{Ne(n.querySelector(".yfm-clipboard-icon")),setTimeout(()=>e.blur(),1500)})}function Oe(e){var t;let n=(t=e.parentNode)==null?void 0:t.parentNode,s=n==null?void 0:n.querySelector("pre code");!n||!s||(s.classList.toggle("wrap"),setTimeout(()=>e.blur(),500))}typeof document!="undefined"&&document.addEventListener("click",e=>{if(q(e))return;let t=H(e);t.matches(Se)?Be(t):t.matches(Ce)&&Oe(t)});var Ie=".yfm-clipboard-anchor";typeof document!="undefined"&&document.addEventListener("click",e=>{let t=H(e);if(q(e)||!t.matches(Ie))return;let n=t.getAttribute("data-href")||"",s=new URL(n,window.location.href).toString();j(s)});var U=".yfm-clipboard-inline-code",ie="tooltip_inline_clipboard_dialog",ke="yfm inline_code_tooltip",x="open",re={ru:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",en:"Copied",ar:"\u062A\u0645 \u0627\u0644\u0646\u0633\u062E",cs:"Zkop\xEDrov\xE1no",fr:"Copi\xE9",es:"Copiado",he:"\u05D4\u05D5\u05E2\u05EA\u05E7",bg:"\u041A\u043E\u043F\u0438\u0440\u0430\u043D\u043E",et:"Kopeeritud",el:"\u0391\u03BD\u03C4\u03B9\u03B3\u03C1\u03AC\u03C6\u03B7\u03BA\u03B5",pt:"Copiado",zh:"\u5DF2\u590D\u5236","zh-tw":"\u5DF2\u8907\u88FD",kk:"\u041A\u04E9\u0448\u0456\u0440\u0456\u043B\u0434\u0456",tr:"Kopyaland\u0131",uz:"Nusxalandi"},Q={TITLE:".yfm .yfm-term_title",CONTENT:".yfm .yfm-term_dfn"},M="open",V=Q.CONTENT.replace(/\./g,"")+" "+M,G=!0;function Re(e,t){let n=t.getAttribute("id")||Math.random().toString(36).substr(2,8);e==null||e.setAttribute("term-id",n)}function Pe(e,t){let n=t.getAttribute("aria-live")||"polite";e==null||e.setAttribute("aria-live",n),e==null||e.setAttribute("aria-modal","true")}function J(e,t){let{x:n,y:s,right:l,left:d,width:c,height:h}=t.getBoundingClientRect(),v=le(t);if(!v)return;let{right:L,left:C}=v.getBoundingClientRect();if((L<d||C>l)&&!G){K(e);return}G&&v&&(v.addEventListener("scroll",se),G=!1);let D=Number(e.getAttribute("relativeX")),B=Number(e.getAttribute("relativeY"));if(D===n&&B===s)return;e.setAttribute("relativeX",String(n)),e.setAttribute("relativeY",String(s));let O=h+5,w=e.parentElement;if(!w)return;let{width:E}=e.getBoundingClientRect(),{left:I}=w.getBoundingClientRect(),k=Number(N(t).left),R=E+k,b=k-E<0,$=R>document.body.clientWidth,i=($||document.dir==="rtl")&&!b?E-c:0,r=N(w).top-w.offsetTop,u=$?R-document.body.clientWidth+5:0,f=N(t).left-I+w.offsetLeft-i,m=f+E>=document.body.clientWidth;e.style.top=Number(N(t).top+O-r)+"px",e.style.left=Number(f-(m?u:0))+"px"}function se(){let e=document.getElementsByClassName(V)[0];if(!e)return;let t=e.getAttribute("term-id")||"",n=document.getElementById(t);n&&J(e,n)}function le(e){return e?e.closest("table")||e.closest("code")||e.parentElement:null}function ae(e){let t=document.getElementsByClassName(V)[0],n=e.getAttribute("id"),l=`${e.getAttribute("term-key")}_element`,d=e.closest(".wide-container"),c;if(d){let L=e.closest(".wide-content");if(!L)return;c=L.querySelector(`[id="${l}"]`)}else c=document.getElementById(l);if(t&&n===t.getAttribute("term-id")){K(t);return}let v=e.closest([Q.CONTENT.replace(" ",""),M].join("."));t&&!v&&K(t),!(!e.matches(Q.TITLE)||!c)&&(Re(c,e),Pe(c,e),J(c,e),c.classList.toggle(M),De(c))}function K(e){e.classList.remove(M);let t=ce(e),n=le(t);n&&(n.removeEventListener("scroll",se),G=!0)}function N(e){let t=e.getBoundingClientRect(),n=document.body,s=document.documentElement,l=window.pageYOffset||s.scrollTop||n.scrollTop,d=window.pageXOffset||s.scrollLeft||n.scrollLeft,c=s.clientTop||n.clientTop||0,h=s.clientLeft||n.clientLeft||0,v=t.top+l-c,L=t.left+d-h;return{top:Math.round(v),left:Math.round(L)}}function De(e){let t=e.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),n=t[0],s=t[t.length-1];n&&n.focus(),e.addEventListener("keydown",function(l){(l.key==="Tab"||l.keyCode===9)&&(l.shiftKey?document.activeElement===n&&(s.focus(),l.preventDefault()):document.activeElement===s&&(n.focus(),l.preventDefault()))})}function ce(e){let t=e.getAttribute("term-id");if(!t)return null;if(e.closest(".wide-container")){let s=e.closest(".wide-content");return s?s.querySelector(`[id="${t}"]`):null}return document.getElementById(t)}var F=null,Y=!0;function z(){return document.getElementById(ie)}function $e(e,t){let n=t.getAttribute("aria-live")||"polite";e==null||e.setAttribute("aria-live",n),e==null||e.setAttribute("aria-modal","true")}function de(){F&&(clearTimeout(F),F=null)}function Z(e){return e?e.closest("table")||e.closest("code")||e.parentElement:null}function ue(){let e=z();if(!e)return;let t=e.getAttribute("inline-id")||"",n=document.getElementById(t);n&&ee(e,n)}function ee(e,t){let{x:n,y:s,right:l,left:d,width:c,height:h}=t.getBoundingClientRect(),v=Z(t);if(!v)return;let{right:L,left:C}=v.getBoundingClientRect();if((L<d||C>l)&&!Y){te(e);return}Y&&v&&(v.addEventListener("scroll",ue),Y=!1);let D=Number(e.getAttribute("relativeX")),B=Number(e.getAttribute("relativeY"));if(D===n&&B===s)return;e.setAttribute("relativeX",String(n)),e.setAttribute("relativeY",String(s));let O=h+5,w=e.parentElement;if(!w)return;let{width:E}=e.getBoundingClientRect(),{left:I}=w.getBoundingClientRect(),k=Number(N(t).left),R=E+k,b=k-E<0,$=R>document.body.clientWidth,i=($||document.dir==="rtl")&&!b?E-c:0,r=N(w).top-w.offsetTop,u=$?R-document.body.clientWidth+5:0,f=N(t).left-I+w.offsetLeft-i,m=f+E>=document.body.clientWidth;e.style.top=Number(N(t).top+O-r)+"px",e.style.left=Number(f-(m?u:0))+"px"}function fe(e){let t=e.getAttribute("inline-id");return t?document.getElementById(t):null}function He(e){e.classList.remove(x);let t=fe(e),n=Z(t),s=Z(e);e.removeAttribute("inline-id"),!(!n||!s)&&(s.removeChild(e),n.removeEventListener("scroll",ue),Y=!0)}function xe(){var e;let t=z();if(!t){let n=document.querySelector(".dc-doc-page__content")||document.body,s=document.documentElement.lang||"en",l=(e=re[s])!=null?e:re.en,d=document.createElement("div");d.innerHTML=`
2
2
  <div id="${ie}" class="${ke}"
3
3
  role="dialog" aria-live="polite" aria-modal="true">
4
- ${s}
4
+ ${l}
5
5
  </div>
6
- `,t=c.firstElementChild,n.appendChild(t)}return t}function Me(e){let t=xe();if(!(!e.matches(U)||!t))return t.setAttribute("inline-id",e.getAttribute("id")||""),He(t,e),ee(t,e),t.classList.contains(P)?(t.classList.remove(P),requestAnimationFrame(()=>{t.classList.add(P)})):t.classList.add(P),t}function te(e){de(),$e(e)}function pe(e){let t=Me(e);t&&(de(),x=setTimeout(()=>{te(t),x=null},1e3))}function Fe(e){let t=e.innerText;t&&q(t).then(()=>{pe(e)})}typeof document!="undefined"&&(document.addEventListener("click",e=>{let t=I(e),n=t.matches(U);j(e)||!n||Fe(t)}),document.addEventListener("keydown",e=>{var t;if(e.key==="Enter"&&document.activeElement){let a=document.activeElement,s=U.replace(".","");if(!a.classList.contains(s))return;let c=a.innerText;if(!c)return;q(c).then(()=>{pe(a)})}let n=X();e.key==="Escape"&&n&&(te(n),(t=fe(n))==null||t.focus())}),window.addEventListener("resize",()=>{let e=X();if(!e)return;let t=e.getAttribute("inline-id")||"",n=document.getElementById(t);if(!n){e.classList.toggle(P);return}ee(e,n)})),typeof document!="undefined"&&(document.addEventListener("click",e=>{(I(e)||!j(e))&&le(I(e))}),document.addEventListener("keydown",e=>{var t;let n=document.getElementsByClassName(V)[0];e.key==="Enter"&&document.activeElement&&le(document.activeElement),e.key==="Escape"&&n&&(Y(n),(t=ce(n))==null||t.focus())}),window.addEventListener("resize",()=>{let e=document.getElementsByClassName(V)[0];if(!e)return;let t=e.getAttribute("term-id")||"",n=document.getElementById(t);if(!n){e.classList.toggle($);return}J(e,n)}));var We="[wide-content]",je='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.754 2.004a.75.75 0 0 0 0 1.5h4.75v4.742a.75.75 0 0 0 1.5 0V2.754a.75.75 0 0 0-.75-.75zm.492 11.992a.75.75 0 0 0 0-1.5h-4.75V7.754a.75.75 0 0 0-1.5 0v5.492a.75.75 0 0 0 .75.75z" clip-rule="evenodd"/></svg>',qe='<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg" class="close-action"><path fillRule="evenodd" clipRule="evenodd" d="M9.46967 9.46967C9.76256 9.17678 10.2374 9.17678 10.5303 9.46967L14 12.9393L17.4697 9.46967C17.7626 9.17678 18.2374 9.17678 18.5303 9.46967C18.8232 9.76256 18.8232 10.2374 18.5303 10.5303L15.0607 14L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L14 15.0607L10.5303 18.5303C10.2374 18.8232 9.76256 18.8232 9.46967 18.5303C9.17678 18.2374 9.17678 17.7626 9.46967 17.4697L12.9393 14L9.46967 10.5303C9.17678 10.2374 9.17678 9.76256 9.46967 9.46967Z" fill="var(--g-color-text-primary)" fillOpacity="0.85"/></svg>',ne=()=>{window.wideTemplate&&(window.wideTemplate.style.display="none",window.wideTemplate.content(void 0))},Ve=e=>{if(e.tagName!=="TABLE")return;let t=Array.from(e.children);return t.find(s=>s.tagName==="THEAD")?void 0:t.find(s=>s.tagName==="TBODY")},Ge=()=>{if(window.wideTemplate)return window.wideTemplate;let e=document.createElement("div");e.classList.add("dc-doc-page","wide-container");let t=document.createElement("div");t.classList.add("wide-content-overlay"),t.addEventListener("click",ne);let n=document.createElement("div");n.classList.add("yfm","wide-content-wrapper");let a=document.createElement("div");a.classList.add("wide-toolbar");let s=document.createElement("div");s.classList.add("wide-actions"),s.addEventListener("click",ne),s.innerHTML=qe;let c=document.createElement("p");c.classList.add("wide-entity-name"),e.label=h=>{c.innerHTML=h||""};let d=document.createElement("div");return d.classList.add("wide-content"),e.content=h=>{var b;if(typeof h=="undefined"){d.innerHTML="";return}let w=h.cloneNode(!0),C=Ve(w);(b=C==null?void 0:C.classList)==null||b.add("wide-thead-content"),d.replaceChildren(w)},a.append(c,s),n.append(a,d),e.append(t,n),e.style.display="none",document.body.appendChild(e),window.wideTemplate=e,e},Ye=e=>{let t=Ge();t.label(e.title),t.content(e),t.style.display="flex"},ze={render:Ye,remove:ne},Xe=e=>{var t;if((t=e.parentElement)!=null&&t.classList.contains("wide-element-wrapper"))return;e.classList.add("wide-inner-element");let n=document.createElement("div");n.innerHTML=je,n.classList.add("wide-content-viewer"),n.addEventListener("click",()=>ze.render(e));let a=document.createElement("div");a.classList.add("wide-element-wrapper"),e.before(a),a.appendChild(e),a.appendChild(n)},me=()=>{Array.from(document.querySelectorAll(We)).forEach(Xe)};typeof window!="undefined"&&typeof document!="undefined"&&window.addEventListener("load",me);var Ke=()=>{me()};typeof window!="undefined"&&(window.patchAfterRender=Ke)})();})();
6
+ `,t=d.firstElementChild,n.appendChild(t)}return t}function Me(e){let t=xe();if(!(!e.matches(U)||!t))return t.setAttribute("inline-id",e.getAttribute("id")||""),$e(t,e),ee(t,e),t.classList.contains(x)?(t.classList.remove(x),requestAnimationFrame(()=>{t.classList.add(x)})):t.classList.add(x),t}function te(e){de(),He(e)}function me(e){let t=Me(e);t&&(de(),F=setTimeout(()=>{te(t),F=null},1e3))}function Fe(e){let t=e.innerText;t&&j(t).then(()=>{me(e)})}typeof document!="undefined"&&(document.addEventListener("click",e=>{let t=H(e),n=t.matches(U);q(e)||!n||Fe(t)}),document.addEventListener("keydown",e=>{var t;if(e.key==="Enter"&&document.activeElement){let s=document.activeElement,l=U.replace(".","");if(!s.classList.contains(l))return;let d=s.innerText;if(!d)return;j(d).then(()=>{me(s)})}let n=z();e.key==="Escape"&&n&&(te(n),(t=fe(n))==null||t.focus())}),window.addEventListener("resize",()=>{let e=z();if(!e)return;let t=e.getAttribute("inline-id")||"",n=document.getElementById(t);if(!n){e.classList.toggle(x);return}ee(e,n)})),typeof document!="undefined"&&(document.addEventListener("click",e=>{(H(e)||!q(e))&&ae(H(e))}),document.addEventListener("keydown",e=>{var t;let n=document.getElementsByClassName(V)[0];e.key==="Enter"&&document.activeElement&&ae(document.activeElement),e.key==="Escape"&&n&&(K(n),(t=ce(n))==null||t.focus())}),window.addEventListener("resize",()=>{let e=document.getElementsByClassName(V)[0];if(!e)return;let t=e.getAttribute("term-id")||"",n=document.getElementById(t);if(!n){e.classList.toggle(M);return}J(e,n)}));var We="[wide-content]",qe='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.754 2.004a.75.75 0 0 0 0 1.5h4.75v4.742a.75.75 0 0 0 1.5 0V2.754a.75.75 0 0 0-.75-.75zm.492 11.992a.75.75 0 0 0 0-1.5h-4.75V7.754a.75.75 0 0 0-1.5 0v5.492a.75.75 0 0 0 .75.75z" clip-rule="evenodd"/></svg>',je='<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg" class="close-action"><path fillRule="evenodd" clipRule="evenodd" d="M9.46967 9.46967C9.76256 9.17678 10.2374 9.17678 10.5303 9.46967L14 12.9393L17.4697 9.46967C17.7626 9.17678 18.2374 9.17678 18.5303 9.46967C18.8232 9.76256 18.8232 10.2374 18.5303 10.5303L15.0607 14L18.5303 17.4697C18.8232 17.7626 18.8232 18.2374 18.5303 18.5303C18.2374 18.8232 17.7626 18.8232 17.4697 18.5303L14 15.0607L10.5303 18.5303C10.2374 18.8232 9.76256 18.8232 9.46967 18.5303C9.17678 18.2374 9.17678 17.7626 9.46967 17.4697L12.9393 14L9.46967 10.5303C9.17678 10.2374 9.17678 9.76256 9.46967 9.46967Z" fill="var(--g-color-text-primary)" fillOpacity="0.85"/></svg>',ne=()=>{window.wideTemplate&&(window.wideTemplate.style.display="none",window.wideTemplate.content(void 0))},Ve=e=>{if(e.tagName!=="TABLE")return;let t=Array.from(e.children);return t.find(l=>l.tagName==="THEAD")?void 0:t.find(l=>l.tagName==="TBODY")},Ge=()=>{if(window.wideTemplate)return window.wideTemplate;let e=document.createElement("div");e.classList.add("dc-doc-page","wide-container");let t=document.createElement("div");t.classList.add("wide-content-overlay"),t.addEventListener("click",ne);let n=document.createElement("div");n.classList.add("yfm","wide-content-wrapper");let s=document.createElement("div");s.classList.add("wide-toolbar");let l=document.createElement("div");l.classList.add("wide-actions"),l.addEventListener("click",ne),l.innerHTML=je;let d=document.createElement("p");d.classList.add("wide-entity-name"),e.label=h=>{d.innerHTML=h||""};let c=document.createElement("div");return c.classList.add("wide-content"),e.content=h=>{var v;if(typeof h=="undefined"){c.innerHTML="";return}let L=h.cloneNode(!0),C=Ve(L);(v=C==null?void 0:C.classList)==null||v.add("wide-thead-content");let D=L.querySelectorAll(".yfm-term_title"),B=[];D.forEach(O=>{let w=O.getAttribute("term-key");if(w){let E=document.getElementById(w+"_element");if(E){let I=E.cloneNode(!0);B.push(I)}}}),c.replaceChildren(L,...B)},s.append(d,l),n.append(s,c),e.append(t,n),e.style.display="none",document.body.appendChild(e),window.wideTemplate=e,e},Ke=e=>{let t=Ge();t.label(e.title),t.content(e),t.style.display="flex"},Ye={render:Ke,remove:ne},ze=e=>{var t;if((t=e.parentElement)!=null&&t.classList.contains("wide-element-wrapper"))return;e.classList.add("wide-inner-element");let n=document.createElement("div");n.innerHTML=qe,n.classList.add("wide-content-viewer"),n.addEventListener("click",()=>Ye.render(e));let s=document.createElement("div");s.classList.add("wide-element-wrapper"),e.before(s),s.appendChild(e),s.appendChild(n)},pe=()=>{Array.from(document.querySelectorAll(We)).forEach(ze)};typeof window!="undefined"&&typeof document!="undefined"&&window.addEventListener("load",pe);var Xe=()=>{pe()};typeof window!="undefined"&&(window.patchAfterRender=Xe)})();})();
7
7
  //# sourceMappingURL=yfm.min.js.map