umwd-components 0.1.299 → 0.1.300
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/YGEnums.js +6 -0
- package/dist/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/dist/_virtual/browser-ponyfill.js +6 -0
- package/dist/_virtual/clone.js +6 -0
- package/dist/_virtual/common.js +6 -0
- package/dist/_virtual/context.js +6 -0
- package/dist/_virtual/core.js +6 -0
- package/dist/_virtual/decode.js +6 -0
- package/dist/_virtual/deflate.js +6 -0
- package/dist/_virtual/dictionary-browser.js +6 -0
- package/dist/_virtual/dictionary.js +6 -0
- package/dist/_virtual/en-us.js +6 -0
- package/dist/_virtual/events.js +6 -0
- package/dist/_virtual/huffman.js +6 -0
- package/dist/_virtual/hyphen.js +6 -0
- package/dist/_virtual/index2.js +6 -0
- package/dist/_virtual/index3.js +6 -0
- package/dist/_virtual/index4.js +6 -0
- package/dist/_virtual/index5.js +6 -0
- package/dist/_virtual/index6.js +6 -0
- package/dist/_virtual/inflate.js +6 -0
- package/dist/_virtual/md5.js +6 -0
- package/dist/_virtual/prefix.js +6 -0
- package/dist/_virtual/scheduler.development.js +6 -0
- package/dist/_virtual/scheduler.production.min.js +6 -0
- package/dist/_virtual/streams.js +6 -0
- package/dist/_virtual/transform.js +6 -0
- package/dist/_virtual/trees.js +6 -0
- package/dist/_virtual/wrapAssembly.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +6 -0
- package/dist/node_modules/@react-pdf/fns/lib/index.js +6 -0
- package/dist/node_modules/@react-pdf/font/lib/index.browser.js +6 -0
- package/dist/node_modules/@react-pdf/image/lib/index.browser.js +6 -0
- package/dist/node_modules/@react-pdf/layout/lib/index.js +6 -0
- package/dist/node_modules/@react-pdf/layout/node_modules/emoji-regex/index.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/utils/common.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/adler32.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/constants.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/crc32.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/deflate.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/inffast.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/inflate.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/inftrees.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/messages.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/trees.js +6 -0
- package/dist/node_modules/@react-pdf/pdfkit/node_modules/pako/lib/zlib/zstream.js +6 -0
- package/dist/node_modules/@react-pdf/png-js/lib/png-js.browser.js +6 -0
- package/dist/node_modules/@react-pdf/primitives/src/index.js +6 -0
- package/dist/node_modules/@react-pdf/render/lib/index.js +6 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.browser.js +15 -0
- package/dist/node_modules/@react-pdf/renderer/node_modules/scheduler/cjs/scheduler.development.js +14 -0
- package/dist/node_modules/@react-pdf/renderer/node_modules/scheduler/cjs/scheduler.production.min.js +14 -0
- package/dist/node_modules/@react-pdf/renderer/node_modules/scheduler/index.js +6 -0
- package/dist/node_modules/@react-pdf/stylesheet/lib/index.js +6 -0
- package/dist/node_modules/@react-pdf/textkit/lib/textkit.js +17 -0
- package/dist/node_modules/abs-svg-path/index.js +6 -0
- package/dist/node_modules/base64-js/index.js +6 -0
- package/dist/node_modules/bidi-js/dist/bidi.js +6 -0
- package/dist/node_modules/brotli/dec/bit_reader.js +6 -0
- package/dist/node_modules/brotli/dec/context.js +6 -0
- package/dist/node_modules/brotli/dec/decode.js +6 -0
- package/dist/node_modules/brotli/dec/dictionary-browser.js +6 -0
- package/dist/node_modules/brotli/dec/dictionary.bin.js +6 -0
- package/dist/node_modules/brotli/dec/dictionary.js +6 -0
- package/dist/node_modules/brotli/dec/huffman.js +6 -0
- package/dist/node_modules/brotli/dec/prefix.js +6 -0
- package/dist/node_modules/brotli/dec/streams.js +6 -0
- package/dist/node_modules/brotli/dec/transform.js +6 -0
- package/dist/node_modules/brotli/decompress.js +6 -0
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/color-name/index.js +6 -0
- package/dist/node_modules/color-string/index.js +6 -0
- package/dist/node_modules/cross-fetch/dist/browser-ponyfill.js +6 -0
- package/dist/node_modules/crypto-js/core.js +6 -0
- package/dist/node_modules/crypto-js/md5.js +6 -0
- package/dist/node_modules/dfa/index.js +6 -0
- package/dist/node_modules/events/events.js +6 -0
- package/dist/node_modules/fast-deep-equal/index.js +6 -0
- package/dist/node_modules/fontkit/dist/browser-module.js +6 -0
- package/dist/node_modules/fontkit/node_modules/@swc/helpers/esm/_define_property.js +6 -0
- package/dist/node_modules/fontkit/node_modules/clone/clone.js +6 -0
- package/dist/node_modules/hsl-to-hex/index.js +6 -0
- package/dist/node_modules/hsl-to-rgb-for-reals/converter.js +6 -0
- package/dist/node_modules/hyphen/hyphen.js +6 -0
- package/dist/node_modules/hyphen/patterns/en-us.js +6 -0
- package/dist/node_modules/jay-peg/src/index.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/dac.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/dht.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/dqt.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/dri.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/eoi.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/exif.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/jfif.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/sof.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/soi.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/sos.js +6 -0
- package/dist/node_modules/jay-peg/src/markers/utils.js +6 -0
- package/dist/node_modules/media-engine/src/index.js +6 -0
- package/dist/node_modules/media-engine/src/operators.js +6 -0
- package/dist/node_modules/media-engine/src/parser.js +6 -0
- package/dist/node_modules/media-engine/src/queries.js +6 -0
- package/dist/node_modules/normalize-svg-path/index.js +6 -0
- package/dist/node_modules/object-assign/index.js +11 -0
- package/dist/node_modules/parse-svg-path/index.js +6 -0
- package/dist/node_modules/postcss-value-parser/lib/parse.js +6 -0
- package/dist/node_modules/postcss-value-parser/lib/unit.js +6 -0
- package/dist/node_modules/queue/index.js +6 -0
- package/dist/node_modules/restructure/src/Array.js +6 -0
- package/dist/node_modules/restructure/src/Base.js +6 -0
- package/dist/node_modules/restructure/src/Bitfield.js +6 -0
- package/dist/node_modules/restructure/src/Buffer.js +6 -0
- package/dist/node_modules/restructure/src/DecodeStream.js +6 -0
- package/dist/node_modules/restructure/src/EncodeStream.js +6 -0
- package/dist/node_modules/restructure/src/LazyArray.js +6 -0
- package/dist/node_modules/restructure/src/Number.js +6 -0
- package/dist/node_modules/restructure/src/Optional.js +6 -0
- package/dist/node_modules/restructure/src/Pointer.js +6 -0
- package/dist/node_modules/restructure/src/Reserved.js +6 -0
- package/dist/node_modules/restructure/src/String.js +6 -0
- package/dist/node_modules/restructure/src/Struct.js +6 -0
- package/dist/node_modules/restructure/src/VersionedStruct.js +6 -0
- package/dist/node_modules/restructure/src/utils.js +6 -0
- package/dist/node_modules/simple-swizzle/index.js +6 -0
- package/dist/node_modules/simple-swizzle/node_modules/is-arrayish/index.js +6 -0
- package/dist/node_modules/svg-arc-to-cubic-bezier/modules/index.js +6 -0
- package/dist/node_modules/tiny-inflate/index.js +6 -0
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/unicode-properties/dist/module.js +6 -0
- package/dist/node_modules/unicode-trie/index.js +6 -0
- package/dist/node_modules/unicode-trie/swap.js +6 -0
- package/dist/node_modules/yoga-layout/src/entrypoint/asmjs-async-web.js +6 -0
- package/dist/node_modules/yoga-layout/src/generated/YGEnums.js +6 -0
- package/dist/node_modules/yoga-layout/src/wrapAssembly.js +6 -0
- package/dist/src/components/e-commerce/invoice/InvoicePDF.js +7 -0
- package/dist/src/index.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/e-commerce/invoice/InvoicePDF.d.ts +13 -0
- package/dist/types/index.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/e-commerce/invoice/InvoicePDF.tsx +355 -0
- package/src/index.ts +5 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
function r(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{r as commonjsRequire};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
function n(n,t,r,e,o,i,u){try{var a=n[i](u),c=a.value}catch(n){return void r(n)}a.done?t(c):Promise.resolve(c).then(e,o)}function t(t){return function(){var r=this,e=arguments;return new Promise((function(o,i){var u=t.apply(r,e);function a(t){n(u,o,i,a,c,"next",t)}function c(t){n(u,o,i,a,c,"throw",t)}a(void 0)}))}}export{t as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import e from"./toPropertyKey.js";function r(r,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,e(n.key),n)}}function t(e,t,o){return t&&r(e.prototype,t),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}export{t as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import e from"./unsupportedIterableToArray.js";function r(r,t){var n="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(n)return(n=n.call(r)).next.bind(n);if(Array.isArray(r)||(n=e(r))||t&&r&&"number"==typeof r.length){n&&(r=n);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}export{r as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},t.apply(this,arguments)}export{t as default};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import t from"./typeof.js";function r(){
|
|
7
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
8
|
+
r=function(){return n};var e,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,r,e){t[r]=e.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(e){l=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var o=r&&r.prototype instanceof w?r:w,i=Object.create(o.prototype),c=new T(n||[]);return a(i,"_invoke",{value:G(t,e,c)}),i}function p(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}n.wrap=s;var y="suspendedStart",v="suspendedYield",d="executing",g="completed",m={};function w(){}function L(){}function b(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==o&&i.call(_,u)&&(x=_);var j=b.prototype=w.prototype=Object.create(x);function O(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function k(r,e){function n(o,a,c,u){var h=p(r[o],r,a);if("throw"!==h.type){var f=h.arg,l=f.value;return l&&"object"==t(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return n("throw",t,c,u)}))}u(h.arg)}var o;a(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}})}function G(t,r,n){var o=y;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=N(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var h=p(t,r,n);if("normal"===h.type){if(o=n.done?g:v,h.arg===m)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(o=g,n.method="throw",n.arg=h.arg)}}}function N(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,N(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function F(r){if(r||""===r){var n=r[u];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function t(){for(;++o<r.length;)if(i.call(r,o))return t.value=r[o],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(t(r)+" is not iterable")}return L.prototype=b,a(j,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:L,configurable:!0}),L.displayName=l(b,f,"GeneratorFunction"),n.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===L||"GeneratorFunction"===(r.displayName||r.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,f,"GeneratorFunction")),t.prototype=Object.create(j),t},n.awrap=function(t){return{__await:t}},O(k.prototype),l(k.prototype,h,(function(){return this})),n.AsyncIterator=k,n.async=function(t,r,e,o,i){void 0===i&&(i=Promise);var a=new k(s(t,r,e,o),i);return n.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),l(j,f,"Generator"),l(j,u,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=F,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(S),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),h=i.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!h)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=r,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),m},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),m}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:F(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},n}export{r as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import r from"./typeof.js";function t(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}export{t as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
function o(t){"@babel/helpers - typeof";return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(t)}export{o as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import r from"./arrayLikeToArray.js";function t(t,e){if(t){if("string"==typeof t)return r(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(t,e):void 0}}export{t as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import r from"../../../@babel/runtime/helpers/esm/regeneratorRuntime.js";import n from"../../../@babel/runtime/helpers/esm/asyncToGenerator.js";var e=function(r,n,e){var t;if(r>=0&&r>=e.length)return e;if(r<0&&Math.abs(r)>e.length)return e;var u=r<0?e.length+r:r;return Object.assign([],e,((t={})[u]=n(e[u]),t))},t=function(r){return Array.prototype.slice.call(r,0).reverse()},u=function(){for(var e=arguments.length,u=new Array(e),a=0;a<e;a++)u[a]=arguments[a];return function(){var e=n(r().mark((function n(e){var a,o,c,i,f,s,l,p=arguments;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(a=e,o=t(u),c=p.length,i=new Array(c>1?c-1:0),f=1;f<c;f++)i[f-1]=p[f];s=0;case 4:if(!(s<o.length)){r.next=12;break}return l=o[s],r.next=8,l.apply(void 0,[a].concat(i));case 8:a=r.sent;case 9:s+=1,r.next=4;break;case 12:return r.abrupt("return",a);case 13:case"end":return r.stop()}}),n)})));return function(r){return e.apply(this,arguments)}}()},a=function(r){return r?r.replace(/(^|\s)\S/g,(function(r){return r.toUpperCase()})):r},o=function(r){return Array.isArray(r)?r:[r]},c=function(){for(var r=arguments.length,n=new Array(r),e=0;e<r;e++)n[e]=arguments[e];return function(r){for(var e=r,u=t(n),a=arguments.length,o=new Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];for(var i=0;i<u.length;i+=1){e=u[i].apply(void 0,[e].concat(o))}return e}},i=function(r){return r.slice(0,r.length-1)},f=function r(n,e){for(var t=e instanceof Array?[]:{},u=Object.keys(e),a=0;a<u.length;a+=1){var o=u[a],c=n[o],i=typeof c;t[o]="function"===i?c(e[o]):c&&"object"===i?r(c,e[o]):e[o]}return t},s=function(r){return null==r},l=function(r,n,e){if(s(r))return e;for(var t=o(n),u=r,a=0;a<t.length;a+=1){if(s(u))return;u=u[t[a]]}return s(u)?e:u},p=function(r){return""===r?"":r[r.length-1]},v=function(r,n){return Object.entries(r).reduce((function(r,e,t){var u=e[0],a=e[1];return r[u]=n(a,u,t),r}),{})},h=function(r){var n=function(r){return/((-)?\d+\.?\d*)%/g.exec(""+r)}(r);if(n){var e=parseFloat(n[1]);return{percent:e/100,value:e}}return null},g=function(r,n){var e=o(r),t=Object.assign({},n);return e.forEach((function(r){delete t[r]})),t},y=function(r,n){for(var e={},t=0;t<r.length;t+=1){var u=r[t];u in n&&(e[u]=n[u])}return e},b=function(r,n){void 0===n&&(n=0);for(var e=new Array(n),t=0;t<n;t+=1)e[t]=r;return e},m=function(r){return r?r.charAt(0).toUpperCase()+r.slice(1):r};export{e as adjust,u as asyncCompose,a as capitalize,o as castArray,c as compose,i as dropLast,f as evolve,l as get,s as isNil,p as last,v as mapValues,h as matchPercent,g as omit,y as pick,b as repeat,t as reverse,m as upperFirst};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import t from"../../../@babel/runtime/helpers/esm/regeneratorRuntime.js";import e from"../../../@babel/runtime/helpers/esm/asyncToGenerator.js";import r from"../../../@babel/runtime/helpers/esm/extends.js";import n from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import i from"../../../cross-fetch/dist/browser-ponyfill.js";import{create as o}from"../../../fontkit/dist/browser-module.js";var s=["src","fontWeight","fontStyle"],a={thin:100,hairline:100,ultralight:200,extralight:200,light:300,normal:400,medium:500,semibold:600,demibold:600,bold:700,ultrabold:800,extrabold:800,heavy:900,black:900},u=function(){var r=e(t().mark((function e(r,n){var o,s;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i(r,n);case 2:return o=t.sent,t.next=5,o.arrayBuffer();case 5:return s=t.sent,t.abrupt("return",new Uint8Array(s));case 7:case"end":return t.stop()}}),e)})));return function(t,e){return r.apply(this,arguments)}}(),l=function(t,e){return t.fontWeight-e.fontWeight},f=function(){function r(t,e,r,n,i){this.src=t,this.fontFamily=e,this.fontStyle=r||"normal",this.fontWeight=n||400,this.data=null,this.options=i,this.loadResultPromise=null}var n=r.prototype;return n._load=function(){var r=e(t().mark((function e(){var r,n,i,s,a,l,f,c,h;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=this.options.postscriptName,e=this.src,m=void 0,d=void 0,p=void 0,m=e.split(",")[0],d="data:"===m.substring(0,5),p="base64"===m.split(";")[1],!d||!p){t.next=7;break}n=this.src.split(",")[1],i=new Uint8Array(atob(n).split("").map((function(t){return t.charCodeAt(0)}))),this.data=o(i,r),t.next=19;break;case 7:return s=this.options,a=s.headers,l=s.body,f=s.method,c=void 0===f?"GET":f,t.next=11,u(this.src,{method:c,body:l,headers:a});case 11:h=t.sent,this.data=o(h,r),t.next=19;break;case 15:t.next=19;break;case 18:this.data=t.sent;case 19:case"end":return t.stop()}var e,m,d,p}),e,this)})));return function(){return r.apply(this,arguments)}}(),n.load=function(){var r=e(t().mark((function e(){return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===this.loadResultPromise&&(this.loadResultPromise=this._load()),t.abrupt("return",this.loadResultPromise);case 2:case"end":return t.stop()}}),e,this)})));return function(){return r.apply(this,arguments)}}(),r}(),c=function(){function t(t){this.family=t,this.sources=[]}t.create=function(e){return new t(e)};var e=t.prototype;return e.register=function(t){var e,r=t.src,i=t.fontWeight,o=t.fontStyle,u=n(t,s),l="string"==typeof(e=i)?a[e]:e;this.sources.push(new f(r,this.family,o,l,u))},e.resolve=function(t){var e,r=t.fontWeight,n=void 0===r?400:r,i=t.fontStyle,o=void 0===i?"normal":i,s=this.sources.filter((function(t){return t.fontStyle===o})),a=s.find((function(t){return t.fontWeight===n}));if(a)return a;if(n>=400&&n<=500){var u=s.filter((function(t){return t.fontWeight<=n})),f=s.filter((function(t){return t.fontWeight>500}));e=s.filter((function(t){return t.fontWeight>=n&&t.fontWeight<500}))[0]||u[u.length-1]||f[0]}var c=s.filter((function(t){return t.fontWeight<n})).sort(l),h=s.filter((function(t){return t.fontWeight>n})).sort(l);if(n<400&&(e=c[c.length-1]||h[0]),n>500&&(e=h[0]||c[c.length-1]),!e)throw new Error("Could not resolve font for "+this.family+", fontWeight "+n);return e},t}(),h=["Courier","Courier-Bold","Courier-Oblique","Courier-BoldOblique","Helvetica","Helvetica-Bold","Helvetica-Oblique","Helvetica-BoldOblique","Times-Roman","Times-Bold","Times-Italic","Times-BoldItalic"];function m(){var n=this,i={},o=null,s=null;this.register=function(t){var e=t.family;if(i[e]||(i[e]=c.create(e)),t.fonts)for(var n=0;n<t.fonts.length;n+=1)i[e].register(r({family:e},t.fonts[n]));else i[e].register(t)},this.registerEmojiSource=function(t){var e=t.url,r=t.format,n=void 0===r?"png":r,i=t.builder,s=t.withVariationSelectors;o={url:e,format:n,builder:i,withVariationSelectors:void 0!==s&&s}},this.registerHyphenationCallback=function(t){s=t},this.getFont=function(t){var e=t.fontFamily;if(h.includes(e))return null;if(!i[e])throw new Error("Font family not registered: "+e+". Please register it calling Font.register() method.");return i[e].resolve(t)},this.load=function(){var i=e(t().mark((function e(i){var o,s,a,u,l,f,c;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=i.fontFamily,s="string"==typeof o?[o]:[].concat(o||[]),a=[],u=s.length,l=0;case 4:if(!(l<u)){t.next=14;break}if(f=s[l],!h.includes(f)){t.next=9;break}return t.abrupt("return");case 9:c=n.getFont(r({},i,{fontFamily:f})),a.push(c.load());case 11:l+=1,t.next=4;break;case 14:return t.next=16,Promise.all(a);case 16:case"end":return t.stop()}}),e)})));return function(t){return i.apply(this,arguments)}}(),this.reset=function(){for(var t=Object.keys(i),e=0;e<t.length;e+=1){var r=t[e];i[r].data=null}},this.clear=function(){i={}},this.getRegisteredFonts=function(){return i},this.getEmojiSource=function(){return o},this.getHyphenationCallback=function(){return s},this.getRegisteredFontFamilies=function(){return Object.keys(i)}}export{m as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import t from"../../../@babel/runtime/helpers/esm/regeneratorRuntime.js";import r from"../../../@babel/runtime/helpers/esm/asyncToGenerator.js";import e from"../../../cross-fetch/dist/browser-ponyfill.js";import n from"../../png-js/lib/png-js.browser.js";import i from"../../../jay-peg/src/index.js";var o="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u=[],f=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a=!1;function h(){a=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0;r<64;++r)u[r]=t[r],f[t.charCodeAt(r)]=r;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63}function c(t,r,e){for(var n,i,o=[],f=r;f<e;f+=3)n=(t[f]<<16)+(t[f+1]<<8)+t[f+2],o.push(u[(i=n)>>18&63]+u[i>>12&63]+u[i>>6&63]+u[63&i]);return o.join("")}function l(t){var r;a||h();for(var e=t.length,n=e%3,i="",o=[],f=16383,s=0,l=e-n;s<l;s+=f)o.push(c(t,s,s+f>l?l:s+f));return 1===n?(r=t[e-1],i+=u[r>>2],i+=u[r<<4&63],i+="=="):2===n&&(r=(t[e-2]<<8)+t[e-1],i+=u[r>>10],i+=u[r>>4&63],i+=u[r<<2&63],i+="="),o.push(i),o.join("")}function p(t,r,e,n,i){var o,u,f=8*i-n-1,s=(1<<f)-1,a=s>>1,h=-7,c=e?i-1:0,l=e?-1:1,p=t[r+c];for(c+=l,o=p&(1<<-h)-1,p>>=-h,h+=f;h>0;o=256*o+t[r+c],c+=l,h-=8);for(u=o&(1<<-h)-1,o>>=-h,h+=n;h>0;u=256*u+t[r+c],c+=l,h-=8);if(0===o)o=1-a;else{if(o===s)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,n),o-=a}return(p?-1:1)*u*Math.pow(2,o-n)}function g(t,r,e,n,i,o){var u,f,s,a=8*o-i-1,h=(1<<a)-1,c=h>>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,g=n?1:-1,y=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,u=h):(u=Math.floor(Math.log(r)/Math.LN2),r*(s=Math.pow(2,-u))<1&&(u--,s*=2),(r+=u+c>=1?l/s:l*Math.pow(2,1-c))*s>=2&&(u++,s/=2),u+c>=h?(f=0,u=h):u+c>=1?(f=(r*s-1)*Math.pow(2,i),u+=c):(f=r*Math.pow(2,c-1)*Math.pow(2,i),u=0));i>=8;t[e+p]=255&f,p+=g,f/=256,i-=8);for(u=u<<i|f,a+=i;a>0;t[e+p]=255&u,p+=g,u/=256,a-=8);t[e+p-g]|=128*y}var y={}.toString,w=Array.isArray||function(t){return"[object Array]"==y.call(t)};function d(){return m.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function v(t,r){if(d()<r)throw new RangeError("Invalid typed array length");return m.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=m.prototype:(null===t&&(t=new m(r)),t.length=r),t}function m(t,r,e){if(!(m.TYPED_ARRAY_SUPPORT||this instanceof m))return new m(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return A(this,t)}return b(this,t,r,e)}function b(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n);m.TYPED_ARRAY_SUPPORT?(t=r).__proto__=m.prototype:t=R(t,r);return t}(t,r,e,n):"string"==typeof r?function(t,r,e){"string"==typeof e&&""!==e||(e="utf8");if(!m.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|T(r,e);t=v(t,n);var i=t.write(r,e);i!==n&&(t=t.slice(0,i));return t}(t,r,e):function(t,r){if(P(r)){var e=0|_(r.length);return 0===(t=v(t,e)).length||r.copy(t,0,0,e),t}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(n=r.length)!=n?v(t,0):R(t,r);if("Buffer"===r.type&&w(r.data))return R(t,r.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,r)}function E(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function A(t,r){if(E(r),t=v(t,r<0?0:0|_(r)),!m.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function R(t,r){var e=r.length<0?0:0|_(r.length);t=v(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function _(t){if(t>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return 0|t}function P(t){return!(null==t||!t._isBuffer)}function T(t,r){if(P(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return tt(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function B(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return F(this,r,e);case"utf8":case"utf-8":return k(this,r,e);case"ascii":return N(this,r,e);case"latin1":case"binary":return z(this,r,e);case"base64":return D(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function U(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function S(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=m.from(r,n)),P(r))return 0===r.length?-1:I(t,r,e,n,i);if("number"==typeof r)return r&=255,m.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):I(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function I(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function a(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var h=-1;for(o=e;o<f;o++)if(a(t,o)===a(r,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===s)return h*u}else-1!==h&&(o-=o-h),h=-1}else for(e+s>f&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;l<s;l++)if(a(t,o+l)!==a(r,l)){c=!1;break}if(c)return o}return-1}function Y(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u<n;++u){var f=parseInt(r.substr(2*u,2),16);if(isNaN(f))return u;t[e+u]=f}return u}function x(t,r,e,n){return rt($(r,t.length-e),t,e,n)}function C(t,r,e,n){return rt(function(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}(r),t,e,n)}function O(t,r,e,n){return C(t,r,e,n)}function L(t,r,e,n){return rt(tt(r),t,e,n)}function M(t,r,e,n){return rt(function(t,r){for(var e,n,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)n=(e=t.charCodeAt(u))>>8,i=e%256,o.push(i),o.push(n);return o}(r,t.length-e),t,e,n)}function D(t,r,e){return 0===r&&e===t.length?l(t):l(t.slice(r,e))}function k(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,u,f,s,a=t[i],h=null,c=a>239?4:a>223?3:a>191?2:1;if(i+c<=e)switch(c){case 1:a<128&&(h=a);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&a)<<6|63&o)>127&&(h=s);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(s=(15&a)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(h=s);break;case 4:o=t[i+1],u=t[i+2],f=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&f)&&(s=(15&a)<<18|(63&o)<<12|(63&u)<<6|63&f)>65535&&s<1114112&&(h=s)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}return function(t){var r=t.length;if(r<=j)return String.fromCharCode.apply(String,t);var e="",n=0;for(;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=j));return e}(n)}m.TYPED_ARRAY_SUPPORT=void 0===o.TYPED_ARRAY_SUPPORT||o.TYPED_ARRAY_SUPPORT,d(),m.poolSize=8192,m._augment=function(t){return t.__proto__=m.prototype,t},m.from=function(t,r,e){return b(null,t,r,e)},m.TYPED_ARRAY_SUPPORT&&(m.prototype.__proto__=Uint8Array.prototype,m.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&m[Symbol.species]),m.alloc=function(t,r,e){return function(t,r,e,n){return E(r),r<=0?v(t,r):void 0!==e?"string"==typeof n?v(t,r).fill(e,n):v(t,r).fill(e):v(t,r)}(null,t,r,e)},m.allocUnsafe=function(t){return A(null,t)},m.allocUnsafeSlow=function(t){return A(null,t)},m.isBuffer=function(t){return null!=t&&(!!t._isBuffer||et(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&et(t.slice(0,0))}(t))},m.compare=function(t,r){if(!P(t)||!P(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i<o;++i)if(t[i]!==r[i]){e=t[i],n=r[i];break}return e<n?-1:n<e?1:0},m.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.concat=function(t,r){if(!w(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return m.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var n=m.allocUnsafe(r),i=0;for(e=0;e<t.length;++e){var o=t[e];if(!P(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},m.byteLength=T,m.prototype._isBuffer=!0,m.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)U(this,r,r+1);return this},m.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)U(this,r,r+3),U(this,r+1,r+2);return this},m.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)U(this,r,r+7),U(this,r+1,r+6),U(this,r+2,r+5),U(this,r+3,r+4);return this},m.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?k(this,0,t):B.apply(this,arguments)},m.prototype.equals=function(t){if(!P(t))throw new TypeError("Argument must be a Buffer");return this===t||0===m.compare(this,t)},m.prototype.inspect=function(){var t="";return this.length>0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),"<Buffer "+t+">"},m.prototype.compare=function(t,r,e,n,i){if(!P(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),u=(e>>>=0)-(r>>>=0),f=Math.min(o,u),s=this.slice(n,i),a=t.slice(r,e),h=0;h<f;++h)if(s[h]!==a[h]){o=s[h],u=a[h];break}return o<u?-1:u<o?1:0},m.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},m.prototype.indexOf=function(t,r,e){return S(this,t,r,e,!0)},m.prototype.lastIndexOf=function(t,r,e){return S(this,t,r,e,!1)},m.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var i=this.length-r;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return Y(this,t,r,e);case"utf8":case"utf-8":return x(this,t,r,e);case"ascii":return C(this,t,r,e);case"latin1":case"binary":return O(this,t,r,e);case"base64":return L(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function N(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}function z(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function F(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=Q(t[o]);return i}function V(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function G(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function J(t,r,e,n,i,o){if(!P(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function Z(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function q(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>8*(n?i:3-i)&255}function W(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function X(t,r,e,n,i){return i||W(t,0,e,4),g(t,r,e,n,23,4),e+4}function H(t,r,e,n,i){return i||W(t,0,e,8),g(t,r,e,n,52,8),e+8}m.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),m.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=m.prototype;else{var i=r-t;e=new m(i,void 0);for(var o=0;o<i;++o)e[o]=this[o+t]}return e},m.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||G(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},m.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||G(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},m.prototype.readUInt8=function(t,r){return r||G(t,1,this.length),this[t]},m.prototype.readUInt16LE=function(t,r){return r||G(t,2,this.length),this[t]|this[t+1]<<8},m.prototype.readUInt16BE=function(t,r){return r||G(t,2,this.length),this[t]<<8|this[t+1]},m.prototype.readUInt32LE=function(t,r){return r||G(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},m.prototype.readUInt32BE=function(t,r){return r||G(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},m.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||G(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*r)),n},m.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||G(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},m.prototype.readInt8=function(t,r){return r||G(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},m.prototype.readInt16LE=function(t,r){r||G(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},m.prototype.readInt16BE=function(t,r){r||G(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},m.prototype.readInt32LE=function(t,r){return r||G(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},m.prototype.readInt32BE=function(t,r){return r||G(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},m.prototype.readFloatLE=function(t,r){return r||G(t,4,this.length),p(this,t,!0,23,4)},m.prototype.readFloatBE=function(t,r){return r||G(t,4,this.length),p(this,t,!1,23,4)},m.prototype.readDoubleLE=function(t,r){return r||G(t,8,this.length),p(this,t,!0,52,8)},m.prototype.readDoubleBE=function(t,r){return r||G(t,8,this.length),p(this,t,!1,52,8)},m.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||J(this,t,r,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[r]=255&t;++o<e&&(i*=256);)this[r+o]=t/i&255;return r+e},m.prototype.writeUIntBE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||J(this,t,r,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},m.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,1,255,0),m.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},m.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):Z(this,t,r,!0),r+2},m.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,2,65535,0),m.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):Z(this,t,r,!1),r+2},m.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):q(this,t,r,!0),r+4},m.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,4,4294967295,0),m.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):q(this,t,r,!1),r+4},m.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);J(this,t,r,e,i-1,-i)}var o=0,u=1,f=0;for(this[r]=255&t;++o<e&&(u*=256);)t<0&&0===f&&0!==this[r+o-1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},m.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);J(this,t,r,e,i-1,-i)}var o=e-1,u=1,f=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===f&&0!==this[r+o+1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},m.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,1,127,-128),m.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},m.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):Z(this,t,r,!0),r+2},m.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,2,32767,-32768),m.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):Z(this,t,r,!1),r+2},m.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,4,2147483647,-2147483648),m.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):q(this,t,r,!0),r+4},m.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||J(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),m.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):q(this,t,r,!1),r+4},m.prototype.writeFloatLE=function(t,r,e){return X(this,t,r,!0,e)},m.prototype.writeFloatBE=function(t,r,e){return X(this,t,r,!1,e)},m.prototype.writeDoubleLE=function(t,r,e){return H(this,t,r,!0,e)},m.prototype.writeDoubleBE=function(t,r,e){return H(this,t,r,!1,e)},m.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,o=n-e;if(this===t&&e<r&&r<n)for(i=o-1;i>=0;--i)t[i+r]=this[i+e];else if(o<1e3||!m.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),r);return o},m.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!m.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var o;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var u=P(t)?t:$(new m(t,n).toString()),f=u.length;for(o=0;o<e-r;++o)this[o+r]=u[o%f]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function Q(t){return t<16?"0"+t.toString(16):t.toString(16)}function $(t,r){var e;r=r||1/0;for(var n=t.length,i=null,o=[],u=0;u<n;++u){if((e=t.charCodeAt(u))>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function tt(t){return function(t){var r,e,n,i,o,u;a||h();var c=t.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[c-2]?2:"="===t[c-1]?1:0,u=new s(3*c/4-o),n=o>0?c-4:c;var l=0;for(r=0,e=0;r<n;r+=4,e+=3)i=f[t.charCodeAt(r)]<<18|f[t.charCodeAt(r+1)]<<12|f[t.charCodeAt(r+2)]<<6|f[t.charCodeAt(r+3)],u[l++]=i>>16&255,u[l++]=i>>8&255,u[l++]=255&i;return 2===o?(i=f[t.charCodeAt(r)]<<2|f[t.charCodeAt(r+1)]>>4,u[l++]=255&i):1===o&&(i=f[t.charCodeAt(r)]<<10|f[t.charCodeAt(r+1)]<<4|f[t.charCodeAt(r+2)]>>2,u[l++]=i>>8&255,u[l++]=255&i),u}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(K,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function rt(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function et(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}n.isValid=function(t){try{return!!new n(t)}catch(t){return!1}};var nt=function(t){if(this.data=null,this.width=null,this.height=null,this.data=t,65496!==t.readUInt16BE(0))throw new Error("SOI not found in JPEG");for(var r=i.decode(this.data),e=0;e<r.length;e+=1){var n=r[e];"EXIF"===n.name&&n.entries.orientation&&(this.orientation=n.entries.orientation),"SOF"===n.name&&(this.width||(this.width=n.width),this.height||(this.height=n.height))}if(this.orientation>4){var o=[this.height,this.width];this.width=o[0],this.height=o[1]}};nt.isValid=function(t){return t&&m.isBuffer(t)&&65496===t.readUInt16BE(0)};var it,ot,ut,ft,st,at=(ot=(void 0===(it={limit:30})?{}:it).limit,ut=void 0===ot?100:ot,ft={},st=[],{get:function(t){return ft[t]},set:function(t,r){st.push(t),st.length>ut&&delete ft[st.shift()],ft[t]=r},reset:function(){ft={},st=[]},length:function(){return st.length}}),ht=function(){var n=r(t().mark((function r(n,i){var o,u;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(n,i);case 2:return o=t.sent,t.next=5,o.buffer?o.buffer():o.arrayBuffer();case 5:return u=t.sent,t.abrupt("return","Buffer"===u.constructor.name?u:m.from(u));case 7:case"end":return t.stop()}}),r)})));return function(t,r){return n.apply(this,arguments)}}(),ct=function(t){var r=t.toLowerCase();return"jpg"===r||"jpeg"===r||"png"===r};function lt(t,r){switch(r.toLowerCase()){case"jpg":case"jpeg":return new nt(t);case"png":return new n(t);default:return null}}var pt=function(t){var r=function(t){var r;return nt.isValid(t)?r="jpg":n.isValid(t)&&(r="png"),r}(t);return r?new Promise((function(e){return e(lt(t,r))})):Promise.resolve()},gt=function(){var e=r(t().mark((function r(e){var n,i,o,u,f;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=e.type)&&"application/octet-stream"!==n){t.next=7;break}return t.next=4,e.arrayBuffer();case 4:return i=t.sent,o=m.from(i),t.abrupt("return",pt(o));case 7:if(n.startsWith("image/")){t.next=9;break}throw new Error("Invalid blob type: "+n);case 9:if(u=n.replace("image/",""),ct(u)){t.next=12;break}throw new Error("Invalid blob type: "+n);case 12:return t.next=14,e.arrayBuffer();case 14:return f=t.sent,t.abrupt("return",lt(m.from(f),u));case 16:case"end":return t.stop()}}),r)})));return function(t){return e.apply(this,arguments)}}(),yt=function(t){var r=137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7],e=255===t[0]&&216===t[1]&&255===t[2],n="";if(r)n="png";else{if(!e)throw new Error("Not valid image extension");n="jpg"}return n},wt=function(){var e=r(t().mark((function r(e){var n,i,o,u,f,s,a,h;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.uri,i=e.body,o=e.headers,u=e.method,f=void 0===u?"GET":u,s=e.credentials,t.next=7;break;case 4:t.t0=t.sent,t.next=10;break;case 7:return t.next=9,ht(n,{body:i,headers:o,method:f,credentials:s});case 9:t.t0=t.sent;case 10:return a=t.t0,h=yt(a),t.abrupt("return",lt(a,h));case 13:case"end":return t.stop()}}),r)})));return function(t){return e.apply(this,arguments)}}(),dt=function(t,r){var e,n,i=(void 0===r?{}:r).cache,o=void 0===i||i,u=t.data?t.data.toString():t.uri;if("undefined"!=typeof Blob&&t instanceof Blob)e=gt(t);else if(m.isBuffer(t))e=pt(t);else{if(o&&at.get(u))return at.get(u);n=t.uri,e=/^data:image\/[a-zA-Z]*;base64,[^"]*/g.test(n)?function(t){var r=t.uri,e=/^data:image\/([a-zA-Z]*);base64,([^"]*)/g.exec(r),n=e[1],i=e[2];if(!ct(n))throw new Error("Base64 image invalid format: "+n);return new Promise((function(t){return t(lt(m.from(i,"base64"),n))}))}(t):"object"==typeof t&&t.data?function(t){if(t.data&&t.format)return new Promise((function(r){return r(lt(t.data,t.format))}));throw new Error("Invalid data given for local file: "+JSON.stringify(t))}(t):wt(t)}if(!e)throw new Error("Cannot resolve image");return o&&at.set(u,e),e};export{dt as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* UMWD-Components
|
|
3
|
+
* @copyright Jelle Paulus
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/
|
|
6
|
+
import{compose as t,asyncCompose as n,isNil as e,upperFirst as r,matchPercent as i,pick as o,evolve as a,omit as u,capitalize as l,mapValues as c,get as s,castArray as d,last as p}from"../../fns/lib/index.js";import{Document as f,Svg as h,Text as g,Image as v,Link as m,Note as y,Canvas as b,TextInstance as x,Defs as w,Page as j,Tspan as O}from"../../primitives/src/index.js";import C,{flatten as k,transformColor as B,processTransform as T}from"../../stylesheet/lib/index.js";import R,{bidi as A,linebreaker as S,justification as F,textDecoration as W,scriptItemizer as L,wordHyphenation as P}from"../../textkit/lib/textkit.js";import N from"../../../@babel/runtime/helpers/esm/createClass.js";import{PDFFont as E}from"../../pdfkit/lib/pdfkit.browser.js";import M from"../../../@babel/runtime/helpers/esm/regeneratorRuntime.js";import H from"../../../@babel/runtime/helpers/esm/asyncToGenerator.js";import{loadYoga as G}from"../../../yoga-layout/src/entrypoint/asmjs-async-web.js";import z from"../../../@babel/runtime/helpers/esm/extends.js";import I from"../node_modules/emoji-regex/index.js";import D from"../../image/lib/index.browser.js";import Y from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import{Overflow as q,Wrap as V,Align as X,FlexDirection as U,Justify as J,Edge as _,Display as K,PositionType as Q,Gutter as Z,MeasureMode as $}from"../../../yoga-layout/src/generated/YGEnums.js";var tt=function(t){var n=0,e="",r=[];return t.forEach((function(t){e+=t.string,r.push({start:n,end:n+t.string.length,attributes:t.attributes||{}}),n+=t.string.length})),{string:e,runs:r}},nt=function(t,n){switch(n){case"uppercase":return t.toUpperCase();case"lowercase":return t.toLowerCase();case"capitalize":return l(t);case"upperfirst":return r(t);default:return t}},et=function(){function t(t){this.name=t,this.src=E.open(null,t)}var n=t.prototype;return n.encode=function(t){return this.src.encode(t)},n.layout=function(t){var n=this,e=this.encode(t),r=e[0],i=e[1];return{positions:i,stringIndices:i.map((function(t,n){return n})),glyphs:r.map((function(t,e){var r=n.getGlyph(parseInt(t,16));return r.advanceWidth=i[e].advanceWidth,r}))}},n.glyphForCodePoint=function(t){var n=this.getGlyph(t);return n.advanceWidth=400,n},n.getGlyph=function(t){return{id:t,_font:this.src,codePoints:[t],isLigature:!1,name:this.src.font.characterToGlyph(t)}},n.hasGlyphForCodePoint=function(t){return".notdef"!==this.src.font.characterToGlyph(t)},N(t,[{key:"ascent",get:function(){return 900}},{key:"capHeight",get:function(){switch(this.name){case"Times-Roman":case"Times-Bold":case"Times-Italic":case"Times-BoldItalic":return 650;case"Courier":case"Courier-Bold":case"Courier-Oblique":case"Courier-BoldOblique":return 550;default:return 690}}},{key:"xHeight",get:function(){switch(this.name){case"Times-Roman":case"Times-Bold":case"Times-Italic":case"Times-BoldItalic":return 440;case"Courier":case"Courier-Bold":case"Courier-Oblique":case"Courier-BoldOblique":return 390;default:return 490}}},{key:"descent",get:function(){switch(this.name){case"Times-Roman":case"Times-Bold":case"Times-Italic":case"Times-BoldItalic":return-220;case"Courier":case"Courier-Bold":case"Courier-Oblique":case"Courier-BoldOblique":return-230;default:return-200}}},{key:"lineGap",get:function(){return 0}},{key:"unitsPerEm",get:function(){return 1e3}}]),t}(),rt={},it=[173],ot=function(t){return t.attributes.fontSize||12},at=function(t){if(rt[t])return rt[t];var n=new et(t);return rt[t]=n,n},ut=function(){return at("Helvetica")},lt=function(t,n,e){var r=[].concat(n,[ut()]);e&&r.unshift(e);for(var i=0;i<r.length;i+=1){var o=r[i];if(!it.includes(t)&&o&&o.hasGlyphForCodePoint&&o.hasGlyphForCodePoint(t))return o}return ut()},ct=function(){return function(t){for(var n=t.string,e=t.runs,r=null,i=null,o=0,a=0,u=[],l=0;l<e.length;l+=1){var c=e[l],s="string"==typeof c.attributes.font?at(c.attributes.font):c.attributes.font;if(0===n.length){u.push({start:0,end:0,attributes:{font:s}});break}for(var d=n.slice(c.start,c.end),f=0;f<d.length;f+=1){var h=d[f],g=h.codePointAt(),v=lt(g,c.attributes.font,r),m=ot(c);v===r&&m===i&&v.unitsPerEm===r.unitsPerEm||(r&&u.push({start:o,end:a,attributes:{font:r,scale:i/r.unitsPerEm}}),r=v,i=m,o=a),a+=h.length}}if(o<n.length){var y=ot(p(e));u.push({start:o,end:n.length,attributes:{font:r,scale:y/r.unitsPerEm}})}return{string:n,runs:u}}},st={bidi:A,linebreaker:S,justification:F,textDecoration:W,scriptItemizer:L,wordHyphenation:P,fontSubstitution:ct},dt=R(st),pt=function t(n,e){if(!e)return[{string:""}];for(var r=[],i=e.props,o=i.fill,a=void 0===o?"black":o,u=i.fontFamily,l=void 0===u?"Helvetica":u,c=i.fontWeight,s=i.fontStyle,d=i.fontSize,p=void 0===d?18:d,f=i.textDecorationColor,h=i.textDecorationStyle,g=i.textTransform,v=i.opacity,m=e.props.textDecoration,y=n?n.getFont({fontFamily:l,fontWeight:c,fontStyle:s}):null,b={font:y?y.data:l,opacity:v,fontSize:p,color:a,underlineStyle:h,underline:"underline"===m||"underline line-through"===m||"line-through underline"===m,underlineColor:f||a,strike:"line-through"===m||"underline line-through"===m||"line-through underline"===m,strikeStyle:h,strikeColor:f||a},w=0;w<e.children.length;w+=1){var j=e.children[w];j.type===x?r.push({string:nt(j.value,g),attributes:b}):j&&r.push.apply(r,t(j))}return r},ft=function(t,n){return tt(pt(t,n))},ht=999999999999,gt={before:-.5,after:-.5},vt=function(t,n){if(!n.children)return n;var e=n.children.map(function(t){return function(n){var e,r,i=ft(t,n),o={x:(null===(e=n.props)||void 0===e?void 0:e.x)||0,y:(null===(r=n.props)||void 0===r?void 0:r.y)||0,width:ht,height:ht},a=n.props.hyphenationCallback||(null==t?void 0:t.getHyphenationCallback())||null,u=dt(i,o,{hyphenationCallback:a,shrinkWhitespaceFactor:gt}).flat();return Object.assign({},n,{lines:u})}}(t));return Object.assign({},n,{children:e})},mt=function(t){return t.type===w},yt=function(t){return t.type!==w},bt=/url\(['"]?#([^'"]+)['"]?\)/,xt=function(t,n){if(n)return bt.test(n)?t[n.match(bt)[1]]:n},wt=function t(n){return function(e){var r,i,o=xt(n,null===(r=e.props)||void 0===r?void 0:r.fill),a=xt(n,null===(i=e.props)||void 0===i?void 0:i.clipPath),u=Object.assign({},e.props,{fill:o,clipPath:a}),l=e.children?e.children.map(t(n)):void 0;return Object.assign({},e,{props:u,children:l})}},jt=function(t){if(!t.children)return t;var n=(((t.children||[]).find(mt)||{}).children||[]).reduce((function(t,n){var e,r=null===(e=n.props)||void 0===e?void 0:e.id;return r&&(t[r]=n),t}),{}),e=t.children.map(wt(n));return Object.assign({},t,{children:e})},Ot=function(t){return function(t){if(!t.children)return t;var n=t.children.filter(yt);return Object.assign({},t,{children:n})}(jt(t))},Ct=function(t){if(!t)return null;var n=t.split(/[,\s]+/).map(parseFloat);return 4!==n.length?null:{minX:n[0],minY:n[1],maxX:n[2],maxY:n[3]}},kt=["x","y","clipPath","clipRule","opacity","fill","fillOpacity","fillRule","stroke","strokeLinecap","strokeLinejoin","strokeOpacity","strokeWidth","textAnchor","dominantBaseline","color","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","opacity","textDecoration","lineHeight","textAlign","visibility","wordSpacing"],Bt=function t(n){if(!n.children)return n;var e=function(t){var n=t.props||{};return o(kt,n)}(n),r=n.children.map((function(n){var r=Object.assign({},e,n.props||{}),i=Object.assign({},n,{props:r});return t(i)}));return Object.assign({},n,{children:r})},Tt=function(t){var n=t.replace(/[\s\r\t\n]+/gm," ").replace(/^defer\s/,"").split(" ");return{align:n[0]||"xMidYMid",meetOrSlice:n[1]||"meet"}},Rt=["width","height","color","stroke","strokeWidth","opacity","fillOpacity","strokeOpacity","fill","fillRule","clipPath","offset","transform","strokeLinejoin","strokeLinecap","strokeDasharray"],At=["y","y1","y2","height","cy","ry"],St=["x","x1","x2","width","cx","rx"],Ft=function(t){return function(n){return n.type===t}},Wt=Ft(h),Lt=Ft(g),Pt=Ft(x),Nt=function(t){var n=i(t);return n?n.percent:parseFloat(t)},Et=function(t){return function(n){var e=function(t){return function(n){return c(n,(function(n,e){var r=i(n);return r&&At.includes(e)?r.percent*t.height:r&&St.includes(e)?r.percent*t.width:n}))}}(t)(n.props);return e=a({x:parseFloat,x1:parseFloat,x2:parseFloat,y:parseFloat,y1:parseFloat,y2:parseFloat,r:parseFloat,rx:parseFloat,ry:parseFloat,cx:parseFloat,cy:parseFloat,width:parseFloat,height:parseFloat,offset:Nt,fill:B,opacity:Nt,stroke:B,stopOpacity:Nt,stopColor:B,transform:T},e),Object.assign({},n,{props:e})}},Mt=function(t){var n=t.style||{},e=Object.assign({},n,t.props);return Object.assign({},t,{props:e})},Ht=function(t){var n=c(t.props,(function(t){return"none"===t?null:t}));return Object.assign({},t,{props:n})},Gt=function(t){var n=t.props||{},e=o(Rt,n),r=Object.assign({},e,t.style||{});return Object.assign({},t,{style:r})},zt=function(t){var n=a({width:parseFloat,height:parseFloat,viewBox:Ct,preserveAspectRatio:Tt},t.props);return Object.assign({},t,{props:n})},It=function(t){if(!Lt(t))return t;if(!t.children)return t;var n=t.children.map((function(t){return Pt(t)?function(t){return{type:O,props:{},children:[t]}}(t):t}));return Object.assign({},t,{children:n})},Dt=function t(n){return function(e){if(Lt(e))return vt(n,e);if(!e.children)return e;var r=e.children.map(t(n));return Object.assign({},e,{children:r})}},Yt=function n(e){return function(r){if(!r.children)return r;var i=t(n(e),function(n){return t(Et(n),It,Ht,Mt)}(e)),o=r.children.map(i);return Object.assign({},r,{children:o})}},qt=function(n,e){var r=function(t){var n=Ct(t.props.viewBox);return n?{width:n.maxX,height:n.maxY}:t.props.width&&t.props.height?{width:parseFloat(t.props.width),height:parseFloat(t.props.height)}:{width:0,height:0}}(n);return t(Ot,Dt(e),zt,Gt,Bt,Yt(r))(n)},Vt=function(){var t=H(M().mark((function t(){var n,e,r;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,G();case 2:return n=t.sent,(e=n.Config.create()).setPointScaleFactor(0),r={create:function(){return n.Node.createWithConfig(e)}},t.abrupt("return",{node:r});case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Xt=function(){var t=H(M().mark((function t(n){var e;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Vt();case 2:return e=t.sent,t.abrupt("return",Object.assign({},n,{yoga:e}));case 4:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),Ut=function(t){return t.style.zIndex},Jt=function(t,n){var e=Ut(t),r=Ut(n);return e||r?e?r?r-e:-1:1:0},_t={},Kt=I(),Qt=function(t){return"️"!==t},Zt=function(t,n){return Array.from(t).filter(n?function(){return!0}:Qt).map((function(t){return t.codePointAt(0).toString(16)})).join("-")},$t=function(t,n){if(!n||!n.url&&!n.builder)return[];var e=[];return Array.from(t.matchAll(Kt)).forEach((function(t){var r,i=t[0];if(!_t[i]||_t[i].loading){var o=function(t,n){var e=n.url,r=n.format,i=n.builder,o=n.withVariationSelectors;return"function"==typeof i?i(Zt(t,o)):""+e+Zt(t,o)+"."+r}(i,n);_t[i]={loading:!0};var a=(r=D,function(){return r.apply(void 0,arguments).then((function(t){return t}),(function(t){return t}))});e.push(a({uri:o}).then((function(t){_t[i].loading=!1,_t[i].data=t.data})))}})),e},tn=["©️","®","™"],nn=function(t){var n,e,r;return(null===(n=t.props)||void 0===n?void 0:n.src)||(null===(e=t.props)||void 0===e?void 0:e.source)||(null===(r=t.props)||void 0===r?void 0:r.href)},en=function(){var t=H(M().mark((function t(n){var e;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n){t.next=6;break}return t.next=3,n();case 3:t.t0=t.sent,t.next=9;break;case 6:return t.next=8,n;case 8:t.t0=t.sent;case 9:return e=t.t0,t.abrupt("return","string"==typeof e?{uri:e}:e);case 11:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),rn=function(){var t=H(M().mark((function t(n){var e,r,i;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=nn(n),r=n.props.cache,e){t.next=5;break}return console.warn(!1,'Image should receive either a "src" or "source" prop'),t.abrupt("return");case 5:return t.prev=5,t.next=8,en(e);case 8:if(i=t.sent){t.next=11;break}throw new Error('Image\'s "src" or "source" prop returned '+i);case 11:return t.next=13,D(i,{cache:r});case 13:n.image=t.sent,n.image.key=i.data?i.data.toString():i.uri,t.next=21;break;case 17:t.prev=17,t.t0=t.catch(5),n.image={width:0,height:0,key:null},console.warn(t.t0.message);case 21:case"end":return t.stop()}}),t,null,[[5,17]])})));return function(n){return t.apply(this,arguments)}}(),on=function(t){return t.type===v},an=function(t,n){for(var e,r=[],i=(null===(e=n.children)||void 0===e?void 0:e.slice(0))||[],o=t?t.getEmojiSource():null;i.length>0;){var a,u=i.shift();on(u)&&r.push(rn(u)),t&&null!==(a=u.style)&&void 0!==a&&a.fontFamily&&r.push(t.load(u.style)),"string"==typeof u&&r.push.apply(r,$t(u,o)),"string"==typeof u.value&&r.push.apply(r,$t(u.value,o)),u.children&&u.children.forEach((function(t){i.push(t)}))}return r},un=function(){var t=H(M().mark((function t(n,e){var r;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=an(e,n),t.next=3,Promise.all(r);case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(n,e){return t.apply(this,arguments)}}(),ln={color:"blue",textDecoration:"underline"},cn=function(t,n){var e=n.style;return function(t){return t.type===m}(n)&&(e=Array.isArray(n.style)?[ln].concat(n.style):[ln,n.style]),C(t,e)},sn=function t(n){return function(e){var r=cn(n,e);if(!e.children)return Object.assign({},e,{style:r});var i=e.children.map(t(n));return Object.assign({},e,{style:r,children:i})}},dn=function(t){var n,e,r,i,o=(null===(n=t.props)||void 0===n?void 0:n.dpi)||72,a=(null===(e=t.box)||void 0===e?void 0:e.width)||t.style.width,u=(null===(r=t.box)||void 0===r?void 0:r.height)||t.style.height,l=(null===(i=t.props)||void 0===i?void 0:i.orientation)||"portrait";return sn({width:a,height:u,orientation:l,dpi:o})(t)},pn=function(t){return function(n){var r,i;return e(null===(r=n.style)||void 0===r?void 0:r[t])?"50%":null===(i=n.style)||void 0===i?void 0:i[t]}},fn=function t(n){var e=function(t){if(!t.box)return{};var n=t.box,e=n.left,r=n.top,o=n.width,a=n.height,u=pn("transformOriginX")(t),l=pn("transformOriginY")(t),c=i(u),s=i(l);return{left:e+(c?o*c.percent:u),top:r+(s?a*s.percent:l)}}(n),r=Object.assign({},n,{origin:e});if(!n.children)return r;var o=n.children.map(t);return Object.assign({},r,{children:o})},hn=["portrait","landscape"],gn=function(t){return"landscape"===function(t){var n,e=(null===(n=t.props)||void 0===n?void 0:n.orientation)||"portrait";return hn.includes(e)?e:"portrait"}(t)},vn={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224],ID1:[153,243]},mn=function(t){return{width:t[0],height:t[1]}},yn=function(t){var n,e,r,i=(null===(n=t.props)||void 0===n?void 0:n.size)||"A4",o=parseFloat((null===(e=t.props)||void 0===e?void 0:e.dpi)||72),a=typeof i;return r=function(t,n){return{width:t.width?t.width*n:t.width,height:t.height?t.height*n:t.height}}(r="string"===a?mn(vn[i.toUpperCase()]):Array.isArray(i)?mn(i):"number"===a?mn([i]):i,o/72),gn(t)?function(t){return{width:t.height,height:t.width}}(r):r},bn=function(t){var n=yn(t),e=k(t.style||{});return z({},t,{style:z({},e,n)})},xn=function(t){var n;return!0===(null===(n=t.props)||void 0===n?void 0:n.fixed)},wn=function(t,n){var e=function(t,n){var e=s(t,["box","top"],0),r=s(t,["props","widows"],2),i=s(t,["props","orphans"],2),o=t.lines.length,a=function(t,n){var e=0;if(!t.lines)return 0;for(var r=0;r<t.lines.length;r+=1){var i=t.lines[r];if(e+i.box.height>n)return r;e+=i.box.height}return t.lines.length}(t,n-e);return 0===a?0:o<i?o:a<i||o<i+r?0:o===i+r?i:o-a<r?o-r:a}(t,n),r=function(t,n){var e=0;if(!t.lines)return e;for(var r=0;r<n;r+=1){var i=t.lines[r];if(!i)break;e+=i.box.height}return e}(t,e),i=t.box.height-r;return[Object.assign({},t,{box:z({},t.box,{height:r,borderBottomWidth:0}),style:z({},t.style,{marginBottom:0,paddingBottom:0,borderBottomWidth:0,borderBottomLeftRadius:0,borderBottomRightRadius:0}),lines:t.lines.slice(0,e)}),Object.assign({},t,{box:z({},t.box,{top:0,height:i,borderTopWidth:0}),style:z({},t.style,{marginTop:0,paddingTop:0,borderTopWidth:0,borderTopLeftRadius:0,borderTopRightRadius:0}),lines:t.lines.slice(e)})]},jn=function(t,n){if(!t)return[null,null];var r=function(t){var n;return(null===(n=t.box)||void 0===n?void 0:n.top)||0}(t),i=Object.assign({},t,{box:z({},t.box,{borderBottomWidth:0}),style:z({},t.style,{marginBottom:0,paddingBottom:0,borderBottomWidth:0,borderBottomLeftRadius:0,borderBottomRightRadius:0})});i.style.height=n-r;var o=function(t){var n;return!e(null===(n=t.style)||void 0===n?void 0:n.height)}(t)?t.box.height-(n-r):null,a=Object.assign({},t,{box:z({},t.box,{top:0,borderTopWidth:0}),style:z({},t.style,{marginTop:0,paddingTop:0,borderTopWidth:0,borderTopLeftRadius:0,borderTopRightRadius:0})});return o&&(a.style.height=o),[i,a]},On=[h,y,v,b],Cn=function(t){var n;return!On.includes(t.type)&&(!!e(null===(n=t.props)||void 0===n?void 0:n.wrap)||t.props.wrap)},kn=function(t,n){var e=t.yogaNode;return e?e.getComputedPadding(n):null},Bn=function(t){var n=t.style,e=t.box;return{paddingTop:kn(t,_.Top)||(null==e?void 0:e.paddingTop)||(null==n?void 0:n.paddingTop)||(null==n?void 0:n.paddingVertical)||(null==n?void 0:n.padding)||0,paddingRight:kn(t,_.Right)||(null==e?void 0:e.paddingRight)||(null==n?void 0:n.paddingRight)||(null==n?void 0:n.paddingHorizontal)||(null==n?void 0:n.padding)||0,paddingBottom:kn(t,_.Bottom)||(null==e?void 0:e.paddingBottom)||(null==n?void 0:n.paddingBottom)||(null==n?void 0:n.paddingVertical)||(null==n?void 0:n.padding)||0,paddingLeft:kn(t,_.Left)||(null==e?void 0:e.paddingLeft)||(null==n?void 0:n.paddingLeft)||(null==n?void 0:n.paddingHorizontal)||(null==n?void 0:n.padding)||0}},Tn=["style","children"],Rn=function(t){return"string"==typeof t},An=function t(n){if(!n)return[];if(Rn(n)||"number"==typeof n)return[{type:x,value:""+n}];if(function(t){return t&&t.type===Symbol.for("react.fragment")}(n))return t(n.props.children);if(Array.isArray(n))return n.reduce((function(n,e){return n.concat(t(e))}),[]);if(!Rn(n.type))return t(n.type(n.props));var e=n.type,r=n.props,i=r.style,o=void 0===i?{}:i,a=r.children,u=void 0===a?[]:a;return[{type:e,style:o,props:Y(r,Tn),box:{},children:d(u).reduce((function(n,e){return n.concat(t(e))}),[])}]},Sn=function(t,n){var e,r=function(t){return t.box.top+t.box.height+t.box.marginBottom+((null===(n=t.props)||void 0===n?void 0:n.minPresenceAhead)||0);var n}(t),i=(e=n.filter((function(t){var n;return!(null!==(n=t.props)&&void 0!==n&&n.fixed)})),Math.max.apply(Math,e.map((function(t){return t.box.top+t.box.height}))));return Math.min(r,i)},Fn=function(t,n,e){var r;if(null!==(r=t.props)&&void 0!==r&&r.fixed)return!1;var i,o=e<t.box.top+t.box.height,a=Cn(t),u=Sn(t,n),l=t.box.top>t.box.marginTop;return(null===(i=t.props)||void 0===i?void 0:i.break)||!1||o&&!a||!o&&u>e&&l},Wn=[8232,8233],Ln=[function(t){return t.map((function(t){var n,e=(n=t.attributes.font,Wn.reduce((function(t,e){return n&&n.hasGlyphForCodePoint&&n.hasGlyphForCodePoint(e)?t:[].concat(t,[String.fromCharCode(e)])}),[])),r=new RegExp(e.join("|"));return{string:t.string.replace(r,""),attributes:t.attributes}}))},function(t){for(var n=[],e=function(){var e=t[r],i=0;Array.from(e.string.matchAll(Kt)).forEach((function(t){var r=t.index,o=t[0],a=tn.includes(o),u=e.attributes.fontSize,l=e.string.slice(i,r+t[0].length);_t[o]&&_t[o].data?n.push({string:l.replace(t,String.fromCharCode(65532)),attributes:z({},e.attributes,{attachment:{width:u,height:u,yOffset:Math.floor(.1*u),image:_t[o].data}})}):a?n.push({string:l,attributes:e.attributes}):n.push({string:l.replace(t,String.fromCharCode(0)),attributes:e.attributes}),i=r+o.length})),i<e.string.length&&n.push({string:e.string.slice(i),attributes:e.attributes})},r=0;r<t.length;r+=1)e();return n}],Pn=function(t){return t.type===x},Nn=function t(n,e,r,i){var o,a;if(void 0===i&&(i=0),!e)return[{string:""}];for(var u=[],l=e.style,c=l.color,s=void 0===c?"black":c,d=l.direction,p=void 0===d?"ltr":d,f=l.fontFamily,h=void 0===f?"Helvetica":f,g=l.fontWeight,m=l.fontStyle,y=l.fontSize,b=void 0===y?18:y,x=l.textAlign,w=l.lineHeight,j=l.textDecoration,O=l.textDecorationColor,C=l.textDecorationStyle,k=l.textTransform,B=l.letterSpacing,T=l.textIndent,R=l.opacity,A=l.verticalAlign,S={font:("string"==typeof h?[h]:[].concat(h||[])).map((function(t){if("string"!=typeof t)return t;var e={fontFamily:t,fontWeight:g,fontStyle:m},r=n?n.getFont(e):null;return r?r.data:t})),color:s,opacity:R,fontSize:b,direction:p,verticalAlign:A,backgroundColor:0===i?null:e.style.backgroundColor,indent:T,characterSpacing:B,strikeStyle:C,underlineStyle:C,underline:"underline"===j||"underline line-through"===j||"line-through underline"===j,strike:"line-through"===j||"underline line-through"===j||"line-through underline"===j,strikeColor:O||s,underlineColor:O||s,link:r||(null===(o=e.props)||void 0===o?void 0:o.src)||(null===(a=e.props)||void 0===a?void 0:a.href),lineHeight:w?w*b:null,align:x||("rtl"===p?"right":"left")},F=0;F<e.children.length;F+=1){var W=e.children[F];if(W.type===v)u.push({string:String.fromCharCode(65532),attributes:z({},S,{attachment:{width:W.style.width||b,height:W.style.height||b,image:W.image.data}})});else if(Pn(W))u.push({string:nt(W.value,k),attributes:S});else if(W){var L;(L=u).push.apply(L,t(n,W,S.link,i+1))}}for(var P=0;P<Ln.length;P+=1){u=(0,Ln[P])(u)}return u},En=function(t,n){var e=Nn(t,n);return tt(e)},Mn=R({bidi:A,linebreaker:S,justification:F,textDecoration:W,scriptItemizer:L,wordHyphenation:P,fontSubstitution:ct}),Hn=function(t,n,e,r){var i=En(r,t),o=function(t,n,e){var r=function(t){var n;return null===(n=t.style)||void 0===n?void 0:n.maxLines}(e),i=function(t){var n;return null===(n=t.style)||void 0===n?void 0:n.textOverflow}(e);return{x:0,y:0,width:t,maxLines:r,height:n||1/0,truncateMode:i}}(n,e,t),a=function(t,n){return{hyphenationPenalty:n.props.hyphenationPenalty,shrinkWhitespaceFactor:{before:-.5,after:-.5},hyphenationCallback:n.props.hyphenationCallback||(null==t?void 0:t.getHyphenationCallback())||null}}(r,t);return Mn(i,o,a).reduce((function(t,n){return[].concat(t,n)}),[])},Gn=function(t){return function(n){return n.type===t}},zn=Gn(h),In=Gn(g),Dn=function t(n,e){if(function(t){return In(t)&&!t.lines}(n)){var r=n.box.width-(n.box.paddingRight+n.box.paddingLeft),i=n.box.height-(n.box.paddingTop+n.box.paddingBottom);n.lines=Hn(n,r,i,e)}if(function(t){return!zn(t)&&!In(t)}(n)){if(!n.children)return n;var o=n.children.map((function(n){return t(n,e)}));return Object.assign({},n,{children:o})}return n},Yn=["color","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","opacity","textDecoration","textTransform","lineHeight","textAlign","visibility","wordSpacing"],qn=[].concat(Yn,["backgroundColor"]),Vn=function(t){return function(n){var e=function(t,n){var e=z({},t);return Object.entries(n).forEach((function(n){var r=n[0],i=n[1];e[r]=function(t,n,e){return"textDecoration"===t?[e,n].filter((function(t){return t&&"none"!==t})).join(" "):n}(r,i,t[r])})),e}(t,n.style||{});return Object.assign({},n,{style:e})}},Xn=function n(e){if(function(t){return t.type===h}(e))return e;if(!e.children)return e;var r=function(t){return t.type===g}(e)?qn:Yn,i=o(r,e.style||{}),a=t(n,Vn(i)),u=e.children.map(a);return Object.assign({},e,{children:u})},Un=function(t,n){var e=t.yogaNode;return e?e.getComputedMargin(n):null},Jn=function(t){var n=t.style,e=t.box;return{marginTop:Un(t,_.Top)||(null==e?void 0:e.marginTop)||(null==n?void 0:n.marginTop)||(null==n?void 0:n.marginVertical)||(null==n?void 0:n.margin)||0,marginRight:Un(t,_.Right)||(null==e?void 0:e.marginRight)||(null==n?void 0:n.marginRight)||(null==n?void 0:n.marginHorizontal)||(null==n?void 0:n.margin)||0,marginBottom:Un(t,_.Bottom)||(null==e?void 0:e.marginBottom)||(null==n?void 0:n.marginBottom)||(null==n?void 0:n.marginVertical)||(null==n?void 0:n.margin)||0,marginLeft:Un(t,_.Left)||(null==e?void 0:e.marginLeft)||(null==n?void 0:n.marginLeft)||(null==n?void 0:n.marginHorizontal)||(null==n?void 0:n.margin)||0}},_n={width:0,height:0},Kn=function(t,n){return t?t.getComputedBorder(n):0},Qn={hidden:q.Hidden,scroll:q.Scroll},Zn={wrap:V.Wrap,"wrap-reverse":V.WrapReverse},$n=function(t,n){return function(o){return function(a){var u=a.yogaNode;if(!e(o)&&u){var l,c,s=!e(n),d="set"+r(t),p=d+"Auto",f=d+"Percent",h=i(o);if(h&&!u[f])throw new Error("You can't pass percentage values to "+t+" property");if(h)if(s)null===(l=u[f])||void 0===l||l.call(u,n,h.value);else null===(c=u[f])||void 0===c||c.call(u,h.value);else if("auto"===o){var g,v;if(s)null===(g=u[p])||void 0===g||g.call(u,n);else null===(v=u[p])||void 0===v||v.call(u)}else if(s){var m;null===(m=u[d])||void 0===m||m.call(u,n,o)}else{var y;null===(y=u[d])||void 0===y||y.call(u,o)}}return a}}},te=$n("flexBasis"),ne={"flex-start":X.FlexStart,center:X.Center,"flex-end":X.FlexEnd,stretch:X.Stretch,baseline:X.Baseline,"space-between":X.SpaceBetween,"space-around":X.SpaceAround},ee=function(t){return function(n){return function(e){var i=e.yogaNode,o="items"===t?X.Stretch:X.Auto;if(i){var a=ne[n]||o;i["setAlign"+r(t)](a)}return e}}},re=ee("self"),ie=ee("items"),oe=ee("content"),ae={row:U.Row,"row-reverse":U.RowReverse,"column-reverse":U.ColumnReverse},ue={center:J.Center,"flex-end":J.FlexEnd,"space-between":J.SpaceBetween,"space-around":J.SpaceAround,"space-evenly":J.SpaceEvenly},le=$n("margin",_.Top),ce=$n("margin",_.Right),se=$n("margin",_.Bottom),de=$n("margin",_.Left),pe=$n("padding",_.Top),fe=$n("padding",_.Right),he=$n("padding",_.Bottom),ge=$n("padding",_.Left),ve=$n("border",_.Top),me=$n("border",_.Right),ye=$n("border",_.Bottom),be=$n("border",_.Left),xe=$n("position",_.Top),we=$n("position",_.Right),je=$n("position",_.Bottom),Oe=$n("position",_.Left),Ce=$n("width"),ke=$n("minWidth"),Be=$n("maxWidth"),Te=$n("height"),Re=$n("minHeight"),Ae=$n("maxHeight"),Se=function(t,n){if(i(n))throw new Error("You can't pass percentage values to "+t+" property")},Fe=function(t){return t.lines?Math.max.apply(Math,[0].concat(t.lines.map((function(t){return t.xAdvance})))):0},We=function(t){return t.lines?t.lines.reduce((function(t,n){return t+n.box.height}),0):-1},Le={center:.5,right:1},Pe=function(t){var n;return e(null===(n=t.box)||void 0===n?void 0:n.height)},Ne=function(t){return Math.max.apply(Math,[-1/0].concat(t))},Ee=function(t,n){return function(){var e=Jn(n),r=Bn(t),i=Pe(t)?1/0:t.box.height-r.paddingTop-r.paddingBottom-e.marginTop-e.marginBottom-10,o=function(){var t={},n=[],e=function(){return t},r=function(t,e){return n.push([t,e])},i=function(){return r.apply(void 0,arguments),t},o=function(n,e,i,o){return r(n,e),r(n+i,e),r(n,e+o),r(n+i,e+o),t},a=function(n,e,i,o){return r(n-i,e-(o=o||i)),r(n+i,e-o),r(n+i,e+o),r(n-i,e+o),t};return t.rect=o,t.moveTo=i,t.lineTo=i,t.circle=a,t.polygon=function(){return n.push.apply(n,arguments),t},t.ellipse=a,t.roundedRect=o,t.text=e,t.path=e,t.lineWidth=e,t.bezierCurveTo=e,t.quadraticCurveTo=e,t.scale=e,t.rotate=e,t.translate=e,t.dash=e,t.clip=e,t.save=e,t.fill=e,t.font=e,t.stroke=e,t.lineCap=e,t.opacity=e,t.restore=e,t.lineJoin=e,t.fontSize=e,t.fillColor=e,t.miterLimit=e,t.strokeColor=e,t.fillOpacity=e,t.strokeOpacity=e,t.linearGradient=e,t.radialGradient=e,t.getWidth=function(){return Ne(n.map((function(t){return t[0]})))},t.getHeight=function(){return Ne(n.map((function(t){return t[1]})))},t}();return n.props.paint(o),{width:o.getWidth(),height:Math.min(i,o.getHeight())}}},Me=function(t){return function(n){return n.type===t}},He=Me(h),Ge=Me(g),ze=Me(y),Ie=Me(j),De=Me(v),Ye=Me(b),qe=Me(x),Ve=function(n){var r;t(function(t){var n=Ie(t)?t.box.height:t.style.height;return Te(n)}(n),Ce(n.style.width),ke(n.style.minWidth),Be(n.style.maxWidth),Re(n.style.minHeight),Ae(n.style.maxHeight),le(n.style.marginTop),ce(n.style.marginRight),se(n.style.marginBottom),de(n.style.marginLeft),pe(n.style.paddingTop),fe(n.style.paddingRight),he(n.style.paddingBottom),ge(n.style.paddingLeft),(r=n.style.position,function(t){var n=t.yogaNode;return!e(r)&&n&&n.setPositionType("absolute"===r?Q.Absolute:Q.Relative),t}),xe(n.style.top),we(n.style.right),je(n.style.bottom),Oe(n.style.left),ve(n.style.borderTopWidth),me(n.style.borderRightWidth),ye(n.style.borderBottomWidth),be(n.style.borderLeftWidth),function(t){return function(n){var e=n.yogaNode;return e&&e.setDisplay("none"===t?K.None:K.Flex),n}}(n.style.display),function(t){return function(n){var e=n.yogaNode;if(e){var r=ae[t]||U.Column;e.setFlexDirection(r)}return n}}(n.style.flexDirection),re(n.style.alignSelf),oe(n.style.alignContent),ie(n.style.alignItems),function(t){return function(n){var r=n.yogaNode;if(!e(t)&&r){var i=ue[t]||J.FlexStart;r.setJustifyContent(i)}return n}}(n.style.justifyContent),function(t){return function(n){var e=n.yogaNode;if(e){var r=Zn[t]||V.NoWrap;e.setFlexWrap(r)}return n}}(n.style.flexWrap),function(t){return function(n){var r=n.yogaNode;if(!e(t)&&r){var i=Qn[t]||q.Visible;r.setOverflow(i)}return n}}(n.style.overflow),function(t){return function(n){var r=n.yogaNode;return!e(t)&&r&&r.setAspectRatio(t),n}}(n.style.aspectRatio),te(n.style.flexBasis),function(t){return function(n){return $n("flexGrow")(t||0)(n)}}(n.style.flexGrow),function(t){return function(n){return $n("flexShrink")(t||1)(n)}}(n.style.flexShrink),function(t){return function(n){var r=n.yogaNode;return!e(t)&&r&&(Se("rowGap",t),r.setGap(Z.Row,t)),n}}(n.style.rowGap),function(t){return function(n){var r=n.yogaNode;return!e(t)&&r&&(Se("columnGap",t),r.setGap(Z.Column,t)),n}}(n.style.columnGap))(n)},Xe=function(t,n,e){var r=t.yogaNode;return Ge(t)&&r.setMeasureFunc(function(t,n,e){return function(t,r,i){if(r===$.Exactly)return n.lines||(n.lines=Hn(n,t,i,e)),{height:We(n)};if(r===$.AtMost){var o,a=Le[null===(o=n.style)||void 0===o?void 0:o.textAlign]||0;return n.lines||(n.lines=Hn(n,t,i,e),n.alignOffset=(t-Fe(n))*a),{height:We(n),width:Math.min(t,Fe(n))}}return{}}}(0,t,e)),De(t)&&r.setMeasureFunc(function(t,n){return function(e,r,i,o){var a=function(t){var n;return null!==(n=t.image)&&void 0!==n&&n.data?t.image.width/t.image.height:1}(n),u=Jn(n),l=Bn(t),c=Pe(t)?1/0:t.box.height-l.paddingTop-l.paddingBottom-u.marginTop-u.marginBottom-10;if(!n.image)return{width:0,height:0};if(r===$.Exactly&&o===$.Undefined){var s=e/a;return{height:Math.min(c,s)}}if(o===$.Exactly&&(r===$.AtMost||r===$.Undefined))return{width:Math.min(i*a,e)};if(r===$.Exactly&&o===$.AtMost){var d=e/a;return{height:Math.min(i,c,d)}}return r===$.AtMost&&o===$.AtMost?a>1?{width:e,height:Math.min(e/a,i)}:{height:i,width:Math.min(i*a,e)}:{height:i,width:e}}}(n,t)),Ye(t)&&r.setMeasureFunc(Ee(n,t)),He(t)&&r.setMeasureFunc(function(t,n){return function(t,e,r,i){var o,a=((o=n.props.viewBox)?(o.maxX-o.minX)/(o.maxY-o.minY):null)||1;return e===$.Exactly||e===$.AtMost?{width:t,height:t/a}:i===$.Exactly?{width:r*a}:{}}}(0,t)),t},Ue=function n(e,r,i){return function(o){var a,u=i.node.create(),l=Object.assign({},o,{yogaNode:u});if(Ve(l),function(t){return!Ge(t)&&!ze(t)&&!He(t)}(o)&&o.children){var c=t((a=u,function(t){return a.insertChild(t.yogaNode,a.getChildCount()),t}),n(e,r,i));l.children=o.children.map(c)}return Xe(l,e,r),l}},Je=function(t){return t.yogaNode.calculateLayout(),t},_e=function t(n){if(qe(n))return n;var e=Object.assign(Bn(n),Jn(n),function(t){var n=t.yogaNode;return{borderTopWidth:Kn(n,_.Top),borderRightWidth:Kn(n,_.Right),borderBottomWidth:Kn(n,_.Bottom),borderLeftWidth:Kn(n,_.Left)}}(n),function(t){var n=t.yogaNode;return{top:(null==n?void 0:n.getComputedTop())||0,right:(null==n?void 0:n.getComputedRight())||0,bottom:(null==n?void 0:n.getComputedBottom())||0,left:(null==n?void 0:n.getComputedLeft())||0}}(n),function(t){var n=t.yogaNode;return n?{width:n.getComputedWidth(),height:n.getComputedHeight()}:_n}(n)),r=Object.assign({},n,{box:e});if(!n.children)return r;var i=n.children.map(t);return Object.assign({},r,{children:i})},Ke=function t(n){var e=Object.assign({},n);if(delete e.yogaNode,!n.children)return e;var r=n.children.map(t);return Object.assign({},e,{children:r})},Qe=function(t){return t.yogaNode&&t.yogaNode.freeRecursive(),t},Ze=function(n,r,i){return e(n)?null:t(Ke,Qe,_e,Je,Ue(n,r,i))(n)},$e=function(t){return t.type===g},tr=function(t,n){return Object.assign({},n,{children:t})},nr=function(t){var n;return(null===(n=t.box)||void 0===n?void 0:n.top)||0},er=function(t){var n;return!e(null===(n=t.props)||void 0===n?void 0:n.render)},rr=t(Dn,Ze,Xn,dn),ir=function(t,n,e){for(var r,i=[],o=[],a=0;a<e.length;a+=1){var u=e[a],l=e.slice(a+1),c=l.filter(xn),s=nr(u),d=u.box.height,p=t<=s,f=Fn(u,l,t),h=t+.001<s+d,g=Cn(u),v=d<=n;if(xn(u))o.push(u),i.push(u);else if(p){var m=Object.assign({},u.box,{top:u.box.top-t}),y=Object.assign({},u,{box:m});o.push(y)}else{if(!v&&!g){i.push(u),o.push.apply(o,l),r=u,console.warn("Node of type "+r.type+" can't wrap between pages and it's bigger than available page height");break}if(f){var b=Object.assign({},u.box,{top:u.box.top-t}),x=Object.assign({},u.props,{wrap:!0,break:!1}),w=Object.assign({},u,{box:b,props:x});i.push.apply(i,c),o.push.apply(o,[w].concat(l));break}if(h){var j=ar(u,t,n),O=j[0],C=j[1];if(u.children.length>0&&0===O.children.length){var k=Object.assign({},u.box,{top:u.box.top-t}),B=Object.assign({},u,{box:k});i.push.apply(i,c),o.push.apply(o,[B].concat(l));break}O&&i.push(O),C&&o.push(C)}else i.push(u)}}return[i,o]},or=function(t,n,e){var r=jn(t,n),i=r[0],o=r[1],a=function(t,n,e){var r=e.children||[],i=t-nr(e);return ir(i,n,r)}(n,e,t),u=a[0],l=a[1];return[tr(u,i),tr(l,o)]},ar=function(t,n,e){return $e(t)?wn(t,n):or(t,n,e)},ur=function t(n){var e=n.children||[];return er(n)||e.some(t)},lr=function t(n,e){var r=er(e),i=r&&$e(e)?z({},e.box,{height:0}):e.box,o=function(i){if(void 0===i&&(i=[]),r){var o=e.props.render(n);return An(o).filter(Boolean).map((function(e){return t(n,e)}))}return i.map((function(e){return t(n,e)}))}(e.children),a=r?null:e.lines;return Object.assign({},e,{box:i,lines:a,children:o})},cr=function(t,n,e,r){if(ur(n)){var i=lr(t,n);return rr(i,e,r)}return n},sr=function(t,n,e,r){var i=function(t){var n,e=Bn(t).paddingBottom;return(null===(n=t.style)||void 0===n?void 0:n.height)-e}(t),o=function(t){var n,e=null===(n=t.style)||void 0===n?void 0:n.height,r=Bn(t),i=r.paddingTop;return e-r.paddingBottom-i}(t),a=cr({pageNumber:n},t,e,r),l=t.style.height,c=ir(i,o,a.children),s=c[0],d=c[1],p=function(t){return rr(t,e,r)},f=z({},t.box,{height:l}),h=p(Object.assign({},t,{box:f,children:s}));if(0===d.length||d.every(xn))return[h,null];var g=u("height",t.box),v=u("bookmark",t.props);return[h,p(Object.assign({},t,{props:v,box:g,children:d}))]},dr=function(t,n,e,r,i){var o={totalPages:i.length,pageNumber:r+1,subPageNumber:e.subPageNumber+1,subPageTotalPages:e.subPageTotalPages};return cr(o,e,t,n)},pr=function(t){return t.map((function(n,e){return z({},n,{subPageNumber:e,subPageTotalPages:t.length})}))},fr=function(t,n,e,r){var i;if(!t)return[];if(!1===(null===(i=t.props)||void 0===i?void 0:i.wrap))return[t];for(var o=sr(t,n,e,r),a=[o[0]],u=o[1];null!==u;)o=sr(u,n+a.length,e,r),a.push(o[0]),u=o[1];return a},hr=function(t){return function(n){var e=i(n);return e?e.percent*t.width:n}},gr=function(t){return function(n){var e=i(n);return e?e.percent*t.height:n}},vr=function(t){var n=t.style,e=a({paddingTop:gr(n),paddingLeft:hr(n),paddingRight:hr(n),paddingBottom:gr(n)},t.style);return Object.assign({},t,{style:e})},mr=function(t){return function(n){if(n){var e=i(n);return e?e.percent*Math.min(t.width,t.height):n}}},yr=function(t,n){var r,o;if(e(null===(r=t.style)||void 0===r?void 0:r.height))return n;if(e(null===(o=n.style)||void 0===o?void 0:o.height))return n;var a=function(t){var n,e;return t.style.height-((null===(n=t.style)||void 0===n?void 0:n.paddingTop)||0)-((null===(e=t.style)||void 0===e?void 0:e.paddingBottom)||0)}(t),u=function(t,n){var e=i(n);return e?e.percent*t:n}(a,n.style.height),l=Object.assign({},n.style,{height:u});return Object.assign({},n,{style:l})},br=function(t){if(!t.children)return t;var n=t.children.map((function(n){return yr(t,n)}));return Object.assign({},t,{children:n})},xr=function(t){return function(n){return n.type===t}},wr=xr(m),jr=xr(g),Or=xr(x),Cr=function(t){return jr(t)||Or(t)},kr=function(t){return wr(t)?function(t){var n;return!(null===(n=t.props)||void 0===n||!n.render)}(t)?Object.assign({},t,{type:g}):function(t){var n=t.children||[];return!!n.every(Or)||!n.every(jr)&&n.every(Cr)}(t)?function(t){var n={type:g,props:{},style:{},box:{},children:t.children};return Object.assign({},t,{children:[n]})}(t):t:t},Br=n((function t(n){if(!n.children)return n;var e=(function(t){return t.type!==f&&t.type!==h}(n)?n.children.sort(Jt):n.children).map(t);return Object.assign({},n,{children:e})}),(function(t){if(!t.children)return t;var n=t.children.map(fn);return Object.assign({},t,{children:n})}),un,(function(t,n){for(var e=[],r=1,i=0;i<t.children.length;i+=1){var o=t.children[i],a=fr(o,r,n,t.yoga);r+=(a=pr(a)).length,e=e.concat(a)}return e=e.map((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return function(t){return u(["subPageNumber","subPageTotalPages"],t)}(dr.apply(void 0,[n,t.yoga].concat(r)))})),tr(e,t)}),Dn,(function t(n){var e=a({borderTopLeftRadius:mr(n.box),borderTopRightRadius:mr(n.box),borderBottomRightRadius:mr(n.box),borderBottomLeftRadius:mr(n.box)},n.style||{}),r=Object.assign({},n,{style:e});if(!n.children)return r;var i=n.children.map(t);return Object.assign({},r,{children:i})}),(function(t,n){if(!t.children)return t;var e=t.children.map((function(e){return Ze(e,n,t.yoga)}));return Object.assign({},t,{children:e})}),(function t(n,e){if(!n.children)return n;var r=Wt(n)?qt(n,e):n,i=r.children.map((function(n){return t(n,e)}));return Object.assign({},r,{children:i})}),un,Xn,(function(t){if(!t.children)return t;var n=t.children.map(br);return Object.assign({},t,{children:n})}),(function(t){if(!t.children)return t;var n=t.children.map(vr);return Object.assign({},t,{children:n})}),(function(t){if(!t.children)return t;var n=t.children.map(dn);return Object.assign({},t,{children:n})}),(function n(e){if(!e.children)return e;var r=t(kr,n),i=e.children.map(r);return Object.assign({},e,{children:i})}),(function(t){for(var n=0,e=(t.children||[]).slice(0).map((function(t){return{value:t,parent:null}})),r=function(){var t,r,i=e.shift(),o=i.value,a=i.parent;if(null!==(t=o.props)&&void 0!==t&&t.bookmark){var u,l="string"==typeof(r=o.props.bookmark)?{title:r,fit:!1,expanded:!1}:r,c=n++,s=z({ref:c,parent:null===(u=a)||void 0===u?void 0:u.ref},l);o.props.bookmark=s,a=s}o.children&&o.children.forEach((function(t){e.push({value:t,parent:a})}))};e.length>0;)r();return t}),(function(t){if(!t.children)return t;var n=t.children.map(bn);return Object.assign({},t,{children:n})}),Xt);export{Br as default};
|