PageSourceSearch

https://knuthmarf.com/cdn/shop/t/56/assets/jquery.tmpl.min.js?v=140244125080160355331790244732

js knuthmarf.com collected 2026-09-28 05:42:38 UTC 5,808 bytes, 1 lines download raw bytes

1!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(c){function u(t,e,n,l){l={data:l||0===l||!1===l?l:e?e.data:{},_wrap:e?e._wrap:null,tmpl:null,parent:e||null,nodes:[],calls:a,nest:m,wrap:s,html:d,update:$};return t&&c.extend(l,t,{nodes:[],parent:e}),n&&(l.tmpl=n,l._ctnt=l._ctnt||l.tmpl(c,l),l.key=++k,(j.length?v:g)[k]=l),l}function r(e,t,n){var a,n=n?c.map(n,function(t){return"string"==typeof t?e.key?t.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+y+'="'+e.key+'" $2'):t:r(t,e,t._ctnt)}):e;return t?n:((n=n.join("")).replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,e,n,l){o(a=c(n).get()),e&&(a=p(e).concat(a)),l&&(a=a.concat(p(l)))}),a||p(n))}function p(t){var e=document.createElement("div");return e.innerHTML=t,c.makeArray(e.childNodes)}function n(t){return Function("jQuery","$item","var $=jQuery,call,__=[],$data=$item.data;with($data){__.push('"+c.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,e,n,l,a,r,p){var i,o,u=c.tmpl.tag[n];if(u)return i=u._default||[],r&&!/\w$/.test(a)&&(a+=r,r=""),p=a?(a=f(a),p=p?","+f(p)+")":r?")":"",o=r?-1<a.indexOf(".")?a+f(r):"("+a+").call($item"+p:a,r?o:"(typeof("+a+")==='function'?("+a+").call($item):("+a+"))"):o=i.$1||"null",l=f(l),"');"+u[e?"close":"open"].split("$notnull_1").join(a?"typeof("+a+")!=='undefined' && ("+a+")!=null":"true").split("$1a").join(p).split("$1").join(o).split("$2").join(l||i.$2||"")+"__.push('";throw"Unknown template tag: "+n})+"');}return __;")}function i(t,e){t._wrap=r(t,!0,c.isArray(e)?e:[l.test(e)?e:c(e).html()]).join("")}function f(t){return t?t.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function o(t){function e(t){function e(t){a=o[t+=i]=o[t]||u(a,g[a.parent.key+i]||a.parent)}var n,l,a,r,p=t;if(r=t.getAttribute(y)){for(;p.parentNode&&1===(p=p.parentNode).nodeType&&!(n=p.getAttribute(y)););n!==r&&(p=p.parentNode&&11!==p.nodeType&&p.getAttribute(y)||0,(a=g[r])||((a=u(a=v[r],g[p]||v[p])).key=++k,g[k]=a),T)&&e(r),t.removeAttribute(y)}else T&&(a=c.data(t,"tmplItem"))&&(e(a.key),g[a.key]=a,p=(p=c.data(t.parentNode,"tmplItem"))?p.key:0);if(a){for(l=a;l&&l.key!=p;)l.nodes.push(t),l=l.parent;delete a._ctnt,delete a._wrap,c.data(t,"tmplItem",a)}}for(var n,l,a,i="_"+T,o={},r=0,p=t.length;r<p;r++)if(1===(n=t[r]).nodeType){for(a=(l=n.getElementsByTagName("*")).length-1;0<=a;a--)e(l[a]);e(n)}}function a(t,e,n,l){return t?void j.push({_:t,tmpl:e,item:this,data:n,options:l}):j.pop()}function m(t,e,n){return c.tmpl(c.template(t),e,n,this)}function s(t,e){var n=t.options||{};return n.wrapped=e,c.tmpl(c.template(t.tmpl),t.data,n,t.item)}function d(t,n){var e=this._wrap;return c.map(c(c.isArray(e)?e.join(""):e).filter(t||"*"),function(t){return n?t.innerText||t.textContent:t.outerHTML||(t=t,(e=document.createElement("div")).appendChild(t.cloneNode(!0)),e.innerHTML);var e})}function $(){var t=this.nodes;c.tmpl(null,null,null,this).insertBefore(t[0]),c(t).remove()}var _,h=c.fn.domManip,y="_tmplitem",l=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,g={},v={},w={key:0,data:{}},k=0,T=0,j=[];c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(p,i){c.fn[p]=function(t){var e,n,l,a=[],r=c(t),t=1===this.length&&this[0].parentNode;if(_=g||{},t&&11===t.nodeType&&1===t.childNodes.length&&1===r.length)r[i](this[0]),a=this;else{for(n=0,l=r.length;n<l;n++)e=(0<(T=n)?this.clone(!0):this).get(),c(r[n])[i](e),a=a.concat(e);T=0,a=this.pushStack(a,p,r.selector)}return t=_,_=null,c.tmpl.complete(t),a}}),c.fn.extend({tmpl:function(t,e,n){return c.tmpl(this[0],t,e,n)},tmplItem:function(){return c.tmplItem(this[0])},template:function(t){return c.template(t,this[0])},domManip:function(t,e,n){if(t[0]&&c.isArray(t[0])){for(var l,a=c.makeArray(arguments),r=t[0],p=r.length,i=0;i<p&&!(l=c.data(r[i++],"tmplItem")););l&&T&&(a[2]=function(t){c.tmpl.afterManip(this,t,n)}),h.apply(this,a)}else h.apply(this,arguments);return T=0,_||c.tmpl.complete(g),this}}),c.extend({tmpl:function(e,t,n,l){var a=!l;if(a)l=w,e=c.template[e]||c.template(null,e),v={};else if(!e)return e=l.tmpl,(g[l.key]=l).nodes=[],l.wrapped&&i(l,l.wrapped),c(r(l,null,l.tmpl(c,l)));return e?("function"==typeof t&&(t=t.call(l||{})),n&&n.wrapped&&i(n,n.wrapped),t=c.isArray(t)?c.map(t,function(t){return t?u(n,l,e,t):null}):[u(n,l,e,t)],a?c(r(l,null,t)):t):[]},tmplItem:function(t){var e;
vendor: 1,269 bytes, line 1
1for(t instanceof c&&(t=t[0]);t&&1===t.nodeType&&!(e=c.data(t,"tmplItem"))&&(t=t.parentNode););return e||w},template:function(t,e){return e?("string"==typeof e?e=n(e):e instanceof c&&(e=e[0]||{}),e.nodeType&&(e=c.data(e,"tmpl")||c.data(e,"tmpl",n(e.innerHTML))),"string"==typeof t?c.template[t]=e:e):t?"string"!=typeof t?c.template(null,t):c.template[t]||c.template(null,l.test(t)?t:c(t)):null},encode:function(t){return(""+t).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}}),c.extend(c.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){__=__.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(__,$1,$2);__=[];",close:"call=$item.calls();__=call._.concat($item.wrap(call,__));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},if:{open:"if(($notnull_1) && $1a){",close:"}"},else:{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){__.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){__.push($.encode($1a));}"},"!":{open:""}},complete:function(){g={}},afterManip:function(t,e,n){var l=11===e.nodeType?c.makeArray(e.childNodes):1===e.nodeType?[e]:[];n.call(t,e),o(l),T++}})});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.