forked from Edikoyo/EdikoyoWiki
19 lines
187 KiB
JavaScript
19 lines
187 KiB
JavaScript
/*
|
|
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
|
|
if you want to view the source, please visit the github repository of this plugin
|
|
*/
|
|
|
|
var Ri=Object.create;var ir=Object.defineProperty;var Yi=Object.getOwnPropertyDescriptor;var Li=Object.getOwnPropertyNames;var Hi=Object.getPrototypeOf,Gi=Object.prototype.hasOwnProperty;var En=r=>ir(r,"__esModule",{value:!0});var Vi=(r,e)=>{En(r);for(var t in e)ir(r,t,{get:e[t],enumerable:!0})},Wi=(r,e,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Li(e))!Gi.call(r,n)&&n!=="default"&&ir(r,n,{get:()=>e[n],enumerable:!(t=Yi(e,n))||t.enumerable});return r},V=r=>Wi(En(ir(r!=null?Ri(Hi(r)):{},"default",r&&r.__esModule&&"default"in r?{get:()=>r.default,enumerable:!0}:{value:r,enumerable:!0})),r);var kn=(()=>{for(var r=new Uint8Array(128),e=0;e<64;e++)r[e<26?e+65:e<52?e+71:e<62?e-4:e*4-205]=e;return t=>{for(var n=t.length,o=new Uint8Array((n-(t[n-1]=="=")-(t[n-2]=="="))*3/4|0),s=0,l=0;s<n;){var p=r[t.charCodeAt(s++)],A=r[t.charCodeAt(s++)],g=r[t.charCodeAt(s++)],f=r[t.charCodeAt(s++)];o[l++]=p<<2|A>>4,o[l++]=A<<4|g>>2,o[l++]=g<<6|f}return o}})();Vi(exports,{default:()=>fn});var jr=V(require("obsidian"));var I=V(require("obsidian"));var Tn=V(require("obsidian"));function K(r){let e=new Tn.Notice("",8e3);r instanceof w&&r.console_msg?(e.noticeEl.innerHTML=`<b>Templater Error</b>:<br/>${r.message}<br/>Check console for more information`,console.error("Templater Error:",r.message,`
|
|
`,r.console_msg)):e.noticeEl.innerHTML=`<b>Templater Error</b>:<br/>${r.message}`}var w=class extends Error{constructor(e,t){super(e);this.console_msg=t;this.name=this.constructor.name,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}};async function Oe(r,e){try{return await r()}catch(t){return t instanceof w?K(t):K(new w(e,t.message)),null}}function me(r,e){try{return r()}catch(t){return K(new w(e,t.message)),null}}var Xn=V(require("obsidian"));var zn=V(require("obsidian"));var W="top",Z="bottom",Q="right",U="left",or="auto",Ze=[W,Z,Q,U],We="start",at="end",Fn="clippingParents",sr="viewport",wt="popper",Mn="reference",xr=Ze.reduce(function(r,e){return r.concat([e+"-"+We,e+"-"+at])},[]),ar=[].concat(Ze,[or]).reduce(function(r,e){return r.concat([e,e+"-"+We,e+"-"+at])},[]),Ki="beforeRead",Ui="read",zi="afterRead",Ji="beforeMain",Xi="main",Qi="afterMain",Zi="beforeWrite",eo="write",to="afterWrite",Pn=[Ki,Ui,zi,Ji,Xi,Qi,Zi,eo,to];function te(r){return r?(r.nodeName||"").toLowerCase():null}function Y(r){if(r==null)return window;if(r.toString()!=="[object Window]"){var e=r.ownerDocument;return e&&e.defaultView||window}return r}function he(r){var e=Y(r).Element;return r instanceof e||r instanceof Element}function ee(r){var e=Y(r).HTMLElement;return r instanceof e||r instanceof HTMLElement}function bt(r){if(typeof ShadowRoot=="undefined")return!1;var e=Y(r).ShadowRoot;return r instanceof e||r instanceof ShadowRoot}function ro(r){var e=r.state;Object.keys(e.elements).forEach(function(t){var n=e.styles[t]||{},o=e.attributes[t]||{},s=e.elements[t];!ee(s)||!te(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(l){var p=o[l];p===!1?s.removeAttribute(l):s.setAttribute(l,p===!0?"":p)}))})}function no(r){var e=r.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],s=e.attributes[n]||{},l=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]),p=l.reduce(function(A,g){return A[g]="",A},{});!ee(o)||!te(o)||(Object.assign(o.style,p),Object.keys(s).forEach(function(A){o.removeAttribute(A)}))})}}var Bn={name:"applyStyles",enabled:!0,phase:"write",fn:ro,effect:no,requires:["computeStyles"]};function re(r){return r.split("-")[0]}var ye=Math.max,lt=Math.min,Ke=Math.round;function yt(){var r=navigator.userAgentData;return r!=null&&r.brands&&Array.isArray(r.brands)?r.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function qt(){return!/^((?!chrome|android).)*safari/i.test(yt())}function je(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var n=r.getBoundingClientRect(),o=1,s=1;e&&ee(r)&&(o=r.offsetWidth>0&&Ke(n.width)/r.offsetWidth||1,s=r.offsetHeight>0&&Ke(n.height)/r.offsetHeight||1);var l=he(r)?Y(r):window,p=l.visualViewport,A=!qt()&&t,g=(n.left+(A&&p?p.offsetLeft:0))/o,f=(n.top+(A&&p?p.offsetTop:0))/s,b=n.width/o,k=n.height/s;return{width:b,height:k,top:f,right:g+b,bottom:f+k,left:g,x:g,y:f}}function ct(r){var e=je(r),t=r.offsetWidth,n=r.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:r.offsetLeft,y:r.offsetTop,width:t,height:n}}function It(r,e){var t=e.getRootNode&&e.getRootNode();if(r.contains(e))return!0;if(t&&bt(t)){var n=e;do{if(n&&r.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ae(r){return Y(r).getComputedStyle(r)}function Er(r){return["table","td","th"].indexOf(te(r))>=0}function ne(r){return((he(r)?r.ownerDocument:r.document)||window.document).documentElement}function Ue(r){return te(r)==="html"?r:r.assignedSlot||r.parentNode||(bt(r)?r.host:null)||ne(r)}function On(r){return!ee(r)||Ae(r).position==="fixed"?null:r.offsetParent}function io(r){var e=/firefox/i.test(yt()),t=/Trident/i.test(yt());if(t&&ee(r)){var n=Ae(r);if(n.position==="fixed")return null}var o=Ue(r);for(bt(o)&&(o=o.host);ee(o)&&["html","body"].indexOf(te(o))<0;){var s=Ae(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function xe(r){for(var e=Y(r),t=On(r);t&&Er(t)&&Ae(t).position==="static";)t=On(t);return t&&(te(t)==="html"||te(t)==="body"&&Ae(t).position==="static")?e:t||io(r)||e}function At(r){return["top","bottom"].indexOf(r)>=0?"x":"y"}function pt(r,e,t){return ye(r,lt(e,t))}function qn(r,e,t){var n=pt(r,e,t);return n>t?t:n}function St(){return{top:0,right:0,bottom:0,left:0}}function Ct(r){return Object.assign({},St(),r)}function Dt(r,e){return e.reduce(function(t,n){return t[n]=r,t},{})}var oo=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Ct(typeof e!="number"?e:Dt(e,Ze))};function so(r){var e,t=r.state,n=r.name,o=r.options,s=t.elements.arrow,l=t.modifiersData.popperOffsets,p=re(t.placement),A=At(p),g=[U,Q].indexOf(p)>=0,f=g?"height":"width";if(!(!s||!l)){var b=oo(o.padding,t),k=ct(s),x=A==="y"?W:U,O=A==="y"?Z:Q,M=t.rects.reference[f]+t.rects.reference[A]-l[A]-t.rects.popper[f],j=l[A]-t.rects.reference[A],P=xe(s),L=P?A==="y"?P.clientHeight||0:P.clientWidth||0:0,N=M/2-j/2,T=b[x],S=L-k[f]-b[O],q=L/2-k[f]/2+N,R=pt(T,q,S),z=A;t.modifiersData[n]=(e={},e[z]=R,e.centerOffset=R-q,e)}}function ao(r){var e=r.state,t=r.options,n=t.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||!It(e.elements.popper,o)||(e.elements.arrow=o))}var In={name:"arrow",enabled:!0,phase:"main",fn:so,effect:ao,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _e(r){return r.split("-")[1]}var lo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function co(r,e){var t=r.x,n=r.y,o=e.devicePixelRatio||1;return{x:Ke(t*o)/o||0,y:Ke(n*o)/o||0}}function Sn(r){var e,t=r.popper,n=r.popperRect,o=r.placement,s=r.variation,l=r.offsets,p=r.position,A=r.gpuAcceleration,g=r.adaptive,f=r.roundOffsets,b=r.isFixed,k=l.x,x=k===void 0?0:k,O=l.y,M=O===void 0?0:O,j=typeof f=="function"?f({x,y:M}):{x,y:M};x=j.x,M=j.y;var P=l.hasOwnProperty("x"),L=l.hasOwnProperty("y"),N=U,T=W,S=window;if(g){var q=xe(t),R="clientHeight",z="clientWidth";if(q===Y(t)&&(q=ne(t),Ae(q).position!=="static"&&p==="absolute"&&(R="scrollHeight",z="scrollWidth")),q=q,o===W||(o===U||o===Q)&&s===at){T=Z;var J=b&&q===S&&S.visualViewport?S.visualViewport.height:q[R];M-=J-n.height,M*=A?1:-1}if(o===U||(o===W||o===Z)&&s===at){N=Q;var G=b&&q===S&&S.visualViewport?S.visualViewport.width:q[z];x-=G-n.width,x*=A?1:-1}}var m=Object.assign({position:p},g&&lo),h=f===!0?co({x,y:M},Y(t)):{x,y:M};if(x=h.x,M=h.y,A){var c;return Object.assign({},m,(c={},c[T]=L?"0":"",c[N]=P?"0":"",c.transform=(S.devicePixelRatio||1)<=1?"translate("+x+"px, "+M+"px)":"translate3d("+x+"px, "+M+"px, 0)",c))}return Object.assign({},m,(e={},e[T]=L?M+"px":"",e[N]=P?x+"px":"",e.transform="",e))}function Ao(r){var e=r.state,t=r.options,n=t.gpuAcceleration,o=n===void 0?!0:n,s=t.adaptive,l=s===void 0?!0:s,p=t.roundOffsets,A=p===void 0?!0:p,g={placement:re(e.placement),variation:_e(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Sn(Object.assign({},g,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:A})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Sn(Object.assign({},g,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:A})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Cn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ao,data:{}};var lr={passive:!0};function po(r){var e=r.state,t=r.instance,n=r.options,o=n.scroll,s=o===void 0?!0:o,l=n.resize,p=l===void 0?!0:l,A=Y(e.elements.popper),g=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&g.forEach(function(f){f.addEventListener("scroll",t.update,lr)}),p&&A.addEventListener("resize",t.update,lr),function(){s&&g.forEach(function(f){f.removeEventListener("scroll",t.update,lr)}),p&&A.removeEventListener("resize",t.update,lr)}}var Dn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:po,data:{}};var uo={left:"right",right:"left",bottom:"top",top:"bottom"};function xt(r){return r.replace(/left|right|bottom|top/g,function(e){return uo[e]})}var mo={start:"end",end:"start"};function cr(r){return r.replace(/start|end/g,function(e){return mo[e]})}function ut(r){var e=Y(r),t=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:t,scrollTop:n}}function mt(r){return je(ne(r)).left+ut(r).scrollLeft}function kr(r,e){var t=Y(r),n=ne(r),o=t.visualViewport,s=n.clientWidth,l=n.clientHeight,p=0,A=0;if(o){s=o.width,l=o.height;var g=qt();(g||!g&&e==="fixed")&&(p=o.offsetLeft,A=o.offsetTop)}return{width:s,height:l,x:p+mt(r),y:A}}function Tr(r){var e,t=ne(r),n=ut(r),o=(e=r.ownerDocument)==null?void 0:e.body,s=ye(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ye(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-n.scrollLeft+mt(r),A=-n.scrollTop;return Ae(o||t).direction==="rtl"&&(p+=ye(t.clientWidth,o?o.clientWidth:0)-s),{width:s,height:l,x:p,y:A}}function ft(r){var e=Ae(r),t=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+n)}function Ar(r){return["html","body","#document"].indexOf(te(r))>=0?r.ownerDocument.body:ee(r)&&ft(r)?r:Ar(Ue(r))}function et(r,e){var t;e===void 0&&(e=[]);var n=Ar(r),o=n===((t=r.ownerDocument)==null?void 0:t.body),s=Y(n),l=o?[s].concat(s.visualViewport||[],ft(n)?n:[]):n,p=e.concat(l);return o?p:p.concat(et(Ue(l)))}function Et(r){return Object.assign({},r,{left:r.x,top:r.y,right:r.x+r.width,bottom:r.y+r.height})}function fo(r,e){var t=je(r,!1,e==="fixed");return t.top=t.top+r.clientTop,t.left=t.left+r.clientLeft,t.bottom=t.top+r.clientHeight,t.right=t.left+r.clientWidth,t.width=r.clientWidth,t.height=r.clientHeight,t.x=t.left,t.y=t.top,t}function $n(r,e,t){return e===sr?Et(kr(r,t)):he(e)?fo(e,t):Et(Tr(ne(r)))}function go(r){var e=et(Ue(r)),t=["absolute","fixed"].indexOf(Ae(r).position)>=0,n=t&&ee(r)?xe(r):r;return he(n)?e.filter(function(o){return he(o)&&It(o,n)&&te(o)!=="body"}):[]}function Fr(r,e,t,n){var o=e==="clippingParents"?go(r):[].concat(e),s=[].concat(o,[t]),l=s[0],p=s.reduce(function(A,g){var f=$n(r,g,n);return A.top=ye(f.top,A.top),A.right=lt(f.right,A.right),A.bottom=lt(f.bottom,A.bottom),A.left=ye(f.left,A.left),A},$n(r,l,n));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function $t(r){var e=r.reference,t=r.element,n=r.placement,o=n?re(n):null,s=n?_e(n):null,l=e.x+e.width/2-t.width/2,p=e.y+e.height/2-t.height/2,A;switch(o){case W:A={x:l,y:e.y-t.height};break;case Z:A={x:l,y:e.y+e.height};break;case Q:A={x:e.x+e.width,y:p};break;case U:A={x:e.x-t.width,y:p};break;default:A={x:e.x,y:e.y}}var g=o?At(o):null;if(g!=null){var f=g==="y"?"height":"width";switch(s){case We:A[g]=A[g]-(e[f]/2-t[f]/2);break;case at:A[g]=A[g]+(e[f]/2-t[f]/2);break;default:}}return A}function Ee(r,e){e===void 0&&(e={});var t=e,n=t.placement,o=n===void 0?r.placement:n,s=t.strategy,l=s===void 0?r.strategy:s,p=t.boundary,A=p===void 0?Fn:p,g=t.rootBoundary,f=g===void 0?sr:g,b=t.elementContext,k=b===void 0?wt:b,x=t.altBoundary,O=x===void 0?!1:x,M=t.padding,j=M===void 0?0:M,P=Ct(typeof j!="number"?j:Dt(j,Ze)),L=k===wt?Mn:wt,N=r.rects.popper,T=r.elements[O?L:k],S=Fr(he(T)?T:T.contextElement||ne(r.elements.popper),A,f,l),q=je(r.elements.reference),R=$t({reference:q,element:N,strategy:"absolute",placement:o}),z=Et(Object.assign({},N,R)),J=k===wt?z:q,G={top:S.top-J.top+P.top,bottom:J.bottom-S.bottom+P.bottom,left:S.left-J.left+P.left,right:J.right-S.right+P.right},m=r.modifiersData.offset;if(k===wt&&m){var h=m[o];Object.keys(G).forEach(function(c){var we=[Q,Z].indexOf(c)>=0?1:-1,ue=[W,Z].indexOf(c)>=0?"y":"x";G[c]+=h[ue]*we})}return G}function Mr(r,e){e===void 0&&(e={});var t=e,n=t.placement,o=t.boundary,s=t.rootBoundary,l=t.padding,p=t.flipVariations,A=t.allowedAutoPlacements,g=A===void 0?ar:A,f=_e(n),b=f?p?xr:xr.filter(function(O){return _e(O)===f}):Ze,k=b.filter(function(O){return g.indexOf(O)>=0});k.length===0&&(k=b);var x=k.reduce(function(O,M){return O[M]=Ee(r,{placement:M,boundary:o,rootBoundary:s,padding:l})[re(M)],O},{});return Object.keys(x).sort(function(O,M){return x[O]-x[M]})}function ho(r){if(re(r)===or)return[];var e=xt(r);return[cr(r),e,cr(e)]}function jo(r){var e=r.state,t=r.options,n=r.name;if(!e.modifiersData[n]._skip){for(var o=t.mainAxis,s=o===void 0?!0:o,l=t.altAxis,p=l===void 0?!0:l,A=t.fallbackPlacements,g=t.padding,f=t.boundary,b=t.rootBoundary,k=t.altBoundary,x=t.flipVariations,O=x===void 0?!0:x,M=t.allowedAutoPlacements,j=e.options.placement,P=re(j),L=P===j,N=A||(L||!O?[xt(j)]:ho(j)),T=[j].concat(N).reduce(function(y,_){return y.concat(re(_)===or?Mr(e,{placement:_,boundary:f,rootBoundary:b,padding:g,flipVariations:O,allowedAutoPlacements:M}):_)},[]),S=e.rects.reference,q=e.rects.popper,R=new Map,z=!0,J=T[0],G=0;G<T.length;G++){var m=T[G],h=re(m),c=_e(m)===We,we=[W,Z].indexOf(h)>=0,ue=we?"width":"height",oe=Ee(e,{placement:m,boundary:f,rootBoundary:b,altBoundary:k,padding:g}),se=we?c?Q:U:c?Z:W;S[ue]>q[ue]&&(se=xt(se));var Fe=xt(se),fe=[];if(s&&fe.push(oe[h]<=0),p&&fe.push(oe[se]<=0,oe[Fe]<=0),fe.every(function(y){return y})){J=m,z=!1;break}R.set(m,fe)}if(z)for(var gt=O?3:1,Me=function(_){var F=T.find(function(H){var Re=R.get(H);if(Re)return Re.slice(0,_).every(function(C){return C})});if(F)return J=F,"break"},Ne=gt;Ne>0;Ne--){var ae=Me(Ne);if(ae==="break")break}e.placement!==J&&(e.modifiersData[n]._skip=!0,e.placement=J,e.reset=!0)}}var Nn={name:"flip",enabled:!0,phase:"main",fn:jo,requiresIfExists:["offset"],data:{_skip:!1}};function Rn(r,e,t){return t===void 0&&(t={x:0,y:0}),{top:r.top-e.height-t.y,right:r.right-e.width+t.x,bottom:r.bottom-e.height+t.y,left:r.left-e.width-t.x}}function Yn(r){return[W,Q,Z,U].some(function(e){return r[e]>=0})}function _o(r){var e=r.state,t=r.name,n=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,l=Ee(e,{elementContext:"reference"}),p=Ee(e,{altBoundary:!0}),A=Rn(l,n),g=Rn(p,o,s),f=Yn(A),b=Yn(g);e.modifiersData[t]={referenceClippingOffsets:A,popperEscapeOffsets:g,isReferenceHidden:f,hasPopperEscaped:b},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":b})}var Ln={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_o};function vo(r,e,t){var n=re(r),o=[U,W].indexOf(n)>=0?-1:1,s=typeof t=="function"?t(Object.assign({},e,{placement:r})):t,l=s[0],p=s[1];return l=l||0,p=(p||0)*o,[U,Q].indexOf(n)>=0?{x:p,y:l}:{x:l,y:p}}function wo(r){var e=r.state,t=r.options,n=r.name,o=t.offset,s=o===void 0?[0,0]:o,l=ar.reduce(function(f,b){return f[b]=vo(b,e.rects,s),f},{}),p=l[e.placement],A=p.x,g=p.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=A,e.modifiersData.popperOffsets.y+=g),e.modifiersData[n]=l}var Hn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wo};function bo(r){var e=r.state,t=r.name;e.modifiersData[t]=$t({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Gn={name:"popperOffsets",enabled:!0,phase:"read",fn:bo,data:{}};function Pr(r){return r==="x"?"y":"x"}function yo(r){var e=r.state,t=r.options,n=r.name,o=t.mainAxis,s=o===void 0?!0:o,l=t.altAxis,p=l===void 0?!1:l,A=t.boundary,g=t.rootBoundary,f=t.altBoundary,b=t.padding,k=t.tether,x=k===void 0?!0:k,O=t.tetherOffset,M=O===void 0?0:O,j=Ee(e,{boundary:A,rootBoundary:g,padding:b,altBoundary:f}),P=re(e.placement),L=_e(e.placement),N=!L,T=At(P),S=Pr(T),q=e.modifiersData.popperOffsets,R=e.rects.reference,z=e.rects.popper,J=typeof M=="function"?M(Object.assign({},e.rects,{placement:e.placement})):M,G=typeof J=="number"?{mainAxis:J,altAxis:J}:Object.assign({mainAxis:0,altAxis:0},J),m=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,h={x:0,y:0};if(!!q){if(s){var c,we=T==="y"?W:U,ue=T==="y"?Z:Q,oe=T==="y"?"height":"width",se=q[T],Fe=se+j[we],fe=se-j[ue],gt=x?-z[oe]/2:0,Me=L===We?R[oe]:z[oe],Ne=L===We?-z[oe]:-R[oe],ae=e.elements.arrow,y=x&&ae?ct(ae):{width:0,height:0},_=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:St(),F=_[we],H=_[ue],Re=pt(0,R[oe],y[oe]),C=N?R[oe]/2-gt-Re-F-G.mainAxis:Me-Re-F-G.mainAxis,le=N?-R[oe]/2+gt+Re+H+G.mainAxis:Ne+Re+H+G.mainAxis,nt=e.elements.arrow&&xe(e.elements.arrow),Kt=nt?T==="y"?nt.clientTop||0:nt.clientLeft||0:0,Ye=(c=m==null?void 0:m[T])!=null?c:0,Le=se+C-Ye-Kt,Je=se+le-Ye,it=pt(x?lt(Fe,Le):Fe,se,x?ye(fe,Je):fe);q[T]=it,h[T]=it-se}if(p){var Ut,zt=T==="x"?W:U,Jt=T==="x"?Z:Q,He=q[S],ht=S==="y"?"height":"width",Xt=He+j[zt],Qt=He-j[Jt],Mt=[W,U].indexOf(P)!==-1,ot=(Ut=m==null?void 0:m[S])!=null?Ut:0,Zt=Mt?Xt:He-R[ht]-z[ht]-ot+G.altAxis,Pe=Mt?He+R[ht]+z[ht]-ot-G.altAxis:Qt,X=x&&Mt?qn(Zt,He,Pe):pt(x?Zt:Xt,He,x?Pe:Qt);q[S]=X,h[S]=X-He}e.modifiersData[n]=h}}var Vn={name:"preventOverflow",enabled:!0,phase:"main",fn:yo,requiresIfExists:["offset"]};function Br(r){return{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}}function Or(r){return r===Y(r)||!ee(r)?ut(r):Br(r)}function xo(r){var e=r.getBoundingClientRect(),t=Ke(e.width)/r.offsetWidth||1,n=Ke(e.height)/r.offsetHeight||1;return t!==1||n!==1}function qr(r,e,t){t===void 0&&(t=!1);var n=ee(e),o=ee(e)&&xo(e),s=ne(e),l=je(r,o,t),p={scrollLeft:0,scrollTop:0},A={x:0,y:0};return(n||!n&&!t)&&((te(e)!=="body"||ft(s))&&(p=Or(e)),ee(e)?(A=je(e,!0),A.x+=e.clientLeft,A.y+=e.clientTop):s&&(A.x=mt(s))),{x:l.left+p.scrollLeft-A.x,y:l.top+p.scrollTop-A.y,width:l.width,height:l.height}}function Eo(r){var e=new Map,t=new Set,n=[];r.forEach(function(s){e.set(s.name,s)});function o(s){t.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(p){if(!t.has(p)){var A=e.get(p);A&&o(A)}}),n.push(s)}return r.forEach(function(s){t.has(s.name)||o(s)}),n}function Ir(r){var e=Eo(r);return Pn.reduce(function(t,n){return t.concat(e.filter(function(o){return o.phase===n}))},[])}function Sr(r){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(r())})})),e}}function Cr(r){var e=r.reduce(function(t,n){var o=t[n.name];return t[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,t},{});return Object.keys(e).map(function(t){return e[t]})}var Wn={placement:"bottom",modifiers:[],strategy:"absolute"};function Kn(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Un(r){r===void 0&&(r={});var e=r,t=e.defaultModifiers,n=t===void 0?[]:t,o=e.defaultOptions,s=o===void 0?Wn:o;return function(p,A,g){g===void 0&&(g=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wn,s),modifiersData:{},elements:{reference:p,popper:A},attributes:{},styles:{}},b=[],k=!1,x={state:f,setOptions:function(P){var L=typeof P=="function"?P(f.options):P;M(),f.options=Object.assign({},s,f.options,L),f.scrollParents={reference:he(p)?et(p):p.contextElement?et(p.contextElement):[],popper:et(A)};var N=Ir(Cr([].concat(n,f.options.modifiers)));return f.orderedModifiers=N.filter(function(T){return T.enabled}),O(),x.update()},forceUpdate:function(){if(!k){var P=f.elements,L=P.reference,N=P.popper;if(!!Kn(L,N)){f.rects={reference:qr(L,xe(N),f.options.strategy==="fixed"),popper:ct(N)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(G){return f.modifiersData[G.name]=Object.assign({},G.data)});for(var T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var S=f.orderedModifiers[T],q=S.fn,R=S.options,z=R===void 0?{}:R,J=S.name;typeof q=="function"&&(f=q({state:f,options:z,name:J,instance:x})||f)}}}},update:Sr(function(){return new Promise(function(j){x.forceUpdate(),j(f)})}),destroy:function(){M(),k=!0}};if(!Kn(p,A))return x;x.setOptions(g).then(function(j){!k&&g.onFirstUpdate&&g.onFirstUpdate(j)});function O(){f.orderedModifiers.forEach(function(j){var P=j.name,L=j.options,N=L===void 0?{}:L,T=j.effect;if(typeof T=="function"){var S=T({state:f,name:P,instance:x,options:N}),q=function(){};b.push(S||q)}})}function M(){b.forEach(function(j){return j()}),b=[]}return x}}var ko=[Dn,Gn,Cn,Bn,Hn,Nn,Vn,In,Ln],Dr=Un({defaultModifiers:ko});var To=(r,e)=>(r%e+e)%e,Jn=class{constructor(e,t,n){this.owner=e,this.containerEl=t,t.on("click",".suggestion-item",this.onSuggestionClick.bind(this)),t.on("mousemove",".suggestion-item",this.onSuggestionMouseover.bind(this)),n.register([],"ArrowUp",o=>{if(!o.isComposing)return this.setSelectedItem(this.selectedItem-1,!0),!1}),n.register([],"ArrowDown",o=>{if(!o.isComposing)return this.setSelectedItem(this.selectedItem+1,!0),!1}),n.register([],"Enter",o=>{if(!o.isComposing)return this.useSelectedItem(o),!1})}onSuggestionClick(e,t){e.preventDefault();let n=this.suggestions.indexOf(t);this.setSelectedItem(n,!1),this.useSelectedItem(e)}onSuggestionMouseover(e,t){let n=this.suggestions.indexOf(t);this.setSelectedItem(n,!1)}setSuggestions(e){this.containerEl.empty();let t=[];e.forEach(n=>{let o=this.containerEl.createDiv("suggestion-item");this.owner.renderSuggestion(n,o),t.push(o)}),this.values=e,this.suggestions=t,this.setSelectedItem(0,!1)}useSelectedItem(e){let t=this.values[this.selectedItem];t&&this.owner.selectSuggestion(t,e)}setSelectedItem(e,t){let n=To(e,this.suggestions.length),o=this.suggestions[this.selectedItem],s=this.suggestions[n];o?.removeClass("is-selected"),s?.addClass("is-selected"),this.selectedItem=n,t&&s.scrollIntoView(!1)}},Nt=class{constructor(e){this.inputEl=e,this.scope=new zn.Scope,this.suggestEl=createDiv("suggestion-container");let t=this.suggestEl.createDiv("suggestion");this.suggest=new Jn(this,t,this.scope),this.scope.register([],"Escape",this.close.bind(this)),this.inputEl.addEventListener("input",this.onInputChanged.bind(this)),this.inputEl.addEventListener("focus",this.onInputChanged.bind(this)),this.inputEl.addEventListener("blur",this.close.bind(this)),this.suggestEl.on("mousedown",".suggestion-container",n=>{n.preventDefault()})}onInputChanged(){let e=this.inputEl.value,t=this.getSuggestions(e);if(!t){this.close();return}t.length>0?(this.suggest.setSuggestions(t),this.open(app.dom.appContainerEl,this.inputEl)):this.close()}open(e,t){app.keymap.pushScope(this.scope),e.appendChild(this.suggestEl),this.popper=Dr(t,this.suggestEl,{placement:"bottom-start",modifiers:[{name:"sameWidth",enabled:!0,fn:({state:n,instance:o})=>{let s=`${n.rects.reference.width}px`;n.styles.popper.width!==s&&(n.styles.popper.width=s,o.update())},phase:"beforeWrite",requires:["computeStyles"]}]})}close(){app.keymap.popScope(this.scope),this.suggest.setSuggestions([]),this.popper&&this.popper.destroy(),this.suggestEl.detach()}};var Rt=class extends Nt{getSuggestions(e){let t=app.vault.getAllLoadedFiles(),n=[],o=e.toLowerCase();return t.forEach(s=>{s instanceof Xn.TFolder&&s.path.toLowerCase().contains(o)&&n.push(s)}),n.slice(0,1e3)}renderSuggestion(e,t){t.setText(e.path)}selectSuggestion(e){this.inputEl.value=e.path,this.inputEl.trigger("input"),this.close()}};var ti=V(require("obsidian"));var qe=V(require("obsidian"));function pr(r){return new Promise(e=>setTimeout(e,r))}function Qn(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zn(){return/(<%(?:-|_)?\s*[*~]{0,1})\+((?:.|\s)*?%>)/g}function Fo(r){r=(0,qe.normalizePath)(r);let e=app.vault.getAbstractFileByPath(r);if(!e)throw new w(`Folder "${r}" doesn't exist`);if(!(e instanceof qe.TFolder))throw new w(`${r} is a file, not a folder`);return e}function Yt(r){r=(0,qe.normalizePath)(r);let e=app.vault.getAbstractFileByPath(r);if(!e)throw new w(`File "${r}" doesn't exist`);if(!(e instanceof qe.TFile))throw new w(`${r} is a folder, not a file`);return e}function Ie(r){let e=Fo(r),t=[];return qe.Vault.recurseChildren(e,n=>{n instanceof qe.TFile&&t.push(n)}),t.sort((n,o)=>n.path.localeCompare(o.path)),t}function Lt(r,e,t){if(t<0||t===r.length)return;let n=r[e];r[e]=r[t],r[t]=n}function kt(r){return r.workspace.activeEditor?.file??r.workspace.getActiveFile()}function ei(r){let e=r.lastIndexOf("/");return e!==-1?r.slice(0,e):""}var Se;(function(t){t[t.TemplateFiles=0]="TemplateFiles",t[t.ScriptFiles=1]="ScriptFiles"})(Se||(Se={}));var Ht=class extends Nt{constructor(e,t,n){super(e);this.inputEl=e;this.plugin=t;this.mode=n}get_folder(e){switch(e){case 0:return this.plugin.settings.templates_folder;case 1:return this.plugin.settings.user_scripts_folder}}get_error_msg(e){switch(e){case 0:return"Templates folder doesn't exist";case 1:return"User Scripts folder doesn't exist"}}getSuggestions(e){let t=me(()=>Ie(this.get_folder(this.mode)),this.get_error_msg(this.mode));if(!t)return[];let n=[],o=e.toLowerCase();return t.forEach(s=>{s instanceof ti.TFile&&s.extension==="md"&&s.path.toLowerCase().contains(o)&&n.push(s)}),n.slice(0,1e3)}renderSuggestion(e,t){t.setText(e.path)}selectSuggestion(e){this.inputEl.value=e.path,this.inputEl.trigger("input"),this.close()}};var ri={command_timeout:5,templates_folder:"",templates_pairs:[["",""]],trigger_on_file_creation:!1,auto_jump_to_cursor:!1,enable_system_commands:!1,shell_path:"",user_scripts_folder:"",enable_folder_templates:!0,folder_templates:[{folder:"",template:""}],syntax_highlighting:!0,syntax_highlighting_mobile:!1,enabled_templates_hotkeys:[""],startup_templates:[""]},$r=class extends I.PluginSettingTab{constructor(e){super(app,e);this.plugin=e}display(){this.containerEl.empty(),this.add_template_folder_setting(),this.add_internal_functions_setting(),this.add_syntax_highlighting_settings(),this.add_auto_jump_to_cursor(),this.add_trigger_on_new_file_creation_setting(),this.add_templates_hotkeys_setting(),this.plugin.settings.trigger_on_file_creation&&this.add_folder_templates_setting(),this.add_startup_templates_setting(),this.add_user_script_functions_setting(),this.add_user_system_command_functions_setting(),this.add_donating_setting()}add_template_folder_setting(){new I.Setting(this.containerEl).setName("Template folder location").setDesc("Files in this folder will be available as templates.").addSearch(e=>{new Rt(e.inputEl),e.setPlaceholder("Example: folder1/folder2").setValue(this.plugin.settings.templates_folder).onChange(t=>{this.plugin.settings.templates_folder=t,this.plugin.save_settings()}),e.containerEl.addClass("templater_search")})}add_internal_functions_setting(){let e=document.createDocumentFragment();e.append("Templater provides multiples predefined variables / functions that you can use.",e.createEl("br"),"Check the ",e.createEl("a",{href:"https://silentvoid13.github.io/Templater/",text:"documentation"})," to get a list of all the available internal variables / functions."),new I.Setting(this.containerEl).setName("Internal variables and functions").setDesc(e)}add_syntax_highlighting_settings(){let e=document.createDocumentFragment();e.append("Adds syntax highlighting for Templater commands in edit mode.");let t=document.createDocumentFragment();t.append("Adds syntax highlighting for Templater commands in edit mode on mobile. Use with caution: this may break live preview on mobile platforms."),new I.Setting(this.containerEl).setName("Syntax highlighting on desktop").setDesc(e).addToggle(n=>{n.setValue(this.plugin.settings.syntax_highlighting).onChange(o=>{this.plugin.settings.syntax_highlighting=o,this.plugin.save_settings(),this.plugin.event_handler.update_syntax_highlighting()})}),new I.Setting(this.containerEl).setName("Syntax highlighting on mobile").setDesc(t).addToggle(n=>{n.setValue(this.plugin.settings.syntax_highlighting_mobile).onChange(o=>{this.plugin.settings.syntax_highlighting_mobile=o,this.plugin.save_settings(),this.plugin.event_handler.update_syntax_highlighting()})})}add_auto_jump_to_cursor(){let e=document.createDocumentFragment();e.append("Automatically triggers ",e.createEl("code",{text:"tp.file.cursor"})," after inserting a template.",e.createEl("br"),"You can also set a hotkey to manually trigger ",e.createEl("code",{text:"tp.file.cursor"}),"."),new I.Setting(this.containerEl).setName("Automatic jump to cursor").setDesc(e).addToggle(t=>{t.setValue(this.plugin.settings.auto_jump_to_cursor).onChange(n=>{this.plugin.settings.auto_jump_to_cursor=n,this.plugin.save_settings()})})}add_trigger_on_new_file_creation_setting(){let e=document.createDocumentFragment();e.append("Templater will listen for the new file creation event, and replace every command it finds in the new file's content.",e.createEl("br"),"This makes Templater compatible with other plugins like the Daily note core plugin, Calendar plugin, Review plugin, Note refactor plugin, ...",e.createEl("br"),e.createEl("b",{text:"Warning: "}),"This can be dangerous if you create new files with unknown / unsafe content on creation. Make sure that every new file's content is safe on creation."),new I.Setting(this.containerEl).setName("Trigger Templater on new file creation").setDesc(e).addToggle(t=>{t.setValue(this.plugin.settings.trigger_on_file_creation).onChange(n=>{this.plugin.settings.trigger_on_file_creation=n,this.plugin.save_settings(),this.plugin.event_handler.update_trigger_file_on_creation(),this.display()})})}add_templates_hotkeys_setting(){new I.Setting(this.containerEl).setName("Template hotkeys").setHeading();let e=document.createDocumentFragment();e.append("Template hotkeys allows you to bind a template to a hotkey."),new I.Setting(this.containerEl).setDesc(e),this.plugin.settings.enabled_templates_hotkeys.forEach((t,n)=>{new I.Setting(this.containerEl).addSearch(s=>{new Ht(s.inputEl,this.plugin,Se.TemplateFiles),s.setPlaceholder("Example: folder1/template_file").setValue(t).onChange(l=>{if(l&&this.plugin.settings.enabled_templates_hotkeys.contains(l)){K(new w("This template is already bound to a hotkey"));return}this.plugin.command_handler.add_template_hotkey(this.plugin.settings.enabled_templates_hotkeys[n],l),this.plugin.settings.enabled_templates_hotkeys[n]=l,this.plugin.save_settings()}),s.containerEl.addClass("templater_search")}).addExtraButton(s=>{s.setIcon("any-key").setTooltip("Configure Hotkey").onClick(()=>{app.setting.openTabById("hotkeys");let l=app.setting.activeTab;l.searchInputEl.value="Templater: Insert",l.updateHotkeyVisibility()})}).addExtraButton(s=>{s.setIcon("up-chevron-glyph").setTooltip("Move up").onClick(()=>{Lt(this.plugin.settings.enabled_templates_hotkeys,n,n-1),this.plugin.save_settings(),this.display()})}).addExtraButton(s=>{s.setIcon("down-chevron-glyph").setTooltip("Move down").onClick(()=>{Lt(this.plugin.settings.enabled_templates_hotkeys,n,n+1),this.plugin.save_settings(),this.display()})}).addExtraButton(s=>{s.setIcon("cross").setTooltip("Delete").onClick(()=>{this.plugin.command_handler.remove_template_hotkey(this.plugin.settings.enabled_templates_hotkeys[n]),this.plugin.settings.enabled_templates_hotkeys.splice(n,1),this.plugin.save_settings(),this.display()})}).infoEl.remove()}),new I.Setting(this.containerEl).addButton(t=>{t.setButtonText("Add new hotkey for template").setCta().onClick(()=>{this.plugin.settings.enabled_templates_hotkeys.push(""),this.plugin.save_settings(),this.display()})})}add_folder_templates_setting(){this.containerEl.createEl("h2",{text:"Folder templates"}),new I.Setting(this.containerEl).setName("Folder templates").setHeading();let e=document.createDocumentFragment();e.append("Folder Templates are triggered when a new ",e.createEl("strong",{text:"empty "}),"file is created in a given folder.",e.createEl("br"),"Templater will fill the empty file with the specified template.",e.createEl("br"),"The deepest match is used. A global default template would be defined on the root ",e.createEl("code",{text:"/"}),"."),new I.Setting(this.containerEl).setDesc(e);let t=document.createDocumentFragment();t.append("When enabled Templater will make use of the folder templates defined below."),new I.Setting(this.containerEl).setName("Enable folder templates").setDesc(t).addToggle(n=>{n.setValue(this.plugin.settings.enable_folder_templates).onChange(o=>{this.plugin.settings.enable_folder_templates=o,this.plugin.save_settings(),this.display()})}),!!this.plugin.settings.enable_folder_templates&&(new I.Setting(this.containerEl).setName("Add new").setDesc("Add new folder template").addButton(n=>{n.setTooltip("Add additional folder template").setButtonText("+").setCta().onClick(()=>{this.plugin.settings.folder_templates.push({folder:"",template:""}),this.plugin.save_settings(),this.display()})}),this.plugin.settings.folder_templates.forEach((n,o)=>{new I.Setting(this.containerEl).addSearch(l=>{new Rt(l.inputEl),l.setPlaceholder("Folder").setValue(n.folder).onChange(p=>{if(p&&this.plugin.settings.folder_templates.some(A=>A.folder==p)){K(new w("This folder already has a template associated with it"));return}this.plugin.settings.folder_templates[o].folder=p,this.plugin.save_settings()}),l.containerEl.addClass("templater_search")}).addSearch(l=>{new Ht(l.inputEl,this.plugin,Se.TemplateFiles),l.setPlaceholder("Template").setValue(n.template).onChange(p=>{this.plugin.settings.folder_templates[o].template=p,this.plugin.save_settings()}),l.containerEl.addClass("templater_search")}).addExtraButton(l=>{l.setIcon("up-chevron-glyph").setTooltip("Move up").onClick(()=>{Lt(this.plugin.settings.folder_templates,o,o-1),this.plugin.save_settings(),this.display()})}).addExtraButton(l=>{l.setIcon("down-chevron-glyph").setTooltip("Move down").onClick(()=>{Lt(this.plugin.settings.folder_templates,o,o+1),this.plugin.save_settings(),this.display()})}).addExtraButton(l=>{l.setIcon("cross").setTooltip("Delete").onClick(()=>{this.plugin.settings.folder_templates.splice(o,1),this.plugin.save_settings(),this.display()})}).infoEl.remove()}))}add_startup_templates_setting(){new I.Setting(this.containerEl).setName("Startup templates").setHeading();let e=document.createDocumentFragment();e.append("Startup templates are templates that will get executed once when Templater starts.",e.createEl("br"),"These templates won't output anything.",e.createEl("br"),"This can be useful to set up templates adding hooks to Obsidian events for example."),new I.Setting(this.containerEl).setDesc(e),this.plugin.settings.startup_templates.forEach((t,n)=>{new I.Setting(this.containerEl).addSearch(s=>{new Ht(s.inputEl,this.plugin,Se.TemplateFiles),s.setPlaceholder("Example: folder1/template_file").setValue(t).onChange(l=>{if(l&&this.plugin.settings.startup_templates.contains(l)){K(new w("This startup template already exist"));return}this.plugin.settings.startup_templates[n]=l,this.plugin.save_settings()}),s.containerEl.addClass("templater_search")}).addExtraButton(s=>{s.setIcon("cross").setTooltip("Delete").onClick(()=>{this.plugin.settings.startup_templates.splice(n,1),this.plugin.save_settings(),this.display()})}).infoEl.remove()}),new I.Setting(this.containerEl).addButton(t=>{t.setButtonText("Add new startup template").setCta().onClick(()=>{this.plugin.settings.startup_templates.push(""),this.plugin.save_settings(),this.display()})})}add_user_script_functions_setting(){new I.Setting(this.containerEl).setName("User script functions").setHeading();let e=document.createDocumentFragment();e.append("All JavaScript files in this folder will be loaded as CommonJS modules, to import custom user functions.",e.createEl("br"),"The folder needs to be accessible from the vault.",e.createEl("br"),"Check the ",e.createEl("a",{href:"https://silentvoid13.github.io/Templater/",text:"documentation"})," for more information."),new I.Setting(this.containerEl).setName("Script files folder location").setDesc(e).addSearch(n=>{new Rt(n.inputEl),n.setPlaceholder("Example: folder1/folder2").setValue(this.plugin.settings.user_scripts_folder).onChange(o=>{this.plugin.settings.user_scripts_folder=o,this.plugin.save_settings()}),n.containerEl.addClass("templater_search")}),e=document.createDocumentFragment();let t;if(!this.plugin.settings.user_scripts_folder)t="No user scripts folder set";else{let n=me(()=>Ie(this.plugin.settings.user_scripts_folder),"User scripts folder doesn't exist");if(!n||n.length===0)t="No user scripts detected";else{let o=0;for(let s of n)s.extension==="js"&&(o++,e.append(e.createEl("li",{text:`tp.user.${s.basename}`})));t=`Detected ${o} User Script(s)`}}new I.Setting(this.containerEl).setName(t).setDesc(e).addExtraButton(n=>{n.setIcon("sync").setTooltip("Refresh").onClick(()=>{this.display()})})}add_user_system_command_functions_setting(){let e=document.createDocumentFragment();if(e.append("Allows you to create user functions linked to system commands.",e.createEl("br"),e.createEl("b",{text:"Warning: "}),"It can be dangerous to execute arbitrary system commands from untrusted sources. Only run system commands that you understand, from trusted sources."),new I.Setting(this.containerEl).setName("User system command functions").setHeading(),new I.Setting(this.containerEl).setName("Enable user system command functions").setDesc(e).addToggle(t=>{t.setValue(this.plugin.settings.enable_system_commands).onChange(n=>{this.plugin.settings.enable_system_commands=n,this.plugin.save_settings(),this.display()})}),this.plugin.settings.enable_system_commands){new I.Setting(this.containerEl).setName("Timeout").setDesc("Maximum timeout in seconds for a system command.").addText(s=>{s.setPlaceholder("Timeout").setValue(this.plugin.settings.command_timeout.toString()).onChange(l=>{let p=Number(l);if(isNaN(p)){K(new w("Timeout must be a number"));return}this.plugin.settings.command_timeout=p,this.plugin.save_settings()})}),e=document.createDocumentFragment(),e.append("Full path to the shell binary to execute the command with.",e.createEl("br"),"This setting is optional and will default to the system's default shell if not specified.",e.createEl("br"),"You can use forward slashes ('/') as path separators on all platforms if in doubt."),new I.Setting(this.containerEl).setName("Shell binary location").setDesc(e).addText(s=>{s.setPlaceholder("Example: /bin/bash, ...").setValue(this.plugin.settings.shell_path).onChange(l=>{this.plugin.settings.shell_path=l,this.plugin.save_settings()})});let t=1;this.plugin.settings.templates_pairs.forEach(s=>{let l=this.containerEl.createEl("div");l.addClass("templater_div");let p=this.containerEl.createEl("h4",{text:"User function n\xB0"+t});p.addClass("templater_title"),new I.Setting(this.containerEl).addExtraButton(g=>{g.setIcon("cross").setTooltip("Delete").onClick(()=>{let f=this.plugin.settings.templates_pairs.indexOf(s);f>-1&&(this.plugin.settings.templates_pairs.splice(f,1),this.plugin.save_settings(),this.display())})}).addText(g=>{let f=g.setPlaceholder("Function name").setValue(s[0]).onChange(b=>{let k=this.plugin.settings.templates_pairs.indexOf(s);k>-1&&(this.plugin.settings.templates_pairs[k][0]=b,this.plugin.save_settings())});return f.inputEl.addClass("templater_template"),f}).addTextArea(g=>{let f=g.setPlaceholder("System command").setValue(s[1]).onChange(b=>{let k=this.plugin.settings.templates_pairs.indexOf(s);k>-1&&(this.plugin.settings.templates_pairs[k][1]=b,this.plugin.save_settings())});return f.inputEl.setAttr("rows",2),f.inputEl.addClass("templater_cmd"),f}).infoEl.remove(),l.appendChild(p),l.appendChild(this.containerEl.lastChild),t+=1});let n=this.containerEl.createEl("div");n.addClass("templater_div2"),new I.Setting(this.containerEl).addButton(s=>{s.setButtonText("Add new user function").setCta().onClick(()=>{this.plugin.settings.templates_pairs.push(["",""]),this.plugin.save_settings(),this.display()})}).infoEl.remove(),n.appendChild(this.containerEl.lastChild)}}add_donating_setting(){let e=new I.Setting(this.containerEl).setName("Donate").setDesc("If you like this Plugin, consider donating to support continued development."),t=document.createElement("a");t.setAttribute("href","https://github.com/sponsors/silentvoid13"),t.addClass("templater_donating");let n=document.createElement("img");n.src="https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86",t.appendChild(n);let o=document.createElement("a");o.setAttribute("href","https://www.paypal.com/donate?hosted_button_id=U2SRGAFYXT32Q"),o.addClass("templater_donating");let s=document.createElement("img");s.src="https://img.shields.io/badge/paypal-silentvoid13-yellow?style=social&logo=paypal",o.appendChild(s),e.settingEl.appendChild(t),e.settingEl.appendChild(o)}};var ni=V(require("obsidian"));var Tt;(function(t){t[t.InsertTemplate=0]="InsertTemplate",t[t.CreateNoteTemplate=1]="CreateNoteTemplate"})(Tt||(Tt={}));var Nr=class extends ni.FuzzySuggestModal{constructor(e){super(app);this.plugin=e,this.setPlaceholder("Type name of a template...")}getItems(){if(!this.plugin.settings.templates_folder)return app.vault.getMarkdownFiles();let e=me(()=>Ie(this.plugin.settings.templates_folder),`Couldn't retrieve template files from templates folder ${this.plugin.settings.templates_folder}`);return e||[]}getItemText(e){let t=e.path;return e.path.startsWith(this.plugin.settings.templates_folder)&&(t=e.path.slice(this.plugin.settings.templates_folder.length+1)),t.split(".").slice(0,-1).join(".")}onChooseItem(e){switch(this.open_mode){case 0:this.plugin.templater.append_template_to_active_file(e);break;case 1:this.plugin.templater.create_new_note_from_template(e,this.creation_folder);break}}start(){try{this.open()}catch(e){K(e)}}insert_template(){this.open_mode=0,this.start()}create_new_note_from_template(e){this.creation_folder=e,this.open_mode=1,this.start()}};var ii="Error_MobileUnsupportedTemplate",oi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 51.1328 28.7"><path d="M0 15.14 0 10.15 18.67 1.51 18.67 6.03 4.72 12.33 4.72 12.76 18.67 19.22 18.67 23.74 0 15.14ZM33.6928 1.84C33.6928 1.84 33.9761 2.1467 34.5428 2.76C35.1094 3.38 35.3928 4.56 35.3928 6.3C35.3928 8.0466 34.8195 9.54 33.6728 10.78C32.5261 12.02 31.0995 12.64 29.3928 12.64C27.6862 12.64 26.2661 12.0267 25.1328 10.8C23.9928 9.5733 23.4228 8.0867 23.4228 6.34C23.4228 4.6 23.9995 3.1066 25.1528 1.86C26.2994.62 27.7261 0 29.4328 0C31.1395 0 32.5594.6133 33.6928 1.84M49.8228.67 29.5328 28.38 24.4128 28.38 44.7128.67 49.8228.67M31.0328 8.38C31.0328 8.38 31.1395 8.2467 31.3528 7.98C31.5662 7.7067 31.6728 7.1733 31.6728 6.38C31.6728 5.5867 31.4461 4.92 30.9928 4.38C30.5461 3.84 29.9995 3.57 29.3528 3.57C28.7061 3.57 28.1695 3.84 27.7428 4.38C27.3228 4.92 27.1128 5.5867 27.1128 6.38C27.1128 7.1733 27.3361 7.84 27.7828 8.38C28.2361 8.9267 28.7861 9.2 29.4328 9.2C30.0795 9.2 30.6128 8.9267 31.0328 8.38M49.4328 17.9C49.4328 17.9 49.7161 18.2067 50.2828 18.82C50.8495 19.4333 51.1328 20.6133 51.1328 22.36C51.1328 24.1 50.5594 25.59 49.4128 26.83C48.2595 28.0766 46.8295 28.7 45.1228 28.7C43.4228 28.7 42.0028 28.0833 40.8628 26.85C39.7295 25.6233 39.1628 24.1366 39.1628 22.39C39.1628 20.65 39.7361 19.16 40.8828 17.92C42.0361 16.6733 43.4628 16.05 45.1628 16.05C46.8694 16.05 48.2928 16.6667 49.4328 17.9M46.8528 24.52C46.8528 24.52 46.9595 24.3833 47.1728 24.11C47.3795 23.8367 47.4828 23.3033 47.4828 22.51C47.4828 21.7167 47.2595 21.05 46.8128 20.51C46.3661 19.97 45.8162 19.7 45.1628 19.7C44.5161 19.7 43.9828 19.97 43.5628 20.51C43.1428 21.05 42.9328 21.7167 42.9328 22.51C42.9328 23.3033 43.1561 23.9733 43.6028 24.52C44.0494 25.06 44.5961 25.33 45.2428 25.33C45.8895 25.33 46.4261 25.06 46.8528 24.52Z" fill="currentColor"/></svg>';var ve=V(require("obsidian"));var pe=class{constructor(e){this.plugin=e;this.static_functions=new Map;this.dynamic_functions=new Map}getName(){return this.name}async init(){await this.create_static_templates(),this.static_object=Object.fromEntries(this.static_functions)}async generate_object(e){return this.config=e,await this.create_dynamic_templates(),{...this.static_object,...Object.fromEntries(this.dynamic_functions)}}};var Rr=class extends pe{constructor(){super(...arguments);this.name="date"}async create_static_templates(){this.static_functions.set("now",this.generate_now()),this.static_functions.set("tomorrow",this.generate_tomorrow()),this.static_functions.set("weekday",this.generate_weekday()),this.static_functions.set("yesterday",this.generate_yesterday())}async create_dynamic_templates(){}async teardown(){}generate_now(){return(e="YYYY-MM-DD",t,n,o)=>{if(n&&!window.moment(n,o).isValid())throw new w("Invalid reference date format, try specifying one with the argument 'reference_format'");let s;return typeof t=="string"?s=window.moment.duration(t):typeof t=="number"&&(s=window.moment.duration(t,"days")),window.moment(n,o).add(s).format(e)}}generate_tomorrow(){return(e="YYYY-MM-DD")=>window.moment().add(1,"days").format(e)}generate_weekday(){return(e="YYYY-MM-DD",t,n,o)=>{if(n&&!window.moment(n,o).isValid())throw new w("Invalid reference date format, try specifying one with the argument 'reference_format'");return window.moment(n,o).weekday(t).format(e)}}generate_yesterday(){return(e="YYYY-MM-DD")=>window.moment().add(-1,"days").format(e)}};var ie=V(require("obsidian"));var si=10,Yr=class extends pe{constructor(){super(...arguments);this.name="file";this.include_depth=0;this.create_new_depth=0;this.linkpath_regex=new RegExp("^\\[\\[(.*)\\]\\]$")}async create_static_templates(){this.static_functions.set("creation_date",this.generate_creation_date()),this.static_functions.set("create_new",this.generate_create_new()),this.static_functions.set("cursor",this.generate_cursor()),this.static_functions.set("cursor_append",this.generate_cursor_append()),this.static_functions.set("exists",this.generate_exists()),this.static_functions.set("find_tfile",this.generate_find_tfile()),this.static_functions.set("folder",this.generate_folder()),this.static_functions.set("include",this.generate_include()),this.static_functions.set("last_modified_date",this.generate_last_modified_date()),this.static_functions.set("move",this.generate_move()),this.static_functions.set("path",this.generate_path()),this.static_functions.set("rename",this.generate_rename()),this.static_functions.set("selection",this.generate_selection())}async create_dynamic_templates(){this.dynamic_functions.set("content",await this.generate_content()),this.dynamic_functions.set("tags",this.generate_tags()),this.dynamic_functions.set("title",this.generate_title())}async teardown(){}async generate_content(){return await app.vault.read(this.config.target_file)}generate_create_new(){return async(e,t,n=!1,o)=>{if(this.create_new_depth+=1,this.create_new_depth>si)throw this.create_new_depth=0,new w("Reached create_new depth limit (max = 10)");let s=await this.plugin.templater.create_new_note_from_template(e,o,t,n);return this.create_new_depth-=1,s}}generate_creation_date(){return(e="YYYY-MM-DD HH:mm")=>window.moment(this.config.target_file.stat.ctime).format(e)}generate_cursor(){return e=>`<% tp.file.cursor(${e??""}) %>`}generate_cursor_append(){return e=>{let t=app.workspace.activeEditor;if(!t||!t.editor){K(new w("No active editor, can't append to cursor."));return}return t.editor.getDoc().replaceSelection(e),""}}generate_exists(){return async e=>{let t=(0,ie.normalizePath)(e);return await app.vault.exists(t)}}generate_find_tfile(){return e=>{let t=(0,ie.normalizePath)(e);return app.metadataCache.getFirstLinkpathDest(t,"")}}generate_folder(){return(e=!1)=>{let t=this.config.target_file.parent,n;return e?n=t.path:n=t.name,n}}generate_include(){return async e=>{if(this.include_depth+=1,this.include_depth>si)throw this.include_depth-=1,new w("Reached inclusion depth limit (max = 10)");let t;if(e instanceof ie.TFile)t=await app.vault.read(e);else{let n;if((n=this.linkpath_regex.exec(e))===null)throw this.include_depth-=1,new w("Invalid file format, provide an obsidian link between quotes.");let{path:o,subpath:s}=(0,ie.parseLinktext)(n[1]),l=app.metadataCache.getFirstLinkpathDest(o,"");if(!l)throw this.include_depth-=1,new w(`File ${e} doesn't exist`);if(t=await app.vault.read(l),s){let p=app.metadataCache.getFileCache(l);if(p){let A=(0,ie.resolveSubpath)(p,s);A&&(t=t.slice(A.start.offset,A.end?.offset))}}}try{let n=await this.plugin.templater.parser.parse_commands(t,this.plugin.templater.current_functions_object);return this.include_depth-=1,n}catch(n){throw this.include_depth-=1,n}}}generate_last_modified_date(){return(e="YYYY-MM-DD HH:mm")=>window.moment(this.config.target_file.stat.mtime).format(e)}generate_move(){return async(e,t)=>{let n=t||this.config.target_file,o=(0,ie.normalizePath)(`${e}.${n.extension}`),s=o.replace(/\\/g,"/").split("/");if(s.pop(),s.length){let l=s.join("/");window.app.vault.getAbstractFileByPath(l)||await window.app.vault.createFolder(l)}return await app.fileManager.renameFile(n,o),""}}generate_path(){return(e=!1)=>{let t="";if(ie.Platform.isMobileApp){let n=app.vault.adapter.fs.uri,o=app.vault.adapter.basePath;t=`${n}/${o}`}else if(app.vault.adapter instanceof ie.FileSystemAdapter)t=app.vault.adapter.getBasePath();else throw new w("app.vault is not a FileSystemAdapter instance");return e?this.config.target_file.path:`${t}/${this.config.target_file.path}`}}generate_rename(){return async e=>{if(e.match(/[\\/:]+/g))throw new w("File name cannot contain any of these characters: \\ / :");let t=(0,ie.normalizePath)(`${this.config.target_file.parent.path}/${e}.${this.config.target_file.extension}`);return await app.fileManager.renameFile(this.config.target_file,t),""}}generate_selection(){return()=>{let e=app.workspace.activeEditor;if(!e||!e.editor)throw new w("Active editor is null, can't read selection.");return e.editor.getSelection()}}generate_tags(){let e=app.metadataCache.getFileCache(this.config.target_file);return e?(0,ie.getAllTags)(e):null}generate_title(){return this.config.target_file.basename}};var Lr=class extends pe{constructor(){super(...arguments);this.name="web"}async create_static_templates(){this.static_functions.set("daily_quote",this.generate_daily_quote()),this.static_functions.set("request",this.generate_request()),this.static_functions.set("random_picture",this.generate_random_picture())}async create_dynamic_templates(){}async teardown(){}async getRequest(e){try{let t=await fetch(e);if(!t.ok)throw new w("Error performing GET request");return t}catch{throw new w("Error performing GET request")}}generate_daily_quote(){return async()=>{try{let t=await(await this.getRequest("https://api.quotable.io/random")).json(),n=t.author;return`> [!quote] ${t.content}
|
|
> \u2014 ${n}`}catch{return new w("Error generating daily quote"),"Error generating daily quote"}}}generate_random_picture(){return async(e,t,n=!1)=>{try{let o=await this.getRequest(`https://templater-unsplash-2.fly.dev/${t?"?q="+t:""}`).then(l=>l.json()),s=o.full;if(e&&!n)if(e.includes("x")){let[l,p]=e.split("x");s=s.concat(`&w=${l}&h=${p}`)}else s=s.concat(`&w=${e}`);return n?`![photo by ${o.photog}(${o.photogUrl}) on Unsplash|${e}](${s})`:`![photo by ${o.photog}(${o.photogUrl}) on Unsplash](${s})`}catch{return new w("Error generating random picture"),"Error generating random picture"}}}generate_request(){return async(e,t)=>{try{let o=await(await this.getRequest(e)).json();return t&&o?t.split(".").reduce((s,l)=>{if(s&&s.hasOwnProperty(l))return s[l];throw new Error(`Path ${t} not found in the JSON response`)},o):o}catch(n){throw console.error(n),new w("Error fetching and extracting value")}}}};var Hr=class extends pe{constructor(){super(...arguments);this.name="hooks";this.event_refs=[]}async create_static_templates(){this.static_functions.set("on_all_templates_executed",this.generate_on_all_templates_executed())}async create_dynamic_templates(){}async teardown(){this.event_refs.forEach(e=>{e.e.offref(e)}),this.event_refs=[]}generate_on_all_templates_executed(){return e=>{let t=app.workspace.on("templater:all-templates-executed",async()=>{await pr(1),e()});t&&this.event_refs.push(t)}}};var Gr=class extends pe{constructor(){super(...arguments);this.name="frontmatter"}async create_static_templates(){}async create_dynamic_templates(){let e=app.metadataCache.getFileCache(this.config.target_file);this.dynamic_functions=new Map(Object.entries(e?.frontmatter||{}))}async teardown(){}};var Ce=V(require("obsidian"));var Vr=class extends Ce.Modal{constructor(e,t,n){super(app);this.prompt_text=e;this.default_value=t;this.multi_line=n;this.submitted=!1}onOpen(){this.titleEl.setText(this.prompt_text),this.createForm()}onClose(){this.contentEl.empty(),this.submitted||this.reject(new w("Cancelled prompt"))}createForm(){let e=this.contentEl.createDiv();e.addClass("templater-prompt-div");let t;if(this.multi_line){t=new Ce.TextAreaComponent(e);let n=this.contentEl.createDiv();n.addClass("templater-button-div");let o=new Ce.ButtonComponent(n);o.buttonEl.addClass("mod-cta"),o.setButtonText("Submit").onClick(s=>{this.resolveAndClose(s)})}else t=new Ce.TextComponent(e);this.value=this.default_value??"",t.inputEl.addClass("templater-prompt-input"),t.setPlaceholder("Type text here"),t.setValue(this.value),t.onChange(n=>this.value=n),t.inputEl.addEventListener("keydown",n=>this.enterCallback(n))}enterCallback(e){e.isComposing||e.keyCode===229||(this.multi_line?Ce.Platform.isDesktop&&e.key==="Enter"&&!e.shiftKey&&this.resolveAndClose(e):e.key==="Enter"&&this.resolveAndClose(e))}resolveAndClose(e){this.submitted=!0,e.preventDefault(),this.resolve(this.value),this.close()}async openAndGetValue(e,t){this.resolve=e,this.reject=t,this.open()}};var ai=V(require("obsidian")),Wr=class extends ai.FuzzySuggestModal{constructor(e,t,n,o){super(app);this.text_items=e;this.items=t;this.submitted=!1;this.setPlaceholder(n),o&&(this.limit=o)}getItems(){return this.items}onClose(){this.submitted||this.reject(new w("Cancelled prompt"))}selectSuggestion(e,t){this.submitted=!0,this.close(),this.onChooseSuggestion(e,t)}getItemText(e){return this.text_items instanceof Function?this.text_items(e):this.text_items[this.items.indexOf(e)]||"Undefined Text Item"}onChooseItem(e){this.resolve(e)}async openAndGetValue(e,t){this.resolve=e,this.reject=t,this.open()}};var Kr=class extends pe{constructor(){super(...arguments);this.name="system"}async create_static_templates(){this.static_functions.set("clipboard",this.generate_clipboard()),this.static_functions.set("prompt",this.generate_prompt()),this.static_functions.set("suggester",this.generate_suggester())}async create_dynamic_templates(){}async teardown(){}generate_clipboard(){return async()=>await navigator.clipboard.readText()}generate_prompt(){return async(e,t,n=!1,o=!1)=>{let s=new Vr(e,t,o),l=new Promise((p,A)=>s.openAndGetValue(p,A));try{return await l}catch(p){if(n)throw p;return null}}}generate_suggester(){return async(e,t,n=!1,o="",s)=>{let l=new Wr(e,t,o,s),p=new Promise((A,g)=>l.openAndGetValue(A,g));try{return await p}catch(A){if(n)throw A;return null}}}};var Ur=class extends pe{constructor(){super(...arguments);this.name="config"}async create_static_templates(){}async create_dynamic_templates(){}async teardown(){}async generate_object(e){return e}};var zr=class{constructor(e){this.plugin=e;this.modules_array=[];this.modules_array.push(new Rr(this.plugin)),this.modules_array.push(new Yr(this.plugin)),this.modules_array.push(new Lr(this.plugin)),this.modules_array.push(new Gr(this.plugin)),this.modules_array.push(new Hr(this.plugin)),this.modules_array.push(new Kr(this.plugin)),this.modules_array.push(new Ur(this.plugin))}async init(){for(let e of this.modules_array)await e.init()}async teardown(){for(let e of this.modules_array)await e.teardown()}async generate_object(e){let t={};for(let n of this.modules_array)t[n.getName()]=await n.generate_object(e);return t}};var li=V(require("child_process")),ci=V(require("util")),Gt=V(require("obsidian"));var Jr=class{constructor(e){this.plugin=e;Gt.Platform.isMobileApp||!(app.vault.adapter instanceof Gt.FileSystemAdapter)?this.cwd="":(this.cwd=app.vault.adapter.getBasePath(),this.exec_promise=(0,ci.promisify)(li.exec))}async generate_system_functions(e){let t=new Map,n=await this.plugin.templater.functions_generator.generate_object(e,De.INTERNAL);for(let o of this.plugin.settings.templates_pairs){let s=o[0],l=o[1];!s||!l||(Gt.Platform.isMobileApp?t.set(s,()=>new Promise(p=>p(ii))):(l=await this.plugin.templater.parser.parse_commands(l,n),t.set(s,async p=>{let A={...process.env,...p},g={timeout:this.plugin.settings.command_timeout*1e3,cwd:this.cwd,env:A,...this.plugin.settings.shell_path&&{shell:this.plugin.settings.shell_path}};try{let{stdout:f}=await this.exec_promise(l,g);return f.trimRight()}catch(f){throw new w(`Error with User Template ${s}`,f)}})))}return t}async generate_object(e){let t=await this.generate_system_functions(e);return Object.fromEntries(t)}};var Xr=class{constructor(e){this.plugin=e}async generate_user_script_functions(){let e=new Map,t=me(()=>Ie(this.plugin.settings.user_scripts_folder),`Couldn't find user script folder "${this.plugin.settings.user_scripts_folder}"`);if(!t)return new Map;for(let n of t)n.extension.toLowerCase()==="js"&&await this.load_user_script_function(n,e);return e}async load_user_script_function(e,t){let n=A=>window.require&&window.require(A),o={},s={exports:o},l=await app.vault.read(e);try{window.eval("(function anonymous(require, module, exports){"+l+`
|
|
})`)(n,s,o)}catch(A){throw new w(`Failed to load user script at "${e.path}".`,A.message)}let p=o.default||s.exports;if(!p)throw new w(`Failed to load user script at "${e.path}". No exports detected.`);if(!(p instanceof Function))throw new w(`Failed to load user script at "${e.path}". Default export is not a function.`);t.set(`${e.basename}`,p)}async generate_object(){let e=await this.generate_user_script_functions();return Object.fromEntries(e)}};var Qr=class{constructor(e){this.plugin=e;this.user_system_functions=new Jr(e),this.user_script_functions=new Xr(e)}async generate_object(e){let t={},n={};return this.plugin.settings.enable_system_commands&&(t=await this.user_system_functions.generate_object(e)),this.plugin.settings.user_scripts_folder&&(n=await this.user_script_functions.generate_object()),{...t,...n}}};var Mo=V(require("obsidian")),De;(function(t){t[t.INTERNAL=0]="INTERNAL",t[t.USER_INTERNAL=1]="USER_INTERNAL"})(De||(De={}));var Zr=class{constructor(e){this.plugin=e;this.internal_functions=new zr(this.plugin),this.user_functions=new Qr(this.plugin)}async init(){await this.internal_functions.init()}async teardown(){await this.internal_functions.teardown()}additional_functions(){return{obsidian:Mo}}async generate_object(e,t=1){let n={},o=this.additional_functions(),s=await this.internal_functions.generate_object(e),l={};switch(Object.assign(n,o),t){case 0:Object.assign(n,s);break;case 1:l=await this.user_functions.generate_object(e),Object.assign(n,{...s,user:l});break}return n}};var No={},v,ke=new Array(32).fill(void 0);ke.push(void 0,null,!0,!1);function de(r){return ke[r]}var Vt=ke.length;function Po(r){r<36||(ke[r]=Vt,Vt=r)}function en(r){let e=de(r);return Po(r),e}var Ai=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Ai.decode();var ur=new Uint8Array;function mr(){return ur.byteLength===0&&(ur=new Uint8Array(v.memory.buffer)),ur}function tt(r,e){return Ai.decode(mr().subarray(r,r+e))}function rt(r){Vt===ke.length&&ke.push(ke.length+1);let e=Vt;return Vt=ke[e],ke[e]=r,e}var Te=0,fr=new TextEncoder("utf-8"),Bo=typeof fr.encodeInto=="function"?function(r,e){return fr.encodeInto(r,e)}:function(r,e){let t=fr.encode(r);return e.set(t),{read:r.length,written:t.length}};function ze(r,e,t){if(t===void 0){let p=fr.encode(r),A=e(p.length);return mr().subarray(A,A+p.length).set(p),Te=p.length,A}let n=r.length,o=e(n),s=mr(),l=0;for(;l<n;l++){let p=r.charCodeAt(l);if(p>127)break;s[o+l]=p}if(l!==n){l!==0&&(r=r.slice(l)),o=t(o,n,n=l+r.length*3);let p=mr().subarray(o+l,o+n);l+=Bo(r,p).written}return Te=l,o}function Oo(r){return r==null}var dr=new Int32Array;function ge(){return dr.byteLength===0&&(dr=new Int32Array(v.memory.buffer)),dr}function tn(r){let e=typeof r;if(e=="number"||e=="boolean"||r==null)return`${r}`;if(e=="string")return`"${r}"`;if(e=="symbol"){let o=r.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){let o=r.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(r)){let o=r.length,s="[";o>0&&(s+=tn(r[0]));for(let l=1;l<o;l++)s+=", "+tn(r[l]);return s+="]",s}let t=/\[object ([^\]]+)\]/.exec(toString.call(r)),n;if(t.length>1)n=t[1];else return toString.call(r);if(n=="Object")try{return"Object("+JSON.stringify(r)+")"}catch{return"Object"}return r instanceof Error?`${r.name}: ${r.message}
|
|
${r.stack}`:n}function qo(r,e){if(!(r instanceof e))throw new Error(`expected instance of ${e.name}`);return r.ptr}var gr=32;function Io(r){if(gr==1)throw new Error("out of js stack");return ke[--gr]=r,gr}function rn(r,e){try{return r.apply(this,e)}catch(t){v.__wbindgen_exn_store(rt(t))}}var dt=class{static __wrap(e){let t=Object.create(dt.prototype);return t.ptr=e,t}__destroy_into_raw(){let e=this.ptr;return this.ptr=0,e}free(){let e=this.__destroy_into_raw();v.__wbg_parserconfig_free(e)}get interpolate(){let e=v.__wbg_get_parserconfig_interpolate(this.ptr);return String.fromCodePoint(e)}set interpolate(e){v.__wbg_set_parserconfig_interpolate(this.ptr,e.codePointAt(0))}get execution(){let e=v.__wbg_get_parserconfig_execution(this.ptr);return String.fromCodePoint(e)}set execution(e){v.__wbg_set_parserconfig_execution(this.ptr,e.codePointAt(0))}get single_whitespace(){let e=v.__wbg_get_parserconfig_single_whitespace(this.ptr);return String.fromCodePoint(e)}set single_whitespace(e){v.__wbg_set_parserconfig_single_whitespace(this.ptr,e.codePointAt(0))}get multiple_whitespace(){let e=v.__wbg_get_parserconfig_multiple_whitespace(this.ptr);return String.fromCodePoint(e)}set multiple_whitespace(e){v.__wbg_set_parserconfig_multiple_whitespace(this.ptr,e.codePointAt(0))}constructor(e,t,n,o,s,l,p){let A=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),g=Te,f=ze(t,v.__wbindgen_malloc,v.__wbindgen_realloc),b=Te,k=ze(p,v.__wbindgen_malloc,v.__wbindgen_realloc),x=Te,O=v.parserconfig_new(A,g,f,b,n.codePointAt(0),o.codePointAt(0),s.codePointAt(0),l.codePointAt(0),k,x);return dt.__wrap(O)}get opening_tag(){try{let n=v.__wbindgen_add_to_stack_pointer(-16);v.parserconfig_opening_tag(n,this.ptr);var e=ge()[n/4+0],t=ge()[n/4+1];return tt(e,t)}finally{v.__wbindgen_add_to_stack_pointer(16),v.__wbindgen_free(e,t)}}set opening_tag(e){let t=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),n=Te;v.parserconfig_set_opening_tag(this.ptr,t,n)}get closing_tag(){try{let n=v.__wbindgen_add_to_stack_pointer(-16);v.parserconfig_closing_tag(n,this.ptr);var e=ge()[n/4+0],t=ge()[n/4+1];return tt(e,t)}finally{v.__wbindgen_add_to_stack_pointer(16),v.__wbindgen_free(e,t)}}set closing_tag(e){let t=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),n=Te;v.parserconfig_set_closing_tag(this.ptr,t,n)}get global_var(){try{let n=v.__wbindgen_add_to_stack_pointer(-16);v.parserconfig_global_var(n,this.ptr);var e=ge()[n/4+0],t=ge()[n/4+1];return tt(e,t)}finally{v.__wbindgen_add_to_stack_pointer(16),v.__wbindgen_free(e,t)}}set global_var(e){let t=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),n=Te;v.parserconfig_set_global_var(this.ptr,t,n)}},Ft=class{static __wrap(e){let t=Object.create(Ft.prototype);return t.ptr=e,t}__destroy_into_raw(){let e=this.ptr;return this.ptr=0,e}free(){let e=this.__destroy_into_raw();v.__wbg_renderer_free(e)}constructor(e){qo(e,dt);var t=e.ptr;e.ptr=0;let n=v.renderer_new(t);return Ft.__wrap(n)}render_content(e,t){try{let l=v.__wbindgen_add_to_stack_pointer(-16),p=ze(e,v.__wbindgen_malloc,v.__wbindgen_realloc),A=Te;v.renderer_render_content(l,this.ptr,p,A,Io(t));var n=ge()[l/4+0],o=ge()[l/4+1],s=ge()[l/4+2];if(s)throw en(o);return en(n)}finally{v.__wbindgen_add_to_stack_pointer(16),ke[gr++]=void 0}}};async function So(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(n){if(r.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}let t=await r.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{let t=await WebAssembly.instantiate(r,e);return t instanceof WebAssembly.Instance?{instance:t,module:r}:t}}function Co(){let r={};return r.wbg={},r.wbg.__wbindgen_object_drop_ref=function(e){en(e)},r.wbg.__wbindgen_string_new=function(e,t){let n=tt(e,t);return rt(n)},r.wbg.__wbindgen_string_get=function(e,t){let n=de(t),o=typeof n=="string"?n:void 0;var s=Oo(o)?0:ze(o,v.__wbindgen_malloc,v.__wbindgen_realloc),l=Te;ge()[e/4+1]=l,ge()[e/4+0]=s},r.wbg.__wbg_call_97ae9d8645dc388b=function(){return rn(function(e,t){let n=de(e).call(de(t));return rt(n)},arguments)},r.wbg.__wbg_new_8d2af00bc1e329ee=function(e,t){let n=new Error(tt(e,t));return rt(n)},r.wbg.__wbg_message_fe2af63ccc8985bc=function(e){let t=de(e).message;return rt(t)},r.wbg.__wbg_newwithargs_8fe23e3842840c8e=function(e,t,n,o){let s=new Function(tt(e,t),tt(n,o));return rt(s)},r.wbg.__wbg_call_168da88779e35f61=function(){return rn(function(e,t,n){let o=de(e).call(de(t),de(n));return rt(o)},arguments)},r.wbg.__wbg_call_3999bee59e9f7719=function(){return rn(function(e,t,n,o){let s=de(e).call(de(t),de(n),de(o));return rt(s)},arguments)},r.wbg.__wbindgen_debug_string=function(e,t){let n=tn(de(t)),o=ze(n,v.__wbindgen_malloc,v.__wbindgen_realloc),s=Te;ge()[e/4+1]=s,ge()[e/4+0]=o},r.wbg.__wbindgen_throw=function(e,t){throw new Error(tt(e,t))},r}function Do(r,e){}function $o(r,e){return v=r.exports,pi.__wbindgen_wasm_module=e,dr=new Int32Array,ur=new Uint8Array,v}async function pi(r){typeof r=="undefined"&&(r=new URL("rusty_engine_bg.wasm",No.url));let e=Co();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r)),Do(e);let{instance:t,module:n}=await So(await r,e);return $o(t,n)}var ui=pi;var mi=kn("AGFzbQEAAAABvwEaYAJ/fwBgAn9/AX9gAX8Bf2ADf39/AX9gA39/fwBgAX8AYAV/f39/fwBgBH9/f38AYAR/f39/AX9gAABgBX9/f39/AX9gAX8BfmAAAX9gBn9/f39/fwBgB39/f39/f38AYAV/f35/fwBgBX9/fX9/AGAFf398f38AYAR/fn9/AGAFf35/f38AYAR/fX9/AGAEf3x/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gCn9/f39/f39/f38Bf2ACfn8Bf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IAAgATYCACAGQRBqJAALyAsBCH8jAEHgAGsiAyQAIABCATcCACAAQQhqIgRBADYCACAAQQBBEBBBIAQoAgAiBSAAKAIAaiIGQdSDwAApAAA3AAAgBCAFQRBqNgIAIAZBCGpB3IPAACkAADcAACADQQE2AiwgAyABKAIIQShqIgU2AiggAyAANgIYIANB3ABqQQE2AgAgA0ICNwJMIANB8IPAADYCSCADIANBKGo2AlgCQAJAAkACQAJAAkAgA0EYakGYisAAIANByABqEB5FBEAgAigCACEIAkAgAigCCCIBRQ0AIAFBBHQhCkGQhMAAIQZBACEBQQAhBANAAn8gASAIaiIHQQRqIgkgBygCAEUNABoCQCAERQ0AIANBEGogBCgCACAEKAIEQQAgBiAGLQAAQQJGG0EBEBAgA0EIaiADKAIQIAMoAhRBACAHQQ1qIgQgBC0AAEECRhtBABAQIANBGGogAygCCCADKAIMEBIgA0EBNgI0IANBATYCLCADIAU2AiggAyADQRhqNgIwIAMgADYCRCADQQI2AlwgA0IDNwJMIANBmITAADYCSCADIANBKGo2AlggA0HEAGpBmIrAACADQcgAahAeDQUgAygCHEUNACADKAIYEBULIAdBDmohBgJAIAdBDGotAABFBEAgA0ECNgIsIAMgCTYCKCADIAA2AhggA0EBNgJcIANCAjcCTCADQfSEwAA2AkggAyADQShqNgJYIANBGGpBmIrAACADQcgAahAeDQcgA0ECNgI0IANBoIXAADYCMCADQQE2AiwgAyAFNgIoIAMgADYCGCADQQI2AlwgA0IDNwJMIANBmITAADYCSCADIANBKGo2AlggA0EYakGYisAAIANByABqEB5FDQFBq4HAAEErIANByABqQdiBwABBqIXAABBSAAsgA0ECNgIsIAMgCTYCKCADIAA2AhggA0EBNgJcIANCAjcCTCADQcSEwAA2AkggAyADQShqNgJYIANBGGpBmIrAACADQcgAahAeDQcLQQALIQQgCiABQRBqIgFHDQALIARFDQAgAyAEKAIAIAQoAgRBACAGIAYtAABBAkYbQQEQECADQRhqIAMoAgAgAygCBBASIANBNGpBATYCACADQQE2AiwgAyAFNgIoIAMgA0EYajYCMCADIAA2AkQgA0HcAGpBAjYCACADQgM3AkwgA0GYhMAANgJIIAMgA0EoajYCWCADQcQAakGYisAAIANByABqEB4NBSADKAIcRQ0AIAMoAhgQFQsgAEEEaigCACAAQQhqIgQoAgAiAWtBJ00EQCAAIAFBKBBBIAQoAgAhAQsgBCABQShqNgIAIAAoAgAgAWoiAUHIhcAAKQAANwAAIAFBCGpB0IXAACkAADcAACABQRBqQdiFwAApAAA3AAAgAUEYakHghcAAKQAANwAAIAFBIGpB6IXAACkAADcAACADQTxqQQI2AgAgA0E0akEBNgIAIANBoIXAADYCOCADIAU2AjAgA0EBNgIsIAMgBTYCKCADIAA2AhggA0HcAGoiAUEDNgIAIANCBDcCTCADQZiGwAA2AkggAyADQShqNgJYIANBGGpBmIrAACADQcgAahAeDQUgA0EBNgIsIAMgBTYCKCADIAA2AhggAUEBNgIAIANCAjcCTCADQdCGwAA2AkggAyADQShqNgJYIANBGGpBmIrAACADQcgAahAeDQYgAkEEaigCAARAIAgQFQsgA0HgAGokAA8LQauBwABBKyADQcgAakHYgcAAQYCEwAAQUgALQauBwABBKyADQcgAakHYgcAAQbCEwAAQUgALQauBwABBKyADQcgAakHYgcAAQYSFwAAQUgALQauBwABBKyADQcgAakHYgcAAQdSEwAAQUgALQauBwABBKyADQcgAakHYgcAAQbiFwAAQUgALQauBwABBKyADQcgAakHYgcAAQbiGwAAQUgALQauBwABBKyADQcgAakHYgcAAQeCGwAAQUgAL7QkCCH8GfiMAQdAAayIDJAACQAJAAkAQVCIEBEAgA0EgakIANwMAIANBHGpBkIrAADYCACAEIAQpAwAiC0IBfDcDACADQQA2AhggAyALNwMIIAMgBEEIaikDADcDECADQqeAgIDwBDcDSCADQo2AgICgDjcDQCADQoqAgIDgDTcDOCADQtyAgIDACzcDMCADQQhqIANBMGoQGSADQQA2AjggA0IENwMwIAJFBEAgAEEANgIIIABCATcCAEEEIQRBBCEBDAQLIAEgAmohCEEAIQIDQAJ/IAEsAAAiBEF/Sg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qKQIANwMAIAFBGGoiCSABQYwBaikCADcDACABQSBqIgogAUGUAWopAgA3AwAgAUEoaiILIAFBnAFqKQIANwMAIAFBMGoiDCABQaQBaikCADcDACABQThqIg0gAUGsAWooAgA2AgAgASAAKQIANwN4IAEgASkCfDcDCCAAEBUgAUHwAGogDSgCADYCACABQegAaiAMKQMANwMAIAFB4ABqIAspAwA3AwAgAUHYAGogCikDADcDACABQdAAaiAJKQMANwMAIAFByABqIAgpAwA3AwAgASABKQMINwNAIAFB+ABqIAFBQGsQOkE8QQQQngEiAEUNAiAAQQA2AgAgACABKQN4NwIEIABBDGogAykDADcCACAAQRRqIAIpAwA3AgAgAEEcaiAEKQMANwIAIABBJGogBSkDADcCACAAQSxqIAYpAwA3AgAgAEE0aiAHKQMANwIAIAFBsAFqJAAgAA8LEK0BAAsQrgEAC0E8QQQQswEAC9cEAQR/IAAgARC6ASECAkACQAJAIAAQsAENACAAKAIAIQMCQCAAEKUBRQRAIAEgA2ohASAAIAMQuwEiAEHAscAAKAIARw0BIAIoAgRBA3FBA0cNAkG4scAAIAE2AgAgACABIAIQhgEPCyABIANqQRBqIQAMAgsgA0GAAk8EQCAAEDUMAQsgAEEMaigCACIEIABBCGooAgAiBUcEQCAFIAQ2AgwgBCAFNgIIDAELQaiuwABBqK7AACgCAEF+IANBA3Z3cTYCAAsgAhCiAQRAIAAgASACEIYBDAILAkBBxLHAACgCACACRwRAIAJBwLHAACgCAEcNAUHAscAAIAA2AgBBuLHAAEG4scAAKAIAIAFqIgE2AgAgACABEJQBDwtBxLHAACAANgIAQbyxwABBvLHAACgCACABaiIBNgIAIAAgAUEBcjYCBCAAQcCxwAAoAgBHDQFBuLHAAEEANgIAQcCxwABBADYCAA8LIAIQrwEiAyABaiEBAkAgA0GAAk8EQCACEDUMAQsgAkEMaigCACIEIAJBCGooAgAiAkcEQCACIAQ2AgwgBCACNgIIDAELQaiuwABBqK7AACgCAEF+IANBA3Z3cTYCAAsgACABEJQBIABBwLHAACgCAEcN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QcABcjoADEECDAELIAIgAUE/cUGAAXI6AA8gAiABQQZ2QT9xQYABcjoADiACIAFBDHZBP3FBgAFyOgANIAIgAUESdkEHcUHwAXI6AAxBBAshASAAQQRqKAIAIABBCGoiBCgCACIDayABSQRAIAAgAyABEEEgBCgCACEDCyAAKAIAIANqIAJBDGogARC5ARogBCABIANqNgIACyACQRBqJABBAAvVAgEDfyMAQRBrIgIkAAJAAn8CQCABQYABTwRAIAJBADYCDCABQYAQTw0BIAIgAUE/cUGAAXI6AA0gAiABQQZ2QcABcjoADEECDAILIAAoAggiAyAAQQRqKAIARgRAIAAgAxBDIAAoAgghAwsgACADQQFqNgIIIAAoAgAgA2ogAToAAAwCCyABQYCABE8EQCACIAFBP3FBgAFyOgAPIAIgAUEGdkE/cUGAAXI6AA4gAiABQQx2QT9xQYABcjoADSACIAFBEnZBB3FB8AFyOgAMQQQMAQsgAiABQT9xQYABcjoADiACIAFBDHZB4AFyOgAMIAIgAUEGdkE/cUGAAXI6AA1BAwshASAAQQRqKAIAIABBCGoiBCgCACIDayABSQRAIAAgAyABEEIgBCgCACEDCyAAKAIAIANqIAJBDGogARC5ARogBCABIANqNgIACyACQRBqJAAL1wIBA38jAEEQayICJAACQAJ/AkACQCABQYABTwRAIAJBADYCDCABQYAQSQ0BIAFBgIAETw0CIAIgAUE/cUGAAXI6AA4gAiABQQx2QeABcjoADCACIAFBBnZBP3FBgAFyOgANQQMMAwsgACgCCCIDIABBBGooAgBGBEAgACADEEMgACgCCCEDCyAAIANBAWo2AgggACgCACADaiABOgAADAMLIAIgAUE/cUGAAXI6AA0gAiABQQZ2QcABcjoADEECDAELIAIgAUE/cUGAAXI6AA8gAiABQQZ2QT9xQYABcjoADiACIAFBDHZBP3FBgAFyOgANIAIgAUESdkEHcUHwAXI6AAxBBAshASAAQQRqKAIAIABBCGoiBCgCACIDayABSQRAIAAgAyABEEIgBCgCACEDCyAAKAIAIANqIAJBDGogARC5ARogBCABIANqNgIACyACQRBqJAALtgIBB38C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ACIAE2AhQgAiAAKAIANgIQQQEFQQALNgIYIAIgA0EBIAJBEGoQSyACKAIABEAgAkEIaigCACIARQ0BIAIoAgQgABCzAQALIAIoAgQhASAAQQRqIAM2AgAgACABNgIAIAJBIGokAA8LEHMAC68BAQJ/IwBBIGsiAyQAAkAgASACaiICIAFJDQAgAEEEaigCACIBQQF0IgQgAiAEIAJLGyICQQggAkEISxshBCADIAEEfyADIAE2AhQgAyAAKAIANgIQQQEFQQALNgIYIAMgBEEBIANBEGoQSyADKAIABEAgA0EIaigCACIARQ0BIAMoAgQgABCzAQALIAMoAgQhASAAQQRqIAQ2AgAgACABNgIAIANBIGokAA8LEHMAC60BAQJ/IwBBIGsiAyQAAkAgASACaiICIAFJDQAgAEEEaigCACIBQQF0IgQgAiAEIAJLGyICQQggAkEISxshBCADIAEEfyADIAE2AhQgAyAAKAIANgIQQQEFQQALNgIYIAMgBCADQRBqEEogAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQswEACyADKAIEIQEgAEEEaiAENgIAIAAgATYCACADQSBqJAAPCxBzAAutAQEDfyMAQSBrIgIkAAJAIAFBAWoiAyABSQ0AIABBBGooAgAiAUEBdCIEIAMgBCADSxsiA0EIIANBCEsbIQMgAiABBH8gAiABNgIUIAIgACgCADYCEEEBBUEACzYCGCACIAMgAkEQahBKIAIoAgAEQCACQQhqKAIAIgBFDQEgAigCBCAAELMBAAsgAigCBCEBIABBBGogAzYCACAAIAE2AgAgAkEgaiQADwsQcwAL7wEBA38jAEEgayIFJABBjK7AAEGMrsAAKAIAIgdBAWo2AgBB7LHAAEHsscAAKAIAQQFqIgY2AgACQAJAIAdBAEggBkECS3INACAFIAQ6ABggBSADNgIUIAUgAjYCEEGArsAAKAIAIgJBf0wNAEGArsAAIAJBAWoiAjYCAEGArsAAQYiuwAAoAgAiAwR/QYSuwAAoAgAgBSAAIAEoAhARAAAgBSAFKQMANwMIIAVBCGogAygCFBEAAEGArsAAKAIABSACC0F/ajYCACAGQQFLDQAgBA0BCwALIwBBEGsiAiQAIAIgATYCDCACIAA2AggAC58BAQN/AkAgAUEPTQRAIAAhAgwBCyAAQQAgAGtBA3EiBGohAyAEBEAgACECA0AgAkH/AToAACACQQFqIgIgA0kNAAsLIAMgASAEayIBQXxxIgRqIQIgBEEBTgRAA0AgA0F/NgIAIANBBGoiAyACSQ0ACwsgAUEDcSEBCyABBEAgASACaiEBA0AgAkH/AToAACACQQFqIgIgAUkNAAsLIAALrAEBA38jAEEQayIDJAACQAJAIAEEQCABKAIAIgJBf0YNASABIAJBAWo2AgAgAyABQQRqEGEgASABKAIAQX9qNgIAIAMoAgAhAQJAIAMoAgQiAiADKAIIIgRNBEAgASECDAELIARFBEBBASECIAEQFQwBCyABIAJBASAEEJkBIgJFDQMLIAAgBDYCBCAAIAI2AgAgA0EQaiQADwsQrQEACxCuAQALIARBARCzAQALrAEBA38jAEEQayIDJAACQAJAIAEEQCABKAIAIgJBf0YNASABIAJBAWo2AgAgAyABQRBqEGEgASABKAIAQX9qNgIAIAMoAgAhAQJAIAMoAgQiAiADKAIIIgRNBEAgASECDAELIARFBEBBASECIAEQFQwBCyABIAJBASAEEJkBIgJFDQMLIAAgBDYCBCAAIAI2AgAgA0EQaiQADwsQrQEACxCuAQALIARBARCzAQALrAEBA38jAEEQayIDJAACQAJAIAEEQCABKAIAIgJBf0YNASABIAJBAWo2AgAgAyABQSxqEGEgASABKAIAQX9qNgIAIAMoAgAhAQJAIAMoAgQiAiADKAIIIgRNBEAgASECDAELIARFBEBBASECIAEQFQwBCyABIAJBASAEEJkBIgJFDQMLIAAgBDYCBCAAIAI2AgAgA0EQaiQADwsQrQEACxCuAQALIARBARCzAQALrAEBA38jAEEwayICJAAgAUEEaiEDIAEoAgRFBEAgASgCACEBIAJBEGoiBEEANgIAIAJCATcDCCACIAJBCGo2AhQgAkEoaiABQRBqKQIANwMAIAJBIGogAUEIaikCADcDACACIAEpAgA3AxggAkEUakGAjsAAIAJBGGoQHhogA0EIaiAEKAIANgIAIAMg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QQgQlwEgAGsiAhC6ASEAQbyxwAAgASACayIBNgIAQcSxwAAgADYCACAAIAFBAXI2AgRBCEEIEJcBIQJBFEEIEJcBIQNBEEEIEJcBIQQgACABELoBIAQgAyACQQhramo2AgRB4LHAAEGAgIABNgIAC28BBH8jAEEgayICJABBASEDAkAgACABEDMNACABQRxqKAIAIQQgASgCGCACQRxqQQA2AgAgAkGAk8AANgIYIAJCATcCDCACQYSTwAA2AgggBCACQQhqEB4NACAAQQRqIAEQMyEDCyACQSBqJAAgAwtvAQF/IwBBMGsiAiQAIAIgATYCBCACIAA2AgAgAkEcakECNgIAIAJBLGpBAzYCACACQgI3AgwgAkGklsAANgIIIAJBAzYCJCACIAJBIGo2AhggAiACQQRqNgIoIAIgAjYCICACQQhqQdSWwAAQdAALbwEBfyMAQTBrIgIkACACIAE2AgQgAiAANgIAIAJBHGpBAjYCACACQSxqQQM2AgAgAkICNwIMIAJBuJfAADYCCCACQQM2AiQgAiACQSBqNgIYIAIgAkEEajYCKCACIAI2AiAgAkEIakHIl8AAEHQAC28BAX8jAEEwayICJAAgAiABNgIEIAIgADYCACACQRxqQQI2AgAgAkEsakEDNgIAIAJCAjcCDCACQfSWwAA2AgggAkEDNgIkIAIgAkEgajYCGCACIAJBBGo2AiggAiACNgIgIAJBCGpBhJfAABB0AAtsAQF/IwBBMGsiAyQAIAMgATYCBCADIAA2AgAgA0EcakECNgIAIANBLGpBAzYCACADQgI3AgwgA0HAk8AANgIIIANBAzYCJCADIANBIGo2AhggAyADNgIoIAMgA0EEajYCICADQQhqIAIQdAALVgECfyMAQSBrIgIkACAAQRxqKAIAIQMgACgCGCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCADIAJBCGoQHiACQSBqJAALWQEBfyMAQSBrIgIkACACIAAoAgA2AgQgAkEYaiABQRBqKQIANwMAIAJBEGogAUEIaikCADcDACACIAEpAgA3AwggAkEEakGYisAAIAJBCGoQHiACQSBqJAALWQEBfyMAQSBrIgIkACACIAAoAgA2AgQgAkEYaiABQRBqKQIANwMAIAJBEGogAUEIaikCADcDACACIAEpAgA3AwggAkEEakGAjsAAIAJBCGoQHiACQSBqJAALZwAjAEEwayIBJABB2K3AAC0AAARAIAFBHGpBATYCACABQgI3AgwgAUH0jsAANgIIIAFBAzYCJCABIAA2AiwgASABQSBqNgIYIAEgAUEsajYCICABQQhqQZyPwAAQdAALIAFBMGokAAtZAQF/IwBBIGsiAiQAIAIgACgCADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqQbSRwAAgAkEIahAeIAJBIGokAAtnAQJ/IAEoAgAhAwJAAkACQCABQQhqKAIAIgFFBEBBASECDAELIAFBf0wNASABQQEQngEiAkUNAgsgAiADIAEQuQEhAiAAIAE2AgggACABNgIEIAAgAjYCAA8LEHMACyABQQEQswEAC1YBAX8jAEEgayICJAAgAiAANgIEIAJBGGogAUEQaikCADcDACACQRBqIAFBCGopAgA3AwAgAiABKQIANwMIIAJBBGpBmIrAACACQQhqEB4gAkEgaiQAC1YBAX8CQCAABEAgACgCAA0BIABBfzYCACAAQQhqIgMoAgAEQCAAKAIEEBULIAAgATYCBCAAQQA2AgAgAEEMaiACNgIAIAMgAjYCAA8LEK0BAAsQrgEAC1YBAX8CQCAABEAgACgCAA0BIABBfzYCACAAQRRqIgMoAgAEQCAAKAIQEBULIAAgATYCECAAQQA2AgAgAEEYaiACNgIAIAMgAjYCAA8LEK0BAAsQrgEAC1YBAX8CQCAABEAgACgCAA0BIABBfzYCACAAQTBqIgMoAgAEQCAAKAIsEBULIAAgATYCLCAAQQA2AgAgAEE0aiACNgIAIAMgAjYCAA8LEK0BAAsQrgEAC1YBAX8jAEEQayIFJAAgASgCACACKAIAIAMoAgAgBCgCABAIIQEgBUEIahCDASAFKAIMIQIgACAFKAIIIgNBAEc2AgAgACACIAEgAxs2AgQgBUEQaiQAC08BAn8gACgCACIDQQRqKAIAIANBCGoiBCgCACIAayACSQRAIAMgACACEEEgBCgCACEACyADKAIAIABqIAEgAhC5ARogBCAAIAJqNgIAQQALTwECfyAAKAIAIgNBBGooAgAgA0EIaiIEKAIAIgBrIAJJBEAgAyAAIAIQQiAEKAIAIQALIAMoAgAgAGogASACELkBGiAEIAAgAmo2AgBBAAtRAQF/IwBBEGsiBCQAIAEoAgAgAigCACADKAIAEAchASAEQQhqEIMBIAQoAgwhAiAAIAQoAggiA0EARzYCACAAIAIgASADGzYCBCAEQRBqJAALSgECfyAAQQRqKAIAIABBCGoiBCgCACIDayACSQRAIAAgAyACEEEgBCgCACEDCyAAKAIAIANqIAEgAhC5ARogBCACIANqNgIAQQALPwEBfyMAQSBrIgAkACAAQRxqQQA2AgAgAEGwkMAANgIYIABCATcCDCAAQcyQwAA2AgggAEEIakGkkcAAEHQAC0MBA38CQCACRQ0AA0AgAC0AACIEIAEtAAAiBUYEQCAAQQFqIQAgAUEBaiEBIAJBf2oiAg0BDAILCyAEIAVrIQMLIAMLTAECfyMAQRBrIgMkACABKAIAIAIoAgAQAyEBIANBCGoQgwEgAygCDCECIAAgAygCCCIEQQBHNgIAIAAgAiABIAQbNgIEIANBEGokAAtLAAJAAn8gAUGAgMQARwRAQQEgACgCGCABIABBHGooAgAoAhARAQANARoLIAINAUEACw8LIAAoAhggAiADIABBHGooAgAoAgwRAwALRwEBfyMAQSBrIgIkACACQRRqQQA2AgAgAkGAk8AANgIQIAJCATcCBCACQSs2AhwgAiAANgIYIAIgAkEYajYCACACIAEQdAALRgECfyABKAIEIQIgASgCACEDQQhBBBCeASIBRQRAQQhBBBCzAQALIAEgAjYCBCABIAM2AgAgAEH4j8AANgIEIAAgATYCAAs5AQF/IAFBEHZAACECIABBADYCCCAAQQAgAUGAgHxxIAJBf0YiARs2AgQgAEEAIAJBEHQgARs2AgALZAEDfyMAQRBrIgEkACAAKAIMIgJFBEBBmI7AAEHIj8AAEG8ACyAAKAIIIgNFBEBBmI7AAEHYj8AAEG8ACyABIAI2AgggASAANgIEIAEgAzYCACABKAIAIAEoAgQgASgCCBBQAAs/AQF/IwBBIGsiACQAIABBHGpBADYCACAAQcyRwAA2AhggAEIBNwIMIABBjJLAADYCCCAAQQhqQZSSwAAQdAALPgEBfyMAQSBrIgIkACACQQE6ABggAiABNgIUIAIgADYCECACQfyTwAA2AgwgAkGAk8AANgIIIAJBCGoQcgALKwACQCAAQXxLDQAgAEUEQEEEDwsgACAAQX1JQQJ0EJ4BIgBFDQAgAA8LAAsiACMAQRBrIgAkACAAQQhqIAEQfSAAQQhqEFMgAEEQaiQACysAAkAgAARAIAAoAgANASAAQQA2AgAgAEEcaiABNgIADwsQrQEACxCuAQALKwACQCAABEAgACgCAA0BIABBADYCACAAQSBqIAE2AgAPCxCtAQALEK4BAAsrAAJAIAAEQCAAKAIADQEgAEEANgIAIABBJGogATYCAA8LEK0BAAsQrgEACysAAkAgAARAIAAoAgANASAAQQA2AgAgAEEoaiABNgIADwsQrQEACxCuAQALQAEBfyMAQRBrIgQkACAEIAM2AgwgBCACNgIIIAQgATYCBCAEIAA2AgAgBCgCACAEKAIEIAQoAgggBCgCDBATAAs3ACAAQQM6ACAgAEKAgICAgAQ3AgAgACABNgIYIABBADYCECAAQQA2AgggAEEcakHEh8AANgIACzUBAX8gASgCGEHDjsAAQQsgAUEcaigCACgCDBEDACECIABBADoABSAAIAI6AAQgACABNgIACyUAAkAgAARAIAAoAgBBf0YNASAAQRxqKAIADwsQrQEACxCuAQALJQACQCAABEAgACgCAEF/Rg0BIABBIGooAgAPCxCtAQALEK4BAAslAAJAIAAEQCAAKAIAQX9GDQEgAEEkaigCAA8LEK0BAAsQrgEACyUAAkAgAARAIAAoAgBBf0YNASAAQShqKAIADwsQrQEACxCuAQALJwAgACAAKAIEQQFxIAFyQQJyNgIEIAAgAWoiACAAKAIEQQFyNgIECzoBAn9B3K3AAC0AACEBQdytwABBADoAAEHgrcAAKAIAIQJB4K3AAEEANgIAIAAgAjYCBCAAIAE2AgALIAEBfwJAIAAoAgQiAUUNACAAQQhqKAIARQ0AIAEQFQsLHwACQCABQXxNBEAgACABQQQgAhCZASIADQELAAsgAAsjACACIAIoAgRBfnE2AgQgACABQQFyNgIEIAAgAWogATYCAAslACAARQRAQciMwABBMBCsAQALIAAgAiADIAQgBSABKAIQEQoACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQEQgACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQEQcACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQERUACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQERIACyMAIABFBEBByIzAAEEwEKwBAAsgACACIAMgBCABKAIQERQACx4AIAAgAUEDcjYCBCAAIAFqIgAgACgCBEEBcjYCBAsUACAAQQRqKAIABEAgACgCABAVCwshACAARQRAQciMwABBMBCsAQALIAAgAiADIAEoAhARBAALHwAgAEUEQEHIjMAAQTAQrAEACyAAIAIgASgCEBEBAAsZAQF/IAAoAhAiAQR/IAEFIABBFGooAgALCxkAIAAoAgAiACgCACAAQQhqKAIAIAEQtwELEgBBAEEZIABBAXZrIABBH0YbCxYAIAAgAUEBcjYCBCAAIAFqIAE2AgALHAAgASgCGEHgpsAAQQUgAUEcaigCACgCDBEDAAsTACAAKAIAIgBBJE8EQCAAEAALCxAAIAAgAWpBf2pBACABa3ELFAAgACgCACAAQQhqKAIAIAEQtwELDAAgACABIAIgAxAYCwsAIAEEQCAAEBULCw8AIABBAXQiAEEAIABrcgsUACAAKAIAIAEgACgCBCgCDBEBAAsRACAAKAIAIAAoAgQgARC3AQsIACAAIAEQJwsWAEHgrcAAIAA2AgBB3K3AAEEBOgAACw0AIAAoAgAgARAuQQALEwAgAEH4j8AANgIEIAAgATYCAAsNACAALQAEQQJxQQF2CxAAIAEgACgCACAAKAIEEBYLCgBBACAAayAAcQsLACAALQAEQQNxRQsMACAAIAFBA3I2AgQLDQAgACgCACAAKAIEagsNACAAKAIAIAEQL0EACw4AIAAoAgAaA0AM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NAQICBgEPAQADAAMdAh4CHgJAAgEHCAECCwkBLQMBAXUCIgF2AwQCCQEGA9sCAgE6AQEHAQEBAQIIBgoCATAfMQQwBwEBBQEoCQwCIAQCAgEDOAEBAgMBAQM6CAICmAMBDQEHBAEGAQMCxkAAAcMhAAONAWAgAAZpAgAEAQogAlACAAEDAQQBGQIFAZcCGhINASYIGQsuAzABAgQCAicBQwYCAgICDAEIAS8BMwEBAwICBQIBASoCCAHuAQIBBAEAAQAQEBAAAgAB4gGVBQADAQIFBCgDBAGlAgAEAAKZCzEEewE2DykBAgIKAzEEAgIHAT0DJAUBCD4BDAI0CQoEAgFfAwIBAQIGAaABAwgVAjkCAQEBARYBDgcDBcMIAgMBARcBUQECBgEBAgEBAgEC6wECBAYCAQIbAlUIAgEBAmoBAQECBgEBZQMCBAEFAAkBAvUBCgIBAQQBkAQCAgQBIAooBgIECAEJBgIDLg0BAgAHAQYBAVIWAgcBAgECegYDAQECAQcBAUgCAwEBAQACAAU7BwABPwRRAQACAC4CFwABAQMEBQgIAgceBJQDADcEMggBDgEWBQEPAAcBEQIHAQIBBQAHAAE9BAAHbQcAYIDwAACAFgAAACAgAQAwYAEBMHECCQUSAWQBGgEAAQALHQIFAS8BAAEAewlwcm9kdWNlcnMCCGxhbmd1YWdlAQRSdXN0AAxwcm9jZXNzZWQtYnkDBXJ1c3RjHTEuNjQuMCAoYTU1ZGQ3MWQ1IDIwMjItMDktMTkpBndhbHJ1cwYwLjE5LjAMd2FzbS1iaW5kZ2VuEjAuMi44MyAoZWJhNjkxZjM4KQ==");var nn=class{async init(){await ui(mi);let e=new dt("<%","%>","\0","*","-","_","tR");this.renderer=new Ft(e)}async parse_commands(e,t){return this.renderer.render_content(e,t)}};var $e;(function(l){l[l.CreateNewFromTemplate=0]="CreateNewFromTemplate",l[l.AppendActiveFile=1]="AppendActiveFile",l[l.OverwriteFile=2]="OverwriteFile",l[l.OverwriteActiveFile=3]="OverwriteActiveFile",l[l.DynamicProcessor=4]="DynamicProcessor",l[l.StartupTemplate=5]="StartupTemplate"})($e||($e={}));var Wt=class{constructor(e){this.plugin=e;this.functions_generator=new Zr(this.plugin),this.parser=new nn}async setup(){this.files_with_pending_templates=new Set,await this.parser.init(),await this.functions_generator.init(),this.plugin.registerMarkdownPostProcessor((e,t)=>this.process_dynamic_templates(e,t))}create_running_config(e,t,n){let o=kt(app);return{template_file:e,target_file:t,run_mode:n,active_file:o}}async read_and_parse_template(e){let t=await app.vault.read(e.template_file);return this.parse_template(e,t)}async parse_template(e,t){let n=await this.functions_generator.generate_object(e,De.USER_INTERNAL);return this.current_functions_object=n,await this.parser.parse_commands(t,n)}start_templater_task(e){this.files_with_pending_templates.add(e)}async end_templater_task(e){this.files_with_pending_templates.delete(e),this.files_with_pending_templates.size===0&&(app.workspace.trigger("templater:all-templates-executed"),await this.functions_generator.teardown())}async create_new_note_from_template(e,t,n,o=!0){if(!t)switch(app.vault.getConfig("newFileLocation")){case"current":{let b=kt(app);b&&(t=b.parent);break}case"folder":t=app.fileManager.getNewFileParent("");break;case"root":t=app.vault.getRoot();break;default:break}let s=e instanceof ve.TFile&&e.extension||"md",l=await Oe(async()=>{let f=t instanceof ve.TFolder?t.path:t,b=app.vault.getAvailablePath((0,ve.normalizePath)(`${f??""}/${n||"Untitled"}`),s),k=ei(b);return k&&!app.vault.getAbstractFileByPathInsensitive(k)&&await app.vault.createFolder(k),app.vault.create(b,"")},`Couldn't create ${s} file.`);if(l==null)return;let{path:p}=l;this.start_templater_task(p);let A,g;if(e instanceof ve.TFile?(A=this.create_running_config(e,l,0),g=await Oe(async()=>this.read_and_parse_template(A),"Template parsing error, aborting.")):(A=this.create_running_config(void 0,l,0),g=await Oe(async()=>this.parse_template(A,e),"Template parsing error, aborting.")),g==null){await app.vault.delete(l),await this.end_templater_task(p);return}if(await app.vault.modify(l,g),app.workspace.trigger("templater:new-note-from-template",{file:l,content:g}),o){let f=app.workspace.getLeaf(!1);if(!f){K(new w("No active leaf"));return}await f.openFile(l,{state:{mode:"source"}}),await this.plugin.editor_handler.jump_to_next_cursor_location(l,!0),f.setEphemeralState({rename:"all"})}return await this.end_templater_task(p),l}async append_template_to_active_file(e){let t=app.workspace.getActiveViewOfType(ve.MarkdownView),n=app.workspace.activeEditor;if(!n||!n.file||!n.editor){K(new w("No active editor, can't append templates."));return}let{path:o}=n.file;this.start_templater_task(o);let s=this.create_running_config(e,n.file,1),l=await Oe(async()=>this.read_and_parse_template(s),"Template parsing error, aborting.");if(l==null){await this.end_templater_task(o);return}let A=n.editor.getDoc(),g=A.listSelections();A.replaceSelection(l),n.file&&await app.vault.append(n.file,""),app.workspace.trigger("templater:template-appended",{view:t,editor:n,content:l,oldSelections:g,newSelections:A.listSelections()}),await this.plugin.editor_handler.jump_to_next_cursor_location(n.file,!0),await this.end_templater_task(o)}async write_template_to_file(e,t){let{path:n}=t;this.start_templater_task(n);let o=app.workspace.activeEditor,s=kt(app),l=this.create_running_config(e,t,2),p=await Oe(async()=>this.read_and_parse_template(l),"Template parsing error, aborting.");if(p==null){await this.end_templater_task(n);return}await app.vault.modify(t,p),s?.path===t.path&&o&&o.editor&&o.editor.setSelection({line:0,ch:0},{line:0,ch:0}),app.workspace.trigger("templater:new-note-from-template",{file:t,content:p}),await this.plugin.editor_handler.jump_to_next_cursor_location(t,!0),await this.end_templater_task(n)}overwrite_active_file_commands(){let e=app.workspace.activeEditor;if(!e||!e.file){K(new w("Active editor is null, can't overwrite content"));return}this.overwrite_file_commands(e.file,!0)}async overwrite_file_commands(e,t=!1){let{path:n}=e;this.start_templater_task(n);let o=this.create_running_config(e,e,t?3:2),s=await Oe(async()=>this.read_and_parse_template(o),"Template parsing error, aborting.");if(s==null){await this.end_templater_task(n);return}await app.vault.modify(e,s),app.workspace.trigger("templater:overwrite-file",{file:e,content:s}),await this.plugin.editor_handler.jump_to_next_cursor_location(e,!0),await this.end_templater_task(n)}async process_dynamic_templates(e,t){let n=Zn(),o=document.createNodeIterator(e,NodeFilter.SHOW_TEXT),s,l=!1,p;for(;s=o.nextNode();){let A=s.nodeValue;if(A!==null){let g=n.exec(A);if(g!==null){let f=app.metadataCache.getFirstLinkpathDest("",t.sourcePath);if(!f||!(f instanceof ve.TFile))return;if(!l){l=!0;let b=this.create_running_config(f,f,4);p=await this.functions_generator.generate_object(b,De.USER_INTERNAL),this.current_functions_object=p}}for(;g!=null;){let f=g[1]+g[2],b=await Oe(async()=>await this.parser.parse_commands(f,p),`Command Parsing error in dynamic command '${f}'`);if(b==null)return;let k=n.lastIndex-g[0].length,x=n.lastIndex;A=A.substring(0,k)+b+A.substring(x),n.lastIndex+=b.length-g[0].length,g=n.exec(A)}s.nodeValue=A}}}get_new_file_template_for_folder(e){do{let t=this.plugin.settings.folder_templates.find(n=>n.folder==e.path);if(t&&t.template)return t.template;e=e.parent}while(e)}static async on_file_creation(e,t){if(!(t instanceof ve.TFile)||t.extension!=="md")return;let n=(0,ve.normalizePath)(e.plugin.settings.templates_folder);if(!(t.path.includes(n)&&n!=="/")&&(await pr(300),!e.files_with_pending_templates.has(t.path)))if(t.stat.size==0&&e.plugin.settings.enable_folder_templates){let o=e.get_new_file_template_for_folder(t.parent);if(!o)return;let s=await Oe(async()=>Yt(o),`Couldn't find template ${o}`);if(s==null)return;await e.write_template_to_file(s,t)}else t.stat.size<=1e5?await e.overwrite_file_commands(t):console.log(`Templater skipped parsing ${t.path} because file size exceeds 10000`)}async execute_startup_scripts(){for(let e of this.plugin.settings.startup_templates){if(!e)continue;let t=me(()=>Yt(e),`Couldn't find startup template "${e}"`);if(!t)continue;let{path:n}=t;this.start_templater_task(n);let o=this.create_running_config(t,t,5);await Oe(async()=>this.read_and_parse_template(o),"Startup Template parsing error, aborting."),await this.end_templater_task(n)}}};var fi=V(require("obsidian")),hr=class{constructor(e,t,n){this.plugin=e;this.templater=t;this.settings=n}setup(){this.plugin.app.workspace.onLayoutReady(()=>{this.update_trigger_file_on_creation()}),this.update_syntax_highlighting(),this.update_file_menu()}update_syntax_highlighting(){let e=this.plugin.editor_handler.desktopShouldHighlight(),t=this.plugin.editor_handler.mobileShouldHighlight();e||t?this.plugin.editor_handler.enable_highlighter():this.plugin.editor_handler.disable_highlighter()}update_trigger_file_on_creation(){this.settings.trigger_on_file_creation?(this.trigger_on_file_creation_event=this.plugin.app.vault.on("create",e=>Wt.on_file_creation(this.templater,e)),this.plugin.registerEvent(this.trigger_on_file_creation_event)):this.trigger_on_file_creation_event&&(this.plugin.app.vault.offref(this.trigger_on_file_creation_event),this.trigger_on_file_creation_event=void 0)}update_file_menu(){this.plugin.registerEvent(this.plugin.app.workspace.on("file-menu",(e,t)=>{t instanceof fi.TFolder&&e.addItem(n=>{n.setTitle("Create new note from template").setIcon("templater-icon").onClick(()=>{this.plugin.fuzzy_suggester.create_new_note_from_template(t)})})}))}};var on=class{constructor(e){this.plugin=e}setup(){this.plugin.addCommand({id:"insert-templater",name:"Open insert template modal",icon:"templater-icon",hotkeys:[{modifiers:["Alt"],key:"e"}],callback:()=>{this.plugin.fuzzy_suggester.insert_template()}}),this.plugin.addCommand({id:"replace-in-file-templater",name:"Replace templates in the active file",icon:"templater-icon",hotkeys:[{modifiers:["Alt"],key:"r"}],callback:()=>{this.plugin.templater.overwrite_active_file_commands()}}),this.plugin.addCommand({id:"jump-to-next-cursor-location",name:"Jump to next cursor location",icon:"text-cursor",hotkeys:[{modifiers:["Alt"],key:"Tab"}],callback:()=>{this.plugin.editor_handler.jump_to_next_cursor_location()}}),this.plugin.addCommand({id:"create-new-note-from-template",name:"Create new note from template",icon:"templater-icon",hotkeys:[{modifiers:["Alt"],key:"n"}],callback:()=>{this.plugin.fuzzy_suggester.create_new_note_from_template()}}),this.register_templates_hotkeys()}register_templates_hotkeys(){this.plugin.settings.enabled_templates_hotkeys.forEach(e=>{e&&this.add_template_hotkey(null,e)})}add_template_hotkey(e,t){this.remove_template_hotkey(e),t&&this.plugin.addCommand({id:t,name:`Insert ${t}`,icon:"templater-icon",callback:()=>{let n=me(()=>Yt(t),"Couldn't find the template file associated with this hotkey");!n||this.plugin.templater.append_template_to_active_file(n)}})}remove_template_hotkey(e){e&&app.commands.removeCommand(`${this.plugin.manifest.id}:${e}`)}};var An=V(require("obsidian"));var sn=V(require("obsidian"));var an=class{constructor(){}async jump_to_next_cursor_location(){let e=app.workspace.activeEditor;if(!e||!e.editor)return;let t=e.editor.getValue(),{new_content:n,positions:o}=this.replace_and_get_cursor_positions(t);if(o){let s=e instanceof sn.MarkdownView?e.currentMode.getFoldInfo():null;e.editor.setValue(n),s&&Array.isArray(s.folds)&&(o.forEach(l=>{s.folds=s.folds.filter(p=>p.from>l.line||p.to<l.line)}),e instanceof sn.MarkdownView&&e.currentMode.applyFoldInfo(s)),this.set_cursor_location(o)}if(app.vault.getConfig("vimMode")){let s=e.editor.cm.cm;window.CodeMirrorAdapter.Vim.handleKey(s,"i","mapping")}}get_editor_position_from_index(e,t){let n=e.slice(0,t),o=0,s=-1,l=-1;for(;(l=n.indexOf(`
|
|
`,l+1))!==-1;o++,s=l);s+=1;let p=e.slice(s,t).length;return{line:o,ch:p}}replace_and_get_cursor_positions(e){let t=[],n,o=new RegExp("<%\\s*tp.file.cursor\\((?<order>[0-9]*)\\)\\s*%>","g");for(;(n=o.exec(e))!=null;)t.push(n);if(t.length===0)return{};t.sort((A,g)=>Number(A.groups&&A.groups.order)-Number(g.groups&&g.groups.order));let s=t[0][0];t=t.filter(A=>A[0]===s);let l=[],p=0;for(let A of t){let g=A.index-p;if(l.push(this.get_editor_position_from_index(e,g)),e=e.replace(new RegExp(Qn(A[0])),""),p+=A[0].length,A[1]==="")break}return{new_content:e,positions:l}}set_cursor_location(e){let t=app.workspace.activeEditor;if(!t||!t.editor)return;let n=t.editor,o=[];for(let l of e)o.push({from:l});let s={selections:o};n.transaction(s)}};var _i=V(require("obsidian"));var Yo={config:{name:"config",description:`This module exposes Templater's running configuration.
|
|
|
|
This is mostly useful when writing scripts requiring some context information.
|
|
`,functions:{template_file:{name:"template_file",description:"The `TFile` object representing the template file.",definition:"tp.config.template_file"},target_file:{name:"target_file",description:"The `TFile` object representing the target file where the template will be inserted.",definition:"tp.config.target_file"},run_mode:{name:"run_mode",description:"The `RunMode`, representing the way Templater was launched (Create new from template, Append to active file, ...).",definition:"tp.config.run_mode"},active_file:{name:"active_file",description:"The active file (if existing) when launching Templater.",definition:"tp.config.active_file?"}}},date:{name:"date",description:"This module contains every internal function related to dates.",functions:{now:{name:"now",description:"Retrieves the date.",definition:'tp.date.now(format: string = "YYYY-MM-DD", offset?: number\u23AEstring, reference?: string, reference_format?: string)',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'},{name:"offset",description:"Duration to offset the date from. If a number is provided, duration will be added to the date in days. You can also specify the offset as a string using the ISO 8601 format."},{name:"reference",description:"The date referential, e.g. set this to the note's title."},{name:"reference_format",description:"The format for the reference date. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/)."}],examples:[{name:"Date now",example:"<% tp.date.now() %>"},{name:"Date now with format",example:'<% tp.date.now("Do MMMM YYYY") %>'},{name:"Last week",example:'<% tp.date.now("YYYY-MM-DD", -7) %>'},{name:"Next week",example:'<% tp.date.now("YYYY-MM-DD", 7) %>'},{name:"Last month",example:'<% tp.date.now("YYYY-MM-DD", "P-1M") %>'},{name:"Next year",example:'<% tp.date.now("YYYY-MM-DD", "P1Y") %>'},{name:"File's title date + 1 day (tomorrow)",example:'<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>'},{name:"File's title date - 1 day (yesterday)",example:'<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>'}]},tomorrow:{name:"tomorrow",description:"Retrieves tomorrow's date.",definition:'tp.date.tomorrow(format: string = "YYYY-MM-DD")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"Date tomorrow",example:"<% tp.date.tomorrow() %>"},{name:"Date tomorrow with format",example:'<% tp.date.tomorrow("Do MMMM YYYY") %>'}]},yesterday:{name:"yesterday",description:"Retrieves yesterday's date.",definition:'tp.date.yesterday(format: string = "YYYY-MM-DD")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"Date yesterday",example:"<% tp.date.yesterday() %>"},{name:"Date yesterday with format",example:'<% tp.date.yesterday("Do MMMM YYYY") %>'}]},weekday:{name:"weekday",description:"",definition:'tp.date.weekday(format: string = "YYYY-MM-DD", weekday: number, reference?: string, reference_format?: string)',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'},{name:"weekday",description:"Week day number. If the locale assigns Monday as the first day of the week, `0` will be Monday, `-7` will be last week's day."},{name:"reference",description:"The date referential, e.g. set this to the note's title."},{name:"reference_format",description:"The format for the reference date. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/)."}],examples:[{name:"This week's Monday",example:'<% tp.date.weekday("YYYY-MM-DD", 0) %>'},{name:"Next Monday",example:'<% tp.date.weekday("YYYY-MM-DD", 7) %>'},{name:"File's title Monday",example:'<% tp.date.weekday("YYYY-MM-DD", 0, tp.file.title, "YYYY-MM-DD") %>'},{name:"File's title previous Monday",example:'<% tp.date.weekday("YYYY-MM-DD", -7, tp.file.title, "YYYY-MM-DD") %>'}]}},momentjs:{examples:[{name:"Date now",example:'<% moment(tp.file.title, "YYYY-MM-DD").format("YYYY-MM-DD") %>'},{name:"Get start of month from note title",example:'<% moment(tp.file.title, "YYYY-MM-DD").startOf("month").format("YYYY-MM-DD") %>'},{name:"Get end of month from note title",example:'<% moment(tp.file.title, "YYYY-MM-DD").endOf("month").format("YYYY-MM-DD") %>'}]}},file:{name:"file",description:"This module contains every internal function related to files.",functions:{content:{name:"content",description:"The string contents of the file at the time that Templater was executed. Manipulating this string will *not* update the current file.",definition:"tp.file.content",examples:[{name:"Retrieve file content",example:"<% tp.file.content %>"}]},create_new:{name:"create_new",description:"Creates a new file using a specified template or with a specified content.",definition:"tp.file.create_new(template: TFile \u23AE string, filename?: string, open_new: boolean = false, folder?: TFolder | string)",args:[{name:"template",description:"Either the template used for the new file content, or the file content as a string. If it is the template to use, you retrieve it with `tp.file.find_tfile(TEMPLATENAME)`."},{name:"filename",description:'The filename of the new file, defaults to "Untitled".'},{name:"open_new",description:"Whether to open or not the newly created file. Warning: if you use this option, since commands are executed asynchronously, the file can be opened first and then other commands are appended to that new file and not the previous file."},{name:"folder",description:'The folder to put the new file in, defaults to Obsidian\'s default location. If you want the file to appear in a different folder, specify it with `"PATH/TO/FOLDERNAME"` or `app.vault.getAbstractFileByPath("PATH/TO/FOLDERNAME")`.'}],examples:[{name:"File creation",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename") %>'},{name:"File creation with template",example:'<%* await tp.file.create_new(tp.file.find_tfile("MyTemplate"), "MyFilename") %>'},{name:"File creation and open created note",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename", true) %>'},{name:"File creation in current folder",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename", false, tp.file.folder(true)) %>'},{name:"File creation in specified folder with string path",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename", false, "Path/To/MyFolder") %>'},{name:"File creation in specified folder with TFolder",example:'<%* await tp.file.create_new("MyFileContent", "MyFilename", false, app.vault.getAbstractFileByPath("MyFolder")) %>'},{name:"File creation and append link to current note",example:'[[<% (await tp.file.create_new("MyFileContent", "MyFilename")).basename %>]]'}]},creation_date:{name:"creation_date",description:"Retrieves the file's creation date.",definition:'tp.file.creation_date(format: string = "YYYY-MM-DD HH:mm")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD HH:mm"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"File creation date",example:"<% tp.file.creation_date() %>"},{name:"File creation date with format",example:'<% tp.file.creation_date("dddd Do MMMM YYYY HH:mm") %>'}]},cursor:{name:"cursor",description:`Sets the cursor to this location after the template has been inserted.
|
|
|
|
You can navigate between the different cursors using the configured hotkey in Obsidian settings.
|
|
`,definition:"tp.file.cursor(order?: number)",args:[{name:"order",description:`The order of the different cursors jump, e.g. it will jump from 1 to 2 to 3, and so on.
|
|
If you specify multiple tp.file.cursor with the same order, the editor will switch to multi-cursor.
|
|
`}],examples:[{name:"File cursor",example:"<% tp.file.cursor() %>"},{name:"File multi-cursor",example:"<% tp.file.cursor(1) %>Content<% tp.file.cursor(1) %>"}]},cursor_append:{name:"cursor_append",description:"Appends some content after the active cursor in the file.",definition:"tp.file.cursor_append(content: string)",args:[{name:"content",description:"The content to append after the active cursor."}],examples:[{name:"File cursor append",example:'<% tp.file.cursor_append("Some text") %>'}]},exists:{name:"exists",description:"Check to see if a file exists by it's file path. The full path to the file, relative to the Vault and containing the extension, must be provided.",definition:"tp.file.exists(filepath: string)",args:[{name:"filepath",description:"The full file path of the file we want to check existence for."}],examples:[{name:"File existence",example:'<% await tp.file.exists("MyFolder/MyFile.md") %>'},{name:"File existence of current file",example:'<% await tp.file.exists(tp.file.folder(true) + "/" + tp.file.title + ".md") %>'}]},find_tfile:{name:"find_tfile",description:"Search for a file and returns its `TFile` instance.",definition:"tp.file.find_tfile(filename: string)",args:[{name:"filename",description:"The filename we want to search and resolve as a `TFile`."}],examples:[{name:"File find TFile",example:'<% tp.file.find_tfile("MyFile").basename %>'}]},folder:{name:"folder",description:"Retrieves the file's folder name.",definition:"tp.file.folder(relative: boolean = false)",args:[{name:"relative",description:"If set to `true`, appends the vault relative path to the folder name. If `false`, only retrieves name of folder. Defaults to `false`."}],examples:[{name:"File folder (Folder)",example:"<% tp.file.folder() %>"},{name:"File folder with relative path (Path/To/Folder)",example:"<% tp.file.folder(true) %>"}]},include:{name:"include",description:"Includes the file's link content. Templates in the included content will be resolved.",definition:"tp.file.include(include_link: string \u23AE TFile)",args:[{name:"include_link",description:'The link to the file to include, e.g. `"[[MyFile]]"`, or a TFile object. Also supports sections or blocks inclusions.'}],examples:[{name:"File include",example:'<% tp.file.include("[[Template1]]") %>'},{name:"File include TFile",example:'<% tp.file.include(tp.file.find_tfile("MyFile")) %>'},{name:"File include section",example:'<% tp.file.include("[[MyFile#Section1]]") %>'},{name:"File include block",example:'<% tp.file.include("[[MyFile#^block1]]") %>'}]},last_modified_date:{name:"last_modified_date",description:"Retrieves the file's last modification date.",definition:'tp.file.last_modified_date(format: string = "YYYY-MM-DD HH:mm")',args:[{name:"format",description:'The format for the date. Defaults to `"YYYY-MM-DD HH:mm"`. Refer to [format reference](https://momentjs.com/docs/#/displaying/format/).'}],examples:[{name:"File last modified date",example:"<% tp.file.last_modified_date() %>"},{name:"File last modified date with format",example:'<% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm") %>'}]},move:{name:"move",description:"Moves the file to the desired vault location.",definition:"tp.file.move(new_path: string, file_to_move?: TFile)",args:[{name:"new_path",description:'The new vault relative path of the file, without the file extension. Note: the new path needs to include the folder and the filename, e.g. `"/Notes/MyNote"`.'},{name:"file_to_move",description:"The file to move, defaults to the current file."}],examples:[{name:"File move",example:'<% await tp.file.move("/A/B/" + tp.file.title) %>'},{name:"File move and rename",example:'<% await tp.file.move("/A/B/NewTitle") %>'}]},path:{name:"path",description:"Retrieves the file's absolute path on the system.",definition:"tp.file.path(relative: boolean = false)",args:[{name:"relative",description:"If set to `true`, only retrieves the vault's relative path."}],examples:[{name:"File path",example:"<% tp.file.path() %>"},{name:"File relative path (relative to vault root)",example:"<% tp.file.path(true) %>"}]},rename:{name:"rename",description:"Renames the file (keeps the same file extension).",definition:"tp.file.rename(new_title: string)",args:[{name:"new_title",description:"The new file title."}],examples:[{name:"File rename",example:'<% await tp.file.rename("MyNewName") %>'},{name:"File append a 2 to the file name",example:'<% await tp.file.rename(tp.file.title + "2") %>'}]},selection:{name:"selection",description:"Retrieves the active file's text selection.",definition:"tp.file.selection()",examples:[{name:"File selection",example:"<% tp.file.selection() %>"}]},tags:{name:"tags",description:"Retrieves the file's tags (array of string).",definition:"tp.file.tags",examples:[{name:"File tags",example:"<% tp.file.tags %>"}]},title:{name:"title",definition:"tp.file.title",description:"Retrieves the file's title.",examples:[{name:"File title",example:"<% tp.file.title %>"},{name:"Strip the Zettelkasten ID of title (if space separated)",example:'<% tp.file.title.split(" ")[1] %>'}]}}},frontmatter:{name:"frontmatter",description:"This modules exposes all the frontmatter variables of a file as variables."},hooks:{name:"hooks",description:"This module exposes hooks that allow you to execute code when a Templater event occurs.",functions:{on_all_templates_executed:{name:"on_all_templates_executed",description:"Hooks into when all actively running templates have finished executing. Most of the time this will be a single template, unless you are using `tp.file.include` or `tp.file.create_new`.\n\nMultiple invokations of this method will have their callback functions run in parallel.",definition:"tp.hooks.on_all_templates_executed(callback_function: () => any)",args:[{name:"callback_function",description:"Callback function that will be executed when all actively running templates have finished executing."}]}}},obsidian:{name:"obsidian",description:"This module exposes all the functions and classes from the Obsidian API."},system:{name:"system",description:"This module contains system related functions.",functions:{clipboard:{name:"clipboard",description:"Retrieves the clipboard's content.",definition:"tp.system.clipboard()",examples:[{name:"Clipboard",example:"<% tp.system.clipboard() %>"}]},prompt:{name:"prompt",description:"Spawns a prompt modal and returns the user's input.",definition:"tp.system.prompt(prompt_text?: string, default_value?: string, throw_on_cancel: boolean = false, multiline?: boolean = false)",args:[{name:"prompt_text",description:"Text placed above the input field."},{name:"default_value",description:"A default value for the input field."},{name:"throw_on_cancel",description:"Throws an error if the prompt is canceled, instead of returning a `null` value."},{name:"multiline",description:"If set to `true`, the input field will be a multiline textarea. Defaults to `false`."}],examples:[{name:"Prompt",example:'<% tp.system.prompt("Please enter a value") %>'},{name:"Prompt with default value",example:'<% tp.system.prompt("What is your mood today?", "happy") %>'},{name:"Multiline prompt",example:'<% tp.system.prompt("What is your mood today?", null, false, true) %>'}]},suggester:{name:"suggester",description:"Spawns a suggester prompt and returns the user's chosen item.",definition:'tp.system.suggester(text_items: string[] \u23AE ((item: T) => string), items: T[], throw_on_cancel: boolean = false, placeholder: string = "", limit?: number = undefined)',args:[{name:"text_items",description:"Array of strings representing the text that will be displayed for each item in the suggester prompt. This can also be a function that maps an item to its text representation."},{name:"items",description:"Array containing the values of each item in the correct order."},{name:"throw_on_cancel",description:"Throws an error if the prompt is canceled, instead of returning a `null` value."},{name:"placeholder",description:"Placeholder string of the prompt."},{name:"limit",description:"Limit the number of items rendered at once (useful to improve performance when displaying large lists)."}],examples:[{name:"Suggester",example:'<% tp.system.suggester(["Happy", "Sad", "Confused"], ["Happy", "Sad", "Confused"]) %>'},{name:"Suggester with mapping function (same as above example)",example:'<% tp.system.suggester((item) => item, ["Happy", "Sad", "Confused"]) %>'},{name:"Suggester for files",example:"[[<% (await tp.system.suggester((item) => item.basename, app.vault.getMarkdownFiles())).basename %>]]"},{name:"Suggester for tags",example:'<% tp.system.suggester(item => item, Object.keys(app.metadataCache.getTags()).map(x => x.replace("#", ""))) %>'}]}}},web:{name:"web",description:"This modules contains every internal function related to the web (making web requests).",functions:{daily_quote:{name:"daily_quote",description:"Retrieves and parses the daily quote from the API `https://api.quotable.io` as a callout.",definition:"tp.web.daily_quote()",examples:[{name:"Daily quote",example:"<% tp.web.daily_quote() %>"}]},random_picture:{name:"random_picture",description:"Gets a random image from `https://unsplash.com/`.",definition:"tp.web.random_picture(size?: string, query?: string, include_size?: boolean)",args:[{name:"size",description:"Image size in the format `<width>x<height>`."},{name:"query",description:"Limits selection to photos matching a search term. Multiple search terms can be passed separated by a comma."},{name:"include_size",description:"Optional argument to include the specified size in the image link markdown. Defaults to false."}],examples:[{name:"Random picture",example:"<% tp.web.random_picture() %>"},{name:"Random picture with size",example:'<% tp.web.random_picture("200x200") %>'},{name:"Random picture with size and query",example:'<% tp.web.random_picture("200x200", "landscape,water") %>'}]},request:{name:"request",description:"Makes a HTTP request to the specified URL. Optionally, you can specify a path to extract specific data from the response.",definition:"tp.web.request(url: string, path?: string)",args:[{name:"url",description:"The URL to which the HTTP request will be made."},{name:"path",description:"A path within the response JSON to extract specific data."}],examples:[{name:"Simple request",example:'<% tp.web.request("https://jsonplaceholder.typicode.com/todos/1") %>'},{name:"Request with path",example:'<% tp.web.request("https://jsonplaceholder.typicode.com/todos", "0.title") %>'}]}}}},gi={tp:Yo};var Lo=["config","date","file","frontmatter","hooks","obsidian","system","user","web"],Ho=new Set(Lo);function hi(r){return typeof r=="string"&&Ho.has(r)}function ji(r){return!!r.definition}var ln=class{constructor(e){this.settings=e;this.documentation=gi}get_all_modules_documentation(){return Object.values(this.documentation.tp)}get_all_functions_documentation(e){if(e==="user"){if(!this.settings||!this.settings.user_scripts_folder)return;let t=me(()=>Ie(this.settings.user_scripts_folder),"User Scripts folder doesn't exist");return!t||t.length===0?void 0:t.reduce((n,o)=>o.extension!=="js"?n:[...n,{name:o.basename,definition:"",description:"",example:""}],[])}if(!!this.documentation.tp[e].functions)return Object.values(this.documentation.tp[e].functions)}get_module_documentation(e){return this.documentation.tp[e]}get_function_documentation(e,t){return this.documentation.tp[e].functions[t]}get_argument_documentation(e,t,n){let o=this.get_function_documentation(e,t);return!o||!o.args?null:o.args[n]}};var cn=class extends _i.EditorSuggest{constructor(e){super(app);this.tp_keyword_regex=/tp\.(?<module>[a-z]*)?(?<fn_trigger>\.(?<fn>[a-z_]*)?)?$/;this.documentation=new ln(e)}onTrigger(e,t,n){let o=t.getRange({line:e.line,ch:0},{line:e.line,ch:e.ch}),s=this.tp_keyword_regex.exec(o);if(!s)return null;let l,p=s.groups&&s.groups.module||"";if(this.module_name=p,s.groups&&s.groups.fn_trigger){if(p==""||!hi(p))return null;this.function_trigger=!0,this.function_name=s.groups.fn||"",l=this.function_name}else this.function_trigger=!1,l=this.module_name;let A={start:{line:e.line,ch:e.ch-l.length},end:{line:e.line,ch:e.ch},query:l};return this.latest_trigger_info=A,A}getSuggestions(e){let t;return this.module_name&&this.function_trigger?t=this.documentation.get_all_functions_documentation(this.module_name):t=this.documentation.get_all_modules_documentation(),t?t.filter(n=>n.name.startsWith(e.query)):[]}renderSuggestion(e,t){t.createEl("b",{text:e.name}),t.createEl("br"),this.function_trigger&&ji(e)&&t.createEl("code",{text:e.definition}),e.description&&t.createEl("div",{text:e.description})}selectSuggestion(e,t){let n=app.workspace.activeEditor;if(!(!n||!n.editor)&&(n.editor.replaceRange(e.name,this.latest_trigger_info.start,this.latest_trigger_info.end),this.latest_trigger_info.start.ch==this.latest_trigger_info.end.ch)){let o=this.latest_trigger_info.end;o.ch+=e.name.length,n.editor.setCursor(o)}}};(function(r){r(window.CodeMirror)})(function(r){"use strict";r.defineMode("javascript",function(e,t){var n=e.indentUnit,o=t.statementIndent,s=t.jsonld,l=t.json||s,p=t.trackScope!==!1,A=t.typescript,g=t.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function i(ce){return{type:ce,style:"keyword"}}var a=i("keyword a"),u=i("keyword b"),d=i("keyword c"),E=i("keyword d"),B=i("operator"),$={type:"atom",style:"atom"};return{if:i("if"),while:a,with:a,else:u,do:u,try:u,finally:u,return:E,break:E,continue:E,new:i("new"),delete:d,void:d,throw:d,debugger:i("debugger"),var:i("var"),const:i("var"),let:i("var"),function:i("function"),catch:i("catch"),for:i("for"),switch:i("switch"),case:i("case"),default:i("default"),in:B,typeof:B,instanceof:B,true:$,false:$,null:$,undefined:$,NaN:$,Infinity:$,this:i("this"),class:i("class"),super:i("atom"),yield:d,export:i("export"),import:i("import"),extends:d,await:d}}(),b=/[+\-*&%=<>!?|~^@]/,k=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function x(i){for(var a=!1,u,d=!1;(u=i.next())!=null;){if(!a){if(u=="/"&&!d)return;u=="["?d=!0:d&&u=="]"&&(d=!1)}a=!a&&u=="\\"}}var O,M;function j(i,a,u){return O=i,M=u,a}function P(i,a){var u=i.next();if(u=='"'||u=="'")return a.tokenize=L(u),a.tokenize(i,a);if(u=="."&&i.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return j("number","number");if(u=="."&&i.match(".."))return j("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(u))return j(u);if(u=="="&&i.eat(">"))return j("=>","operator");if(u=="0"&&i.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return j("number","number");if(/\d/.test(u))return i.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),j("number","number");if(u=="/")return i.eat("*")?(a.tokenize=N,N(i,a)):i.eat("/")?(i.skipToEnd(),j("comment","comment")):xn(i,a,1)?(x(i),i.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),j("regexp","string-2")):(i.eat("="),j("operator","operator",i.current()));if(u=="`")return a.tokenize=T,T(i,a);if(u=="#"&&i.peek()=="!")return i.skipToEnd(),j("meta","meta");if(u=="#"&&i.eatWhile(g))return j("variable","property");if(u=="<"&&i.match("!--")||u=="-"&&i.match("->")&&!/\S/.test(i.string.slice(0,i.start)))return i.skipToEnd(),j("comment","comment");if(b.test(u))return(u!=">"||!a.lexical||a.lexical.type!=">")&&(i.eat("=")?(u=="!"||u=="=")&&i.eat("="):/[<>*+\-|&?]/.test(u)&&(i.eat(u),u==">"&&i.eat(u))),u=="?"&&i.eat(".")?j("."):j("operator","operator",i.current());if(g.test(u)){i.eatWhile(g);var d=i.current();if(a.lastType!="."){if(f.propertyIsEnumerable(d)){var E=f[d];return j(E.type,E.style,d)}if(d=="async"&&i.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return j("async","keyword",d)}return j("variable","variable",d)}}function L(i){return function(a,u){var d=!1,E;if(s&&a.peek()=="@"&&a.match(k))return u.tokenize=P,j("jsonld-keyword","meta");for(;(E=a.next())!=null&&!(E==i&&!d);)d=!d&&E=="\\";return d||(u.tokenize=P),j("string","string")}}function N(i,a){for(var u=!1,d;d=i.next();){if(d=="/"&&u){a.tokenize=P;break}u=d=="*"}return j("comment","comment")}function T(i,a){for(var u=!1,d;(d=i.next())!=null;){if(!u&&(d=="`"||d=="$"&&i.eat("{"))){a.tokenize=P;break}u=!u&&d=="\\"}return j("quasi","string-2",i.current())}var S="([{}])";function q(i,a){a.fatArrowAt&&(a.fatArrowAt=null);var u=i.string.indexOf("=>",i.start);if(!(u<0)){if(A){var d=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(i.string.slice(i.start,u));d&&(u=d.index)}for(var E=0,B=!1,$=u-1;$>=0;--$){var ce=i.string.charAt($),Be=S.indexOf(ce);if(Be>=0&&Be<3){if(!E){++$;break}if(--E==0){ce=="("&&(B=!0);break}}else if(Be>=3&&Be<6)++E;else if(g.test(ce))B=!0;else if(/["'\/`]/.test(ce))for(;;--$){if($==0)return;var Ni=i.string.charAt($-1);if(Ni==ce&&i.string.charAt($-2)!="\\"){$--;break}}else if(B&&!E){++$;break}}B&&!E&&(a.fatArrowAt=$)}}var R={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function z(i,a,u,d,E,B){this.indented=i,this.column=a,this.type=u,this.prev=E,this.info=B,d!=null&&(this.align=d)}function J(i,a){if(!p)return!1;for(var u=i.localVars;u;u=u.next)if(u.name==a)return!0;for(var d=i.context;d;d=d.prev)for(var u=d.vars;u;u=u.next)if(u.name==a)return!0}function G(i,a,u,d,E){var B=i.cc;for(m.state=i,m.stream=E,m.marked=null,m.cc=B,m.style=a,i.lexical.hasOwnProperty("align")||(i.lexical.align=!0);;){var $=B.length?B.pop():l?C:H;if($(u,d)){for(;B.length&&B[B.length-1].lex;)B.pop()();return m.marked?m.marked:u=="variable"&&J(i,d)?"variable-2":a}}}var m={state:null,column:null,marked:null,cc:null};function h(){for(var i=arguments.length-1;i>=0;i--)m.cc.push(arguments[i])}function c(){return h.apply(null,arguments),!0}function we(i,a){for(var u=a;u;u=u.next)if(u.name==i)return!0;return!1}function ue(i){var a=m.state;if(m.marked="def",!!p){if(a.context){if(a.lexical.info=="var"&&a.context&&a.context.block){var u=oe(i,a.context);if(u!=null){a.context=u;return}}else if(!we(i,a.localVars)){a.localVars=new fe(i,a.localVars);return}}t.globalVars&&!we(i,a.globalVars)&&(a.globalVars=new fe(i,a.globalVars))}}function oe(i,a){if(a)if(a.block){var u=oe(i,a.prev);return u?u==a.prev?a:new Fe(u,a.vars,!0):null}else return we(i,a.vars)?a:new Fe(a.prev,new fe(i,a.vars),!1);else return null}function se(i){return i=="public"||i=="private"||i=="protected"||i=="abstract"||i=="readonly"}function Fe(i,a,u){this.prev=i,this.vars=a,this.block=u}function fe(i,a){this.name=i,this.next=a}var gt=new fe("this",new fe("arguments",null));function Me(){m.state.context=new Fe(m.state.context,m.state.localVars,!1),m.state.localVars=gt}function Ne(){m.state.context=new Fe(m.state.context,m.state.localVars,!0),m.state.localVars=null}function ae(){m.state.localVars=m.state.context.vars,m.state.context=m.state.context.prev}ae.lex=!0;function y(i,a){var u=function(){var d=m.state,E=d.indented;if(d.lexical.type=="stat")E=d.lexical.indented;else for(var B=d.lexical;B&&B.type==")"&&B.align;B=B.prev)E=B.indented;d.lexical=new z(E,m.stream.column(),i,null,d.lexical,a)};return u.lex=!0,u}function _(){var i=m.state;i.lexical.prev&&(i.lexical.type==")"&&(i.indented=i.lexical.indented),i.lexical=i.lexical.prev)}_.lex=!0;function F(i){function a(u){return u==i?c():i==";"||u=="}"||u==")"||u=="]"?h():c(a)}return a}function H(i,a){return i=="var"?c(y("vardef",a),br,F(";"),_):i=="keyword a"?c(y("form"),nt,H,_):i=="keyword b"?c(y("form"),H,_):i=="keyword d"?m.stream.match(/^\s*$/,!1)?c():c(y("stat"),Ye,F(";"),_):i=="debugger"?c(F(";")):i=="{"?c(y("}"),Ne,er,_,ae):i==";"?c():i=="if"?(m.state.lexical.info=="else"&&m.state.cc[m.state.cc.length-1]==_&&m.state.cc.pop()(),c(y("form"),nt,H,_,hn)):i=="function"?c(Qe):i=="for"?c(y("form"),Ne,jn,H,ae,_):i=="class"||A&&a=="interface"?(m.marked="keyword",c(y("form",i=="class"?i:a),vn,_)):i=="variable"?A&&a=="declare"?(m.marked="keyword",c(H)):A&&(a=="module"||a=="enum"||a=="type")&&m.stream.match(/^\s*\w/,!1)?(m.marked="keyword",a=="enum"?c(yn):a=="type"?c(_n,F("operator"),D,F(";")):c(y("form"),be,F("{"),y("}"),er,_,_)):A&&a=="namespace"?(m.marked="keyword",c(y("form"),C,H,_)):A&&a=="abstract"?(m.marked="keyword",c(H)):c(y("stat"),Qt):i=="switch"?c(y("form"),nt,F("{"),y("}","switch"),Ne,er,_,_,ae):i=="case"?c(C,F(":")):i=="default"?c(F(":")):i=="catch"?c(y("form"),Me,Re,H,_,ae):i=="export"?c(y("stat"),qi,_):i=="import"?c(y("stat"),Ii,_):i=="async"?c(H):a=="@"?c(C,H):h(y("stat"),C,F(";"),_)}function Re(i){if(i=="(")return c(st,F(")"))}function C(i,a){return Kt(i,a,!1)}function le(i,a){return Kt(i,a,!0)}function nt(i){return i!="("?h():c(y(")"),Ye,F(")"),_)}function Kt(i,a,u){if(m.state.fatArrowAt==m.stream.start){var d=u?Jt:zt;if(i=="(")return c(Me,y(")"),X(st,")"),_,F("=>"),d,ae);if(i=="variable")return h(Me,be,F("=>"),d,ae)}var E=u?Je:Le;return R.hasOwnProperty(i)?c(E):i=="function"?c(Qe,E):i=="class"||A&&a=="interface"?(m.marked="keyword",c(y("form"),Oi,_)):i=="keyword c"||i=="async"?c(u?le:C):i=="("?c(y(")"),Ye,F(")"),_,E):i=="operator"||i=="spread"?c(u?le:C):i=="["?c(y("]"),Ci,_,E):i=="{"?Pt(ot,"}",null,E):i=="quasi"?h(it,E):i=="new"?c(He(u)):c()}function Ye(i){return i.match(/[;\}\)\],]/)?h():h(C)}function Le(i,a){return i==","?c(Ye):Je(i,a,!1)}function Je(i,a,u){var d=u==!1?Le:Je,E=u==!1?C:le;if(i=="=>")return c(Me,u?Jt:zt,ae);if(i=="operator")return/\+\+|--/.test(a)||A&&a=="!"?c(d):A&&a=="<"&&m.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(y(">"),X(D,">"),_,d):a=="?"?c(C,F(":"),E):c(E);if(i=="quasi")return h(it,d);if(i!=";"){if(i=="(")return Pt(le,")","call",d);if(i==".")return c(Mt,d);if(i=="[")return c(y("]"),Ye,F("]"),_,d);if(A&&a=="as")return m.marked="keyword",c(D,d);if(i=="regexp")return m.state.lastType=m.marked="operator",m.stream.backUp(m.stream.pos-m.stream.start-1),c(E)}}function it(i,a){return i!="quasi"?h():a.slice(a.length-2)!="${"?c(it):c(Ye,Ut)}function Ut(i){if(i=="}")return m.marked="string-2",m.state.tokenize=T,c(it)}function zt(i){return q(m.stream,m.state),h(i=="{"?H:C)}function Jt(i){return q(m.stream,m.state),h(i=="{"?H:le)}function He(i){return function(a){return a=="."?c(i?Xt:ht):a=="variable"&&A?c(Ti,i?Je:Le):h(i?le:C)}}function ht(i,a){if(a=="target")return m.marked="keyword",c(Le)}function Xt(i,a){if(a=="target")return m.marked="keyword",c(Je)}function Qt(i){return i==":"?c(_,H):h(Le,F(";"),_)}function Mt(i){if(i=="variable")return m.marked="property",c()}function ot(i,a){if(i=="async")return m.marked="property",c(ot);if(i=="variable"||m.style=="keyword"){if(m.marked="property",a=="get"||a=="set")return c(Zt);var u;return A&&m.state.fatArrowAt==m.stream.start&&(u=m.stream.match(/^\s*:\s*/,!1))&&(m.state.fatArrowAt=m.stream.pos+u[0].length),c(Pe)}else{if(i=="number"||i=="string")return m.marked=s?"property":m.style+" property",c(Pe);if(i=="jsonld-keyword")return c(Pe);if(A&&se(a))return m.marked="keyword",c(ot);if(i=="[")return c(C,jt,F("]"),Pe);if(i=="spread")return c(le,Pe);if(a=="*")return m.marked="keyword",c(ot);if(i==":")return h(Pe)}}function Zt(i){return i!="variable"?h(Pe):(m.marked="property",c(Qe))}function Pe(i){if(i==":")return c(le);if(i=="(")return h(Qe)}function X(i,a,u){function d(E,B){if(u?u.indexOf(E)>-1:E==","){var $=m.state.lexical;return $.info=="call"&&($.pos=($.pos||0)+1),c(function(ce,Be){return ce==a||Be==a?h():h(i)},d)}return E==a||B==a?c():u&&u.indexOf(";")>-1?h(i):c(F(a))}return function(E,B){return E==a||B==a?c():h(i,d)}}function Pt(i,a,u){for(var d=3;d<arguments.length;d++)m.cc.push(arguments[d]);return c(y(a,u),X(i,a),_)}function er(i){return i=="}"?c():h(H,er)}function jt(i,a){if(A){if(i==":")return c(D);if(a=="?")return c(jt)}}function yi(i,a){if(A&&(i==":"||a=="in"))return c(D)}function dn(i){if(A&&i==":")return m.stream.match(/^\s*\w+\s+is\b/,!1)?c(C,xi,D):c(D)}function xi(i,a){if(a=="is")return m.marked="keyword",c()}function D(i,a){if(a=="keyof"||a=="typeof"||a=="infer"||a=="readonly")return m.marked="keyword",c(a=="typeof"?le:D);if(i=="variable"||a=="void")return m.marked="type",c(Ge);if(a=="|"||a=="&")return c(D);if(i=="string"||i=="number"||i=="atom")return c(Ge);if(i=="[")return c(y("]"),X(D,"]",","),_,Ge);if(i=="{")return c(y("}"),_r,_,Ge);if(i=="(")return c(X(wr,")"),Ei,Ge);if(i=="<")return c(X(D,">"),D);if(i=="quasi")return h(vr,Ge)}function Ei(i){if(i=="=>")return c(D)}function _r(i){return i.match(/[\}\)\]]/)?c():i==","||i==";"?c(_r):h(Bt,_r)}function Bt(i,a){if(i=="variable"||m.style=="keyword")return m.marked="property",c(Bt);if(a=="?"||i=="number"||i=="string")return c(Bt);if(i==":")return c(D);if(i=="[")return c(F("variable"),yi,F("]"),Bt);if(i=="(")return h(vt,Bt);if(!i.match(/[;\}\)\],]/))return c()}function vr(i,a){return i!="quasi"?h():a.slice(a.length-2)!="${"?c(vr):c(D,ki)}function ki(i){if(i=="}")return m.marked="string-2",m.state.tokenize=T,c(vr)}function wr(i,a){return i=="variable"&&m.stream.match(/^\s*[?:]/,!1)||a=="?"?c(wr):i==":"?c(D):i=="spread"?c(wr):h(D)}function Ge(i,a){if(a=="<")return c(y(">"),X(D,">"),_,Ge);if(a=="|"||i=="."||a=="&")return c(D);if(i=="[")return c(D,F("]"),Ge);if(a=="extends"||a=="implements")return m.marked="keyword",c(D);if(a=="?")return c(D,F(":"),D)}function Ti(i,a){if(a=="<")return c(y(">"),X(D,">"),_,Ge)}function tr(){return h(D,Fi)}function Fi(i,a){if(a=="=")return c(D)}function br(i,a){return a=="enum"?(m.marked="keyword",c(yn)):h(be,jt,Xe,Pi)}function be(i,a){if(A&&se(a))return m.marked="keyword",c(be);if(i=="variable")return ue(a),c();if(i=="spread")return c(be);if(i=="[")return Pt(Mi,"]");if(i=="{")return Pt(gn,"}")}function gn(i,a){return i=="variable"&&!m.stream.match(/^\s*:/,!1)?(ue(a),c(Xe)):(i=="variable"&&(m.marked="property"),i=="spread"?c(be):i=="}"?h():i=="["?c(C,F("]"),F(":"),gn):c(F(":"),be,Xe))}function Mi(){return h(be,Xe)}function Xe(i,a){if(a=="=")return c(le)}function Pi(i){if(i==",")return c(br)}function hn(i,a){if(i=="keyword b"&&a=="else")return c(y("form","else"),H,_)}function jn(i,a){if(a=="await")return c(jn);if(i=="(")return c(y(")"),Bi,_)}function Bi(i){return i=="var"?c(br,_t):i=="variable"?c(_t):h(_t)}function _t(i,a){return i==")"?c():i==";"?c(_t):a=="in"||a=="of"?(m.marked="keyword",c(C,_t)):h(C,_t)}function Qe(i,a){if(a=="*")return m.marked="keyword",c(Qe);if(i=="variable")return ue(a),c(Qe);if(i=="(")return c(Me,y(")"),X(st,")"),_,dn,H,ae);if(A&&a=="<")return c(y(">"),X(tr,">"),_,Qe)}function vt(i,a){if(a=="*")return m.marked="keyword",c(vt);if(i=="variable")return ue(a),c(vt);if(i=="(")return c(Me,y(")"),X(st,")"),_,dn,ae);if(A&&a=="<")return c(y(">"),X(tr,">"),_,vt)}function _n(i,a){if(i=="keyword"||i=="variable")return m.marked="type",c(_n);if(a=="<")return c(y(">"),X(tr,">"),_)}function st(i,a){return a=="@"&&c(C,st),i=="spread"?c(st):A&&se(a)?(m.marked="keyword",c(st)):A&&i=="this"?c(jt,Xe):h(be,jt,Xe)}function Oi(i,a){return i=="variable"?vn(i,a):rr(i,a)}function vn(i,a){if(i=="variable")return ue(a),c(rr)}function rr(i,a){if(a=="<")return c(y(">"),X(tr,">"),_,rr);if(a=="extends"||a=="implements"||A&&i==",")return a=="implements"&&(m.marked="keyword"),c(A?D:C,rr);if(i=="{")return c(y("}"),Ve,_)}function Ve(i,a){if(i=="async"||i=="variable"&&(a=="static"||a=="get"||a=="set"||A&&se(a))&&m.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return m.marked="keyword",c(Ve);if(i=="variable"||m.style=="keyword")return m.marked="property",c(Ot,Ve);if(i=="number"||i=="string")return c(Ot,Ve);if(i=="[")return c(C,jt,F("]"),Ot,Ve);if(a=="*")return m.marked="keyword",c(Ve);if(A&&i=="(")return h(vt,Ve);if(i==";"||i==",")return c(Ve);if(i=="}")return c();if(a=="@")return c(C,Ve)}function Ot(i,a){if(a=="!"||a=="?")return c(Ot);if(i==":")return c(D,Xe);if(a=="=")return c(le);var u=m.state.lexical.prev,d=u&&u.info=="interface";return h(d?vt:Qe)}function qi(i,a){return a=="*"?(m.marked="keyword",c(yr,F(";"))):a=="default"?(m.marked="keyword",c(C,F(";"))):i=="{"?c(X(wn,"}"),yr,F(";")):h(H)}function wn(i,a){if(a=="as")return m.marked="keyword",c(F("variable"));if(i=="variable")return h(le,wn)}function Ii(i){return i=="string"?c():i=="("?h(C):i=="."?h(Le):h(nr,bn,yr)}function nr(i,a){return i=="{"?Pt(nr,"}"):(i=="variable"&&ue(a),a=="*"&&(m.marked="keyword"),c(Si))}function bn(i){if(i==",")return c(nr,bn)}function Si(i,a){if(a=="as")return m.marked="keyword",c(nr)}function yr(i,a){if(a=="from")return m.marked="keyword",c(C)}function Ci(i){return i=="]"?c():h(X(le,"]"))}function yn(){return h(y("form"),be,F("{"),y("}"),X(Di,"}"),_,_)}function Di(){return h(be,Xe)}function $i(i,a){return i.lastType=="operator"||i.lastType==","||b.test(a.charAt(0))||/[,.]/.test(a.charAt(0))}function xn(i,a,u){return a.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(a.lastType)||a.lastType=="quasi"&&/\{\s*$/.test(i.string.slice(0,i.pos-(u||0)))}return{startState:function(i){var a={tokenize:P,lastType:"sof",cc:[],lexical:new z((i||0)-n,0,"block",!1),localVars:t.localVars,context:t.localVars&&new Fe(null,null,!1),indented:i||0};return t.globalVars&&typeof t.globalVars=="object"&&(a.globalVars=t.globalVars),a},token:function(i,a){if(i.sol()&&(a.lexical.hasOwnProperty("align")||(a.lexical.align=!1),a.indented=i.indentation(),q(i,a)),a.tokenize!=N&&i.eatSpace())return null;var u=a.tokenize(i,a);return O=="comment"?u:(a.lastType=O=="operator"&&(M=="++"||M=="--")?"incdec":O,G(a,u,O,M,i))},indent:function(i,a){if(i.tokenize==N||i.tokenize==T)return r.Pass;if(i.tokenize!=P)return 0;var u=a&&a.charAt(0),d=i.lexical,E;if(!/^\s*else\b/.test(a))for(var B=i.cc.length-1;B>=0;--B){var $=i.cc[B];if($==_)d=d.prev;else if($!=hn&&$!=ae)break}for(;(d.type=="stat"||d.type=="form")&&(u=="}"||(E=i.cc[i.cc.length-1])&&(E==Le||E==Je)&&!/^[,\.=+\-*:?[\(]/.test(a));)d=d.prev;o&&d.type==")"&&d.prev.type=="stat"&&(d=d.prev);var ce=d.type,Be=u==ce;return ce=="vardef"?d.indented+(i.lastType=="operator"||i.lastType==","?d.info.length+1:0):ce=="form"&&u=="{"?d.indented:ce=="form"?d.indented+n:ce=="stat"?d.indented+($i(i,a)?o||n:0):d.info=="switch"&&!Be&&t.doubleIndentSwitch!=!1?d.indented+(/^(?:case|default)\b/.test(a)?n:2*n):d.align?d.column+(Be?0:1):d.indented+(Be?0:n)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:xn,skipExpression:function(i){G(i,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})});(function(r){r(window.CodeMirror)})(function(r){"use strict";r.customOverlayMode=function(e,t,n){return{startState:function(){return{base:r.startState(e),overlay:r.startState(t),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(o){return{base:r.copyState(e,o.base),overlay:r.copyState(t,o.overlay),basePos:o.basePos,baseCur:null,overlayPos:o.overlayPos,overlayCur:null}},token:function(o,s){return(o!=s.streamSeen||Math.min(s.basePos,s.overlayPos)<o.start)&&(s.streamSeen=o,s.basePos=s.overlayPos=o.start),o.start==s.basePos&&(s.baseCur=e.token(o,s.base),s.basePos=o.pos),o.start==s.overlayPos&&(o.pos=o.start,s.overlayCur=t.token(o,s.overlay),s.overlayPos=o.pos),o.pos=Math.min(s.basePos,s.overlayPos),s.baseCur&&s.overlayCur&&s.baseCur.contains("line-HyperMD-codeblock")&&(s.overlayCur=s.overlayCur.replace("line-templater-inline",""),s.overlayCur+=" line-background-HyperMD-codeblock-bg"),s.overlayCur==null?s.baseCur:s.baseCur!=null&&s.overlay.combineTokens||n&&s.overlay.combineTokens==null?s.baseCur+" "+s.overlayCur:s.overlayCur},indent:e.indent&&function(o,s,l){return e.indent(o.base,s,l)},electricChars:e.electricChars,innerMode:function(o){return{state:o.base,mode:e}},blankLine:function(o){let s,l;return e.blankLine&&(s=e.blankLine(o.base)),t.blankLine&&(l=t.blankLine(o.overlay)),l==null?s:n&&s!=null?s+" "+l:l}}}});var vi=V(require("@codemirror/language")),wi=V(require("@codemirror/state")),bi="templater",pn="templater-command",un="templater-inline",Go="templater-opening-tag",Vo="templater-closing-tag",Wo="templater-interpolation-tag",Ko="templater-execution-tag",mn=class{constructor(e){this.plugin=e;this.cursor_jumper=new an,this.activeEditorExtensions=[]}desktopShouldHighlight(){return An.Platform.isDesktopApp&&this.plugin.settings.syntax_highlighting}mobileShouldHighlight(){return An.Platform.isMobileApp&&this.plugin.settings.syntax_highlighting_mobile}async setup(){this.plugin.registerEditorSuggest(new cn(this.plugin.settings)),await this.registerCodeMirrorMode(),this.templaterLanguage=wi.Prec.high(vi.StreamLanguage.define(window.CodeMirror.getMode({},bi))),this.templaterLanguage===void 0&&K(new w("Unable to enable syntax highlighting. Could not define language.")),this.plugin.registerEditorExtension(this.activeEditorExtensions),(this.desktopShouldHighlight()||this.mobileShouldHighlight())&&await this.enable_highlighter()}async enable_highlighter(){this.activeEditorExtensions.length===0&&this.templaterLanguage&&(this.activeEditorExtensions.push(this.templaterLanguage),this.plugin.app.workspace.updateOptions())}async disable_highlighter(){this.activeEditorExtensions.length>0&&(this.activeEditorExtensions.pop(),this.plugin.app.workspace.updateOptions())}async jump_to_next_cursor_location(e=null,t=!1){t&&!this.plugin.settings.auto_jump_to_cursor||e&&kt(this.plugin.app)!==e||await this.cursor_jumper.jump_to_next_cursor_location()}async registerCodeMirrorMode(){if(!this.desktopShouldHighlight()&&!this.mobileShouldHighlight())return;let e=window.CodeMirror.getMode({},"javascript");if(e.name==="null"){K(new w("Javascript syntax mode couldn't be found, can't enable syntax highlighting."));return}let t=window.CodeMirror.customOverlayMode;if(t==null){K(new w("Couldn't find customOverlayMode, can't enable syntax highlighting."));return}window.CodeMirror.defineMode(bi,function(n){let o={startState:function(){return{...window.CodeMirror.startState(e),inCommand:!1,tag_class:"",freeLine:!1}},copyState:function(s){return{...window.CodeMirror.startState(e),inCommand:s.inCommand,tag_class:s.tag_class,freeLine:s.freeLine}},blankLine:function(s){return s.inCommand?"line-background-templater-command-bg":null},token:function(s,l){if(s.sol()&&l.inCommand&&(l.freeLine=!0),l.inCommand){let A="";if(s.match(/[-_]{0,1}%>/,!0)){l.inCommand=!1,l.freeLine=!1;let f=l.tag_class;return l.tag_class="",`line-${un} ${pn} ${Vo} ${f}`}let g=e.token&&e.token(s,l);return s.peek()==null&&l.freeLine&&(A+=" line-background-templater-command-bg"),l.freeLine||(A+=` line-${un}`),`${A} ${pn} ${g}`}let p=s.match(/<%[-_]{0,1}\s*([*+]{0,1})/,!0);if(p!=null){switch(p[1]){case"*":l.tag_class=Ko;break;default:l.tag_class=Wo;break}return l.inCommand=!0,`line-${un} ${pn} ${Go} ${l.tag_class}`}for(;s.next()!=null&&!s.match(/<%/,!1););return null}};return t(window.CodeMirror.getMode(n,"hypermd"),o)})}};var fn=class extends jr.Plugin{async onload(){await this.load_settings(),this.templater=new Wt(this),await this.templater.setup(),this.editor_handler=new mn(this),await this.editor_handler.setup(),this.fuzzy_suggester=new Nr(this),this.event_handler=new hr(this,this.templater,this.settings),this.event_handler.setup(),this.command_handler=new on(this),this.command_handler.setup(),(0,jr.addIcon)("templater-icon",oi),this.addRibbonIcon("templater-icon","Templater",async()=>{this.fuzzy_suggester.insert_template()}).setAttribute("id","rb-templater-icon"),this.addSettingTab(new $r(this)),app.workspace.onLayoutReady(()=>{this.templater.execute_startup_scripts()})}onunload(){this.templater.functions_generator.teardown()}async save_settings(){await this.saveData(this.settings)}async load_settings(){this.settings=Object.assign({},ri,await this.loadData())}};
|