Module 22098

371 characters · in no known chunk
Dependencies
Required by (3)
Lazily required by (0)none
Requires (1)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{Q:()=>r});var i=n(820066);function r(e,t,n,r){let s=0;for(let a=0;a<n.length;a++){let o=n[a];if(null==o)continue;let l=s+o.length;if(r<=l){let n=i.PW.child(t,a),o=i.VW.node(e,n)[0];if(i.l5.isText(o))return{path:n,offset:Math.min(Math.max(r-s,0),o.text.length)}}s=l}let a=n.length-1;return{path:i.PW.child(t,a),offset:n[a]?.length??0}}}