INSERT INTO "_meta"."plv8_js_modules"("module","autoload","source")
VALUES
(E'rfc6902',TRUE,E'var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,d,e){a!=Array.prototype&&a!=Object.prototype&&(a[d]=e.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";\n$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(d){return $jscomp.SYMBOL_PREFIX+(d||"")+a++}}();\n$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var d=0;return $jscomp.iteratorPrototype(function(){return d<a.length?{done:!1,value:a[d++]}:{done:!0}})};\n$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.makeIterator=function(a){$jscomp.initSymbolIterator();$jscomp.initSymbol();$jscomp.initSymbolIterator();var d=a[Symbol.iterator];return d?d.call(a):$jscomp.arrayIterator(a)};$jscomp.objectCreate=$jscomp.ASSUME_ES5||"function"==typeof Object.getSqlFromMigrationObj?Object.getSqlFromMigrationObj:function(a){var d=function(){};d.prototype=a;return new d};\n$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},d={};try{return d.__proto__=a,d.a}catch(e){}return!1};$jscomp.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,d){a.__proto__=d;if(a.__proto__!==d)throw new TypeError(a+" is not extensible");return a}:null;\n$jscomp.inherits=function(a,d){a.prototype=$jscomp.objectCreate(d.prototype);a.prototype.constructor=a;if($jscomp.setPrototypeOf){var e=$jscomp.setPrototypeOf;e(a,d)}else for(e in d)if("prototype"!=e)if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(d,e);f&&Object.defineProperty(a,e,f)}else a[e]=d[e];a.superClass_=d.prototype};$jscomp.arrayFromIterator=function(a){for(var d,e=[];!(d=a.next()).done;)e.push(d.value);return e};\n$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};$jscomp.iteratorFromArray=function(a,d){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var e=0,f={next:function(){if(e<a.length){var h=e++;return{value:d(h,a[h]),done:!1}}f.next=function(){return{done:!0,value:void 0}};return f.next()}};f[Symbol.iterator]=function(){return f};return f};\n$jscomp.polyfill=function(a,d,e,f){if(d){e=$jscomp.global;a=a.split(".");for(f=0;f<a.length-1;f++){var h=a[f];h in e||(e[h]={});e=e[h]}a=a[a.length-1];f=e[a];d=d(f);d!=f&&null!=d&&$jscomp.defineProperty(e,a,{configurable:!0,writable:!0,value:d})}};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3");\n(function(a,d){"object"===typeof exports&&"undefined"!==typeof module?d(exports):"function"===typeof define&&define.amd?define(["exports"],d):d(a.rfc6902={})})(this,function(a){function d(b){return b.replace(/~1/g,"/").replace(/~0/g,"~")}function e(b){return b.replace(/~/g,"~0").replace(/\\//g,"~1")}function f(b,c){for(var a=[],d=0,y=b.length;d<y;d++)a.push([b[d],c[d]]);return a}function h(b,c){return b.length!==c.length?!1:f(b,c).every(function(b){return n(b[0],b[1])})}function z(b,c){var a=Object.keys(b),\nd=Object.keys(c);return h(a,d)?a.every(function(a){return n(b[a],c[a])}):!1}function n(b,c){return b===c?!0:Array.isArray(b)&&Array.isArray(c)?h(b,c):Object(b)===b&&Object(c)===c?z(b,c):!1}function p(b,c,a){Array.isArray(b)?"-"==c?b.push(a):b.splice(c,0,a):b[c]=a}function q(b,c){Array.isArray(b)?b.splice(c,1):delete b[c]}function A(b){b=b.op;return"remove"===b||"replace"===b||"copy"===b||"move"===b}function t(b,c){var a={},d;for(d in b)a[d]=1;for(var e in c)delete a[e];return Object.keys(a)}function B(b){var c=\n{};b.forEach(function(b){for(var a in b)c[a]=(c[a]||0)+1});b=b.length;for(var a in c)c[a]<b&&delete c[a];return Object.keys(c)}function u(b){return void 0===b?"undefined":null===b?"null":Array.isArray(b)?"array":typeof b}function C(b,c,a){function d(a,e){var f=m[a+","+e];if(void 0===f){if(n(b[a-1],c[e-1]))f=d(a-1,e-1);else{f=[];if(0<a){var k=d(a-1,e);f.push({operations:k.operations.concat({op:"remove",index:a-1}),cost:k.cost+1})}0<e&&(k=d(a,e-1),f.push({operations:k.operations.concat({op:"add",index:a-\n1,value:c[e-1]}),cost:k.cost+1}));0<a&&0<e&&(k=d(a-1,e-1),f.push({operations:k.operations.concat({op:"replace",index:a-1,original:b[a-1],value:c[e-1]}),cost:k.cost+1}));f=f.sort(function(b,a){return b.cost-a.cost})[0]}m[a+","+e]=f}return f}var m={"0,0":{operations:[],cost:0}},e=isNaN(b.length)||0>=b.length?0:b.length,f=isNaN(c.length)||0>=c.length?0:c.length;f=d(e,f).operations;f=$jscomp.makeIterator(f.reduce(function(b,c){var d=$jscomp.makeIterator(b);b=d.next().value;d=d.next().value;if("add"===\nc.op){var m=c.index+1+d;c={op:c.op,path:a.add(m<e+d?String(m):"-").toString(),value:c.value};return[b.concat(c),d+1]}if("remove"===c.op)return c={op:c.op,path:a.add(String(c.index+d)).toString()},[b.concat(c),d-1];m=a.add(String(c.index+d));c=r(c.original,c.value,m);return[b.concat.apply(b,[].concat($jscomp.arrayFromIterable(c))),d]},[[],0]));var g=f.next().value;f.next();return g}function D(b,a,d){var c=[];t(b,a).forEach(function(b){c.push({op:"remove",path:d.add(b).toString()})});t(a,b).forEach(function(b){c.push({op:"add",\npath:d.add(b).toString(),value:a[b]})});B([b,a]).forEach(function(e){c.push.apply(c,[].concat($jscomp.arrayFromIterable(r(b[e],a[e],d.add(e)))))});return c}function r(b,a,d){var c=u(b),e=u(a);if("array"==c&&"array"==e)return C(b,a,d);if("object"==c&&"object"==e)return D(b,a,d);b=n(b,a)?[]:[{op:"replace",path:d.toString(),value:a}];return b}function v(b,a){b=g.fromJSON(a).evaluate(b);if(void 0!==b)return{op:"test",path:a,value:b.value}}var l=function(b){var a=Error.call(this,"Value required at path: "+\nb);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.path=b;this.name="MissingError"};$jscomp.inherits(l,Error);var w=function(b){var a=Error.call(this,"Invalid operation: "+b);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.op=b;this.name="InvalidOperationError"};$jscomp.inherits(w,Error);var x=function(b,a){var c=Error.call(this,"Test failed: "+b+" != "+a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.actual=b;this.expected=a;this.name="TestError";this.actual=\nb;this.expected=a};$jscomp.inherits(x,Error);var g=function(b){this.tokens=b=void 0===b?[""]:b};g.fromJSON=function(b){var a=b.split("/").map(d);if(""!==a[0])throw Error("Invalid JSON Pointer: "+b);return new g(a)};g.prototype.toString=function(){return this.tokens.map(e).join("/")};g.prototype.evaluate=function(b){for(var a=null,d=null,e=1,f=this.tokens.length;e<f;e++)a=b,d=this.tokens[e],b=(a||{})[d];return{parent:a,key:d,value:b}};g.prototype.push=function(b){this.tokens.push(b)};g.prototype.add=\nfunction(b){b=this.tokens.concat(String(b));return new g(b)};var E=Object.freeze({add:function(b,a){b=g.fromJSON(a.path).evaluate(b);if(void 0===b.parent)return new l(a.path);p(b.parent,b.key,a.value);return null},remove:function(b,a){b=g.fromJSON(a.path).evaluate(b);if(void 0===b.value)return new l(a.path);q(b.parent,b.key);return null},replace:function(a,c){a=g.fromJSON(c.path).evaluate(a);if(void 0===a.value)return new l(c.path);a.parent[a.key]=c.value;return null},move:function(a,c){var b=g.fromJSON(c.from).evaluate(a);\nif(void 0===b.value)return new l(c.from);a=g.fromJSON(c.path).evaluate(a);if(void 0===a.parent)return new l(c.path);q(b.parent,b.key);p(a.parent,a.key,b.value);return null},copy:function(a,c){var b=g.fromJSON(c.from).evaluate(a);if(void 0===b.value)return new l(c.from);a=g.fromJSON(c.path).evaluate(a);if(void 0===a.parent)return new l(c.path);q(b.parent,b.key);p(a.parent,a.key,b.value);return null},test:function(a,c){a=g.fromJSON(c.path).evaluate(a);return n(a.value,c.value)?null:new x(a.value,c.value)}});\na.applyPatch=function(a,c){return c.map(function(b){var c=E[b.op];return void 0===c?new w(b.op):c(a,b)})};a.createPatch=function(a,c){var b=new g;return r(a,c,b)};a.createTests=function(a,c){var b=[];c.filter(A).forEach(function(c){var d=v(a,c.path);d&&b.push(d);"from"in c&&(c=v(a,c.from))&&b.push(c)});return b};Object.defineProperty(a,"__esModule",{value:!0})});')
ON CONFLICT ON CONSTRAINT plv8_js_modules_pkey DO NOTHING;