text: !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"JsonPatchError",function(){return m}),n.d(r,"deepClone",function(){return b}),n.d(r,"getValueByPointer",function(){return _}),n.d(r,"applyOperation",function(){return E}),n.d(r,"applyPatch",function(){return g}),n.d(r,"applyReducer",function(){return x}),n.d(r,"validator",function(){return P}),n.d(r,"validate",function(){return T}),n.d(r,"_areEquals",function(){return D});var o={};n.r(o),n.d(o,"unobserve",function(){return R}),n.d(o,"observe",function(){return I}),n.d(o,"generate",function(){return L}),n.d(o,"compare",function(){return S});var i={};n.r(i),n.d(i,"JsonPatchError",function(){return y}),n.d(i,"deepClone",function(){return s}),n.d(i,"escapePathComponent",function(){return l}),n.d(i,"unescapePathComponent",function(){return v}),n.d(i,"default",function(){return k}),n.d(i,"getValueByPointer",function(){return _}),n.d(i,"applyOperation",function(){return E}),n.d(i,"applyPatch",function(){return g}),n.d(i,"applyReducer",function(){return x}),n.d(i,"validator",function(){return P}),n.d(i,"validate",function(){return T}),n.d(i,"_areEquals",function(){return D}),n.d(i,"unobserve",function(){return R}),n.d(i,"observe",function(){return I}),n.d(i,"generate",function(){return L}),n.d(i,"compare",function(){return S});
  /*!
   * https://github.com/Starcounter-Jack/JSON-Patch
   * (c) 2017 Joachim Wester
   * MIT license
   */
  var a,u=(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function p(e,t,n){if(void 0===n&&(n=void 0),Array.isArray(e)&&"string"==typeof t&&-1!==t.indexOf(":")){var r=t.split(":"),o=r[0],i=r[1],a=e.findIndex(function(e){return null==o||0==o.length?e==i:e[o]==i});return-1===a?void 0:e[a]}return e[t]}var c=Object.prototype.hasOwnProperty;function f(e,t){if(Array.isArray(e)&&"string"==typeof t&&-1!==t.indexOf(":")){var n=t.split(":"),r=n[0],o=n[1];return-1!==e.findIndex(function(e){return null==r||0==r.length?e==o:e[r]==o})}return c.call(e,t)}function d(e,t){if(void 0===t&&(t=["_id"]),null==e)return[];if(Array.isArray(e)){for(var n=new Array(e.length),r=0;r<n.length;r++){var o=""+r,i=e[o];if(i){var a=t.find(function(e){return!!i[e]});n[r]=a?a+":"+i[a]:"string"==typeof i||"bigint"==typeof i||"boolean"==typeof i||"number"==typeof i?":"+i:o}else n[r]=o}return n}if(Object.keys)return Object.keys(e);n=[];for(var u in e)f(e,u)&&n.push(u);return n}function s(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function h(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0}function l(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function v(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function w(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}var y=function(e){function t(t,n,r,o,i){var a=this.constructor,u=e.call(this,w(t,{name:n,index:r,operation:o,tree:i}))||this;return u.name=n,u.index=r,u.operation=o,u.tree=i,Object.setPrototypeOf(u,a.prototype),u.message=w(t,{name:n,index:r,operation:o,tree:i}),u}return u(t,e),t}(Error),m=y,b=s,O={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=_(n,this.path);r&&(r=s(r));var o=E(n,{op:"remove",path:this.from}).removed;return E(n,{op:"add",path:this.path,value:o}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=_(n,this.from);return E(n,{op:"add",path:this.path,value:s(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:D(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},A={add:function(e,t,n,r){var o=this;if((void 0===r&&(r=["_id"]),"string"==typeof this.value||"bigint"==typeof this.value||"boolean"==typeof this.value||"number"==typeof this.value)&&-1!==e.findIndex(function(e){return e===o.value}))return{newDocument:n,index:t};var i=r.find(function(e){return!!o.value[e]});if(i&&-1!==e.findIndex(function(e){return!!e&&e[i]===o.value[i]}))return{newDocument:n,index:t};return h(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:O.move,copy:O.copy,test:O.test,_get:O._get};function _(e,t){if(""==t)return e;var n={op:"_get",path:t};return E(e,n),n.value}function E(e,t,n,r,o,i,a){if(void 0===n&&(n=!1),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=0),void 0===a&&(a=["_id"]),n&&("function"==typeof n?n(t,0,e,t.path):P(t,0)),""===t.path){var u={newDocument:e};if("add"===t.op)return u.newDocument=t.value,u;if("replace"===t.op)return u.newDocument=t.value,u.removed=e,u;if("move"===t.op||"copy"===t.op)return u.newDocument=_(e,t.from),"move"===t.op&&(u.removed=e),u;if("test"===t.op){if(u.test=D(e,t.value),!1===u.test)throw new m("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return u.newDocument=e,u}if("remove"===t.op)return u.removed=e,u.newDocument=null,u;if("_get"===t.op)return t.value=e,u;if(n)throw new m("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return u}r||(e=s(e));var c=(t.path||"").split("/"),f=e,d=1,l=c.length,w=void 0,y=void 0,b=void 0;for(b="function"==typeof n?n:P;;){if((y=c[d])&&-1!=y.indexOf("~")&&(y=v(y)),o&&("__proto__"==y||"prototype"==y&&d>0&&"constructor"==c[d-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===w&&(void 0===p(f,y,e)?w=c.slice(0,d).join("/"):d==l-1&&(w=t.path),void 0!==w&&b(t,0,e,w)),d++,Array.isArray(f)){if("-"===y)y=f.length;else{var E=-1!==y.indexOf(":");if(n&&!h(y)&&!E)throw new m("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,t,e);if(h(y))y=~~y;else if(E){var g=y.split(":"),x=g[0],T=g[1];if(y=f.findIndex(function(e){return null==x||0==x.length?e==T:e[x]==T}),n&&-1===y)throw new m("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}if(d>=l){if(n&&"add"===t.op&&y>f.length)throw new m("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(u=A[t.op].call(t,f,y,e,a)).test)throw new m("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return u}}else if(d>=l){if(!1===(u=O[t.op].call(t,f,y,e)).test)throw new m("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return u}if(f=f[y],n&&d<l&&(!f||"object"!=typeof f))throw new m("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function g(e,t,n,r,o,i){if(void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===i&&(i=["_id"]),n&&!Array.isArray(t))throw new m("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");r||(e=s(e));for(var a=new Array(t.length),u=0,p=t.length;u<p;u++)a[u]=E(e,t[u],n,!0,o,u,i),e=a[u].newDocument;return a.newDocument=e,a}function x(e,t,n){var r=E(e,t);if(!1===r.test)throw new m("Test operation failed","TEST_OPERATION_FAILED",n,t,e);return r.newDocument}function P(e,t,n,r){if("object"!=typeof e||null===e||Array.isArray(e))throw new m("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!O[e.op])throw new m("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new m("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new m('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new m("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new m("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&function e(t){if(void 0===t)return!0;if(t)if(Array.isArray(t)){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return!0}else if("object"==typeof t){var o=d(t),i=o.length;for(n=0;n<i;n++)if(e(p(t,o[n])))return!0}return!1}(e.value))throw new m("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var o=e.path.split("/").length,i=r.split("/").length;if(o!==i+1&&o!==i)throw new m("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new m("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=T([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new m("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function T(e,t,n){try{if(!Array.isArray(e))throw new m("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)g(s(t),s(e),n||!0);else{n=n||P;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof m)return e;throw e}}function D(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,r,o,i=Array.isArray(e),a=Array.isArray(t);if(i&&a){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!D(e[n],t[n]))return!1;return!0}if(i!=a)return!1;var u=Object.keys(e);if((r=u.length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!t.hasOwnProperty(u[n]))return!1;for(n=r;0!=n--;)if(!D(e[o=u[n]],t[o]))return!1;return!0}return e!=e&&t!=t}
  /*!
   * https://github.com/Starcounter-Jack/JSON-Patch
   * (c) 2017-2021 Joachim Wester
   * MIT license
   */
  var N=new WeakMap,j=function(e){this.observers=new Map,this.obj=e},C=function(e,t){this.callback=e,this.observer=t};function R(e,t){t.unobserve()}function I(e,t,n){void 0===n&&(n=["_id"]);var r,o=function(e){return N.get(e)}(e);if(o){var i=function(e,t){return e.observers.get(t)}(o,t);r=i&&i.observer}else o=new j(e),N.set(e,o);if(r)return r;if(r={},o.value=s(e),t){r.callback=t,r.next=null;var a=function(){L(r,!1,n)},u=function(){clearTimeout(r.next),r.next=setTimeout(a)};"undefined"!=typeof window&&(window.addEventListener("mouseup",u),window.addEventListener("keyup",u),window.addEventListener("mousedown",u),window.addEventListener("keydown",u),window.addEventListener("change",u))}return r.patches=[],r.object=e,r.unobserve=function(){L(r,!1,n),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(o,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",u),window.removeEventListener("keyup",u),window.removeEventListener("mousedown",u),window.removeEventListener("keydown",u),window.removeEventListener("change",u))},o.observers.set(t,new C(t,r)),r}function L(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=["_id"]);var r=N.get(e.object);B(r.value,e.object,e.patches,"",t,n),e.patches.length&&g(r.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function B(e,t,n,r,o,i){if(void 0===i&&(i=["_id"]),t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var a=d(t,i),u=d(e,i),c=!1,h=u.length-1;h>=0;h--){var v=p(e,y=u[h],e),w=p(t,y,t);!f(t,y)||void 0===w&&void 0!==v&&!1===Array.isArray(t)?Array.isArray(e)===Array.isArray(t)?(o&&n.push({op:"test",path:r+"/"+l(y),value:s(v)}),n.push({op:"remove",path:r+"/"+l(y)}),c=!0):(o&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}),!0):"object"==typeof v&&null!=v&&"object"==typeof w&&null!=w&&Array.isArray(v)===Array.isArray(w)?B(v,w,n,r+"/"+l(y),o,i):v!==w&&(!0,o&&n.push({op:"test",path:r+"/"+l(y),value:s(v)}),n.push({op:"replace",path:r+"/"+l(y),value:s(w)}))}if(c||a.length!=u.length)for(h=0;h<a.length;h++){var y,m=p(t,y=a[h],t);f(e,y)||void 0===m||(Array.isArray(t)?n.push({op:"add",path:r+"/-",value:s(m)}):n.push({op:"add",path:r+"/"+l(y),value:s(m)}))}}}function S(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=["_id"]);var o=[];return B(e,t,o,"",n,r),o}var k=Object.assign({},r,o,{JsonPatchError:y,deepClone:s,escapePathComponent:l,unescapePathComponent:v});function U(e){expect(typeof e).withContext("result from import should be an object").toEqual("object"),expect(typeof e).withContext("result from import should not be a function").not.toEqual("function"),expect(e.applyOperation).withContext("applyOperation should be a method within the object").toBeDefined(),expect(e.applyPatch).withContext("applyPatch should be a method within the object").toBeDefined(),expect(e.applyReducer).withContext("applyReducer should be a method within the object").toBeDefined(),expect(e.getValueByPointer).withContext("getValueByPointer should be a method within the object").toBeDefined(),expect(e.validate).withContext("validate should be a method within the object").toBeDefined(),expect(e.validator).withContext("validator should be a method within the object").toBeDefined(),expect(e._areEquals).withContext("_areEquals should be a method within the object").toBeDefined(),expect(e.JsonPatchError).withContext("JsonPatchError should be a method within the object").toBeDefined(),expect(e.deepClone).withContext("deepClone should be a method within the object").toBeDefined(),expect(e.escapePathComponent).withContext("escapePathComponent should be a method within the object").toBeDefined(),expect(e.unescapePathComponent).withContext("unescapePathComponent should be a method within the object").toBeDefined(),expect(e.unobserve).withContext("unobserve should be a method within the object").toBeDefined(),expect(e.observe).withContext("observe should be a method within the object").toBeDefined(),expect(e.generate).withContext("generate should be a method within the object").toBeDefined(),expect(e.compare).withContext("compare should be a method within the object").toBeDefined()}describe("This package imported by Webpack",function(){describe("import default",function(){it("should have the expected structure",function(){U(k)})}),describe("import asterisk",function(){it("should have the expected structure",function(){U(i)})}),describe("named import",function(){it("should have the expected structure",function(){expect(E).withContext("applyOperation should be defined").toBeDefined()})})})}]);