LocalCDN-Firefox-Chrome-Brave/resources/knockout/3.5.1/knockout-min.jsm

1 line
66 KiB
JavaScript
Raw Normal View History

!function(a){var g,b=this||eval("this"),c=b.document,d=b.navigator,e=b.jQuery,f=b.JSON;e||"undefined"==typeof jQuery||(e=jQuery),g=function(t,u){function n(e,t){return(null===e||typeof e in j)&&e===t}function i(e,t){var n;return function(){n=n||_.a.setTimeout(function(){n=a,e()},t)}}function o(e,t){var n;return function(){clearTimeout(n),n=_.a.setTimeout(e,t)}}function s(e,t){t&&"change"!==t?"beforeChange"===t?this.pc(e):this.gb(e,t):this.qc(e)}function r(e,t){null!==t&&t.s&&t.s()}function l(e,t){var n=this.qd,a=n[V];a.ra||(this.Qb&&this.mb[t]?(n.uc(t,e,this.mb[t]),this.mb[t]=null,--this.Qb):a.I[t]||n.uc(t,e,a.J?{da:e}:n.$c(e)),e.Ja&&e.gd())}var p,h,v,g,m,y,w,x,C,E,k,T,N,_=void 0!==t?t:{};function S(){if(k)for(var e,t=k,n=0;N<k;)if(e=E[N++]){if(t<N){if(5e3<=++n){N=k,_.a.Gc(Error("'Too much recursion' after processing "+n+" task groups."));break}t=k}try{e()}catch(e){_.a.Gc(e)}}}function D(){S(),N=k=E.length=0}_.b=function(e,t){for(var n=e.split("."),a=_,r=0;r<n.length-1;r++)a=a[n[r]];a[n[n.length-1]]=t},_.L=function(e,t,n){e[t]=n},_.version="3.5.1",_.b("version",_.version),_.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},_.a=function(){function p(e,t){for(var n in e)i.call(e,n)&&t(n,e[n])}function t(e,t){if(t)for(var n in t)i.call(t,n)&&(e[n]=t[n]);return e}function n(e,t){return e.__proto__=t,e}function r(e,t,n,a){var r=e[t].match(m)||[];_.a.D(n.match(m),function(e){_.a.Na(r,e,a)}),e[t]=r.join(" ")}var i=Object.prototype.hasOwnProperty,o={__proto__:[]}instanceof Array,u="function"==typeof Symbol,s={},l={};s[d&&/Firefox\/2/i.test(d.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],s.MouseEvents="click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave".split(" "),p(s,function(e,t){if(t.length)for(var n=0,a=t.length;n<a;n++)l[t[n]]=e});var h,v={propertychange:!0},g=c&&function(){for(var e=3,t=c.createElement("div"),n=t.getElementsByTagName("i");t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e",n[0];);return 4<e?e:a}(),m=/\S+/g;return{Jc:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],D:function(e,t,n){for(var a=0,r=e.length;a<r;a++)t.call(n,e[a],a,e)},A:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return n;return-1},Lb:function(e,t,n){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r];return a},Pa:function(e,t){var n=_.a.A(e,t);0<n?e.splice(n,1):0===n&&e.shift()},wc:function(e){var t=[];return e&&_.a.D(e,function(e){_.a.A(t,e)<0&&t.push(e)}),t},Mb:function(e,t,n){var a=[];if(e)for(var r=0,i=e.length;r<i;r++)a.push(t.call(n,e[r],r));return a},jb:function(e,t,n){var a=[];if(e)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r)&&a.push(e[r]);return a},Nb:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,a=t.length;n<a;n++)e.push(t[n]);return e},Na:function(e,t,n){var a=_.a.A(_.a.bc(e),t);a<0?n&&e.push(t):n||e.splice(a,1)},Ba:o,extend:t,setPrototypeOf:n,Ab:o?n:t,P:p,Ga:function(e,t,n){if(!e)return e;var a,r={};for(a in e)i.call(e,a)&&(r[a]=t.call(n,e[a],a,e));return r},Tb:function(e){for(;e.firstChild;)_.removeNode(e.firstChild)},Yb:function(e){for(var t=((e=_.a.la(e))[0]&&e[0].ownerDocument||c).createElement("div"),n=0,a=e.length;n<a;n++)t.appendChild(_.oa(e[n]));return t},Ca:function(e,t){for(var n=0,a=e.length,r=[];n<a;n++){var i=e[n].cloneNode(!0);r.push(t?_.oa(i):i)}return r},va:function(e,t){if(_.a.Tb(e),t)for(var n=0,a=t.length;n<a;n++)e.appendChild(t[n])},Xc:function(e,t){var n=e.nodeType?[e]:e;if(0<n.length){for(var a=n[0],r=a.parentNode,i=0,o=t.length;i<o;i++)r.insertBefore(t[i],a);for(i=0,o=n.length;i<o;i++)_.removeNode(n[i])}},Ua:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;1<e.length&&e[e.length-1].parentNode!==t;)e.length--;if(1<e.length){var n=e[0],a=e[e.length-1];for(e.length=0;n!==a;)e.push(n),n=n.nextSibling;e.push(a)}}return e},Zc:function(e,t){g<7?e.setAttribute("selected",t):e.selected=t},Db:functio