Files
react-native-devtools-frontend/node_modules/intl-list-format/dist/index.min.js
T
Tim van der Lippe 1fe7f95b0e Add eslint-plugin-lit-a11y to manage_node_deps
This also adds the MPL-2.0 license as valid license to our allowed
licenses list.

R=jacktfranklin@chromium.org
DISABLE_THIRD_PARTY_CHECK=NPM update

Change-Id: I2a3bee2ffc0b328a0579ab62ab27f938bdc876c8
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2593130
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
2021-01-05 13:13:19 +00:00

3 lines
8.4 KiB
JavaScript

function _typeof3(a){return _typeof3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof3(a)}(function(){'use strict';function a(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function b(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}function c(a,c,d){return c&&b(a.prototype,c),d&&b(a,d),a}function d(a){return d="function"==typeof Symbol&&"symbol"===_typeof3(Symbol.iterator)?function(a){return _typeof3(a)}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":_typeof3(a)},d(a)}function e(a){return e="function"==typeof Symbol&&"symbol"===d(Symbol.iterator)?function(a){return d(a)}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":d(a)},e(a)}function f(a){if(null==a)throw new TypeError("Argument ".concat(a," cannot be converted to an Object"));return"boolean"==typeof a?new Boolean(a):"number"==typeof a?new Number(a):"string"==typeof a?new String(a):"symbol"===e(a)?Object(a):a}function g(a){K=a}function h(){return K}function i(){if(null==K)throw new ReferenceError("Could not determine locale: No default locale has been configured");return K}function j(a,b,c){var d=P.get(a);null==d&&(d=Object.create(null),P.set(a,d)),d[b]=c}function k(a,b){var c=P.get(a);if(null==c)throw new ReferenceError("No internal slots has been allocated for the given instance of ListFormat");return c[b]}function l(a,b){var c=P.get(a);return null!=c&&b in c}function m(a){return a.replace(R,"")}function n(a,b){for(var c=b;;){if(a.includes(c))return c;var d=c.lastIndexOf("-");if(-1===d)return;2<=d&&"-"===c.charAt(d-2)&&(d-=2),c=c.slice(0,d)}}function o(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g,h=b[Symbol.iterator]();!(d=(g=h.next()).done);d=!0){var i=g.value,j=m(i),k=n(a,j);k!==void 0&&c.push(i)}}catch(a){e=!0,f=a}finally{try{d||null==h.return||h.return()}finally{if(e)throw f}}return c}function p(a,b){return o(a,b)}function q(a){return!("string"!=typeof a)||!("symbol"!==e(a))}function r(a,b){if("object"!==e(a))throw new TypeError("Given argument ".concat(a," must be of type Object"));if(!q(b))throw new TypeError("Given argument ".concat(b," must be a PropertyKey"));return a[b]}function s(a){return!!a}function t(a){return a+""}function u(a,b,c,d,e){var f=r(a,b);if(void 0!==f){if("boolean"!==c&&"string"!==c)throw new TypeError("Expected type ".concat(c," to be 'boolean' or 'string"));if("boolean"===c&&(f=s(f)),"string"===c&&(f=t(f)),void 0!==d&&!d.includes(f))throw new RangeError("Value ".concat(f," out of range for options property ").concat(b));return f}return e}function v(a,b,c){var d;return void 0===c?d="best fit":(c=f(c),d=u(c,"localeMatcher","string",O,"best fit")),"best fit"===d?p(a,b):o(a,b)}function w(a){var b=a.availableLocales,c=a.requestedLocales,d=Object.create(null),e=!0,f=!1,g=void 0;try{for(var h,j=c[Symbol.iterator]();!(e=(h=j.next()).done);e=!0){var k=h.value,l=m(k),o=n(b,l);if(void 0!==o){if(d.locale=o,k!==l){var p=k.match(R);d.extension=null==p?"":p[0]}return d}}}catch(a){f=!0,g=a}finally{try{e||null==j.return||j.return()}finally{if(f)throw g}}var q=i();return d.locale=q,d}function x(a){return w(a)}function y(a,b,c){var d=c.localeMatcher,e="lookup"===d?w({availableLocales:a,requestedLocales:b}):x({availableLocales:a,requestedLocales:b}),f=e.locale,g=Object.create(null);g.dataLocale=f;return g.locale=f,g}function z(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}}function A(a){if(Symbol.iterator in Object(a)||"[object Arguments]"===Object.prototype.toString.call(a))return Array.from(a)}function B(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function C(a){return z(a)||A(a)||B()}function D(a){if(a===void 0)return[];var b=C(a);if(b.some(function(a){return"string"!=typeof a}))throw new TypeError("All List items must be strings");return b}function E(a){return"[object Object]"===Object.prototype.toString.call(a)}function F(a){return Array.isArray(a)||E(a)}function G(a,b){for(var c=[],d=String.prototype.indexOf.call(a,"{",0),e=0,f=a.length;a[d]!==void 0;){var g=String.prototype.indexOf.call(a,"}",d);if(g<=d)throw new TypeError("Expected endIndex: ".concat(g," to be greater than beginIndex: ").concat(d));if(d>e){var h=a.slice(e,d);c.push({type:"literal",value:h})}var i=a.slice(d+1,g);if(null==b[+i])throw new TypeError("Expected placeables to have a part for PropertyKey: ".concat(i));var j=b[+i];if(F(j.value)){var k=!0,l=!1,m=void 0;try{for(var n,o,p=j.value[Symbol.iterator]();!(k=(n=p.next()).done);k=!0)o=n.value,c.push(o)}catch(a){l=!0,m=a}finally{try{k||null==p.return||p.return()}finally{if(l)throw m}}}else c.push(j);e=g+1,d=String.prototype.indexOf.call(a,"{",e)}if(e<f){var q=a.slice(e,f);c.push({type:"literal",value:q})}return c}function H(a,b){var c,d=b.length;if(0===d)return[];if(2===d){c=k(a,"templatePair");var e={type:"element",value:b[0]},f={type:"element",value:b[1]};return G(c,{0:e,1:f})}for(var g={type:"element",value:b[d-1]},h=[g],j=d-2;0<=j;){c=0===j?k(a,"templateStart"):j<d-2?k(a,"templateMiddle"):k(a,"templateEnd");var l={type:"element",value:b[j]},m={type:"element",value:h};h=G(c,{0:l,1:m}),j--}return h}function I(a,b){var c=H(a,b),d="",e=!0,f=!1,g=void 0;try{for(var h,i,j=c[Symbol.iterator]();!(e=(h=j.next()).done);e=!0)i=h.value,d+=i.value}catch(a){f=!0,g=a}finally{try{e||null==j.return||j.return()}finally{if(f)throw g}}return d}function J(a,b){return H(a,b)}var K,L="ListFormat"in Intl,M=["conjunction","disjunction","unit"],N=["long","short","narrow"],O=["lookup","best fit"],P=new WeakMap,Q={relevantExtensionKeys:[],localeData:{},availableLocales:[]},R=/-u(?:-[0-9a-z]{2,8})+/gi,S=function(){function b(){a(this,b);var c=arguments[0],d=arguments[1];if(void 0===(this instanceof b?this.constructor:void 0))throw new TypeError("Constructor Intl.ListFormat requires 'new'");var e=Intl.getCanonicalLocales(c);d=void 0===d?Object.create(null):f(d);var g=Object.create(null),h=u(d,"localeMatcher","string",O,"best fit");g.localeMatcher=h;var i=u(d,"type","string",M,"conjunction");j(this,"type",i);var k=u(d,"style","string",N,"long");j(this,"style",k);var l=Q.localeData,m=y(Q.availableLocales,e,g),n=m.dataLocale,o=l[n],p=o.formats[i],q=p[k];j(this,"templatePair",q.Pair),j(this,"templateStart",q.Start),j(this,"templateMiddle",q.Middle),j(this,"templateEnd",q.End),j(this,"locale",m.locale),j(this,"initializedListFormat",this)}return c(b,[{key:"format",value:function(a){var b=this;if(!(b instanceof Object))throw new TypeError("Method Intl.ListFormat.prototype.format called on incompatible receiver ".concat(this.toString()));if(!l(b,"initializedListFormat"))throw new TypeError("Method Intl.ListFormat.prototype.format called on incompatible receiver ".concat(this.toString()));var c=D(a);return I(b,c)}},{key:"formatToParts",value:function(a){var b=this;if(!(b instanceof Object))throw new TypeError("Method Intl.ListFormat.prototype.formatToParts called on incompatible receiver ".concat(this.toString()));if(!l(b,"initializedListFormat"))throw new TypeError("Method Intl.ListFormat.prototype.formatToParts called on incompatible receiver ".concat(this.toString()));var c=D(a);return J(b,c)}},{key:"resolvedOptions",value:function(){var a=this;if(!(a instanceof Object))throw new TypeError("Method Intl.ListFormat.prototype.resolvedOptions called on incompatible receiver ".concat(this.toString()));if(!l(a,"initializedListFormat"))throw new TypeError("Method Intl.ListFormat.prototype.resolvedOptions called on incompatible receiver ".concat(this.toString()));var b=k(this,"locale"),c=k(this,"type"),d=k(this,"style");return{locale:b,type:c,style:d}}}],[{key:"supportedLocalesOf",value:function(a){var b=arguments[1],c=Q.availableLocales,d=Intl.getCanonicalLocales(a);return v(c,d,b)}},{key:"__addLocaleData",value:function(a){var b=a.data,c=a.locale,d=h();null==d&&g(c),Q.localeData[c]=b,Q.availableLocales.includes(c)||Q.availableLocales.push(c)}}]),b}();Object.defineProperty(S.prototype,Symbol.toStringTag,{writable:!1,enumerable:!1,value:"Intl.ListFormat",configurable:!0}),L||function(){if("undefined"==typeof Intl)throw new TypeError("Could not define Intl.ListFormat: Expected 'Intl' to exist. Remember to include polyfill for Intl.getCanonicalLocales before applying this polyfill");Intl.ListFormat=S}()})();
//# sourceMappingURL=index.min.js.map