This commit is contained in:
InsanusMokrassar committed 2026-05-23 11:30:30 +00:00
1 parent 55907d39f9
commit 80a0145cb4
6686 files changed
+469404 -412054

No files matched your search

-56
View File
@@ -1,56 +0,0 @@
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
window.addEventListener('load', () => {
document.querySelectorAll('span.copy-icon').forEach(element => {
element.addEventListener('click', (el) => copyElementsContentToClipboard(element));
})
document.querySelectorAll('span.anchor-icon').forEach(element => {
element.addEventListener('click', (el) => {
if(element.hasAttribute('pointing-to')){
const location = hrefWithoutCurrentlyUsedAnchor() + '#' + element.getAttribute('pointing-to')
copyTextToClipboard(element, location)
}
});
})
})
const copyElementsContentToClipboard = (element) => {
const selection = window.getSelection();
const range = document.createRange();
range.selectNodeContents(element.parentNode.parentNode);
selection.removeAllRanges();
selection.addRange(range);
copyAndShowPopup(element, () => selection.removeAllRanges())
}
const copyTextToClipboard = (element, text) => {
var textarea = document.createElement("textarea");
textarea.textContent = text;
textarea.style.position = "fixed";
document.body.appendChild(textarea);
textarea.select();
copyAndShowPopup(element, () => document.body.removeChild(textarea))
}
const copyAndShowPopup = (element, after) => {
try {
document.execCommand('copy');
element.nextElementSibling.classList.add('active-popup');
setTimeout(() => {
element.nextElementSibling.classList.remove('active-popup');
}, 1200);
} catch (e) {
console.error('Failed to write to clipboard:', e)
}
finally {
if(after) after()
}
}
const hrefWithoutCurrentlyUsedAnchor = () => window.location.href.split('#')[0]
+7 -15
View File
@@ -1,17 +1,9 @@
(()=>{var e={1817:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><path d="M11.78 3.1497C12.0425 3.37384 12.0736 3.76835 11.8495 4.03085L6.30786 10.5208C5.79248 11.1243 4.87455 11.1675 4.30485 10.6149L2.18984 8.56337C1.94208 8.32304 1.93605 7.92736 2.17638 7.67959C2.41671 7.43182 2.81239 7.42579 3.06016 7.66612L5.17516 9.71763C5.22695 9.76787 5.3104 9.76395 5.35725 9.70908L10.8989 3.21915C11.123 2.95665 11.5175 2.92555 11.78 3.1497Z"/></svg>'},4811:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><g><polygon points="5 7.99 1.5 4.5 2.5 3.5 5 6.01 7.5 3.5 8.49 4.5 5 7.99"/></g></svg>'},5742:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g><polygon points="8 10.99 3.5 6.5 4.5 5.5 8 9.01 11.51 5.5 12.49 6.5 8 10.99"/></g></svg>'},7112:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M5.997 6.784l4.454 4.359.787-.804-4.43-4.336 4.465-4.3-.78-.81-4.49 4.323L1.55.857l-.787.804 4.43 4.336-4.465 4.3.78.81 4.49-4.323z"/></svg>'},8420:e=>{e.exports='<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="6.375" width="8" height="1.25" rx="0.625"/></svg>'},7004:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g><path d="M14.64,13.36,10.13,8.85A4.94,4.94,0,0,0,11,6a5,5,0,1,0-2.17,4.12l4.51,4.51ZM2.42,6A3.6,3.6,0,1,1,6,9.61,3.6,3.6,0,0,1,2.42,6Z"/></g></svg>'},7222:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var r=t(1404),o=t.n(r),i=t(7156),a=t.n(i),l=t(5280),c=a()(o());c.i(l.A),c.push([e.id,'.avatar_d716 {\n display: inline-block;\n -o-object-fit: cover;\n object-fit: cover;\n -o-object-position: center;\n object-position: center;\n\n /* This is a "graceful degradation" fallback, while the real value is controlled by JS */\n\n border-radius: var(--ring-border-radius);\n}\n\n.subavatar_b10d {\n position: absolute;\n top: 15px;\n left: 27px;\n\n border: 1px var(--ring-content-background-color) solid;\n}\n\n.empty_a151 {\n display: inline-block;\n\n box-sizing: border-box;\n\n border: 1px solid var(--ring-borders-color);\n}\n',"",{version:3,sources:["webpack://./node_modules/@jetbrains/ring-ui/components/avatar/avatar.css"],names:[],mappings:"AAEA;EACE,qBAAqB;EACrB,oBAAiB;KAAjB,iBAAiB;EACjB,0BAAuB;KAAvB,uBAAuB;;EAEvB,wFAAwF;;EAExF,wCAAwC;AAC1C;;AAEA;EACE,kBAAkB;EAClB,SAAS;EACT,UAAU;;EAEV,sDAAsD;AACxD;;AAEA;EACE,qBAAqB;;EAErB,sBAAsB;;EAEtB,2CAA2C;AAC7C",sourcesContent:['@import "../global/variables.css";\n\n.avatar {\n display: inline-block;\n object-fit: cover;\n object-position: center;\n\n /* This is a "graceful degradation" fallback, while the real value is controlled by JS */\n\n border-radius: var(--ring-border-radius);\n}\n\n.subavatar {\n position: absolute;\n top: 15px;\n left: 27px;\n\n border: 1px var(--ring-content-background-color) solid;\n}\n\n.empty {\n display: inline-block;\n\n box-sizing: border-box;\n\n border: 1px solid var(--ring-borders-color);\n}\n'],sourceRoot:""}]),c.locals={avatar:"avatar_d716",subavatar:"subavatar_b10d",empty:"empty_a151"};const u=c},9892:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var r=t(1404),o=t.n(r),i=t(7156),a=t.n(i),l=t(9106),c=t(5280),u=a()(o());u.i(c.A),u.i(l.default,"",!0),u.push([e.id,'.heightS_b28d {\n --ring-button-height: 24px;\n --ring-button-font-size: var(--ring-font-size-smaller);\n}\n\n.heightM_dfd3 {\n --ring-button-height: 28px;\n --ring-button-font-size: var(--ring-font-size);\n}\n\n.heightL_a4d3 {\n --ring-button-height: 32px;\n --ring-button-font-size: var(--ring-font-size);\n}\n\n.button_aba4 {\n position: relative;\n\n display: inline-block;\n\n box-sizing: border-box;\n height: var(--ring-button-height);\n margin: 0;\n padding: 0 16px;\n\n cursor: pointer;\n transition: color var(--ring-ease), background-color var(--ring-ease), box-shadow var(--ring-ease);\n text-decoration: none;\n\n color: var(--ring-text-color);\n\n border: 0;\n border-radius: var(--ring-border-radius);\n outline: 0;\n background-color: var(--ring-content-background-color);\n box-shadow: inset 0 0 0 1px var(--ring-borders-color);\n\n font-family: var(--ring-font-family);\n font-size: var(--ring-button-font-size);\n\n line-height: var(--ring-button-height);\n}\n\n@media (hover: hover), (-moz-touch-enabled: 0), (-ms-high-contrast: none), (-ms-high-contrast: active) {.button_aba4:hover {\n transition: none;\n\n box-shadow: inset 0 0 0 1px var(--ring-border-hover-color);\n }}\n\n.button_aba4:active {\n transition: none;\n\n background-color: var(--ring-selected-background-color);\n box-shadow: inset 0 0 0 1px var(--ring-border-hover-color);\n }\n\n.button_aba4:focus-visible {\n transition: none;\n\n box-shadow: inset 0 0 0 1px var(--ring-border-hover-color), 0 0 0 1px var(--ring-border-hover-colorLine truncated
/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/e=t.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",c=16,u=32,s=64,f=128,p=256,d=1/0,g=9007199254740991,h=NaN,v=4294967295,b=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",s],["rearg",p]],A="[object Arguments]",m="[object Array]",y="[object Boolean]",E="[object Date]",C="[object Error]",w="[object Function]",_="[object GeneratorFunction]",x="[object Map]",S="[object Number]",k="[object Object]",O="[object Promise]",B="[object RegExp]",T="[object Set]",P="[object String]",I="[object Symbol]",j="[object WeakMap]",z="[object ArrayBuffer]",D="[object DataView]",R="[object Float32Array]",M="[object Float64Array]",N="[object Int8Array]",F="[object Int16Array]",L="[object Int32Array]",U="[object Uint8Array]",H="[object Uint8ClampedArray]",W="[object Uint16Array]",G="[object Uint32Array]",Y=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Q=RegExp($.source),X=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,te=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,le=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pe=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,Ae=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,Ee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ce=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Be="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['’]",Ie="["+_e+"]",je="["+Te+"]",ze="["+xe+"]",De="\\d+",Re="["+Se+"]",Me="["+ke+"]",Ne="[^"+_e+Te+De+Se+ke+Oe+"]",Fe="\\ud83c[\\udffb-\\udfff]",Le="[^"+_e+"]",Ue="(?:\\ud83c[\\udde6-\\uddff]){2}",He="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Oe+"]",Ge="\\u200d",Ye="(?:"+Me+"|"+Ne+")",qe="(?:"+We+"|"+Ne+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",$e="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+ze+"|"+Fe+")"+"?",Qe="["+Be+"]?",Xe=Qe+Ke+("(?:"+Ge+"(?:"+[Le,Ue,He].join("|")+")"+Qe+Ke+")*"),Ze="(?:"+[Re,Ue,He].join("|")+")"+Xe,Je="(?:"+[Le+ze+"?",ze,Ue,He,Ie].join("|")+")",en=RegExp(Pe,"g"),nn=RegExp(ze,"g"),tn=RegExp(Fe+"(?="+Fe+")|"+Je+Xe,"g"),rn=RegExp([We+"?"+Me+"+"+Ve+"(?="+[je,We,"$"].join("|")+")",qe+"+"+$e+"(?="+[je,We+Ye,"$"].join("|")+")",We+"?"+Ye+"+"+Ve,We+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ze].join("|"),"g"),on=RegExp("["+Ge+_e+xe+Be+"]"),an=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ln=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],cn=-1,un={};un[R]=un[M]=un[N]=un[F]=un[L]=un[U]=un[H]=un[W]=un[G]=!0,un[A]=un[m]=un[z]=un[y]=un[D]=un[E]=un[C]=un[w]=un[x]=un[S]=un[k]=un[B]=un[T]=un[P]=un[j]=!1;var sn={};sn[A]=sn[m]=sn[z]=sn[D]=sn[y]=sn[E]=sn[R]=sn[M]=sn[N]=sn[F]=sn[L]=sn[x]=sn[S]=sn[k]=sn[B]=sn[T]=sn[P]=sn[I]=sn[U]=sn[H]=sn[W]=sn[G]=!0,sn[C]=sn[w]=sn[j]=!1;var fn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pn=parseFloat,dn=parseInt,gn="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g,hn="object"==typeof self&&self&&self.Object===Object&&self,vn=gn||hn||Function("return this")(),bn=n&&!n.nodeType&&n,An=bn&&e&&!e.nodeType&&e,mn=An&&An.exports===bn,yn=mn&&gn.process,En=function(){try{var e=An&&An.require&&An.require("util").types;return e||yn&&yn.binding&&yn.binding("util")}catch(e){}}(),Cn=En&&En.isArrayBuffer,wn=En&&En.isDate,_n=En&&En.isMap,xn=En&&En.isRegExp,Sn=En&&En.isSet,kn=En&&En.isTypedArray;function On(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function Bn(e,n,t,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];n(r,a,t(a),e)}return r}function Tn(e,n){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==n(e[t],t,e););return e}function Pn(e,n){for(var t=null==e?0:e.length;t--&&!1!==n(e[t],t,e););return e}function In(e,n){for(var t=-1,r=null==e?0:e.length;++t<r;)if(!n(e[t],t,e))return!1;return!0}functiLine truncated
(()=>{var e={1817:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><path d="M11.78 3.1497C12.0425 3.37384 12.0736 3.76835 11.8495 4.03085L6.30786 10.5208C5.79248 11.1243 4.87455 11.1675 4.30485 10.6149L2.18984 8.56337C1.94208 8.32304 1.93605 7.92736 2.17638 7.67959C2.41671 7.43182 2.81239 7.42579 3.06016 7.66612L5.17516 9.71763C5.22695 9.76787 5.3104 9.76395 5.35725 9.70908L10.8989 3.21915C11.123 2.95665 11.5175 2.92555 11.78 3.1497Z"/></svg>'},4811:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><g><polygon points="5 7.99 1.5 4.5 2.5 3.5 5 6.01 7.5 3.5 8.49 4.5 5 7.99"/></g></svg>'},5742:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g><polygon points="8 10.99 3.5 6.5 4.5 5.5 8 9.01 11.51 5.5 12.49 6.5 8 10.99"/></g></svg>'},7112:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M5.997 6.784l4.454 4.359.787-.804-4.43-4.336 4.465-4.3-.78-.81-4.49 4.323L1.55.857l-.787.804 4.43 4.336-4.465 4.3.78.81 4.49-4.323z"/></svg>'},8420:e=>{e.exports='<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="6.375" width="8" height="1.25" rx="0.625"/></svg>'},7004:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g><path d="M14.64,13.36,10.13,8.85A4.94,4.94,0,0,0,11,6a5,5,0,1,0-2.17,4.12l4.51,4.51ZM2.42,6A3.6,3.6,0,1,1,6,9.61,3.6,3.6,0,0,1,2.42,6Z"/></g></svg>'},7222:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>s});var r=t(1404),o=t.n(r),i=t(7156),a=t.n(i),l=t(5280),c=a()(o());c.i(l.A),c.push([e.id,'.avatar_d716 {\n display: inline-block;\n -o-object-fit: cover;\n object-fit: cover;\n -o-object-position: center;\n object-position: center;\n\n /* This is a "graceful degradation" fallback, while the real value is controlled by JS */\n\n border-radius: var(--ring-border-radius);\n}\n\n.subavatar_b10d {\n position: absolute;\n top: 15px;\n left: 27px;\n\n border: 1px var(--ring-content-background-color) solid;\n}\n\n.empty_a151 {\n display: inline-block;\n\n box-sizing: border-box;\n\n border: 1px solid var(--ring-borders-color);\n}\n',"",{version:3,sources:["webpack://./node_modules/@jetbrains/ring-ui/components/avatar/avatar.css"],names:[],mappings:"AAEA;EACE,qBAAqB;EACrB,oBAAiB;KAAjB,iBAAiB;EACjB,0BAAuB;KAAvB,uBAAuB;;EAEvB,wFAAwF;;EAExF,wCAAwC;AAC1C;;AAEA;EACE,kBAAkB;EAClB,SAAS;EACT,UAAU;;EAEV,sDAAsD;AACxD;;AAEA;EACE,qBAAqB;;EAErB,sBAAsB;;EAEtB,2CAA2C;AAC7C",sourcesContent:['@import "../global/variables.css";\n\n.avatar {\n display: inline-block;\n object-fit: cover;\n object-position: center;\n\n /* This is a "graceful degradation" fallback, while the real value is controlled by JS */\n\n border-radius: var(--ring-border-radius);\n}\n\n.subavatar {\n position: absolute;\n top: 15px;\n left: 27px;\n\n border: 1px var(--ring-content-background-color) solid;\n}\n\n.empty {\n display: inline-block;\n\n box-sizing: border-box;\n\n border: 1px solid var(--ring-borders-color);\n}\n'],sourceRoot:""}]),c.locals={avatar:"avatar_d716",subavatar:"subavatar_b10d",empty:"empty_a151"};const s=c},9892:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>u});var r=t(1404),o=t.n(r),i=t(7156),a=t.n(i),l=t(9106),c=t(5280),s=a()(o());s.i(c.A),s.i(l.default,"",!0),s.push([e.id,'.heightS_b28d {\n --ring-button-height: 24px;\n --ring-button-font-size: var(--ring-font-size-smaller);\n}\n\n.heightM_dfd3 {\n --ring-button-height: 28px;\n --ring-button-font-size: var(--ring-font-size);\n}\n\n.heightL_a4d3 {\n --ring-button-height: 32px;\n --ring-button-font-size: var(--ring-font-size);\n}\n\n.button_aba4 {\n position: relative;\n\n display: inline-block;\n\n box-sizing: border-box;\n height: var(--ring-button-height);\n margin: 0;\n padding: 0 16px;\n\n cursor: pointer;\n transition: color var(--ring-ease), background-color var(--ring-ease), box-shadow var(--ring-ease);\n text-decoration: none;\n\n color: var(--ring-text-color);\n\n border: 0;\n border-radius: var(--ring-border-radius);\n outline: 0;\n background-color: var(--ring-content-background-color);\n box-shadow: inset 0 0 0 1px var(--ring-borders-color);\n\n font-family: var(--ring-font-family);\n font-size: var(--ring-button-font-size);\n\n line-height: var(--ring-button-height);\n}\n\n@media (hover: hover), (-moz-touch-enabled: 0), (-ms-high-contrast: none), (-ms-high-contrast: active) {.button_aba4:hover {\n transition: none;\n\n box-shadow: inset 0 0 0 1px var(--ring-border-hover-color);\n }}\n\n.button_aba4:active {\n transition: none;\n\n background-color: var(--ring-selected-background-color);\n box-shadow: inset 0 0 0 1px var(--ring-border-hover-color);\n }\n\n.button_aba4:focus-visible {\n transition: none;\n\n box-shadow: inset 0 0 0 1px var(--ring-border-hover-color), 0 0 0 1px var(--ring-border-hover-colorLine truncated
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))t.call(i,u)&&(l[u]=i[u]);if(n){a=n(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(l[a[s]]=i[a[s]])}}return l}},8859:(e,n,t)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=l&&c&&"function"==typeof c.get?c.get:null,s=l&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,h=Object.prototype.toString,v=Function.prototype.toString,b=String.prototype.match,A=String.prototype.slice,m=String.prototype.replace,y=String.prototype.toUpperCase,E=String.prototype.toLowerCase,C=RegExp.prototype.test,w=Array.prototype.concat,_=Array.prototype.join,x=Array.prototype.slice,S=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function z(e,n){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,n))return n;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-S(-e):S(e);if(r!==e){var o=String(r),i=A.call(n,o.length+1);return m.call(o,t,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(n,t,"$&_")}var D=t(2634),R=D.custom,M=H(R)?R:null;function N(e,n,t){var r="double"===(t.quoteStyle||n)?'"':"'";return r+e+r}function F(e){return m.call(String(e),/"/g,"&quot;")}function L(e){return!("[object Array]"!==Y(e)||P&&"object"==typeof e&&P in e)}function U(e){return!("[object RegExp]"!==Y(e)||P&&"object"==typeof e&&P in e)}function H(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!B)return!1;try{return B.call(e),!0}catch(e){}return!1}e.exports=function e(n,r,o,l){var c=r||{};if(G(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(G(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!G(c,"customInspect")||c.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(G(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(G(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=c.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return V(n,c);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var C=String(n);return y?z(n,C):C}if("bigint"==typeof n){var S=String(n)+"n";return y?z(n,S):S}var O=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=O&&O>0&&"object"==typeof n)return L(n)?"[Array]":"[Object]";var R=function(e,n){var t;if("\t"===e.indent)t="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;t=_.call(Array(e.indent+1)," ")}return{base:t,prev:_.call(Array(n+1),t)}}(c,o);if(void 0===l)l=[];else if(q(l,n)>=0)return"[Circular]";function W(n,t,r){if(t&&(l=x.call(l)).push(t),r){var i={depth:c.depth};return G(c,"quoteStyle")&Line truncated
*/var n=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(e){return n[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var s in i=Object(arguments[c]))t.call(i,s)&&(l[s]=i[s]);if(n){a=n(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(l[a[u]]=i[a[u]])}}return l}},8859:(e,n,t)=>{var r="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=r&&o&&"function"==typeof o.get?o.get:null,a=r&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=l&&c&&"function"==typeof c.get?c.get:null,u=l&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,h=Object.prototype.toString,A=Function.prototype.toString,b=String.prototype.match,v=String.prototype.slice,m=String.prototype.replace,y=String.prototype.toUpperCase,E=String.prototype.toLowerCase,C=RegExp.prototype.test,w=Array.prototype.concat,x=Array.prototype.join,S=Array.prototype.slice,_=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,j=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function z(e,n){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||C.call(/e/,n))return n;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-_(-e):_(e);if(r!==e){var o=String(r),i=v.call(n,o.length+1);return m.call(o,t,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(n,t,"$&_")}var D=t(2634),R=D.custom,M=Y(R)?R:null,N={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function L(e,n,t){var r=t.quoteStyle||n,o=N[r];return o+e+o}function H(e){return m.call(String(e),/"/g,"&quot;")}function U(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function W(e){return"[object Array]"===$(e)&&U(e)}function G(e){return"[object RegExp]"===$(e)&&U(e)}function Y(e){if(P)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!B)return!1;try{return B.call(e),!0}catch(e){}return!1}e.exports=function e(n,r,o,l){var c=r||{};if(V(c,"quoteStyle")&&!V(N,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!V(c,"customInspect")||c.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=c.numericSeparator;if(void 0===n)return"undefined";if(null===n)return"null";if("boolean"==typeof n)return n?"true":"false";if("string"==typeof n)return Q(n,c);if("number"==typeof n){if(0===n)return 1/0/n>0?"0":"-0";var C=String(n);return y?z(n,C):C}if("bigint"==typeof n){var _=String(n)+"n";return y?z(n,_):_}var O=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=O&&O>0&&"object"==typeof n)return W(n)?"[Array]":"[Object]";var R=function(e,n){var t;if("\t"===e.indent)t="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;t=x.call(Array(e.indent+1)," ")}return{base:t,prev:x.call(Array(n+1),t)}}(c,o);if(void 0===l)l=[];else if(K(l,n)>=0)return"[Circular]";function F(n,t,r){if(t&&(l=S.Line truncated
/** @license React v17.0.2
* react-dom.production.min.js
*
@@ -19,7 +11,7 @@ object-assign
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,c={};function u(e,n){s(e,n),s(e+"Capture",n)}function s(e,n){for(c[e]=n,e=0;e<n.length;e++)l.add(n[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,g={},h={};function v(e,n,t,r,o,i,a){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];b[n]=new v(n,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var A=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function y(e,n,t,r){var o=b.hasOwnProperty(n)?b[n]:null;(null!==o?0===o.type:!r&&(2<n.length&&("o"===n[0]||"O"===n[0])&&("n"===n[1]||"N"===n[1])))||(function(e,n,t,r){if(null==n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==t?!t.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,o,r)&&(t=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(g,e)&&(p.test(e)?h[e]=!0:(g[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):o.mustUseProperty?e[o.propertyName]=null===t?3!==o.type&&"":t:(n=o.attributeName,r=o.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(o=o.type)||4===o&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(A,m);b[n]=new v(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(A,m);b[n]=new v(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(A,m);b[n]=new v(n,1,!1,e,"http://www.w3.org/XML/1998/namespace Line truncated
*/function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,c={};function s(e,n){u(e,n),u(e+"Capture",n)}function u(e,n){for(c[e]=n,e=0;e<n.length;e++)l.add(n[e])}var p=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,g={},h={};function A(e,n,t,r,o,i,a){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=i,this.removeEmptyString=a}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new A(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];b[n]=new A(n,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new A(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new A(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new A(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){b[e]=new A(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){b[e]=new A(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){b[e]=new A(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){b[e]=new A(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function y(e,n,t,r){var o=b.hasOwnProperty(n)?b[n]:null;(null!==o?0===o.type:!r&&(2<n.length&&("o"===n[0]||"O"===n[0])&&("n"===n[1]||"N"===n[1])))||(function(e,n,t,r){if(null==n||function(e,n,t,r){if(null!==t&&0===t.type)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==t?!t.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,n,t,r))return!0;if(r)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,o,r)&&(t=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(g,e)&&(f.test(e)?h[e]=!0:(g[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):o.mustUseProperty?e[o.propertyName]=null===t?3!==o.type&&"":t:(n=o.attributeName,r=o.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(o=o.type)||4===o&&!0===t?"":""+t,r?e.setAttributeNS(r,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(v,m);b[n]=new A(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(v,m);b[n]=new A(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(v,m);b[n]=new A(n,1,!1,e,"http://www.w3.org/XML/1998/namespace Line truncated
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
@@ -28,7 +20,7 @@ object-assign
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
t(5228);var r=t(6540),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,t){var r,i={},u=null,s=null;for(r in void 0!==t&&(u=""+t),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(s=n.ref),n)l.call(n,r)&&!c.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===i[r]&&(i[r]=n[r]);return{$$typeof:o,type:e,key:u,ref:s,props:i,_owner:a.current}}n.jsx=u,n.jsxs=u},5287:(e,n,t)=>{"use strict";
t(5228);var r=t(6540),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,t){var r,i={},s=null,u=null;for(r in void 0!==t&&(s=""+t),void 0!==n.key&&(s=""+n.key),void 0!==n.ref&&(u=n.ref),n)l.call(n,r)&&!c.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps)void 0===i[r]&&(i[r]=n[r]);return{$$typeof:o,type:e,key:s,ref:u,props:i,_owner:a.current}}n.jsx=s,n.jsxs=s},5287:(e,n,t)=>{"use strict";
/** @license React v17.0.2
* react.production.min.js
*
@@ -36,7 +28,7 @@ t(5228);var r=t(6540),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Sy
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=t(5228),o=60103,i=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var a=60109,l=60110,c=60112;n.Suspense=60113;var u=60115,s=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),n.Fragment=f("react.fragment"),n.StrictMode=f("react.strict_mode"),n.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),c=f("react.forward_ref"),n.Suspense=f("react.suspense"),u=f("react.memo"),s=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function v(e,n,t){this.props=e,this.context=n,this.refs=h,this.updater=t||g}function b(){}function A(e,n,t){this.props=e,this.context=n,this.refs=h,this.updater=t||g}v.prototype.isReactComponent={},v.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,n,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var m=A.prototype=new b;m.constructor=A,r(m,v.prototype),m.isPureReactComponent=!0;var y={current:null},E=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function w(e,n,t){var r,i={},a=null,l=null;if(null!=n)for(r in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(a=""+n.key),n)E.call(n,r)&&!C.hasOwnProperty(r)&&(i[r]=n[r]);var c=arguments.length-2;if(1===c)i.children=t;else if(1<c){for(var u=Array(c),s=0;s<c;s++)u[s]=arguments[s+2];i.children=u}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:y.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var x=/\/+/g;function S(e,n){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return n[e]}))}(""+e.key):n.toString(36)}function k(e,n,t,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case i:c=!0}}if(c)return a=a(c=e),e=""===r?"."+S(c,0):r,Array.isArray(a)?(t="",null!=e&&(t=e.replace(x,"$&/")+"/"),k(a,n,t,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,n){return{$$typeof:o,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(a,t+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),n.push(a)),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var s=r+S(l=e[u],u);c+=k(l,n,t,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),u=0;!(l=e.next()).done;)c+=k(l=l.value,n,t,s=r+S(l,u++),a);else if("object"===l)throw n=""+e,Error(d(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n));return c}function O(e,n,t){if(null==e)return e;var r=[],o=0;return k(e,r,"","",(function(e){return n.call(t,e,o++)})),r}function B(e){if(-1===e._status){var n=e._result;n=n(),e._status=0,e._result=n,n.then((function(n){0===e._status&&(n=n.default,e._status=1,e._result=n)}),(function(n){0===e._status&&(e._status=2,e._result=n)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function P(){var e=T.current;if(null===e)throw Error(d(321));return e}var I={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:r};n.Children={map:O,forEach:function(e,n,t){O(e,(function(){n.apply(this,arguments)}),t)},count:function(e){var n=0;return O(e,(function(){n++})),n},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(d(143));return e}},n.Component=v,n.PureComponent=A,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,n.cloneElement=function(e,n,t){if(null==e)throw Error(d(267,e));var i=r({},e.props),a=e.key,l=e.ref,c=e._owner;if(null!=n){if(void 0!==n.ref&&(l=n.ref,c=y.current),void 0!==n.key&&(a=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in n)E.call(n,s)&&!C.hasOwnProperty(s)&&(i[s]=void 0===n[s]&&void 0!==u?u[s]:n[s])}var s=arguments.length-2;if(1===s)i.children=t;else if(1<s){u=Array(s);for(var f=0;f<s;f++)u[f]=arguments[f+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:c}},n.createContext=function(e,n){return void 0===n&&(n=null),(e={$$typeof:l,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:eLine truncated
*/var r=t(5228),o=60103,i=60106;n.Fragment=60107,n.StrictMode=60108,n.Profiler=60114;var a=60109,l=60110,c=60112;n.Suspense=60113;var s=60115,u=60116;if("function"==typeof Symbol&&Symbol.for){var p=Symbol.for;o=p("react.element"),i=p("react.portal"),n.Fragment=p("react.fragment"),n.StrictMode=p("react.strict_mode"),n.Profiler=p("react.profiler"),a=p("react.provider"),l=p("react.context"),c=p("react.forward_ref"),n.Suspense=p("react.suspense"),s=p("react.memo"),u=p("react.lazy")}var f="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function A(e,n,t){this.props=e,this.context=n,this.refs=h,this.updater=t||g}function b(){}function v(e,n,t){this.props=e,this.context=n,this.refs=h,this.updater=t||g}A.prototype.isReactComponent={},A.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,n,"setState")},A.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=A.prototype;var m=v.prototype=new b;m.constructor=v,r(m,A.prototype),m.isPureReactComponent=!0;var y={current:null},E=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function w(e,n,t){var r,i={},a=null,l=null;if(null!=n)for(r in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(a=""+n.key),n)E.call(n,r)&&!C.hasOwnProperty(r)&&(i[r]=n[r]);var c=arguments.length-2;if(1===c)i.children=t;else if(1<c){for(var s=Array(c),u=0;u<c;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:y.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var S=/\/+/g;function _(e,n){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return n[e]}))}(""+e.key):n.toString(36)}function k(e,n,t,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var c=!1;if(null===e)c=!0;else switch(l){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case o:case i:c=!0}}if(c)return a=a(c=e),e=""===r?"."+_(c,0):r,Array.isArray(a)?(t="",null!=e&&(t=e.replace(S,"$&/")+"/"),k(a,n,t,"",(function(e){return e}))):null!=a&&(x(a)&&(a=function(e,n){return{$$typeof:o,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(a,t+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),n.push(a)),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var u=r+_(l=e[s],s);c+=k(l,n,t,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),s=0;!(l=e.next()).done;)c+=k(l=l.value,n,t,u=r+_(l,s++),a);else if("object"===l)throw n=""+e,Error(d(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n));return c}function O(e,n,t){if(null==e)return e;var r=[],o=0;return k(e,r,"","",(function(e){return n.call(t,e,o++)})),r}function B(e){if(-1===e._status){var n=e._result;n=n(),e._status=0,e._result=n,n.then((function(n){0===e._status&&(n=n.default,e._status=1,e._result=n)}),(function(n){0===e._status&&(e._status=2,e._result=n)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function T(){var e=P.current;if(null===e)throw Error(d(321));return e}var I={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:r};n.Children={map:O,forEach:function(e,n,t){O(e,(function(){n.apply(this,arguments)}),t)},count:function(e){var n=0;return O(e,(function(){n++})),n},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(d(143));return e}},n.Component=A,n.PureComponent=v,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,n.cloneElement=function(e,n,t){if(null==e)throw Error(d(267,e));var i=r({},e.props),a=e.key,l=e.ref,c=e._owner;if(null!=n){if(void 0!==n.ref&&(l=n.ref,c=y.current),void 0!==n.key&&(a=""+n.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in n)E.call(n,u)&&!C.hasOwnProperty(u)&&(i[u]=void 0===n[u]&&void 0!==s?s[u]:n[u])}var u=arguments.length-2;if(1===u)i.children=t;else if(1<u){s=Array(u);for(var p=0;p<u;p++)s[p]=arguments[p+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:c}},n.createContext=function(e,n){return void 0===n&&(n=null),(e={$$typeof:l,_calculateChangedBits:n,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:eLine truncated
/** @license React v0.20.2
* scheduler.production.min.js
*
@@ -44,10 +36,10 @@ t(5228);var r=t(6540),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Sy
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var t,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;n.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();n.unstable_now=function(){return l.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,s=null,f=function(){if(null!==u)try{var e=n.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(f,0),e}};t=function(e){null!==u?setTimeout(t,0,e):(u=e,setTimeout(f,0))},r=function(e,n){s=setTimeout(e,n)},o=function(){clearTimeout(s)},n.unstable_shouldYield=function(){return!1},i=n.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,v=null,b=-1,A=5,m=0;n.unstable_shouldYield=function(){return n.unstable_now()>=m},i=function(){},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<e?Math.floor(1e3/e):5};var y=new MessageChannel,E=y.port2;y.port1.onmessage=function(){if(null!==v){var e=n.unstable_now();m=e+A;try{v(!0,e)?E.postMessage(null):(h=!1,v=null)}catch(e){throw E.postMessage(null),e}}else h=!1},t=function(e){v=e,h||(h=!0,E.postMessage(null))},r=function(e,t){b=p((function(){e(n.unstable_now())}),t)},o=function(){d(b),b=-1}}function C(e,n){var t=e.length;e.push(n);e:for(;;){var r=t-1>>>1,o=e[r];if(!(void 0!==o&&0<x(o,n)))break e;e[r]=n,e[t]=o,t=r}}function w(e){return void 0===(e=e[0])?null:e}function _(e){var n=e[0];if(void 0!==n){var t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,c=e[l];if(void 0!==a&&0>x(a,t))void 0!==c&&0>x(c,a)?(e[r]=c,e[l]=t,r=l):(e[r]=a,e[i]=t,r=i);else{if(!(void 0!==c&&0>x(c,t)))break e;e[r]=c,e[l]=t,r=l}}}return n}return null}function x(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var S=[],k=[],O=1,B=null,T=3,P=!1,I=!1,j=!1;function z(e){for(var n=w(k);null!==n;){if(null===n.callback)_(k);else{if(!(n.startTime<=e))break;_(k),n.sortIndex=n.expirationTime,C(S,n)}n=w(k)}}function D(e){if(j=!1,z(e),!I)if(null!==w(S))I=!0,t(R);else{var n=w(k);null!==n&&r(D,n.startTime-e)}}function R(e,t){I=!1,j&&(j=!1,o()),P=!0;var i=T;try{for(z(t),B=w(S);null!==B&&(!(B.expirationTime>t)||e&&!n.unstable_shouldYield());){var a=B.callback;if("function"==typeof a){B.callback=null,T=B.priorityLevel;var l=a(B.expirationTime<=t);t=n.unstable_now(),"function"==typeof l?B.callback=l:B===w(S)&&_(S),z(t)}else _(S);B=w(S)}if(null!==B)var c=!0;else{var u=w(k);null!==u&&r(D,u.startTime-t),c=!1}return c}finally{B=null,T=i,P=!1}}var M=i;n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){I||P||(I=!0,t(R))},n.unstable_getCurrentPriorityLevel=function(){return T},n.unstable_getFirstCallbackNode=function(){return w(S)},n.unstable_next=function(e){switch(T){case 1:case 2:case 3:var n=3;break;default:n=T}var t=T;T=n;try{return e()}finally{T=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=M,n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=T;T=e;try{return n()}finally{T=t}},n.unstable_scheduleCallback=function(e,i,a){var l=n.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:O++,callback:i,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>l?(e.sortIndex=a,C(k,e),null===w(S)&&e===w(k)&&(j?o():j=!0,r(D,a-l))):(e.sortIndex=c,C(S,e),I||P||(I=!0,t(R))),e},n.unstable_wrapCallback=function(e){var n=T;return function(){var t=T;T=n;try{return e.apply(this,arguments)}finally{T=t}}}},9982:(e,n,t)=>{"use strict";e.exports=t(7463)},6897:(e,n,t)=>{"use strict";var r=t(453),o=t(41),i=t(592)(),a=t(5795),l=t(9675),c=r("%Math.floor%");e.exports=function(e,n){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof n||n<0||n>4294967295||c(n)!==n)throw new l("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var s=a(e,"length");s&&!s.configurable&&(r=!1),s&&!s.writable&&(u=!1)}return(r||u||!t)&&(i?o(e,"length",n,!0,!0):o(e,"length",n)),e}},3206:(e,n,t)=>{"use strict";var r=t(41),o=t(592)(),i=t(4462).functionsHaveConfigurab Line truncated
*/var t,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;n.unstable_now=function(){return a.now()}}else{var l=Date,c=l.now();n.unstable_now=function(){return l.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,u=null,p=function(){if(null!==s)try{var e=n.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(p,0),e}};t=function(e){null!==s?setTimeout(t,0,e):(s=e,setTimeout(p,0))},r=function(e,n){u=setTimeout(e,n)},o=function(){clearTimeout(u)},n.unstable_shouldYield=function(){return!1},i=n.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,A=null,b=-1,v=5,m=0;n.unstable_shouldYield=function(){return n.unstable_now()>=m},i=function(){},n.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var y=new MessageChannel,E=y.port2;y.port1.onmessage=function(){if(null!==A){var e=n.unstable_now();m=e+v;try{A(!0,e)?E.postMessage(null):(h=!1,A=null)}catch(e){throw E.postMessage(null),e}}else h=!1},t=function(e){A=e,h||(h=!0,E.postMessage(null))},r=function(e,t){b=f((function(){e(n.unstable_now())}),t)},o=function(){d(b),b=-1}}function C(e,n){var t=e.length;e.push(n);e:for(;;){var r=t-1>>>1,o=e[r];if(!(void 0!==o&&0<S(o,n)))break e;e[r]=n,e[t]=o,t=r}}function w(e){return void 0===(e=e[0])?null:e}function x(e){var n=e[0];if(void 0!==n){var t=e.pop();if(t!==n){e[0]=t;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,c=e[l];if(void 0!==a&&0>S(a,t))void 0!==c&&0>S(c,a)?(e[r]=c,e[l]=t,r=l):(e[r]=a,e[i]=t,r=i);else{if(!(void 0!==c&&0>S(c,t)))break e;e[r]=c,e[l]=t,r=l}}}return n}return null}function S(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var _=[],k=[],O=1,B=null,P=3,T=!1,I=!1,j=!1;function z(e){for(var n=w(k);null!==n;){if(null===n.callback)x(k);else{if(!(n.startTime<=e))break;x(k),n.sortIndex=n.expirationTime,C(_,n)}n=w(k)}}function D(e){if(j=!1,z(e),!I)if(null!==w(_))I=!0,t(R);else{var n=w(k);null!==n&&r(D,n.startTime-e)}}function R(e,t){I=!1,j&&(j=!1,o()),T=!0;var i=P;try{for(z(t),B=w(_);null!==B&&(!(B.expirationTime>t)||e&&!n.unstable_shouldYield());){var a=B.callback;if("function"==typeof a){B.callback=null,P=B.priorityLevel;var l=a(B.expirationTime<=t);t=n.unstable_now(),"function"==typeof l?B.callback=l:B===w(_)&&x(_),z(t)}else x(_);B=w(_)}if(null!==B)var c=!0;else{var s=w(k);null!==s&&r(D,s.startTime-t),c=!1}return c}finally{B=null,P=i,T=!1}}var M=i;n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.unstable_continueExecution=function(){I||T||(I=!0,t(R))},n.unstable_getCurrentPriorityLevel=function(){return P},n.unstable_getFirstCallbackNode=function(){return w(_)},n.unstable_next=function(e){switch(P){case 1:case 2:case 3:var n=3;break;default:n=P}var t=P;P=n;try{return e()}finally{P=t}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=M,n.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=P;P=e;try{return n()}finally{P=t}},n.unstable_scheduleCallback=function(e,i,a){var l=n.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:O++,callback:i,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>l?(e.sortIndex=a,C(k,e),null===w(_)&&e===w(k)&&(j?o():j=!0,r(D,a-l))):(e.sortIndex=c,C(_,e),I||T||(I=!0,t(R))),e},n.unstable_wrapCallback=function(e){var n=P;return function(){var t=P;P=n;try{return e.apply(this,arguments)}finally{P=t}}}},9982:(e,n,t)=>{"use strict";e.exports=t(7463)},6897:(e,n,t)=>{"use strict";var r=t(453),o=t(41),i=t(592)(),a=t(5795),l=t(9675),c=r("%Math.floor%");e.exports=function(e,n){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof n||n<0||n>4294967295||c(n)!==n)throw new l("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],r=!0,s=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(s=!1)}return(r||s||!t)&&(i?o(e,"length",n,!0,!0):o(e,"length",n)),e}},3206:(e,n,t)=>{"use strict";var r=t(41),o=t(592)(),i=t(4462).functionsHaveConfigurab Line truncated
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(e=a(e,i(t)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var t in e)r.call(e,t)&&e[t]&&(n=a(n,t));return n}function a(e,n){return n?e?e+" "+n:e+n:e}e.exports?(o.default=o,e.exports=o):void 0===(t=function(){return o}.apply(n,[]))||(e.exports=t)}()},9306:(e,n,t)=>{"use strict";var r=t(4901),o=t(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},5548:(e,n,t)=>{"use strict";var r=t(3517),o=t(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},3506:(e,n,t)=>{"use strict";var r=t(3925),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},6469:(e,n,t)=>{"use strict";var r=t(8227),o=t(2360),i=t(4913).f,a=r("unscopables"),l=Array.prototype;void 0===l[a]&&i(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},7829:(e,n,t)=>{"use strict";var r=t(8183).charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},679:(e,n,t)=>{"use strict";var r=t(1625),o=TypeError;e.exports=function(e,n){if(r(n,e))return e;throw new o("Incorrect invocation")}},8551:(e,n,t)=>{"use strict";var r=t(34),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},5652:(e,n,t)=>{"use strict";var r=t(9039);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},235:(e,n,t)=>{"use strict";var r=t(9213).forEach,o=t(4598)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},7916:(e,n,t)=>{"use strict";var r=t(6080),o=t(9565),i=t(8981),a=t(6319),l=t(4209),c=t(3517),u=t(6198),s=t(4659),f=t(81),p=t(851),d=Array;e.exports=function(e){var n=i(e),t=c(this),g=arguments.length,h=g>1?arguments[1]:void 0,v=void 0!==h;v&&(h=r(h,g>2?arguments[2]:void 0));var b,A,m,y,E,C,w=p(n),_=0;if(!w||this===d&&l(w))for(b=u(n),A=t?new this(b):d(b);b>_;_++)C=v?h(n[_],_):n[_],s(A,_,C);else for(A=t?new this:[],E=(y=f(n,w)).next;!(m=o(E,y)).done;_++)C=v?a(y,h,[m.value,_],!0):m.value,s(A,_,C);return A.length=_,A}},9617:(e,n,t)=>{"use strict";var r=t(5397),o=t(5610),i=t(6198),a=function(e){return function(n,t,a){var l=r(n),c=i(l);if(0===c)return!e&&-1;var u,s=o(a,c);if(e&&t!=t){for(;c>s;)if((u=l[s++])!=u)return!0}else for(;c>s;s++)if((e||s in l)&&l[s]===t)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9213:(e,n,t)=>{"use strict";var r=t(6080),o=t(9504),i=t(7055),a=t(8981),l=t(6198),c=t(1469),u=o([].push),s=function(e){var n=1===e,t=2===e,o=3===e,s=4===e,f=6===e,p=7===e,d=5===e||f;return function(g,h,v,b){for(var A,m,y=a(g),E=i(y),C=l(E),w=r(h,v),_=0,x=b||c,S=n?x(g,C):t||p?x(g,0):void 0;C>_;_++)if((d||_ in E)&&(m=w(A=E[_],_,y),e))if(n)S[_]=m;else if(m)switch(e){case 3:return!0;case 5:return A;case 6:return _;case 2:u(S,A)}else switch(e){case 4:return!1;case 7:u(S,A)}return f?-1:o||s?s:S}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},597:(e,n,t)=>{"use strict";var r=t(9039),o=t(8227),i=t(7388),a=o("species");e.exports=function(e){return i>=51||!r((function(){var n=[];return(n.constructor={})[a]=function(){return{foo:1}},1!==n[e](Boolean).foo}))}},4598:(e,n,t)=>{"use strict";var r=t(9039);e.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){return 1},1)}))}},926:(e,n,t)=>{"use strict";var r=t(9306),o=t(8981),i=t(7055),a=t(6198),l=TypeError,c="Reduce of empty array with no initial value",u=function(e){return function(n,t,u,s){var f=o(n),p=i(f),d=a(f);if(r(t),0===d&&u<2)throw new l(c);var g=e?d-1:0,h=e?-1:1;if(u<2)for(;;){if(g in p){s=p[g],g+=h;break}if(g+=h,e?g<0:d<=g)throw new l(c)}for(;e?g>=0:d>g;g+=h)g in p&&(s=t(s,p[g],g,f));return s}};e.exports={left:u(!1),right:u(!0)}},4527:(e,n,t)=>{"use strict";var r=t(3724),o=t(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,l=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,n){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=n}:function(e,n){return e.length=n}},7680:(e,n,t)=>{"use strict";var r=t(9504);e.exports=r([].slice)},4488:(e,n,t)=>{"use strict";var r=t(7680),o=Math.floor,i=function(e,n){var t=e.length;if(t<8)for(var a,l,c=1;c<t;){for(l=c,a=e[c];l&&n(e[l-1],a)>0;)e[l]=e[--l];l!==c++&&(e[l]=a)}else for(var u=o(t/2),s=i(r(e,0,u),n),f=i(r(e,u),n),p=s.length,d=f.length,g=0,h=0;g<p||h<d;)e[g+h]=g<p&&h<d?n(s[g],f[h])<=0?s[g++]:f[h++]:g<p?s[gLine truncated
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",n=0;n<arguments.length;n++){var t=arguments[n];t&&(e=a(e,i(t)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var n="";for(var t in e)r.call(e,t)&&e[t]&&(n=a(n,t));return n}function a(e,n){return n?e?e+" "+n:e+n:e}e.exports?(o.default=o,e.exports=o):void 0===(t=function(){return o}.apply(n,[]))||(e.exports=t)}()},9306:(e,n,t)=>{"use strict";var r=t(4901),o=t(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a function")}},5548:(e,n,t)=>{"use strict";var r=t(3517),o=t(6823),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not a constructor")}},3506:(e,n,t)=>{"use strict";var r=t(3925),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},6469:(e,n,t)=>{"use strict";var r=t(8227),o=t(2360),i=t(4913).f,a=r("unscopables"),l=Array.prototype;void 0===l[a]&&i(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},7829:(e,n,t)=>{"use strict";var r=t(8183).charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},679:(e,n,t)=>{"use strict";var r=t(1625),o=TypeError;e.exports=function(e,n){if(r(n,e))return e;throw new o("Incorrect invocation")}},8551:(e,n,t)=>{"use strict";var r=t(34),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},5652:(e,n,t)=>{"use strict";var r=t(9039);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},235:(e,n,t)=>{"use strict";var r=t(9213).forEach,o=t(4598)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},7916:(e,n,t)=>{"use strict";var r=t(6080),o=t(9565),i=t(8981),a=t(6319),l=t(4209),c=t(3517),s=t(6198),u=t(4659),p=t(81),f=t(851),d=Array;e.exports=function(e){var n=i(e),t=c(this),g=arguments.length,h=g>1?arguments[1]:void 0,A=void 0!==h;A&&(h=r(h,g>2?arguments[2]:void 0));var b,v,m,y,E,C,w=f(n),x=0;if(!w||this===d&&l(w))for(b=s(n),v=t?new this(b):d(b);b>x;x++)C=A?h(n[x],x):n[x],u(v,x,C);else for(v=t?new this:[],E=(y=p(n,w)).next;!(m=o(E,y)).done;x++)C=A?a(y,h,[m.value,x],!0):m.value,u(v,x,C);return v.length=x,v}},9617:(e,n,t)=>{"use strict";var r=t(5397),o=t(5610),i=t(6198),a=function(e){return function(n,t,a){var l=r(n),c=i(l);if(0===c)return!e&&-1;var s,u=o(a,c);if(e&&t!=t){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===t)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9213:(e,n,t)=>{"use strict";var r=t(6080),o=t(9504),i=t(7055),a=t(8981),l=t(6198),c=t(1469),s=o([].push),u=function(e){var n=1===e,t=2===e,o=3===e,u=4===e,p=6===e,f=7===e,d=5===e||p;return function(g,h,A,b){for(var v,m,y=a(g),E=i(y),C=l(E),w=r(h,A),x=0,S=b||c,_=n?S(g,C):t||f?S(g,0):void 0;C>x;x++)if((d||x in E)&&(m=w(v=E[x],x,y),e))if(n)_[x]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:s(_,v)}else switch(e){case 4:return!1;case 7:s(_,v)}return p?-1:o||u?u:_}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},597:(e,n,t)=>{"use strict";var r=t(9039),o=t(8227),i=t(9519),a=o("species");e.exports=function(e){return i>=51||!r((function(){var n=[];return(n.constructor={})[a]=function(){return{foo:1}},1!==n[e](Boolean).foo}))}},4598:(e,n,t)=>{"use strict";var r=t(9039);e.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){return 1},1)}))}},926:(e,n,t)=>{"use strict";var r=t(9306),o=t(8981),i=t(7055),a=t(6198),l=TypeError,c="Reduce of empty array with no initial value",s=function(e){return function(n,t,s,u){var p=o(n),f=i(p),d=a(p);if(r(t),0===d&&s<2)throw new l(c);var g=e?d-1:0,h=e?-1:1;if(s<2)for(;;){if(g in f){u=f[g],g+=h;break}if(g+=h,e?g<0:d<=g)throw new l(c)}for(;e?g>=0:d>g;g+=h)g in f&&(u=t(u,f[g],g,p));return u}};e.exports={left:s(!1),right:s(!0)}},4527:(e,n,t)=>{"use strict";var r=t(3724),o=t(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,l=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=l?function(e,n){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=n}:function(e,n){return e.length=n}},7680:(e,n,t)=>{"use strict";var r=t(9504);e.exports=r([].slice)},4488:(e,n,t)=>{"use strict";var r=t(7680),o=Math.floor,i=function(e,n){var t=e.length;if(t<8)for(var a,l,c=1;c<t;){for(l=c,a=e[c];l&&n(e[l-1],a)>0;)e[l]=e[--l];l!==c++&&(e[l]=a)}else for(var s=o(t/2),u=i(r(e,0,s),n),p=i(r(e,s),n),f=u.length,d=p.length,g=0,h=0;g<f||h<d;)e[g+h]=g<f&&h<d?n(u[g],p[h])<=0?u[g++]:p[h++]:g<f?u[gLine truncated
//# sourceMappingURL=main.js.map
+178 -78
View File
@@ -1,95 +1,195 @@
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
* Copyright 2014-2025 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
const TOC_STATE_KEY_PREFIX = 'TOC_STATE::';
const TOC_CONTAINER_ID = 'sideMenu';
const TOC_SCROLL_CONTAINER_ID = 'leftColumn';
const TOC_PART_CLASS = 'toc--part';
const TOC_PART_HIDDEN_CLASS = 'toc--part_hidden';
const TOC_LINK_CLASS = 'toc--link';
const TOC_SKIP_LINK_CLASS = 'toc--skip-link';
navigationPageText = fetch(pathToRoot + "navigation.html").then(response => response.text())
(function () {
function displayToc() {
fetch(pathToRoot + 'navigation.html')
.then((response) => response.text())
.then((tocHTML) => {
renderToc(tocHTML);
updateTocLinks();
collapseTocParts();
expandTocPathToCurrentPage();
restoreTocExpandedState();
restoreTocScrollTop();
});
}
displayNavigationFromPage = () => {
navigationPageText.then(data => {
document.getElementById("sideMenu").innerHTML = data;
}).then(() => {
document.querySelectorAll(".toc--row > a").forEach(link => {
link.setAttribute("href", pathToRoot + link.getAttribute("href"));
})
}).then(() => {
document.querySelectorAll(".toc--part").forEach(nav => {
if (!nav.classList.contains("toc--part_hidden"))
nav.classList.add("toc--part_hidden")
})
}).then(() => {
revealNavigationForCurrentPage()
}).then(() => {
scrollNavigationToSelectedElement()
})
document.querySelectorAll('.footer a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
function renderToc(tocHTML) {
const containerElement = document.getElementById(TOC_CONTAINER_ID);
if (containerElement) {
containerElement.innerHTML = tocHTML;
}
}
function updateTocLinks() {
document.querySelectorAll(`.${TOC_LINK_CLASS}`).forEach((tocLink) => {
tocLink.setAttribute('href', `${pathToRoot}${tocLink.getAttribute('href')}`);
tocLink.addEventListener('keydown', preventScrollBySpaceKey);
});
}
document.querySelectorAll(`.${TOC_SKIP_LINK_CLASS}`).forEach((skipLink) => {
skipLink.setAttribute('href', `#main`);
skipLink.addEventListener('keydown', preventScrollBySpaceKey);
})
}
revealNavigationForCurrentPage = () => {
let pageId = document.getElementById("content").attributes["pageIds"].value.toString();
let parts = document.querySelectorAll(".toc--part");
let found = 0;
do {
parts.forEach(part => {
if (part.attributes['pageId'].value.indexOf(pageId) !== -1 && found === 0) {
found = 1;
if (part.classList.contains("toc--part_hidden")) {
part.classList.remove("toc--part_hidden");
part.setAttribute('data-active', "");
}
revealParents(part)
}
});
pageId = pageId.substring(0, pageId.lastIndexOf("/"))
} while (pageId.indexOf("/") !== -1 && found === 0)
};
revealParents = (part) => {
if (part.classList.contains("toc--part")) {
if (part.classList.contains("toc--part_hidden"))
part.classList.remove("toc--part_hidden");
revealParents(part.parentNode)
}
};
function collapseTocParts() {
document.querySelectorAll(`.${TOC_PART_CLASS}`).forEach((tocPart) => {
if (!tocPart.classList.contains(TOC_PART_HIDDEN_CLASS)) {
tocPart.classList.add(TOC_PART_HIDDEN_CLASS);
const tocToggleButton = tocPart.querySelector('button');
if (tocToggleButton) {
tocToggleButton.setAttribute("aria-expanded", "false");
}
}
});
}
scrollNavigationToSelectedElement = () => {
let selectedElement = document.querySelector('div.toc--part[data-active]')
if (selectedElement == null) { // nothing selected, probably just the main page opened
return
const expandTocPathToCurrentPage = () => {
const tocParts = [...document.querySelectorAll(`.${TOC_PART_CLASS}`)];
const currentPageId = document.getElementById('content')?.getAttribute('pageIds');
if (!currentPageId) {
return;
}
let hasIcon = selectedElement.querySelectorAll(":scope > div.toc--row span.toc--icon").length > 0
// for an instance enums also have children and are expandable but are not package/module elements
let isPackageElement = selectedElement.children.length > 1 && !hasIcon
if (isPackageElement) {
// if a package is selected or linked, it makes sense to align it to top
// so that you can see all the members it contains
selectedElement.scrollIntoView(true)
} else {
// if a member within a package is linked, it makes sense to center it since it,
// this should make it easier to look at surrounding members
selectedElement.scrollIntoView({
behavior: 'auto',
block: 'center',
inline: 'center'
})
let isPartFound = false;
let currentPageIdPrefix = currentPageId;
while (!isPartFound && currentPageIdPrefix !== '') {
tocParts.forEach((part) => {
const partId = part.getAttribute('pageId');
if (!isPartFound && partId?.includes(currentPageIdPrefix)) {
isPartFound = true;
expandTocPart(part);
expandTocPathToParent(part);
part.dataset.active = 'true';
}
});
currentPageIdPrefix = currentPageIdPrefix.substring(0, currentPageIdPrefix.lastIndexOf('/'));
}
}
};
/*
const expandTocPathToParent = (part) => {
if (part.classList.contains(TOC_PART_CLASS)) {
expandTocPart(part);
expandTocPathToParent(part.parentNode);
}
};
const expandTocPart = (tocPart) => {
if (tocPart.classList.contains(TOC_PART_HIDDEN_CLASS)) {
tocPart.classList.remove(TOC_PART_HIDDEN_CLASS);
const tocToggleButton = tocPart.querySelector('button');
if (tocToggleButton) {
tocToggleButton.setAttribute("aria-expanded", "true");
}
const tocPartId = tocPart.getAttribute('id');
safeSessionStorage.setItem(`${TOC_STATE_KEY_PREFIX}${tocPartId}`, 'true');
}
};
/**
* Restores the state of the navigation tree from the local storage.
* LocalStorage keys are in the format of `TOC_STATE::${id}` where `id` is the id of the part
*/
const restoreTocExpandedState = () => {
const allLocalStorageKeys = safeSessionStorage.getKeys();
const tocStateKeys = allLocalStorageKeys.filter((key) => key.startsWith(TOC_STATE_KEY_PREFIX));
tocStateKeys.forEach((key) => {
const isExpandedTOCPart = safeSessionStorage.getItem(key) === 'true';
const tocPartId = key.substring(TOC_STATE_KEY_PREFIX.length);
const tocPart = document.querySelector(`.toc--part[id="${tocPartId}"]`);
if (tocPart !== null && isExpandedTOCPart) {
tocPart.classList.remove(TOC_PART_HIDDEN_CLASS);
const tocToggleButton = tocPart.querySelector('button');
if (tocToggleButton) {
tocToggleButton.setAttribute("aria-expanded", "true");
}
}
});
};
function saveTocScrollTop() {
const container = document.getElementById(TOC_SCROLL_CONTAINER_ID);
if (container) {
const currentScrollTop = container.scrollTop;
safeSessionStorage.setItem(`${TOC_STATE_KEY_PREFIX}SCROLL_TOP`, `${currentScrollTop}`);
}
}
function restoreTocScrollTop() {
const container = document.getElementById(TOC_SCROLL_CONTAINER_ID);
if (container) {
const storedScrollTop = safeSessionStorage.getItem(`${TOC_STATE_KEY_PREFIX}SCROLL_TOP`);
if (storedScrollTop) {
container.scrollTop = Number(storedScrollTop);
}
}
}
function initTocScrollListener() {
const container = document.getElementById(TOC_SCROLL_CONTAINER_ID);
if (container) {
container.addEventListener('scroll', saveTocScrollTop);
}
}
function preventScrollBySpaceKey(event) {
if (event.key === ' ') {
event.preventDefault();
event.stopPropagation();
}
}
function resetTocState() {
const tocKeys = safeSessionStorage.getKeys();
tocKeys.forEach((key) => {
if (key.startsWith(TOC_STATE_KEY_PREFIX)) {
safeSessionStorage.removeItem(key);
}
});
}
function initLogoClickListener() {
const logo = document.querySelector('.library-name--link');
if (logo) {
logo.addEventListener('click', resetTocState);
}
}
/*
This is a work-around for safari being IE of our times.
It doesn't fire a DOMContentLoaded, presumably because eventListener is added after it wants to do it
*/
if (document.readyState === 'loading') {
if (document.readyState === 'loading') {
window.addEventListener('DOMContentLoaded', () => {
displayNavigationFromPage()
displayToc();
initTocScrollListener();
initLogoClickListener();
})
} else {
displayNavigationFromPage()
} else {
displayToc();
initTocScrollListener();
initLogoClickListener();
}
})();
function handleTocButtonClick(event, navId) {
const tocPart = document.getElementById(navId);
if (!tocPart) {
return;
}
tocPart.classList.toggle(TOC_PART_HIDDEN_CLASS);
const isExpandedTOCPart = !tocPart.classList.contains(TOC_PART_HIDDEN_CLASS);
const button = tocPart.querySelector('button');
button?.setAttribute("aria-expanded", `${isExpandedTOCPart}`);
safeSessionStorage.setItem(`${TOC_STATE_KEY_PREFIX}${navId}`, `${isExpandedTOCPart}`);
}
+1 -1
View File
@@ -1 +1 @@
[{"name":"abstract class AbstractExposedCRUDRepo<ObjectType, IdType, InputValueType>(flowsChannelsSize: Int = 0, tableName: String = \"\", replyCacheInFlows: Int = 0, onBufferOverflowBehaviour: BufferOverflow = BufferOverflow.SUSPEND) : AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType> , ExposedCRUDRepo<ObjectType, IdType> , CRUDRepo<ObjectType, IdType, InputValueType> ","description":"dev.inmo.micro_utils.repos.exposed.AbstractExposedCRUDRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed/-abstract-exposed-c-r-u-d-repo/index.html","searchKeys":["AbstractExposedCRUDRepo","abstract class AbstractExposedCRUDRepo<ObjectType, IdType, InputValueType>(flowsChannelsSize: Int = 0, tableName: String = \"\", replyCacheInFlows: Int = 0, onBufferOverflowBehaviour: BufferOverflow = BufferOverflow.SUSPEND) : AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType> , ExposedCRUDRepo<ObjectType, IdType> , CRUDRepo<ObjectType, IdType, InputValueType> ","dev.inmo.micro_utils.repos.exposed.AbstractExposedCRUDRepo"]},{"name":"abstract class AbstractExposedKeyValueRepo<Key, Value>(val database: <Error class: unknown class>, tableName: String? = null, flowsExtraBufferCapacity: Int = Int.MAX_VALUE, flowsBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND) : AbstractExposedReadKeyValueRepo<Key, Value> , KeyValueRepo<Key, Value> ","description":"dev.inmo.micro_utils.repos.exposed.keyvalue.AbstractExposedKeyValueRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed.keyvalue/-abstract-exposed-key-value-repo/index.html","searchKeys":["AbstractExposedKeyValueRepo","abstract class AbstractExposedKeyValueRepo<Key, Value>(val database: <Error class: unknown class>, tableName: String? = null, flowsExtraBufferCapacity: Int = Int.MAX_VALUE, flowsBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND) : AbstractExposedReadKeyValueRepo<Key, Value> , KeyValueRepo<Key, Value> ","dev.inmo.micro_utils.repos.exposed.keyvalue.AbstractExposedKeyValueRepo"]},{"name":"abstract class AbstractExposedKeyValuesRepo<Key, Value>(val database: <Error class: unknown class>, tableName: String? = null, flowsExtraBufferCapacity: Int = Int.MAX_VALUE, flowsBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND) : AbstractExposedReadKeyValuesRepo<Key, Value> , KeyValuesRepo<Key, Value> ","description":"dev.inmo.micro_utils.repos.exposed.onetomany.AbstractExposedKeyValuesRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed.onetomany/-abstract-exposed-key-values-repo/index.html","searchKeys":["AbstractExposedKeyValuesRepo","abstract class AbstractExposedKeyValuesRepo<Key, Value>(val database: <Error class: unknown class>, tableName: String? = null, flowsExtraBufferCapacity: Int = Int.MAX_VALUE, flowsBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND) : AbstractExposedReadKeyValuesRepo<Key, Value> , KeyValuesRepo<Key, Value> ","dev.inmo.micro_utils.repos.exposed.onetomany.AbstractExposedKeyValuesRepo"]},{"name":"abstract class AbstractExposedReadCRUDRepo<ObjectType, IdType>(tableName: String) : ReadCRUDRepo<ObjectType, IdType> , ExposedCRUDRepo<ObjectType, IdType> ","description":"dev.inmo.micro_utils.repos.exposed.AbstractExposedReadCRUDRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed/-abstract-exposed-read-c-r-u-d-repo/index.html","searchKeys":["AbstractExposedReadCRUDRepo","abstract class AbstractExposedReadCRUDRepo<ObjectType, IdType>(tableName: String) : ReadCRUDRepo<ObjectType, IdType> , ExposedCRUDRepo<ObjectType, IdType> ","dev.inmo.micro_utils.repos.exposed.AbstractExposedReadCRUDRepo"]},{"name":"abstract class AbstractExposedReadKeyValueRepo<Key, Value>(val database: <Error class: unknown class>, tableName: String? = null) : ReadKeyValueRepo<Key, Value> , CommonExposedRepo<Key, Value> ","description":"dev.inmo.micro_utils.repos.exposed.keyvalue.AbstractExposedReadKeyValueRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed.keyvalue/-abstract-exposed-read-key-value-repo/index.html","searchKeys":["AbstractExposedReadKeyValueRepo","abstract class AbstractExposedReadKeyValueRepo<Key, Value>(val database: <Error class: unknown class>, tableName: String? = null) : ReadKeyValueRepo<Key, Value> , CommonExposedRepo<Key, Value> ","dev.inmo.micro_utils.repos.exposed.keyvalue.AbstractExposedReadKeyValueRepo"]},{"name":"abstract class AbstractExposedReadKeyValuesRepo<Key, Value>(val database: <Error class: unknown class>, tableName: String? = null) : ReadKeyValuesRepo<Key, Value> , CommonExposedRepo<Key, Value> ","description":"dev.inmo.micro_utils.repos.exposed.onetomany.AbstractExposedReadKeyValuesRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed.onetomany/-abstract-exposed-read-key-values-repo/index.html","searchKeys":["AbstractExposedReadKeyValuesRepo","abstract class AbstractExposedReadKeyValuesRepo<Key, Value>(val database: <Error class: unknown class>, tableName: String? = null) : ReadKeyValuesRepo<Key, Value> , CommoLine truncated
[{"name":"abstract class AbstractAndroidCRUDRepo<ObjectType, IdType>(helper: StandardSQLHelper) : ReadCRUDRepo<ObjectType, IdType> ","description":"dev.inmo.micro_utils.repos.crud.AbstractAndroidCRUDRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.crud/-abstract-android-c-r-u-d-repo/index.html","searchKeys":["AbstractAndroidCRUDRepo","abstract class AbstractAndroidCRUDRepo<ObjectType, IdType>(helper: StandardSQLHelper) : ReadCRUDRepo<ObjectType, IdType> ","dev.inmo.micro_utils.repos.crud.AbstractAndroidCRUDRepo"]},{"name":"abstract class AbstractExposedCRUDRepo<ObjectType, IdType, InputValueType>(flowsChannelsSize: Int = 0, tableName: String = \"\", replyCacheInFlows: Int = 0, onBufferOverflowBehaviour: BufferOverflow = BufferOverflow.SUSPEND) : AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType> , ExposedCRUDRepo<ObjectType, IdType> , CRUDRepo<ObjectType, IdType, InputValueType> ","description":"dev.inmo.micro_utils.repos.exposed.AbstractExposedCRUDRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed/-abstract-exposed-c-r-u-d-repo/index.html","searchKeys":["AbstractExposedCRUDRepo","abstract class AbstractExposedCRUDRepo<ObjectType, IdType, InputValueType>(flowsChannelsSize: Int = 0, tableName: String = \"\", replyCacheInFlows: Int = 0, onBufferOverflowBehaviour: BufferOverflow = BufferOverflow.SUSPEND) : AbstractExposedWriteCRUDRepo<ObjectType, IdType, InputValueType> , ExposedCRUDRepo<ObjectType, IdType> , CRUDRepo<ObjectType, IdType, InputValueType> ","dev.inmo.micro_utils.repos.exposed.AbstractExposedCRUDRepo"]},{"name":"abstract class AbstractExposedKeyValueRepo<Key, Value>(val database: ERROR CLASS: Symbol not found for Database, tableName: String? = null, flowsExtraBufferCapacity: Int = Int.MAX_VALUE, flowsBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND) : KeyValueRepo<Key, Value> , AbstractExposedReadKeyValueRepo<Key, Value> ","description":"dev.inmo.micro_utils.repos.exposed.keyvalue.AbstractExposedKeyValueRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed.keyvalue/-abstract-exposed-key-value-repo/index.html","searchKeys":["AbstractExposedKeyValueRepo","abstract class AbstractExposedKeyValueRepo<Key, Value>(val database: ERROR CLASS: Symbol not found for Database, tableName: String? = null, flowsExtraBufferCapacity: Int = Int.MAX_VALUE, flowsBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND) : KeyValueRepo<Key, Value> , AbstractExposedReadKeyValueRepo<Key, Value> ","dev.inmo.micro_utils.repos.exposed.keyvalue.AbstractExposedKeyValueRepo"]},{"name":"abstract class AbstractExposedKeyValuesRepo<Key, Value>(val database: ERROR CLASS: Symbol not found for Database, tableName: String? = null, flowsExtraBufferCapacity: Int = Int.MAX_VALUE, flowsBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND) : KeyValuesRepo<Key, Value> , AbstractExposedReadKeyValuesRepo<Key, Value> ","description":"dev.inmo.micro_utils.repos.exposed.onetomany.AbstractExposedKeyValuesRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed.onetomany/-abstract-exposed-key-values-repo/index.html","searchKeys":["AbstractExposedKeyValuesRepo","abstract class AbstractExposedKeyValuesRepo<Key, Value>(val database: ERROR CLASS: Symbol not found for Database, tableName: String? = null, flowsExtraBufferCapacity: Int = Int.MAX_VALUE, flowsBufferOverflow: BufferOverflow = BufferOverflow.SUSPEND) : KeyValuesRepo<Key, Value> , AbstractExposedReadKeyValuesRepo<Key, Value> ","dev.inmo.micro_utils.repos.exposed.onetomany.AbstractExposedKeyValuesRepo"]},{"name":"abstract class AbstractExposedReadCRUDRepo<ObjectType, IdType>(tableName: String) : ReadCRUDRepo<ObjectType, IdType> , ExposedCRUDRepo<ObjectType, IdType> , <ERROR CLASS> ERROR CLASS: Symbol not found for Table","description":"dev.inmo.micro_utils.repos.exposed.AbstractExposedReadCRUDRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed/-abstract-exposed-read-c-r-u-d-repo/index.html","searchKeys":["AbstractExposedReadCRUDRepo","abstract class AbstractExposedReadCRUDRepo<ObjectType, IdType>(tableName: String) : ReadCRUDRepo<ObjectType, IdType> , ExposedCRUDRepo<ObjectType, IdType> , <ERROR CLASS> ERROR CLASS: Symbol not found for Table","dev.inmo.micro_utils.repos.exposed.AbstractExposedReadCRUDRepo"]},{"name":"abstract class AbstractExposedReadKeyValueRepo<Key, Value>(val database: ERROR CLASS: Symbol not found for Database, tableName: String? = null) : ReadKeyValueRepo<Key, Value> , CommonExposedRepo<Key, Value> , <ERROR CLASS> ERROR CLASS: Symbol not found for Table","description":"dev.inmo.micro_utils.repos.exposed.keyvalue.AbstractExposedReadKeyValueRepo","location":"micro_utils.dokka/dev.inmo.micro_utils.repos.exposed.keyvalue/-abstract-exposed-read-key-value-repo/index.html","searchKeys":["AbstractExposedReadKeyValueRepo","abstract class AbstractExposedReadKeyValueRepo<Key, Value>(val database: ERROR CLASS: Symbol not found for Database, tableName: String? = null) : ReadKeyLine truncated
+21 -82
View File
@@ -1,35 +1,6 @@
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
/** When Dokka is viewed via iframe, local storage could be inaccessible (see https://github.com/Kotlin/dokka/issues/3323)
* This is a wrapper around local storage to prevent errors in such cases
* */
const safeLocalStorage = (() => {
let isLocalStorageAvailable = false;
try {
const testKey = '__testLocalStorageKey__';
localStorage.setItem(testKey, testKey);
localStorage.removeItem(testKey);
isLocalStorageAvailable = true;
} catch (e) {
console.error('Local storage is not available', e);
}
return {
getItem: (key) => {
if (!isLocalStorageAvailable) {
return null;
}
return localStorage.getItem(key);
},
setItem: (key, value) => {
if (!isLocalStorageAvailable) {
return;
}
localStorage.setItem(key, value);
}
};
})();
filteringContext = {
dependencies: {},
@@ -38,12 +9,8 @@ filteringContext = {
}
let highlightedAnchor;
let topNavbarOffset;
let instances = [];
let sourcesetNotification;
const samplesDarkThemeName = 'darcula'
const samplesLightThemeName = 'idea'
window.addEventListener('load', () => {
document.querySelectorAll("div[data-platform-hinted]")
.forEach(elem => elem.addEventListener('click', (event) => togglePlatformDependent(event, elem)))
@@ -66,7 +33,11 @@ const darkModeSwitch = () => {
const osDarkSchemePreferred = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const darkModeEnabled = storage ? JSON.parse(storage) : osDarkSchemePreferred
const element = document.getElementById("theme-toggle-button")
initPlayground(darkModeEnabled ? samplesDarkThemeName : samplesLightThemeName)
// Notify external scripts about changing dark mode, runnable samples plugin depends on this
if (window.onDarkModeChanged) {
window.onDarkModeChanged(darkModeEnabled)
}
element.addEventListener('click', () => {
const enabledClasses = document.getElementsByTagName("html")[0].classList
@@ -74,48 +45,14 @@ const darkModeSwitch = () => {
//if previously we had saved dark theme then we set it to light as this is what we save in local storage
const darkModeEnabled = enabledClasses.contains("theme-dark")
if (darkModeEnabled) {
initPlayground(samplesDarkThemeName)
} else {
initPlayground(samplesLightThemeName)
// Notify external scripts about changing dark mode, runnable samples plugin depends on this
if (window.onDarkModeChanged) {
window.onDarkModeChanged(darkModeEnabled)
}
safeLocalStorage.setItem(localStorageKey, JSON.stringify(darkModeEnabled))
})
}
const initPlayground = (theme) => {
if (!samplesAreEnabled()) return
instances.forEach(instance => instance.destroy())
instances = []
// Manually tag code fragments as not processed by playground since we also manually destroy all of its instances
document.querySelectorAll('code.runnablesample').forEach(node => {
node.removeAttribute("data-kotlin-playground-initialized");
})
KotlinPlayground('code.runnablesample', {
getInstance: playgroundInstance => {
instances.push(playgroundInstance)
},
theme: theme
});
}
// We check if type is accessible from the current scope to determine if samples script is present
// As an alternative we could extract this samples-specific script to new js file but then we would handle dark mode in 2 separate files which is not ideal
const samplesAreEnabled = () => {
try {
if (typeof KotlinPlayground === 'undefined') {
// KotlinPlayground is exported universally as a global variable or as a module
// Due to possible interaction with other js scripts KotlinPlayground may not be accessible directly from `window`, so we need an additional check
KotlinPlayground = exports.KotlinPlayground;
}
return typeof KotlinPlayground === 'function';
} catch (e) {
return false
}
}
// Hash change is needed in order to allow for linking inside the same page with anchors
// If this is not present user is forced to refresh the site in order to use an anchor
window.onhashchange = handleAnchor
@@ -275,14 +212,18 @@ function togglePlatformDependent(e, container) {
for (let bm of child.children) {
if (bm === target) {
bm.setAttribute('data-active', "")
bm.setAttribute('aria-pressed', "true")
} else if (bm !== target) {
bm.removeAttribute('data-active')
bm.removeAttribute('aria-pressed')
}
}
} else if (child.getAttribute('data-togglable') === index) {
child.setAttribute('data-active', "")
child.setAttribute('aria-pressed', "true")
} else {
child.removeAttribute('data-active')
child.removeAttribute('aria-pressed')
}
}
}
@@ -299,16 +240,6 @@ function refreshFiltering() {
refreshFilterButtons()
refreshPlatformTabs()
refreshNoContentNotification()
refreshPlaygroundSamples()
}
function refreshPlaygroundSamples() {
document.querySelectorAll('code.runnablesample').forEach(node => {
const playground = node.KotlinPlayground;
/* Some samples may be hidden by filter, they have 0px height for visible code area
* after rendering. Call this method for re-calculate code area height */
playground && playground.view.codemirror.refresh();
});
}
function refreshNoContentNotification() {
@@ -360,12 +291,20 @@ function refreshFilterButtons() {
.forEach(f => {
if (filteringContext.activeFilters.indexOf(f.getAttribute("data-filter")) !== -1) {
f.setAttribute("data-active", "")
f.setAttribute("aria-pressed", "true")
} else {
f.removeAttribute("data-active")
f.removeAttribute("aria-pressed")
}
})
document.querySelectorAll("#filter-section .checkbox--input")
.forEach(f => {
f.checked = filteringContext.activeFilters.indexOf(f.getAttribute("data-filter")) !== -1;
const isChecked = filteringContext.activeFilters.indexOf(f.getAttribute("data-filter")) !== -1
f.checked = isChecked;
if (isChecked) {
f.setAttribute("aria-pressed", "true")
} else {
f.removeAttribute("aria-pressed");
}
})
}
+86
View File
@@ -0,0 +1,86 @@
/*
* Copyright 2014-2025 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
/** When Dokka is viewed via iframe, local storage could be inaccessible (see https://github.com/Kotlin/dokka/issues/3323)
* This is a wrapper around local storage to prevent errors in such cases
* */
const safeLocalStorage = (() => {
let isLocalStorageAvailable = false;
try {
const testKey = '__testLocalStorageKey__';
localStorage.setItem(testKey, testKey);
localStorage.removeItem(testKey);
isLocalStorageAvailable = true;
} catch (e) {
console.error('Local storage is not available', e);
}
return {
getItem: (key) => {
if (!isLocalStorageAvailable) {
return null;
}
return localStorage.getItem(key);
},
setItem: (key, value) => {
if (!isLocalStorageAvailable) {
return;
}
localStorage.setItem(key, value);
},
removeItem: (key) => {
if (!isLocalStorageAvailable) {
return;
}
localStorage.removeItem(key);
},
getKeys: () => {
if (!isLocalStorageAvailable) {
return [];
}
return Object.keys(localStorage);
},
};
})();
/** When Dokka is viewed via iframe, session storage could be inaccessible (see https://github.com/Kotlin/dokka/issues/3323)
* This is a wrapper around session storage to prevent errors in such cases
* */
const safeSessionStorage = (() => {
let isSessionStorageAvailable = false;
try {
const testKey = '__testSessionStorageKey__';
sessionStorage.setItem(testKey, testKey);
sessionStorage.removeItem(testKey);
isSessionStorageAvailable = true;
} catch (e) {
console.error('Session storage is not available', e);
}
return {
getItem: (key) => {
if (!isSessionStorageAvailable) {
return null;
}
return sessionStorage.getItem(key);
},
setItem: (key, value) => {
if (!isSessionStorageAvailable) {
return;
}
sessionStorage.setItem(key, value);
},
removeItem: (key) => {
if (!isSessionStorageAvailable) {
return;
}
sessionStorage.removeItem(key);
},
getKeys: () => {
if (!isSessionStorageAvailable) {
return [];
}
return Object.keys(sessionStorage);
},
};
})();
+1 -1
View File
@@ -1 +1 @@
sourceset_dependencies='{":micro_utils.dokka:dokkaHtml/commonMain":[],":micro_utils.dokka:dokkaHtml/jsMain":[":micro_utils.dokka:dokkaHtml/webMain"],":micro_utils.dokka:dokkaHtml/jvmMain":[":micro_utils.dokka:dokkaHtml/commonMain"],":micro_utils.dokka:dokkaHtml/webMain":[":micro_utils.dokka:dokkaHtml/commonMain"]}'
sourceset_dependencies='{":micro_utils.dokka/androidMain":[":micro_utils.dokka/commonMain"],":micro_utils.dokka/androidRelease":[":micro_utils.dokka/commonMain"],":micro_utils.dokka/commonMain":[],":micro_utils.dokka/jsMain":[":micro_utils.dokka/webMain"],":micro_utils.dokka/jvmMain":[":micro_utils.dokka/commonMain"],":micro_utils.dokka/webMain":[":micro_utils.dokka/commonMain"]}'
@@ -1,64 +0,0 @@
/*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
// helps with some corner cases where <wbr> starts working already,
// but the signature is not yet long enough to be wrapped
(function() {
const leftPaddingPx = 60;
function createNbspIndent() {
let indent = document.createElement("span");
indent.append(document.createTextNode("\u00A0\u00A0\u00A0\u00A0"));
indent.classList.add("nbsp-indent");
return indent;
}
function wrapSymbolParameters(entry) {
const symbol = entry.target;
const symbolBlockWidth = entry.borderBoxSize && entry.borderBoxSize[0] && entry.borderBoxSize[0].inlineSize;
// Even though the script is marked as `defer` and we wait for `DOMContentLoaded` event,
// or if this block is a part of hidden tab, it can happen that `symbolBlockWidth` is 0,
// indicating that something hasn't been loaded.
// In this case, observer will be triggered onсe again when it will be ready.
if (symbolBlockWidth > 0) {
const node = symbol.querySelector(".parameters");
if (node) {
// if window resize happened and observer was triggered, reset previously wrapped
// parameters as they might not need wrapping anymore, and check again
node.classList.remove("wrapped");
node.querySelectorAll(".parameter .nbsp-indent")
.forEach(indent => indent.remove());
const innerTextWidth = Array.from(symbol.children)
.filter(it => !it.classList.contains("block")) // blocks are usually on their own (like annotations), so ignore it
.map(it => it.getBoundingClientRect().width)
.reduce((a, b) => a + b, 0);
// if signature text takes up more than a single line, wrap params for readability
if (innerTextWidth > (symbolBlockWidth - leftPaddingPx)) {
node.classList.add("wrapped");
node.querySelectorAll(".parameter").forEach(param => {
// has to be a physical indent so that it can be copied. styles like
// paddings and `::before { content: " " }` do not work for that
param.prepend(createNbspIndent());
});
}
}
}
}
const symbolsObserver = new ResizeObserver(entries => entries.forEach(wrapSymbolParameters));
function initHandlers() {
document.querySelectorAll("div.symbol").forEach(symbol => symbolsObserver.observe(symbol));
}
if (document.readyState === 'loading') window.addEventListener('DOMContentLoaded', initHandlers);
else initHandlers();
// ToDo: Add `unobserve` if dokka will be SPA-like:
// https://github.com/w3c/csswg-drafts/issues/5155
})();