PageSourceSearch

https://app.laratranslate.com/assets/formatted-DxTbtluy.js

js laratranslate.com collected 2026-09-24 11:52:28 UTC 9,947 bytes, 2 lines download raw bytes

1import{l as e}from"./schemas-CMNFK8kf.js";function t(e,t,n){let r=n=>e(n,...t);return n===void 0?r:Object.assign(r,{lazy:n,lazyArgs:t})}function n(e,n,r){let i=e.length-n.length;if(i===0)return e(...n);if(i===1)return t(e,n,r);throw Error(`Wrong number of arguments`)}var r={done:!1,hasNext:!1};function i(e,...t){let n=e,r=t.map(e=>`lazy`in e?o(e):void 0),i=0;for(;i<t.length;){if(r[i]===void 0||!s(n)){let e=t[i];n=e(n),i+=1;continue}let e=[];for(let n=i;n<t.length;n++){let t=r[n];if(t===void 0||(e.push(t),t.isSingle))break}let o=[];for(let t of n)if(a(t,o,e))break;let{isSingle:c}=e.at(-1);n=c?o[0]:o,i+=e.length}return n}function a(e,t,n){if(n.length===0)return t.push(e),!1;let i=e,o=r,s=!1;for(let[e,r]of n.entries()){let{index:c,items:l}=r;if(l.push(i),o=r(i,c,l),r.index+=1,o.hasNext){if(o.hasMany??!1){for(let r of o.next)if(a(r,t,n.slice(e+1)))return!0;return s}i=o.next}if(!o.hasNext)break;o.done&&(s=!0)}return o.hasNext&&t.push(i),s}function o(e){let{lazy:t,lazyArgs:n}=e,r=t(...n);return Object.assign(r,{isSingle:t.single??!1,index:0,items:[]})}function s(e){return typeof e==`string`||typeof e==`object`&&!!e&&Symbol.iterator in e}function c(...e){return n(l,e)}var l=(e,t)=>e.findIndex(t);function u(...e){return n(Object.values,e)}var d={withStackTrace:!1},f=(e,t,n=d)=>({data:t.isOk()?{type:`Ok`,value:t.value}:{type:`Err`,value:t.error},message:e,stack:n.withStackTrace?Error().stack:void 0});function p(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function m(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof h?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function _(e){var t,n;return t={},r(`next`),r(`throw`,function(e){throw e}),r(`return`),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:h(e[r](t)),done:!1}:i?i(t):t}:i}}function v(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof m==`function`?m(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var y=class e{constructor(e){this._promise=e}static fromSafePromise(t){return new e(t.then(e=>new O(e)))}static fromPromise(t,n){return new e(t.then(e=>new O(e)).catch(e=>new k(n(e))))}static fromThrowable(t,n){return(...r)=>new e(p(this,void 0,void 0,function*(){try{return new O(yield t(...r))}catch(e){return new k(n?n(e):e)}}))}static combine(e){return S(e)}static combineWithAllErrors(e){return w(e)}map(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isErr()?new k(e.error):new O(yield t(e.value))})))}andThrough(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){if(e.isErr())return new k(e.error);let n=yield t(e.value);return n.isErr()?new k(n.error):new O(e.value)})))}andTee(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){if(e.isErr())return new k(e.error);try{yield t(e.value)}catch{}return new O(e.value)})))}orTee(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){if(e.isOk())return new O(e.value);try{yield t(e.error)}catch{}return new k(e.error)})))}mapErr(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isOk()?new O(e.value):new k(yield t(e.error))})))}andThen(t){return new e(this._promise.then(n=>{if(n.isErr())return new k(n.error);let r=t(n.value);return r instanceof e?r._promise:r}))}orElse(t){return new e(this._promise.then(e=>p(this,void 0,void 0,function*(){return e.isErr()?t(e.error):new O(e.value)})))}match(e,t){return this._promise.then(n=>n.match(e,t))}unwrapOr(e){return this._promise.then(t=>t.unwrapOr(e))}safeUnwrap(){return g(this,arguments,function*(){return yield h(yield h(yield*_(v(yield h(this._promise.then(e=>e.safeUnwrap()))))))})}then(e,t){return this._promise.then(e,t)}[Symbol.asyncIterator](){return g(this,arguments,function*(){let e=yield h(this._promise);return e.isErr()&&(yield yield h(b(e.error))),yield h(e.value)})}};function b(e){return new y(Promise.resolve(new k(e)))}y.fromPromise,y.fromSafePromise,y.fromThrowable;var x=e=>{let t=E([]);for(let n of e)if(n.isErr()){t=D(n.error);break}else t.map(e=>
1e.push(n.value));return t},S=e=>y.fromSafePromise(Promise.all(e)).andThen(x),C=e=>{let t=E([]);for(let n of e)n.isErr()&&t.isErr()?t.error.push(n.error):n.isErr()&&t.isOk()?t=D([n.error]):n.isOk()&&t.isOk()&&t.value.push(n.value);return t},w=e=>y.fromSafePromise(Promise.all(e)).andThen(C),T;(function(e){function t(e,t){return(...n)=>{try{return E(e(...n))}catch(e){return D(t?t(e):e)}}}e.fromThrowable=t;function n(e){return x(e)}e.combine=n;function r(e){return C(e)}e.combineWithAllErrors=r})(T||={});function E(e){return new O(e)}function D(e){return new k(e)}var O=class{constructor(e){this.value=e}isOk(){return!0}isErr(){return!this.isOk()}map(e){return E(e(this.value))}mapErr(e){return E(this.value)}andThen(e){return e(this.value)}andThrough(e){return e(this.value).map(e=>this.value)}andTee(e){try{e(this.value)}catch{}return E(this.value)}orTee(e){return E(this.value)}orElse(e){return E(this.value)}asyncAndThen(e){return e(this.value)}asyncAndThrough(e){return e(this.value).map(()=>this.value)}asyncMap(e){return y.fromSafePromise(e(this.value))}unwrapOr(e){return this.value}match(e,t){return e(this.value)}safeUnwrap(){let e=this.value;return(function*(){return e})()}_unsafeUnwrap(e){return this.value}_unsafeUnwrapErr(e){throw f("Called `_unsafeUnwrapErr` on an Ok",this,e)}*[Symbol.iterator](){return this.value}},k=class{constructor(e){this.error=e}isOk(){return!1}isErr(){return!this.isOk()}map(e){return D(this.error)}mapErr(e){return D(e(this.error))}andThrough(e){return D(this.error)}andTee(e){return D(this.error)}orTee(e){try{e(this.error)}catch{}return D(this.error)}andThen(e){return D(this.error)}orElse(e){return e(this.error)}asyncAndThen(e){return b(this.error)}asyncAndThrough(e){return b(this.error)}asyncMap(e){return b(this.error)}unwrapOr(e){return e}match(e,t){return t(this.error)}safeUnwrap(){let e=this.error;return(function*(){throw yield D(e),Error("Do not use this generator out of `safeTry`")})()}_unsafeUnwrap(e){throw f("Called `_unsafeUnwrap` on an Err",this,e)}_unsafeUnwrapErr(e){return this.error}*[Symbol.iterator](){let e=this;return yield e,e}};T.fromThrowable;var A;(function(e){function t(e){return typeof e==`string`&&e.length>2&&!e.startsWith(`</`)&&e.startsWith(`<`)&&e.endsWith(`>`)}e.isOpen=t;function n(e,t=``){return`<${e}${t&&` ${t}`}>`}e.makeOpen=n;function r(e){return typeof e==`string`&&e.length>3&&e.startsWith(`</`)&&e.endsWith(`>`)}e.isClose=r;function a(e){return`</${e}>`}e.makeClose=a;function o(e){return t(e)||r(e)}e.isTag=o;function s(e){let t=e.match(/<\/?([a-zA-Z0-9]+)/);return t?E(t[1]):D(null)}let l={H1:`h1`,H2:`h2`,H3:`h3`,H4:`h4`,LI:`li`,OL:`ol`,P:`p`,UL:`ul`,TABLE:`table`};function d(e){return i(e,s,e=>e.isOk()&&e.value===l.TABLE)}e.isTagTable=d;function f(e){return i(e,s,e=>e.isOk()?c(u(l),t=>t===e.value)!==-1:!1)}e.isTagBlock=f;let p={A:`a`,B:`b`,EM:`em`,I:`i`,S:`s`,SPAN:`span`,STRONG:`strong`,U:`u`,SUP:`sup`,SUB:`sub`,CODE:`code`};function m(e){return c(u(p),t=>t===e)!==-1}e.isInline=m;function h(e){return i(e,s,e=>e.isOk()?c(u(p),t=>t===e.value)!==-1:!1)}e.isTagInline=h;let g=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`];function _(e){return c(g,t=>t===e)!==-1}e.isVoidTag=_;function v(e){return i(e,s,e=>e.isOk()&&e.value===`br`)}e.isTagLinebreak=v;function y(e){return i(e,s,e=>e.isOk()&&e.value===`hr`)}e.isTagHorizontalRule=y;function b(e){return i(e,s,e=>e.isOk()?c([...g,...u(l),...u(p)],t=>t===e.value)===-1:!1)}e.isTagUnknown=b,e.getName=e=>{let t=e.startsWith(`</`)?2:1;return e.substring(t).split(/[\s>]/)[0]}})(A||={});var j;(function(t){t.TextPlain=e([`text/plain`]),t.TextHTML=e([`text/html`])})(j||={});function M(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function N(e,t){return t?t===j.TextHTML.value&&F(e??``)?j.TextHTML.value:j.TextPlain.value:e&&F(e)?j.TextHTML.value:j.TextPlain.value}function P(e){if(e!==j.TextHTML.value)return e=>e;let t=new DOMParser;return e=>t.parseFromString(e,j.TextHTML.value).body.textContent??``}function F(e,t){let n=t?.openBracket??`<`,r=t?.closeBracket??`>`,i=t?.slash??`/`,a=M(n),o=M(r),s=M(i),c=`([a-zA-Z0-9-]+)`,l=a+c+`.*?`+o,u=a+s+c+`.*?`+o,d=`(?:`+l+`)|(?:`+u+`)`;return new RegExp(d).test(e)}export{N as a,i as c,P as i,r as l,A as n,D as o,F as r,E as s,j as t,n as u};
2//# sourceMappingURL=formatted-DxTbtluy.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.