@diplodoc/cli 5.9.2 → 5.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ (()=>{var e={82272:function(e,t,n){"use strict";var r,o,a,i,c,s=n(7409),u=n(29995),l=n(85893),d=n(67294),f=n(20745),h=n(99282),m=n(12956),g=n(53816),p=n(8534),v=n(369),w=n(7481),_=n(65848),b=n(55006);n(68648);var x=(0,d.createContext)({pathname:"/",depth:0});x.displayName="RouterContext";var S=x.Provider,y=(0,d.createContext)(p.Uo.En);y.displayName="Lang";var C=y.Provider,j=n(14823),k=n(55210),M={theme:p.Q2.Light,textSize:p.tF.M,showMiniToc:!0,wideFormat:!0,fullScreen:!1},T=["ar","arc","ckb","dv","fa","ha","he","khw","ks","ps","sd","ur","uz_AF","yi"],N=((r={}).RTL="rtl",r.LTR="ltr",r);function E(){return"undefined"!=typeof document}function O(e){var t=e.theme;"undefined"!=typeof document&&document.querySelectorAll(".g-root").forEach(function(e){e.classList.toggle("g-root_theme_light","light"===t),e.classList.toggle("g-root_theme_dark","dark"===t)})}function F(e){if(E()){document.body.classList.add("g-root");var t=function(e,t){return document.body.classList.toggle(e,!!t)};Object.keys(e).forEach(function(n){switch(n){case"wideFormat":t("dc-root_wide-format",e[n]);break;case"focusSearch":t("dc-root_focused-search",e[n]);break;case"fullScreen":t("dc-root_full-screen",e[n]);break;case"landingPage":t("dc-root_document-page",!e[n]),t("dc-root_landing-page",e[n]);break;case"mobileView":t("mobile",e[n]),t("desktop",!e[n])}})}}(0,k._)(new Set((0,k._)(["href"]).concat((0,k._)(["src","url","href","icon","image","desktop","mobile","tablet","previewImg","image","avatar","logo","light","dark"]))));var L=function(e){return"boolean"==typeof e?e:!!e&&"true"===e};function P(){var e=z("theme"),t=z("textSize"),n=z("showMiniToc"),r=z("wideFormat"),o=z("fullScreen");return{theme:e,textSize:t,showMiniToc:L(n),wideFormat:L(r),fullScreen:L(o)}}function I(e){return"PAGE_CONSTRUCTOR"===(0,j.C2)(e)}function R(){return!!E()&&document.body.clientWidth<769}function z(e){if(!E())return M[e];try{return sessionStorage.getItem(e)||M[e]}catch(t){return M[e]}}var H=n(27412),A=n(24460);function U(e,t){var n=(0,A._)((0,d.useState)(t[e]),2),r=n[0],o=n[1],a=(0,d.useMemo)(function(){var t,n;return t=e,n=o,function(e){if(E())try{sessionStorage.setItem(t,String(e))}catch(e){}n(e)}},[e,o]);return(0,d.useMemo)(function(){var t;return t={},(0,H._)(t,e,r),(0,H._)(t,"onChange"+e.replace(/^./,function(e){return e.toUpperCase()}),a),t},[e,r,a])}var B=n(22853),W=n(76150),q=n(43830),D=n(52062),V=n(41196),Z=n(28395),$=function(){function e(t){var r=this,o=this;(0,q._)(this,e),(0,H._)(this,"worker",void 0),(0,H._)(this,"config",void 0),(0,H._)(this,"init",function(){var e;e=(0,h._)((0,s._)({},r.config),{base:r.base,mark:"Suggest__Item__Marker"}),r.worker=(0,W._)(function(){var t;return(0,Z.__generator)(this,function(r){switch(r.label){case 0:return[4,(0,W._)(function(){var e,t,r;return(0,Z.__generator)(this,function(o){try{return[2,new Worker(new URL(n.p+n.u("444"),n.b))]}catch(n){if((0,V._)(n,DOMException)&&(e=Q.exec(n.message)))return t=e[1],r=new Blob(["importScripts('".concat(t,"');")],{type:"text/javascript"}),[2,new Worker(URL.createObjectURL(r))];throw n}})})()];case 1:return[4,J(t=r.sent(),(0,h._)((0,s._)({},e),{type:"init"}))];case 2:return r.sent(),[2,t]}})})()}),(0,H._)(this,"link",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=new URLSearchParams;n&&o.set("query",n),r>1&&o.set("page",r.toString());var a=o.toString()?"?".concat(o.toString()):"";return"".concat(e,"/").concat(t.link).concat(a)}(o.base,o.config,e,t)}),this.config=t}return(0,D._)(e,[{key:"suggest",value:function(e){return(0,W._)(function(){return(0,Z.__generator)(this,function(t){return[2,this.request({type:"suggest",query:e})]})}).call(this)}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return(0,W._)(function(){return(0,Z.__generator)(this,function(r){return[2,this.request({type:"search",query:e,page:t,count:n})]})}).call(this)}},{key:"base",get:function(){return window.location.href.split("/").slice(0,-this.config.depth).join("/")}},{key:"request",value:function(e){return(0,W._)(function(){return(0,Z.__generator)(this,function(t){switch(t.label){case 0:return[4,this.worker];case 1:return[2,J.apply(void 0,[t.sent(),e])]}})}).call(this)}}]),e}(),Q=/Script at '(.*?)' cannot be accessed from origin/;function J(e,t){var n=new MessageChannel;return new Promise(function(r,o){n.port1.onmessage=function(e){e.data.error?o(e.data.error):r(e.data.result)},n.port1.onmessageerror=function(e){o(e.data.error)},e.postMessage(t,[n.port2])})}n(10932),(0,B.default)("Search");var Y=(0,d.createContext)(null);Y.displayName="SearchContext";var G=Y.Provider;n(90101);var K=n(93820),X=n(77725),ee=n(52205);n(12646);var et=(0,B.default)("Layout");function en(){return null}function er(){return null}function eo(){return null}var ea={doc:!1},ei=function(e){var t,n,r,o=(0,s._)({},ea,e),a=o.children,i=o.doc,c=o.headerHeight;return d.Children.forEach(a,function(e){switch(e.type){case en:t=e.props.children;break;case er:n=e.props.children;break;case eo:r=e.props.children}}),(0,l.jsxs)("div",{className:et({"full-header":(void 0===c?0:c)>0}),children:[t&&(0,l.jsx)("div",{className:et("header"),children:t}),(0,l.jsxs)("div",{className:et("body"),children:[n&&(0,l.jsx)("div",{className:et("content"),children:n}),r&&(0,l.jsx)("div",{className:et("footer",{doc:i}),children:r})]})]})};ei.displayName="Layout",ei.Header=en,ei.Content=er,ei.Footer=eo;var ec=n(51625),es=n(44022),eu=n(47148),el=n(53013),ed=n(8925),ef=n(26383),eh=n(74411),em=(0,B.default)("pc-page-constructor"),eg=(0,B.default)("pc-constructor-row"),ep=function(e){var t=e.children;return t?(0,l.jsx)(ec.X,{className:eg(),children:(0,l.jsx)(es.J,{children:t})}):null};function ev(e){var t=e.background,n=e.blocks,r=(0,eu.F)(),o=(0,el.U)(t,r);return(0,l.jsx)("div",{className:em("docs"),children:(0,l.jsxs)("div",{className:em("wrapper"),children:[n&&o&&(0,l.jsx)(ed.Z,(0,h._)((0,s._)({},o),{className:em("background")})),(0,l.jsx)(ef.r,{children:(0,l.jsx)(ep,{children:(0,l.jsx)(eh.w,{items:n})})})]})})}var ew=function(e,t){var n=(0,j.C2)(e)===p.n_.PageConstructor&&"data"in e&&"fullScreen"in e.data&&e.data.fullScreen,r=(0,d.useMemo)(function(){return n?e.data:{blocks:[{type:"page",resetPaddings:!0}]}},[n,e]);return(0,d.useMemo)(function(){return{custom:{page:t},layout:r}},[t,r])},e_=n(57727),eb=n(86015),ex=n(70760),eS=n(97319);n(5122);var ey=(0,B.default)("Suggest");function eC(){return(0,l.jsx)(ex.J,{data:eS.Z,className:ey("end"),size:24})}function ej(){var e,t,n,r,o,a,i,c,u=(e=(0,d.useContext)(y),n=void 0===(t=(0,d.useContext)(x).depth)?0:t,r=(0,d.useContext)(Y),a=(o=(0,A._)((0,d.useState)(null),2))[0],i=o[1],c=(0,d.useMemo)(function(){return r?(0,h._)((0,s._)({},r),{depth:n,lang:e}):null},[e,n,r]),(0,d.useEffect)(function(){c&&i(c?new $(c):null)},[c]),a),f=(0,d.useRef)(null),m=(0,e_.I)("search"),g=(0,d.useCallback)(function(){F({focusSearch:!0})},[]),p=(0,d.useCallback)(function(){F({focusSearch:!1}),setTimeout(function(){f.current&&f.current.close()},100)},[]);return!u||m?null:(0,l.jsx)(eb.F,{ref:f,provider:u,onFocus:g,onBlur:p,endContent:(0,l.jsx)(eC,{}),className:ey("input"),classNameContainer:ey(),classNameClose:ey("close"),closeButton:!0})}var ek=n(69609),eM=n(73186),eT=(0,d.memo)(function(e){var t=e.mobileView,n=e.theme,r=e.onChangeTheme,o=e.textSize,a=e.onChangeTextSize,i=e.wideFormat,c=e.onChangeWideFormat,s=e.showMiniToc,u=e.onChangeShowMiniToc,d=e.lang,f=e.langs,h=e.onChangeLang;return(0,l.jsx)(ek.C,{controlClassName:"Control",controlSize:p.$D.L,isWideView:t,isMobileView:t,children:(0,l.jsx)(eM.Z,{className:"Controls",theme:n,onChangeTheme:r,wideFormat:i,onChangeWideFormat:c,showMiniToc:s,onChangeShowMiniToc:u,textSize:o,onChangeTextSize:a,lang:d,langs:f,onChangeLang:h})})});eT.displayName="HeaderControls";var eN=n(14029),eE=n(40443);function eO(e,t,n){return e.some(function(e){return e.type===n})||t.some(function(e){return e.type===n})}var eF=function(e,t,n,r,o){var a=e.toc,i=a.navigation,c=i.header,u=void 0===c?{}:c,f=i.logo,m=u.leftItems,g=void 0===m?[]:m,v=u.rightItems,w=void 0===v?[]:v,_=eO(w,g,"controls"),b=eO(w,g,"search"),S=(0,d.useContext)(Y),y=(0,d.useContext)(x);S&&!b&&w.unshift({type:"search"});var C=(0,d.useMemo)(function(){return{withBorder:!0,leftItems:g,rightItems:w,customMobileHeaderItems:[{type:"search"}]}},[g,w]),j=(0,d.useMemo)(function(){return{toc:a,router:y,headerHeight:64}},[a,y]),k=(0,d.useMemo)(function(){return{controlSize:p.$D.L,userSettings:t,viewerInterface:o}},[t,o]),M=(0,d.useMemo)(function(){var e;return{header:{leftItems:[]},renderNavigation:function(){var e;return(0,l.jsx)(eN.Z,{logo:(0,h._)((0,s._)({},f),{icon:null!=(e=null==f?void 0:f.icon)?e:""}),data:C,navigationTocData:j,mobileControlsData:k})},logo:(0,h._)((0,s._)({},f),{icon:null!=(e=null==f?void 0:f.icon)?e:""})}},[C,j,k,f]);return(0,d.useMemo)(function(){return{custom:{search:r,controls:n,MobileDropdown:eE.Z},layout:M,withControls:_}},[r,n,M,_])};function eL(e){var t=e.data,n=(0,K._)(e,["data"]),r=(0,j.C2)(t),o=(0,j.N7)(r);return(0,l.jsx)(ei,{headerHeight:n.headerHeight,children:(0,l.jsx)(ei.Content,{children:(0,l.jsx)(o,(0,s._)({},t,n))})})}function eP(e){var t=e.data,n=e.props,r=e.controls,o=n.theme,a=(0,d.useCallback)(function(){return(0,l.jsx)(ev,(0,s._)({},t.data))},[t]),i=ew(t,a),c=(0,d.useMemo)(function(){return{blocks:i.custom}},[i]);return(0,l.jsx)(eL,(0,h._)((0,s._)({data:t,headerHeight:0},n,r),{children:(0,l.jsx)(X.W,{theme:o,projectSettings:{disableCompress:!0},ssrConfig:{isServer:!0},children:(0,l.jsx)(ee.C,{custom:c,content:i.layout})})}))}function eI(e){var t=e.data,n=e.props,r=e.controls,o=n.theme,a=n.fullScreen,i=(0,d.useCallback)(function(){return(0,l.jsx)(ej,{})},[]),c=(0,d.useCallback)(function(){return(0,l.jsx)(eT,(0,s._)({},r))},[r]),u=eF(t,r,c,i),f=(0,d.useCallback)(function(){var e,o;return(0,l.jsx)(eL,(0,h._)((0,s._)({data:t,headerHeight:64*!a},n,u.withControls?(o=["theme","onChangeTheme","textSize","onChangeTextSize","wideFormat","onChangeWideFormat","showMiniToc","onChangeShowMiniToc","langs","onChangeLang"],Object.keys(e=r).reduce(function(t,n){return o.includes(n)||(t[n]=e[n]),t},{})):r),{children:(0,l.jsx)(ev,(0,s._)({},t.data))}))},[t,u,n,r,a]),m=ew(t,f),g=(0,d.useMemo)(function(){return{navigation:u.custom,blocks:m.custom}},[u,m]);return(0,l.jsx)(X.W,{theme:o,projectSettings:{disableCompress:!0},ssrConfig:{isServer:!0},children:(0,l.jsx)(ee.C,{custom:g,content:m.layout,navigation:a?void 0:u.layout})})}var eR=n(91398),ez=n(17344),eH=n(87767),eA=n(12982),eU=n(34952),eB=n(76638);function eW(){var e=(0,eA.F)();return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eH.r,{}),(0,l.jsx)(ez.S,{}),(0,l.jsx)(eR.u,{theme:e===p.Q2.Dark?"dark":"neutral",zoom:{showMenu:!0,bindKeys:!0}}),(0,l.jsx)(eU.TabsRuntime,{saveTabsToLocalStorage:!0,saveTabsToQueryStateMode:"page"}),(0,l.jsx)(eB.Hc,{})]})}var eq=n(18245),eD=function(e){var t=e.components,n=e.pureComponents;return function(e){return function(r){var o=r.forwardRef,a=r.mdxArtifacts,i=r.html,c=(0,d.useRef)(null);c.current=null;var u=(0,d.useCallback)(function(e){return c.current=e,o(e)},[o]),l=(0,eq.Z)({refCtr:c,components:t,pureComponents:n,mdxArtifacts:a,html:i});return d.createElement(d.Fragment,null,d.createElement(e,(0,h._)((0,s._)({},r),{forwardRef:u})),l)}}};function eV(e){var t,r,o,a,i,c,u,f,x,y,j,k,M,E,L,z=e.data,H=e.router,B=e.lang,W=e.search,q=e.analytics,D=e.viewerInterface,V=(r=U("theme",t=P()),o=U("textSize",t),a=U("wideFormat",t),i=U("fullScreen",t),c=U("showMiniToc",t),(0,d.useMemo)(function(){return(0,s._)({},r,o,a,c,i)},[r,o,a,c,i])),Z=(u=e.lang,f=e.langs,x=(0,d.useCallback)(function(e){var t;window.location.replace((t=window.location.href.replace(/^https?:\/\/[^/]+/,"").replace(/^\/[a-z]{2}\//,"/"),"".concat(e).concat(t)))},[]),(0,d.useMemo)(function(){return{lang:u,langs:f,onChangeLang:x}},[u,f,x])),$=(j=(y=(0,A._)((0,d.useState)(R()),2))[0],k=y[1],M=(0,d.useCallback)(function(){k(R())},[]),(0,d.useEffect)(M,[M]),(0,d.useEffect)(function(){return window.addEventListener("resize",M),function(){return window.removeEventListener("resize",M)}},[M]),j),Q=g.aP.includes(B)?B:p.Uo.En;(0,v.jQ)({lang:Q,localeCode:Q});var J=(0,d.useMemo)(function(){var e=[],t=n.g&&"getMdxInitProps"in n.g&&n.g.getMdxInitProps;return"function"==typeof t&&e.push(eD(t({dependencies:{react:d}}))),e},[]),Y=V.theme,K=V.textSize,X=V.wideFormat,ee=V.fullScreen,et=V.showMiniToc,en=(0,d.useMemo)(function(){return{router:H,theme:Y,textSize:K,wideFormat:X,fullScreen:ee,showMiniToc:et,isMobile:$}},[H,Y,K,X,ee,et,$]),er=(0,d.useMemo)(function(){return(0,h._)((0,s._)({},V,Z),{mobileView:$})},[Z,V,$]),eo=T.includes(B)?N.RTL:N.LTR,ea=I(z);return(0,d.useEffect)(function(){F({mobileView:$,wideFormat:X,fullScreen:ee,landingPage:ea}),O({theme:Y}),function(){var e=window.location.hash.substring(1);if(e){var t=document.getElementById(e);if(t){for(var n,r=null==t?void 0:t.parentElement;r;)(null==(n=r)?void 0:n.tagName.toLowerCase())==="details"&&(r.open=!0),r=r.parentElement;t.focus(),setTimeout(function(){!function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;if(!((t=e.getBoundingClientRect()).top>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)))if(-1!==["H1","H2","H3","H4","H5","H6"].indexOf(e.tagName))e.scrollIntoView();else{var r=e.getBoundingClientRect().top+window.scrollY-n;window.scrollTo({top:r})}}(t)},10)}}}()},[Y,$,X,ee,ea]),(0,l.jsx)("div",{className:"App",children:(0,l.jsx)(m.f,{theme:Y,direction:eo,children:(0,l.jsx)(C,{value:B,children:(0,l.jsx)(S,{value:H,children:(0,l.jsx)(G,{value:W,children:(0,l.jsxs)(w._,{interface:D||{},children:[(0,l.jsx)(_.Y.Provider,{value:J,children:z.toc.navigation?(0,l.jsx)(eI,{data:z,props:en,controls:er}):(0,l.jsx)(eP,{data:z,props:en,controls:er})}),q&&(0,l.jsx)(b.Z,{router:H,gtmId:(null==q||null==(E=q.gtm)?void 0:E.id)||"",consentMode:null==q||null==(L=q.gtm)?void 0:L.mode}),(0,l.jsx)(eW,{})]})})})})})})}n(65333);var eZ=document.getElementById("root"),e$=window.__DATA__;if(!eZ)throw Error("Root element not found!");if(!(e$&&(void 0===e$?"undefined":(0,u._)(e$))==="object"&&null!==e$&&"data"in e$))throw Error("Invalid data format for App component");a=(o=P()).theme,i=o.wideFormat,c=o.fullScreen,F({mobileView:R(),wideFormat:i,fullScreen:c,landingPage:I(e$.data)}),O({theme:a}),window.STATIC_CONTENT?(0,f.hydrateRoot)(eZ,(0,l.jsx)(eV,(0,s._)({},e$))):(0,f.createRoot)(eZ).render((0,l.jsx)(eV,(0,s._)({},e$)))},90101:function(){var e,t;"undefined"!=typeof Element&&((t=(e=Element.prototype).matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector)?e.matches=e.matchesSelector=t:e.matches=e.matchesSelector=function(e){var t=this;return Array.prototype.some.call(document.querySelectorAll(e),function(e){return e===t})})},86685:function(e,t,n){"use strict";function r(){}n.d(t,{Z:()=>r})},65333:function(e,t,n){"use strict";e.exports={}},12646:function(e,t,n){"use strict";e.exports={}},10932:function(e,t,n){"use strict";e.exports={}},5122:function(e,t,n){"use strict";e.exports={}},18925:function(){},81481:function(){},21361:function(){},49505:function(){},53480:function(){},31337:function(){}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o||"object"==typeof r&&r&&(4&o&&r.__esModule||16&o&&"function"==typeof r.then))return r;var a=Object.create(null);n.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&r;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach(e=>{i[e]=()=>r[e]});return i.default=()=>r,n.d(a,i),a}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.k=e=>""+e+".css",n.u=e=>""+e+"-eff261d7ea9f84b4.js",n.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e=[];n.O=(t,r,o,a)=>{if(r){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[r,o,a];return}for(var c=1/0,i=0;i<e.length;i++){for(var[r,o,a]=e[i],s=!0,u=0;u<r.length;u++)(!1&a||c>=a)&&Object.keys(n.O).every(e=>n.O[e](r[u]))?r.splice(u--,1):(s=!1,a<c&&(c=a));if(s){e.splice(i--,1);var l=o();void 0!==l&&(t=l)}}return t}})(),n.rv=()=>"1.4.11",n.j="387",(()=>{n.g.importScripts&&(e=n.g.location+"");var e,t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");n.p=e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{n.b=document.baseURI||self.location.href;var e={387:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[i,c,s]=r,u=0;if(i.some(t=>0!==e[t])){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(s)var l=s(n)}for(t&&t(r);u<i.length;u++)a=i[u],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(l)},r=self.webpackChunk_diplodoc_client=self.webpackChunk_diplodoc_client||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.ruid="bundler=rspack@1.4.11";var r=n.O(void 0,["966","971"],function(){return n(82272)});r=n.O(r)})();
2
+ //# sourceMappingURL=app-9912bc5fc2ea22c6.js.map
@@ -0,0 +1,2 @@
1
+ (()=>{var e={90101:function(){var e,t;"undefined"!=typeof Element&&((t=(e=Element.prototype).matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector)?e.matches=e.matchesSelector=t:e.matches=e.matchesSelector=function(e){var t=this;return Array.prototype.some.call(document.querySelectorAll(e),function(e){return e===t})})},39390:function(e,t,r){"use strict";var n,o=r(7409),a=r(85893),i=r(67294),c=r(20745),u=r(12956),s=r(8534),l=r(53816),d=r(369),f=(0,i.createContext)({pathname:"/",depth:0});f.displayName="RouterContext";var h=f.Provider,p=(0,i.createContext)(s.Uo.En);p.displayName="Lang";var g=p.Provider,v=r(55210),m={theme:s.Q2.Light,textSize:s.tF.M,showMiniToc:!0,wideFormat:!0,fullScreen:!1},_=["ar","arc","ckb","dv","fa","ha","he","khw","ks","ps","sd","ur","uz_AF","yi"],w=((n={}).RTL="rtl",n.LTR="ltr",n);function y(){return"undefined"!=typeof document}(0,v._)(new Set((0,v._)(["href"]).concat((0,v._)(["src","url","href","icon","image","desktop","mobile","tablet","previewImg","image","avatar","logo","light","dark"]))));var b=function(e){return"boolean"==typeof e?e:!!e&&"true"===e};function S(){return!!y()&&document.body.clientWidth<769}function x(e){if(!y())return m[e];try{return sessionStorage.getItem(e)||m[e]}catch(t){return m[e]}}var k=r(27412),C=r(24460);function j(e,t){var r=(0,C._)((0,i.useState)(t[e]),2),n=r[0],o=r[1],a=(0,i.useMemo)(function(){var t,r;return t=e,r=o,function(e){if(y())try{sessionStorage.setItem(t,String(e))}catch(e){}r(e)}},[e,o]);return(0,i.useMemo)(function(){var t;return t={},(0,k._)(t,e,n),(0,k._)(t,"onChange"+e.replace(/^./,function(e){return e.toUpperCase()}),a),t},[e,n,a])}var M=r(21890),E=r(22853),L=r(99282);r(68648),r(90101),r(12646);var O=(0,E.default)("Layout");function T(){return null}function P(){return null}function N(){return null}var R={doc:!1},F=function(e){var t,r,n,c=(0,o._)({},R,e),u=c.children,s=c.doc,l=c.headerHeight;return i.Children.forEach(u,function(e){switch(e.type){case T:t=e.props.children;break;case P:r=e.props.children;break;case N:n=e.props.children}}),(0,a.jsxs)("div",{className:O({"full-header":(void 0===l?0:l)>0}),children:[t&&(0,a.jsx)("div",{className:O("header"),children:t}),(0,a.jsxs)("div",{className:O("body"),children:[r&&(0,a.jsx)("div",{className:O("content"),children:r}),n&&(0,a.jsx)("div",{className:O("footer",{doc:s}),children:n})]})]})};F.displayName="Layout",F.Header=T,F.Content=P,F.Footer=N,(0,E.default)("pc-page-constructor"),(0,E.default)("pc-constructor-row"),r(5122),(0,E.default)("Suggest");var q=r(69609),z=r(73186);(0,i.memo)(function(e){var t=e.mobileView,r=e.theme,n=e.onChangeTheme,o=e.textSize,i=e.onChangeTextSize,c=e.wideFormat,u=e.onChangeWideFormat,l=e.showMiniToc,d=e.onChangeShowMiniToc,f=e.lang,h=e.langs,p=e.onChangeLang;return(0,a.jsx)(q.C,{controlClassName:"Control",controlSize:s.$D.L,isWideView:t,isMobileView:t,children:(0,a.jsx)(z.Z,{className:"Controls",theme:r,onChangeTheme:n,wideFormat:c,onChangeWideFormat:u,showMiniToc:l,onChangeShowMiniToc:d,textSize:o,onChangeTextSize:i,lang:f,langs:h,onChangeLang:p})})}).displayName="HeaderControls",r(91398),r(17344),r(87767),r(34952),r(76638),r(65333);var U=r(76150),A=r(43830),I=r(52062),W=r(41196),V=r(28395),$=function(){function e(t){var n=this,a=this;(0,A._)(this,e),(0,k._)(this,"worker",void 0),(0,k._)(this,"config",void 0),(0,k._)(this,"init",function(){var e;e=(0,L._)((0,o._)({},n.config),{base:n.base,mark:"Suggest__Item__Marker"}),n.worker=(0,U._)(function(){var t;return(0,V.__generator)(this,function(n){switch(n.label){case 0:return[4,(0,U._)(function(){var e,t,n;return(0,V.__generator)(this,function(o){try{return[2,new Worker(new URL(r.p+r.u("444"),r.b))]}catch(r){if((0,W._)(r,DOMException)&&(e=B.exec(r.message)))return t=e[1],n=new Blob(["importScripts('".concat(t,"');")],{type:"text/javascript"}),[2,new Worker(URL.createObjectURL(n))];throw r}})})()];case 1:return[4,D(t=n.sent(),(0,L._)((0,o._)({},e),{type:"init"}))];case 2:return n.sent(),[2,t]}})})()}),(0,k._)(this,"link",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=new URLSearchParams;r&&o.set("query",r),n>1&&o.set("page",n.toString());var a=o.toString()?"?".concat(o.toString()):"";return"".concat(e,"/").concat(t.link).concat(a)}(a.base,a.config,e,t)}),this.config=t}return(0,I._)(e,[{key:"suggest",value:function(e){return(0,U._)(function(){return(0,V.__generator)(this,function(t){return[2,this.request({type:"suggest",query:e})]})}).call(this)}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return(0,U._)(function(){return(0,V.__generator)(this,function(n){return[2,this.request({type:"search",query:e,page:t,count:r})]})}).call(this)}},{key:"base",get:function(){return window.location.href.split("/").slice(0,-this.config.depth).join("/")}},{key:"request",value:function(e){return(0,U._)(function(){return(0,V.__generator)(this,function(t){switch(t.label){case 0:return[4,this.worker];case 1:return[2,D.apply(void 0,[t.sent(),e])]}})}).call(this)}}]),e}(),B=/Script at '(.*?)' cannot be accessed from origin/;function D(e,t){var r=new MessageChannel;return new Promise(function(n,o){r.port1.onmessage=function(e){e.data.error?o(e.data.error):n(e.data.result)},r.port1.onmessageerror=function(e){o(e.data.error)},e.postMessage(t,[r.port2])})}r(10932);var H=(0,E.default)("Search");function Q(e,t){var r=new URLSearchParams;e&&r.set("query",e),t>1&&r.set("page",String(t)),window.history.pushState({},"","?".concat(r.toString()))}var Z=function(){var e,t,r,n,c,u,s,l,d=(e=(0,i.useContext)(p),r=void 0===(t=(0,i.useContext)(f).depth)?0:t,n=(0,i.useContext)(G),u=(c=(0,C._)((0,i.useState)(null),2))[0],s=c[1],l=(0,i.useMemo)(function(){return n?(0,L._)((0,o._)({},n),{depth:r,lang:e}):null},[e,r,n]),(0,i.useEffect)(function(){l&&s(l?new $(l):null)},[l]),u),h=(0,i.useContext)(f),g=(0,C._)((0,i.useState)(""),2),v=g[0],m=g[1],_=(0,C._)((0,i.useState)(1),2),w=_[0],y=_[1],b=(0,C._)((0,i.useState)([]),2),S=b[0],x=b[1],k=(0,C._)((0,i.useState)(0),2),j=k[0],E=k[1],O=(0,C._)((0,i.useState)(!1),2),T=O[0],P=O[1],N=(0,i.useRef)(null);(0,i.useEffect)(function(){var e;N.current=d,null==d||null==(e=d.init)||e.call(d)},[d]),(0,i.useEffect)(function(){var e,t={query:(e=new URLSearchParams(window.location.search)).get("query")||"",page:Number(e.get("page"))||1},r=t.query,n=t.page;m(r),y(n)},[h]),(0,i.useEffect)(function(){v&&N.current?(P(!0),N.current.search(v,w,10).then(function(e){var t,r=e.items,n=e.total;x(Array.isArray(t=null!=r?r:[])?t.map(function(e){var t,r,n;return{title:(null==e?void 0:e.title)||(null==e||null==(t=e.hierarchy)?void 0:t.lvl0)||(null==e||null==(r=e.hierarchy)?void 0:r.lvl1)||"",url:(null==e?void 0:e.url)||(null==e?void 0:e.link)||"#",description:(null==e?void 0:e.description)||(null==e?void 0:e.content)||(null==e?void 0:e.text)||"",section:(null==e?void 0:e.section)||(null==e||null==(n=e.hierarchy)?void 0:n.lvl1)||""}}):[]),E(n)}).catch(function(){x([]),E(0)}).finally(function(){return P(!1)})):(x([]),E(0))},[v,w,d]);var R=(0,i.useCallback)(function(e){Q(v,e),y(e)},[v]),F=(0,i.useCallback)(function(e){Q(e,1),m(e),y(1)},[]);return(0,a.jsx)("div",{className:H(),children:(0,a.jsx)(M.Z,{query:v,items:S,page:w,totalItems:j,onPageChange:R,onSubmit:F,loading:T})})},G=(0,i.createContext)(null);G.displayName="SearchContext";var J=G.Provider,K=document.getElementById("root");if(!K)throw Error("Root element not found!");var X=window.__DATA__,Y=X||{};Y.depth=Y.depth||3;var ee=new URL(window.location.href);(0,c.createRoot)(K).render((0,a.jsx)(function(e){var t,r,n,c,f,p,v,m,k,M,E,L,O,T,P,N=e.data,R=e.url,F=N.search,q=(null==F?void 0:F.lang)||s.Uo.En,z=(v=j("theme",(t=x("theme"),r=x("textSize"),n=x("showMiniToc"),c=x("wideFormat"),f=x("fullScreen"),p={theme:t,textSize:r,showMiniToc:b(n),wideFormat:b(c),fullScreen:b(f)})),m=j("textSize",p),k=j("wideFormat",p),M=j("fullScreen",p),E=j("showMiniToc",p),(0,i.useMemo)(function(){return(0,o._)({},v,m,k,E,M)},[v,m,k,E,M])),U=(O=(L=(0,C._)((0,i.useState)(S()),2))[0],T=L[1],P=(0,i.useCallback)(function(){T(S())},[]),(0,i.useEffect)(P,[P]),(0,i.useEffect)(function(){return window.addEventListener("resize",P),function(){return window.removeEventListener("resize",P)}},[P]),O),A=l.aP.includes(q)?q:s.Uo.En,I=_.includes(A)?w.RTL:w.LTR;(0,d.jQ)({lang:A,localeCode:A});var W={pathname:R.pathname,depth:3},V=z.theme,$=z.wideFormat;return(0,i.useEffect)(function(){var e={mobileView:U,wideFormat:$};if(y()){document.body.classList.add("g-root");var t=function(e,t){return document.body.classList.toggle(e,!!t)};Object.keys(e).forEach(function(r){switch(r){case"wideFormat":t("dc-root_wide-format",e[r]);break;case"focusSearch":t("dc-root_focused-search",e[r]);break;case"fullScreen":t("dc-root_full-screen",e[r]);break;case"landingPage":t("dc-root_document-page",!e[r]),t("dc-root_landing-page",e[r]);break;case"mobileView":t("mobile",e[r]),t("desktop",!e[r])}})}"undefined"!=typeof document&&document.querySelectorAll(".g-root").forEach(function(e){e.classList.toggle("g-root_theme_light","light"===V),e.classList.toggle("g-root_theme_dark","dark"===V)})},[V,U,$]),(0,a.jsx)(u.f,{theme:V,direction:I,children:(0,a.jsx)(g,{value:A,children:(0,a.jsx)(h,{value:W,children:(0,a.jsx)(J,{value:F,children:(0,a.jsx)(Z,{})})})})})},(0,o._)({},{data:X,url:ee})))},65333:function(e,t,r){"use strict";e.exports={}},12646:function(e,t,r){"use strict";e.exports={}},10932:function(e,t,r){"use strict";e.exports={}},5122:function(e,t,r){"use strict";e.exports={}},18925:function(){}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,o){if(1&o&&(n=this(n)),8&o||"object"==typeof n&&n&&(4&o&&n.__esModule||16&o&&"function"==typeof n.then))return n;var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var c=2&o&&n;"object"==typeof c&&!~e.indexOf(c);c=t(c))Object.getOwnPropertyNames(c).forEach(e=>{i[e]=()=>n[e]});return i.default=()=>n,r.d(a,i),a}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.k=e=>""+e+".css",r.u=e=>""+e+"-eff261d7ea9f84b4.js",r.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e=[];r.O=(t,n,o,a)=>{if(n){a=a||0;for(var i=e.length;i>0&&e[i-1][2]>a;i--)e[i]=e[i-1];e[i]=[n,o,a];return}for(var c=1/0,i=0;i<e.length;i++){for(var[n,o,a]=e[i],u=!0,s=0;s<n.length;s++)(!1&a||c>=a)&&Object.keys(r.O).every(e=>r.O[e](n[s]))?n.splice(s--,1):(u=!1,a<c&&(c=a));if(u){e.splice(i--,1);var l=o();void 0!==l&&(t=l)}}return t}})(),r.rv=()=>"1.4.11",r.j="990",(()=>{r.g.importScripts&&(e=r.g.location+"");var e,t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw Error("Automatic publicPath is not supported in this browser");r.p=e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")})(),(()=>{r.b=document.baseURI||self.location.href;var e={990:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[i,c,u]=n,s=0;if(i.some(t=>0!==e[t])){for(o in c)r.o(c,o)&&(r.m[o]=c[o]);if(u)var l=u(r)}for(t&&t(n);s<i.length;s++)a=i[s],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(l)},n=self.webpackChunk_diplodoc_client=self.webpackChunk_diplodoc_client||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.ruid="bundler=rspack@1.4.11";var n=r.O(void 0,["966","971"],function(){return r(39390)});n=r.O(n)})();
2
+ //# sourceMappingURL=search-c72f8c6ef62ff42a.js.map