mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
33 lines
70 KiB
JavaScript
33 lines
70 KiB
JavaScript
|
(()=>{var Wo=Object.create,Ht=Object.defineProperty,No=Object.getPrototypeOf,cr=Object.prototype.hasOwnProperty,zo=Object.getOwnPropertyNames,Qo=Object.getOwnPropertyDescriptor,ur=Object.getOwnPropertySymbols,qo=Object.prototype.propertyIsEnumerable;var N=Object.assign,Ko=e=>Ht(e,"__esModule",{value:!0});var lr=(e,t)=>{var r={};for(var n in e)cr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ur)for(var n of ur(e))t.indexOf(n)<0&&qo.call(e,n)&&(r[n]=e[n]);return r},Ct=(e,t)=>()=>(t||(t={exports:{}},e(t.exports,t)),t.exports);var Yo=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of zo(t))!cr.call(e,n)&&n!=="default"&&Ht(e,n,{get:()=>t[n],enumerable:!(r=Qo(t,n))||r.enumerable});return e},it=e=>e&&e.__esModule?e:Yo(Ko(Ht(e!=null?Wo(No(e)):{},"default",{value:e,enumerable:!0})),e);var pr=Ct((jt,fr)=>{(function(e,t){typeof jt=="object"&&typeof fr!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(jt,function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(x){return!!(x&&x!==document&&x.nodeName!=="HTML"&&x.nodeName!=="BODY"&&"classList"in x&&"contains"in x.classList)}function u(x){var Ye=x.type,_t=x.tagName;return!!(_t==="INPUT"&&a[Ye]&&!x.readOnly||_t==="TEXTAREA"&&!x.readOnly||x.isContentEditable)}function s(x){x.classList.contains("focus-visible")||(x.classList.add("focus-visible"),x.setAttribute("data-focus-visible-added",""))}function l(x){!x.hasAttribute("data-focus-visible-added")||(x.classList.remove("focus-visible"),x.removeAttribute("data-focus-visible-added"))}function p(x){x.metaKey||x.altKey||x.ctrlKey||(c(r.activeElement)&&s(r.activeElement),n=!0)}function m(x){n=!1}function _(x){!c(x.target)||(n||u(x.target))&&s(x.target)}function $(x){!c(x.target)||(x.target.classList.contains("focus-visible")||x.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),l(x.target))}function A(x){document.visibilityState==="hidden"&&(o&&(n=!0),Z())}function Z(){document.addEventListener("mousemove",k),document.addEventListener("mousedown",k),document.addEventListener("mouseup",k),document.addEventListener("pointermove",k),document.addEventListener("pointerdown",k),document.addEventListener("pointerup",k),document.addEventListener("touchmove",k),document.addEventListener("touchstart",k),document.addEventListener("touchend",k)}function P(){document.removeEventListener("mousemove",k),document.removeEventListener("mousedown",k),document.removeEventListener("mouseup",k),document.removeEventListener("pointermove",k),document.removeEventListener("pointerdown",k),document.removeEventListener("pointerup",k),document.removeEventListener("touchmove",k),document.removeEventListener("touchstart",k),document.removeEventListener("touchend",k)}function k(x){x.target.nodeName&&x.target.nodeName.toLowerCase()==="html"||(n=!1,P())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",A,!0),Z(),r.addEventListener("focus",_,!0),r.addEventListener("blur",$,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var Xt=Ct((ot,Jt)=>{(function(t,r){typeof ot=="object"&&typeof Jt=="object"?Jt.exports=r():typeof define=="function"&&define.amd?define([],r):typeof ot=="object"?ot.ClipboardJS=r():t.ClipboardJS=r()})(o
|
||
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
||
|
`):"",this.name="UnsubscriptionError",this.errors=r}});function be(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var te=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))try{for(var c=ie(a),u=c.next();!u.done;u=c.next()){var s=u.value;s.remove(this)}}catch(A){t={error:A}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else a==null||a.remove(this);var l=this.initialTeardown;if(g(l))try{l()}catch(A){i=A instanceof st?A.errors:[A]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var m=ie(p),_=m.next();!_.done;_=m.next()){var $=_.value;try{br($)}catch(A){i=i!=null?i:[],A instanceof st?i=F(F([],H(i)),H(A.errors)):i.push(A)}}}catch(A){n={error:A}}finally{try{_&&!_.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new st(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)br(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=(r=this._teardowns)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&be(r,t)},e.prototype.remove=function(t){var r=this._teardowns;r&&be(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Ft=te.EMPTY;function ct(e){return e instanceof te||e&&"closed"in e&&g(e.remove)&&g(e.add)&&g(e.unsubscribe)}function br(e){g(e)?e():e.unsubscribe()}var fe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Re={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Re.delegate;return((r==null?void 0:r.setTimeout)||setTimeout).apply(void 0,F([],H(e)))},clearTimeout:function(e){var t=Re.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function ut(e){Re.setTimeout(function(){var t=fe.onUnhandledError;if(t)t(e);else throw e})}function Y(){}var vr=function(){return It("C",void 0,void 0)}();function gr(e){return It("E",void 0,e)}function yr(e){return It("N",e,void 0)}function It(e,t,r){return{kind:e,value:t,error:r}}var Xe=function(e){z(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,ct(r)&&r.add(n)):n.destination=Jo,n}return t.create=function(r,n,o){return new Rt(r,n,o)},t.prototype.next=function(r){this.isStopped?$t(yr(r),this):this._next(r)},t.prototype.error=function(r){this.isStopped?$t(gr(r),this):(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped?$t(vr,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){this.destination.error(r),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t}(te);var Rt=function(e){z(t,e);function t(r,n,o){var i=e.call(this)||this,a;if(g(r))a=r;else if(r){a=r.next,n=r.error,o=r.complete;var c;i&&fe.useDeprecatedNextContext?(c=Object.create(r),c.unsubscribe=function(){return i.unsubscribe()}):c=r,a=a==null?void 0:a.bind(c),n=n==null?void 0:n.bind(c),o=o==null?void 0:o.bind(c)}return i.destination={next:a?Pt(a,i):Y,error:Pt(n||xr,i),complete:o?Pt(o,i):Y},i}return t}(Xe);function Pt(e,t){return fe.useDeprecatedSynchronousErrorHandling?function(r){try{e(r)}catch(n){t.__syncError=n}}:e}function xr(e){if(fe.useDeprecatedSynchronousErrorHandling)throw e;ut(e)}function $t(e,t){var r=fe.onStoppedNotification;r&&Re.setTimeout(function(){return r(e,t)})}var Jo={closed:!0,next:Y,error:xr,comple
|
||
|
/*!
|
||
|
* clipboard.js v2.0.6
|
||
|
* https://clipboardjs.com/
|
||
|
*
|
||
|
* Licensed MIT © Zeno Rocha
|
||
|
*/
|
||
|
/*!
|
||
|
* escape-html
|
||
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
|
* Copyright(c) 2015 Andreas Lubbe
|
||
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
|
* MIT Licensed
|
||
|
*/
|
||
|
/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation.
|
||
|
|
||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
purpose with or without fee is hereby granted.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
***************************************************************************** */
|
||
|
//# sourceMappingURL=bundle.ca5457b8.min.js.map
|
||
|
|