paginar 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ import{unref as l,getCurrentScope as nr,onScopeDispose as or,getCurrentInstance as ar,onMounted as De,nextTick as ue,watch as J,computed as w,ref as z,reactive as ce,readonly as Re,shallowRef as Je,onBeforeUnmount as st,openBlock as f,createElementBlock as g,createElementVNode as i,createStaticVNode as it,inject as Pe,renderSlot as R,Fragment as pe,renderList as Ce,toDisplayString as U,createCommentVNode as V,createBlock as ie,resolveDynamicComponent as sr,withCtx as A,createVNode as S,withModifiers as B,Transition as He,normalizeClass as q,normalizeStyle as we,withDirectives as Ge,vShow as Rt,withKeys as Me,isRef as ir,vModelText as lr,createTextVNode as Ze,provide as kt,defineCustomElement as cr}from"vue";var _t;const Ee=typeof window<"u",ur=t=>typeof t=="string",Ae=()=>{},dr=Ee&&((_t=window?.navigator)==null?void 0:_t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ie(t){return typeof t=="function"?t():l(t)}function pr(t,e){function r(...n){return new Promise((o,a)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(o).catch(a)})}return r}const fr=t=>t();function hr(t,e={}){let r,n,o=Ae;const a=c=>{clearTimeout(c),o(),o=Ae};return c=>{const p=Ie(t),u=Ie(e.maxWait);return r&&a(r),p<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(c())):new Promise((d,b)=>{o=e.rejectOnCancel?b:d,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,d(c())},u)),r=setTimeout(()=>{n&&a(n),n=null,d(c())},p)})}}function gr(t){return t}function Mt(t){return nr()?(or(t),true):false}function mr(t){return typeof t=="function"?w(t):z(t)}function Bt(t,e=true){ar()?De(t):e?t():ue(t)}var $t=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,br=(t,e)=>{var r={};for(var n in t)vr.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&$t)for(var n of $t(t))e.indexOf(n)<0&&wr.call(t,n)&&(r[n]=t[n]);return r};function yr(t,e,r={}){const n=r,{eventFilter:o=fr}=n,a=br(n,["eventFilter"]);return J(t,pr(o,e),a)}var xr=Object.defineProperty,kr=Object.defineProperties,_r=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,St=(t,e,r)=>e in t?xr(t,e,{enumerable:true,configurable:true,writable:true,value:r}):t[e]=r,$r=(t,e)=>{for(var r in e||(e={}))At.call(e,r)&&St(t,r,e[r]);if(Ne)for(var r of Ne(e))It.call(e,r)&&St(t,r,e[r]);return t},Sr=(t,e)=>kr(t,_r(e)),Pr=(t,e)=>{var r={};for(var n in t)At.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Ne)for(var n of Ne(t))e.indexOf(n)<0&&It.call(t,n)&&(r[n]=t[n]);return r};function Pt(t,e,r={}){const n=r,{debounce:o=0,maxWait:a=void 0}=n,s=Pr(n,["debounce","maxWait"]);return yr(t,e,Sr($r({},s),{eventFilter:hr(o,{maxWait:a})}))}function xe(t){var e;const r=Ie(t);return(e=r?.$el)!=null?e:r}const Ve=Ee?window:void 0,Cr=Ee?window.document:void 0;Ee&&window.navigator;Ee&&window.location;function te(...t){let e,r,n,o;if(ur(t[0])||Array.isArray(t[0])?([r,n,o]=t,e=Ve):[e,r,n,o]=t,!e)return Ae;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],s=()=>{a.forEach(d=>d()),a.length=0},c=(d,b,h,v)=>(d.addEventListener(b,h,v),()=>d.removeEventListener(b,h,v)),p=J(()=>[xe(e),Ie(o)],([d,b])=>{s(),d&&a.push(...r.flatMap(h=>n.map(v=>c(d,h,v,b))))},{immediate:true,flush:"post"}),u=()=>{p(),s()};return Mt(u),u}let Ct=false;function Nt(t,e,r={}){const{window:n=Ve,ignore:o=[],capture:a=true,detectIframe:s=false}=r;if(!n)return;dr&&!Ct&&(Ct=true,Array.from(n.document.body.children).forEach(h=>h.addEventListener("click",Ae)));let c=true;const p=h=>o.some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(P=>P===h.target||h.composedPath().includes(P));{const P=xe(v);return P&&(h.target===P||h.composedPath().includes(P))}}),d=[te(n,"click",h=>{const v=xe(t);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(c=!p(h)),!c){c=true;return}e(h)}},{passive:true,capture:a}),te(n,"pointerdown",h=>{const v=xe(t);v&&(c=!h.composedPath().includes(v)&&!p(h))},{passive:true}),s&&te(n,"blur",h=>{var v;const P=xe(t);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!P?.contains(n.document.activeElement)&&e(h)})].filter(Boolean);return()=>d.forEach(h=>h())}const Er=t=>typeof t=="function"?t:typeof t=="string"?e=>e.key===t:Array.isArray(t)?e=>t.includes(e.key):()=>true;function ke(...t){let e,r,n={};t.length===3?(e=t[0],r=t[1],n=t[2]):t.length===2?typeof t[1]=="object"?(e=true,r=t[0],n=t[1]):(e=t[0],r=t[1]):(e=true,r=t[0]);const{target:o=Ve,eventName:a="keydown",passive:s=false}=n,c=Er(e);return te(o,a,u=>{c(u)&&r(u)},s)}function zr(t,e=false){const r=z(),n=()=>r.value=Boolean(t());return n(),Bt(n,e),r}const et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},tt="__vueuse_ssr_handlers__";et[tt]=et[tt]||{};et[tt];const Et=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function Tr(t,e={}){const{document:r=Cr,autoExit:n=false}=e,o=t||r?.querySelector("html"),a=z(false);let s=Et[0];const c=zr(()=>{if(r){for(const O of Et)if(O[1]in r)return s=O,true}else return false;return false}),[p,u,d,,b]=s;async function h(){!c.value||(r?.[d]&&await r[u](),a.value=false)}async function v(){if(!c.value)return;await h();const O=xe(o);O&&(await O[p](),a.value=true)}async function P(){a.value?await h():await v()}return r&&te(r,b,()=>{a.value=!!r?.[d]},false),n&&Mt(h),{isSupported:c,isFullscreen:a,enter:v,exit:h,toggle:P}}var ve;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(ve||(ve={}));function Or(t,e={}){const r=mr(t),{threshold:n=50,onSwipe:o,onSwipeEnd:a,onSwipeStart:s}=e,c=ce({x:0,y:0}),p=(m,M)=>{c.x=m,c.y=M},u=ce({x:0,y:0}),d=(m,M)=>{u.x=m,u.y=M},b=w(()=>c.x-u.x),h=w(()=>c.y-u.y),{max:v,abs:P}=Math,O=w(()=>v(P(b.value),P(h.value))>=n),y=z(false),x=z(false),H=w(()=>O.value?P(b.value)>P(h.value)?b.value>0?ve.LEFT:ve.RIGHT:h.value>0?ve.UP:ve.DOWN:ve.NONE),I=m=>{var M,F,re;const Z=m.buttons===0,X=m.buttons===1;return(re=(F=(M=e.pointerTypes)==null?void 0:M.includes(m.pointerType))!=null?F:Z||X)!=null?re:true},L=[te(t,"pointerdown",m=>{var M,F;if(!I(m))return;x.value=true,(F=(M=r.value)==null?void 0:M.style)==null||F.setProperty("touch-action","none");const re=m.target;re?.setPointerCapture(m.pointerId);const{clientX:Z,clientY:X}=m;p(Z,X),d(Z,X),s?.(m)}),te(t,"pointermove",m=>{if(!I(m)||!x.value)return;const{clientX:M,clientY:F}=m;d(M,F),!y.value&&O.value&&(y.value=true),y.value&&o?.(m)}),te(t,"pointerup",m=>{var M,F;!I(m)||(y.value&&a?.(m,H.value),x.value=false,y.value=false,(F=(M=r.value)==null?void 0:M.style)==null||F.setProperty("touch-action","initial"))})],G=()=>L.forEach(m=>m());return{isSwiping:Re(y),direction:Re(H),posStart:Re(c),posEnd:Re(u),distanceX:b,distanceY:h,stop:G}}var Fr=Object.defineProperty,zt=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Mr=Object.prototype.propertyIsEnumerable,Tt=(t,e,r)=>e in t?Fr(t,e,{enumerable:true,configurable:true,writable:true,value:r}):t[e]=r,Br=(t,e)=>{for(var r in e||(e={}))Rr.call(e,r)&&Tt(t,r,e[r]);if(zt)for(var r of zt(e))Mr.call(e,r)&&Tt(t,r,e[r]);return t};const Ar={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Br({linear:gr},Ar);function lt(t={}){const{window:e=Ve,initialWidth:r=1/0,initialHeight:n=1/0,listenOrientation:o=true,includeScrollbar:a=true}=t,s=z(r),c=z(n),p=()=>{e&&(a?(s.value=e.innerWidth,c.value=e.innerHeight):(s.value=e.document.documentElement.clientWidth,c.value=e.document.documentElement.clientHeight))};return p(),Bt(p),te("resize",p,{passive:true}),o&&te("orientationchange",p,{passive:true}),{width:s,height:c}}function Ir(t,e){const r=t.readerSettings?JSON.parse(t.readerSettings):null;t.cssFile&&Lt(t.cssFile,e),t.cssString&&Le(t.cssString,e),r?.cssString&&Le(r.cssString,e)}function Nr(t){const e=t.filter(r=>r.link);if(e.length>0){const r=document.createElement("style");(document.head||document.getElementsByTagName("head")[0]).appendChild(r),r.type="text/css";let o="";e.forEach(a=>o=o+`@import url(${a.link});
2
+ `),r.appendChild(document.createTextNode(o))}}async function Lt(t,e){if(t)try{const n=await(await fetch(t)).text();Le(n,e)}catch{}}async function Le(t,e){const r=document.createElement("style");e.value.appendChild(r),r.type="text/css",r.appendChild(document.createTextNode(t))}const jt={initStyles:Ir,fontLoader:Nr,stylesheetLoader:Lt,applyStylesheet:Le},k=ce({baseFont:"Arial, sans-serif",textFont:"Times New Roman, serif",fontsOptions:[{name:"Times New Roman, serif"},{name:"Georgia, serif"},{name:"Arial, sans-serif"},{name:"Verdana, sans-serif"}],fontSize:16,columns:"double",mode:"light",blocked:false,readingProgressAvailable:false,readingProgressEnabled:false,bookTitle:null,chapterTitle:null,homeUrl:null}),Wt=w(()=>k.baseFont),ct=w(()=>k.textFont),ut=w(()=>k.fontSize),Lr=w(()=>k.fontsOptions),dt=w(()=>k.columns),pt=w(()=>k.mode),jr=w(()=>k.blocked),qt=w(()=>k.readingProgressAvailable),ft=w(()=>k.readingProgressEnabled),Wr=w(()=>k.bookTitle),qr=w(()=>k.chapterTitle),Dr=w(()=>k.homeUrl);J([Wt,ct,ut,dt,pt,ft],()=>Dt());async function Hr(t){const e=t?JSON.parse(t):null;if(k.readingProgressAvailable=false,k.readingProgressEnabled=false,e?.baseFont&&(k.baseFont=e.baseFont),e?.textFont&&(k.textFont=e.textFont),e?.fontSize&&(k.fontSize=Number(e.fontSize)),e?.fontsOptions){k.fontsOptions=e.fontsOptions,jt.fontLoader(e.fontsOptions);const r=e.fontsOptions.find(o=>o.defaultBaseFont);r&&(k.baseFont=r.name);const n=e.fontsOptions.find(o=>o.defaultTextFont);n&&(k.textFont=n.name)}e?.bookTitle&&(k.bookTitle=e.bookTitle),e?.chapterTitle&&(k.chapterTitle=e.chapterTitle),e?.homeUrl&&(k.homeUrl=e.homeUrl),e?.readingProgress&&typeof e.readingProgress=="object"&&!Array.isArray(e.readingProgress)&&(k.readingProgressAvailable=true,k.readingProgressEnabled=e.readingProgress.enabled!==false),Vr(e)}function Vr(t){let e=null;try{e=localStorage.getItem("readerSettings")}catch{return}if(e){let r=null;try{r=JSON.parse(e)}catch{return}if(k.fontSize=r.fontSize,k.columns=r.columns,k.mode=r.mode,t?.fontsOptions&&t?.fontsOptions?.find(n=>n.name===r.textFont)&&(k.textFont=r.textFont),k.readingProgressAvailable&&typeof r.readingProgressEnabled=="boolean"&&(k.readingProgressEnabled=r.readingProgressEnabled),r.mode==="dark"){const n=document.querySelector("html");n&&(n.classList.remove("light"),n.classList.add("dark"))}}}function Kr(t){k.columns=t}function Ur(t){k.textFont=t}function Yr(t){k.fontSize=t}function Xr(t){k.blocked=t}function Qr(t){k.readingProgressAvailable&&(k.readingProgressEnabled=Boolean(t))}function Jr(t){k.mode=t;const e=document.querySelector("html");e&&(e.classList.contains("dark")?(e.classList.remove("dark"),e.classList.add("light")):(e.classList.remove("light"),e.classList.add("dark")))}function Dt(){try{localStorage.setItem("readerSettings",JSON.stringify({textFont:ct.value,fontSize:ut.value,columns:dt.value,mode:pt.value,...qt.value?{readingProgressEnabled:ft.value}:{}}))}catch{}}const C={baseFont:Wt,textFont:ct,fontSize:ut,fontsOptions:Lr,columns:dt,initSettings:Hr,setColumns:Kr,setTextFont:Ur,setFontSize:Yr,setBlocked:Xr,mode:pt,blocked:jr,readingProgressAvailable:qt,readingProgressEnabled:ft,setMode:Jr,setReadingProgressEnabled:Qr,saveSettings:Dt,bookTitle:Wr,chapterTitle:qr,homeUrl:Dr},Be=ce({totalPages:1});function Gr(t,e){if(t&&e){const{width:r}=t.value.getBoundingClientRect(),{width:n}=e.value.getBoundingClientRect();return n>r?(Be.totalPages=Math.ceil(n/r),Math.ceil(n/r)):(Be.totalPages=1,1)}else return Be.totalPages=1,1}const Zr=w(()=>Be.totalPages),je={totalPages:Zr,estimate:Gr},fe=ce({references:[],reference:null}),en=w(()=>fe.references);function tn(t){fe.references=t}const rn=w(()=>fe.reference);function nn(t){fe.reference=t}function on(t){return fe.references.length===0||!t?t:fe.references.reduce((e,r)=>{if(!e)return e;if(e.includes(r.cit)){const n=new RegExp(r.cit,"g");return e.replace(n,`<span class='reference reference-${r.cit.replaceAll(" ","")}'>
3
+ ${r.cit}
4
+ </span>`)}return e},t)}function an(t){const e=t.target.closest(".reference")?.classList.value.split(" ");if(e.length===0)return;const r=e.find(n=>n.startsWith("reference-"));if(r){const n=fe.references.find(o=>r&&o.cit.replaceAll(" ","")===r.replace("reference-",""));n&&(fe.reference=n)}}const ze={references:en,reference:rn,applyReference:an,setReferences:tn,setHighlightedReference:nn,applyReferences:on},he=ce({footnotes:[],showFootnotes:false,footnote:null}),sn=w(()=>he.footnotes);function ln(t){he.footnotes=t}const cn=w(()=>he.showFootnotes);function un(t){he.showFootnotes=t}const dn=w(()=>he.footnote);function pn(t){he.footnote=t}function fn(t){const e=t.target.closest(".footnote")?.classList.value.split(" ");if(e.length===0)return;const r=e.find(n=>n.includes("footnote")&&n!=="footnote");if(r){const n=he.footnotes.find(o=>o.id===r);n&&(he.footnote=n)}}const ae={footnotes:sn,footnote:dn,setFootnotes:ln,applyFootnote:fn,setHighlightedFootnote:pn,setShowFootnotes:un,showFootnotes:cn};function rt(t){return Boolean(t&&!t.disabled&&(t.link||t.file))}function Ot(t,e,r){for(let n=e;n>=0&&n<t.length;n+=r)if(rt(t[n]))return t[n];return null}const se=ce({summary:null,content:null,activeChapter:0}),hn=w(()=>se.content),gn=w(()=>se.summary),Ht=w(()=>{const t=se.summary||[],e=t.findIndex(n=>n.link&&window.location.href.includes(n.link)),r=e>=0?e:se.activeChapter;return{chapter:t[r],surround:{before:Ot(t,r-1,-1),after:Ot(t,r+1,1)}}}),mn=w(()=>{const t=Ht.value.chapter;return t?.file||t?.link||t?.title||window.location.pathname});async function vn(t,e){const{setReferences:r,applyReferences:n}=ze,{setFootnotes:o}=ae,a=t?JSON.parse(t):null;if(a?.summary&&(se.summary=a.summary),a?.references&&r(a.references),a?.footnotes&&o(a.footnotes),a?.summary?.[0]?.file){const s=await Vt(a.summary?.[0]?.file),c=a.applyReferences?n(s):s;se.content=c}else{const s=document.querySelectorAll('[slot="content"]');if(s&&s?.[0]?.innerHTML&&s.applyReferences){const c=n(s?.[0]?.innerHTML);c&&(s[0].innerHTML=c)}}Kt(e)}async function Vt(t){try{return await(await fetch(t)).text()}catch(e){console.log({err:e}),se.content="Ops, n\xE3o foi poss\xEDvel carregar o arquivo solicitado."}}function wn(t,e=null){const{applyReferences:r}=ze,n=r(t);e&&(se.activeChapter=se.summary.findIndex(o=>o===e)),se.content=n}function Kt(t){setTimeout(()=>{te(t,"click",bn)},100)}function bn(t){t.target.closest(".reference")&&ze.applyReference(t),t.target.closest(".footnote")&&ae.applyFootnote(t)}const le={content:hn,summary:gn,initContent:vn,getContent:Vt,applyContent:wn,listenToClicks:Kt,context:Ht,contextId:mn},yn=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,xn=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),nt={isSafari:yn,isApple:xn},Ut="paginar:reading-progress:v1",T=ce({bookId:null,contextKey:null,restored:false,suspended:false,currentPage:1,totalPages:1}),Ke=w(()=>C.readingProgressAvailable.value),Ue=w(()=>C.readingProgressEnabled.value);function kn(t,e){let r=null;T.bookId=null,T.contextKey=null,T.restored=false;try{r=t?JSON.parse(t):null}catch{return}if(!r?.readingProgress||typeof r.readingProgress!="object"||Array.isArray(r.readingProgress))return;const n=r.readingProgress.id;T.bookId=typeof n=="string"&&n.trim()?n.trim():e||window.location.pathname}function Ye(){if(!T.bookId)return null;const t=le.contextId.value||window.location.pathname;return`${T.bookId}::${t}`}function ht(){try{const t=JSON.parse(localStorage.getItem(Ut));return t?.version===1&&t.entries&&typeof t.entries=="object"?t:{version:1,entries:{}}}catch{return{version:1,entries:{}}}}function Yt(t){try{localStorage.setItem(Ut,JSON.stringify(t))}catch{}}function Xt(t,e){return e<=1?0:Math.min(1,Math.max(0,(t-1)/(e-1)))}function Qt(t,e){return Math.min(e,Math.max(1,Math.round(t*(e-1))+1))}function _n(t,e,r){const n=Ye();if(!Ke.value||!Ue.value||!T.restored||!n||n!==T.contextKey||e<1||r<1)return null;const o=Xt(t,e);return Qt(o,r)}function We(t,e){const r=Ye();if(!Ke.value||!Ue.value||!T.restored||T.suspended||!r||r!==T.contextKey||e<1)return;const n=ht();n.entries[r]=Xt(t,e),Yt(n)}function $n(){T.suspended=true}function Sn(){T.suspended=false}function Jt(){const t=Ye();if(!t)return;const e=ht();delete e.entries[t],Yt(e)}function Pn(t,e,r=false){T.currentPage=t,T.totalPages=e;const n=Ye();if(!(!Ke.value||!Ue.value||!n)){if(T.contextKey!==n&&(T.contextKey=n,T.restored=false),!T.restored){if(!r)return;if(/[?&]origin=/.test(window.location.search)||window.location.hash){T.restored=true,We(t,e);return}const o=ht().entries[n];if(Number.isFinite(o)&&o>=0&&o<=1){if(e<=1&&o>0)return;T.restored=true;const a=Qt(o,e);return a!==t?a:void 0}T.restored=true}We(t,e)}}function Cn(t){C.setReadingProgressEnabled(t),T.restored=true,t?We(T.currentPage,T.totalPages):Jt()}const oe={available:Ke,enabled:Ue,init:kn,remove:Jt,repaginate:_n,resume:Sn,save:We,setEnabled:Cn,suspend:$n,sync:Pn};function gt(t){return(t.composedPath?.()||[]).some(r=>r?.nodeType===1&&r.matches('input, textarea, select, [contenteditable]:not([contenteditable="false"]), [data-paginar-ignore]'))}const D=ce({currentPage:1,changeSource:"initial",nextTry:0,prevTry:0,willRedirect:false}),Gt=w(()=>D.currentPage),En=w(()=>D.changeSource),de=w(()=>je.totalPages.value);function zn(t,e,r=null){const n=r||(()=>je.estimate(t,e));je.estimate(t,e);const a=new URLSearchParams(window.location.search).get("origin");a&&a==="next"&&setTimeout(()=>{Te(de.value)},200),!nt.isApple&&!nt.isSafari&&addEventListener("wheel",On),Tn(t,e,n)}let qe=null,ot=null,$e=0;function Tn(t,e,r){if(Zt(),typeof ResizeObserver!="function"){ot=setInterval(r,5e3);return}const n=new WeakMap;qe=new ResizeObserver(o=>{let a=false;for(const{target:s,borderBoxSize:c,contentRect:p}of o){const u=c?.[0],d=u?`${u.inlineSize}x${u.blockSize}`:`${p.width}x${p.height}`;n.has(s)&&n.get(s)!==d&&(a=true),n.set(s,d)}a&&!$e&&($e=requestAnimationFrame(()=>{$e=0,r()}))});for(const o of[t.value,e.value])o&&qe.observe(o)}function Zt(){qe?.disconnect(),qe=null,clearInterval(ot),ot=null,cancelAnimationFrame($e),$e=0}J(de,()=>{de.value<Gt.value&&Te(de.value)});function mt(t=false,e="next"){if(!C.blocked.value)if(D.currentPage+1<=de.value)Te(D.currentPage+1,e);else{if(t&&D.nextTry<4){D.nextTry+=1;return}if(D.willRedirect===false){const r=le.context.value;r.surround?.after&&(window.location.href=r.surround.after.link+"?origin=prev",D.willRedirect=true)}}}ke("ArrowRight",t=>{gt(t)||(t.preventDefault(),mt(false,"keyboard"))});function On(t){gt(t)||(t.wheelDelta<0?mt(true,"wheel"):vt(true,"wheel"))}function vt(t=false,e="previous"){if(!C.blocked.value)if(D.currentPage-1>0)Te(D.currentPage-1,e);else{if(t&&D.prevTry<4){D.prevTry+=1;return}if(D.willRedirect===false){const r=le.context.value;r.surround?.before&&(window.location.href=r.surround.before.link+"?origin=next"),D.willRedirect=true}}}ke("ArrowLeft",t=>{gt(t)||(t.preventDefault(),vt(false,"keyboard"))});function Te(t,e="go-to-page"){const r=Math.min(de.value,Math.max(1,Number(t)||1));D.changeSource=e,D.currentPage=r,oe.save(r,de.value)}const W={currentPage:Gt,totalPages:de,changeSource:En,next:mt,prev:vt,init:zn,stopObserving:Zt,set:Te};function Fn(t,{start:e,end:r},n=8){function o(p,u){let d=0,b=false;for(;p>=0&&p<t.length;){const h=/\S/u.test(t[p]);if(h&&!b&&++d>n)break;b=h,p+=u}return p}const a=o(e-1,-1),s=o(r,1),c=p=>p.replace(/\s+/gu," ");return{before:(a>=0?"\u2026 ":"")+c(t.slice(a+1,e)).trimStart(),match:c(t.slice(e,r)),after:c(t.slice(r,s)).trimEnd()+(s<t.length?" \u2026":"")}}function Rn(t){if(!Array.isArray(t))return null;const e=new Set,r=[];for(const n of t){if(!n||typeof n.id!="string"||!n.id||e.has(n.id)||typeof n.match!="string"||!n.match.trim())return null;e.add(n.id);const o={id:n.id,source:"external"};for(const a of["chapterTitle","before","match","after","href"]){if(n[a]!==void 0&&typeof n[a]!="string")return null;o[a]=n[a]||""}r.push(o)}return r}function er(t){let e="";const r=[],n=[];let o=0;for(const a of t){const s=o+a.length,c=a.normalize("NFKD").replace(/\p{M}/gu,"").toLowerCase();!c&&n.length&&(n[n.length-1]=s);for(const p of c){const u=/[\p{L}\p{N}]/u.test(p)?p:" ";if(u===" "&&e.endsWith(" ")){n[n.length-1]=s;continue}e+=u;for(let d=0;d<u.length;d++)r.push(o),n.push(s)}o=s}return{text:e,starts:r,ends:n}}function Mn(t,e){if(t===e)return true;if(t.length<5||Math.abs(t.length-e.length)>1)return false;let r=0;for(;r<Math.min(t.length,e.length)&&t[r]===e[r];)r++;return t.length===e.length?t.slice(r+1)===e.slice(r+1)||t[r]===e[r+1]&&t[r+1]===e[r]&&t.slice(r+2)===e.slice(r+2):t.length>e.length?t.slice(r+1)===e.slice(r):t.slice(r)===e.slice(r+1)}function Bn(t,e){const r=er(e).text.trim();if(!r)return[];const n=[];let o=t.text.indexOf(r);for(;o!==-1;)n.push({start:o,end:o+r.length}),o=t.text.indexOf(r,o+r.length);const a=r.split(" "),s=Array.from(t.text.matchAll(/[\p{L}\p{N}]+/gu)),c=n.length;let p=0;for(let u=0;u<=s.length-a.length;u++){const d=s[u].index,b=s[u+a.length-1],h=b.index+b[0].length;for(;p<c&&n[p].end<=d;)p++;p<c&&n[p].start<h||a.every((v,P)=>Mn(v,s[u+P][0]))&&n.push({start:d,end:h,approximate:true})}return n.sort((u,d)=>u.start-d.start).map(u=>({start:t.starts[u.start],end:t.ends[u.end-1]}))}const wt=Symbol("paginarSearch");function An(t){let e="";const r=[];function n(o){if(o.nodeType===Node.TEXT_NODE){r.push({node:o,start:e.length,end:e.length+o.length}),e+=o.data;return}if(o.nodeType!==Node.ELEMENT_NODE||o.matches('script, style, template, noscript, [hidden], [aria-hidden="true"]'))return;const a=getComputedStyle(o);if(a.display==="none"||a.visibility==="hidden")return;const s=o.tagName==="BR"||!["inline","contents"].includes(a.display);s&&(e+=" ");const c=o.tagName==="SLOT"?o.assignedNodes({flatten:true}):o.childNodes;for(const p of c.length?c:o.childNodes)n(p);s&&(e+=" ")}return n(t),{...er(e),original:e,nodes:r}}function In(t,e){function r(s){let c=0,p=t.nodes.length-1;for(;c<=p;){const u=c+p>>1,d=t.nodes[u];if(s<d.start)p=u-1;else if(s>=d.end)c=u+1;else return d}}const n=r(e.start),o=r(e.end-1);if(!n||!o||n.node.getRootNode()!==o.node.getRootNode())return null;const a=document.createRange();return a.setStart(n.node,e.start-n.start),a.setEnd(o.node,e.end-o.start),a}function Nn(t,e,r,n){const o=z(false),a=z(false),s=z(""),c=z(null),p=z(null),u=z(-1),d=z(false),b=Je([]),h=Je([]),v=w(()=>[...b.value,...h.value]),P=w(()=>v.value.length);let O=0;const y=Je([]),x=z(0),H=w(()=>{if(!a.value)return[];const _=(W.currentPage.value-2)*x.value,E=(W.currentPage.value+1)*x.value;return y.value.filter(N=>N.left<E&&N.right>_).map(N=>({...N,active:N.match===u.value}))}),I=z(false);let L=[],G=null,m=null,M=null,F=null;function re(_){const E=_?JSON.parse(_):{};o.value=E.search===true,d.value=E.searchResults==="panel"}function Z(){return{query:s.value,requestId:O,open:a.value,view:d.value?"panel":"compact",pending:I.value,activeIndex:u.value,results:v.value.map(_=>({..._}))}}function X(){n("search",{query:s.value,requestId:O,open:a.value,results:b.value.map(_=>({..._}))})}function Oe(_){if(!o.value||!a.value||I.value||!s.value.trim()||_?.requestId!==O)return false;const E=Rn(_.results);if(!E)return false;const N=v.value[u.value];return h.value=E,N?.source==="external"&&(u.value=v.value.findIndex(Y=>Y.source==="external"&&Y.id===N.id)),true}function $(){const _=e.value?.querySelector(".columnsArea");if(!a.value||!L.length||!_){y.value=[];return}const E=_.getBoundingClientRect();x.value=e.value.getBoundingClientRect().width;const N=[],Y=new Map;L.forEach((be,ye)=>{if(!be.startContainer.isConnected)return;const _e=new Set;for(const Q of be.getClientRects()){if(!Q.width||!Q.height)continue;const Qe=`${Q.left},${Q.top},${Q.width},${Q.height}`;if(_e.has(Qe))continue;_e.add(Qe);const xt={key:`${ye}:${Qe}`,match:ye,left:Q.left-E.left,right:Q.right-E.left,style:{left:`${Q.left-E.left}px`,top:`${Q.top-E.top}px`,width:`${Q.width}px`,height:`${Q.height}px`}};N.push(xt),Y.has(ye)||Y.set(ye,xt)}}),y.value=N,b.value=b.value.map((be,ye)=>{const _e=Y.get(ye);return{...be,page:_e&&x.value?Math.floor(Math.max(0,_e.left)/x.value)+1:null}})}function j(_,E=true){if(!P.value||C.blocked.value)return;u.value=(_%P.value+P.value)%P.value;const N=v.value[u.value],Y=y.value.find(be=>be.match===u.value);N.source==="local"&&Y&&x.value&&W.set(Math.floor(Math.max(0,Y.left)/x.value)+1,"search"),E&&n("search-select",{query:s.value,requestId:O,result:{...N},index:u.value})}function ee(_=0){clearTimeout(m),I.value=false,!(!o.value||!a.value||!r.value)&&(G||=An(r.value),O++,h.value=[],L=[],b.value=Bn(G,s.value).flatMap(E=>{const N=In(G,E);return N?(L.push(N),[{id:`local:${E.start}:${E.end}`,source:"local",...Fn(G.original,E),page:null}]):[]}),u.value=-1,$(),j(_,false),X())}function ne(_=false){_&&(G=null),clearTimeout(m),O++,L=[],b.value=[],h.value=[],u.value=-1,y.value=[],I.value=a.value&&Boolean(s.value.trim()),I.value?m=setTimeout(ee,180):o.value&&a.value&&X()}function ge(_,E={}){return!o.value||C.blocked.value||typeof _!="string"?false:(a.value=true,(E.view==="panel"||E.view==="compact")&&(d.value=E.view==="panel"),s.value=_,ee(Number.isInteger(E.resultIndex)&&E.resultIndex>=0?E.resultIndex:0),ue(()=>c.value?.focus({preventScroll:true})),true)}async function Fe(){!o.value||C.blocked.value||(a.value=true,ee(),await ue(),c.value?.focus({preventScroll:true}),c.value?.select())}function me(){a.value=false,ne(),X(),p.value?.focus({preventScroll:true})}function rr(_){I.value?ee():j(u.value+_)}function bt(_){if(!o.value||_.defaultPrevented)return;const E=_.composedPath(),N=E.find(Y=>Y?.tagName==="PAGINATE-CONTENT");if(!(N&&N!==F)){if(_.key==="Escape"&&a.value)_.preventDefault(),me();else if((_.ctrlKey||_.metaKey)&&!_.altKey&&_.key.toLowerCase()==="f"){if(!E.includes(F)&&E.some(Y=>Y?.matches?.('input, textarea, select, [contenteditable="true"]'))||C.blocked.value||!F?.getClientRects().length)return;_.preventDefault(),Fe()}}}De(()=>{F=t.value.getRootNode().host,window.addEventListener("keydown",bt,true),M=new MutationObserver(()=>ne(true)),M.observe(r.value,{subtree:true,childList:true,characterData:true}),F&&M.observe(F,{subtree:true,childList:true,characterData:true}),r.value.addEventListener("slotchange",yt)});function yt(){ne(true)}return st(()=>{clearTimeout(m),M?.disconnect(),window.removeEventListener("keydown",bt,true),r.value?.removeEventListener("slotchange",yt),L=[],G=null}),J(s,()=>ne(),{flush:"sync"}),J(C.blocked,_=>{!_&&a.value&&u.value<0&&b.value.length&&j(0,false)}),{enabled:o,open:a,query:s,input:c,button:p,active:u,total:P,rectangles:H,pending:I,panel:d,results:v,init:re,show:Fe,close:me,step:rr,measure:$,navigate:j,getState:Z,setResults:Oe,searchText:ge,status:w(()=>I.value?"Buscando\u2026":P.value?`${u.value>=0?`${u.value+1} de `:""}${P.value} ${P.value===1?"ocorr\xEAncia":"ocorr\xEAncias"}`:s.value.trim()?"Nenhuma ocorr\xEAncia":"Digite para buscar")}}const K=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},Ln={},jn={fill:"none",stroke:"currentColor",viewBox:"0 0 20 22",xmlns:"http://www.w3.org/2000/svg"};function Wn(t,e){return f(),g("svg",jn,[...e[0]||(e[0]=[i("path",{d:"M1 8L10 1L19 8V19C19 19.5304 18.7893 20.0391 18.4142 20.4142C18.0391 20.7893 17.5304 21 17 21H3C2.46957 21 1.96086 20.7893 1.58579 20.4142C1.21071 20.0391 1 19.5304 1 19V8Z","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),i("path",{d:"M7 21V11H13V21","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])}const qn=K(Ln,[["render",Wn]]),Dn={},Hn={fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function Vn(t,e){return f(),g("svg",Hn,[...e[0]||(e[0]=[i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)])])}const Se=K(Dn,[["render",Vn]]),Kn={},Un={width:"24",height:"19",viewBox:"0 0 24 19",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg"};function Yn(t,e){return f(),g("svg",Un,[...e[0]||(e[0]=[it('<line x1="5" y1="1.08447" x2="1" y2="1.08447" stroke-width="2" stroke-linecap="round"></line><line x1="23" y1="1.04248" x2="11" y2="1.04248" stroke-width="2" stroke-linecap="round"></line><line x1="23" y1="9.08447" x2="14" y2="9.08447" stroke-width="2" stroke-linecap="round"></line><line x1="8" y1="9.14905" x2="4" y2="9.14905" stroke-width="2" stroke-linecap="round"></line><line x1="23" y1="17.149" x2="10.9993" y2="17.149" stroke-width="2" stroke-linecap="round"></line><line x1="5" y1="17.2429" x2="1" y2="17.2429" stroke-width="2" stroke-linecap="round"></line>',6)])])}const Xn=K(Kn,[["render",Yn]]),Xe=Symbol("paginarPublicEvent"),Qn={id:"summary-menu-dropdown",class:"absolute top-14 py-4 px-3 shadow-lg w-60 md:w-104 text-areia z-10 bg-white",role:"menu","aria-orientation":"vertical","aria-labelledby":"summary-menu"},Jn={key:0,"aria-disabled":"true",class:"summary-menu-dropdown-item-disabled w-full text-left block text-black py-2 px-3 rounded mb-2",style:{opacity:.4,cursor:"default"}},Gn={class:"summary-menu-dropdown-item-title"},Zn={key:0,class:"summary-menu-dropdown-item-author"},eo={class:"summary-menu-dropdown-item-title"},to={key:0,class:"summary-menu-dropdown-item-author"},ro={__name:"SummaryDropdown",setup(t){const{summary:e}=le,r=Pe(Xe,()=>{});async function n(o){const a=await le.getContent(o.file);le.applyContent(a,o),W.set(1,"summary"),r("chapter-change",{chapter:{...o}})}return(o,a)=>(f(),g("div",Qn,[i("nav",null,[R(o.$slots,"summaryTop"),(f(true),g(pe,null,Ce(l(e),s=>(f(),g(pe,{key:l(rt)(s)?s.link:s.title},[l(rt)(s)?(f(),ie(sr(s.link?"a":"button"),{key:1,href:s.link,title:`Navegar para cap\xEDtulo ${s.title}`,class:"w-full text-left block text-black py-2 px-3 hover:bg-gray-100 rounded mb-2",onClick:c=>s.file?n(s):null},{default:A(()=>[i("span",eo,U(s.title),1),s.author?(f(),g("span",to,U(s.author),1)):V("",true)]),_:2},1032,["href","title","onClick"])):(f(),g("span",Jn,[i("span",Gn,U(s.title),1),s.author?(f(),g("span",Zn,U(s.author),1)):V("",true)]))],64))),128)),R(o.$slots,"summaryBottom")])]))}},no={class:"flex"},oo=["href"],ao={class:"position-relative"},so=["aria-expanded"],io={__name:"SummaryButton",setup(t){const e=z(false),r=z(null),{homeUrl:n}=C,o=Pe(Xe,()=>{}),a=()=>{e.value=!e.value,C.setBlocked(e.value),o("summary-toggle",{open:e.value})},s=()=>{e.value&&!C.blocked.value&&(e.value=false,C.setBlocked(false),o("summary-toggle",{open:false}))};return Nt(r,()=>s()),ke("Escape",()=>s()),(c,p)=>(f(),g("div",{id:"summary-menu",ref_key:"button",ref:r,class:"relative"},[i("div",no,[l(n)?(f(),g("a",{key:0,href:l(n),title:"Homepage",id:"home-button",class:"hidden md:flex items-center border p-3 shadow mr-3 border-white text-white"},[S(qn,{class:"w-6 h-6"})],8,oo)):V("",true),i("div",ao,[i("button",{onClick:p[0]||(p[0]=B(u=>a(),["prevent"])),class:"border p-3 shadow flex items-center border-white text-white",id:"summary-button","aria-haspopup":"true","aria-expanded":e.value},[e.value?(f(),ie(Se,{key:1,class:"w-6 h-6"})):(f(),ie(Xn,{key:0})),p[1]||(p[1]=i("span",{class:"block ml-3"}," Sum\xE1rio ",-1))],8,so),S(He,{"enter-active-class":"transition ease-out duration-100 transform","enter-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-75 transform","leave-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:A(()=>[e.value?(f(),ie(ro,{key:0},{summaryTop:A(()=>[R(c.$slots,"summaryTop")]),summaryBottom:A(()=>[R(c.$slots,"summaryBottom")]),_:3})):V("",true)]),_:3})])])],512))}},lo={},co={fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function uo(t,e){return f(),g("svg",co,[...e[0]||(e[0]=[i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z"},null,-1)])])}const po=K(lo,[["render",uo]]),fo={},ho={fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function go(t,e){return f(),g("svg",ho,[...e[0]||(e[0]=[i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"},null,-1)])])}const mo=K(fo,[["render",go]]),vo={},wo={fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function bo(t,e){return f(),g("svg",wo,[...e[0]||(e[0]=[i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"},null,-1),i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"},null,-1)])])}const yo=K(vo,[["render",bo]]),xo={},ko={fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function _o(t,e){return f(),g("svg",ko,[...e[0]||(e[0]=[i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"},null,-1)])])}const $o=K(xo,[["render",_o]]),So={},Po={viewBox:"0 0 341.5 441.2",fill:"currentColor"};function Co(t,e){return f(),g("svg",Po,[...e[0]||(e[0]=[it('<rect data-v-acadaaca="" x="73.2" y="143.7" width="195.2" height="20"></rect><rect data-v-acadaaca="" x="73.2" y="82.7" width="195.2" height="20"></rect><rect data-v-acadaaca="" x="73.2" y="203.7" width="195.2" height="20"></rect><rect data-v-acadaaca="" x="73.2" y="263.7" width="195.2" height="20"></rect><rect data-v-acadaaca="" x="73.2" y="319" width="195.2" height="20"></rect><rect data-v-acadaaca="" x="0" y="-0.6" width="332.3" height="15"></rect><rect data-v-acadaaca="" x="0" y="426.2" width="332.3" height="15"></rect><rect data-v-acadaaca="" x="-209.4" y="216.2" transform="matrix(6.123234e-17 -1 1 6.123234e-17 -216.2339 231.2339)" width="433.7" height="15"></rect><rect data-v-acadaaca="" x="108" y="211.9" transform="matrix(6.123234e-17 -1 1 6.123234e-17 105.4808 544.1859)" width="433.7" height="15"></rect>',9)])])}const Eo=K(So,[["render",Co]]),zo={},To={viewBox:"0 0 653 441.2",fill:"currentColor"};function Oo(t,e){return f(),g("svg",To,[...e[0]||(e[0]=[it('<rect x="73.2" y="143.7" width="195.2" height="20"></rect><rect x="73.2" y="82.7" width="195.2" height="20"></rect><rect x="73.2" y="203.7" width="195.2" height="20"></rect><rect x="73.2" y="263.7" width="195.2" height="20"></rect><rect x="73.2" y="319" width="195.2" height="20"></rect><rect x="384.7" y="143.7" width="195.2" height="20"></rect><rect x="384.7" y="82.7" width="195.2" height="20"></rect><rect x="384.7" y="203.7" width="195.2" height="20"></rect><rect x="384.7" y="263.7" width="195.2" height="20"></rect><rect x="384.7" y="319" width="195.2" height="20"></rect><path d="M0-0.6v7.5v7.5v411.8v14.4v0.6h653v-5v-10V14.4V2.5v-3.1H0z M638,426.2H15V14.4h623V426.2z"></path>',11)])])}const Fo=K(zo,[["render",Oo]]),Ro={id:"columns-menu",class:"w-full hidden md:grid grid-cols-3 gap-2 mt-3"},Mo=["title"],Bo={__name:"OptionsColumns",setup(t){const{columns:e,setColumns:r}=C,{width:n}=lt(),o=w(()=>{const a=navigator.userAgent.toLowerCase();return a.indexOf("safari")!==-1&&a.indexOf("chrome")===-1});return(a,s)=>(f(),g("div",Ro,[i("button",{id:"single-column-button",class:q(["col-span-1 text-primary text-center cursor-pointer py-3 rounded-sm border",{"border-gray-300":l(e)!=="single","bg-primary-extralight border-2 border-primary":l(e)==="single","opacity-30 cursor-default":o.value}]),onClick:s[0]||(s[0]=B(c=>o.value?null:l(r)("single"),["prevent"])),"aria-label":"Coluna \xFAnica",title:o.value?"O navegador Safari n\xE3o aceita visualiza\xE7\xE3o de coluna \xFAnica.":"Coluna \xFAnica"},[S(Eo,{class:"mx-auto h-10 opacity-75"})],10,Mo),i("button",{id:"double-column-button",class:q(["col-span-2 text-primary text-center cursor-pointer py-3 rounded-sm border",{"border-gray-300":l(e)!=="double","bg-primary-extralight border-2 border-primary":l(e)==="double","opacity-30":l(n)<1024}]),onClick:s[1]||(s[1]=B(c=>l(n)>=1024&&l(r)("double"),["prevent"])),"aria-label":"Coluna dupla",title:"Coluna dupla"},[S(Fo,{name:"DoubleColumn",class:"mx-auto h-10 divide-opacity-75"})],2)]))}},Ao={id:"font-family-menu",class:"w-full grid grid-cols-4 gap-2 my-3"},Io=["onClick","title"],No={__name:"OptionsFontFamily",setup(t){const{textFont:e,fontsOptions:r,setTextFont:n}=C;return(o,a)=>(f(),g("div",Ao,[(f(true),g(pe,null,Ce(l(r),s=>(f(),g("button",{key:s.name,onClick:B(c=>l(n)(s.name),["prevent"]),class:q(["font-light text-lg text-primary tracking-wide border border-urucum w-full h-10 flex justify-center items-center",{"bg-primary-extralight border-2 border-primary":l(e)===s.name}]),style:we(`font-family: ${s.name}`),title:s.label??s.name}," Ff ",14,Io))),128))]))}},Lo={__name:"OptionsFontSize",setup(t){const{fontSize:e,setFontSize:r}=C;return(n,o)=>(f(),g(pe,null,[i("button",{id:"fontsize-add-button",onClick:o[0]||(o[0]=B(a=>l(r)(l(e)+1),["prevent"])),class:"font-light text-base border border-urucum w-full h-10 flex justify-center items-center"}," + A "),i("button",{id:"fontsize-subtr-button",onClick:o[1]||(o[1]=B(a=>l(r)(l(e)-1),["prevent"])),class:"font-light text-base border border-urucum w-full h-10 flex justify-center items-center"}," - A ")],64))}},jo={},Wo={fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function qo(t,e){return f(),g("svg",Wo,[...e[0]||(e[0]=[i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"},null,-1)])])}const Do=K(jo,[["render",qo]]),Ho={},Vo={fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};function Ko(t,e){return f(),g("svg",Vo,[...e[0]||(e[0]=[i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"},null,-1)])])}const Uo=K(Ho,[["render",Ko]]),Yo={__name:"OptionsColor",setup(t){const{mode:e,setMode:r}=C;return(n,o)=>(f(),g(pe,null,[i("button",{id:"lightmode-button",onClick:o[0]||(o[0]=B(a=>l(r)("light"),["prevent"])),title:"Leitura diurna",class:q(["font-light text-base border w-full h-10 flex justify-center items-center",{"bg-primary-extralight text-primary border-2 border-primary":l(e)==="light"}])},[S(Do,{class:"w-5 h-5"})],2),i("button",{id:"darkmode-button",onClick:o[1]||(o[1]=B(a=>l(r)("dark"),["prevent"])),title:"Leitura noturna",class:q(["font-light text-base border w-full h-10 flex justify-center items-center",{"bg-primary-extralight text-primary border-2 border-primary":l(e)==="dark"}])},[S(Uo,{class:"w-5 h-5"})],2)],64))}},Xo={class:"w-full border-t border-areia mt-5 pt-5"},Qo=["aria-checked"],Jo={__name:"OptionsReadingProgress",setup(t){const{enabled:e,setEnabled:r}=oe;return(n,o)=>(f(),g("div",Xo,[i("button",{id:"reading-progress-button",class:"w-full flex items-center justify-between py-2 px-1 text-left",type:"button",role:"switch","aria-checked":l(e),onClick:o[0]||(o[0]=B(a=>l(r)(!l(e)),["prevent"]))},[o[1]||(o[1]=i("span",null,[i("span",{class:"block text-primary lowercase"},"Retomar leitura"),i("span",{class:"block text-xs text-gray-500 mt-1"},"Continuar de onde parou")],-1)),i("span",{class:q(["relative inline-flex h-6 w-11 flex-shrink-0 rounded-full border-2 border-transparent transition-colors",l(e)?"bg-primary":"bg-gray-300"]),"aria-hidden":"true"},[i("span",{class:q(["inline-block h-5 w-5 rounded-full bg-white shadow transition-transform",l(e)?"translate-x-5":"translate-x-0"])},null,2)],2)],8,Qo)]))}},Go={class:"absolute top-14 py-4 px-3 shadow-lg w-60 md:w-104 text-areia -right-2 md:right-16 z-10 bg-white",role:"Op\xE7\xF5es","aria-orientation":"vertical","aria-labelledby":"options-menu"},Zo={id:"footnotes-button"},ea={class:"w-full flex justify-center items-center py-3 lowercase",id:"visualize-title"},ta={class:"w-full grid grid-cols-4 gap-2 my-3"},ra={__name:"OptionsDropdown",setup(t){return(e,r)=>(f(),g("div",Go,[i("div",null,[R(e.$slots,"optionsTop"),i("div",Zo,[i("button",{onClick:r[0]||(r[0]=B(n=>l(ae).setShowFootnotes(true),["prevent"])),class:"w-full flex justify-center items-center py-3 lowercase"},[S($o,{class:"w-6 h-6"}),r[1]||(r[1]=i("span",{class:"ml-4"},"Notas de rodap\xE9",-1))]),r[2]||(r[2]=i("div",{class:"w-full border-b border-areia my-3"},null,-1))]),i("div",ea,[S(yo,{class:"w-6 h-6"}),r[3]||(r[3]=i("span",{class:"ml-4"},"Visualiza\xE7\xE3o",-1))]),S(Bo),S(No),i("div",ta,[S(Lo),S(Yo)]),l(oe).available.value?(f(),ie(Jo,{key:0})):V("",true),r[4]||(r[4]=i("div",{class:"hidden w-full border-b border-areia my-8"},null,-1)),R(e.$slots,"optionsBottom")])]))}},na={class:"flex"},oa=["aria-expanded"],aa={__name:"OptionsButton",setup(t){const e=z(false),r=z(null),n=Pe(Xe,()=>{}),o=()=>{e.value=!e.value,n("options-toggle",{open:e.value})},a=()=>{e.value&&!C.blocked.value&&(e.value=false,n("options-toggle",{open:false}))};Nt(r,()=>a()),ke("Escape",()=>a());const{toggle:s}=Tr();return(c,p)=>(f(),g("div",{id:"options-menu",ref_key:"button",ref:r,class:"relative"},[i("div",na,[i("button",{onClick:p[0]||(p[0]=B(u=>o(),["prevent"])),class:"border p-3 shadow flex items-center border-white text-white",id:"options-button","aria-label":"Op\xE7\xF5es","aria-haspopup":"true","aria-expanded":e.value},[p[2]||(p[2]=i("span",{class:"block mr-3"}," Op\xE7\xF5es ",-1)),e.value?(f(),ie(Se,{key:0,class:"w-6 h-6"})):(f(),ie(po,{key:1,class:"w-6 h-6"}))],8,oa),i("button",{onClick:p[1]||(p[1]=B(u=>l(s)(),["prevent"])),class:"hidden md:flex items-center border p-3 shadow ml-3 border-white text-white"},[S(mo,{class:"w-6 h-6"})])]),S(He,{"enter-active-class":"transition ease-out duration-100 transform","enter-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-75 transform","leave-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:A(()=>[Ge(S(ra,null,{optionsTop:A(()=>[R(c.$slots,"optionsTop")]),optionsBottom:A(()=>[R(c.$slots,"optionsBottom")]),_:3},512),[[Rt,e.value]])]),_:3})],512))}},sa={key:0,id:"search-menu"},ia=["aria-expanded"],la={key:0,class:"search-panel-title"},ca={class:"search-input-row"},ua={class:"search-input-control"},da={class:"search-results-row"},pa={id:"search-status",role:"status","aria-live":"polite"},fa=["disabled"],ha=["disabled"],ga=["aria-expanded"],ma=["aria-busy"],va=["aria-current","onClick","onKeydown"],wa={class:"search-result-location"},ba={class:"search-result-excerpt"},ya={__name:"SearchButton",setup(t){const e=Pe(wt),{enabled:r,open:n,query:o,input:a,button:s,total:c,status:p,pending:u,panel:d,results:b,active:h}=e;J(d,async O=>{O&&n.value&&(await ue(),a.value?.focus({preventScroll:true}))}),J(h,async()=>{await ue(),d.value&&a.value?.getRootNode().querySelector('.search-result[aria-current="true"]')?.scrollIntoView({block:"nearest"})});async function v(O){e.navigate(O),await ue(),a.value?.getRootNode().querySelector('.search-result[aria-current="true"]')?.focus({preventScroll:true})}function P(){o.value="",a.value?.focus({preventScroll:true})}return(O,y)=>l(r)?(f(),g("div",sa,[i("button",{ref_key:"button",ref:s,id:"search-button",type:"button",class:"search-icon-button border p-3 shadow flex items-center border-white text-white","aria-label":"Buscar no texto",title:"Buscar no texto (Ctrl+F)","aria-controls":"search-dropdown","aria-expanded":l(n),onClick:y[0]||(y[0]=x=>l(n)?l(e).close():l(e).show())},[...y[11]||(y[11]=[i("svg",{class:"w-6 h-6",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[i("circle",{cx:"10.5",cy:"10.5",r:"6.5"}),i("path",{d:"m16 16 5 5"})],-1)])],8,ia),Ge(i("form",{id:"search-dropdown",role:"search","aria-label":"Buscar no texto",class:q({"search-panel":l(d)}),onSubmit:y[7]||(y[7]=B(x=>l(e).step(1),["prevent"])),onWheel:y[8]||(y[8]=B(()=>{},["stop"])),onKeydown:[y[9]||(y[9]=B(()=>{},["stop"])),y[10]||(y[10]=Me(B(x=>l(e).close(),["prevent"]),["esc"]))]},[l(d)?(f(),g("h2",la,"Resultados da busca")):V("",true),i("div",ca,[i("div",ua,[Ge(i("input",{id:"search-input",ref_key:"input",ref:a,"onUpdate:modelValue":y[1]||(y[1]=x=>ir(o)?o.value=x:null),type:"search",placeholder:"Palavra ou express\xE3o",autocomplete:"off",spellcheck:"false","aria-label":"Buscar no texto","aria-describedby":"search-status",onKeydown:y[2]||(y[2]=Me(B(x=>!x.isComposing&&l(e).step(x.shiftKey?-1:1),["prevent"]),["enter"]))},null,544),[[lr,l(o)]]),l(o)?(f(),g("button",{key:0,id:"search-clear-button",class:"search-icon-button",type:"button","aria-label":"Limpar busca",title:"Limpar busca",onClick:P},[S(Se,{class:"w-4 h-4","aria-hidden":"true"})])):V("",true)]),i("button",{class:"search-icon-button",type:"button","aria-label":"Fechar busca",title:"Fechar (Esc)",onClick:y[3]||(y[3]=x=>l(e).close())},[S(Se,{class:"w-6 h-6","aria-hidden":"true"})])]),i("div",da,[i("span",pa,U(l(p)),1),i("button",{class:"search-icon-button",type:"button","aria-label":"Ocorr\xEAncia anterior",title:"Anterior (Shift+Enter)",disabled:!l(c)||l(u),onClick:y[4]||(y[4]=x=>l(e).step(-1))},[...y[12]||(y[12]=[i("svg",{class:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[i("path",{d:"m6 14 6-6 6 6"})],-1)])],8,fa),i("button",{class:"search-icon-button",type:"button","aria-label":"Pr\xF3xima ocorr\xEAncia",title:"Pr\xF3xima (Enter)",disabled:!l(c)||l(u),onClick:y[5]||(y[5]=x=>l(e).step(1))},[...y[13]||(y[13]=[i("svg",{class:"w-5 h-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[i("path",{d:"m6 10 6 6 6-6"})],-1)])],8,ha)]),i("button",{id:"search-view-button",class:"search-icon-button",type:"button","aria-expanded":l(d),"aria-controls":"search-result-list",onClick:y[6]||(y[6]=x=>d.value=!l(d))},U(l(d)?"Usar busca compacta":"Ver trechos"),9,ga),l(d)?(f(),g("ol",{key:1,id:"search-result-list","aria-busy":l(u),"aria-label":"Trechos encontrados"},[(f(true),g(pe,null,Ce(l(b),(x,H)=>(f(),g("li",{key:`${x.source}:${x.id}`},[i("button",{type:"button",class:"search-result","aria-current":l(h)===H?"true":void 0,onClick:I=>v(H),onKeydown:[Me(B(I=>v(H+1),["prevent","stop"]),["down"]),Me(B(I=>v(H-1),["prevent","stop"]),["up"])]},[i("span",wa,U(x.source==="local"?`Neste cap\xEDtulo${x.page?` \xB7 P\xE1gina ${x.page}`:""}`:x.chapterTitle||"Outro cap\xEDtulo"),1),i("span",ba,[Ze(U(x.before),1),i("mark",null,U(x.match),1),Ze(U(x.after),1)])],40,va)]))),128))],8,ma)):V("",true)],34),[[Rt,l(n)]])])):V("",true)}},xa={id:"header-titles"},ka={class:"header-actions"},_a={__name:"HeaderSlot",setup(t){const e=Pe(wt);return(r,n)=>(f(),g("header",{id:"component-header",class:q(["bg-primary flex justify-between items-center p-4",{"search-enabled":l(e).enabled.value}])},[S(io,null,{summaryTop:A(()=>[R(r.$slots,"summaryTop")]),summaryBottom:A(()=>[R(r.$slots,"summaryBottom")]),_:3}),i("div",xa,[R(r.$slots,"header")]),i("div",ka,[S(ya),S(aa,null,{optionsTop:A(()=>[R(r.$slots,"optionsTop")]),optionsBottom:A(()=>[R(r.$slots,"optionsBottom")]),_:3})])],2))}},$a=["innerHTML"],Sa={__name:"BookContent",props:{bookContent:String},setup(t){const{content:e,initContent:r}=le,n=t,o=z(null);return De(()=>{r(n.bookContent,o)}),(a,s)=>(f(),g("div",{ref_key:"contentWrapper",ref:o},[l(e)?(f(),g("div",{key:0,innerHTML:l(e)},null,8,$a)):R(a.$slots,"content",{key:1})],512))}},Pa={name:"NavPrev",props:{target:String},computed:{type(){return"chapter"}}},Ca={key:0,viewBox:"0 0 20 20",fill:"currentColor",class:"[ viewer-nav-icon nav-prev ] arrow-narrow-left"},Ea={key:1,"data-v-ef9c31bc":"",viewBox:"0 0 20 20",fill:"currentColor",class:"[ viewer-nav-icon nav-next ] right-0 arrow-narrow-right"};function za(t,e,r,n,o,a){return f(),g("button",{onClick:e[0]||(e[0]=B(s=>t.$emit("clicked"),["prevent"])),class:q(["[ viewer-nav ]",a.type==="cover"?"text-white":"text-gray-dark"])},[r.target==="prev"?(f(),g("svg",Ca,[...e[1]||(e[1]=[i("path",{"fill-rule":"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])])):V("",true),r.target==="next"?(f(),g("svg",Ea,[...e[2]||(e[2]=[i("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"},null,-1)])])):V("",true)],2)}const Ft=K(Pa,[["render",za]]),Ta={id:"engine",class:"pt-10 transition-colors"},Oa={class:"engineWrapper overflow-hidden"},Fa={__name:"EngineWrapper",setup(t){const{next:e,prev:r}=W;return(n,o)=>(f(),g("div",Ta,[i("div",Oa,[S(Ft,{target:"prev",onClicked:o[0]||(o[0]=a=>l(r)(false,"previous-button"))}),R(n.$slots,"default"),S(Ft,{target:"next",onClicked:o[1]||(o[1]=a=>l(e)(false,"next-button"))})])]))}},Ra={class:"[ typeArea ] h-full relative transition-opacity duration-100 opacity-100 px-2 md:px-24"},Ma={__name:"ReaderWrapper",setup(t){const{currentPage:e,changeSource:r}=W,n=z(null),{width:o}=lt(),{distanceX:a}=Or(n,{onSwipeEnd(){o.value<600&&(a.value>100&&W.next(false,"swipe"),a.value<-100&&W.prev(false,"swipe"))}});return(s,c)=>(f(),g("div",{ref_key:"el",ref:n,class:q(["columnsArea",{"search-navigation":l(r)==="search"}]),style:we(l(e)>1?`transform: translateX(-${100*(l(e)-1)}%)`:"")},[i("div",Ra,[R(s.$slots,"default")])],6))}},Ba={key:0,tabindex:"0",class:"[ reference-popup ] bg-gray-800 text-white fixed z-40 bottom-0 md:bottom-14 right-0 md:right-3 rounded flex justify-between p-4 shadow w-full md:w-2/5"},Aa=["innerHTML"],Ia={class:"mt-3 flex self-end"},Na={__name:"ReferencePopup",setup(t){const{reference:e,setHighlightedReference:r}=ze;function n(){r(null)}return ke("Escape",()=>{C.blocked.value||r(null)}),(o,a)=>(f(),ie(He,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-200","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:A(()=>[l(e)?(f(),g("div",Ba,[i("p",{class:"w-4/5",innerHTML:l(e).ref},null,8,Aa),i("div",Ia,[i("button",{onClick:a[0]||(a[0]=B(s=>n(),["prevent"])),class:"button button-negative"},"OK")])])):V("",true)]),_:1}))}},La=["max","step","value","aria-valuetext"],ja={key:0,class:"page-slider-tooltip","aria-hidden":"true"},Wa={__name:"PageSlider",setup(t){const{totalPages:e,currentPage:r,set:n}=W,o=z(null),a=w(()=>o.value!==null),s=w(()=>o.value??r.value),c=w(()=>e.value>1?Math.min(1,Math.max(0,(s.value-1)/(e.value-1))):0),p=w(()=>`${r.value} de ${e.value}`);function u(h){h.button===0&&(h.currentTarget.step="any",o.value=r.value,window.addEventListener("pointerup",d),window.addEventListener("pointercancel",d))}function d(){window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),o.value=null}function b(h){const v=Number(h.target.value);a.value&&(o.value=v),n(Math.round(v),"slider")}return st(d),(h,v)=>(f(),g("div",{class:q(["page-slider",{"page-slider-dragging":a.value}]),style:we({"--slider-progress":c.value})},[v[0]||(v[0]=i("div",{class:"page-slider-connect"},null,-1)),i("input",{type:"range",class:"page-slider-input",min:"1",max:l(e),step:a.value?"any":1,value:s.value,"aria-label":"P\xE1gina","aria-valuetext":p.value,onPointerdown:u,onInput:b},null,40,La),a.value?(f(),g("div",ja,U(p.value),1)):V("",true)],6))}},qa={class:"py-2 px-10 text-gray-700 dark:text-white"},Da={__name:"FooterSlot",setup(t){return(e,r)=>(f(),g("div",qa,[R(e.$slots,"footer",{},()=>[r[0]||(r[0]=i("p",null,"\xA0",-1))]),S(Wa,{class:"w-full"})]))}},Ha={},Va={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"};function Ka(t,e){return f(),g("svg",Va,[...e[0]||(e[0]=[i("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"},null,-1)])])}const Ua=K(Ha,[["render",Ka]]);const Ya={key:0,id:"asidebar",class:"absolute top-0 right-0 w-96 md:w-[40em] flex-shrink-0 h-screen overflow-auto overflow-x-hidden z-20 shadow-2xl"},Xa={class:"w-full p-4"},Qa={class:"text-areia py-4 pl-4"},Ja={class:"flex items-center mb-6"},Ga={class:"ml-4"},Za={class:"ml-10"},es=["id","innerHTML"],ts={__name:"FootnotesAside",setup(t){const e=w(()=>ae.footnote.value),r=w(()=>ae.footnote.value),n=w(()=>ae.showFootnotes.value),o=w(()=>ae.footnotes.value),a=z(null),s=z(null);function c(){ae.setHighlightedFootnote(null),ae.setShowFootnotes(false)}return ke("Escape",()=>{(r.value||n.value)&&c()}),J([r,n],()=>{r.value||n.value?(C.blocked.value===false&&(a.value=C.blocked.value),C.setBlocked(true)):(a.value===false&&C.setBlocked(a.value),a.value=null),r.value&&setTimeout(()=>{const p=s.value.querySelector(`#${r.value.id}`);p.scrollIntoView(),p.focus()},50)}),(p,u)=>(f(),ie(He,{name:"width"},{default:A(()=>[e.value||n.value?(f(),g("div",Ya,[i("button",{onClick:u[0]||(u[0]=B(d=>c(),["prevent"])),class:"fixed top-4 right-8 z-20"},[S(Se,{class:"w-6 h-6 text-white"})]),i("div",Xa,[i("header",Qa,[i("div",Ja,[S(Ua,{class:"w-8 h-8"}),i("span",Ga,[u[1]||(u[1]=Ze(" Notas de rodap\xE9 ",-1)),i("span",Za,U(o.value.length),1)])])]),i("section",null,[i("ul",{ref_key:"footnoteList",ref:s},[(f(true),g(pe,null,Ce(o.value,(d,b)=>(f(),g("li",{key:d.id,id:d.id,innerHTML:`<span class='footnote-index'>${b+1}.</span> ${d.text}`,class:q(["text-left border-b border-b-white/25 last:border-transparent p-10 relative",r.value&&r.value.id!==d.id?"opacity-50":"opacity-100"])},null,10,es))),128))],512)])])])):V("",true)]),_:1}))}},rs=K(ts,[["__scopeId","data-v-5391e486"]]),ns=`.border-primary{border-color:var(--theme-primary, #690000)}.text-primary{color:var(--theme-primary, #690000)}.bg-primary{background-color:var(--theme-primary, #690000)}.border-primary-extralight{border-color:var(--theme-primary-extralight, #f3f4f6)}.text-primary-extralight{color:var(--theme-primary-extralight, #f3f4f6)}.bg-primary-extralight{background-color:var(--theme-primary-extralight, #f3f4f6)}.border-secondary{border-color:var(--theme-secondary, #ffa03c)}.text-secondary{color:var(--theme-secondary, #ffa03c)}.bg-secondary{background-color:var(--theme-secondary, #ffa03c)}.rootWrapper{max-height:100%;height:100%}main#rootComponent{height:100%;max-height:100%}main#rootComponent.light{background-color:var(--bg-light-mode, #fff7e0)}main#rootComponent.dark{background-color:var(--bg-dark-mode, #2d2d2d)}main#rootComponent.dark #content-area{color:#fff}header.wrapper{width:200px;margin:0 auto}#engine{height:calc(100% - 8.4rem);position:relative;right:0;left:0;bottom:0;width:100%}.rootWrapper.safari{max-height:initial;height:initial}.rootWrapper.safari #engine{height:auto!important}#reader-component{width:calc(100% - 5rem);position:relative}.header-actions{display:flex;align-items:center;gap:.75rem;flex-shrink:0}@media (max-width: 600px){.search-enabled #options-button>span{display:none}}#component-header{position:relative;z-index:20}#search-dropdown{position:absolute;top:calc(100% + .25rem);right:1rem;width:min(23rem,calc(100% - 2rem));padding:1rem;background:#fff;color:#222;box-shadow:0 4px 12px #0003;font-size:.875rem;line-height:1.5}.search-input-row,.search-results-row{display:flex;align-items:center;gap:.5rem}.search-results-row{margin-top:.5rem}.search-input-control{position:relative;flex:1;min-width:0}#search-input{min-width:0;width:100%;padding:.5rem 2.75rem .5rem .5rem;border:1px solid currentColor;border-radius:.25rem;background:transparent;color:inherit;font:inherit}#search-status{flex:1}#search-input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}#search-clear-button{position:absolute;right:.25rem;top:0;bottom:0;margin:auto;width:2rem;height:2rem}.search-icon-button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:.25rem;cursor:pointer;transition:background-color .12s ease,transform 80ms ease}#search-button{--search-control-hover: #ffffff26;--search-control-active: #ffffff40}.search-icon-button:not(:disabled):hover,.search-icon-button:not(:disabled):focus-visible{background-color:var(--search-control-hover, #0000000d)}.search-icon-button:not(:disabled):active{background-color:var(--search-control-active, #0000001f);transform:scale(.94)}#search-dropdown button{padding:.375rem}#search-dropdown button:disabled{opacity:.4;cursor:default}#search-dropdown :focus-visible,#search-button:focus-visible{outline:2px solid currentColor;outline-offset:2px}.search-highlights{position:absolute;inset:0;overflow:hidden;pointer-events:none}#search-dropdown.search-panel{position:fixed;top:0;right:0;width:min(30rem,100%);height:100%;height:100dvh;display:flex;flex-direction:column;box-sizing:border-box;z-index:30;box-shadow:-4px 0 20px #0003;background:var(--search-panel-bg, #fff);color:var(--search-panel-color, #222)}.search-panel-title{font-size:1.125rem;font-weight:700;margin-bottom:1rem}#search-view-button{margin-top:.75rem;align-self:flex-start;text-decoration:underline}#search-result-list{overflow-y:auto;overscroll-behavior:contain;min-height:0;margin-top:.75rem}#search-result-list li+li{border-top:1px solid var(--search-result-divider-color, #8884)}#search-result-list .search-result{display:block;width:100%;padding:1rem .75rem;text-align:left}.search-result:not([aria-current="true"]):hover{background:var(--search-result-hover-bg, #00000008)}.search-result[aria-current=true]{background:var(--search-result-active-bg, #ffa03c26)}.search-result-location{display:block;font-size:.75rem;margin-bottom:.375rem;opacity:.8}.search-result-excerpt{overflow-wrap:anywhere;white-space:pre-wrap}.search-result mark{background:var(--search-result-highlight-bg, #ffc40066);color:var(--search-result-highlight-color, inherit);font-weight:700}.dark #search-dropdown.search-panel{background:var(--search-panel-bg, #2d2d2d);color:var(--search-panel-color, #fff)}.dark .search-result:not([aria-current="true"]):hover{background:var(--search-result-hover-bg, #ffffff12)}.search-highlight-track{width:100%;height:100%}.search-highlight{position:absolute;background:#ffc40033;border-radius:2px}.search-highlight-active{background:#ffc40066;outline:1px solid #b87800}.columnsArea.search-navigation,.search-highlight-track.search-navigation{transition:transform .22s ease}@media (prefers-reduced-motion: reduce){.columnsArea.search-navigation,.search-highlight-track.search-navigation,.search-icon-button{transition:none}.search-icon-button:not(:disabled):active{transform:none}}.typeArea{width:100%}.engineWrapper{height:100%;display:flex;justify-content:space-between;position:relative;right:0;left:0;bottom:0;width:100%}.rootWrapper:not(.safari) .columns-double .columnsArea{-moz-column-count:2;column-count:2;grid-column-gap:0;-moz-column-gap:0;column-gap:0;height:100%;padding:0;width:100%}@media only screen and (max-width: 1020px){.rootWrapper:not(.safari) .columns-double .columnsArea{-moz-column-count:1;column-count:1}}.rootWrapper:not(.safari) .columns-single .columnsArea{-moz-column-count:1;column-count:1;-moz-column-gap:0;column-gap:0;height:100%;padding:0;width:100%}.rootWrapper:not(.safari) .columns-single .columnsArea #content-area{max-width:37em;margin:0 auto}.nav-prev{left:0}.nav-next{right:0}.viewer-nav{height:100%;position:relative;top:0;bottom:0;z-index:10;width:2.5rem;flex-shrink:0;cursor:pointer;align-self:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.5s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.viewer-nav:focus,.viewer-nav:active{border:none!important;box-shadow:none!important;outline-color:transparent!important}#content-area *::-moz-selection{color:var(--theme-primary-extralight, #690000);background:var(--theme-secondary, #ffa03c)}#content-area *::selection{color:var(--theme-primary-extralight, #690000);background:var(--theme-secondary, #ffa03c)}.viewer-nav-icon{opacity:0}@media (min-width: 768px){.viewer-nav-icon{opacity:.8}}@media only screen and (max-width: 600px){.columnsArea{transition:transform .1s}}#asidebar{background:var(--sidebar-backgorund, #690000);color:var(--sidebar-text, #f3f4f6)}
5
+ `,os=`.rootWrapper.safari .page-slider{display:none!important}.page-slider{position:relative;width:100%;height:var(--slider-height, 6px);border-radius:var(--slider-radius, 9999px);background-color:var(--slider-bg, #d1d5db);-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.page-slider-connect{position:absolute;top:0;bottom:0;left:0;width:calc(var(--slider-progress, 0) * 100%);border-radius:inherit;background:var(--theme-secondary, #690000)}.page-slider-input{position:absolute;left:calc(var(--slider-handle-width, 16px) / -2);top:calc((var(--slider-height, 6px) - var(--slider-handle-height, 16px)) / 2 - 1px);width:calc(100% + var(--slider-handle-width, 16px));height:var(--slider-handle-height, 16px);margin:0;padding:0;background:transparent;cursor:pointer;touch-action:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none}.page-slider-input::-webkit-slider-runnable-track{height:100%;background:transparent;border:0}.page-slider-input::-moz-range-track{height:100%;background:transparent;border:0}.page-slider-input::-webkit-slider-thumb{box-sizing:border-box;width:var(--slider-handle-width, 16px);height:var(--slider-handle-height, 16px);background:var(--slider-handle-bg, #fff);border:var(--slider-handle-border, 0);border-radius:var(--slider-handle-radius, 9999px);box-shadow:var(--slider-handle-shadow, .5px .5px 2px 1px rgba(0, 0, 0, .32));cursor:grab;-webkit-appearance:none;appearance:none}.page-slider-input::-moz-range-thumb{box-sizing:border-box;width:var(--slider-handle-width, 16px);height:var(--slider-handle-height, 16px);background:var(--slider-handle-bg, #fff);border:var(--slider-handle-border, 0);border-radius:var(--slider-handle-radius, 9999px);box-shadow:var(--slider-handle-shadow, .5px .5px 2px 1px rgba(0, 0, 0, .32));cursor:grab}.page-slider-dragging .page-slider-input{cursor:grabbing}.page-slider-dragging .page-slider-input::-webkit-slider-thumb{cursor:grabbing;box-shadow:var(--slider-handle-shadow-active, .5px .5px 2px 1px rgba(0, 0, 0, .42))}.page-slider-dragging .page-slider-input::-moz-range-thumb{cursor:grabbing;box-shadow:var(--slider-handle-shadow-active, .5px .5px 2px 1px rgba(0, 0, 0, .42))}.page-slider-input:focus::-webkit-slider-thumb{box-shadow:0 0 0 var(--slider-handle-ring-width, 3px) var(--slider-handle-ring-color, rgba(16, 185, 129, .188)),var(--slider-handle-shadow, .5px .5px 2px 1px rgba(0, 0, 0, .32))}.page-slider-input:focus::-moz-range-thumb{box-shadow:0 0 0 var(--slider-handle-ring-width, 3px) var(--slider-handle-ring-color, rgba(16, 185, 129, .188)),var(--slider-handle-shadow, .5px .5px 2px 1px rgba(0, 0, 0, .32))}.page-slider-tooltip{position:absolute;left:calc(var(--slider-progress, 0) * 100%);bottom:calc(100% + var(--slider-tooltip-arrow-size, 5px) + (var(--slider-handle-height, 16px) - var(--slider-height, 6px)) / 2 + var(--slider-tooltip-distance, 3px) + 1px);transform:translate(-50%);min-width:var(--slider-tooltip-min-width, 20px);padding:var(--slider-tooltip-py, 2px) var(--slider-tooltip-px, 6px);border:1px solid var(--theme-secondary, #690000);border-radius:var(--slider-tooltip-radius, 5px);background:var(--theme-secondary, #690000);color:var(--slider-tooltip-color, #fff);font-size:var(--slider-tooltip-font-size, .875rem);font-weight:var(--slider-tooltip-font-weight, 600);line-height:var(--slider-tooltip-line-height, 1.25rem);text-align:center;white-space:nowrap;pointer-events:none}.page-slider-tooltip:before{content:"";position:absolute;left:50%;bottom:calc(var(--slider-tooltip-arrow-size, 5px) * -2);width:0;height:0;border:var(--slider-tooltip-arrow-size, 5px) solid transparent;border-top-color:inherit;transform:translate(-50%)}
6
+ `,as=`:host{-webkit-user-select:text;-moz-user-select:text;user-select:text}::slotted(*){-webkit-user-select:text;-moz-user-select:text;user-select:text}::slotted(p){-webkit-user-select:text;-moz-user-select:text;user-select:text;display:block}
7
+ `,ss={class:"text-white text-center text-sm"},is={class:"text-white text-center text-xs"},ls={key:0,class:"search-highlights","aria-hidden":"true"},cs={__name:"App.ce",props:{bookTitle:String,bookContent:String,readerSettings:String,readerBlocked:Boolean,rootClass:{type:String,default:""},cssFile:String,cssString:String},setup(t){const e=t,{baseFont:r,bookTitle:n,chapterTitle:o,textFont:a,fontSize:s,columns:c,setColumns:p,mode:u}=C,{currentPage:d,totalPages:b,changeSource:h}=W,{content:v,listenToClicks:P}=le,{width:O,height:y}=lt(),x=z(null),H=z(null),I=z(null),L=Nn(I,x,H,F);kt(wt,L);let G=0,m=null;function M(){const $=le.context.value.chapter;return{pagination:{currentPage:d.value,totalPages:b.value,progress:b.value>1?(d.value-1)/(b.value-1):0},settings:{baseFont:r.value,textFont:a.value,fontSize:s.value,columns:c.value,mode:u.value,blocked:C.blocked.value,searchEnabled:L.enabled.value,readingProgressEnabled:C.readingProgressEnabled.value},content:{bookTitle:e.bookTitle||n.value,chapterTitle:o.value,chapter:$?{...$}:null}}}function F($,j={}){!m||m.dispatchEvent(new CustomEvent(`paginar:${$}`,{bubbles:true,composed:true,detail:{...j,state:M()}}))}kt(Xe,F);function re($=false){const j=oe.sync(d.value,b.value,$);j&&W.set(j,"reading-progress")}function Z(){const $=++G,j=d.value,ee=b.value;oe.suspend();const ne=je.estimate(x,H);ue(()=>requestAnimationFrame(()=>{if($!==G)return;const ge=oe.repaginate(j,ee,ne);ge?W.set(ge,"repagination"):re(true),oe.resume(),oe.save(d.value,ne),L.measure()}))}function X(){oe.save(d.value,b.value)}function Oe(){document.visibilityState==="hidden"&&X()}return De(async()=>{m=I.value?.getRootNode()?.host||null,m&&(m.getState=M,m.goToPage=$=>W.set($,"api"),m.nextPage=()=>W.next(false,"api"),m.previousPage=()=>W.prev(false,"api"),m.refresh=()=>{try{const $=JSON.parse(m.getAttribute("book-content")||"null");$?.footnotes&&ae.setFootnotes($.footnotes),$?.references&&ze.setReferences($.references)}catch{}Z()},m.search=L.searchText,m.getSearchState=L.getState,m.setSearchResults=L.setResults),C.initSettings(e.readerSettings),L.init(e.readerSettings),oe.init(e.readerSettings,e.bookTitle||n.value),W.init(x,H,Z),requestAnimationFrame(()=>{Z()}),jt.initStyles(e,I),window.addEventListener("pagehide",X),document.addEventListener("visibilitychange",Oe),["string","boolean"].includes(typeof e.readerBlocked)&&C.setBlocked(e.readerBlocked),ue(()=>requestAnimationFrame(()=>F("ready")))}),st(()=>{W.stopObserving(),window.removeEventListener("pagehide",X),document.removeEventListener("visibilitychange",Oe),m&&(delete m.getState,delete m.goToPage,delete m.nextPage,delete m.previousPage,delete m.refresh,delete m.search,delete m.getSearchState,delete m.setSearchResults),m=null}),J(e,()=>{if(e.hasOwnProperty("readerBlocked")){const $=typeof e.readerBlocked=="boolean"?e.readerBlocked:e.readerBlocked==="true";C.setBlocked($)}}),Pt([O,y,v,c,s,a],()=>{O.value<1024&&c.value==="double"?p("single"):requestAnimationFrame(()=>{Z()})},{debounce:125,maxWait:250}),J(d,($,j)=>{re(),F("page-change",{page:$,previousPage:j,source:h.value})},{flush:"sync"}),J([r,a,s,c,u,C.readingProgressEnabled],($,j)=>{const ne=["baseFont","textFont","fontSize","columns","mode","readingProgressEnabled"].reduce((ge,Fe,me)=>($[me]!==j[me]&&(ge[Fe]={previous:j[me],value:$[me]}),ge),{});Object.keys(ne).length&&F("settings-change",{changes:ne})},{flush:"post"}),Pt(v,()=>P(H),{debounce:125,maxWait:250}),($,j)=>(f(),g("div",{class:q(["rootWrapper",l(nt).isSafari?"safari":""])},[i("main",{id:"rootComponent",ref_key:"rootComponent",ref:I,class:q(l(u).concat(` ${e.rootClass}`).concat(` currentPage-${l(d)}`).concat(` totalPages-${l(b)}`).concat(` columns-${l(c)}`)),style:we(`font-family: ${l(r)}`)},[S(_a,null,{header:A(()=>[R($.$slots,"header",{},()=>[i("p",ss,U(e.bookTitle||l(n)),1),i("p",is,U(e.chapterTitle||l(o)),1)])]),summaryTop:A(()=>[R($.$slots,"summaryTop")]),summaryBottom:A(()=>[R($.$slots,"summaryBottom")]),optionsTop:A(()=>[R($.$slots,"optionsTop")]),optionsBottom:A(()=>[R($.$slots,"optionsBottom")]),_:3}),S(Fa,null,{default:A(()=>[i("div",{id:"reader-component",ref_key:"readerComponent",ref:x},[S(Ma,null,{default:A(()=>[i("section",{id:"content-area",ref_key:"contentArea",ref:H,style:we(`font-family: ${l(a)}; font-size: ${l(s)}px`)},[S(Sa,{bookContent:t.bookContent},{content:A(()=>[R($.$slots,"content")]),_:3},8,["bookContent"])],4)]),_:3}),l(L).open.value?(f(),g("div",ls,[i("div",{class:q(["search-highlight-track",{"search-navigation":l(h)==="search"}]),style:we({transform:`translateX(-${100*(l(d)-1)}%)`})},[(f(true),g(pe,null,Ce(l(L).rectangles.value,ee=>(f(),g("span",{key:ee.key,class:q(["search-highlight",{"search-highlight-active":ee.active}]),style:we(ee.style)},null,6))),128))],6)])):V("",true)],512)]),_:3}),S(Da,{currPage:l(d),totalPages:l(b)},null,8,["currPage","totalPages"]),S(Na)],6),S(rs)],2))}},tr=K(cs,[["styles",[ns,os,as]]]),us=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type="button"]),input:where([type="reset"]),input:where([type="submit"]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden="until-found"])){display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-right-2{right:-.5rem}.bottom-0{bottom:0}.right-0{right:0}.right-8{right:2rem}.top-0{top:0}.top-14{top:3.5rem}.top-4{top:1rem}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.mx-auto{margin-left:auto;margin-right:auto}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-2{margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.ml-10{margin-left:2.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.w-11{width:2.75rem}.w-4{width:1rem}.w-4\\/5{width:80%}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-8{width:2rem}.w-96{width:24rem}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.divide-opacity-75>:not([hidden])~:not([hidden]){--tw-divide-opacity: .75}.self-end{align-self:flex-end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-sm{border-radius:.125rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-b-white\\/25{border-bottom-color:#ffffff40}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-10{padding:2.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-10{padding-top:2.5rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-light{font-weight:300}.lowercase{text-transform:lowercase}.tracking-wide{letter-spacing:.025em}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.last\\:border-transparent:last-child{border-color:transparent}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}@media (min-width: 768px){.md\\:bottom-14{bottom:3.5rem}.md\\:right-16{right:4rem}.md\\:right-3{right:.75rem}.md\\:flex{display:flex}.md\\:grid{display:grid}.md\\:w-2\\/5{width:40%}.md\\:w-\\[40em\\]{width:40em}.md\\:px-24{padding-left:6rem;padding-right:6rem}}@media (prefers-color-scheme: dark){.dark\\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}}
8
+ `,ds=[us,...tr.styles],at=cr({...tr,styles:ds});for(const t of["_beginPatch","_endPatch"])typeof at.prototype[t]!="function"&&Object.defineProperty(at.prototype,t,{value(){},configurable:true,writable:true});customElements.define("paginate-content",at);
9
+ //# sourceMappingURL=index.vue-external.es.js.map