You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
8.1 KiB
2 lines
8.1 KiB
1 year ago
|
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("just-compare")):"function"==typeof define&&define.amd?define("@abp/utils",["exports","just-compare"],r):r(((t=t||self).abp=t.abp||{},t.abp.utils=t.abp.utils||{},t.abp.utils.common={}),t.compare)}(this,(function(t,r){"use strict";r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r;function e(t,r){var e,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=r.call(t,a)}catch(t){o=[6,t],n=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}Object.create;function n(t,r){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var n,i,o=e.call(t),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return a}function i(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(n(arguments[r]));return t}Object.create;var o=function(t){this.value=t},a=function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"head",{get:function(){return this.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.last},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this.size},enumerable:!1,configurable:!0}),t.prototype.attach=function(t,r,e){if(!r)return this.addHead(t);if(!e)return this.addTail(t);var n=new o(t);return n.previous=r,r.next=n,n.next=e,e.previous=n,this.size++,n},t.prototype.attachMany=function(r,e,n){if(!r.length)return[];if(!e)return this.addManyHead(r);if(!n)return this.addManyTail(r);var i=new t;return i.addManyTail(r),i.first.previous=e,e.next=i.first,i.last.next=n,n.previous=i.last,this.size+=r.length,i.toNodeArray()},t.prototype.detach=function(t){return t.previous?t.next?(t.previous.next=t.next,t.next.previous=t.previous,this.size--,t):this.dropTail():this.dropHead()},t.prototype.add=function(t){var r=this;return{after:function(){for(var e,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return(e=r.addAfter).call.apply(e,i([r,t],n))},before:function(){for(var e,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return(e=r.addBefore).call.apply(e,i([r,t],n))},byIndex:function(e){return r.addByIndex(t,e)},head:function(){return r.addHead(t)},tail:function(){return r.addTail(t)}}},t.prototype.addMany=function(t){var r=this;return{after:function(){for(var e,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return(e=r.addManyAfter).call.apply(e,i([r,t],n))},before:function(){for(var e,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return(e=r.addManyBefore).call.apply(e,i([r,t],n))},byIndex:function(e){return r.addManyByIndex(t,e)},head:function(){return r.addManyHead(t)},tail:function(){return r.addManyTail(t)}}},t.prototype.addAfter=function(t,e,n){void 0===n&&(n=r);var i=this.find((function(t){return n(t.value,e)}));return i?this.attach(t,i,i.next):this.addTail(t)},t.prototype.addBefore=function(t,e,n){void 0===n&&(n=r);var i=this.find((function(t){return n(t.value,e)}));return i?this.attach(t,i.previous,i):this.addHead(t)},t.prototype.addByIndex=function(t,r){if(r<0)r+=this.size;else if(r>=this.siz
|
||
|
//# sourceMappingURL=abp-utils.umd.min.js.map
|