Buckets:
| import{r as u,d as h,p as g,c as _,b as p,a as b,h as d,e as v,m as k,s as y,f as $,g as w,E as x,i as A,j as C,k as F,l as m}from"./BrY_21Bg.js";function R(o){if(/^\/(docs|learn)/.test(o)){const e=o.slice(1).split("/"),t=e.shift(),s=e.shift(),n=(t==="learn"?/^(?:pr_\d+)$/:/^(?:(master|main)|v[\d.]+(rc\d+)?|pr_\d+)$/).test(e[0])?e.shift():"main",i=/^[a-z]{2}(-[A-Z]{2})?$/.test(e[0])?e.shift():"en",f=e.join("/");if(s==="diffusers"&&n==="main"&&i==="en")return`/docs/diffusers/main/en/${f}`}}class E{anchor;#s=new Map;#t=new Map;#e=new Map;#i=new Set;#r=!0;constructor(e,t=!0){this.anchor=e,this.#r=t}#a=e=>{if(this.#s.has(e)){var t=this.#s.get(e),s=this.#t.get(t);if(s)u(s),this.#i.delete(t);else{var r=this.#e.get(t);r&&(u(r.effect),this.#t.set(t,r.effect),this.#e.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),s=r.effect)}for(const[a,n]of this.#s){if(this.#s.delete(a),a===e)break;const i=this.#e.get(n);i&&(h(i.effect),this.#e.delete(n))}for(const[a,n]of this.#t){if(a===t||this.#i.has(a))continue;const i=()=>{if(Array.from(this.#s.values()).includes(a)){var c=document.createDocumentFragment();k(n,c),c.append(_()),this.#e.set(a,{effect:n,fragment:c})}else h(n);this.#i.delete(a),this.#t.delete(a)};this.#r||!s?(this.#i.add(a),g(n,i,!1)):i()}}};#n=e=>{this.#s.delete(e);const t=Array.from(this.#s.values());for(const[s,r]of this.#e)t.includes(s)||(h(r.effect),this.#e.delete(s))};ensure(e,t){var s=b,r=y();if(t&&!this.#t.has(e)&&!this.#e.has(e))if(r){var a=document.createDocumentFragment(),n=_();a.append(n),this.#e.set(e,{effect:p(()=>t(n)),fragment:a})}else this.#t.set(e,p(()=>t(this.anchor)));if(this.#s.set(s,e),r){for(const[i,f]of this.#t)i===e?s.unskip_effect(f):s.skip_effect(f);for(const[i,f]of this.#e)i===e?s.unskip_effect(f.effect):s.skip_effect(f.effect);s.oncommit(this.#a),s.ondiscard(this.#n)}else d&&(this.anchor=v),this.#a(s)}}function T(o,e,t=!1){var s;d&&(s=v,w());var r=new E(o),a=t?x:0;function n(i,f){if(d){var c=A(s);if(i!==parseInt(c.substring(1))){var l=C();F(l),r.anchor=l,m(!1),r.ensure(i,f),m(!0);return}}r.ensure(i,f)}$(()=>{var i=!1;e((f,c=0)=>{i=!0,n(c,f)}),i||n(-1,null)},a)}export{E as B,R as g,T as i}; | |
Xet Storage Details
- Size:
- 2.17 kB
- Xet hash:
- b777975799b7ba75c73a61c27ed7149d0c40ae5b5afdaec6047f8e6e863f3c73
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.