diff --git a/dist/assets/javascripts/bundle.e96c3837.min.js b/dist/assets/javascripts/bundle.77dd0ce9.min.js similarity index 65% rename from dist/assets/javascripts/bundle.e96c3837.min.js rename to dist/assets/javascripts/bundle.77dd0ce9.min.js index 2646b627..f2691d77 100644 --- a/dist/assets/javascripts/bundle.e96c3837.min.js +++ b/dist/assets/javascripts/bundle.77dd0ce9.min.js @@ -1,10 +1,10 @@ -"use strict";(()=>{var rl=Object.create;var qn=Object.defineProperty,nl=Object.defineProperties,ol=Object.getOwnPropertyDescriptor,il=Object.getOwnPropertyDescriptors,al=Object.getOwnPropertyNames,Xr=Object.getOwnPropertySymbols,sl=Object.getPrototypeOf,Kn=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable;var ii=(e,t,r)=>t in e?qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))Kn.call(t,r)&&ii(e,r,t[r]);if(Xr)for(var r of Xr(t))ai.call(t,r)&&ii(e,r,t[r]);return e},Ae=(e,t)=>nl(e,il(t));var wr=(e,t)=>{var r={};for(var n in e)Kn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xr)for(var n of Xr(e))t.indexOf(n)<0&&ai.call(e,n)&&(r[n]=e[n]);return r};var Bn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var cl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of al(t))!Kn.call(e,o)&&o!==r&&qn(e,o,{get:()=>t[o],enumerable:!(n=ol(t,o))||n.enumerable});return e};var Er=(e,t,r)=>(r=e!=null?rl(sl(e)):{},cl(t||!e||!e.__esModule?qn(r,"default",{value:e,enumerable:!0}):r,e));var Je=(e,t,r)=>new Promise((n,o)=>{var i=c=>{try{s(r.next(c))}catch(l){o(l)}},a=c=>{try{s(r.throw(c))}catch(l){o(l)}},s=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,a);s((r=r.apply(e,t)).next())});var ci=Bn((Gn,si)=>{(function(e,t){typeof Gn=="object"&&typeof si!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Gn,(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 s(_){return!!(_&&_!==document&&_.nodeName!=="HTML"&&_.nodeName!=="BODY"&&"classList"in _&&"contains"in _.classList)}function c(_){var ge=_.type,be=_.tagName;return!!(be==="INPUT"&&a[ge]&&!_.readOnly||be==="TEXTAREA"&&!_.readOnly||_.isContentEditable)}function l(_){_.classList.contains("focus-visible")||(_.classList.add("focus-visible"),_.setAttribute("data-focus-visible-added",""))}function u(_){_.hasAttribute("data-focus-visible-added")&&(_.classList.remove("focus-visible"),_.removeAttribute("data-focus-visible-added"))}function f(_){_.metaKey||_.altKey||_.ctrlKey||(s(r.activeElement)&&l(r.activeElement),n=!0)}function p(_){n=!1}function d(_){s(_.target)&&(n||c(_.target))&&l(_.target)}function h(_){s(_.target)&&(_.target.classList.contains("focus-visible")||_.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(_.target))}function v(_){document.visibilityState==="hidden"&&(o&&(n=!0),x())}function x(){document.addEventListener("mousemove",E),document.addEventListener("mousedown",E),document.addEventListener("mouseup",E),document.addEventListener("pointermove",E),document.addEventListener("pointerdown",E),document.addEventListener("pointerup",E),document.addEventListener("touchmove",E),document.addEventListener("touchstart",E),document.addEventListener("touchend",E)}function O(){document.removeEventListener("mousemove",E),document.removeEventListener("mousedown",E),document.removeEventListener("mouseup",E),document.removeEventListener("pointermove",E),document.removeEventListener("pointerdown",E),document.removeEventListener("pointerup",E),document.removeEventListener("touchmove",E),document.removeEventListener("touchstart",E),document.removeEventListener("touchend",E)}function E(_){_.target.nodeName&&_.target.nodeName.toLowerCase()==="html"||(n=!1,O())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",p,!0),document.addEventListener("pointerdown",p,!0),document.addEventListener("touchstart",p,!0),document.addEventListener("visibilitychange",v,!0),x(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!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 Wo=Bn((WE,Vs)=>{"use strict";var Hp=/["'&<>]/;Vs.exports=$p;function $p(e){var t=""+e,r=Hp.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i{(function(t,r){typeof Br=="object"&&typeof zo=="object"?zo.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Br=="object"?Br.ClipboardJS=r():t.ClipboardJS=r()})(Br,function(){return(function(){var e={686:(function(n,o,i){"use strict";i.d(o,{default:function(){return _r}});var a=i(279),s=i.n(a),c=i(370),l=i.n(c),u=i(817),f=i.n(u);function p(B){try{return document.execCommand(B)}catch($){return!1}}var d=function($){var C=f()($);return p("cut"),C},h=d;function v(B){var $=document.documentElement.getAttribute("dir")==="rtl",C=document.createElement("textarea");C.style.fontSize="12pt",C.style.border="0",C.style.padding="0",C.style.margin="0",C.style.position="absolute",C.style[$?"right":"left"]="-9999px";var V=window.pageYOffset||document.documentElement.scrollTop;return C.style.top="".concat(V,"px"),C.setAttribute("readonly",""),C.value=B,C}var x=function($,C){var V=v($);C.container.appendChild(V);var z=f()(V);return p("copy"),V.remove(),z},O=function($){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},V="";return typeof $=="string"?V=x($,C):$ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes($==null?void 0:$.type)?V=x($.value,C):(V=f()($),p("copy")),V},E=O;function _(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(C){return typeof C}:_=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},_(B)}var ge=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=$.action,V=C===void 0?"copy":C,z=$.container,Q=$.target,Ve=$.text;if(V!=="copy"&&V!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Q!==void 0)if(Q&&_(Q)==="object"&&Q.nodeType===1){if(V==="copy"&&Q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(V==="cut"&&(Q.hasAttribute("readonly")||Q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ve)return E(Ve,{container:z});if(Q)return V==="cut"?h(Q):E(Q,{container:z})},be=ge;function ye(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ye=function(C){return typeof C}:ye=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},ye(B)}function y(B,$){if(!(B instanceof $))throw new TypeError("Cannot call a class as a function")}function D(B,$){for(var C=0;C<$.length;C++){var V=$[C];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(B,V.key,V)}}function X(B,$,C){return $&&D(B.prototype,$),C&&D(B,C),B}function Z(B,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create($&&$.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),$&&se(B,$)}function se(B,$){return se=Object.setPrototypeOf||function(V,z){return V.__proto__=z,V},se(B,$)}function Ue(B){var $=pt();return function(){var V=ot(B),z;if($){var Q=ot(this).constructor;z=Reflect.construct(V,arguments,Q)}else z=V.apply(this,arguments);return Et(this,z)}}function Et(B,$){return $&&(ye($)==="object"||typeof $=="function")?$:We(B)}function We(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function pt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(B){return!1}}function ot(B){return ot=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},ot(B)}function Xt(B,$){var C="data-clipboard-".concat(B);if($.hasAttribute(C))return $.getAttribute(C)}var Rt=(function(B){Z(C,B);var $=Ue(C);function C(V,z){var Q;return y(this,C),Q=$.call(this),Q.resolveOptions(z),Q.listenClick(V),Q}return X(C,[{key:"resolveOptions",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof z.action=="function"?z.action:this.defaultAction,this.target=typeof z.target=="function"?z.target:this.defaultTarget,this.text=typeof z.text=="function"?z.text:this.defaultText,this.container=ye(z.container)==="object"?z.container:document.body}},{key:"listenClick",value:function(z){var Q=this;this.listener=l()(z,"click",function(Ve){return Q.onClick(Ve)})}},{key:"onClick",value:function(z){var Q=z.delegateTarget||z.currentTarget,Ve=this.action(Q)||"copy",Zt=be({action:Ve,container:this.container,target:this.target(Q),text:this.text(Q)});this.emit(Zt?"success":"error",{action:Ve,text:Zt,trigger:Q,clearSelection:function(){Q&&Q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return Xt("action",z)}},{key:"defaultTarget",value:function(z){var Q=Xt("target",z);if(Q)return document.querySelector(Q)}},{key:"defaultText",value:function(z){return Xt("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return E(z,Q)}},{key:"cut",value:function(z){return h(z)}},{key:"isSupported",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Q=typeof z=="string"?[z]:z,Ve=!!document.queryCommandSupported;return Q.forEach(function(Zt){Ve=Ve&&!!document.queryCommandSupported(Zt)}),Ve}}]),C})(s()),_r=Rt}),828:(function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,c){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(c))return s;s=s.parentNode}}n.exports=a}),438:(function(n,o,i){var a=i(828);function s(u,f,p,d,h){var v=l.apply(this,arguments);return u.addEventListener(p,v,h),{destroy:function(){u.removeEventListener(p,v,h)}}}function c(u,f,p,d,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof p=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return s(v,f,p,d,h)}))}function l(u,f,p,d){return function(h){h.delegateTarget=a(h.target,f),h.delegateTarget&&d.call(u,h)}}n.exports=c}),879:(function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}}),370:(function(n,o,i){var a=i(879),s=i(438);function c(p,d,h){if(!p&&!d&&!h)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(p))return l(p,d,h);if(a.nodeList(p))return u(p,d,h);if(a.string(p))return f(p,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function l(p,d,h){return p.addEventListener(d,h),{destroy:function(){p.removeEventListener(d,h)}}}function u(p,d,h){return Array.prototype.forEach.call(p,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(p,function(v){v.removeEventListener(d,h)})}}}function f(p,d,h){return s(document.body,p,d,h)}n.exports=c}),817:(function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var c=window.getSelection(),l=document.createRange();l.selectNodeContents(i),c.removeAllRanges(),c.addRange(l),a=c.toString()}return a}n.exports=o}),279:(function(n){function o(){}o.prototype={on:function(i,a,s){var c=this.e||(this.e={});return(c[i]||(c[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var c=this;function l(){c.off(i,l),a.apply(s,arguments)}return l._=a,this.on(i,l,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),c=0,l=s.length;for(c;c0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function te(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function ie(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||c(d,v)})},h&&(o[d]=h(o[d])))}function c(d,h){try{l(n[d](h))}catch(v){p(i[0][3],v)}}function l(d){d.value instanceof jt?Promise.resolve(d.value.v).then(u,f):p(i[0][2],d)}function u(d){c("next",d)}function f(d){c("throw",d)}function p(d,h){d(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function pi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Ie=="function"?Ie(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,c){a=e[i](a),o(s,c,a.done,a.value)})}}function o(i,a,s,c){Promise.resolve(c).then(function(l){i({value:l,done:s})},a)}}function F(e){return typeof e=="function"}function Qt(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Qr=Qt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: +"use strict";(()=>{var rl=Object.create;var qn=Object.defineProperty,nl=Object.defineProperties,ol=Object.getOwnPropertyDescriptor,il=Object.getOwnPropertyDescriptors,al=Object.getOwnPropertyNames,Xr=Object.getOwnPropertySymbols,sl=Object.getPrototypeOf,Kn=Object.prototype.hasOwnProperty,ai=Object.prototype.propertyIsEnumerable;var ii=(e,t,r)=>t in e?qn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M=(e,t)=>{for(var r in t||(t={}))Kn.call(t,r)&&ii(e,r,t[r]);if(Xr)for(var r of Xr(t))ai.call(t,r)&&ii(e,r,t[r]);return e},Ae=(e,t)=>nl(e,il(t));var wr=(e,t)=>{var r={};for(var n in e)Kn.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Xr)for(var n of Xr(e))t.indexOf(n)<0&&ai.call(e,n)&&(r[n]=e[n]);return r};var Bn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var cl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of al(t))!Kn.call(e,o)&&o!==r&&qn(e,o,{get:()=>t[o],enumerable:!(n=ol(t,o))||n.enumerable});return e};var Er=(e,t,r)=>(r=e!=null?rl(sl(e)):{},cl(t||!e||!e.__esModule?qn(r,"default",{value:e,enumerable:!0}):r,e));var Je=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});var ci=Bn((Gn,si)=>{(function(e,t){typeof Gn=="object"&&typeof si!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(Gn,(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 s(_){return!!(_&&_!==document&&_.nodeName!=="HTML"&&_.nodeName!=="BODY"&&"classList"in _&&"contains"in _.classList)}function l(_){var ge=_.type,be=_.tagName;return!!(be==="INPUT"&&a[ge]&&!_.readOnly||be==="TEXTAREA"&&!_.readOnly||_.isContentEditable)}function c(_){_.classList.contains("focus-visible")||(_.classList.add("focus-visible"),_.setAttribute("data-focus-visible-added",""))}function u(_){_.hasAttribute("data-focus-visible-added")&&(_.classList.remove("focus-visible"),_.removeAttribute("data-focus-visible-added"))}function f(_){_.metaKey||_.altKey||_.ctrlKey||(s(r.activeElement)&&c(r.activeElement),n=!0)}function p(_){n=!1}function d(_){s(_.target)&&(n||l(_.target))&&c(_.target)}function h(_){s(_.target)&&(_.target.classList.contains("focus-visible")||_.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(_.target))}function v(_){document.visibilityState==="hidden"&&(o&&(n=!0),x())}function x(){document.addEventListener("mousemove",E),document.addEventListener("mousedown",E),document.addEventListener("mouseup",E),document.addEventListener("pointermove",E),document.addEventListener("pointerdown",E),document.addEventListener("pointerup",E),document.addEventListener("touchmove",E),document.addEventListener("touchstart",E),document.addEventListener("touchend",E)}function O(){document.removeEventListener("mousemove",E),document.removeEventListener("mousedown",E),document.removeEventListener("mouseup",E),document.removeEventListener("pointermove",E),document.removeEventListener("pointerdown",E),document.removeEventListener("pointerup",E),document.removeEventListener("touchmove",E),document.removeEventListener("touchstart",E),document.removeEventListener("touchend",E)}function E(_){_.target.nodeName&&_.target.nodeName.toLowerCase()==="html"||(n=!1,O())}document.addEventListener("keydown",f,!0),document.addEventListener("mousedown",p,!0),document.addEventListener("pointerdown",p,!0),document.addEventListener("touchstart",p,!0),document.addEventListener("visibilitychange",v,!0),x(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!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 Wo=Bn((WE,Vs)=>{"use strict";var Hp=/["'&<>]/;Vs.exports=$p;function $p(e){var t=""+e,r=Hp.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i{(function(t,r){typeof Br=="object"&&typeof zo=="object"?zo.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Br=="object"?Br.ClipboardJS=r():t.ClipboardJS=r()})(Br,function(){return(function(){var e={686:(function(n,o,i){"use strict";i.d(o,{default:function(){return _r}});var a=i(279),s=i.n(a),l=i(370),c=i.n(l),u=i(817),f=i.n(u);function p(B){try{return document.execCommand(B)}catch($){return!1}}var d=function($){var H=f()($);return p("cut"),H},h=d;function v(B){var $=document.documentElement.getAttribute("dir")==="rtl",H=document.createElement("textarea");H.style.fontSize="12pt",H.style.border="0",H.style.padding="0",H.style.margin="0",H.style.position="absolute",H.style[$?"right":"left"]="-9999px";var V=window.pageYOffset||document.documentElement.scrollTop;return H.style.top="".concat(V,"px"),H.setAttribute("readonly",""),H.value=B,H}var x=function($,H){var V=v($);H.container.appendChild(V);var z=f()(V);return p("copy"),V.remove(),z},O=function($){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},V="";return typeof $=="string"?V=x($,H):$ instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes($==null?void 0:$.type)?V=x($.value,H):(V=f()($),p("copy")),V},E=O;function _(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(H){return typeof H}:_=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},_(B)}var ge=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=$.action,V=H===void 0?"copy":H,z=$.container,Q=$.target,Ve=$.text;if(V!=="copy"&&V!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Q!==void 0)if(Q&&_(Q)==="object"&&Q.nodeType===1){if(V==="copy"&&Q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(V==="cut"&&(Q.hasAttribute("readonly")||Q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Ve)return E(Ve,{container:z});if(Q)return V==="cut"?h(Q):E(Q,{container:z})},be=ge;function ye(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ye=function(H){return typeof H}:ye=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},ye(B)}function y(B,$){if(!(B instanceof $))throw new TypeError("Cannot call a class as a function")}function D(B,$){for(var H=0;H<$.length;H++){var V=$[H];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(B,V.key,V)}}function X(B,$,H){return $&&D(B.prototype,$),H&&D(B,H),B}function Z(B,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create($&&$.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),$&&se(B,$)}function se(B,$){return se=Object.setPrototypeOf||function(V,z){return V.__proto__=z,V},se(B,$)}function Ue(B){var $=pt();return function(){var V=ot(B),z;if($){var Q=ot(this).constructor;z=Reflect.construct(V,arguments,Q)}else z=V.apply(this,arguments);return Et(this,z)}}function Et(B,$){return $&&(ye($)==="object"||typeof $=="function")?$:We(B)}function We(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function pt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(B){return!1}}function ot(B){return ot=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},ot(B)}function Xt(B,$){var H="data-clipboard-".concat(B);if($.hasAttribute(H))return $.getAttribute(H)}var Rt=(function(B){Z(H,B);var $=Ue(H);function H(V,z){var Q;return y(this,H),Q=$.call(this),Q.resolveOptions(z),Q.listenClick(V),Q}return X(H,[{key:"resolveOptions",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof z.action=="function"?z.action:this.defaultAction,this.target=typeof z.target=="function"?z.target:this.defaultTarget,this.text=typeof z.text=="function"?z.text:this.defaultText,this.container=ye(z.container)==="object"?z.container:document.body}},{key:"listenClick",value:function(z){var Q=this;this.listener=c()(z,"click",function(Ve){return Q.onClick(Ve)})}},{key:"onClick",value:function(z){var Q=z.delegateTarget||z.currentTarget,Ve=this.action(Q)||"copy",Zt=be({action:Ve,container:this.container,target:this.target(Q),text:this.text(Q)});this.emit(Zt?"success":"error",{action:Ve,text:Zt,trigger:Q,clearSelection:function(){Q&&Q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(z){return Xt("action",z)}},{key:"defaultTarget",value:function(z){var Q=Xt("target",z);if(Q)return document.querySelector(Q)}},{key:"defaultText",value:function(z){return Xt("text",z)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(z){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return E(z,Q)}},{key:"cut",value:function(z){return h(z)}},{key:"isSupported",value:function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Q=typeof z=="string"?[z]:z,Ve=!!document.queryCommandSupported;return Q.forEach(function(Zt){Ve=Ve&&!!document.queryCommandSupported(Zt)}),Ve}}]),H})(s()),_r=Rt}),828:(function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,l){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(l))return s;s=s.parentNode}}n.exports=a}),438:(function(n,o,i){var a=i(828);function s(u,f,p,d,h){var v=c.apply(this,arguments);return u.addEventListener(p,v,h),{destroy:function(){u.removeEventListener(p,v,h)}}}function l(u,f,p,d,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof p=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return s(v,f,p,d,h)}))}function c(u,f,p,d){return function(h){h.delegateTarget=a(h.target,f),h.delegateTarget&&d.call(u,h)}}n.exports=l}),879:(function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}}),370:(function(n,o,i){var a=i(879),s=i(438);function l(p,d,h){if(!p&&!d&&!h)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(p))return c(p,d,h);if(a.nodeList(p))return u(p,d,h);if(a.string(p))return f(p,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(p,d,h){return p.addEventListener(d,h),{destroy:function(){p.removeEventListener(d,h)}}}function u(p,d,h){return Array.prototype.forEach.call(p,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(p,function(v){v.removeEventListener(d,h)})}}}function f(p,d,h){return s(document.body,p,d,h)}n.exports=l}),817:(function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var l=window.getSelection(),c=document.createRange();c.selectNodeContents(i),l.removeAllRanges(),l.addRange(c),a=l.toString()}return a}n.exports=o}),279:(function(n){function o(){}o.prototype={on:function(i,a,s){var l=this.e||(this.e={});return(l[i]||(l[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var l=this;function c(){l.off(i,c),a.apply(s,arguments)}return c._=a,this.on(i,c,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),l=0,c=s.length;for(l;l0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function te(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function ie(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||l(d,v)})},h&&(o[d]=h(o[d])))}function l(d,h){try{c(n[d](h))}catch(v){p(i[0][3],v)}}function c(d){d.value instanceof jt?Promise.resolve(d.value.v).then(u,f):p(i[0][2],d)}function u(d){l("next",d)}function f(d){l("throw",d)}function p(d,h){d(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function pi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Ie=="function"?Ie(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,l){a=e[i](a),o(s,l,a.done,a.value)})}}function o(i,a,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},a)}}function F(e){return typeof e=="function"}function Qt(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Qr=Qt(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: `+r.map(function(n,o){return o+1+") "+n.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=r}});function ft(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var it=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Ie(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){t={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(F(u))try{u()}catch(v){i=v instanceof Qr?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=Ie(f),d=p.next();!d.done;d=p.next()){var h=d.value;try{fi(h)}catch(v){i=i!=null?i:[],v instanceof Qr?i=ie(ie([],te(i)),te(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new Qr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)fi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==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)&&ft(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ft(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Jn=it.EMPTY;function en(e){return e instanceof it||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function fi(e){F(e)?e():e.unsubscribe()}var tt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var er={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Jn:(this.currentObservers=null,s.push(r),new it(function(){n.currentObservers=null,ft(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,n){return new xi(r,n)},t})(j);var xi=(function(e){pe(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Jn},t})(I);var ro=(function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(I);var Or={now:function(){return(Or.delegate||Date).now()},delegate:void 0};var Lr=(function(e){pe(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Or);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})(nr);var Ti=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(or);var io=new Ti(Ei);var Si=(function(e){pe(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=dt.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&n===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(dt.cancelAnimationFrame(n),r._scheduled=void 0)},t})(nr);var Oi=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t})(or);var Fe=new Oi(Si);var w=new j(function(e){return e.complete()});function nn(e){return e&&F(e.schedule)}function ao(e){return e[e.length-1]}function St(e){return F(ao(e))?e.pop():void 0}function Xe(e){return nn(ao(e))?e.pop():void 0}function on(e,t){return typeof ao(e)=="number"?e.pop():t}var ir=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function an(e){return F(e==null?void 0:e.then)}function sn(e){return F(e[rr])}function cn(e){return Symbol.asyncIterator&&F(e==null?void 0:e[Symbol.asyncIterator])}function ln(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function gl(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var un=gl();function pn(e){return F(e==null?void 0:e[un])}function fn(e){return ui(this,arguments,function(){var r,n,o,i;return Zr(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,jt(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,jt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,jt(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function mn(e){return F(e==null?void 0:e.getReader)}function q(e){if(e instanceof j)return e;if(e!=null){if(sn(e))return yl(e);if(ir(e))return _l(e);if(an(e))return xl(e);if(cn(e))return Li(e);if(pn(e))return wl(e);if(mn(e))return El(e)}throw ln(e)}function yl(e){return new j(function(t){var r=e[rr]();if(F(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _l(e){return new j(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?S(function(o,i){return e(o,i,n)}):ke,de(1),r?st(t):zi(function(){return new ar}))}}function fo(e){return e<=0?function(){return w}:L(function(t,r){var n=[];t.subscribe(T(r,function(o){n.push(o),e=2,!0))}function xe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new I}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,c=s===void 0?!0:s;return function(l){var u,f,p,d=0,h=!1,v=!1,x=function(){f==null||f.unsubscribe(),f=void 0},O=function(){x(),u=p=void 0,h=v=!1},E=function(){var _=u;O(),_==null||_.unsubscribe()};return L(function(_,ge){d++,!v&&!h&&x();var be=p=p!=null?p:r();ge.add(function(){d--,d===0&&!v&&!h&&(f=mo(E,c))}),be.subscribe(ge),!u&&d>0&&(u=new mt({next:function(ye){return be.next(ye)},error:function(ye){v=!0,x(),f=mo(O,o,ye),be.error(ye)},complete:function(){h=!0,x(),f=mo(O,a),be.complete()}}),q(_).subscribe(u))})(l)}}function mo(e,t){for(var r=[],n=2;ne.next(document)),e}function k(e,t=document){return Array.from(t.querySelectorAll(e))}function Y(e,t=document){let r=Se(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function Se(e,t=document){return t.querySelector(e)||void 0}function Lt(){var e,t,r,n;return(n=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?n:void 0}var Dl=R(b(document.body,"focusin"),b(document.body,"focusout")).pipe(Qe(1),G(void 0),m(()=>Lt()||document.body),ne(1));function cr(e){return Dl.pipe(m(t=>e.contains(t)),ae())}function zt(e,t){let{matches:r}=matchMedia("(hover)");return P(()=>(r?R(b(e,"mouseenter").pipe(m(()=>!0)),b(e,"mouseleave").pipe(m(()=>!1))):R(b(e,"touchstart").pipe(m(()=>!0)),b(e,"touchend").pipe(m(()=>!1)),b(e,"touchcancel").pipe(m(()=>!1)))).pipe(t?Mr(o=>qe(+!o*t)):ke,G(!0,e.matches(":hover"))))}function Gi(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Gi(e,r)}function A(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)Gi(n,o);return n}function Yi(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function ct(e){let t=A("script",{src:e});return P(()=>(document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>hn(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),W(()=>document.head.removeChild(t)),de(1))))}function Ji(e){let t=A("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>hn(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(m(()=>{}),de(1))}var Xi=new I,Wl=P(()=>typeof ResizeObserver=="undefined"?ct("https://unpkg.com/resize-observer-polyfill"):U(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>Xi.next(t)))),g(e=>R(Ze,U(e)).pipe(W(()=>e.disconnect()))),ne(1));function Ce(e){return{width:e.offsetWidth,height:e.offsetHeight}}function je(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Wl.pipe(H(r=>r.observe(t)),g(r=>Xi.pipe(S(n=>n.target===t),W(()=>r.unobserve(t)))),m(()=>Ce(e)),G(Ce(e)))}function Ir(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Zi(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Qi(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function kt(e){return{x:e.offsetLeft,y:e.offsetTop}}function ea(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function ta(e){return R(b(window,"load"),b(window,"resize")).pipe(rt(0,Fe),m(()=>kt(e)),G(kt(e)))}function xn(e){return{x:e.scrollLeft,y:e.scrollTop}}function qt(e){return R(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(rt(0,Fe),m(()=>xn(e)),G(xn(e)))}var wn=new WeakMap,Vl=P(()=>U(new IntersectionObserver(e=>{for(let t of e){let r=wn.get(t.target);if(r)for(let n of r)n.next(t)}},{threshold:0}))).pipe(g(e=>R(Ze,U(e)).pipe(W(()=>e.disconnect()))),ne(1));function Mt(e){return P(()=>{let t=new I,r=wn.get(e)||new Set;return r.add(t),wn.set(e,r),Vl.pipe(H(n=>{r.size===1&&n.observe(e)}),g(n=>t.pipe(W(()=>{r.delete(t),r.size===0&&(n.unobserve(e),wn.delete(e))}),m(({isIntersecting:o})=>o))))})}var zl=Object.create,Ha=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Kl=Object.getOwnPropertyNames,Bl=Object.getPrototypeOf,Gl=Object.prototype.hasOwnProperty,Yl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Kl(t))!Gl.call(e,o)&&o!==r&&Ha(e,o,{get:()=>t[o],enumerable:!(n=ql(t,o))||n.enumerable});return e},Xl=(e,t,r)=>(r=e!=null?zl(Bl(e)):{},Jl(t||!e||!e.__esModule?Ha(r,"default",{value:e,enumerable:!0}):r,e)),Zl=Yl((e,t)=>{var r="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,f=typeof self=="object"&&self&&self.Object===Object&&self,p=u||f||Function("return this")(),d=Object.prototype,h=d.toString,v=Math.max,x=Math.min,O=function(){return p.Date.now()};function E(y,D,X){var Z,se,Ue,Et,We,pt,ot=0,Xt=!1,Rt=!1,_r=!0;if(typeof y!="function")throw new TypeError(r);D=ye(D)||0,_(X)&&(Xt=!!X.leading,Rt="maxWait"in X,Ue=Rt?v(ye(X.maxWait)||0,D):Ue,_r="trailing"in X?!!X.trailing:_r);function B(Le){var Tt=Z,xr=se;return Z=se=void 0,ot=Le,Et=y.apply(xr,Tt),Et}function $(Le){return ot=Le,We=setTimeout(z,D),Xt?B(Le):Et}function C(Le){var Tt=Le-pt,xr=Le-ot,oi=D-Tt;return Rt?x(oi,Ue-xr):oi}function V(Le){var Tt=Le-pt,xr=Le-ot;return pt===void 0||Tt>=D||Tt<0||Rt&&xr>=Ue}function z(){var Le=O();if(V(Le))return Q(Le);We=setTimeout(z,C(Le))}function Q(Le){return We=void 0,_r&&Z?B(Le):(Z=se=void 0,Et)}function Ve(){We!==void 0&&clearTimeout(We),ot=0,Z=pt=se=We=void 0}function Zt(){return We===void 0?Et:Q(O())}function Jr(){var Le=O(),Tt=V(Le);if(Z=arguments,se=this,pt=Le,Tt){if(We===void 0)return $(pt);if(Rt)return We=setTimeout(z,D),B(pt)}return We===void 0&&(We=setTimeout(z,D)),Et}return Jr.cancel=Ve,Jr.flush=Zt,Jr}function _(y){var D=typeof y;return!!y&&(D=="object"||D=="function")}function ge(y){return!!y&&typeof y=="object"}function be(y){return typeof y=="symbol"||ge(y)&&h.call(y)==o}function ye(y){if(typeof y=="number")return y;if(be(y))return n;if(_(y)){var D=typeof y.valueOf=="function"?y.valueOf():y;y=_(D)?D+"":D}if(typeof y!="string")return y===0?y:+y;y=y.replace(i,"");var X=s.test(y);return X||c.test(y)?l(y.slice(2),X?2:8):a.test(y)?n:+y}t.exports=E}),In,K,$a,Pa,Ct,ra,Ia,Ra,ho,Sn,jr,ja,Oo,xo,wo,Ql,Mn={},An=[],eu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Wr=Array.isArray;function bt(e,t){for(var r in t)e[r]=t[r];return e}function Lo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function $t(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?In.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return On(e,a,n,o,null)}function On(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o!=null?o:++$a,__i:-1,__u:0};return o==null&&K.vnode!=null&&K.vnode(i),i}function De(e){return e.children}function ut(e,t){this.props=e,this.context=t}function ur(e,t){if(t==null)return e.__?ur(e.__,e.__i+1):null;for(var r;tt&&Ct.sort(Ra),e=Ct.shift(),t=Ct.length,tu(e)}finally{Ct.length=Cn.__r=0}}function Fa(e,t,r,n,o,i,a,s,c,l,u){var f,p,d,h,v,x,O,E=n&&n.__k||An,_=t.length;for(c=ru(r,t,E,c,_),f=0;f<_;f++)(d=r.__k[f])!=null&&(p=d.__i!=-1&&E[d.__i]||Mn,d.__i=f,x=ko(e,d,p,o,i,a,s,c,l,u),h=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&Mo(p.ref,null,d),u.push(d.ref,d.__c||h,d)),v==null&&h!=null&&(v=h),(O=!!(4&d.__u))||p.__k===d.__k?(c=Na(d,c,e,O),O&&p.__e&&(p.__e=null)):typeof d.type=="function"&&x!==void 0?c=x:h&&(c=h.nextSibling),d.__u&=-7);return r.__e=v,c}function ru(e,t,r,n,o){var i,a,s,c,l,u=r.length,f=u,p=0;for(e.__k=new Array(o),i=0;i0?a=e.__k[i]=On(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,c=i+p,a.__=e,a.__b=e.__b+1,s=null,(l=a.__i=nu(a,r,c,f))!=-1&&(f--,(s=r[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(o>u?p--:oc?p--:p++,a.__u|=4))):e.__k[i]=null;if(f)for(i=0;i(u?1:0)){for(o=r-1,i=r+1;o>=0||i=0?o--:i++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return a}return-1}function oa(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||eu.test(t)?r:r+"px"}function En(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||oa(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||oa(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ja,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r[jr]=n[jr]:(r[jr]=Oo,e.addEventListener(t,i?wo:xo,i)):e.removeEventListener(t,i?wo:xo,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r!=null?r:"";break e}catch(s){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function ia(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[Sn]==null)t[Sn]=Oo++;else if(t[Sn]0?e:Wr(e)?e.map(Va):e.constructor!==void 0?null:bt({},e)}function ou(e,t,r,n,o,i,a,s,c){var l,u,f,p,d,h,v,x=r.props||Mn,O=t.props,E=t.type;if(E=="svg"?o="http://www.w3.org/2000/svg":E=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l=r.__.length&&r.__.push({}),r.__[e]}function pr(e){return Nr=1,su(Ga,e)}function su(e,t,r){var n=Vr(Bt++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ga(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],l=n.t(c,s);c!==l&&(n.__N=[l,n.__[1]],n.__c.setState({}))}],n.__c=ve,!ve.__f)){var o=function(s,c,l){if(!n.__c.__H)return!0;var u=!1,f=n.__c.props!==s;if(n.__c.__H.__.some(function(d){if(d.__N){u=!0;var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(f=!0)}}),i){var p=i.call(this,s,c,l);return u?p||f:p}return!u||f};ve.__f=!0;var i=ve.shouldComponentUpdate,a=ve.componentWillUpdate;ve.componentWillUpdate=function(s,c,l){if(this.__e){var u=i;i=void 0,o(s,c,l),i=u}a&&a.call(this,s,c,l)},ve.shouldComponentUpdate=o}return n.__N||n.__}function Pt(e,t){var r=Vr(Bt++,3);!Ee.__s&&Ao(r.__H,t)&&(r.__=e,r.u=t,ve.__H.__h.push(r))}function cu(e,t){var r=Vr(Bt++,4);!Ee.__s&&Ao(r.__H,t)&&(r.__=e,r.u=t,ve.__h.push(r))}function gt(e){return Nr=5,mr(function(){return{current:e}},[])}function mr(e,t){var r=Vr(Bt++,7);return Ao(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function lu(e,t){return Nr=8,mr(function(){return e},t)}function Ka(){var e=Vr(Bt++,11);if(!e.__){for(var t=ve.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ma(){for(var e;e=qa.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Eo),t.__h.some(Ba),t.__h=[]}catch(r){t.__h=[],Ee.__e(r,e.__v)}}}Ee.__b=function(e){ve=null,sa&&sa(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fa&&fa(e,t)},Ee.__r=function(e){ca&&ca(e),Bt=0;var t=(ve=e.__c).__H;t&&(vo===ve?(t.__h=[],ve.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.length&&ma(),Bt=0)),vo=ve},Ee.diffed=function(e){la&&la(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qa.push(t)!==1&&aa===Ee.requestAnimationFrame||((aa=Ee.requestAnimationFrame)||uu)(ma)),t.__H.__.some(function(r){r.u&&(r.__H=r.u,r.u=void 0)})),vo=ve=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.some(Eo),r.__h=r.__h.filter(function(n){return!n.__||Ba(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Ee.__e(n,r.__v)}}),ua&&ua(e,t)},Ee.unmount=function(e){pa&&pa(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{Eo(n)}catch(o){t=o}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var da=typeof requestAnimationFrame=="function";function uu(e){var t,r=function(){clearTimeout(n),da&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);da&&(t=requestAnimationFrame(r))}function Eo(e){var t=ve,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ve=t}function Ba(e){var t=ve;e.__c=e.__(),ve=t}function Ao(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ga(e,t){return typeof t=="function"?t(e):t}function pu(e,t){for(var r in t)e[r]=t[r];return e}function ha(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function va(e,t){this.props=e,this.context=t}(va.prototype=new ut).isPureReactComponent=!0,va.prototype.shouldComponentUpdate=function(e,t){return ha(this.props,e)||ha(this.state,t)};var ba=K.__b;K.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ba&&ba(e)};var c0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,fu=K.__e;K.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k||[]),o.__c(e,t)}fu(e,t,r,n)};var ga=K.unmount;function Ya(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=pu({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ya(n,t,r)})),e}function Ja(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ja(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function bo(){this.__u=0,this.o=null,this.__b=null}function Xa(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Tn(){this.i=null,this.l=null}K.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ga&&ga(e)},(bo.prototype=new ut).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Xa(n.__v),i=!1,a=function(){i||n.__z||(i=!0,r.__R=null,o?o(c):c())};r.__R=a;var s=r.__P;r.__P=null;var c=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Ja(l,l.__c.__P,l.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.__P=s,u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},bo.prototype.componentWillUnmount=function(){this.o=[]},bo.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ya(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&$t(De,null,e.fallback);return o&&(o.__u&=-33),[$t(De,null,t.__a?null:e.children),o]};var ya=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]Object.freeze({get current(){return t.current}}),[])}var _u=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function xu(e,...t){var r;(r=e==null?void 0:e.addEventListener)==null||r.call(e,...t)}function wu(e,...t){var r;(r=e==null?void 0:e.removeEventListener)==null||r.call(e,...t)}var Eu=(e,t)=>Object.hasOwn(e,t),Tu=()=>!0,Su=()=>!1;function Ou(e=!1){let t=gt(e),r=lu(()=>t.current,[]);return Pt(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function Lu(e,...t){let r=Ou(),n=Qa(t[1]),o=mr(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);Pt(()=>{let i=ku(e)?e.current:e;if(!i)return;let a=t.slice(2);return xu(i,t[0],o,...a),()=>{wu(i,t[0],o,...a)}},[e,t[0]])}function ku(e){return e!==null&&typeof e=="object"&&Eu(e,"current")}var Mu=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e?Tu:Su,Au=_u?globalThis:null;function Cu(e,t,r=[],n={}){let{event:o="keydown",target:i=Au,eventOptions:a}=n,s=Qa(t),c=mr(()=>{let l=Mu(e);return function(u){l(u)&&s.current.call(this,u)}},r);Lu(i,o,c,a)}function es(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t1)Ht--;else{for(var e,t=!1;Ur!==void 0;){var r=Ur;for(Ur=void 0,To++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ns(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(To=0,Ht--,t)throw e}}function Ln(e){if(Ht>0)return e();Ht++;try{return e()}finally{Rn()}}var ce=void 0;function ts(e){var t=ce;ce=void 0;try{return e()}finally{ce=t}}var Ur=void 0,Ht=0,To=0,Hn=0;function rs(e){if(ce!==void 0){var t=e.n;if(t===void 0||t.t!==ce)return t={i:0,S:e,p:ce.s,n:void 0,t:ce,e:void 0,x:void 0,r:t},ce.s!==void 0&&(ce.s.n=t),ce.s=t,e.n=t,32&ce.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ce.s,t.n=void 0,ce.s.n=t,ce.s=t),t}}function He(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}He.prototype.brand=$u;He.prototype.h=function(){return!0};He.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:ts(function(){var n;(n=t.W)==null||n.call(t)}))};He.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&ts(function(){var o;(o=t.Z)==null||o.call(t)}))}};He.prototype.subscribe=function(e){var t=this;return Yt(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}},{name:"sub"})};He.prototype.valueOf=function(){return this.value};He.prototype.toString=function(){return this.value+""};He.prototype.toJSON=function(){return this.value};He.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(He.prototype,"value",{get:function(){var e=rs(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(To>100)throw new Error("Cycle detected");this.v=e,this.i++,Hn++,Ht++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Rn()}}}});function yt(e,t){return new He(e,t)}function ns(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function os(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function is(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Jt(e,t){He.call(this,void 0),this.x=e,this.s=void 0,this.g=Hn-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Jt.prototype=new He;Jt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Hn))return!0;if(this.g=Hn,this.f|=1,this.i>0&&!ns(this))return this.f&=-2,!0;var e=ce;try{os(this),ce=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ce=e,is(this),this.f&=-2,!0};Jt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}He.prototype.S.call(this,e)};Jt.prototype.U=function(e){if(this.t!==void 0&&(He.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Jt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Jt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=rs(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Ta(e,t){return new Jt(e,t)}function as(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Ht++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Co(e),n}finally{ce=r,Rn()}}}function Co(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,as(e)}function Pu(e){if(ce!==this)throw new Error("Out-of-order effect");is(this),ce=e,this.f&=-2,8&this.f&&Co(this),Rn()}function dr(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}dr.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};dr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,as(this),os(this),Ht++;var e=ce;return ce=this,Pu.bind(this,e)};dr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ur,Ur=this)};dr.prototype.d=function(){this.f|=8,1&this.f||Co(this)};dr.prototype.dispose=function(){this.d()};function Yt(e,t){var r=new dr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var ss,Ho,go,cs=[];Yt(function(){ss=this.N})();function hr(e,t){K[e]=t.bind(null,K[e]||function(){})}function $n(e){go&&go(),go=e&&e.S()}function ls(e){var t=this,r=e.data,n=Ru(r);n.value=r;var o=mr(function(){for(var s=t,c=t.__v;c=c.__;)if(c.__c){c.__c.__$f|=4;break}var l=Ta(function(){var d=n.value.value;return d===0?0:d===!0?"":d||""}),u=Ta(function(){return!Array.isArray(l.value)&&!Pa(l.value)}),f=Yt(function(){if(this.N=us,u.value){var d=l.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=d)}}),p=t.__$u.d;return t.__$u.d=function(){f(),p.call(this)},[u,l]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}ls.displayName="ReactiveTextNode";Object.defineProperties(He.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ls},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});hr("__b",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof He&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});hr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==De){$n();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Yt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),Ho=n,$n(r)}e(t)});hr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),$n(),Ho=void 0,e(t,r,n)});hr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),$n(),Ho=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var c in n){var l=i[c],u=n[c];l===void 0?(l=Iu(r,c,u,o),i[c]=l):l.o(u,o)}}}e(t)});function Iu(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=yt(r);return{o:function(a,s){i.value=a,n=s},d:Yt(function(){this.N=us;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}hr("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});hr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ut.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function Ru(e,t){return pr(function(){return yt(e,t)})[0]}var ju=function(e){queueMicrotask(function(){queueMicrotask(e)})};function Uu(){Ln(function(){for(var e;e=cs.shift();)ss.call(e)})}function us(){cs.push(this)===1&&(K.requestAnimationFrame||ju)(Uu)}var So=[0];for(let e=0;e<32;e++)So.push(So[e]|1<>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let r=0;r{var r;return(r=t.tags)==null?void 0:r.length})&&(matchMedia("(max-width: 768px)").matches||ms())}function fr(){Be.value=Ae(M({},Be.value),{hideSearch:!Be.value.hideSearch})}function ms(){Be.value=Ae(M({},Be.value),{hideFilters:!Be.value.hideFilters})}function ds(){return Be.value.selectedItem}function hs(e){Be.value=Ae(M({},Be.value),{selectedItem:Math.max(0,Math.min(e,lt.value.items.length-1))})}function yo(){lt.value=ps(),Be.value=Ae(M({},Be.peek()),{selectedItem:0})}function Du(){var e,t;return(t=(e=$o.value)==null?void 0:e.items)!=null?t:[]}function jn(){return typeof $e.value.input=="string"?$e.value.input:""}function Wu(e){$e.value=Ae(M({},$e.value),{page:void 0,input:fs(e,zr())})}function vs(){let e=lt.value.pagination.next;typeof e<"u"&&$e.value.page!==e&&($e.value=Ae(M({},$e.value),{page:e}))}function _o(e){return zr().includes(e)}function zr(){let e=$e.value.filter.input,t=[];if("type"in e&&e.type==="operator")for(let r of e.data.operands)"type"in r&&r.type==="value"&&typeof r.data.value=="string"&&t.push(r.data.value);return t}function Vu(e){let t=zr(),r=t.indexOf(e);r>-1?t.splice(r,1):t.push(e),$e.value=Ae(M({},$e.value),{page:void 0,input:fs(jn(),t),filter:Ae(M({},$e.value.filter),{input:{type:"operator",data:{operator:"and",operands:t.map(n=>({type:"value",data:{field:"tags",value:n}}))}}})})}function bs(){return lt.value.items}function zu(){return lt.value.pagination.total}function qu(){var e;for(let t of(e=lt.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function Dr(){return Be.value.hideSearch}function Ku(){return Be.value.hideFilters}function Bu(){var e;return(e=Pn.value.highlight)!=null?e:!1}function Gu(e){if(!Bu())return e;let t=e.indexOf("#"),r=t===-1?"":e.slice(t),n=t===-1?e:e.slice(0,t),o=n.indexOf("?"),i=o===-1?n:n.slice(0,o),a=new URLSearchParams(o===-1?"":n.slice(o+1));return a.set("h",jn()),`${i}?${a}${r}`}function Yu(e){Pn.value.navigate?Pn.value.navigate(e):window.location.href=e}var Be=yt({hideSearch:!0,hideFilters:!0,selectedItem:0}),Pn=yt({}),$o=yt(),Kt=yt(!1),Rr=yt(!1),$e=yt({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),lt=yt(ps());function Ju(e,t,r){for(let n=0;tr&&t(0,o,r,r=i);continue;case 62:e.charCodeAt(r+1)===47?t(2,--o,r,r=i+1):Ju(e,r,n)?t(3,o,r,r=i+1):t(1,o++,r,r=i+1)}i>r&&t(0,o,r,i)}function Zu(e,t=0,r=e.length){let n=++t;e:for(let l=0;n{let i=[],a=[],{onElement:s,onText:c=Qu}=typeof r=="function"?{onElement:r}:r,l=0,u=0;return e(t,(f,p,d,h)=>{if(f===0)i[l++]=c(t,d,h),a[u++]={value:null,depth:p};else if(f&1&&(a[u++]={value:Zu(t,d,h),depth:p}),f&2)for(let v=0;u>=0;v++){let{value:x,depth:O}=a[--u];if(O>p)continue;let E=i.slice(l-=v,l+v);i[l++]=s(x,E),u++;break}},n,o),i.slice(0,l)}}function tp(e){return e.replace(/[&<>]/g,t=>{switch(t.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function kn(e){return e.replace(/&(amp|[lg]t);/g,t=>{switch(t.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function rp(e,t){return{start:e.start+t,end:e.end+t,value:e.value}}function np(e,t,r){return e.slice(t,r)}function op(e){let{onHighlight:t,onText:r=np}=typeof e=="function"?{onHighlight:e}:e;return(n,o,i=0,a=n.length)=>{var l;let s=[],c=(l=o==null?void 0:o.ranges)!=null?l:[];for(let u=0,f=i;ua)break;let d=c[u].end;if(di&&s.push(r(n,i,p));let{value:h}=c[u];s.push(t(n,{start:p,end:i=d,value:h}))}return it!==null&&typeof t<"u"&&t!==!1&&!(typeof t=="string"&&t.trim().length===0))}function ys(e,t,r=0,n=e.length){let o=sp(e,t,r,n),i=[],a=[],s=()=>{a.length>0&&(i.push(N("mark",{children:a})),a=[])};return o.forEach((c,l)=>{if(c!==null)if(typeof c=="string"){let u=o[l+1];a.length>0&&/^\s+$/.test(c)&&u!=null&&typeof u!="string"?a.push(c):(s(),i.push(c))}else a.push(N("u",{className:Gt({[ip.fuzzy]:c.fuzzy}),children:c.text})),c.suffix.length>0&&(s(),i.push(c.suffix))}),s(),i}function _s(e,t){let r=gs(e,{onElement(n,o){return n.tag==="a"?N(De,{children:o}):$t(n.tag,n.attrs,...o)},onText(n,o,i){return ys(n,t==null?void 0:t.value.highlight,o,i)}});return N(De,{children:r})}function pp(e,t){var n;let r=[];for(let o=0,i=0;od.start=s||c.push(Ae(M({},d),{start:Math.max(d.start,a),end:Math.min(d.end,s)}));let l=gs(e,{onElement(d,h){var x;let v=up(h);if(v.length!==0)return lp.has(d.tag)?$t(d.tag,(x=d.attrs)!=null?x:{},...v):d.tag==="li"?N(De,{children:["\u2013 ",v," "]}):cp.has(d.tag)?N(De,{children:[" ",v," "]}):N(De,{children:v})},onText(d,h,v){let x=Math.max(h,a),O=Math.min(v,s);if(!(x>=O))return ys(d,{ranges:c},x,O)}});return N(De,{children:[a>0&&"...",l]})}var lr;function xs(e,t={highlight:!0}){lr==null||lr(),Pn.value=t;let r=Yt(()=>{let i=$o.value;if(Ln(()=>{Kt.value=!1,Rr.value=!1,$e.value=Ae(M({},$e.peek()),{page:void 0}),yo()}),!i)return;let a;try{a=new Worker(e)}catch(f){Rr.value=!0;return}let s=!0,c=()=>{},l=()=>{s&&(s=!1,c(),a.onmessage=null,a.onerror=null,a.onmessageerror=null,a.terminate())},u=()=>{l(),Ln(()=>{Kt.value=!1,Rr.value=!0,yo()})};a.onmessage=f=>{if(!s)return;let p=f.data;switch(p.type){case 1:Kt.value=!0;break;case 3:if(!Kt.peek())return;typeof p.data.pagination.prev<"u"?lt.value=Ae(M({},lt.value),{pagination:p.data.pagination,items:[...lt.value.items,...p.data.items]}):(lt.value=p.data,hs(0));break;case 4:u();break}},a.onerror=f=>{f.preventDefault(),u()},a.onmessageerror=u,c=Yt(()=>{if(Kt.value)try{a.postMessage({type:2,data:$e.value})}catch(f){u()}});try{a.postMessage({type:0,data:i})}catch(f){u()}return l}),n=!1,o=()=>{n||(n=!0,r(),Ln(()=>{Kt.value=!1,Rr.value=!1,yo()}),lr===o&&(lr=void 0))};return lr=o,o}var Oa={container:"l",hidden:"m"};function mp(e){return N("div",{class:Gt(Oa.container,{[Oa.hidden]:e.hidden}),onClick:()=>fr()})}var La={container:"a",disabled:"c"};function ka(e){return N("button",Ae(M({},e),{type:"button",disabled:e.disabled||!e.onClick,class:Gt(La.container,e.class,{[La.disabled]:e.disabled||!e.onClick}),children:e.children}))}var Ma=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Aa=e=>{let t=dp(e);return t.charAt(0).toUpperCase()+t.slice(1)},hp=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),vp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},bp=c=>{var l=c,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,children:o,iconNode:i,class:a=""}=l,s=wr(l,["color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","class"]);return $t("svg",M(Ae(M({},vp),{width:String(t),height:t,stroke:e,"stroke-width":n?Number(r)*24/Number(t):r,class:["lucide",a].join(" ")}),s),[...i.map(([u,f])=>$t(u,f)),...Fr(o)])},ws=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=wr(s,["class","children"]);return $t(bp,Ae(M({},i),{iconNode:t,class:hp(`lucide-${Ma(Aa(e))}`,`lucide-${Ma(e)}`,n)}),o)};return r.displayName=Aa(e),r},gp=ws("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),yp=ws("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),l0=Xl(Zl(),1);function _p({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:o=!1,onChange:i}={}){var a;let[s,c]=pr(null),[l,u]=pr(()=>({isIntersecting:o,entry:void 0})),f=gt();f.current=i;let p=((a=l.entry)==null?void 0:a.isIntersecting)&&n;Pt(()=>{if(!s||!("IntersectionObserver"in window)||p)return;let v,x=new IntersectionObserver(O=>{let E=Array.isArray(x.thresholds)?x.thresholds:[x.thresholds];O.forEach(_=>{let ge=_.isIntersecting&&E.some(be=>_.intersectionRatio>=be);u({isIntersecting:ge,entry:_}),f.current&&f.current(ge,_),ge&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return x.observe(s),()=>{x.disconnect()}},[s,JSON.stringify(e),t,r,p,n]);let d=gt(null);Pt(()=>{var v;!s&&(v=l.entry)!=null&&v.target&&!n&&!p&&d.current!==l.entry.target&&(d.current=l.entry.target,u({isIntersecting:o,entry:void 0}))},[s,l.entry,n,p,o]);let h=[c,!!l.isIntersecting,l.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var ht={container:"e",hidden:"d",content:"v",pop:"g",badge:"y",sidebar:"t",controls:"w",results:"k",loadmore:"z"};function xp(e){let{isIntersecting:t,ref:r}=_p({threshold:0}),n=Ka(),o=`${n}-results`,i=`${n}-filters`,a=Ku();Pt(()=>{t&&vs()},[t]);let s=gt(null);Pt(()=>{s.current&&typeof $e.value.page>"u"&&s.current.scrollTo({top:0})},[$e.value]);let c=zr();return N("div",{class:Gt(ht.container,{[ht.hidden]:e.hidden}),children:[N("div",{class:ht.content,children:[N("div",{class:ht.controls,children:[N(ka,{onClick:fr,"aria-label":"Close search",children:N(yp,{"aria-hidden":"true"})}),N(Ep,{resultsId:o}),N(ka,{onClick:ms,"aria-label":"Filters","aria-controls":i,"aria-expanded":!a,children:[N(gp,{"aria-hidden":"true"}),c.length>0&&N("span",{class:ht.badge,"aria-hidden":"true",children:c.length})]})]}),N("div",{class:ht.results,ref:s,tabIndex:-1,children:[N(Tp,{id:o}),N("div",{class:ht.loadmore,ref:r})]})]}),N("div",{id:i,inert:a,"aria-hidden":a,class:Gt(ht.sidebar,{[ht.hidden]:a}),children:N(wp,{})})]})}var vt={container:"j",list:"F",hint:"I",heading:"R",title:"X",item:"i",active:"b",value:"q",count:"A"};function wp(){var a,s;let e=Ka(),t=gt(new Map),[r,n]=pr(),o=[...qu()].sort((c,l)=>l.node.count-c.node.count),i=(s=(a=o.find(({node:c})=>c.value===r))!=null?a:o.find(({node:c})=>_o(c.value)))!=null?s:o[0];return N("div",{class:vt.container,children:[N("h3",{class:vt.heading,children:"Filters"}),N("h4",{id:`${e}-title`,class:vt.title,children:"Tags"}),N("span",{id:`${e}-hint`,class:vt.hint,children:"Use Up and Down arrow keys to move between tags. Press Space or Enter to toggle a tag."}),N("ol",{class:vt.list,role:"toolbar","aria-orientation":"vertical","aria-labelledby":`${e}-title`,"aria-describedby":`${e}-hint`,children:o.map((c,l)=>N("li",{role:"presentation",children:N("button",{type:"button",ref:u=>{u?t.current.set(c.node.value,u):t.current.delete(c.node.value)},tabIndex:c===i?0:-1,class:Gt(vt.item,{[vt.active]:_o(c.node.value)}),"aria-pressed":_o(c.node.value),onFocus:()=>n(c.node.value),onKeyDown:u=>{var p;if(u.altKey||u.ctrlKey||u.metaKey||u.isComposing)return;let f=l;switch(u.key){case"ArrowDown":f=Math.min(l+1,o.length-1);break;case"ArrowUp":f=Math.max(l-1,0);break;case"Home":f=0;break;case"End":f=o.length-1;break;default:return}u.preventDefault(),(p=t.current.get(o[f].node.value))==null||p.focus()},onClick:()=>Vu(c.node.value),children:[N("span",{class:vt.value,children:c.node.value}),N("span",{class:vt.count,children:c.node.count})]})},c.node.value))})]})}var Ca={container:"s"};function Ep(e){let t=bs(),r=ds(),n=!Dr()&&t.length>0,o=n&&t[r]?`${e.resultsId}-${t[r].id}`:void 0;return N("div",{class:Ca.container,children:N("input",{autoFocus:!0,"aria-label":"Search","aria-autocomplete":"list","aria-controls":e.resultsId,"aria-expanded":n,"aria-activedescendant":o,type:"text",class:Ca.content,value:kn(jn()),onInput:i=>Wu(tp(i.currentTarget.value)),onKeyDown:i=>{var a;i.isComposing||i.keyCode===229||i.altKey||i.ctrlKey||i.metaKey||!t.length||(i.key==="ArrowDown"||i.key==="ArrowUp"?(i.preventDefault(),i.key==="ArrowDown"&&r===t.length-1&&vs(),hs(r+(i.key==="ArrowDown"?1:-1))):i.key==="Enter"&&o&&(i.preventDefault(),(a=i.currentTarget.getRootNode().getElementById(o))==null||a.click()))},autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox",dir:"auto"})})}var At={container:"h",heading:"f",item:"o",active:"B",wrapper:"C",title:"x",path:"n",excerpt:"p"};function Tp(e){let t=Du(),r=bs(),n=ds(),o=gt([]);Pt(()=>{let s=o.current[n];s&&s.scrollIntoView({block:"nearest"})},[n,r]);let i=zu(),a="";return Rr.value?a="Search is unavailable. Reload the page to try again.":Kt.value?r.length>0?a=`${new Intl.NumberFormat("en-US").format(i)} ${i===1?"result":"results"}`:(jn().length>0||zr().length>0)&&(a="No results"):a="Loading search\u2026",N(De,{children:[N("div",{class:At.heading,role:"status","aria-live":"polite","aria-atomic":"true",children:a}),N("ol",{id:e.id,class:At.container,role:"listbox","aria-label":"Search results",children:r.map((s,c)=>{var h;let l=s.matches.find(({field:v})=>v==="text"),u=_s(t[s.id].title,s.matches.find(({field:v})=>v==="title")),f=pp((h=t[s.id].path)!=null?h:[],s.matches.find(({field:v})=>v==="path")),p=fp(t[s.id].text,l),d=Gu(t[s.id].location);return N("li",{role:"presentation",children:N("a",{id:`${e.id}-${s.id}`,role:"option",tabIndex:-1,"aria-selected":c===n,"aria-posinset":c+1,"aria-setsize":i,"aria-labelledby":`${e.id}-${s.id}-title`,"aria-describedby":f.length>0?`${e.id}-${s.id}-path`:void 0,ref:v=>{o.current[c]=v},href:d,onClick:v=>{fr(),!v.button&&!v.metaKey&&!v.ctrlKey&&!v.shiftKey&&!v.altKey&&(v.preventDefault(),Yu(d))},class:Gt(At.item,{[At.active]:c===n}),children:N("div",{class:At.wrapper,children:[N("h2",{id:`${e.id}-${s.id}-title`,class:At.title,children:u}),f.length>0&&N("menu",{id:`${e.id}-${s.id}-path`,class:At.path,children:f.map((v,x)=>N("li",{children:v},x))}),p&&N("div",{class:At.excerpt,children:p})]})})},s.id)})})]})}var Sp={container:"r"};function Op(){let e=Dr(),t=gt(null),r=gt(!1),[n,o]=pr("pointer"),[i,a]=pr(!1);return cu(()=>{let s=t.current;return e?(s.close(),r.current=!1):s.open||s.showModal(),()=>s.close()},[e]),Pt(()=>{let s=()=>{o("pointer"),a(!1)};return document.addEventListener("pointerdown",s,!0),()=>{document.removeEventListener("pointerdown",s,!0)}},[]),Cu(!0,s=>{["Tab","ArrowDown","ArrowUp","Home","End"].includes(s.key)&&o("keyboard"),!(s.defaultPrevented||s.isComposing||s.keyCode===229||r.current)&&((s.metaKey||s.ctrlKey)&&s.key==="k"?(s.preventDefault(),o("keyboard"),a(!1),fr()):(s.metaKey||s.ctrlKey)&&s.key==="j"&&document.body.classList.toggle("dark"))}),N("dialog",{ref:t,class:Sp.container,"aria-label":"Search","aria-modal":"true","data-input-modality":n,"data-tab-navigation":i,inert:e,"aria-hidden":e,onCompositionStart:()=>{r.current=!0},onCompositionEnd:()=>{r.current=!1},onKeyDownCapture:s=>{if(r.current||s.isComposing||s.keyCode===229){s.stopPropagation(),s.key==="Escape"&&s.preventDefault();return}if(s.key!=="Tab")return;a(!0),o("keyboard");let c=s.currentTarget,l=Array.from(c.querySelectorAll("button, input, [href], [tabindex]")).filter(d=>d.tabIndex>=0&&!d.closest("[inert]")&&!d.matches(":disabled")&&d.getClientRects().length>0),u=l[0],f=l[l.length-1],p=c.getRootNode();s.shiftKey&&p.activeElement===u?(s.preventDefault(),f==null||f.focus()):!s.shiftKey&&p.activeElement===f&&(s.preventDefault(),u==null||u.focus())},onCancel:s=>{s.preventDefault(),!r.current&&!Dr()&&fr()},children:[N(mp,{hidden:e}),N(xp,{hidden:e})]})}function Es(e,t){Nu(e),au(N(Op,{}),t)}function Po(){fr()}function Lp(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function kp(){return R(b(window,"compositionstart").pipe(m(()=>!0)),b(window,"compositionend").pipe(m(()=>!1))).pipe(G(!1))}function Ts(){let e=b(window,"keydown").pipe(m(t=>({mode:Dr()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),S(({mode:t,type:r})=>{if(t==="global"){let n=Lt();if(typeof n!="undefined")return!Lp(n,r)}return!0}),xe());return kp().pipe(g(t=>t?w:e))}function fe(){return new URL(location.href)}function nt(e,t=!1){if(J("navigation.instant")&&!t){let r=A("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function Ss(){return new I}function Os(){return location.hash.slice(1)}function Ls(e){let t=A("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Io(e){return R(b(window,"hashchange"),e).pipe(m(Os),G(Os()),m(decodeURIComponent),ne(1),S(t=>t.length>0))}function ks(e){return Io(e).pipe(m(t=>Se(`[id="${t}"]`)),S(t=>typeof t!="undefined"))}function qr(e){let t=matchMedia(e);return bn(r=>t.addListener(()=>r(t.matches))).pipe(G(t.matches))}function Ms(){let e=matchMedia("print");return R(b(window,"beforeprint").pipe(m(()=>!0)),b(window,"afterprint").pipe(m(()=>!1))).pipe(G(e.matches))}function Ro(e,t){return e.pipe(g(r=>r?t():w))}function jo(e,t){return new j(r=>{let n=new XMLHttpRequest;return n.open("GET",`${e}`),n.responseType="blob",n.addEventListener("load",()=>{n.status>=200&&n.status<300?(r.next(n.response),r.complete()):r.error(new Error(n.statusText))}),n.addEventListener("error",()=>{r.error(new Error("Network error"))}),n.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(n.addEventListener("progress",o=>{var i;if(o.lengthComputable)t.progress$.next(o.loaded/o.total*100);else{let a=(i=n.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(o.loaded/+a*100)}}),t.progress$.next(5)),n.send(),()=>n.abort()})}function Ge(e,t){return jo(e,t).pipe(g(r=>r.text()),m(r=>JSON.parse(r)),ne(1))}function Un(e,t){let r=new DOMParser;return jo(e,t).pipe(g(n=>n.text()),m(n=>r.parseFromString(n,"text/html")),ne(1))}function As(e,t){let r=new DOMParser;return jo(e,t).pipe(g(n=>n.text()),m(n=>r.parseFromString(n,"text/xml")),ne(1))}var Uo={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function Fo(e,t){Uo[e].checked!==t&&Uo[e].click()}function Fn(e){let t=Uo[e];return b(t,"change").pipe(m(()=>t.checked),G(t.checked))}function Cs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Hs(){return R(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(m(Cs),G(Cs()))}function $s(){return{width:innerWidth,height:innerHeight}}function Ps(){return b(window,"resize",{passive:!0}).pipe(m($s),G($s()))}function Is(){return ee([Hs(),Ps()]).pipe(m(([e,t])=>({offset:e,size:t})),ne(1))}function Nn(e,{viewport$:t,header$:r}){let n=t.pipe(he("size")),o=ee([n,r]).pipe(m(()=>kt(e)));return ee([r,t,o]).pipe(m(([{height:i},{offset:a,size:s},{x:c,y:l}])=>({offset:{x:a.x-c,y:a.y-l+i},size:s})))}var Mp=Y("#__config"),vr=JSON.parse(Mp.textContent),No=new URL(vr.base,fe());No.pathname.endsWith("/")||(No.pathname+="/");vr.base=`${No}`;function Pe(){return vr}function J(e){return vr.features.includes(e)}function _t(e,t){return typeof t!="undefined"?vr.translations[e].replace("#",t.toString()):vr.translations[e]}function xt(e,t=document){return Y(`[data-md-component=${e}]`,t)}function Oe(e,t=document){return k(`[data-md-component=${e}]`,t)}function Ap(e){let t=Y(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(m(()=>Y(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function Rs(e){if(!J("announce.dismiss")||!e.childElementCount)return w;if(!e.hidden){let t=Y(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return P(()=>{let t=new I;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),Ap(e).pipe(H(r=>t.next(r)),W(()=>t.complete()),m(r=>M({ref:e},r)))})}function Cp(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function js(e,t){let r=new I;return r.subscribe(({hidden:n})=>{e.hidden=n}),Cp(e,t).pipe(H(n=>r.next(n)),W(()=>r.complete()),m(n=>M({ref:e},n)))}function Do(e,t){return t==="inline"?A("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"})):A("div",{class:"md-tooltip",id:e,role:"tooltip"},A("div",{class:"md-tooltip__inner md-typeset"}))}function Dn(...e){return A("div",{class:"md-tooltip2",role:"dialog"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function Us(...e){return A("div",{class:"md-tooltip2",role:"tooltip"},A("div",{class:"md-tooltip2__inner md-typeset"},e))}function Fs(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return A("aside",{class:"md-annotation",tabIndex:0},Do(t),A("a",{href:r,class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}else return A("aside",{class:"md-annotation",tabIndex:0},Do(t),A("span",{class:"md-annotation__index",tabIndex:-1},A("span",{"data-md-annotation-id":e})))}function Ns(e){return A("button",{class:"md-code__button",title:_t("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function Ds(){return A("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function Ws(){return A("nav",{class:"md-code__nav"})}var Pp=Er(Wo());function zs(e){return A("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>A("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Yi(r):r)))}function Vo(e){let t=`tabbed-control tabbed-control--${e}`;return A("div",{class:t,hidden:!0},A("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function qs(e){return A("div",{class:"md-typeset__scrollwrap"},A("div",{class:"md-typeset__table"},e))}function Ip(e){var n;let t=Pe(),r=new URL(`../${e.version}/`,t.base);return A("li",{class:"md-version__item"},A("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&A("span",{class:"md-version__alias"},e.aliases[0])))}function Ks(e,t){var n;let r=Pe();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),A("div",{class:"md-version"},A("button",{class:"md-version__current","aria-label":_t("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&A("span",{class:"md-version__alias"},t.aliases[0])),A("ul",{class:"md-version__list"},e.map(Ip)))}var Rp=0;function jp(e,t=250){let r=ee([cr(e),zt(e,t).pipe(we(1))]).pipe(m(([o,i])=>o||i),ae()),n=P(()=>Qi(e)).pipe(re(qt),Pr(1),Ke(r),S(([o,i])=>i),m(()=>ea(e)));return r.pipe(Cr(o=>o),g(()=>ee([r,n])),m(([o,i])=>({active:o,offset:i})),xe())}function Kr(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${Rp++}`;return P(()=>{let a=new I,s=new ro(!1);a.pipe(_e(),Te(!1)).subscribe(s);let c=s.pipe(we(1),Mr(u=>qe(+!u*250,io)),ae(),g(u=>u?n:w),H(u=>u.id=i),xe());ee([a.pipe(m(({active:u})=>u)),c.pipe(g(u=>zt(u,250)),G(!1))]).pipe(m(u=>u.some(f=>f))).subscribe(s);let l=s.pipe(S(u=>u),ue(c,o),m(([u,f,{size:p}])=>{let d=e.getBoundingClientRect(),h=d.width/2;if(f.role==="tooltip")return{x:h,y:8+d.height};if(d.y>=p.height/2){let{height:v}=Ce(f);return{x:h,y:-16-v}}else return{x:h,y:16+d.height}}));return ee([c,a,l]).subscribe(([u,{offset:f},p])=>{u.style.setProperty("--md-tooltip-host-x",`${f.x}px`),u.style.setProperty("--md-tooltip-host-y",`${f.y}px`),u.style.setProperty("--md-tooltip-x",`${p.x}px`),u.style.setProperty("--md-tooltip-y",`${p.y}px`),u.classList.toggle("md-tooltip2--top",p.y<0),u.classList.toggle("md-tooltip2--bottom",p.y>=0)}),s.pipe(S(u=>u),ue(c,(u,f)=>f),S(u=>u.role==="tooltip")).subscribe(u=>{let f=Ce(Y(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${f.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(ae(),ze(Fe),ue(c)).subscribe(([u,f])=>{f.classList.toggle("md-tooltip2--active",u)}),ee([s.pipe(S(u=>u)),c]).subscribe(([u,f])=>{f.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(S(u=>!u)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),jp(e,r).pipe(H(u=>a.next(u)),W(()=>a.complete()),m(u=>M({ref:e},u)))})}function et(e,{viewport$:t},r=document.body){return Kr(e,{content$:new j(n=>{let o=e.title,i=Us(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function Up(e,t){let r=P(()=>ee([ta(e),qt(t)])).pipe(m(([{x:n,y:o},i])=>{let{width:a,height:s}=Ce(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return cr(e).pipe(g(n=>r.pipe(m(o=>({active:n,offset:o})),de(+!n||1/0))))}function Bs(e,t){let[r,n]=Array.from(e.children),i=(r instanceof HTMLElement?[r,...k("[id]",r)].filter(a=>a.id):[]).map(a=>{let s=document.createElement("span");return s.id=a.id,s.hidden=!0,s});return P(()=>{let a=new I,s=a.pipe(_e(),Te(!0));return a.subscribe({next({offset:c}){e.style.setProperty("--md-tooltip-x",`${c.x}px`),e.style.setProperty("--md-tooltip-y",`${c.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),Mt(e).pipe(oe(s)).subscribe(c=>{e.toggleAttribute("data-md-visible",c)}),R(a.pipe(S(({active:c})=>c)),a.pipe(Qe(250),S(({active:c})=>!c))).subscribe({next({active:c}){if(c){let l=i.find(u=>u.parentNode);if(l){l.replaceWith(r);for(let u of i)u.remove()}else r.parentNode||e.prepend(r)}else i.length?r.replaceWith(...i):r.remove()},complete(){for(let c of i)c.remove();r.parentNode||e.prepend(r)}}),a.pipe(rt(16,Fe)).subscribe(({active:c})=>{r.classList.toggle("md-tooltip--active",c)}),a.pipe(Pr(125,Fe),S(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:c})=>c)).subscribe({next(c){c?e.style.setProperty("--md-tooltip-0",`${-c}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(n,"click").pipe(oe(s),S(c=>!(c.metaKey||c.ctrlKey))).subscribe(c=>{c.stopPropagation(),c.preventDefault()}),b(n,"mousedown").pipe(oe(s),ue(a)).subscribe(([c,{active:l}])=>{var u;if(c.button!==0||c.metaKey||c.ctrlKey)c.preventDefault();else if(l){c.preventDefault();let f=e.parentElement.closest(".md-annotation");f instanceof HTMLElement?f.focus():(u=Lt())==null||u.blur()}}),Up(e,t).pipe(H(c=>a.next(c)),W(()=>a.complete()),m(c=>M({ref:e},c)))})}function Fp(e){let t=Pe();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate){let n=e.closest("[class|=language]");if(n)for(let o of Array.from(n.classList)){if(!o.startsWith("language-"))continue;let[,i]=o.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return k(r.join(", "),e)}function Np(e){let t=[];for(let r of Fp(e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,c]=a;if(typeof c=="undefined"){let l=i.splitText(a.index);i=l.splitText(s.length),t.push(l)}else{i.textContent=s,t.push(i);break}}}}return t}function Gs(e,t){t.append(...Array.from(e.childNodes))}function Wn(e,t,{print$:r}){let n=t.closest("[id]"),o=n==null?void 0:n.id,i=new Map;for(let a of Np(t)){let[,s]=a.textContent.match(/\((\d+)\)/);Se(`:scope > li:nth-child(${s})`,e)&&(i.set(s,Fs(s,o)),a.replaceWith(i.get(s)))}return i.size===0?w:P(()=>{let a=new I,s=a.pipe(_e(),Te(!0)),c=[];for(let[l,u]of i)c.push([Y(".md-typeset",u),Y(`:scope > li:nth-child(${l})`,e)]);return r.pipe(oe(s)).subscribe(l=>{e.hidden=!l,e.classList.toggle("md-annotation-list",l);for(let[u,f]of c)l?Gs(u,f):Gs(f,u)}),R(...[...i].map(([,l])=>Bs(l,t))).pipe(W(()=>a.complete()),xe())})}function Ys(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ys(t)}}function Js(e,t){return P(()=>{let r=Ys(e);return typeof r!="undefined"?Wn(r,e,t):w})}var Zs=Er(qo());var Dp=0,Xs=R(b(window,"keydown").pipe(m(()=>!0)),R(b(window,"keyup"),b(window,"contextmenu")).pipe(m(()=>!1))).pipe(G(!1),ne(1));function Qs(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Qs(t)}}function Wp(e){return je(e).pipe(m(({width:t})=>({scrollable:Ir(e).width>t})),he("scrollable"))}function ec(e,{target$:t,print$:r}){let{matches:n}=matchMedia("(hover)"),o=P(()=>{let i=new I,a=i.pipe(fo(1));i.subscribe(({scrollable:h})=>{h&&n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let s=[],c=e.closest("pre"),l=c.closest("[id]"),u=l?l.id:Dp++;c.id=`__code_${u}`;let f=[],p=e.closest(".highlight");if(p instanceof HTMLElement){let h=Qs(p);if(typeof h!="undefined"&&(p.classList.contains("annotate")||J("content.code.annotate"))){let v=Wn(h,e,{print$:r});f.push(ee([je(p).pipe(m(({width:x,height:O})=>x&&O)),t.pipe(m(x=>p.contains(x)||h.contains(x)),G(!1),ae())]).pipe(oe(a),m(([x,O])=>x||O),ae(),g(x=>x?v:w)))}}let d=k(":scope > span[id]",e);if(d.length&&(e.classList.add("md-code__content"),e.closest(".select")||J("content.code.select")&&!e.closest(".no-select"))){let h=+d[0].id.split("-").pop(),v=Ds();s.push(v),J("content.tooltips")&&f.push(et(v,{viewport$}));let x=b(v,"click").pipe(Hr(y=>!y,!1),H(()=>v.blur()),xe());x.subscribe(y=>{v.classList.toggle("md-code__button--active",y)});let O=me(d).pipe(re(y=>zt(y).pipe(m(D=>[y,D]))));x.pipe(g(y=>y?O:w)).subscribe(([y,D])=>{let X=Se(".hll.select",y);if(X&&!D)X.replaceWith(...Array.from(X.childNodes));else if(!X&&D){let Z=document.createElement("span");Z.className="hll select",Z.append(...Array.from(y.childNodes).slice(1)),y.append(Z)}});let E=me(d).pipe(re(y=>b(y,"mousedown").pipe(H(D=>D.preventDefault()),m(()=>y)))),_=x.pipe(g(y=>y?E:w),ue(Xs),m(([y,D])=>{var Z;let X=d.indexOf(y)+h;if(D===!1)return[X,X];{let se=k(".hll",e).map(Ue=>d.indexOf(Ue.parentElement)+h);return(Z=window.getSelection())==null||Z.removeAllRanges(),[Math.min(X,...se),Math.max(X,...se)]}})),ge=Io(w).pipe(S(y=>y.startsWith(`__codelineno-${u}-`)));ge.subscribe(y=>{let[,,D]=y.split("-"),X=D.split(":").map(se=>+se-h+1);X.length===1&&X.push(X[0]);for(let se of k(".hll:not(.select)",e))se.replaceWith(...Array.from(se.childNodes));let Z=d.slice(X[0]-1,X[1]);for(let se of Z){let Ue=document.createElement("span");Ue.className="hll",Ue.append(...Array.from(se.childNodes).slice(1)),se.append(Ue)}}),ge.pipe(de(1),ze(Me)).subscribe(y=>{if(y.includes(":")){let D=document.getElementById(y.split(":")[0]);D&&setTimeout(()=>{let X=D,Z=-64;for(;X!==document.body;)Z+=X.offsetTop,X=X.offsetParent;window.scrollTo({top:Z})},1)}});let ye=me(k('a[href^="#__codelineno"]',p)).pipe(re(y=>b(y,"click").pipe(H(D=>D.preventDefault()),m(()=>y)))).pipe(oe(a),ue(Xs),m(([y,D])=>{let Z=+Y(`[id="${y.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(D===!1)return[Z,Z];{let se=k(".hll",e).map(Ue=>+Ue.parentElement.id.split("-").pop());return[Math.min(Z,...se),Math.max(Z,...se)]}}));R(_,ye).subscribe(y=>{let D=`#__codelineno-${u}-`;y[0]===y[1]?D+=y[0]:D+=`${y[0]}:${y[1]}`,history.replaceState({},"",D),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+D,oldURL:window.location.href}))})}if(Zs.default.isSupported()&&(e.closest(".copy")||J("content.code.copy")&&!e.closest(".no-copy"))){let h=Ns(c.id);s.push(h),J("content.tooltips")&&f.push(et(h,{viewport$}))}if(s.length){let h=Ws();h.append(...s),c.insertBefore(h,e)}return Wp(e).pipe(H(h=>i.next(h)),W(()=>i.complete()),m(h=>M({ref:e},h)),Wt(R(...f).pipe(oe(a))))});return J("content.lazy")?Mt(e).pipe(S(i=>i),de(1),g(()=>o)):o}function Vp(e,{print$:t}){let r=!0;return t.pipe(S(n=>n||!r),H(()=>r=e.open),m(n=>({action:n?"open":"close"})))}function tc(e,t){return P(()=>{let r=new I;return r.subscribe(({action:n})=>{e.toggleAttribute("open",n==="open")}),Vp(e,t).pipe(H(n=>r.next(n)),W(()=>r.complete()),m(n=>M({ref:e},n)))})}var Ko,Bo,Go={},rc=!1;function nc(e,t){return t()?ct(e).pipe(le(()=>U(void 0)),m(()=>{})):U(void 0)}function zp(e){if(!e)return[];if(e.startsWith("[")&&e.endsWith("]"))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}catch(t){}return e.split(/[,\s]+/).map(t=>t.trim()).filter(t=>t.length>0)}function qp(e){var i,a,s;let t=e.querySelector("[id$='--editor']"),r=e.querySelector("[id$='--run']"),n=e.querySelector("[id$='--clear']"),o=e.querySelector("[id$='--output']");if(!t||!r||!n||!o)throw new Error("Invalid Pyodide structure");return{root:e,editor:t,output:o,run:r,clear:n,source:(a=(i=t.textContent)==null?void 0:i.trimEnd())!=null?a:"",session:(s=e.dataset.session)!=null?s:"default",install:zp(e.dataset.install),minLines:typeof e.dataset.minlines=="undefined"?0:parseInt(e.dataset.minlines),maxLines:typeof e.dataset.maxlines=="undefined"?1/0:parseInt(e.dataset.maxlines)}}function Kp(e,t){return e in Go||(Go[e]=t.globals.get("dict")()),Go[e]}function Gr(e,t){e.textContent=t}function Yo(e){e.textContent=""}function Bp(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Gp(e,t,r,n){return Je(this,null,function*(){let o=[];e.setStdout({batched(i){o.push(i),Gr(r,`${o.join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function ft(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var it=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=Ie(a),l=s.next();!l.done;l=s.next()){var c=l.value;c.remove(this)}}catch(v){t={error:v}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(F(u))try{u()}catch(v){i=v instanceof Qr?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=Ie(f),d=p.next();!d.done;d=p.next()){var h=d.value;try{fi(h)}catch(v){i=i!=null?i:[],v instanceof Qr?i=ie(ie([],te(i)),te(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new Qr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)fi(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==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)&&ft(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ft(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})();var Jn=it.EMPTY;function en(e){return e instanceof it||e&&"closed"in e&&F(e.remove)&&F(e.add)&&F(e.unsubscribe)}function fi(e){F(e)?e():e.unsubscribe()}var tt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var er={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Jn:(this.currentObservers=null,s.push(r),new it(function(){n.currentObservers=null,ft(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,n){return new xi(r,n)},t})(j);var xi=(function(e){pe(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Jn},t})(I);var ro=(function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._value=r,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(I);var Or={now:function(){return(Or.delegate||Date).now()},delegate:void 0};var Lr=(function(e){pe(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Or);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,l=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+l)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),l=0;l0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})(nr);var Ti=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(or);var io=new Ti(Ei);var Si=(function(e){pe(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=dt.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&n===r._scheduled&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(dt.cancelAnimationFrame(n),r._scheduled=void 0)},t})(nr);var Oi=(function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n;r?n=r.id:(n=this._scheduled,this._scheduled=void 0);var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t})(or);var Fe=new Oi(Si);var w=new j(function(e){return e.complete()});function nn(e){return e&&F(e.schedule)}function ao(e){return e[e.length-1]}function St(e){return F(ao(e))?e.pop():void 0}function Xe(e){return nn(ao(e))?e.pop():void 0}function on(e,t){return typeof ao(e)=="number"?e.pop():t}var ir=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function an(e){return F(e==null?void 0:e.then)}function sn(e){return F(e[rr])}function cn(e){return Symbol.asyncIterator&&F(e==null?void 0:e[Symbol.asyncIterator])}function ln(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function gl(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var un=gl();function pn(e){return F(e==null?void 0:e[un])}function fn(e){return ui(this,arguments,function(){var r,n,o,i;return Zr(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,jt(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,jt(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,jt(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function mn(e){return F(e==null?void 0:e.getReader)}function q(e){if(e instanceof j)return e;if(e!=null){if(sn(e))return yl(e);if(ir(e))return _l(e);if(an(e))return xl(e);if(cn(e))return Li(e);if(pn(e))return wl(e);if(mn(e))return El(e)}throw ln(e)}function yl(e){return new j(function(t){var r=e[rr]();if(F(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _l(e){return new j(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?S(function(o,i){return e(o,i,n)}):ke,de(1),r?st(t):zi(function(){return new ar}))}}function fo(e){return e<=0?function(){return w}:L(function(t,r){var n=[];t.subscribe(T(r,function(o){n.push(o),e=2,!0))}function xe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new I}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,l=s===void 0?!0:s;return function(c){var u,f,p,d=0,h=!1,v=!1,x=function(){f==null||f.unsubscribe(),f=void 0},O=function(){x(),u=p=void 0,h=v=!1},E=function(){var _=u;O(),_==null||_.unsubscribe()};return L(function(_,ge){d++,!v&&!h&&x();var be=p=p!=null?p:r();ge.add(function(){d--,d===0&&!v&&!h&&(f=mo(E,l))}),be.subscribe(ge),!u&&d>0&&(u=new mt({next:function(ye){return be.next(ye)},error:function(ye){v=!0,x(),f=mo(O,o,ye),be.error(ye)},complete:function(){h=!0,x(),f=mo(O,a),be.complete()}}),q(_).subscribe(u))})(c)}}function mo(e,t){for(var r=[],n=2;ne.next(document)),e}function k(e,t=document){return Array.from(t.querySelectorAll(e))}function Y(e,t=document){let r=Se(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function Se(e,t=document){return t.querySelector(e)||void 0}function Lt(){var e,t,r,n;return(n=(r=(t=(e=document.activeElement)==null?void 0:e.shadowRoot)==null?void 0:t.activeElement)!=null?r:document.activeElement)!=null?n:void 0}var Dl=R(b(document.body,"focusin"),b(document.body,"focusout")).pipe(Qe(1),G(void 0),m(()=>Lt()||document.body),ne(1));function cr(e){return Dl.pipe(m(t=>e.contains(t)),ae())}function zt(e,t){let{matches:r}=matchMedia("(hover)");return P(()=>(r?R(b(e,"mouseenter").pipe(m(()=>!0)),b(e,"mouseleave").pipe(m(()=>!1))):R(b(e,"touchstart").pipe(m(()=>!0)),b(e,"touchend").pipe(m(()=>!1)),b(e,"touchcancel").pipe(m(()=>!1)))).pipe(t?Mr(o=>qe(+!o*t)):ke,G(!0,e.matches(":hover"))))}function Gi(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)Gi(e,r)}function C(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)Gi(n,o);return n}function Yi(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function ct(e){let t=C("script",{src:e});return P(()=>(document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>hn(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(m(()=>{}),W(()=>document.head.removeChild(t)),de(1))))}function Ji(e){let t=C("link",{rel:"stylesheet",href:e});return document.head.appendChild(t),R(b(t,"load"),b(t,"error").pipe(g(()=>hn(()=>new ReferenceError(`Invalid styles: ${e}`))))).pipe(m(()=>{}),de(1))}var Xi=new I,Wl=P(()=>typeof ResizeObserver=="undefined"?ct("https://unpkg.com/resize-observer-polyfill"):U(void 0)).pipe(m(()=>new ResizeObserver(e=>e.forEach(t=>Xi.next(t)))),g(e=>R(Ze,U(e)).pipe(W(()=>e.disconnect()))),ne(1));function Ce(e){return{width:e.offsetWidth,height:e.offsetHeight}}function je(e){let t=e;for(;t.clientWidth===0&&t.parentElement;)t=t.parentElement;return Wl.pipe(A(r=>r.observe(t)),g(r=>Xi.pipe(S(n=>n.target===t),W(()=>r.unobserve(t)))),m(()=>Ce(e)),G(Ce(e)))}function Ir(e){return{width:e.scrollWidth,height:e.scrollHeight}}function Zi(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}function Qi(e){let t=[],r=e.parentElement;for(;r;)(e.clientWidth>r.clientWidth||e.clientHeight>r.clientHeight)&&t.push(r),r=(e=r).parentElement;return t.length===0&&t.push(document.documentElement),t}function kt(e){return{x:e.offsetLeft,y:e.offsetTop}}function ea(e){let t=e.getBoundingClientRect();return{x:t.x+window.scrollX,y:t.y+window.scrollY}}function ta(e){return R(b(window,"load"),b(window,"resize")).pipe(rt(0,Fe),m(()=>kt(e)),G(kt(e)))}function xn(e){return{x:e.scrollLeft,y:e.scrollTop}}function qt(e){return R(b(e,"scroll"),b(window,"scroll"),b(window,"resize")).pipe(rt(0,Fe),m(()=>xn(e)),G(xn(e)))}var wn=new WeakMap,Vl=P(()=>U(new IntersectionObserver(e=>{for(let t of e){let r=wn.get(t.target);if(r)for(let n of r)n.next(t)}},{threshold:0}))).pipe(g(e=>R(Ze,U(e)).pipe(W(()=>e.disconnect()))),ne(1));function Mt(e){return P(()=>{let t=new I,r=wn.get(e)||new Set;return r.add(t),wn.set(e,r),Vl.pipe(A(n=>{r.size===1&&n.observe(e)}),g(n=>t.pipe(W(()=>{r.delete(t),r.size===0&&(n.unobserve(e),wn.delete(e))}),m(({isIntersecting:o})=>o))))})}var zl=Object.create,Ha=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Kl=Object.getOwnPropertyNames,Bl=Object.getPrototypeOf,Gl=Object.prototype.hasOwnProperty,Yl=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jl=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Kl(t))!Gl.call(e,o)&&o!==r&&Ha(e,o,{get:()=>t[o],enumerable:!(n=ql(t,o))||n.enumerable});return e},Xl=(e,t,r)=>(r=e!=null?zl(Bl(e)):{},Jl(t||!e||!e.__esModule?Ha(r,"default",{value:e,enumerable:!0}):r,e)),Zl=Yl((e,t)=>{var r="Expected a function",n=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u=typeof global=="object"&&global&&global.Object===Object&&global,f=typeof self=="object"&&self&&self.Object===Object&&self,p=u||f||Function("return this")(),d=Object.prototype,h=d.toString,v=Math.max,x=Math.min,O=function(){return p.Date.now()};function E(y,D,X){var Z,se,Ue,Et,We,pt,ot=0,Xt=!1,Rt=!1,_r=!0;if(typeof y!="function")throw new TypeError(r);D=ye(D)||0,_(X)&&(Xt=!!X.leading,Rt="maxWait"in X,Ue=Rt?v(ye(X.maxWait)||0,D):Ue,_r="trailing"in X?!!X.trailing:_r);function B(Le){var Tt=Z,xr=se;return Z=se=void 0,ot=Le,Et=y.apply(xr,Tt),Et}function $(Le){return ot=Le,We=setTimeout(z,D),Xt?B(Le):Et}function H(Le){var Tt=Le-pt,xr=Le-ot,oi=D-Tt;return Rt?x(oi,Ue-xr):oi}function V(Le){var Tt=Le-pt,xr=Le-ot;return pt===void 0||Tt>=D||Tt<0||Rt&&xr>=Ue}function z(){var Le=O();if(V(Le))return Q(Le);We=setTimeout(z,H(Le))}function Q(Le){return We=void 0,_r&&Z?B(Le):(Z=se=void 0,Et)}function Ve(){We!==void 0&&clearTimeout(We),ot=0,Z=pt=se=We=void 0}function Zt(){return We===void 0?Et:Q(O())}function Jr(){var Le=O(),Tt=V(Le);if(Z=arguments,se=this,pt=Le,Tt){if(We===void 0)return $(pt);if(Rt)return We=setTimeout(z,D),B(pt)}return We===void 0&&(We=setTimeout(z,D)),Et}return Jr.cancel=Ve,Jr.flush=Zt,Jr}function _(y){var D=typeof y;return!!y&&(D=="object"||D=="function")}function ge(y){return!!y&&typeof y=="object"}function be(y){return typeof y=="symbol"||ge(y)&&h.call(y)==o}function ye(y){if(typeof y=="number")return y;if(be(y))return n;if(_(y)){var D=typeof y.valueOf=="function"?y.valueOf():y;y=_(D)?D+"":D}if(typeof y!="string")return y===0?y:+y;y=y.replace(i,"");var X=s.test(y);return X||l.test(y)?c(y.slice(2),X?2:8):a.test(y)?n:+y}t.exports=E}),In,K,$a,Pa,Ct,ra,Ia,Ra,ho,Sn,jr,ja,Oo,xo,wo,Ql,Mn={},An=[],eu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Wr=Array.isArray;function bt(e,t){for(var r in t)e[r]=t[r];return e}function Lo(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function $t(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?In.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return On(e,a,n,o,null)}function On(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o!=null?o:++$a,__i:-1,__u:0};return o==null&&K.vnode!=null&&K.vnode(i),i}function De(e){return e.children}function ut(e,t){this.props=e,this.context=t}function ur(e,t){if(t==null)return e.__?ur(e.__,e.__i+1):null;for(var r;tt&&Ct.sort(Ra),e=Ct.shift(),t=Ct.length,tu(e)}finally{Ct.length=Cn.__r=0}}function Fa(e,t,r,n,o,i,a,s,l,c,u){var f,p,d,h,v,x,O,E=n&&n.__k||An,_=t.length;for(l=ru(r,t,E,l,_),f=0;f<_;f++)(d=r.__k[f])!=null&&(p=d.__i!=-1&&E[d.__i]||Mn,d.__i=f,x=ko(e,d,p,o,i,a,s,l,c,u),h=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&Mo(p.ref,null,d),u.push(d.ref,d.__c||h,d)),v==null&&h!=null&&(v=h),(O=!!(4&d.__u))||p.__k===d.__k?(l=Na(d,l,e,O),O&&p.__e&&(p.__e=null)):typeof d.type=="function"&&x!==void 0?l=x:h&&(l=h.nextSibling),d.__u&=-7);return r.__e=v,l}function ru(e,t,r,n,o){var i,a,s,l,c,u=r.length,f=u,p=0;for(e.__k=new Array(o),i=0;i0?a=e.__k[i]=On(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,l=i+p,a.__=e,a.__b=e.__b+1,s=null,(c=a.__i=nu(a,r,l,f))!=-1&&(f--,(s=r[c])&&(s.__u|=2)),s==null||s.__v==null?(c==-1&&(o>u?p--:ol?p--:p++,a.__u|=4))):e.__k[i]=null;if(f)for(i=0;i(u?1:0)){for(o=r-1,i=r+1;o>=0||i=0?o--:i++])!=null&&!(2&c.__u)&&s==c.key&&l==c.type)return a}return-1}function oa(e,t,r){t[0]=="-"?e.setProperty(t,r!=null?r:""):e[t]=r==null?"":typeof r!="number"||eu.test(t)?r:r+"px"}function En(e,t,r,n,o){var i,a;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||oa(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||oa(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(ja,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r[jr]=n[jr]:(r[jr]=Oo,e.addEventListener(t,i?wo:xo,i)):e.removeEventListener(t,i?wo:xo,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r!=null?r:"";break e}catch(s){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function ia(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t[Sn]==null)t[Sn]=Oo++;else if(t[Sn]0?e:Wr(e)?e.map(Va):e.constructor!==void 0?null:bt({},e)}function ou(e,t,r,n,o,i,a,s,l){var c,u,f,p,d,h,v,x=r.props||Mn,O=t.props,E=t.type;if(E=="svg"?o="http://www.w3.org/2000/svg":E=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c=r.__.length&&r.__.push({}),r.__[e]}function pr(e){return Nr=1,su(Ga,e)}function su(e,t,r){var n=Vr(Bt++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ga(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ve,!ve.__f)){var o=function(s,l,c){if(!n.__c.__H)return!0;var u=!1,f=n.__c.props!==s;if(n.__c.__H.__.some(function(d){if(d.__N){u=!0;var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(f=!0)}}),i){var p=i.call(this,s,l,c);return u?p||f:p}return!u||f};ve.__f=!0;var i=ve.shouldComponentUpdate,a=ve.componentWillUpdate;ve.componentWillUpdate=function(s,l,c){if(this.__e){var u=i;i=void 0,o(s,l,c),i=u}a&&a.call(this,s,l,c)},ve.shouldComponentUpdate=o}return n.__N||n.__}function Pt(e,t){var r=Vr(Bt++,3);!Ee.__s&&Ao(r.__H,t)&&(r.__=e,r.u=t,ve.__H.__h.push(r))}function cu(e,t){var r=Vr(Bt++,4);!Ee.__s&&Ao(r.__H,t)&&(r.__=e,r.u=t,ve.__h.push(r))}function gt(e){return Nr=5,mr(function(){return{current:e}},[])}function mr(e,t){var r=Vr(Bt++,7);return Ao(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function lu(e,t){return Nr=8,mr(function(){return e},t)}function Ka(){var e=Vr(Bt++,11);if(!e.__){for(var t=ve.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ma(){for(var e;e=qa.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Eo),t.__h.some(Ba),t.__h=[]}catch(r){t.__h=[],Ee.__e(r,e.__v)}}}Ee.__b=function(e){ve=null,sa&&sa(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fa&&fa(e,t)},Ee.__r=function(e){ca&&ca(e),Bt=0;var t=(ve=e.__c).__H;t&&(vo===ve?(t.__h=[],ve.__h=[],t.__.some(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.length&&ma(),Bt=0)),vo=ve},Ee.diffed=function(e){la&&la(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qa.push(t)!==1&&aa===Ee.requestAnimationFrame||((aa=Ee.requestAnimationFrame)||uu)(ma)),t.__H.__.some(function(r){r.u&&(r.__H=r.u,r.u=void 0)})),vo=ve=null},Ee.__c=function(e,t){t.some(function(r){try{r.__h.some(Eo),r.__h=r.__h.filter(function(n){return!n.__||Ba(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Ee.__e(n,r.__v)}}),ua&&ua(e,t)},Ee.unmount=function(e){pa&&pa(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(n){try{Eo(n)}catch(o){t=o}}),r.__H=void 0,t&&Ee.__e(t,r.__v))};var da=typeof requestAnimationFrame=="function";function uu(e){var t,r=function(){clearTimeout(n),da&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);da&&(t=requestAnimationFrame(r))}function Eo(e){var t=ve,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ve=t}function Ba(e){var t=ve;e.__c=e.__(),ve=t}function Ao(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ga(e,t){return typeof t=="function"?t(e):t}function pu(e,t){for(var r in t)e[r]=t[r];return e}function ha(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function va(e,t){this.props=e,this.context=t}(va.prototype=new ut).isPureReactComponent=!0,va.prototype.shouldComponentUpdate=function(e,t){return ha(this.props,e)||ha(this.state,t)};var ba=K.__b;K.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ba&&ba(e)};var c0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911,fu=K.__e;K.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k||[]),o.__c(e,t)}fu(e,t,r,n)};var ga=K.unmount;function Ya(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=pu({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ya(n,t,r)})),e}function Ja(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ja(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function bo(){this.__u=0,this.o=null,this.__b=null}function Xa(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Tn(){this.i=null,this.l=null}K.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ga&&ga(e)},(bo.prototype=new ut).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Xa(n.__v),i=!1,a=function(){i||n.__z||(i=!0,r.__R=null,o?o(l):l())};r.__R=a;var s=r.__P;r.__P=null;var l=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ja(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.__P=s,u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},bo.prototype.componentWillUnmount=function(){this.o=[]},bo.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ya(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&$t(De,null,e.fallback);return o&&(o.__u&=-33),[$t(De,null,t.__a?null:e.children),o]};var ya=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]Object.freeze({get current(){return t.current}}),[])}var _u=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function xu(e,...t){var r;(r=e==null?void 0:e.addEventListener)==null||r.call(e,...t)}function wu(e,...t){var r;(r=e==null?void 0:e.removeEventListener)==null||r.call(e,...t)}var Eu=(e,t)=>Object.hasOwn(e,t),Tu=()=>!0,Su=()=>!1;function Ou(e=!1){let t=gt(e),r=lu(()=>t.current,[]);return Pt(()=>(t.current=!0,()=>{t.current=!1}),[]),r}function Lu(e,...t){let r=Ou(),n=Qa(t[1]),o=mr(()=>function(...i){r()&&(typeof n.current=="function"?n.current.apply(this,i):typeof n.current.handleEvent=="function"&&n.current.handleEvent.apply(this,i))},[]);Pt(()=>{let i=ku(e)?e.current:e;if(!i)return;let a=t.slice(2);return xu(i,t[0],o,...a),()=>{wu(i,t[0],o,...a)}},[e,t[0]])}function ku(e){return e!==null&&typeof e=="object"&&Eu(e,"current")}var Mu=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e?Tu:Su,Au=_u?globalThis:null;function Cu(e,t,r=[],n={}){let{event:o="keydown",target:i=Au,eventOptions:a}=n,s=Qa(t),l=mr(()=>{let c=Mu(e);return function(u){c(u)&&s.current.call(this,u)}},r);Lu(i,o,l,a)}function es(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t1)Ht--;else{for(var e,t=!1;Ur!==void 0;){var r=Ur;for(Ur=void 0,To++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ns(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(To=0,Ht--,t)throw e}}function Ln(e){if(Ht>0)return e();Ht++;try{return e()}finally{Rn()}}var ce=void 0;function ts(e){var t=ce;ce=void 0;try{return e()}finally{ce=t}}var Ur=void 0,Ht=0,To=0,Hn=0;function rs(e){if(ce!==void 0){var t=e.n;if(t===void 0||t.t!==ce)return t={i:0,S:e,p:ce.s,n:void 0,t:ce,e:void 0,x:void 0,r:t},ce.s!==void 0&&(ce.s.n=t),ce.s=t,e.n=t,32&ce.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ce.s,t.n=void 0,ce.s.n=t,ce.s=t),t}}function He(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}He.prototype.brand=$u;He.prototype.h=function(){return!0};He.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:ts(function(){var n;(n=t.W)==null||n.call(t)}))};He.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,n=e.x;r!==void 0&&(r.x=n,e.e=void 0),n!==void 0&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,n===void 0&&ts(function(){var o;(o=t.Z)==null||o.call(t)}))}};He.prototype.subscribe=function(e){var t=this;return Yt(function(){var r=t.value,n=ce;ce=void 0;try{e(r)}finally{ce=n}},{name:"sub"})};He.prototype.valueOf=function(){return this.value};He.prototype.toString=function(){return this.value+""};He.prototype.toJSON=function(){return this.value};He.prototype.peek=function(){var e=ce;ce=void 0;try{return this.value}finally{ce=e}};Object.defineProperty(He.prototype,"value",{get:function(){var e=rs(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(To>100)throw new Error("Cycle detected");this.v=e,this.i++,Hn++,Ht++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Rn()}}}});function yt(e,t){return new He(e,t)}function ns(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function os(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function is(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Jt(e,t){He.call(this,void 0),this.x=e,this.s=void 0,this.g=Hn-1,this.f=4,this.W=t==null?void 0:t.watched,this.Z=t==null?void 0:t.unwatched,this.name=t==null?void 0:t.name}Jt.prototype=new He;Jt.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Hn))return!0;if(this.g=Hn,this.f|=1,this.i>0&&!ns(this))return this.f&=-2,!0;var e=ce;try{os(this),ce=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ce=e,is(this),this.f&=-2,!0};Jt.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}He.prototype.S.call(this,e)};Jt.prototype.U=function(e){if(this.t!==void 0&&(He.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Jt.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Jt.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=rs(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Ta(e,t){return new Jt(e,t)}function as(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Ht++;var r=ce;ce=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Co(e),n}finally{ce=r,Rn()}}}function Co(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,as(e)}function Pu(e){if(ce!==this)throw new Error("Out-of-order effect");is(this),ce=e,this.f&=-2,8&this.f&&Co(this),Rn()}function dr(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t==null?void 0:t.name}dr.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};dr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,as(this),os(this),Ht++;var e=ce;return ce=this,Pu.bind(this,e)};dr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ur,Ur=this)};dr.prototype.d=function(){this.f|=8,1&this.f||Co(this)};dr.prototype.dispose=function(){this.d()};function Yt(e,t){var r=new dr(e,t);try{r.c()}catch(o){throw r.d(),o}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}var ss,Ho,go,cs=[];Yt(function(){ss=this.N})();function hr(e,t){K[e]=t.bind(null,K[e]||function(){})}function $n(e){go&&go(),go=e&&e.S()}function ls(e){var t=this,r=e.data,n=Ru(r);n.value=r;var o=mr(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Ta(function(){var d=n.value.value;return d===0?0:d===!0?"":d||""}),u=Ta(function(){return!Array.isArray(c.value)&&!Pa(c.value)}),f=Yt(function(){if(this.N=us,u.value){var d=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=d)}}),p=t.__$u.d;return t.__$u.d=function(){f(),p.call(this)},[u,c]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}ls.displayName="ReactiveTextNode";Object.defineProperties(He.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:ls},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});hr("__b",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof He&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});hr("__r",function(e,t){if(typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.enterComponent(t),t.type!==De){$n();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=(function(o){var i;return Yt(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i})())),Ho=n,$n(r)}e(t)});hr("__e",function(e,t,r,n){typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),$n(),Ho=void 0,e(t,r,n)});hr("diffed",function(e,t){typeof t.type=="function"&&typeof window<"u"&&window.__PREACT_SIGNALS_DEVTOOLS__&&window.__PREACT_SIGNALS_DEVTOOLS__.exitComponent(),$n(),Ho=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var l in n){var c=i[l],u=n[l];c===void 0?(c=Iu(r,l,u,o),i[l]=c):c.o(u,o)}}}e(t)});function Iu(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=yt(r);return{o:function(a,s){i.value=a,n=s},d:Yt(function(){this.N=us;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}hr("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});hr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ut.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function Ru(e,t){return pr(function(){return yt(e,t)})[0]}var ju=function(e){queueMicrotask(function(){queueMicrotask(e)})};function Uu(){Ln(function(){for(var e;e=cs.shift();)ss.call(e)})}function us(){cs.push(this)===1&&(K.requestAnimationFrame||ju)(Uu)}var So=[0];for(let e=0;e<32;e++)So.push(So[e]|1<>>5]>>>e&1}set(e){this.data[e>>>5]|=1<<(e&31)}forEach(e){let t=this.size&31;for(let r=0;r{var r;return(r=t.tags)==null?void 0:r.length})&&(matchMedia("(max-width: 768px)").matches||ms())}function fr(){Be.value=Ae(M({},Be.value),{hideSearch:!Be.value.hideSearch})}function ms(){Be.value=Ae(M({},Be.value),{hideFilters:!Be.value.hideFilters})}function ds(){return Be.value.selectedItem}function hs(e){Be.value=Ae(M({},Be.value),{selectedItem:Math.max(0,Math.min(e,lt.value.items.length-1))})}function yo(){lt.value=ps(),Be.value=Ae(M({},Be.peek()),{selectedItem:0})}function Du(){var e,t;return(t=(e=$o.value)==null?void 0:e.items)!=null?t:[]}function jn(){return typeof $e.value.input=="string"?$e.value.input:""}function Wu(e){$e.value=Ae(M({},$e.value),{page:void 0,input:fs(e,zr())})}function vs(){let e=lt.value.pagination.next;typeof e<"u"&&$e.value.page!==e&&($e.value=Ae(M({},$e.value),{page:e}))}function _o(e){return zr().includes(e)}function zr(){let e=$e.value.filter.input,t=[];if("type"in e&&e.type==="operator")for(let r of e.data.operands)"type"in r&&r.type==="value"&&typeof r.data.value=="string"&&t.push(r.data.value);return t}function Vu(e){let t=zr(),r=t.indexOf(e);r>-1?t.splice(r,1):t.push(e),$e.value=Ae(M({},$e.value),{page:void 0,input:fs(jn(),t),filter:Ae(M({},$e.value.filter),{input:{type:"operator",data:{operator:"and",operands:t.map(n=>({type:"value",data:{field:"tags",value:n}}))}}})})}function bs(){return lt.value.items}function zu(){return lt.value.pagination.total}function qu(){var e;for(let t of(e=lt.value.aggregations)!=null?e:[])if(t.type==="term")return t.data.value;return[]}function Dr(){return Be.value.hideSearch}function Ku(){return Be.value.hideFilters}function Bu(){var e;return(e=Pn.value.highlight)!=null?e:!1}function Gu(e){if(!Bu())return e;let t=e.indexOf("#"),r=t===-1?"":e.slice(t),n=t===-1?e:e.slice(0,t),o=n.indexOf("?"),i=o===-1?n:n.slice(0,o),a=new URLSearchParams(o===-1?"":n.slice(o+1));return a.set("h",jn()),`${i}?${a}${r}`}function Yu(e){Pn.value.navigate?Pn.value.navigate(e):window.location.href=e}var Be=yt({hideSearch:!0,hideFilters:!0,selectedItem:0}),Pn=yt({}),$o=yt(),Kt=yt(!1),Rr=yt(!1),$e=yt({input:"",filter:{input:{type:"operator",data:{operator:"and",operands:[]}},aggregation:{input:[{type:"term",data:{field:"tags"}}]}}}),lt=yt(ps());function Ju(e,t,r){for(let n=0;tr&&t(0,o,r,r=i);continue;case 62:e.charCodeAt(r+1)===47?t(2,--o,r,r=i+1):Ju(e,r,n)?t(3,o,r,r=i+1):t(1,o++,r,r=i+1)}i>r&&t(0,o,r,i)}function Zu(e,t=0,r=e.length){let n=++t;e:for(let c=0;n{let i=[],a=[],{onElement:s,onText:l=Qu}=typeof r=="function"?{onElement:r}:r,c=0,u=0;return e(t,(f,p,d,h)=>{if(f===0)i[c++]=l(t,d,h),a[u++]={value:null,depth:p};else if(f&1&&(a[u++]={value:Zu(t,d,h),depth:p}),f&2)for(let v=0;u>=0;v++){let{value:x,depth:O}=a[--u];if(O>p)continue;let E=i.slice(c-=v,c+v);i[c++]=s(x,E),u++;break}},n,o),i.slice(0,c)}}function tp(e){return e.replace(/[&<>]/g,t=>{switch(t.charCodeAt(0)){case 38:return"&";case 60:return"<";case 62:return">"}})}function kn(e){return e.replace(/&(amp|[lg]t);/g,t=>{switch(t.charCodeAt(1)){case 97:return"&";case 108:return"<";case 103:return">"}})}function rp(e,t){return{start:e.start+t,end:e.end+t,value:e.value}}function np(e,t,r){return e.slice(t,r)}function op(e){let{onHighlight:t,onText:r=np}=typeof e=="function"?{onHighlight:e}:e;return(n,o,i=0,a=n.length)=>{var c;let s=[],l=(c=o==null?void 0:o.ranges)!=null?c:[];for(let u=0,f=i;ua)break;let d=l[u].end;if(di&&s.push(r(n,i,p));let{value:h}=l[u];s.push(t(n,{start:p,end:i=d,value:h}))}return it!==null&&typeof t<"u"&&t!==!1&&!(typeof t=="string"&&t.trim().length===0))}function ys(e,t,r=0,n=e.length){let o=sp(e,t,r,n),i=[],a=[],s=()=>{a.length>0&&(i.push(N("mark",{children:a})),a=[])};return o.forEach((l,c)=>{if(l!==null)if(typeof l=="string"){let u=o[c+1];a.length>0&&/^\s+$/.test(l)&&u!=null&&typeof u!="string"?a.push(l):(s(),i.push(l))}else a.push(N("u",{className:Gt({[ip.fuzzy]:l.fuzzy}),children:l.text})),l.suffix.length>0&&(s(),i.push(l.suffix))}),s(),i}function _s(e,t){let r=gs(e,{onElement(n,o){return n.tag==="a"?N(De,{children:o}):$t(n.tag,n.attrs,...o)},onText(n,o,i){return ys(n,t==null?void 0:t.value.highlight,o,i)}});return N(De,{children:r})}function pp(e,t){var n;let r=[];for(let o=0,i=0;od.start=s||l.push(Ae(M({},d),{start:Math.max(d.start,a),end:Math.min(d.end,s)}));let c=gs(e,{onElement(d,h){var x;let v=up(h);if(v.length!==0)return lp.has(d.tag)?$t(d.tag,(x=d.attrs)!=null?x:{},...v):d.tag==="li"?N(De,{children:["\u2013 ",v," "]}):cp.has(d.tag)?N(De,{children:[" ",v," "]}):N(De,{children:v})},onText(d,h,v){let x=Math.max(h,a),O=Math.min(v,s);if(!(x>=O))return ys(d,{ranges:l},x,O)}});return N(De,{children:[a>0&&"...",c]})}var lr;function xs(e,t={highlight:!0}){lr==null||lr(),Pn.value=t;let r=Yt(()=>{let i=$o.value;if(Ln(()=>{Kt.value=!1,Rr.value=!1,$e.value=Ae(M({},$e.peek()),{page:void 0}),yo()}),!i)return;let a;try{a=new Worker(e)}catch(f){Rr.value=!0;return}let s=!0,l=()=>{},c=()=>{s&&(s=!1,l(),a.onmessage=null,a.onerror=null,a.onmessageerror=null,a.terminate())},u=()=>{c(),Ln(()=>{Kt.value=!1,Rr.value=!0,yo()})};a.onmessage=f=>{if(!s)return;let p=f.data;switch(p.type){case 1:Kt.value=!0;break;case 3:if(!Kt.peek())return;typeof p.data.pagination.prev<"u"?lt.value=Ae(M({},lt.value),{pagination:p.data.pagination,items:[...lt.value.items,...p.data.items]}):(lt.value=p.data,hs(0));break;case 4:u();break}},a.onerror=f=>{f.preventDefault(),u()},a.onmessageerror=u,l=Yt(()=>{if(Kt.value)try{a.postMessage({type:2,data:$e.value})}catch(f){u()}});try{a.postMessage({type:0,data:i})}catch(f){u()}return c}),n=!1,o=()=>{n||(n=!0,r(),Ln(()=>{Kt.value=!1,Rr.value=!1,yo()}),lr===o&&(lr=void 0))};return lr=o,o}var Oa={container:"l",hidden:"m"};function mp(e){return N("div",{class:Gt(Oa.container,{[Oa.hidden]:e.hidden}),onClick:()=>fr()})}var La={container:"a",disabled:"c"};function ka(e){return N("button",Ae(M({},e),{type:"button",disabled:e.disabled||!e.onClick,class:Gt(La.container,e.class,{[La.disabled]:e.disabled||!e.onClick}),children:e.children}))}var Ma=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Aa=e=>{let t=dp(e);return t.charAt(0).toUpperCase()+t.slice(1)},hp=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),vp={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},bp=l=>{var c=l,{color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,children:o,iconNode:i,class:a=""}=c,s=wr(c,["color","size","strokeWidth","absoluteStrokeWidth","children","iconNode","class"]);return $t("svg",M(Ae(M({},vp),{width:String(t),height:t,stroke:e,"stroke-width":n?Number(r)*24/Number(t):r,class:["lucide",a].join(" ")}),s),[...i.map(([u,f])=>$t(u,f)),...Fr(o)])},ws=(e,t)=>{let r=a=>{var s=a,{class:n="",children:o}=s,i=wr(s,["class","children"]);return $t(bp,Ae(M({},i),{iconNode:t,class:hp(`lucide-${Ma(Aa(e))}`,`lucide-${Ma(e)}`,n)}),o)};return r.displayName=Aa(e),r},gp=ws("list-filter",[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]),yp=ws("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),l0=Xl(Zl(),1);function _p({threshold:e=0,root:t=null,rootMargin:r="0%",freezeOnceVisible:n=!1,initialIsIntersecting:o=!1,onChange:i}={}){var a;let[s,l]=pr(null),[c,u]=pr(()=>({isIntersecting:o,entry:void 0})),f=gt();f.current=i;let p=((a=c.entry)==null?void 0:a.isIntersecting)&&n;Pt(()=>{if(!s||!("IntersectionObserver"in window)||p)return;let v,x=new IntersectionObserver(O=>{let E=Array.isArray(x.thresholds)?x.thresholds:[x.thresholds];O.forEach(_=>{let ge=_.isIntersecting&&E.some(be=>_.intersectionRatio>=be);u({isIntersecting:ge,entry:_}),f.current&&f.current(ge,_),ge&&n&&v&&(v(),v=void 0)})},{threshold:e,root:t,rootMargin:r});return x.observe(s),()=>{x.disconnect()}},[s,JSON.stringify(e),t,r,p,n]);let d=gt(null);Pt(()=>{var v;!s&&(v=c.entry)!=null&&v.target&&!n&&!p&&d.current!==c.entry.target&&(d.current=c.entry.target,u({isIntersecting:o,entry:void 0}))},[s,c.entry,n,p,o]);let h=[l,!!c.isIntersecting,c.entry];return h.ref=h[0],h.isIntersecting=h[1],h.entry=h[2],h}var ht={container:"e",hidden:"d",content:"v",pop:"g",badge:"y",sidebar:"t",controls:"w",results:"k",loadmore:"z"};function xp(e){let{isIntersecting:t,ref:r}=_p({threshold:0}),n=Ka(),o=`${n}-results`,i=`${n}-filters`,a=Ku();Pt(()=>{t&&vs()},[t]);let s=gt(null);Pt(()=>{s.current&&typeof $e.value.page>"u"&&s.current.scrollTo({top:0})},[$e.value]);let l=zr();return N("div",{class:Gt(ht.container,{[ht.hidden]:e.hidden}),children:[N("div",{class:ht.content,children:[N("div",{class:ht.controls,children:[N(ka,{onClick:fr,"aria-label":"Close search",children:N(yp,{"aria-hidden":"true"})}),N(Ep,{resultsId:o}),N(ka,{onClick:ms,"aria-label":"Filters","aria-controls":i,"aria-expanded":!a,children:[N(gp,{"aria-hidden":"true"}),l.length>0&&N("span",{class:ht.badge,"aria-hidden":"true",children:l.length})]})]}),N("div",{class:ht.results,ref:s,tabIndex:-1,children:[N(Tp,{id:o}),N("div",{class:ht.loadmore,ref:r})]})]}),N("div",{id:i,inert:a,"aria-hidden":a,class:Gt(ht.sidebar,{[ht.hidden]:a}),children:N(wp,{})})]})}var vt={container:"j",list:"F",hint:"I",heading:"R",title:"X",item:"i",active:"b",value:"q",count:"A"};function wp(){var a,s;let e=Ka(),t=gt(new Map),[r,n]=pr(),o=[...qu()].sort((l,c)=>c.node.count-l.node.count),i=(s=(a=o.find(({node:l})=>l.value===r))!=null?a:o.find(({node:l})=>_o(l.value)))!=null?s:o[0];return N("div",{class:vt.container,children:[N("h3",{class:vt.heading,children:"Filters"}),N("h4",{id:`${e}-title`,class:vt.title,children:"Tags"}),N("span",{id:`${e}-hint`,class:vt.hint,children:"Use Up and Down arrow keys to move between tags. Press Space or Enter to toggle a tag."}),N("ol",{class:vt.list,role:"toolbar","aria-orientation":"vertical","aria-labelledby":`${e}-title`,"aria-describedby":`${e}-hint`,children:o.map((l,c)=>N("li",{role:"presentation",children:N("button",{type:"button",ref:u=>{u?t.current.set(l.node.value,u):t.current.delete(l.node.value)},tabIndex:l===i?0:-1,class:Gt(vt.item,{[vt.active]:_o(l.node.value)}),"aria-pressed":_o(l.node.value),onFocus:()=>n(l.node.value),onKeyDown:u=>{var p;if(u.altKey||u.ctrlKey||u.metaKey||u.isComposing)return;let f=c;switch(u.key){case"ArrowDown":f=Math.min(c+1,o.length-1);break;case"ArrowUp":f=Math.max(c-1,0);break;case"Home":f=0;break;case"End":f=o.length-1;break;default:return}u.preventDefault(),(p=t.current.get(o[f].node.value))==null||p.focus()},onClick:()=>Vu(l.node.value),children:[N("span",{class:vt.value,children:l.node.value}),N("span",{class:vt.count,children:l.node.count})]})},l.node.value))})]})}var Ca={container:"s"};function Ep(e){let t=bs(),r=ds(),n=!Dr()&&t.length>0,o=n&&t[r]?`${e.resultsId}-${t[r].id}`:void 0;return N("div",{class:Ca.container,children:N("input",{autoFocus:!0,"aria-label":"Search","aria-autocomplete":"list","aria-controls":e.resultsId,"aria-expanded":n,"aria-activedescendant":o,type:"text",class:Ca.content,value:kn(jn()),onInput:i=>Wu(tp(i.currentTarget.value)),onKeyDown:i=>{var a;i.isComposing||i.keyCode===229||i.altKey||i.ctrlKey||i.metaKey||!t.length||(i.key==="ArrowDown"||i.key==="ArrowUp"?(i.preventDefault(),i.key==="ArrowDown"&&r===t.length-1&&vs(),hs(r+(i.key==="ArrowDown"?1:-1))):i.key==="Enter"&&o&&(i.preventDefault(),(a=i.currentTarget.getRootNode().getElementById(o))==null||a.click()))},autocapitalize:"off",autocomplete:"off",autocorrect:"off",placeholder:"Search",spellcheck:!1,role:"combobox",dir:"auto"})})}var At={container:"h",heading:"f",item:"o",active:"B",wrapper:"C",title:"x",path:"n",excerpt:"p"};function Tp(e){let t=Du(),r=bs(),n=ds(),o=gt([]);Pt(()=>{let s=o.current[n];s&&s.scrollIntoView({block:"nearest"})},[n,r]);let i=zu(),a="";return Rr.value?a="Search is unavailable. Reload the page to try again.":Kt.value?r.length>0?a=`${new Intl.NumberFormat("en-US").format(i)} ${i===1?"result":"results"}`:(jn().length>0||zr().length>0)&&(a="No results"):a="Loading search\u2026",N(De,{children:[N("div",{class:At.heading,role:"status","aria-live":"polite","aria-atomic":"true",children:a}),N("ol",{id:e.id,class:At.container,role:"listbox","aria-label":"Search results",children:r.map((s,l)=>{var h;let c=s.matches.find(({field:v})=>v==="text"),u=_s(t[s.id].title,s.matches.find(({field:v})=>v==="title")),f=pp((h=t[s.id].path)!=null?h:[],s.matches.find(({field:v})=>v==="path")),p=fp(t[s.id].text,c),d=Gu(t[s.id].location);return N("li",{role:"presentation",children:N("a",{id:`${e.id}-${s.id}`,role:"option",tabIndex:-1,"aria-selected":l===n,"aria-posinset":l+1,"aria-setsize":i,"aria-labelledby":`${e.id}-${s.id}-title`,"aria-describedby":f.length>0?`${e.id}-${s.id}-path`:void 0,ref:v=>{o.current[l]=v},href:d,onClick:v=>{fr(),!v.button&&!v.metaKey&&!v.ctrlKey&&!v.shiftKey&&!v.altKey&&(v.preventDefault(),Yu(d))},class:Gt(At.item,{[At.active]:l===n}),children:N("div",{class:At.wrapper,children:[N("h2",{id:`${e.id}-${s.id}-title`,class:At.title,children:u}),f.length>0&&N("menu",{id:`${e.id}-${s.id}-path`,class:At.path,children:f.map((v,x)=>N("li",{children:v},x))}),p&&N("div",{class:At.excerpt,children:p})]})})},s.id)})})]})}var Sp={container:"r"};function Op(){let e=Dr(),t=gt(null),r=gt(!1),[n,o]=pr("pointer"),[i,a]=pr(!1);return cu(()=>{let s=t.current;return e?(s.close(),r.current=!1):s.open||s.showModal(),()=>s.close()},[e]),Pt(()=>{let s=()=>{o("pointer"),a(!1)};return document.addEventListener("pointerdown",s,!0),()=>{document.removeEventListener("pointerdown",s,!0)}},[]),Cu(!0,s=>{["Tab","ArrowDown","ArrowUp","Home","End"].includes(s.key)&&o("keyboard"),!(s.defaultPrevented||s.isComposing||s.keyCode===229||r.current)&&((s.metaKey||s.ctrlKey)&&s.key==="k"?(s.preventDefault(),o("keyboard"),a(!1),fr()):(s.metaKey||s.ctrlKey)&&s.key==="j"&&document.body.classList.toggle("dark"))}),N("dialog",{ref:t,class:Sp.container,"aria-label":"Search","aria-modal":"true","data-input-modality":n,"data-tab-navigation":i,inert:e,"aria-hidden":e,onCompositionStart:()=>{r.current=!0},onCompositionEnd:()=>{r.current=!1},onKeyDownCapture:s=>{if(r.current||s.isComposing||s.keyCode===229){s.stopPropagation(),s.key==="Escape"&&s.preventDefault();return}if(s.key!=="Tab")return;a(!0),o("keyboard");let l=s.currentTarget,c=Array.from(l.querySelectorAll("button, input, [href], [tabindex]")).filter(d=>d.tabIndex>=0&&!d.closest("[inert]")&&!d.matches(":disabled")&&d.getClientRects().length>0),u=c[0],f=c[c.length-1],p=l.getRootNode();s.shiftKey&&p.activeElement===u?(s.preventDefault(),f==null||f.focus()):!s.shiftKey&&p.activeElement===f&&(s.preventDefault(),u==null||u.focus())},onCancel:s=>{s.preventDefault(),!r.current&&!Dr()&&fr()},children:[N(mp,{hidden:e}),N(xp,{hidden:e})]})}function Es(e,t){Nu(e),au(N(Op,{}),t)}function Po(){fr()}function Lp(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function kp(){return R(b(window,"compositionstart").pipe(m(()=>!0)),b(window,"compositionend").pipe(m(()=>!1))).pipe(G(!1))}function Ts(){let e=b(window,"keydown").pipe(m(t=>({mode:Dr()?"global":"search",type:t.key,meta:t.ctrlKey||t.metaKey,claim(){t.preventDefault(),t.stopPropagation()}})),S(({mode:t,type:r})=>{if(t==="global"){let n=Lt();if(typeof n!="undefined")return!Lp(n,r)}return!0}),xe());return kp().pipe(g(t=>t?w:e))}function fe(){return new URL(location.href)}function nt(e,t=!1){if(J("navigation.instant")&&!t){let r=C("a",{href:e.href});document.body.appendChild(r),r.click(),r.remove()}else location.href=e.href}function Ss(){return new I}function Os(){return location.hash.slice(1)}function Ls(e){let t=C("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Io(e){return R(b(window,"hashchange"),e).pipe(m(Os),G(Os()),m(decodeURIComponent),ne(1),S(t=>t.length>0))}function ks(e){return Io(e).pipe(m(t=>Se(`[id="${t}"]`)),S(t=>typeof t!="undefined"))}function qr(e){let t=matchMedia(e);return bn(r=>t.addListener(()=>r(t.matches))).pipe(G(t.matches))}function Ms(){let e=matchMedia("print");return R(b(window,"beforeprint").pipe(m(()=>!0)),b(window,"afterprint").pipe(m(()=>!1))).pipe(G(e.matches))}function Ro(e,t){return e.pipe(g(r=>r?t():w))}function jo(e,t){return new j(r=>{let n=new XMLHttpRequest;return n.open("GET",`${e}`),n.responseType="blob",n.addEventListener("load",()=>{n.status>=200&&n.status<300?(r.next(n.response),r.complete()):r.error(new Error(n.statusText))}),n.addEventListener("error",()=>{r.error(new Error("Network error"))}),n.addEventListener("abort",()=>{r.complete()}),typeof(t==null?void 0:t.progress$)!="undefined"&&(n.addEventListener("progress",o=>{var i;if(o.lengthComputable)t.progress$.next(o.loaded/o.total*100);else{let a=(i=n.getResponseHeader("Content-Length"))!=null?i:0;t.progress$.next(o.loaded/+a*100)}}),t.progress$.next(5)),n.send(),()=>n.abort()})}function Ge(e,t){return jo(e,t).pipe(g(r=>r.text()),m(r=>JSON.parse(r)),ne(1))}function Un(e,t){let r=new DOMParser;return jo(e,t).pipe(g(n=>n.text()),m(n=>r.parseFromString(n,"text/html")),ne(1))}function As(e,t){let r=new DOMParser;return jo(e,t).pipe(g(n=>n.text()),m(n=>r.parseFromString(n,"text/xml")),ne(1))}var Uo={drawer:Y("[data-md-toggle=drawer]"),search:Y("[data-md-toggle=search]")};function Fo(e,t){Uo[e].checked!==t&&Uo[e].click()}function Fn(e){let t=Uo[e];return b(t,"change").pipe(m(()=>t.checked),G(t.checked))}function Cs(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function Hs(){return R(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(m(Cs),G(Cs()))}function $s(){return{width:innerWidth,height:innerHeight}}function Ps(){return b(window,"resize",{passive:!0}).pipe(m($s),G($s()))}function Is(){return ee([Hs(),Ps()]).pipe(m(([e,t])=>({offset:e,size:t})),ne(1))}function Nn(e,{viewport$:t,header$:r}){let n=t.pipe(he("size")),o=ee([n,r]).pipe(m(()=>kt(e)));return ee([r,t,o]).pipe(m(([{height:i},{offset:a,size:s},{x:l,y:c}])=>({offset:{x:a.x-l,y:a.y-c+i},size:s})))}var Mp=Y("#__config"),vr=JSON.parse(Mp.textContent),No=new URL(vr.base,fe());No.pathname.endsWith("/")||(No.pathname+="/");vr.base=`${No}`;function Pe(){return vr}function J(e){return vr.features.includes(e)}function _t(e,t){return typeof t!="undefined"?vr.translations[e].replace("#",t.toString()):vr.translations[e]}function xt(e,t=document){return Y(`[data-md-component=${e}]`,t)}function Oe(e,t=document){return k(`[data-md-component=${e}]`,t)}function Ap(e){let t=Y(".md-typeset > :first-child",e);return b(t,"click",{once:!0}).pipe(m(()=>Y(".md-typeset",e)),m(r=>({hash:__md_hash(r.innerHTML)})))}function Rs(e){if(!J("announce.dismiss")||!e.childElementCount)return w;if(!e.hidden){let t=Y(".md-typeset",e);__md_hash(t.innerHTML)===__md_get("__announce")&&(e.hidden=!0)}return P(()=>{let t=new I;return t.subscribe(({hash:r})=>{e.hidden=!0,__md_set("__announce",r)}),Ap(e).pipe(A(r=>t.next(r)),W(()=>t.complete()),m(r=>M({ref:e},r)))})}function Cp(e,{target$:t}){return t.pipe(m(r=>({hidden:r!==e})))}function js(e,t){let r=new I;return r.subscribe(({hidden:n})=>{e.hidden=n}),Cp(e,t).pipe(A(n=>r.next(n)),W(()=>r.complete()),m(n=>M({ref:e},n)))}function Do(e,t){return t==="inline"?C("div",{class:"md-tooltip md-tooltip--inline",id:e,role:"tooltip"},C("div",{class:"md-tooltip__inner md-typeset"})):C("div",{class:"md-tooltip",id:e,role:"tooltip"},C("div",{class:"md-tooltip__inner md-typeset"}))}function Dn(...e){return C("div",{class:"md-tooltip2",role:"dialog"},C("div",{class:"md-tooltip2__inner md-typeset"},e))}function Us(...e){return C("div",{class:"md-tooltip2",role:"tooltip"},C("div",{class:"md-tooltip2__inner md-typeset"},e))}function Fs(e,t){if(t=t?`${t}_annotation_${e}`:void 0,t){let r=t?`#${t}`:void 0;return C("aside",{class:"md-annotation",tabIndex:0},Do(t),C("a",{href:r,class:"md-annotation__index",tabIndex:-1},C("span",{"data-md-annotation-id":e})))}else return C("aside",{class:"md-annotation",tabIndex:0},Do(t),C("span",{class:"md-annotation__index",tabIndex:-1},C("span",{"data-md-annotation-id":e})))}function Ns(e){return C("button",{class:"md-code__button",title:_t("clipboard.copy"),"data-clipboard-target":`#${e} > code`,"data-md-type":"copy"})}function Ds(){return C("button",{class:"md-code__button",title:"Toggle line selection","data-md-type":"select"})}function Ws(){return C("nav",{class:"md-code__nav"})}var Pp=Er(Wo());function zs(e){return C("ul",{class:"md-source__facts"},Object.entries(e).map(([t,r])=>C("li",{class:`md-source__fact md-source__fact--${t}`},typeof r=="number"?Yi(r):r)))}function Vo(e){let t=`tabbed-control tabbed-control--${e}`;return C("div",{class:t,hidden:!0},C("button",{class:"tabbed-button",tabIndex:-1,"aria-hidden":"true"}))}function qs(e){return C("div",{class:"md-typeset__scrollwrap"},C("div",{class:"md-typeset__table"},e))}function Ip(e){var n;let t=Pe(),r=new URL(`../${e.version}/`,t.base);return C("li",{class:"md-version__item"},C("a",{href:`${r}`,class:"md-version__link"},e.title,((n=t.version)==null?void 0:n.alias)&&e.aliases.length>0&&C("span",{class:"md-version__alias"},e.aliases[0])))}function Ks(e,t){var n;let r=Pe();return e=e.filter(o=>{var i;return!((i=o.properties)!=null&&i.hidden)}),C("div",{class:"md-version"},C("button",{class:"md-version__current","aria-label":_t("select.version")},t.title,((n=r.version)==null?void 0:n.alias)&&t.aliases.length>0&&C("span",{class:"md-version__alias"},t.aliases[0])),C("ul",{class:"md-version__list"},e.map(Ip)))}var Rp=0;function jp(e,t=250){let r=ee([cr(e),zt(e,t).pipe(we(1))]).pipe(m(([o,i])=>o||i),ae()),n=P(()=>Qi(e)).pipe(re(qt),Pr(1),Ke(r),S(([o,i])=>i),m(()=>ea(e)));return r.pipe(Cr(o=>o),g(()=>ee([r,n])),m(([o,i])=>({active:o,offset:i})),xe())}function Kr(e,t,r=250){let{content$:n,viewport$:o}=t,i=`__tooltip2_${Rp++}`;return P(()=>{let a=new I,s=new ro(!1);a.pipe(_e(),Te(!1)).subscribe(s);let l=s.pipe(we(1),Mr(u=>qe(+!u*250,io)),ae(),g(u=>u?n:w),A(u=>u.id=i),xe());ee([a.pipe(m(({active:u})=>u)),l.pipe(g(u=>zt(u,250)),G(!1))]).pipe(m(u=>u.some(f=>f))).subscribe(s);let c=s.pipe(S(u=>u),ue(l,o),m(([u,f,{size:p}])=>{let d=e.getBoundingClientRect(),h=d.width/2;if(f.role==="tooltip")return{x:h,y:8+d.height};if(d.y>=p.height/2){let{height:v}=Ce(f);return{x:h,y:-16-v}}else return{x:h,y:16+d.height}}));return ee([l,a,c]).subscribe(([u,{offset:f},p])=>{u.style.setProperty("--md-tooltip-host-x",`${f.x}px`),u.style.setProperty("--md-tooltip-host-y",`${f.y}px`),u.style.setProperty("--md-tooltip-x",`${p.x}px`),u.style.setProperty("--md-tooltip-y",`${p.y}px`),u.classList.toggle("md-tooltip2--top",p.y<0),u.classList.toggle("md-tooltip2--bottom",p.y>=0)}),s.pipe(S(u=>u),ue(l,(u,f)=>f),S(u=>u.role==="tooltip")).subscribe(u=>{let f=Ce(Y(":scope > *",u));u.style.setProperty("--md-tooltip-width",`${f.width}px`),u.style.setProperty("--md-tooltip-tail","0px")}),s.pipe(ae(),ze(Fe),ue(l)).subscribe(([u,f])=>{f.classList.toggle("md-tooltip2--active",u)}),ee([s.pipe(S(u=>u)),l]).subscribe(([u,f])=>{f.role==="dialog"?(e.setAttribute("aria-controls",i),e.setAttribute("aria-haspopup","dialog")):e.setAttribute("aria-describedby",i)}),s.pipe(S(u=>!u)).subscribe(()=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-describedby"),e.removeAttribute("aria-haspopup")}),jp(e,r).pipe(A(u=>a.next(u)),W(()=>a.complete()),m(u=>M({ref:e},u)))})}function et(e,{viewport$:t},r=document.body){return Kr(e,{content$:new j(n=>{let o=e.title,i=Us(o);return n.next(i),e.removeAttribute("title"),r.append(i),()=>{i.remove(),e.setAttribute("title",o)}}),viewport$:t},0)}function Up(e,t){let r=P(()=>ee([ta(e),qt(t)])).pipe(m(([{x:n,y:o},i])=>{let{width:a,height:s}=Ce(e);return{x:n-i.x+a/2,y:o-i.y+s/2}}));return cr(e).pipe(g(n=>r.pipe(m(o=>({active:n,offset:o})),de(+!n||1/0))))}function Bs(e,t){let[r,n]=Array.from(e.children),i=(r instanceof HTMLElement?[r,...k("[id]",r)].filter(a=>a.id):[]).map(a=>{let s=document.createElement("span");return s.id=a.id,s.hidden=!0,s});return P(()=>{let a=new I,s=a.pipe(_e(),Te(!0));return a.subscribe({next({offset:l}){e.style.setProperty("--md-tooltip-x",`${l.x}px`),e.style.setProperty("--md-tooltip-y",`${l.y}px`)},complete(){e.style.removeProperty("--md-tooltip-x"),e.style.removeProperty("--md-tooltip-y")}}),Mt(e).pipe(oe(s)).subscribe(l=>{e.toggleAttribute("data-md-visible",l)}),R(a.pipe(S(({active:l})=>l)),a.pipe(Qe(250),S(({active:l})=>!l))).subscribe({next({active:l}){if(l){let c=i.find(u=>u.parentNode);if(c){c.replaceWith(r);for(let u of i)u.remove()}else r.parentNode||e.prepend(r)}else i.length?r.replaceWith(...i):r.remove()},complete(){for(let l of i)l.remove();r.parentNode||e.prepend(r)}}),a.pipe(rt(16,Fe)).subscribe(({active:l})=>{r.classList.toggle("md-tooltip--active",l)}),a.pipe(Pr(125,Fe),S(()=>!!e.offsetParent),m(()=>e.offsetParent.getBoundingClientRect()),m(({x:l})=>l)).subscribe({next(l){l?e.style.setProperty("--md-tooltip-0",`${-l}px`):e.style.removeProperty("--md-tooltip-0")},complete(){e.style.removeProperty("--md-tooltip-0")}}),b(n,"click").pipe(oe(s),S(l=>!(l.metaKey||l.ctrlKey))).subscribe(l=>{l.stopPropagation(),l.preventDefault()}),b(n,"mousedown").pipe(oe(s),ue(a)).subscribe(([l,{active:c}])=>{var u;if(l.button!==0||l.metaKey||l.ctrlKey)l.preventDefault();else if(c){l.preventDefault();let f=e.parentElement.closest(".md-annotation");f instanceof HTMLElement?f.focus():(u=Lt())==null||u.blur()}}),Up(e,t).pipe(A(l=>a.next(l)),W(()=>a.complete()),m(l=>M({ref:e},l)))})}function Fp(e){let t=Pe();if(e.tagName!=="CODE")return[e];let r=[".c",".c1",".cm"];if(t.annotate){let n=e.closest("[class|=language]");if(n)for(let o of Array.from(n.classList)){if(!o.startsWith("language-"))continue;let[,i]=o.split("-");i in t.annotate&&r.push(...t.annotate[i])}}return k(r.join(", "),e)}function Np(e){let t=[];for(let r of Fp(e)){let n=[],o=document.createNodeIterator(r,NodeFilter.SHOW_TEXT);for(let i=o.nextNode();i;i=o.nextNode())n.push(i);for(let i of n){let a;for(;a=/(\(\d+\))(!)?/.exec(i.textContent);){let[,s,l]=a;if(typeof l=="undefined"){let c=i.splitText(a.index);i=c.splitText(s.length),t.push(c)}else{i.textContent=s,t.push(i);break}}}}return t}function Gs(e,t){t.append(...Array.from(e.childNodes))}function Wn(e,t,{print$:r}){let n=t.closest("[id]"),o=n==null?void 0:n.id,i=new Map;for(let a of Np(t)){let[,s]=a.textContent.match(/\((\d+)\)/);Se(`:scope > li:nth-child(${s})`,e)&&(i.set(s,Fs(s,o)),a.replaceWith(i.get(s)))}return i.size===0?w:P(()=>{let a=new I,s=a.pipe(_e(),Te(!0)),l=[];for(let[c,u]of i)l.push([Y(".md-typeset",u),Y(`:scope > li:nth-child(${c})`,e)]);return r.pipe(oe(s)).subscribe(c=>{e.hidden=!c,e.classList.toggle("md-annotation-list",c);for(let[u,f]of l)c?Gs(u,f):Gs(f,u)}),R(...[...i].map(([,c])=>Bs(c,t))).pipe(W(()=>a.complete()),xe())})}function Ys(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Ys(t)}}function Js(e,t){return P(()=>{let r=Ys(e);return typeof r!="undefined"?Wn(r,e,t):w})}var Zs=Er(qo());var Dp=0,Xs=R(b(window,"keydown").pipe(m(()=>!0)),R(b(window,"keyup"),b(window,"contextmenu")).pipe(m(()=>!1))).pipe(G(!1),ne(1));function Qs(e){if(e.nextElementSibling){let t=e.nextElementSibling;if(t.tagName==="OL")return t;if(t.tagName==="P"&&!t.children.length)return Qs(t)}}function Wp(e){return je(e).pipe(m(({width:t})=>({scrollable:Ir(e).width>t})),he("scrollable"))}function ec(e,{target$:t,print$:r}){let{matches:n}=matchMedia("(hover)"),o=P(()=>{let i=new I,a=i.pipe(fo(1));i.subscribe(({scrollable:h})=>{h&&n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")});let s=[],l=e.closest("pre"),c=l.closest("[id]"),u=c?c.id:Dp++;l.id=`__code_${u}`;let f=[],p=e.closest(".highlight");if(p instanceof HTMLElement){let h=Qs(p);if(typeof h!="undefined"&&(p.classList.contains("annotate")||J("content.code.annotate"))){let v=Wn(h,e,{print$:r});f.push(ee([je(p).pipe(m(({width:x,height:O})=>x&&O)),t.pipe(m(x=>p.contains(x)||h.contains(x)),G(!1),ae())]).pipe(oe(a),m(([x,O])=>x||O),ae(),g(x=>x?v:w)))}}let d=k(":scope > span[id]",e);if(d.length&&(e.classList.add("md-code__content"),e.closest(".select")||J("content.code.select")&&!e.closest(".no-select"))){let h=+d[0].id.split("-").pop(),v=Ds();s.push(v),J("content.tooltips")&&f.push(et(v,{viewport$}));let x=b(v,"click").pipe(Hr(y=>!y,!1),A(()=>v.blur()),xe());x.subscribe(y=>{v.classList.toggle("md-code__button--active",y)});let O=me(d).pipe(re(y=>zt(y).pipe(m(D=>[y,D]))));x.pipe(g(y=>y?O:w)).subscribe(([y,D])=>{let X=Se(".hll.select",y);if(X&&!D)X.replaceWith(...Array.from(X.childNodes));else if(!X&&D){let Z=document.createElement("span");Z.className="hll select",Z.append(...Array.from(y.childNodes).slice(1)),y.append(Z)}});let E=me(d).pipe(re(y=>b(y,"mousedown").pipe(A(D=>D.preventDefault()),m(()=>y)))),_=x.pipe(g(y=>y?E:w),ue(Xs),m(([y,D])=>{var Z;let X=d.indexOf(y)+h;if(D===!1)return[X,X];{let se=k(".hll",e).map(Ue=>d.indexOf(Ue.parentElement)+h);return(Z=window.getSelection())==null||Z.removeAllRanges(),[Math.min(X,...se),Math.max(X,...se)]}})),ge=Io(w).pipe(S(y=>y.startsWith(`__codelineno-${u}-`)));ge.subscribe(y=>{let[,,D]=y.split("-"),X=D.split(":").map(se=>+se-h+1);X.length===1&&X.push(X[0]);for(let se of k(".hll:not(.select)",e))se.replaceWith(...Array.from(se.childNodes));let Z=d.slice(X[0]-1,X[1]);for(let se of Z){let Ue=document.createElement("span");Ue.className="hll",Ue.append(...Array.from(se.childNodes).slice(1)),se.append(Ue)}}),ge.pipe(de(1),ze(Me)).subscribe(y=>{if(y.includes(":")){let D=document.getElementById(y.split(":")[0]);D&&setTimeout(()=>{let X=D,Z=-64;for(;X!==document.body;)Z+=X.offsetTop,X=X.offsetParent;window.scrollTo({top:Z})},1)}});let ye=me(k('a[href^="#__codelineno"]',p)).pipe(re(y=>b(y,"click").pipe(A(D=>D.preventDefault()),m(()=>y)))).pipe(oe(a),ue(Xs),m(([y,D])=>{let Z=+Y(`[id="${y.hash.slice(1)}"]`).parentElement.id.split("-").pop();if(D===!1)return[Z,Z];{let se=k(".hll",e).map(Ue=>+Ue.parentElement.id.split("-").pop());return[Math.min(Z,...se),Math.max(Z,...se)]}}));R(_,ye).subscribe(y=>{let D=`#__codelineno-${u}-`;y[0]===y[1]?D+=y[0]:D+=`${y[0]}:${y[1]}`,history.replaceState({},"",D),window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:window.location.origin+window.location.pathname+D,oldURL:window.location.href}))})}if(Zs.default.isSupported()&&(e.closest(".copy")||J("content.code.copy")&&!e.closest(".no-copy"))){let h=Ns(l.id);s.push(h),J("content.tooltips")&&f.push(et(h,{viewport$}))}if(s.length){let h=Ws();h.append(...s),l.insertBefore(h,e)}return Wp(e).pipe(A(h=>i.next(h)),W(()=>i.complete()),m(h=>M({ref:e},h)),Wt(R(...f).pipe(oe(a))))});return J("content.lazy")?Mt(e).pipe(S(i=>i),de(1),g(()=>o)):o}function Vp(e,{print$:t}){let r=!0;return t.pipe(S(n=>n||!r),A(()=>r=e.open),m(n=>({action:n?"open":"close"})))}function tc(e,t){return P(()=>{let r=new I;return r.subscribe(({action:n})=>{e.toggleAttribute("open",n==="open")}),Vp(e,t).pipe(A(n=>r.next(n)),W(()=>r.complete()),m(n=>M({ref:e},n)))})}var Ko,Bo,Go={},rc=!1;function nc(e,t){return t()?ct(e).pipe(le(()=>U(void 0)),m(()=>{})):U(void 0)}function zp(e){if(!e)return[];if(e.startsWith("[")&&e.endsWith("]"))try{let t=JSON.parse(e);if(Array.isArray(t))return t.filter(r=>typeof r=="string")}catch(t){}return e.split(/[,\s]+/).map(t=>t.trim()).filter(t=>t.length>0)}function qp(e){var i,a,s;let t=e.querySelector("[id$='--editor']"),r=e.querySelector("[id$='--run']"),n=e.querySelector("[id$='--clear']"),o=e.querySelector("[id$='--output']");if(!t||!r||!n||!o)throw new Error("Invalid Pyodide structure");return{root:e,editor:t,output:o,run:r,clear:n,source:(a=(i=t.textContent)==null?void 0:i.trimEnd())!=null?a:"",session:(s=e.dataset.session)!=null?s:"default",install:zp(e.dataset.install),minLines:typeof e.dataset.minlines=="undefined"?0:parseInt(e.dataset.minlines),maxLines:typeof e.dataset.maxlines=="undefined"?1/0:parseInt(e.dataset.maxlines)}}function Kp(e,t){return e in Go||(Go[e]=t.globals.get("dict")()),Go[e]}function Gr(e,t){e.textContent=t}function Yo(e){e.textContent=""}function Bp(){return new Promise(e=>requestAnimationFrame(()=>e()))}function Gp(e,t,r,n){return Je(this,null,function*(){let o=[];e.setStdout({batched(i){o.push(i),Gr(r,`${o.join(` `)} `)}});try{let i=yield e.runPythonAsync(t.getValue(),{globals:Kp(n,e)});typeof i!="undefined"&&i!==null&&(o.push(String(i)),Gr(r,`${o.join(` `)} `))}catch(i){o.push(String(i)),Gr(r,`${o.join(` `)} `)}})}function Yp(){return Bo||(Bo=nc("https://unpkg.com/pyodide@314.0.2/pyodide.js",()=>typeof loadPyodide=="undefined"||loadPyodide instanceof Element).pipe(m(()=>Je(null,null,function*(){try{let e=yield loadPyodide({indexURL:"https://cdn.jsdelivr.net/pyodide/v314.0.2/full/"});return yield e.loadPackage("micropip"),e}catch(e){return null}})),ne(1))),Bo}function Jp(){rc||(ace.define("ace/theme/zensical",["require","exports","module","ace/lib/dom"],(e,t)=>{t.isDark=!1,t.cssClass="ace-zensical",t.cssText=""}),rc=!0)}function oc(e){return Ko||(Ko=nc("https://unpkg.com/ace-builds@1.44.0/src-noconflict/ace.js",()=>typeof ace=="undefined"||ace instanceof Element).pipe(ne(1))),new j(t=>{let r=!0,n,o,i=qp(e);i.root.setAttribute("data-md-exec-state","ready");let a=()=>Yo(i.output),s=()=>Je(null,null,function*(){return o||(o=Je(null,null,function*(){if(i.root.setAttribute("data-md-exec-state","loading"),Gr(i.output,"Initializing..."),yield Bp(),!r)return null;let u=yield vn(Yp()).then(f=>f);if(!r||!u)return null;if(i.install.length>0)try{let f=u.pyimport("micropip");for(let p of i.install)yield f.install(p)}catch(f){return Yo(i.output),Gr(i.output,`Could not install one or more packages: ${i.install.join(", ")} -${String(f)}`),i.root.setAttribute("data-md-exec-state","error"),null}return r?(Yo(i.output),i.root.setAttribute("data-md-exec-state","ready"),u):null})),o}),c=()=>{Je(null,null,function*(){let u=yield s();!r||!u||!n||Gp(u,n,i.output,i.session)})},l=u=>{u.ctrlKey&&u.key.toLowerCase()==="enter"&&(u.preventDefault(),i.run.click())};return i.run.addEventListener("click",c),i.clear.addEventListener("click",a),i.root.addEventListener("keydown",l),Je(null,null,function*(){yield vn(Ko),r&&(Jp(),i.editor.textContent="",n=ace.edit(i.editor),n.setTheme("ace/theme/zensical"),n.session.setMode("ace/mode/python"),n.setOption("fontFamily","var(--md-code-font)"),n.setOption("minLines",i.minLines),n.setOption("maxLines",i.maxLines),n.session.setValue(i.source),n.gotoLine(1,0,!1),n.clearSelection(),n.resize(),n.renderer.updateFull())}),t.next({ref:i.root}),()=>{r=!1,i.run.removeEventListener("click",c),i.clear.removeEventListener("click",a),i.root.removeEventListener("keydown",l),n==null||n.destroy(),i.root.removeAttribute("data-md-exec-state")}})}var Jo,Xo;function Xp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?ct("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(le(()=>w),m(()=>{})):U(void 0)}function Zp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?P(()=>Ji("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css")).pipe(le(()=>w),m(()=>{})):U(void 0)}function ic(e){return Jo||(Jo=Xp().pipe(m(()=>new GLightbox(M({touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),ne(1))),Xo||(Xo=Zp()),Xo.pipe(g(()=>Jo),g(t=>(t.reload(),e.map(r=>({ref:r})))))}var ac=0,sc=new Map;function Qp(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function ef(e,t){for(let r of k("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of k("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${ac}`)}return ac++,U(e)}function tf(e){let t=sc.get(e.toString());return t?U(t):Un(e).pipe(g(r=>ef(r,e)),m(r=>(sc.set(e.toString(),r),r)))}function cc(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return w;if(!(J("navigation.instant.preview")||e.hasAttribute("data-preview")))return w;e.removeAttribute("title");let n=ee([cr(e),zt(e).pipe(we(1))]).pipe(m(([i,a])=>i||a),ae(),S(i=>i));return Nt([r,n]).pipe(g(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?U(a):w}),g(i=>tf(i)),g(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=Se(a,i);return typeof s=="undefined"?w:U(Qp(s))})).pipe(g(i=>{let a=new j(s=>{let c=Dn(...i);return s.next(c),document.body.append(c),()=>c.remove()});return Kr(e,M({content$:a},t))}))}var lc="[filter*=drop-shadow],[style*=drop-shadow]{filter:none!important}.node circle,.node ellipse,.node path,.node polygon,.node rect,.node[data-look=neo] .neo-line path,.node[data-look=neo] circle,.node[data-look=neo] ellipse,.node[data-look=neo] path,.node[data-look=neo] polygon,.node[data-look=neo] rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.node path[fill=none],.node[data-look=neo] path[fill=none]{fill:none}.node [stroke=none],.node[data-look=neo] [stroke=none]{stroke:none}.marker,.marker path,.marker polygon{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.marker circle{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-edge-color)}.marker path[fill=none],.marker.cross path{fill:none}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{overflow:visible;line-height:normal}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.classLabel .box,.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{color:var(--md-mermaid-edge-color);fill:var(--md-mermaid-label-bg-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect,.cluster[data-look=neo] rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText,g.classGroup text{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.cardinality,.classLabel .label,.nodeLabel,g.classGroup text,g.stateGroup .state-title,text.actor,text.actor>tspan{font-family:var(--md-mermaid-font-family)}.classLabel .box{opacity:1;fill:var(--md-mermaid-label-bg-color)}.cardinality,.classLabel .label{fill:var(--md-mermaid-label-fg-color)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.composition.classDiagram path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path,defs marker.marker.aggregation.classDiagram path,defs marker.marker.extension.classDiagram path,defs marker.marker.extension.classDiagram polygon{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.dependency.classDiagram path{fill:none!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.statediagram-note .nodeLabel{color:var(--md-mermaid-label-fg-color)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.node[data-look=neo] circle.state-end,.node[data-look=neo] circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end,.node[data-look=neo] circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}.statediagram-state>g:not([class])>path,[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect,.statediagram-cluster[data-look=neo] rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider,.statediagram-state[data-look=neo] rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.statediagram-note text{fill:var(--md-mermaid-label-fg-color)}defs [id$=-barbEnd-margin] path,defs [id$=-barbEnd],defs [id$=-barbEnd] path{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.node[id*=-entity-] path,.node[id*=-entity-] rect,[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.node[id*=-entity-] path[fill=none],defs .marker.er path{fill:none}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}defs .marker.er circle{fill:var(--md-default-bg-color)}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor,.actor circle,.actor line,.actor path,.actor rect,rect.actor[data-look=neo]{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor,text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line,.actor-man path{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note,rect.note[data-look=neo]{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{font-family:var(--md-mermaid-font-family)!important;stroke:none}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan,.sectionTitle{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}[id$=-arrowhead] path,[id$=-filled-head] path,[id$=-solidBottomArrowHead] path,[id$=-solidTopArrowHead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}[id$=-crosshead] path,[id$=-stickBottomArrowHead] path,[id$=-stickTopArrowHead] path{fill:none;stroke:var(--md-mermaid-sequence-message-line-color)}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{font-family:var(--md-mermaid-font-family);fill:var(--md-mermaid-sequence-label-fg-color)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}[id$=-sequencenumber],defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}[class^=activation]{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-label-fg-color);stroke-width:1.5px}";var Vn,nf=0;function of(){return typeof mermaid=="undefined"||mermaid instanceof Element?ct("https://unpkg.com/mermaid@12/dist/mermaid.min.js"):U(void 0)}function uc(e){return e.classList.remove("mermaid"),Vn||(Vn=of().pipe(H(()=>mermaid.initialize({startOnLoad:!1,theme:"default",themeCSS:lc,themeVariables:{dropShadow:"none"},sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),ne(1))),Vn.subscribe(()=>Je(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${nf++}`,r=A("div",{class:"mermaid"}),n=e.textContent,{svg:o,bindFunctions:i}=yield mermaid.render(t,n),a=r.attachShadow({mode:"closed"});a.innerHTML=o,e.replaceWith(r),i==null||i(a)})),Vn.pipe(m(()=>({ref:e})))}var pc=A("table");function fc(e){return e.replaceWith(pc),pc.replaceWith(qs(e)),U({ref:e})}function af(e){let t=e.find(r=>r.checked)||e[0];return R(...e.map(r=>b(r,"change").pipe(m(()=>Y(`label[for="${r.id}"]`))))).pipe(G(Y(`label[for="${t.id}"]`)),m(r=>({active:r})))}function mc(e,{viewport$:t}){let r=Y(".tabbed-labels",e),n=k(":scope > input",e),o=Vo("prev");e.append(o);let i=Vo("next");return e.append(i),P(()=>{let a=new I,s=a.pipe(_e(),Te(!0));ee([a,je(e),Mt(e)]).pipe(oe(s),rt(1,Fe)).subscribe({next([{active:c},l]){let u=kt(c),{width:f}=Ce(c);e.style.setProperty("--md-indicator-x",`${u.x}px`),e.style.setProperty("--md-indicator-width",`${f}px`);let p=xn(r);(u.xp.x+l.width)&&r.scrollTo({left:Math.max(0,u.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),ee([qt(r),je(r)]).pipe(oe(s)).subscribe(([c,l])=>{let u=Ir(r);o.hidden=c.x<16,i.hidden=c.x>u.width-l.width-16}),R(b(o,"click").pipe(m(()=>-1)),b(i,"click").pipe(m(()=>1))).pipe(oe(s)).subscribe(c=>{let{width:l}=Ce(r);r.scrollBy({left:l*c,behavior:"smooth"})}),r.classList.add("tabbed-labels--linked");for(let c of n){let l=Y(`label[for="${c.id}"]`);l.replaceChildren(A("a",{href:`#${l.htmlFor}`,tabIndex:-1},...Array.from(l.childNodes))),b(l.firstElementChild,"click").pipe(oe(s),S(u=>!(u.metaKey||u.ctrlKey)),H(u=>{u.preventDefault(),u.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${l.htmlFor}`),l.click()})}return J("content.tabs.link")&&a.pipe(we(1),ue(t)).subscribe(([{active:c},{offset:l}])=>{let u=c.innerText.trim();if(c.hasAttribute("data-md-switching"))c.removeAttribute("data-md-switching");else{let f=e.offsetTop-l.y;for(let d of k("[data-tabs]"))for(let h of k(":scope > input",d)){let v=Y(`label[for="${h.id}"]`);if(v!==c&&v.innerText.trim()===u){v.setAttribute("data-md-switching",""),h.click();break}}window.scrollTo({top:e.offsetTop-f});let p=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([u,...p])])}}),a.pipe(oe(s)).subscribe(()=>{for(let c of k("audio, video",e))c.offsetWidth&&c.autoplay?c.play().catch(()=>{}):c.pause()}),af(n).pipe(H(c=>a.next(c)),W(()=>a.complete()),m(c=>M({ref:e},c)))}).pipe(Ft(Me))}function dc(e,t){for(let r of k("details",e))!r.open&&r.contains(t)&&(r.open=!0);for(let r of k("[data-tabs]",e)){let n=k(":scope > input",r),o=n.indexOf(t);o===-1&&(o=k(":scope > .tabbed-content > .tabbed-block",r).findIndex(s=>s.contains(t)));let i=n[o];i&&!i.checked&&i.click()}for(let r of k(".md-annotation",e))r.contains(t)&&r.focus()}function hc(e,{target$:t}){return t.pipe(g(r=>P(()=>{let n=r.id,o=document.getElementById(n)||r;if(!e.contains(o))return w;let i=window.location.href,a=J("navigation.instant")?history.state:null;return dc(e,o),Sr().pipe(de(11),m((s,c)=>({target:document.getElementById(n)||o,frame:c})),$r(s=>e.contains(s.target)&&window.location.href===i),H(s=>dc(e,s.target)),S(s=>s.target.getClientRects().length>0||s.frame===10),de(1),H(s=>{typeof(a==null?void 0:a.y)=="number"?window.scrollTo(a.x,a.y):s.target.scrollIntoView()}),m(s=>({ref:s.target,id:n})))})))}function vc(e,t){let{sitemap$:r,viewport$:n,target$:o,print$:i}=t;return R(...k(".annotate:not(.highlight)",e).map(a=>Js(a,{print$:i})),...k(".pyodide",e).map(a=>oc(a)),...k("pre:not(.mermaid) > code",e).filter(a=>!a.closest(".pyodide")).map(a=>ec(a,{target$:o,print$:i})),...k("a",e).map(a=>cc(a,{sitemap$:r,viewport$:n})),...k("pre.mermaid",e).map(a=>uc(a)),...[k(".glightbox",e)].filter(a=>a.length>0).map(a=>ic(a)),...k("table:not([class])",e).map(a=>fc(a)),...k("details",e).map(a=>tc(a,{print$:i})),...k("[data-tabs]",e).map(a=>mc(a,{viewport$:n})),hc(e,{target$:o}),...k("[title]:not([data-preview])",e).filter(()=>J("content.tooltips")).map(a=>et(a,{viewport$:n})),...k(".footnote-ref",e).filter(()=>J("content.footnote.tooltips")).map(a=>Kr(a,{content$:new j(s=>{let c=new URL(a.href).hash.slice(1),l=Array.from(document.getElementById(c).cloneNode(!0).children),u=Dn(...l);return s.next(u),document.body.append(u),()=>u.remove()}),viewport$:n})))}function sf(e,{alert$:t}){return t.pipe(g(r=>R(U(!0),U(!1).pipe(Ar(2e3))).pipe(m(n=>({message:r,active:n})))))}function bc(e,t){let r=Y(".md-typeset",e);return P(()=>{let n=new I;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),sf(e,t).pipe(H(o=>n.next(o)),W(()=>n.complete()),m(o=>M({ref:e},o)))})}function cf({viewport$:e}){if(!J("header.autohide"))return U(!1);let t=e.pipe(m(({offset:{y:o}})=>o),Dt(2,1),m(([o,i])=>[oMath.abs(i-o.y)>100),m(([,[o]])=>o),ae()),n=Fn("search");return ee([e,n]).pipe(m(([{offset:o},i])=>o.y>400&&!i),ae(),g(o=>o?r:U(!1)),G(!1))}function gc(e,t){return P(()=>ee([je(e),cf(t)])).pipe(m(([{height:r},n])=>({height:r,hidden:n})),ae((r,n)=>r.height===n.height&&r.hidden===n.hidden),ne(1))}function yc(e,{viewport$:t,header$:r,main$:n}){return P(()=>{let o=new I,i=o.pipe(_e(),Te(!0));o.pipe(he("active"),Ke(r)).subscribe(([{active:s},{hidden:c}])=>{e.classList.toggle("md-header--shadow",s&&!c),e.hidden=c});let a=me(k("[title]",e)).pipe(S(()=>J("content.tooltips")),re(s=>et(s,{viewport$:t})));return n.subscribe(o),r.pipe(oe(i),m(s=>M({ref:e},s)),Wt(a.pipe(oe(i))))})}function lf(e,{viewport$:t,header$:r}){return Nn(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:n}})=>{let{height:o}=Ce(e);return{active:o>0&&n>=o}}),he("active"))}function _c(e,t){return P(()=>{let r=new I;r.subscribe({next({active:o}){e.classList.toggle("md-header__title--active",o)},complete(){e.classList.remove("md-header__title--active")}});let n=Se(".md-content h1");return typeof n=="undefined"?w:lf(n,t).pipe(H(o=>r.next(o)),W(()=>r.complete()),m(o=>M({ref:e},o)))})}function xc(e,{viewport$:t,header$:r}){let n=r.pipe(m(({height:i})=>i),ae()),o=n.pipe(g(()=>je(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),he("bottom"))));return ee([n,o,t]).pipe(m(([i,{top:a,bottom:s},{offset:{y:c},size:{height:l}}])=>(l=Math.max(0,l-Math.max(0,a-c,i)-Math.max(0,l+c-s)),{offset:a-i,height:l,active:a-i<=c})),ae((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function uf(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return U(...e).pipe(re(n=>b(n,"change").pipe(m(()=>n))),G(e[r]),m(n=>({index:e.indexOf(n),color:{media:n.getAttribute("data-md-color-media"),scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),ne(1))}function wc(e){let t=k("input",e),r=A("meta",{name:"theme-color"});document.head.appendChild(r);let n=A("meta",{name:"color-scheme"});document.head.appendChild(n);let o=qr("(prefers-color-scheme: light)");return P(()=>{let i=new I;return i.subscribe(a=>{var u;if(a.color.media==="(prefers-color-scheme)"){let f=matchMedia("(prefers-color-scheme: light)"),p=document.querySelector(f.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=p.getAttribute("data-md-color-scheme"),a.color.primary=p.getAttribute("data-md-color-primary"),a.color.accent=p.getAttribute("data-md-color-accent")}let s=t.map(f=>f.nextElementSibling).find(f=>f instanceof HTMLElement&&!f.hidden),c=t[a.index].nextElementSibling,l=s instanceof HTMLElement&&s!==c&&s.matches(":hover");if(l){let f=s.getAttribute("aria-describedby");f&&((u=document.getElementById(f))==null||u.style.setProperty("transition-duration","0ms")),s.dispatchEvent(new MouseEvent("mouseleave"))}for(let f=0;fa.key==="Enter"),ue(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(g(()=>Sr().pipe(we(1),de(1))),m(()=>{let a=xt("header"),s=window.getComputedStyle(a);return n.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(c=>(+c).toString(16).padStart(2,"0")).join("")}),W(()=>{document.body.removeAttribute("data-md-color-switching")})).subscribe(a=>{r.content=`#${a}`,document.body.removeAttribute("data-md-color-switching")}),uf(t).pipe(oe(o.pipe(we(1))),Vt(),H(a=>i.next(a)),W(()=>i.complete()),m(a=>M({ref:e},a)))})}function Ec(e,{progress$:t}){return P(()=>{let r=new I;return r.subscribe(({value:n})=>{e.style.setProperty("--md-progress-value",`${n}`)}),t.pipe(H(n=>r.next({value:n})),W(()=>r.complete()),m(n=>({ref:e,value:n})))})}var Tc='.u{text-decoration-style:wavy!important}.l{position:absolute;width:100%;height:100%;background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:auto;transition:opacity .25s;cursor:pointer}@starting-style{.l{opacity:0}}.l.m{opacity:0;pointer-events:none;transition:opacity .35s}.a{position:relative;z-index:1;display:flex;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;padding:0;font-family:var(--font-family);border:none;border-radius:var(--space-2);background-color:initial;transition:background-color .25s,color .25s;cursor:pointer;outline:none}.a svg{stroke:rgb(var(--color-foreground));opacity:.5;width:18px;height:18px}.a:before{position:absolute;inset:0;z-index:0;background-color:rgb(var(--color-background-subtle));content:"";opacity:0;transition:transform 125ms,opacity 125ms;transform:scale(.75);border-radius:var(--border-radius-2)}.a:hover:before{opacity:1;transform:scale(1)}.a.c{cursor:auto}.a.c:before{display:none}.e{display:flex;position:absolute;width:720px;height:70vh;overflow:hidden;background-color:rgba(var(--color-background)/var(--alpha-light));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:var(--space-3);border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));box-shadow:0 0 60px #0000000d;pointer-events:auto;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s}@starting-style{.e{opacity:0;transform:scale(1.1)}}.e.d{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media(max-width:740px){.e{width:100%;height:100%;border-radius:0}}.v{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0}@keyframes g{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.y{position:absolute;background:var(--color-highlight);color:#fff;font-weight:700;font-size:8px;padding-top:1px;border-radius:100%;width:12px;height:12px;top:4px;inset-inline-end:4px;animation:g .25s ease-in-out}.t{position:relative;flex-shrink:0;width:200px;overflow-y:scroll;background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-inline-start:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s 50ms}.t>*{transform:translate(0)}.t.d{width:0;opacity:0;transition:width .35s cubic-bezier(.16,1,.3,1),opacity .1s}@media(max-width:680px){.t{position:absolute;top:calc(37px + 2 * var(--space-2));height:calc(100% - 37px - 2 * var(--space-2));background-color:rgba(var(--color-background-subtle)/var(--alpha-light));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 0 60px #00000026;inset-inline-end:0}}.w{display:flex;gap:var(--space-1);padding:var(--space-2);border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest))}.k{flex:1 1 auto;min-height:0;-webkit-overflow-scrolling:touch;overflow:auto;overscroll-behavior:contain}.z{padding:8px 10px}.j{position:absolute;width:100%;color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2)}.F,.j{display:flex;flex-direction:column}.F{gap:2px;list-style:none;margin:0}.F,.I{padding:0}.I{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.R{margin:0;font-size:16px;font-weight:400}.R,.X{padding:8px}.X{margin:4px 0 0;opacity:.5}.X,.i{font-size:12px}.i{position:relative;display:flex;width:100%;font-family:inherit;color:inherit;text-align:start;border:none;background:#0000;padding:4px 8px;cursor:pointer}.i,.i:before{border-radius:var(--space-1)}.i:before{position:absolute;inset:0;z-index:0;background-color:var(--color-highlight-transparent);content:"";opacity:0;transition:transform 125ms,opacity 125ms;transform:scale(.75)}.i.b:before,.i:hover:before{opacity:1;transform:scale(1)}.i.b,.i:hover{color:var(--color-highlight)}.C,.o,.q,.s{flex-grow:1}.A,.o,.q{position:relative}.A{font-weight:700}.s input{width:100%;height:100%;color:rgb(var(--color-foreground));background:#0000;font-size:16px;font-family:var(--font-family);letter-spacing:-.25px;border:none;outline:none}:dir(rtl) .s input{direction:rtl;text-align:start}.h{display:flex;flex-direction:column;gap:var(--space-1);line-height:1.3;padding:0;color:rgb(var(--color-foreground)/var(--alpha-light));margin:var(--space-2);margin-top:0;list-style:none}.f,.h li{margin:0}.f{margin-top:var(--space-2);margin-bottom:var(--space-1);color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;padding:0 18px}.f:empty{margin:0;padding:0}.o{display:flex;flex-direction:row;padding:8px 10px;border-radius:var(--space-2);cursor:pointer;color:inherit;text-decoration:none}.o:before{position:absolute;inset:0;z-index:0;display:block;background-color:rgb(var(--color-background-subtle));content:"";opacity:0;transition:transform 125ms,opacity 125ms;transform:scale(.9);border-radius:var(--border-radius-2)}.o.B:before{opacity:1;transform:scale(1)}@media(pointer:fine){.o:hover:before{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.o:before{transition:none}}.o mark{background:#0000;color:var(--color-highlight)}.o mark u{text-decoration:underline 1.5px}.C{min-width:0;display:flex;flex-direction:column;gap:var(--space-1)}.x{position:relative;font-size:14px;margin:0}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px;font-size:13px}.n{position:relative;display:inline-flex;flex-wrap:wrap;flex:1 1 auto;min-width:0;font-size:12px;gap:var(--space-1);color:rgb(var(--color-foreground)/.45);list-style:none;padding:0;margin:0}.n li{white-space:nowrap}.n li:after{display:inline;margin-inline-start:var(--space-1);content:"/"}.n li:last-child:after{display:none;content:""}.p{position:relative;margin-top:2px;font-size:13px;color:rgb(var(--color-foreground));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;line-height:1.5;-webkit-line-clamp:2}.p:empty{display:none}.p code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px;font-size:12px}.r{position:fixed;inset:0;display:flex;justify-content:center;align-items:center;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:none;background:#0000;pointer-events:none;transition:display .4s allow-discrete,overlay .4s allow-discrete;--space-1:4px;--space-2:calc(2 * var(--space-1));--space-3:calc(2 * var(--space-2));--space-4:calc(2 * var(--space-3));--space-5:calc(2 * var(--space-4));--alpha-light:.7;--alpha-lighter:.54;--alpha-lightest:.07;--color-highlight:var(--md-accent-fg-color, #526cfe);--color-highlight-transparent:var( --md-accent-fg-color--transparent, #526cfe1a );--border-radius-1:var(--space-1);--border-radius-2:var(--space-2);--border-radius-3:calc(var(--space-1) + var(--space-2));--font-family:var( --md-text-font-family, Inter, Roboto Flex, system-ui, sans-serif );--font-size:16px;--line-height:1.5;--letter-spacing:-.5px;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);letter-spacing:var(--letter-spacing);-webkit-font-smoothing:antialiased}.r:not([open]){display:none}.r::backdrop{background:#0000}.r[data-input-modality=keyboard] :where(button,a):focus-visible{outline:2px solid var(--color-highlight);outline-offset:2px}.r[data-tab-navigation=true] input:focus-visible{box-shadow:inset 0 -2px 0 var(--color-highlight)}@media(prefers-reduced-motion:reduce){.r,.r *,.r :after,.r :before{transition:none!important;animation:none!important}}@media(pointer:coarse){.r{height:-webkit-fill-available}}.r *,.r :after,.r :before{box-sizing:border-box}';function Sc(e,{index$:t}){let r=Pe(),n=document.createElement("div");document.body.appendChild(n),n.style.position="fixed",n.style.height="100%",n.style.top="0",n.style.zIndex="4";let o=n.attachShadow({mode:"open"});o.appendChild(A("style",{},Tc.toString()));try{xs(r.search,{highlight:r.features.includes("search.highlight"),navigate:i=>nt(new URL(i))}),me(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();Es(i,o)}),b(e,"click").subscribe(()=>{Po()}),Fn("search").pipe(we(1)).subscribe(()=>Po())}catch(i){e.hidden=!0;let a=Y("label[for=__search]");a.hidden=!0}return Ze}var Oc=Er(Wo());function Lc(e,{index$:t,location$:r}){return ee([t,r.pipe(G(fe()),S(n=>!!n.searchParams.get("h")))]).pipe(m(([n,o])=>ff(n.config)(o.searchParams.get("h"))),m(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let c=s.textContent,l=n(c);l.length>c.length&&o.set(s,l)}for(let[s,c]of o){let{childNodes:l}=A("span",null,c);s.replaceWith(...Array.from(l))}return{ref:e,nodes:o}}))}function ff(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}${a}`;return o=>{o=o.replace(/\s+/g," ").replace(/&/g,"&").trim();let i=o.split(r).map(s=>s.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")).filter(s=>s.length>=2).join("|");if(!i)return s=>s;let a=new RegExp(`(^|${e.separator}|)(${i})`,"img");return s=>(0,Oc.default)(s).replace(a,n).replace(/<\/mark>(\s+)]*>/img,"$1")}}function mf(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return ee([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),ae((i,a)=>i.height===a.height&&i.locked===a.locked))}function Zo(e,n){var o=n,{header$:t}=o,r=wr(o,["header$"]);let i=Y(".md-sidebar__scrollwrap",e),{y:a}=kt(i);return P(()=>{let s=new I,c=s.pipe(_e(),Te(!0)),l=s.pipe(rt(0,Fe));return l.pipe(ue(t)).subscribe({next([{height:u},{height:f}]){i.style.height=`${u-2*a}px`,e.style.top=`${f}px`},complete(){i.style.height="",e.style.top=""}}),l.pipe(Cr()).subscribe(()=>{for(let u of k(".md-nav__link--active[href]",e)){if(!u.clientHeight)continue;let f=u.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let p=u.offsetTop-f.offsetTop,{height:d}=Ce(f);f.scrollTo({top:p-d/2})}}}),me(k("label[tabindex]",e)).pipe(re(u=>b(u,"click").pipe(ze(Me),m(()=>u),oe(c)))).subscribe(u=>{let f=Y(`[id="${u.htmlFor}"]`);Y(`[aria-labelledby="${u.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),J("content.tooltips")&&me(k("abbr[title]",e)).pipe(re(u=>et(u,{viewport$})),oe(c)).subscribe(),mf(e,r).pipe(H(u=>s.next(u)),W(()=>s.complete()),m(u=>M({ref:e},u)))})}function kc(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Nt(Ge(`${r}/releases/latest`).pipe(le(()=>w),m(n=>({version:n.tag_name})),st({})),Ge(r).pipe(le(()=>w),m(n=>({stars:n.stargazers_count,forks:n.forks_count})),st({}))).pipe(m(([n,o])=>M(M({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return Ge(r).pipe(m(n=>({repositories:n.public_repos})),st({}))}}function Mc(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Nt(Ge(`${r}/releases/permalink/latest`).pipe(le(()=>w),m(({tag_name:n})=>({version:n})),st({})),Ge(r).pipe(le(()=>w),m(({star_count:n,forks_count:o})=>({stars:n,forks:o})),st({}))).pipe(m(([n,o])=>M(M({},n),o)))}function Ac(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return kc(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return Mc(r,n)}return w}var Cc;function df(e){return Cc||(Cc=P(()=>{let t=__md_get("__source",sessionStorage);if(t)return U(t);if(Oe("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return w}return Ac(e.href).pipe(H(n=>__md_set("__source",n,sessionStorage)))}).pipe(le(()=>w),S(t=>Object.keys(t).length>0),m(t=>({facts:t})),ne(1)))}function Hc(e){let t=Y(":scope > :last-child",e);return P(()=>{let r=new I;return r.subscribe(({facts:n})=>{t.appendChild(zs(n)),t.classList.add("md-source__repository--active")}),df(e).pipe(H(n=>r.next(n)),W(()=>r.complete()),m(n=>M({ref:e},n)))})}function hf(e,{viewport$:t,header$:r}){return je(document.body).pipe(g(()=>Nn(e,{header$:r,viewport$:t})),m(({offset:{y:n}})=>({hidden:n>=10})),he("hidden"))}function $c(e,t){return P(()=>{let r=new I;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(J("navigation.tabs.sticky")?U({hidden:!1}):hf(e,t)).pipe(H(n=>r.next(n)),W(()=>r.complete()),m(n=>M({ref:e},n)))})}function vf(e,{viewport$:t,header$:r}){let n=new Map,o=k(".md-nav__link",e);for(let s of o){let c=decodeURIComponent(s.hash.substring(1)),l=Se(`[id="${c}"]`);typeof l!="undefined"&&n.set(s,l)}let i=r.pipe(he("height"),m(({height:s})=>{let c=xt("main"),l=Y(":scope > :first-child",c);return s+.9*(l.offsetTop-c.offsetTop)}),xe());return je(document.body).pipe(he("height"),g(s=>P(()=>{let c=[];return U([...n].reduce((l,[u,f])=>{for(;c.length&&n.get(c[c.length-1]).tagName>=f.tagName;)c.pop();let p=f.offsetTop;for(;!p&&f.parentElement;)f=f.parentElement,p=f.offsetTop;let d=f.offsetParent;for(;d;d=d.offsetParent)p+=d.offsetTop;return l.set([...c=[...c,u]].reverse(),p)},new Map))}).pipe(m(c=>new Map([...c].sort(([,l],[,u])=>l-u))),Ke(i),g(([c,l])=>t.pipe(Hr(([u,f],{offset:{y:p},size:d})=>{let h=p+d.height>=Math.floor(s.height);for(;f.length;){let[,v]=f[0];if(v-l=p&&!h)f=[u.pop(),...f];else break}return[u,f]},[[],[...c]]),ae((u,f)=>u[0]===f[0]&&u[1]===f[1])))))).pipe(m(([s,c])=>({prev:s.map(([l])=>l),next:c.map(([l])=>l)})),G({prev:[],next:[]}),Dt(2,1),m(([s,c])=>s.prev.length{let{pathname:i}=fe(),a=new I,s=a.pipe(_e(),Te(!0));a.subscribe(({prev:l,next:u})=>{for(let[f]of u)f.classList.remove("md-nav__link--passed"),f.classList.remove("md-nav__link--active");for(let[f,[p]]of l.entries())p.classList.add("md-nav__link--passed"),p.classList.toggle("md-nav__link--active",f===l.length-1)});let c=Se(".md-sidebar--secondary");if(typeof c!="undefined"&&b(document.body,"click").subscribe(l=>{let u=l.target;if(!c.contains(u)){let f=Se(".md-nav__toggle",c);typeof f!="undefined"&&(f.checked=!1)}}),J("toc.follow")){let l=R(t.pipe(Qe(1),m(()=>{})),t.pipe(Qe(250),m(()=>"smooth")));a.pipe(S(({prev:u})=>u.length>0),Ke(n.pipe(ze(Me))),ue(l)).subscribe(([[{prev:u}],f])=>{let[p]=u[u.length-1];if(p.offsetHeight){let d=Zi(p);if(typeof d!="undefined"){let h=p.offsetTop-d.offsetTop,{height:v}=Ce(d);d.scrollTo({top:h-v/2,behavior:f})}}})}return J("navigation.tracking")&&t.pipe(he("offset"),Qe(250),we(1),oe(o.pipe(we(1))),Vt({delay:250}),ue(a),oe(s)).subscribe(([,{prev:l}])=>{let u=fe();if(u.pathname!==i)return;let f=l[l.length-1];if(f&&f.length){let[p]=f,{hash:d}=new URL(p.href);u.hash!==d&&(u.hash=d,history.replaceState(history.state,"",`${u}`))}else u.hash="",history.replaceState(history.state,"",`${u}`)}),vf(e,{viewport$:t,header$:r}).pipe(H(l=>a.next(l)),W(()=>a.complete()),m(l=>M({ref:e},l)))})}function bf(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(m(({offset:{y:a}})=>a),Dt(2,1),m(([a,s])=>a>s&&s>0),ae()),i=r.pipe(m(({active:a})=>a));return ee([i,o]).pipe(m(([a,s])=>!(a&&s)),ae(),oe(n.pipe(we(1))),Te(!0),Vt({delay:250}),m(a=>({hidden:a})))}function Ic(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new I,a=i.pipe(_e(),Te(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(oe(a),he("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),b(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),bf(e,{viewport$:t,main$:n,target$:o}).pipe(H(s=>i.next(s)),W(()=>i.complete()),m(s=>M({ref:e},s)))}function Rc(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function gf(e){if(!e.length)return;let t=e.reduce((n,o)=>n.pathname.length<=o.pathname.length?n:o),r=t.pathname.endsWith("/")?t.pathname:`${t.pathname}/`;return e.every(n=>n.origin===t.origin&&(n.pathname===t.pathname||n.pathname.startsWith(r)))?t:void 0}function yf(e,t,r){let n=t.pathname.endsWith("/")?t.pathname:`${t.pathname}/`,o=e.pathname===t.pathname?"":e.pathname.slice(n.length),i=new URL(r);return i.pathname.endsWith("/")||(i.pathname+="/"),new URL(`${o}${e.search}${e.hash}`,i)}function _f(e,t){let r=new Map,n=k("url",e),o=n.map(a=>Rc(new URL(Y("loc",a).textContent),t)),i=gf(o);for(let a=0;a_f(t,new URL(e))),le(()=>U(new Map)),xe())}function jc({document$:e}){let t=new Map;e.pipe(g(()=>k("link[rel=alternate][hreflang]")),m(r=>new URL(r.href)),S(r=>!t.has(r.toString())),re(r=>br(r).pipe(m(n=>[r,n]),le(()=>w)))).subscribe(([r,n])=>{t.set(r.toString().replace(/\/$/,""),n)}),b(document.body,"click").pipe(S(r=>!r.metaKey&&!r.ctrlKey),g(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([f])=>n.href.startsWith(`${f}/`));if(typeof o=="undefined")return w;let[i,a]=o,s=fe();if(s.href.startsWith(i))return w;let c=Pe(),l=s.href.replace(c.base,"");l=`${i}/${l}`;let u=a.has(l.split("#")[0])?new URL(l,c.base):new URL(i);return r.preventDefault(),U(u)}}return w})).subscribe(r=>nt(r,!0))}var Qo=Er(qo());function xf(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function wf(e){return Je(this,null,function*(){if(!navigator.clipboard)throw new Error("Clipboard access is unavailable");let t=fetch(e).then(r=>{var n;if(!r.ok||(n=r.headers.get("Content-Type"))!=null&&n.includes("text/html"))throw new Error("The Markdown export could not be loaded");return r.text()});if(typeof ClipboardItem!="undefined"&&navigator.clipboard.write){let r=t.then(n=>new Blob([n],{type:"text/plain"}));yield Promise.all([r,navigator.clipboard.write([new ClipboardItem({"text/plain":r})])])}else yield navigator.clipboard.writeText(yield t)})}function Uc({alert$:e}){Qo.default.isSupported()&&new j(t=>{new Qo.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||xf(Y(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(H(t=>{t.trigger.focus()}),m(()=>_t("clipboard.copied"))).subscribe(e),b(document.body,"click").subscribe(t=>Je(null,null,function*(){if(!(t.target instanceof Element))return;let r=t.target.closest("button[data-md-copy-url]");if(!(!r||r.disabled)){r.disabled=!0,r.setAttribute("aria-busy","true");try{let n=new URL(r.getAttribute("data-md-copy-url"),document.baseURI);yield wf(n),r.isConnected&&e.next(_t("clipboard.copied"))}catch(n){r.isConnected&&e.next(_t("clipboard.error"))}finally{r.disabled=!1,r.removeAttribute("aria-busy")}}}))}function Fc(e,t){if(!(e.target instanceof Element))return w;let r=e.target.closest("a");if(r===null||!r.hasAttribute("href"))return w;if(r.target||e.metaKey||e.ctrlKey)return w;let n=new URL(r.href);return n.search=n.hash="",t.has(`${n}`)?(e.preventDefault(),U(r)):w}function Nc(e){let t=new Map;for(let r of k(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Dc(e){for(let t of k("[href], [src]",e))for(let r of["href","src"]){let n=t.getAttribute(r);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){t[r]=t[r];break}}return U(e)}function Ef(e){var r;if(e.tagName!=="STYLE")return!1;let t=(r=e.textContent)!=null?r:"";return t.includes(".ace_editor")||t.includes(".ace-zensical")||t.includes(".ace_scroller")||t.includes(".ace_gutter")}function Tf(e){for(let n of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...J("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let o=Se(n),i=Se(n,e);typeof o!="undefined"&&typeof i!="undefined"&&o.replaceWith(i)}let t=Nc(document);for(let[n,o]of Nc(e))t.has(n)?t.delete(n):document.head.appendChild(o);for(let n of t.values()){let o=n.getAttribute("name");o!=="theme-color"&&o!=="color-scheme"&&!Ef(n)&&n.remove()}let r=xt("container");return at(k("script",r)).pipe(lo(n=>{let o=e.createElement("script");for(let i of n.getAttributeNames())o.setAttribute(i,n.getAttribute(i));return o.textContent=n.textContent,n.src?new j(i=>(o.onload=o.onerror=()=>i.complete(),n.replaceWith(o),()=>{o.onload=o.onerror=null})):(n.replaceWith(o),w)}),_e(),Te(document))}function Wc({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Ze;U(document).subscribe(Dc);let o=b(document.body,"click").pipe(Ke(e),g(([c,l])=>Fc(c,l)),m(({href:c})=>{let l=new URL(c),u=fe();return{url:l,repeated:u.pathname===l.pathname&&u.hash===l.hash}}),xe()),i=o.pipe(m(({url:c})=>c),xe()),a=b(window,"popstate").pipe(m(fe),xe());o.pipe(ue(r)).subscribe(([{url:c,repeated:l},{offset:u}])=>{history.replaceState(l?null:u,""),history.pushState(null,"",c)}),R(i,a).subscribe(t);let s=t.pipe(G(fe()),_n(),S(([c,l])=>c.pathname!==l.pathname),m(([,c])=>c),g(c=>Un(c,{progress$:n}).pipe(le(()=>(nt(c,!0),w)))),g(Dc),g(Tf),xe());return R(s.pipe(ue(t,(c,l)=>l)),s.pipe(g(()=>t),he("hash")),t.pipe(G(fe()),_n(),S(([c,l])=>c.pathname===l.pathname&&c.hash!==l.hash),m(([,c])=>c)),t.pipe(ae((c,l)=>c.pathname===l.pathname&&c.hash===l.hash),g(()=>o.pipe(S(({repeated:c})=>c),m(({url:c})=>c))),H(()=>history.back()))).subscribe(c=>{var l,u;history.state!==null||!c.hash?window.scrollTo(0,(u=(l=history.state)==null?void 0:l.y)!=null?u:0):(history.scrollRestoration="auto",Ls(c.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),b(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(he("offset"),ue(s.pipe(m(fe),G(fe()))),S(([,c])=>c.pathname===fe().pathname),Qe(100)).subscribe(([{offset:c},l])=>{l.pathname===fe().pathname&&history.replaceState(c,"")}),J("navigation.instant.prefetch")&&R(b(document.body,"mousemove"),b(document.body,"focusin")).pipe(Ke(e),g(([c,l])=>Fc(c,l)),Qe(25),po(({href:c})=>c),yn(c=>{let l=document.createElement("link");return l.rel="prefetch",l.href=c.toString(),document.head.appendChild(l),b(l,"load").pipe(m(()=>l),de(1))})).subscribe(c=>c.remove()),s}function Sf(e,t){return e=new URL(e,fe()),Ge(e).pipe(m(r=>new Map(Object.entries(r).map(([n,o])=>[`${new URL(n,t)}`,new URL(o,t)]))),le(()=>U(new Map)))}function Vc({location$:e}){let t=Pe();if(!t.redirect)return;let r=Sf(t.redirect,t.base);R(U(fe()),e,b(window,"hashchange").pipe(m(fe))).pipe(Ke(r),m(([n,o])=>{let i=new URL(n);i.search="";let a=o.get(`${i}`);return(a==null?void 0:a.href)!==i.href?a:void 0}),S(n=>typeof n!="undefined")).subscribe(n=>window.location.replace(`${n}`))}function zc(e){var u;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(u=ei(o))==null?void 0:u.pathname;if(i===void 0)return;let a=Of(n.pathname,i);if(a===void 0)return;let s=kf(t.keys());if(!t.has(s))return;let c=ei(a,s);if(!c||!t.has(c.href))return;let l=ei(a,r);if(l)return l.hash=n.hash,l.search=n.search,l}function ei(e,t){try{return new URL(e,t)}catch(r){return}}function Of(e,t){if(e.startsWith(t))return e.slice(t.length)}function Lf(e,t){let r=Math.min(e.length,t.length),n;for(n=0;nw)),n=r.pipe(m(o=>{var c;let[,i]=t.base.match(/([^/]+)\/?$/),a=((c=t.version)==null?void 0:c.default)||"latest",s=Array.isArray(a)?a:[a];return o.find(({version:l,aliases:u})=>l===i||u.includes(i))||o.find(({version:l,aliases:u})=>s.includes(l)||u.some(f=>s.includes(f)))||o[0]}));r.pipe(m(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),g(o=>b(document.body,"click").pipe(S(i=>!i.metaKey&&!i.ctrlKey),ue(n),g(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let c=s.href;return!i.target.closest(".md-version")&&o.get(c)===a?w:(i.preventDefault(),U(new URL(c)))}}return w}),g(i=>br(i).pipe(m(a=>{var s;return(s=zc({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:fe(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>nt(o,!0)),ee([r,n]).subscribe(([o,i])=>{Y(".md-header__topic").appendChild(Ks(o,i))}),e.pipe(g(()=>n)).subscribe(o=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let c=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(c)||(c=[c]);e:for(let l of c)for(let u of o.aliases.concat(o.version))if(new RegExp(l,"i").test(u)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let c of Oe("outdated"))c.hidden=!1})}function Kc({document$:e,viewport$:t}){e.pipe(g(()=>k(".md-ellipsis")),re(r=>Mt(r).pipe(oe(e.pipe(we(1))),S(n=>n),m(()=>r),de(1))),S(r=>r.offsetWidth{let n=r.innerText,o=r.closest("a")||r;return o.title=n,J("content.tooltips")?et(o,{viewport$:t}).pipe(oe(e.pipe(we(1))),W(()=>o.removeAttribute("title"))):w})).subscribe(),J("content.tooltips")&&e.pipe(g(()=>k(".md-status")),re(r=>et(r,{viewport$:t}))).subscribe()}function Bc({document$:e,tablet$:t}){e.pipe(g(()=>k(".md-toggle--indeterminate")),H(r=>{r.indeterminate=!0,r.checked=!1}),re(r=>b(r,"change").pipe($r(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),ue(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function Mf(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Gc({document$:e}){e.pipe(g(()=>k("[data-md-scrollfix]")),H(t=>t.removeAttribute("data-md-scrollfix")),S(Mf),re(t=>b(t,"touchstart").pipe(m(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function Af(){return location.protocol==="file:"?ct(`${new URL("search.js",zn.base)}`).pipe(m(()=>__index),le(()=>Ze),ne(1)):Ge(new URL("search.json",zn.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var wt=Bi(),yr=Ss(),gr=ks(yr),Jc=Ts(),Ye=Is(),ti=qr("(min-width: 60em)"),Xc=qr("(min-width: 76.25em)"),Zc=Ms(),zn=Pe(),Qc=Se(".md-search")?Af():Ze;Vc({location$:yr});var ri=new I;Uc({alert$:ri});jc({document$:wt});var ni=new I,el=br(zn.base);J("navigation.instant")&&Wc({sitemap$:el,location$:yr,viewport$:Ye,progress$:ni}).subscribe(wt);var Yc;((Yc=zn.version)==null?void 0:Yc.provider)==="mike"&&qc({document$:wt});R(yr,gr).pipe(Ar(125)).subscribe(()=>{Fo("drawer",!1),Fo("search",!1)});Jc.pipe(S(({mode:e,meta:t})=>e==="global"&&!t)).subscribe(e=>{switch(e.type){case",":case"p":let t=document.querySelector("link[rel=prev]");t instanceof HTMLLinkElement&&nt(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&nt(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&(n.click(),e.claim());break;case"Enter":let o=Lt();o instanceof HTMLLabelElement&&o.click()}});Kc({viewport$:Ye,document$:wt});Bc({document$:wt,tablet$:ti});Gc({document$:wt});var It=gc(xt("header"),{viewport$:Ye}),Yr=wt.pipe(m(()=>xt("main")),g(e=>xc(e,{viewport$:Ye,header$:It})),ne(1)),Cf=R(...Oe("consent").map(e=>js(e,{target$:gr})),...Oe("dialog").map(e=>bc(e,{alert$:ri})),...Oe("palette").map(e=>wc(e)),...Oe("progress").map(e=>Ec(e,{progress$:ni})),...Oe("search").map(e=>Sc(e,{index$:Qc})),...Oe("source").map(e=>Hc(e))),Hf=P(()=>R(...Oe("announce").map(e=>Rs(e)),...Oe("content").map(e=>vc(e,{sitemap$:el,viewport$:Ye,target$:gr,print$:Zc})),...Oe("content").map(e=>J("search.highlight")?Lc(e,{index$:Qc,location$:yr}):w),...Oe("header").map(e=>yc(e,{viewport$:Ye,header$:It,main$:Yr})),...Oe("header-title").map(e=>_c(e,{viewport$:Ye,header$:It})),...Oe("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Ro(Xc,()=>Zo(e,{viewport$:Ye,header$:It,main$:Yr})):Ro(ti,()=>Zo(e,{viewport$:Ye,header$:It,main$:Yr}))),...Oe("tabs").map(e=>$c(e,{viewport$:Ye,header$:It})),...Oe("toc").map(e=>Pc(e,{viewport$:Ye,header$:It,main$:Yr,target$:gr})),...Oe("top").map(e=>Ic(e,{viewport$:Ye,header$:It,main$:Yr,target$:gr})))),tl=wt.pipe(g(()=>Hf),Wt(Cf),ne(1));tl.subscribe();window.document$=wt;window.location$=yr;window.target$=gr;window.keyboard$=Jc;window.viewport$=Ye;window.tablet$=ti;window.screen$=Xc;window.print$=Zc;window.alert$=ri;window.progress$=ni;window.component$=tl;})(); +${String(f)}`),i.root.setAttribute("data-md-exec-state","error"),null}return r?(Yo(i.output),i.root.setAttribute("data-md-exec-state","ready"),u):null})),o}),l=()=>{Je(null,null,function*(){let u=yield s();!r||!u||!n||Gp(u,n,i.output,i.session)})},c=u=>{u.ctrlKey&&u.key.toLowerCase()==="enter"&&(u.preventDefault(),i.run.click())};return i.run.addEventListener("click",l),i.clear.addEventListener("click",a),i.root.addEventListener("keydown",c),Je(null,null,function*(){yield vn(Ko),r&&(Jp(),i.editor.textContent="",n=ace.edit(i.editor),n.setTheme("ace/theme/zensical"),n.session.setMode("ace/mode/python"),n.setOption("fontFamily","var(--md-code-font)"),n.setOption("minLines",i.minLines),n.setOption("maxLines",i.maxLines),n.session.setValue(i.source),n.gotoLine(1,0,!1),n.clearSelection(),n.resize(),n.renderer.updateFull())}),t.next({ref:i.root}),()=>{r=!1,i.run.removeEventListener("click",l),i.clear.removeEventListener("click",a),i.root.removeEventListener("keydown",c),n==null||n.destroy(),i.root.removeAttribute("data-md-exec-state")}})}var Jo,Xo;function Xp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?ct("https://unpkg.com/glightbox@3/dist/js/glightbox.min.js").pipe(le(()=>w),m(()=>{})):U(void 0)}function Zp(){return typeof GLightbox=="undefined"||GLightbox instanceof Element?P(()=>Ji("https://unpkg.com/glightbox@3/dist/css/glightbox.min.css")).pipe(le(()=>w),m(()=>{})):U(void 0)}function ic(e){return Jo||(Jo=Xp().pipe(m(()=>new GLightbox(M({touchNavigation:!0,loop:!1,zoomable:!0,draggable:!0,openEffect:"zoom",closeEffect:"zoom",slideEffect:"slide",onOpen:()=>{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}},typeof GLightboxOptions!="undefined"?GLightboxOptions:{}))),ne(1))),Xo||(Xo=Zp()),Xo.pipe(g(()=>Jo),g(t=>(t.reload(),e.map(r=>({ref:r})))))}var ac=0,sc=new Map;function Qp(e){let t=document.createElement("h3");t.innerHTML=e.innerHTML;let r=[t],n=e.nextElementSibling;for(;n&&!(n instanceof HTMLHeadingElement);)r.push(n.cloneNode(!0)),n=n.nextElementSibling;return r}function ef(e,t){for(let r of k("[href], [src]",e))for(let n of["href","src"]){let o=r.getAttribute(n);if(o&&!/^(?:[a-z]+:)?\/\//i.test(o)){r[n]=new URL(r.getAttribute(n),t).toString();break}}for(let r of k("[name^=__], [for]",e))for(let n of["id","for","name"]){let o=r.getAttribute(n);o&&r.setAttribute(n,`${o}$preview_${ac}`)}return ac++,U(e)}function tf(e){let t=sc.get(e.toString());return t?U(t):Un(e).pipe(g(r=>ef(r,e)),m(r=>(sc.set(e.toString(),r),r)))}function cc(e,t){let{sitemap$:r}=t;if(!(e instanceof HTMLAnchorElement))return w;if(!(J("navigation.instant.preview")||e.hasAttribute("data-preview")))return w;e.removeAttribute("title");let n=ee([cr(e),zt(e).pipe(we(1))]).pipe(m(([i,a])=>i||a),ae(),S(i=>i));return Nt([r,n]).pipe(g(([i])=>{let a=new URL(e.href);return a.search=a.hash="",i.has(`${a}`)?U(a):w}),g(i=>tf(i)),g(i=>{let a=e.hash?`article [id="${decodeURIComponent(e.hash.slice(1))}"]`:"article h1",s=Se(a,i);return typeof s=="undefined"?w:U(Qp(s))})).pipe(g(i=>{let a=new j(s=>{let l=Dn(...i);return s.next(l),document.body.append(l),()=>l.remove()});return Kr(e,M({content$:a},t))}))}var lc="[filter*=drop-shadow],[style*=drop-shadow]{filter:none!important}.node circle,.node ellipse,.node path,.node polygon,.node rect,.node[data-look=neo] .neo-line path,.node[data-look=neo] circle,.node[data-look=neo] ellipse,.node[data-look=neo] path,.node[data-look=neo] polygon,.node[data-look=neo] rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.node path[fill=none],.node[data-look=neo] path[fill=none]{fill:none}.node [stroke=none],.node[data-look=neo] [stroke=none]{stroke:none}.marker,.marker path,.marker polygon{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.marker circle{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-edge-color)}.marker path[fill=none],.marker.cross path{fill:none}.edgeLabel .label rect{fill:#0000}.flowchartTitleText{fill:var(--md-mermaid-label-fg-color)}.label{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}.label foreignObject{overflow:visible;line-height:normal}.label div .edgeLabel{color:var(--md-mermaid-label-fg-color)}.classLabel .box,.edgeLabel,.edgeLabel p,.label div .edgeLabel{background-color:var(--md-mermaid-label-bg-color)}.edgeLabel,.edgeLabel p{color:var(--md-mermaid-edge-color);fill:var(--md-mermaid-label-bg-color)}.edgePath .path,.flowchart-link{stroke:var(--md-mermaid-edge-color)}.edgePath .arrowheadPath{fill:var(--md-mermaid-edge-color);stroke:none}.cluster rect,.cluster[data-look=neo] rect{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.cluster span{color:var(--md-mermaid-label-fg-color);font-family:var(--md-mermaid-font-family)}g #flowchart-circleEnd,g #flowchart-circleStart,g #flowchart-crossEnd,g #flowchart-crossStart,g #flowchart-pointEnd,g #flowchart-pointStart{stroke:none}.classDiagramTitleText,g.classGroup text{fill:var(--md-mermaid-label-fg-color)}g.classGroup line,g.classGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.cardinality,.classLabel .label,.nodeLabel,g.classGroup text,g.stateGroup .state-title,text.actor,text.actor>tspan{font-family:var(--md-mermaid-font-family)}.classLabel .box{opacity:1;fill:var(--md-mermaid-label-bg-color)}.cardinality,.classLabel .label{fill:var(--md-mermaid-label-fg-color)}.node .divider{stroke:var(--md-mermaid-node-fg-color)}.relation{stroke:var(--md-mermaid-edge-color)}.cardinality text{fill:inherit!important}defs marker.marker.composition.class path,defs marker.marker.composition.classDiagram path,defs marker.marker.dependency.class path,defs marker.marker.extension.class path{fill:var(--md-mermaid-edge-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.aggregation.class path,defs marker.marker.aggregation.classDiagram path,defs marker.marker.extension.classDiagram path,defs marker.marker.extension.classDiagram polygon{fill:var(--md-mermaid-label-bg-color)!important;stroke:var(--md-mermaid-edge-color)!important}defs marker.marker.dependency.classDiagram path{fill:none!important;stroke:var(--md-mermaid-edge-color)!important}.statediagramTitleText{fill:var(--md-mermaid-label-fg-color)}g.stateGroup rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}g.stateGroup .state-title{fill:var(--md-mermaid-label-fg-color)!important}g.stateGroup .composit{fill:var(--md-mermaid-label-bg-color)}.nodeLabel,.statediagram-note .nodeLabel{color:var(--md-mermaid-label-fg-color)}a .nodeLabel{text-decoration:underline}.node circle.state-end,.node circle.state-start,.node[data-look=neo] circle.state-end,.node[data-look=neo] circle.state-start,.start-state{fill:var(--md-mermaid-edge-color);stroke:none}.end-state-inner,.end-state-outer{fill:var(--md-mermaid-edge-color)}.end-state-inner,.node circle.state-end,.node[data-look=neo] circle.state-end{stroke:var(--md-mermaid-label-bg-color)}.transition{stroke:var(--md-mermaid-edge-color)}.statediagram-state>g:not([class])>path,[id^=state-fork] rect,[id^=state-join] rect{fill:var(--md-mermaid-edge-color)!important;stroke:none!important}.statediagram-cluster.statediagram-cluster .inner{fill:var(--md-default-bg-color)}.statediagram-cluster rect,.statediagram-cluster[data-look=neo] rect{fill:var(--md-mermaid-node-bg-color);stroke:var(--md-mermaid-node-fg-color)}.statediagram-state rect.divider,.statediagram-state[data-look=neo] rect.divider{fill:var(--md-default-fg-color--lightest);stroke:var(--md-default-fg-color--lighter)}.statediagram-note text{fill:var(--md-mermaid-label-fg-color)}defs [id$=-barbEnd-margin] path,defs [id$=-barbEnd],defs [id$=-barbEnd] path{fill:var(--md-mermaid-edge-color);stroke:var(--md-mermaid-edge-color)}.node[id*=-entity-] path,.node[id*=-entity-] rect,[id^=entity] path,[id^=entity] rect{fill:var(--md-default-bg-color)}.node[id*=-entity-] path[fill=none],defs .marker.er path{fill:none}.relationshipLine{stroke:var(--md-mermaid-edge-color)}defs .marker.oneOrMore.er *,defs .marker.onlyOne.er *,defs .marker.zeroOrMore.er *,defs .marker.zeroOrOne.er *{stroke:var(--md-mermaid-edge-color)!important}defs .marker.er circle{fill:var(--md-default-bg-color)}text:not([class]):last-child{fill:var(--md-mermaid-label-fg-color)}.actor,.actor circle,.actor line,.actor path,.actor rect,rect.actor[data-look=neo]{fill:var(--md-mermaid-sequence-actor-bg-color);stroke:var(--md-mermaid-sequence-actor-border-color)}text.actor,text.actor>tspan{fill:var(--md-mermaid-sequence-actor-fg-color)}.actor-line{stroke:var(--md-mermaid-sequence-actor-line-color)}.actor-man circle,.actor-man line,.actor-man path{fill:var(--md-mermaid-sequence-actorman-bg-color);stroke:var(--md-mermaid-sequence-actorman-line-color)}.messageLine0,.messageLine1{stroke:var(--md-mermaid-sequence-message-line-color)}.note,rect.note[data-look=neo]{fill:var(--md-mermaid-sequence-note-bg-color);stroke:var(--md-mermaid-sequence-note-border-color)}.loopText,.loopText>tspan,.messageText,.noteText>tspan{font-family:var(--md-mermaid-font-family)!important;stroke:none}.messageText{fill:var(--md-mermaid-sequence-message-fg-color)}.loopText,.loopText>tspan,.sectionTitle{fill:var(--md-mermaid-sequence-loop-fg-color)}.noteText>tspan{fill:var(--md-mermaid-sequence-note-fg-color)}[id$=-arrowhead] path,[id$=-filled-head] path,[id$=-solidBottomArrowHead] path,[id$=-solidTopArrowHead] path{fill:var(--md-mermaid-sequence-message-line-color);stroke:none}[id$=-crosshead] path,[id$=-stickBottomArrowHead] path,[id$=-stickTopArrowHead] path{fill:none;stroke:var(--md-mermaid-sequence-message-line-color)}.loopLine{fill:var(--md-mermaid-sequence-loop-bg-color);stroke:var(--md-mermaid-sequence-loop-border-color)}.labelBox{fill:var(--md-mermaid-sequence-label-bg-color);stroke:none}.labelText,.labelText>span{font-family:var(--md-mermaid-font-family);fill:var(--md-mermaid-sequence-label-fg-color)}.sequenceNumber{fill:var(--md-mermaid-sequence-number-fg-color)}rect.rect{fill:var(--md-mermaid-sequence-box-bg-color);stroke:none}rect.rect+text.text{fill:var(--md-mermaid-sequence-box-fg-color)}[id$=-sequencenumber],defs #sequencenumber{fill:var(--md-mermaid-sequence-number-bg-color)!important}[class^=activation]{fill:var(--md-mermaid-label-bg-color);stroke:var(--md-mermaid-label-fg-color);stroke-width:1.5px}";var Vn,nf=0;function of(){return typeof mermaid=="undefined"||mermaid instanceof Element?ct("https://unpkg.com/mermaid@12/dist/mermaid.min.js"):U(void 0)}function uc(e){return e.classList.remove("mermaid"),Vn||(Vn=of().pipe(A(()=>mermaid.initialize({startOnLoad:!1,theme:"default",themeCSS:lc,themeVariables:{dropShadow:"none"},sequence:{actorFontSize:"16px",messageFontSize:"16px",noteFontSize:"16px"}})),m(()=>{}),ne(1))),Vn.subscribe(()=>Je(null,null,function*(){e.classList.add("mermaid");let t=`__mermaid_${nf++}`,r=C("div",{class:"mermaid"}),n=e.textContent,{svg:o,bindFunctions:i}=yield mermaid.render(t,n),a=r.attachShadow({mode:"closed"});a.innerHTML=o,e.replaceWith(r),i==null||i(a)})),Vn.pipe(m(()=>({ref:e})))}var pc=C("table");function fc(e){return e.replaceWith(pc),pc.replaceWith(qs(e)),U({ref:e})}function af(e){let t=e.find(r=>r.checked)||e[0];return R(...e.map(r=>b(r,"change").pipe(m(()=>Y(`label[for="${r.id}"]`))))).pipe(G(Y(`label[for="${t.id}"]`)),m(r=>({active:r})))}function mc(e,{viewport$:t}){let r=Y(".tabbed-labels",e),n=k(":scope > input",e),o=Vo("prev");e.append(o);let i=Vo("next");return e.append(i),P(()=>{let a=new I,s=a.pipe(_e(),Te(!0));ee([a,je(e),Mt(e)]).pipe(oe(s),rt(1,Fe)).subscribe({next([{active:l},c]){let u=kt(l),{width:f}=Ce(l);e.style.setProperty("--md-indicator-x",`${u.x}px`),e.style.setProperty("--md-indicator-width",`${f}px`);let p=xn(r);(u.xp.x+c.width)&&r.scrollTo({left:Math.max(0,u.x-16),behavior:"smooth"})},complete(){e.style.removeProperty("--md-indicator-x"),e.style.removeProperty("--md-indicator-width")}}),ee([qt(r),je(r)]).pipe(oe(s)).subscribe(([l,c])=>{let u=Ir(r);o.hidden=l.x<16,i.hidden=l.x>u.width-c.width-16}),R(b(o,"click").pipe(m(()=>-1)),b(i,"click").pipe(m(()=>1))).pipe(oe(s)).subscribe(l=>{let{width:c}=Ce(r);r.scrollBy({left:c*l,behavior:"smooth"})}),r.classList.add("tabbed-labels--linked");for(let l of n){let c=Y(`label[for="${l.id}"]`);c.replaceChildren(C("a",{href:`#${c.htmlFor}`,tabIndex:-1},...Array.from(c.childNodes))),b(c.firstElementChild,"click").pipe(oe(s),S(u=>!(u.metaKey||u.ctrlKey)),A(u=>{u.preventDefault(),u.stopPropagation()})).subscribe(()=>{history.replaceState({},"",`#${c.htmlFor}`),c.click()})}return J("content.tabs.link")&&a.pipe(we(1),ue(t)).subscribe(([{active:l},{offset:c}])=>{let u=l.innerText.trim();if(l.hasAttribute("data-md-switching"))l.removeAttribute("data-md-switching");else{let f=e.offsetTop-c.y;for(let d of k("[data-tabs]"))for(let h of k(":scope > input",d)){let v=Y(`label[for="${h.id}"]`);if(v!==l&&v.innerText.trim()===u){v.setAttribute("data-md-switching",""),h.click();break}}window.scrollTo({top:e.offsetTop-f});let p=__md_get("__tabs")||[];__md_set("__tabs",[...new Set([u,...p])])}}),a.pipe(oe(s)).subscribe(()=>{for(let l of k("audio, video",e))l.offsetWidth&&l.autoplay?l.play().catch(()=>{}):l.pause()}),af(n).pipe(A(l=>a.next(l)),W(()=>a.complete()),m(l=>M({ref:e},l)))}).pipe(Ft(Me))}function dc(e,t){for(let r of k("details",e))!r.open&&r.contains(t)&&(r.open=!0);for(let r of k("[data-tabs]",e)){let n=k(":scope > input",r),o=n.indexOf(t);o===-1&&(o=k(":scope > .tabbed-content > .tabbed-block",r).findIndex(s=>s.contains(t)));let i=n[o];i&&!i.checked&&i.click()}for(let r of k(".md-annotation",e))r.contains(t)&&r.focus()}function hc(e,{target$:t}){let r=window.location.href;return t.pipe(g((n,o)=>P(()=>{let i=n.id,a=document.getElementById(i)||n;if(!e.contains(a))return w;let s=window.location.href,l=J("navigation.instant")?history.state:null,c=performance.getEntriesByType("navigation")[0],u=o===0&&s===r&&!J("navigation.instant")&&navigator.vendor!=="Apple Computer, Inc."&&document.readyState!=="complete"&&((c==null?void 0:c.type)==="reload"||(c==null?void 0:c.type)==="back_forward");return dc(e,a),Sr().pipe(de(11),m((f,p)=>({target:document.getElementById(i)||a,frame:p})),$r(f=>e.contains(f.target)&&window.location.href===s),A(f=>dc(e,f.target)),S(f=>f.target.getClientRects().length>0||f.frame===10),de(1),A(f=>{typeof(l==null?void 0:l.y)=="number"?window.scrollTo(l.x,l.y):u||f.target.scrollIntoView()}),m(f=>({ref:f.target,id:i})))})))}function vc(e,t){let{sitemap$:r,viewport$:n,target$:o,print$:i}=t;return R(...k(".annotate:not(.highlight)",e).map(a=>Js(a,{print$:i})),...k(".pyodide",e).map(a=>oc(a)),...k("pre:not(.mermaid) > code",e).filter(a=>!a.closest(".pyodide")).map(a=>ec(a,{target$:o,print$:i})),...k("a",e).map(a=>cc(a,{sitemap$:r,viewport$:n})),...k("pre.mermaid",e).map(a=>uc(a)),...[k(".glightbox",e)].filter(a=>a.length>0).map(a=>ic(a)),...k("table:not([class])",e).map(a=>fc(a)),...k("details",e).map(a=>tc(a,{print$:i})),...k("[data-tabs]",e).map(a=>mc(a,{viewport$:n})),hc(e,{target$:o}),...k("[title]:not([data-preview])",e).filter(()=>J("content.tooltips")).map(a=>et(a,{viewport$:n})),...k(".footnote-ref",e).filter(()=>J("content.footnote.tooltips")).map(a=>Kr(a,{content$:new j(s=>{let l=new URL(a.href).hash.slice(1),c=Array.from(document.getElementById(l).cloneNode(!0).children),u=Dn(...c);return s.next(u),document.body.append(u),()=>u.remove()}),viewport$:n})))}function sf(e,{alert$:t}){return t.pipe(g(r=>R(U(!0),U(!1).pipe(Ar(2e3))).pipe(m(n=>({message:r,active:n})))))}function bc(e,t){let r=Y(".md-typeset",e);return P(()=>{let n=new I;return n.subscribe(({message:o,active:i})=>{e.classList.toggle("md-dialog--active",i),r.textContent=o}),sf(e,t).pipe(A(o=>n.next(o)),W(()=>n.complete()),m(o=>M({ref:e},o)))})}function cf({viewport$:e}){if(!J("header.autohide"))return U(!1);let t=e.pipe(m(({offset:{y:o}})=>o),Dt(2,1),m(([o,i])=>[oMath.abs(i-o.y)>100),m(([,[o]])=>o),ae()),n=Fn("search");return ee([e,n]).pipe(m(([{offset:o},i])=>o.y>400&&!i),ae(),g(o=>o?r:U(!1)),G(!1))}function gc(e,t){return P(()=>ee([je(e),cf(t)])).pipe(m(([{height:r},n])=>({height:r,hidden:n})),ae((r,n)=>r.height===n.height&&r.hidden===n.hidden),ne(1))}function yc(e,{viewport$:t,header$:r,main$:n}){return P(()=>{let o=new I,i=o.pipe(_e(),Te(!0));o.pipe(he("active"),Ke(r)).subscribe(([{active:s},{hidden:l}])=>{e.classList.toggle("md-header--shadow",s&&!l),e.hidden=l});let a=me(k("[title]",e)).pipe(S(()=>J("content.tooltips")),re(s=>et(s,{viewport$:t})));return n.subscribe(o),r.pipe(oe(i),m(s=>M({ref:e},s)),Wt(a.pipe(oe(i))))})}function lf(e,{viewport$:t,header$:r}){return Nn(e,{viewport$:t,header$:r}).pipe(m(({offset:{y:n}})=>{let{height:o}=Ce(e);return{active:o>0&&n>=o}}),he("active"))}function _c(e,t){return P(()=>{let r=new I;r.subscribe({next({active:o}){e.classList.toggle("md-header__title--active",o)},complete(){e.classList.remove("md-header__title--active")}});let n=Se(".md-content h1");return typeof n=="undefined"?w:lf(n,t).pipe(A(o=>r.next(o)),W(()=>r.complete()),m(o=>M({ref:e},o)))})}function xc(e,{viewport$:t,header$:r}){let n=r.pipe(m(({height:i})=>i),ae()),o=n.pipe(g(()=>je(e).pipe(m(({height:i})=>({top:e.offsetTop,bottom:e.offsetTop+i})),he("bottom"))));return ee([n,o,t]).pipe(m(([i,{top:a,bottom:s},{offset:{y:l},size:{height:c}}])=>(c=Math.max(0,c-Math.max(0,a-l,i)-Math.max(0,c+l-s)),{offset:a-i,height:c,active:a-i<=l})),ae((i,a)=>i.offset===a.offset&&i.height===a.height&&i.active===a.active))}function uf(e){let t=__md_get("__palette")||{index:e.findIndex(n=>matchMedia(n.getAttribute("data-md-color-media")).matches)},r=Math.max(0,Math.min(t.index,e.length-1));return U(...e).pipe(re(n=>b(n,"change").pipe(m(()=>n))),G(e[r]),m(n=>({index:e.indexOf(n),color:{media:n.getAttribute("data-md-color-media"),scheme:n.getAttribute("data-md-color-scheme"),primary:n.getAttribute("data-md-color-primary"),accent:n.getAttribute("data-md-color-accent")}})),ne(1))}function wc(e){let t=k("input",e),r=C("meta",{name:"theme-color"});document.head.appendChild(r);let n=C("meta",{name:"color-scheme"});document.head.appendChild(n);let o=qr("(prefers-color-scheme: light)");return P(()=>{let i=new I;return i.subscribe(a=>{var u;if(a.color.media==="(prefers-color-scheme)"){let f=matchMedia("(prefers-color-scheme: light)"),p=document.querySelector(f.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");a.color.scheme=p.getAttribute("data-md-color-scheme"),a.color.primary=p.getAttribute("data-md-color-primary"),a.color.accent=p.getAttribute("data-md-color-accent")}let s=t.map(f=>f.nextElementSibling).find(f=>f instanceof HTMLElement&&!f.hidden),l=t[a.index].nextElementSibling,c=s instanceof HTMLElement&&s!==l&&s.matches(":hover");if(c){let f=s.getAttribute("aria-describedby");f&&((u=document.getElementById(f))==null||u.style.setProperty("transition-duration","0ms")),s.dispatchEvent(new MouseEvent("mouseleave"))}for(let f=0;fa.key==="Enter"),ue(i,(a,s)=>s)).subscribe(({index:a})=>{a=(a+1)%t.length,t[a].click(),t[a].focus()}),i.pipe(g(()=>Sr().pipe(we(1),de(1))),m(()=>{let a=xt("header"),s=window.getComputedStyle(a);return n.content=s.colorScheme,s.backgroundColor.match(/\d+/g).map(l=>(+l).toString(16).padStart(2,"0")).join("")}),W(()=>{document.body.removeAttribute("data-md-color-switching")})).subscribe(a=>{r.content=`#${a}`,document.body.removeAttribute("data-md-color-switching")}),uf(t).pipe(oe(o.pipe(we(1))),Vt(),A(a=>i.next(a)),W(()=>i.complete()),m(a=>M({ref:e},a)))})}function Ec(e,{progress$:t}){return P(()=>{let r=new I;return r.subscribe(({value:n})=>{e.style.setProperty("--md-progress-value",`${n}`)}),t.pipe(A(n=>r.next({value:n})),W(()=>r.complete()),m(n=>({ref:e,value:n})))})}var Tc='.u{text-decoration-style:wavy!important}.l{position:absolute;width:100%;height:100%;background-color:rgba(var(--color-backdrop)/var(--alpha-lighter));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);pointer-events:auto;transition:opacity .25s;cursor:pointer}@starting-style{.l{opacity:0}}.l.m{opacity:0;pointer-events:none;transition:opacity .35s}.a{position:relative;z-index:1;display:flex;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;padding:0;font-family:var(--font-family);border:none;border-radius:var(--space-2);background-color:initial;transition:background-color .25s,color .25s;cursor:pointer;outline:none}.a svg{stroke:rgb(var(--color-foreground));opacity:.5;width:18px;height:18px}.a:before{position:absolute;inset:0;z-index:0;background-color:rgb(var(--color-background-subtle));content:"";opacity:0;transition:transform 125ms,opacity 125ms;transform:scale(.75);border-radius:var(--border-radius-2)}.a:hover:before{opacity:1;transform:scale(1)}.a.c{cursor:auto}.a.c:before{display:none}.e{display:flex;position:absolute;width:720px;height:70vh;overflow:hidden;background-color:rgba(var(--color-background)/var(--alpha-light));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:var(--space-3);border:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));box-shadow:0 0 60px #0000000d;pointer-events:auto;transition:transform .25s cubic-bezier(.16,1,.3,1),opacity .25s}@starting-style{.e{opacity:0;transform:scale(1.1)}}.e.d{opacity:0;pointer-events:none;transform:scale(1.1);transition:transform .25s .15s,opacity .15s}@media(max-width:740px){.e{width:100%;height:100%;border-radius:0}}.v{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0}@keyframes g{0%{transform:scale(0)}50%{transform:scale(1.2)}to{transform:scale(1)}}.y{position:absolute;background:var(--color-highlight);color:#fff;font-weight:700;font-size:8px;padding-top:1px;border-radius:100%;width:12px;height:12px;top:4px;inset-inline-end:4px;animation:g .25s ease-in-out}.t{position:relative;flex-shrink:0;width:200px;overflow-y:scroll;background-color:rgb(var(--color-background-subtle)/var(--alpha-lighter));border-inline-start:1px solid rgb(var(--color-foreground)/var(--alpha-lightest));transition:width .35s cubic-bezier(.16,1,.3,1),opacity .25s 50ms}.t>*{transform:translate(0)}.t.d{width:0;opacity:0;transition:width .35s cubic-bezier(.16,1,.3,1),opacity .1s}@media(max-width:680px){.t{position:absolute;top:calc(37px + 2 * var(--space-2));height:calc(100% - 37px - 2 * var(--space-2));background-color:rgba(var(--color-background-subtle)/var(--alpha-light));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 0 60px #00000026;inset-inline-end:0}}.w{display:flex;gap:var(--space-1);padding:var(--space-2);border-bottom:1px solid rgb(var(--color-foreground)/var(--alpha-lightest))}.k{flex:1 1 auto;min-height:0;-webkit-overflow-scrolling:touch;overflow:auto;overscroll-behavior:contain}.z{padding:8px 10px}.j{position:absolute;width:100%;color:rgb(var(--color-foreground)/var(--alpha-light));padding:var(--space-2)}.F,.j{display:flex;flex-direction:column}.F{gap:2px;list-style:none;margin:0}.F,.I{padding:0}.I{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.R{margin:0;font-size:16px;font-weight:400}.R,.X{padding:8px}.X{margin:4px 0 0;opacity:.5}.X,.i{font-size:12px}.i{position:relative;display:flex;width:100%;font-family:inherit;color:inherit;text-align:start;border:none;background:#0000;padding:4px 8px;cursor:pointer}.i,.i:before{border-radius:var(--space-1)}.i:before{position:absolute;inset:0;z-index:0;background-color:var(--color-highlight-transparent);content:"";opacity:0;transition:transform 125ms,opacity 125ms;transform:scale(.75)}.i.b:before,.i:hover:before{opacity:1;transform:scale(1)}.i.b,.i:hover{color:var(--color-highlight)}.C,.o,.q,.s{flex-grow:1}.A,.o,.q{position:relative}.A{font-weight:700}.s input{width:100%;height:100%;color:rgb(var(--color-foreground));background:#0000;font-size:16px;font-family:var(--font-family);letter-spacing:-.25px;border:none;outline:none}:dir(rtl) .s input{direction:rtl;text-align:start}.h{display:flex;flex-direction:column;gap:var(--space-1);line-height:1.3;padding:0;color:rgb(var(--color-foreground)/var(--alpha-light));margin:var(--space-2);margin-top:0;list-style:none}.f,.h li{margin:0}.f{margin-top:var(--space-2);margin-bottom:var(--space-1);color:rgb(var(--color-foreground)/var(--alpha-lighter));font-size:12px;padding:0 18px}.f:empty{margin:0;padding:0}.o{display:flex;flex-direction:row;padding:8px 10px;border-radius:var(--space-2);cursor:pointer;color:inherit;text-decoration:none}.o:before{position:absolute;inset:0;z-index:0;display:block;background-color:rgb(var(--color-background-subtle));content:"";opacity:0;transition:transform 125ms,opacity 125ms;transform:scale(.9);border-radius:var(--border-radius-2)}.o.B:before{opacity:1;transform:scale(1)}@media(pointer:fine){.o:hover:before{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.o:before{transition:none}}.o mark{background:#0000;color:var(--color-highlight)}.o mark u{text-decoration:underline 1.5px}.C{min-width:0;display:flex;flex-direction:column;gap:var(--space-1)}.x{position:relative;font-size:14px;margin:0}.x code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px;font-size:13px}.n{position:relative;display:inline-flex;flex-wrap:wrap;flex:1 1 auto;min-width:0;font-size:12px;gap:var(--space-1);color:rgb(var(--color-foreground)/.45);list-style:none;padding:0;margin:0}.n li{white-space:nowrap}.n li:after{display:inline;margin-inline-start:var(--space-1);content:"/"}.n li:last-child:after{display:none;content:""}.p{position:relative;margin-top:2px;font-size:13px;color:rgb(var(--color-foreground));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;line-height:1.5;-webkit-line-clamp:2}.p:empty{display:none}.p code{background:rgb(var(--color-background-subtle));border-radius:var(--space-1);padding:2px 4px;font-size:12px}.r{position:fixed;inset:0;display:flex;justify-content:center;align-items:center;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:none;background:#0000;pointer-events:none;transition:display .4s allow-discrete,overlay .4s allow-discrete;--space-1:4px;--space-2:calc(2 * var(--space-1));--space-3:calc(2 * var(--space-2));--space-4:calc(2 * var(--space-3));--space-5:calc(2 * var(--space-4));--alpha-light:.7;--alpha-lighter:.54;--alpha-lightest:.07;--color-highlight:var(--md-accent-fg-color, #526cfe);--color-highlight-transparent:var( --md-accent-fg-color--transparent, #526cfe1a );--border-radius-1:var(--space-1);--border-radius-2:var(--space-2);--border-radius-3:calc(var(--space-1) + var(--space-2));--font-family:var( --md-text-font-family, Inter, Roboto Flex, system-ui, sans-serif );--font-size:16px;--line-height:1.5;--letter-spacing:-.5px;font-family:var(--font-family);font-size:var(--font-size);line-height:var(--line-height);letter-spacing:var(--letter-spacing);-webkit-font-smoothing:antialiased}.r:not([open]){display:none}.r::backdrop{background:#0000}.r[data-input-modality=keyboard] :where(button,a):focus-visible{outline:2px solid var(--color-highlight);outline-offset:2px}.r[data-tab-navigation=true] input:focus-visible{box-shadow:inset 0 -2px 0 var(--color-highlight)}@media(prefers-reduced-motion:reduce){.r,.r *,.r :after,.r :before{transition:none!important;animation:none!important}}@media(pointer:coarse){.r{height:-webkit-fill-available}}.r *,.r :after,.r :before{box-sizing:border-box}';function Sc(e,{index$:t}){let r=Pe(),n=document.createElement("div");document.body.appendChild(n),n.style.position="fixed",n.style.height="100%",n.style.top="0",n.style.zIndex="4";let o=n.attachShadow({mode:"open"});o.appendChild(C("style",{},Tc.toString()));try{xs(r.search,{highlight:r.features.includes("search.highlight"),navigate:i=>nt(new URL(i))}),me(t).subscribe(i=>{for(let a of i.items)a.location=new URL(`./${a.location}`,r.base).toString();Es(i,o)}),b(e,"click").subscribe(()=>{Po()}),Fn("search").pipe(we(1)).subscribe(()=>Po())}catch(i){e.hidden=!0;let a=Y("label[for=__search]");a.hidden=!0}return Ze}var Oc=Er(Wo());function Lc(e,{index$:t,location$:r}){return ee([t,r.pipe(G(fe()),S(n=>!!n.searchParams.get("h")))]).pipe(m(([n,o])=>ff(n.config)(o.searchParams.get("h"))),m(n=>{var a;let o=new Map,i=document.createNodeIterator(e,NodeFilter.SHOW_TEXT);for(let s=i.nextNode();s;s=i.nextNode())if((a=s.parentElement)!=null&&a.offsetHeight){let l=s.textContent,c=n(l);c.length>l.length&&o.set(s,c)}for(let[s,l]of o){let{childNodes:c}=C("span",null,l);s.replaceWith(...Array.from(c))}return{ref:e,nodes:o}}))}function ff(e){let t=e.separator.split("|").map(o=>o.replace(/(\(\?[!=<][^)]+\))/g,"").length===0?"\uFFFD":o).join("|"),r=new RegExp(t,"img"),n=(o,i,a)=>`${i}${a}`;return o=>{o=o.replace(/\s+/g," ").replace(/&/g,"&").trim();let i=o.split(r).map(s=>s.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")).filter(s=>s.length>=2).join("|");if(!i)return s=>s;let a=new RegExp(`(^|${e.separator}|)(${i})`,"img");return s=>(0,Oc.default)(s).replace(a,n).replace(/<\/mark>(\s+)]*>/img,"$1")}}function mf(e,{viewport$:t,main$:r}){let n=e.closest(".md-grid"),o=n.offsetTop-n.parentElement.offsetTop;return ee([r,t]).pipe(m(([{offset:i,height:a},{offset:{y:s}}])=>(a=a+Math.min(o,Math.max(0,s-i))-o,{height:a,locked:s>=i+o})),ae((i,a)=>i.height===a.height&&i.locked===a.locked))}function Zo(e,n){var o=n,{header$:t}=o,r=wr(o,["header$"]);let i=Y(".md-sidebar__scrollwrap",e),{y:a}=kt(i);return P(()=>{let s=new I,l=s.pipe(_e(),Te(!0)),c=s.pipe(rt(0,Fe));return c.pipe(ue(t)).subscribe({next([{height:u},{height:f}]){i.style.height=`${u-2*a}px`,e.style.top=`${f}px`},complete(){i.style.height="",e.style.top=""}}),c.pipe(Cr()).subscribe(()=>{for(let u of k(".md-nav__link--active[href]",e)){if(!u.clientHeight)continue;let f=u.closest(".md-sidebar__scrollwrap");if(typeof f!="undefined"){let p=u.offsetTop-f.offsetTop,{height:d}=Ce(f);f.scrollTo({top:p-d/2})}}}),me(k("label[tabindex]",e)).pipe(re(u=>b(u,"click").pipe(ze(Me),m(()=>u),oe(l)))).subscribe(u=>{let f=Y(`[id="${u.htmlFor}"]`);Y(`[aria-labelledby="${u.id}"]`).setAttribute("aria-expanded",`${f.checked}`)}),J("content.tooltips")&&me(k("abbr[title]",e)).pipe(re(u=>et(u,{viewport$})),oe(l)).subscribe(),mf(e,r).pipe(A(u=>s.next(u)),W(()=>s.complete()),m(u=>M({ref:e},u)))})}function kc(e,t){if(typeof t!="undefined"){let r=`https://api.github.com/repos/${e}/${t}`;return Nt(Ge(`${r}/releases/latest`).pipe(le(()=>w),m(n=>({version:n.tag_name})),st({})),Ge(r).pipe(le(()=>w),m(n=>({stars:n.stargazers_count,forks:n.forks_count})),st({}))).pipe(m(([n,o])=>M(M({},n),o)))}else{let r=`https://api.github.com/users/${e}`;return Ge(r).pipe(m(n=>({repositories:n.public_repos})),st({}))}}function Mc(e,t){let r=`https://${e}/api/v4/projects/${encodeURIComponent(t)}`;return Nt(Ge(`${r}/releases/permalink/latest`).pipe(le(()=>w),m(({tag_name:n})=>({version:n})),st({})),Ge(r).pipe(le(()=>w),m(({star_count:n,forks_count:o})=>({stars:n,forks:o})),st({}))).pipe(m(([n,o])=>M(M({},n),o)))}function Ac(e){let t=e.match(/^.+github\.com\/([^/]+)\/?([^/]+)?/i);if(t){let[,r,n]=t;return kc(r,n)}if(t=e.match(/^.+?([^/]*gitlab[^/]+)\/(.+?)\/?$/i),t){let[,r,n]=t;return Mc(r,n)}return w}var Cc;function df(e){return Cc||(Cc=P(()=>{let t=__md_get("__source",sessionStorage);if(t)return U(t);if(Oe("consent").length){let n=__md_get("__consent");if(!(n&&n.github))return w}return Ac(e.href).pipe(A(n=>__md_set("__source",n,sessionStorage)))}).pipe(le(()=>w),S(t=>Object.keys(t).length>0),m(t=>({facts:t})),ne(1)))}function Hc(e){let t=Y(":scope > :last-child",e);return P(()=>{let r=new I;return r.subscribe(({facts:n})=>{t.appendChild(zs(n)),t.classList.add("md-source__repository--active")}),df(e).pipe(A(n=>r.next(n)),W(()=>r.complete()),m(n=>M({ref:e},n)))})}function hf(e,{viewport$:t,header$:r}){return je(document.body).pipe(g(()=>Nn(e,{header$:r,viewport$:t})),m(({offset:{y:n}})=>({hidden:n>=10})),he("hidden"))}function $c(e,t){return P(()=>{let r=new I;return r.subscribe({next({hidden:n}){e.hidden=n},complete(){e.hidden=!1}}),(J("navigation.tabs.sticky")?U({hidden:!1}):hf(e,t)).pipe(A(n=>r.next(n)),W(()=>r.complete()),m(n=>M({ref:e},n)))})}function vf(e,{viewport$:t,header$:r}){let n=new Map,o=k(".md-nav__link",e);for(let s of o){let l=decodeURIComponent(s.hash.substring(1)),c=Se(`[id="${l}"]`);typeof c!="undefined"&&n.set(s,c)}let i=r.pipe(he("height"),m(({height:s})=>{let l=xt("main"),c=Y(":scope > :first-child",l);return s+.9*(c.offsetTop-l.offsetTop)}),xe());return je(document.body).pipe(he("height"),g(s=>P(()=>{let l=[];return U([...n].reduce((c,[u,f])=>{for(;l.length&&n.get(l[l.length-1]).tagName>=f.tagName;)l.pop();let p=f.offsetTop;for(;!p&&f.parentElement;)f=f.parentElement,p=f.offsetTop;let d=f.offsetParent;for(;d;d=d.offsetParent)p+=d.offsetTop;return c.set([...l=[...l,u]].reverse(),p)},new Map))}).pipe(m(l=>new Map([...l].sort(([,c],[,u])=>c-u))),Ke(i),g(([l,c])=>t.pipe(Hr(([u,f],{offset:{y:p},size:d})=>{let h=p+d.height>=Math.floor(s.height);for(;f.length;){let[,v]=f[0];if(v-c=p&&!h)f=[u.pop(),...f];else break}return[u,f]},[[],[...l]]),ae((u,f)=>u[0]===f[0]&&u[1]===f[1])))))).pipe(m(([s,l])=>({prev:s.map(([c])=>c),next:l.map(([c])=>c)})),G({prev:[],next:[]}),Dt(2,1),m(([s,l])=>s.prev.length{let{pathname:i}=fe(),a=new I,s=a.pipe(_e(),Te(!0));a.subscribe(({prev:c,next:u})=>{for(let[f]of u)f.classList.remove("md-nav__link--passed"),f.classList.remove("md-nav__link--active");for(let[f,[p]]of c.entries())p.classList.add("md-nav__link--passed"),p.classList.toggle("md-nav__link--active",f===c.length-1)});let l=Se(".md-sidebar--secondary");if(typeof l!="undefined"&&b(document.body,"click").subscribe(c=>{let u=c.target;if(!l.contains(u)){let f=Se(".md-nav__toggle",l);typeof f!="undefined"&&(f.checked=!1)}}),J("toc.follow")){let c=R(t.pipe(Qe(1),m(()=>{})),t.pipe(Qe(250),m(()=>"smooth")));a.pipe(S(({prev:u})=>u.length>0),Ke(n.pipe(ze(Me))),ue(c)).subscribe(([[{prev:u}],f])=>{let[p]=u[u.length-1];if(p.offsetHeight){let d=Zi(p);if(typeof d!="undefined"){let h=p.offsetTop-d.offsetTop,{height:v}=Ce(d);d.scrollTo({top:h-v/2,behavior:f})}}})}return J("navigation.tracking")&&t.pipe(he("offset"),Qe(250),we(1),oe(o.pipe(we(1))),Vt({delay:250}),ue(a),oe(s)).subscribe(([,{prev:c}])=>{let u=fe();if(u.pathname!==i)return;let f=c[c.length-1];if(f&&f.length){let[p]=f,{hash:d}=new URL(p.href);u.hash!==d&&(u.hash=d,history.replaceState(history.state,"",`${u}`))}else u.hash="",history.replaceState(history.state,"",`${u}`)}),vf(e,{viewport$:t,header$:r}).pipe(A(c=>a.next(c)),W(()=>a.complete()),m(c=>M({ref:e},c)))})}function bf(e,{viewport$:t,main$:r,target$:n}){let o=t.pipe(m(({offset:{y:a}})=>a),Dt(2,1),m(([a,s])=>a>s&&s>0),ae()),i=r.pipe(m(({active:a})=>a));return ee([i,o]).pipe(m(([a,s])=>!(a&&s)),ae(),oe(n.pipe(we(1))),Te(!0),Vt({delay:250}),m(a=>({hidden:a})))}function Ic(e,{viewport$:t,header$:r,main$:n,target$:o}){let i=new I,a=i.pipe(_e(),Te(!0));return i.subscribe({next({hidden:s}){e.hidden=s,s?(e.setAttribute("tabindex","-1"),e.blur()):e.removeAttribute("tabindex")},complete(){e.style.top="",e.hidden=!0,e.removeAttribute("tabindex")}}),r.pipe(oe(a),he("height")).subscribe(({height:s})=>{e.style.top=`${s+16}px`}),b(e,"click").subscribe(s=>{s.preventDefault(),window.scrollTo({top:0})}),bf(e,{viewport$:t,main$:n,target$:o}).pipe(A(s=>i.next(s)),W(()=>i.complete()),m(s=>M({ref:e},s)))}function Rc(e,t){return e.protocol=t.protocol,e.hostname=t.hostname,t.port&&(e.port=t.port),e}function gf(e){if(!e.length)return;let t=e.reduce((n,o)=>n.pathname.length<=o.pathname.length?n:o),r=t.pathname.endsWith("/")?t.pathname:`${t.pathname}/`;return e.every(n=>n.origin===t.origin&&(n.pathname===t.pathname||n.pathname.startsWith(r)))?t:void 0}function yf(e,t,r){let n=t.pathname.endsWith("/")?t.pathname:`${t.pathname}/`,o=e.pathname===t.pathname?"":e.pathname.slice(n.length),i=new URL(r);return i.pathname.endsWith("/")||(i.pathname+="/"),new URL(`${o}${e.search}${e.hash}`,i)}function _f(e,t){let r=new Map,n=k("url",e),o=n.map(a=>Rc(new URL(Y("loc",a).textContent),t)),i=gf(o);for(let a=0;a_f(t,new URL(e))),le(()=>U(new Map)),xe())}function jc({document$:e}){let t=new Map;e.pipe(g(()=>k("link[rel=alternate][hreflang]")),m(r=>new URL(r.href)),S(r=>!t.has(r.toString())),re(r=>br(r).pipe(m(n=>[r,n]),le(()=>w)))).subscribe(([r,n])=>{t.set(r.toString().replace(/\/$/,""),n)}),b(document.body,"click").pipe(S(r=>!r.metaKey&&!r.ctrlKey),g(r=>{if(r.target instanceof Element){let n=r.target.closest("a");if(n&&!n.target){let o=[...t].find(([f])=>n.href.startsWith(`${f}/`));if(typeof o=="undefined")return w;let[i,a]=o,s=fe();if(s.href.startsWith(i))return w;let l=Pe(),c=s.href.replace(l.base,"");c=`${i}/${c}`;let u=a.has(c.split("#")[0])?new URL(c,l.base):new URL(i);return r.preventDefault(),U(u)}}return w})).subscribe(r=>nt(r,!0))}var Qo=Er(qo());function xf(e){e.setAttribute("data-md-copying","");let t=e.closest("[data-copy]"),r=t?t.getAttribute("data-copy"):e.innerText;return e.removeAttribute("data-md-copying"),r.trimEnd()}function wf(e){return Je(this,null,function*(){if(!navigator.clipboard)throw new Error("Clipboard access is unavailable");let t=fetch(e).then(r=>{var n;if(!r.ok||(n=r.headers.get("Content-Type"))!=null&&n.includes("text/html"))throw new Error("The Markdown export could not be loaded");return r.text()});if(typeof ClipboardItem!="undefined"&&navigator.clipboard.write){let r=t.then(n=>new Blob([n],{type:"text/plain"}));yield Promise.all([r,navigator.clipboard.write([new ClipboardItem({"text/plain":r})])])}else yield navigator.clipboard.writeText(yield t)})}function Uc({alert$:e}){Qo.default.isSupported()&&new j(t=>{new Qo.default("[data-clipboard-target], [data-clipboard-text]",{text:r=>r.getAttribute("data-clipboard-text")||xf(Y(r.getAttribute("data-clipboard-target")))}).on("success",r=>t.next(r))}).pipe(A(t=>{t.trigger.focus()}),m(()=>_t("clipboard.copied"))).subscribe(e),b(document.body,"click").subscribe(t=>Je(null,null,function*(){if(!(t.target instanceof Element))return;let r=t.target.closest("button[data-md-copy-url]");if(!(!r||r.disabled)){r.disabled=!0,r.setAttribute("aria-busy","true");try{let n=new URL(r.getAttribute("data-md-copy-url"),document.baseURI);yield wf(n),r.isConnected&&e.next(_t("clipboard.copied"))}catch(n){r.isConnected&&e.next(_t("clipboard.error"))}finally{r.disabled=!1,r.removeAttribute("aria-busy")}}}))}function Fc(e,t){if(!(e.target instanceof Element))return w;let r=e.target.closest("a");if(r===null||!r.hasAttribute("href"))return w;if(r.target||e.metaKey||e.ctrlKey)return w;let n=new URL(r.href);return n.search=n.hash="",t.has(`${n}`)?(e.preventDefault(),U(r)):w}function Nc(e){let t=new Map;for(let r of k(":scope > *",e.head))t.set(r.outerHTML,r);return t}function Dc(e){for(let t of k("[href], [src]",e))for(let r of["href","src"]){let n=t.getAttribute(r);if(n&&!/^(?:[a-z]+:)?\/\//i.test(n)){t[r]=t[r];break}}return U(e)}function Ef(e){var r;if(e.tagName!=="STYLE")return!1;let t=(r=e.textContent)!=null?r:"";return t.includes(".ace_editor")||t.includes(".ace-zensical")||t.includes(".ace_scroller")||t.includes(".ace_gutter")}function Tf(e){for(let n of["[data-md-component=announce]","[data-md-component=container]","[data-md-component=header-topic]","[data-md-component=outdated]","[data-md-component=logo]","[data-md-component=skip]",...J("navigation.tabs.sticky")?["[data-md-component=tabs]"]:[]]){let o=Se(n),i=Se(n,e);typeof o!="undefined"&&typeof i!="undefined"&&o.replaceWith(i)}let t=Nc(document);for(let[n,o]of Nc(e))t.has(n)?t.delete(n):document.head.appendChild(o);for(let n of t.values()){let o=n.getAttribute("name");o!=="theme-color"&&o!=="color-scheme"&&!Ef(n)&&n.remove()}let r=xt("container");return at(k("script",r)).pipe(lo(n=>{let o=e.createElement("script");for(let i of n.getAttributeNames())o.setAttribute(i,n.getAttribute(i));return o.textContent=n.textContent,n.src?new j(i=>(o.onload=o.onerror=()=>i.complete(),n.replaceWith(o),()=>{o.onload=o.onerror=null})):(n.replaceWith(o),w)}),_e(),Te(document))}function Wc({sitemap$:e,location$:t,viewport$:r,progress$:n}){if(location.protocol==="file:")return Ze;U(document).subscribe(Dc);let o=fe().pathname,i=b(document.body,"click").pipe(Ke(e),g(([c,u])=>Fc(c,u)),m(({href:c})=>{let u=new URL(c),f=fe();return{url:u,repeated:f.pathname===u.pathname&&f.hash===u.hash}}),xe()),a=i.pipe(m(({url:c})=>c),xe()),s=b(window,"popstate").pipe(m(fe),xe());i.pipe(ue(r)).subscribe(([{url:c,repeated:u},{offset:f}])=>{history.replaceState(u?null:f,""),history.pushState(null,"",c)}),R(a,s).subscribe(c=>{navigator.vendor==="Apple Computer, Inc."&&c.pathname!==o&&c.hash&&history.replaceState(null,""),t.next(c)});let l=t.pipe(G(fe()),_n(),S(([c,u])=>c.pathname!==u.pathname),m(([,c])=>c),g(c=>Un(c,{progress$:n}).pipe(le(()=>(nt(c,!0),w)))),g(Dc),g(Tf),A(()=>{o=fe().pathname}),xe());return R(l.pipe(ue(t,(c,u)=>u)),l.pipe(g(()=>t),he("hash")),t.pipe(G(fe()),_n(),S(([c,u])=>c.pathname===u.pathname&&c.hash!==u.hash),m(([,c])=>c)),t.pipe(ae((c,u)=>c.pathname===u.pathname&&c.hash===u.hash),g(()=>i.pipe(S(({repeated:c})=>c),m(({url:c})=>c))),A(()=>history.back()))).subscribe(c=>{var u,f;history.state!==null||!c.hash?window.scrollTo(0,(f=(u=history.state)==null?void 0:u.y)!=null?f:0):(history.scrollRestoration="auto",Ls(c.hash),history.scrollRestoration="manual")}),t.subscribe(()=>{history.scrollRestoration="manual"}),b(window,"beforeunload").subscribe(()=>{history.scrollRestoration="auto"}),r.pipe(he("offset"),ue(l.pipe(m(fe),G(fe()))),S(([,c])=>c.pathname===fe().pathname),Qe(100)).subscribe(([{offset:c},u])=>{u.pathname===fe().pathname&&history.replaceState(c,"")}),J("navigation.instant.prefetch")&&R(b(document.body,"mousemove"),b(document.body,"focusin")).pipe(Ke(e),g(([c,u])=>Fc(c,u)),Qe(25),po(({href:c})=>c),yn(c=>{let u=document.createElement("link");return u.rel="prefetch",u.href=c.toString(),document.head.appendChild(u),b(u,"load").pipe(m(()=>u),de(1))})).subscribe(c=>c.remove()),l}function Sf(e,t){return e=new URL(e,fe()),Ge(e).pipe(m(r=>new Map(Object.entries(r).map(([n,o])=>[`${new URL(n,t)}`,new URL(o,t)]))),le(()=>U(new Map)))}function Vc({location$:e}){let t=Pe();if(!t.redirect)return;let r=Sf(t.redirect,t.base);R(U(fe()),e,b(window,"hashchange").pipe(m(fe))).pipe(Ke(r),m(([n,o])=>{let i=new URL(n);i.search="";let a=o.get(`${i}`);return(a==null?void 0:a.href)!==i.href?a:void 0}),S(n=>typeof n!="undefined")).subscribe(n=>window.location.replace(`${n}`))}function zc(e){var u;let{selectedVersionSitemap:t,selectedVersionBaseURL:r,currentLocation:n,currentBaseURL:o}=e,i=(u=ei(o))==null?void 0:u.pathname;if(i===void 0)return;let a=Of(n.pathname,i);if(a===void 0)return;let s=kf(t.keys());if(!t.has(s))return;let l=ei(a,s);if(!l||!t.has(l.href))return;let c=ei(a,r);if(c)return c.hash=n.hash,c.search=n.search,c}function ei(e,t){try{return new URL(e,t)}catch(r){return}}function Of(e,t){if(e.startsWith(t))return e.slice(t.length)}function Lf(e,t){let r=Math.min(e.length,t.length),n;for(n=0;nw)),n=r.pipe(m(o=>{var l;let[,i]=t.base.match(/([^/]+)\/?$/),a=((l=t.version)==null?void 0:l.default)||"latest",s=Array.isArray(a)?a:[a];return o.find(({version:c,aliases:u})=>c===i||u.includes(i))||o.find(({version:c,aliases:u})=>s.includes(c)||u.some(f=>s.includes(f)))||o[0]}));r.pipe(m(o=>new Map(o.map(i=>[`${new URL(`../${i.version}/`,t.base)}`,i]))),g(o=>b(document.body,"click").pipe(S(i=>!i.metaKey&&!i.ctrlKey),ue(n),g(([i,a])=>{if(i.target instanceof Element){let s=i.target.closest("a");if(s&&!s.target&&o.has(s.href)){let l=s.href;return!i.target.closest(".md-version")&&o.get(l)===a?w:(i.preventDefault(),U(new URL(l)))}}return w}),g(i=>br(i).pipe(m(a=>{var s;return(s=zc({selectedVersionSitemap:a,selectedVersionBaseURL:i,currentLocation:fe(),currentBaseURL:t.base}))!=null?s:i})))))).subscribe(o=>nt(o,!0)),ee([r,n]).subscribe(([o,i])=>{Y(".md-header__topic").appendChild(Ks(o,i))}),e.pipe(g(()=>n)).subscribe(o=>{var s;let i=new URL(t.base),a=__md_get("__outdated",sessionStorage,i);if(a===null){a=!0;let l=((s=t.version)==null?void 0:s.default)||"latest";Array.isArray(l)||(l=[l]);e:for(let c of l)for(let u of o.aliases.concat(o.version))if(new RegExp(c,"i").test(u)){a=!1;break e}__md_set("__outdated",a,sessionStorage,i)}if(a)for(let l of Oe("outdated"))l.hidden=!1})}function Kc({document$:e,viewport$:t}){e.pipe(g(()=>k(".md-ellipsis")),re(r=>Mt(r).pipe(oe(e.pipe(we(1))),S(n=>n),m(()=>r),de(1))),S(r=>r.offsetWidth{let n=r.innerText,o=r.closest("a")||r;return o.title=n,J("content.tooltips")?et(o,{viewport$:t}).pipe(oe(e.pipe(we(1))),W(()=>o.removeAttribute("title"))):w})).subscribe(),J("content.tooltips")&&e.pipe(g(()=>k(".md-status")),re(r=>et(r,{viewport$:t}))).subscribe()}function Bc({document$:e,tablet$:t}){e.pipe(g(()=>k(".md-toggle--indeterminate")),A(r=>{r.indeterminate=!0,r.checked=!1}),re(r=>b(r,"change").pipe($r(()=>r.classList.contains("md-toggle--indeterminate")),m(()=>r))),ue(t)).subscribe(([r,n])=>{r.classList.remove("md-toggle--indeterminate"),n&&(r.checked=!1)})}function Mf(){return/(iPad|iPhone|iPod)/.test(navigator.userAgent)}function Gc({document$:e}){e.pipe(g(()=>k("[data-md-scrollfix]")),A(t=>t.removeAttribute("data-md-scrollfix")),S(Mf),re(t=>b(t,"touchstart").pipe(m(()=>t)))).subscribe(t=>{let r=t.scrollTop;r===0?t.scrollTop=1:r+t.offsetHeight===t.scrollHeight&&(t.scrollTop=r-1)})}Object.entries||(Object.entries=function(e){let t=[];for(let r of Object.keys(e))t.push([r,e[r]]);return t});Object.values||(Object.values=function(e){let t=[];for(let r of Object.keys(e))t.push(e[r]);return t});typeof Element!="undefined"&&(Element.prototype.scrollTo||(Element.prototype.scrollTo=function(e,t){typeof e=="object"?(this.scrollLeft=e.left,this.scrollTop=e.top):(this.scrollLeft=e,this.scrollTop=t)}),Element.prototype.replaceWith||(Element.prototype.replaceWith=function(...e){let t=this.parentNode;if(t){e.length===0&&t.removeChild(this);for(let r=e.length-1;r>=0;r--){let n=e[r];typeof n=="string"?n=document.createTextNode(n):n.parentNode&&n.parentNode.removeChild(n),r?t.insertBefore(this.previousSibling,n):t.replaceChild(n,this)}}}));function Af(){return location.protocol==="file:"?ct(`${new URL("search.js",zn.base)}`).pipe(m(()=>__index),le(()=>Ze),ne(1)):Ge(new URL("search.json",zn.base))}document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var wt=Bi(),yr=Ss(),gr=ks(yr),Jc=Ts(),Ye=Is(),ti=qr("(min-width: 60em)"),Xc=qr("(min-width: 76.25em)"),Zc=Ms(),zn=Pe(),Qc=Se(".md-search")?Af():Ze;Vc({location$:yr});var ri=new I;Uc({alert$:ri});jc({document$:wt});var ni=new I,el=br(zn.base);J("navigation.instant")&&Wc({sitemap$:el,location$:yr,viewport$:Ye,progress$:ni}).subscribe(wt);var Yc;((Yc=zn.version)==null?void 0:Yc.provider)==="mike"&&qc({document$:wt});R(yr,gr).pipe(Ar(125)).subscribe(()=>{Fo("drawer",!1),Fo("search",!1)});Jc.pipe(S(({mode:e,meta:t})=>e==="global"&&!t)).subscribe(e=>{switch(e.type){case",":case"p":let t=document.querySelector("link[rel=prev]");t instanceof HTMLLinkElement&&nt(t);break;case".":case"n":let r=document.querySelector("link[rel=next]");r instanceof HTMLLinkElement&&nt(r);break;case"/":let n=document.querySelector("[data-md-component=search] button");n instanceof HTMLButtonElement&&(n.click(),e.claim());break;case"Enter":let o=Lt();o instanceof HTMLLabelElement&&o.click()}});Kc({viewport$:Ye,document$:wt});Bc({document$:wt,tablet$:ti});Gc({document$:wt});var It=gc(xt("header"),{viewport$:Ye}),Yr=wt.pipe(m(()=>xt("main")),g(e=>xc(e,{viewport$:Ye,header$:It})),ne(1)),Cf=R(...Oe("consent").map(e=>js(e,{target$:gr})),...Oe("dialog").map(e=>bc(e,{alert$:ri})),...Oe("palette").map(e=>wc(e)),...Oe("progress").map(e=>Ec(e,{progress$:ni})),...Oe("search").map(e=>Sc(e,{index$:Qc})),...Oe("source").map(e=>Hc(e))),Hf=P(()=>R(...Oe("announce").map(e=>Rs(e)),...Oe("content").map(e=>vc(e,{sitemap$:el,viewport$:Ye,target$:gr,print$:Zc})),...Oe("content").map(e=>J("search.highlight")?Lc(e,{index$:Qc,location$:yr}):w),...Oe("header").map(e=>yc(e,{viewport$:Ye,header$:It,main$:Yr})),...Oe("header-title").map(e=>_c(e,{viewport$:Ye,header$:It})),...Oe("sidebar").map(e=>e.getAttribute("data-md-type")==="navigation"?Ro(Xc,()=>Zo(e,{viewport$:Ye,header$:It,main$:Yr})):Ro(ti,()=>Zo(e,{viewport$:Ye,header$:It,main$:Yr}))),...Oe("tabs").map(e=>$c(e,{viewport$:Ye,header$:It})),...Oe("toc").map(e=>Pc(e,{viewport$:Ye,header$:It,main$:Yr,target$:gr})),...Oe("top").map(e=>Ic(e,{viewport$:Ye,header$:It,main$:Yr,target$:gr})))),tl=wt.pipe(g(()=>Hf),Wt(Cf),ne(1));tl.subscribe();window.document$=wt;window.location$=yr;window.target$=gr;window.keyboard$=Jc;window.viewport$=Ye;window.tablet$=ti;window.screen$=Xc;window.print$=Zc;window.alert$=ri;window.progress$=ni;window.component$=tl;})(); diff --git a/dist/base.html b/dist/base.html index aca5ce18..20e97ead 100644 --- a/dist/base.html +++ b/dist/base.html @@ -281,7 +281,7 @@ {% endblock %} {% block scripts %} - + {% for script in config.extra_javascript %} {{ script | script_tag }} {% endfor %} diff --git a/src/assets/javascripts/components/content/target/index.ts b/src/assets/javascripts/components/content/target/index.ts index a0c5f774..a59e3341 100644 --- a/src/assets/javascripts/components/content/target/index.ts +++ b/src/assets/javascripts/components/content/target/index.ts @@ -126,8 +126,9 @@ function reveal(el: HTMLElement, target: HTMLElement): void { export function mountContentTarget( el: HTMLElement, { target$ }: MountOptions ): Observable> { + const initial = window.location.href return target$.pipe( - switchMap(target => defer(() => { + switchMap((target, index) => defer(() => { const id = target.id const current = document.getElementById(id) || target if (!el.contains(current)) @@ -140,6 +141,19 @@ export function mountContentTarget( ? history.state : null + // Preserve native full-page restoration after revealing hidden targets. + // WebKit favors fragments instead, so retain explicit alignment there. + // Later anchor clicks also need alignment after revealing their target. + const navigation = performance.getEntriesByType("navigation")[0] as + PerformanceNavigationTiming | undefined + const restoring = index === 0 && href === initial && + !feature("navigation.instant") && + navigator.vendor !== "Apple Computer, Inc." && + document.readyState !== "complete" && ( + navigation?.type === "reload" || + navigation?.type === "back_forward" + ) + // Reveal the target immediately so synchronous containers, such as // details and content tabs, don't need to wait for a rendering cycle. // An annotation is different: its tooltip is detached while inactive @@ -188,7 +202,7 @@ export function mountContentTarget( tap(state => { if (typeof offset?.y === "number") window.scrollTo(offset.x, offset.y) - else + else if (!restoring) state.target.scrollIntoView() }), map(state => ({ ref: state.target, id })) diff --git a/src/assets/javascripts/integrations/instant/index.ts b/src/assets/javascripts/integrations/instant/index.ts index 42c9b427..b1d14e23 100644 --- a/src/assets/javascripts/integrations/instant/index.ts +++ b/src/assets/javascripts/integrations/instant/index.ts @@ -318,6 +318,9 @@ export function setupInstantNavigation( of(document) .subscribe(resolve) + // Keep the mounted path separate from a URL whose document is still loading. + let pathname = getLocation().pathname + // -------------------------------------------------------------------------- // Navigation interception // -------------------------------------------------------------------------- @@ -377,7 +380,17 @@ export function setupInstantNavigation( // intercepted by other parts of the application, which can synchronously back // up or restore state before or after instant navigation happens. merge(instant$, history$) - .subscribe(location$) + .subscribe(url => { + // WebKit favors the fragment on cross-document history navigation. + // Same-document history and cancelled loads retain their saved position. + if ( + navigator.vendor === "Apple Computer, Inc." && + url.pathname !== pathname && url.hash + ) + history.replaceState(null, "") + + location$.next(url) + }) // -------------------------------------------------------------------------- // Fetching and parsing @@ -410,6 +423,7 @@ export function setupInstantNavigation( // contents into the currently active document switchMap(resolve), switchMap(inject), + tap(() => { pathname = getLocation().pathname }), share() )