2.ch/">CE2 – Circular Economy Entrepreneurs

Family Business Award

NZZ Swiss International Finance Forum

NZZ X.Days

NZZ Real Estate Days

NZZ CEO Dinner

NZZ Netversity 50/50

NZZ Konferenzen

NZZ FutureHealth Basel

Architonic

Bauprojektinformationen Schweiz

Zurich Film Festival

CH Media

 Kooperations-Angebote

ImmoScout24

 Copyright © Neue Zürcher Zeitung AG. Alle Rechte vorbehalten. Eine Weiterverarbeitung, Wiederveröffentlichung oder dauerhafte Speicherung zu gewerblichen oder anderen Zwecken ohne vorherige ausdrückliche Erlaubnis von Neue Zürcher Zeitung ist nicht gestattet.

 <svg class="icon icon--bookmark" role="img" title="Search"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#companion--bookmark--large"></use> </svg>
Merkliste

Hier speichern Sie interessante Artikel, um sie später zu lesen.

Legen Sie Ihr persönliches Archiv an.

Finden Sie gespeicherte Artikel schnell und einfach.

Lesen Sie Ihre Artikel auf allen Geräten.

 <a href="https://abo.nzz.ch/registrieren/?KAVZ=0323-0010-04-012" class="button button--primary overlay


BPB_NO_RET
	RET
SYM_FUNC_END(entry_ibpb)
/* For KVM */
EXPORT_SYMBOL_GPL(entry_ibpb);

.popsection

/*
 * Define the VERW operand that is disguised as entry code so that
 * it can be referenced with KPTI enabled. This ensure VERW can be
 * used late in exit-to-user path after page tables are switched.
 */
.pushsection .entry.text, "ax"

.align L1_CACHE_BYTES, 0xcc
SYM_CODE_START_NOALIGN(mds_verw_sel)
	UNWIND_HINT_EMPTY
	ANNOTATE_NOENDBR
	.word __KERNEL_DS
.align L1_CACHE_BYTES, 0xcc
SYM_CODE_END(mds_verw_sel);
/* For KVM */
EXPORT_SYMBOL_GPL(mds_verw_sel);

.popsection


_EPFNOSUPPORT]		= EPFNOSUPPORT,
	[LUSTRE_EAFNOSUPPORT]		= EAFNOSUPPORT,
	[LUSTRE_EADDRINUSE]		= EADDRINUSE,
	[LUSTRE_EADDRNOTAVAIL]		= EADDRNOTAVAIL,
	[LUSTRE_ENETDOWN]		= ENETDOWN,
	[LUSTRE_ENETUNREACH]		= ENETUNREACH,
	[LUSTRE_ENETRESET]		= ENETRESET,
	[LUSTRE_ECONNABORTED]		= ECONNABORTED,
	[LUSTRE_ECONNRESET]		= ECONNRESET,
	[LUSTRE_ENOBUFS]		= ENOBUFS,
	[LUSTRE_EISCONN]		= EISCONN,
	[LUSTRE_ENOTCONN]		= ENOTCONN,
	[LUSTRE_ESHUTDOWN]		= ESHUTDOWN,
	[LUSTRE_ETOOMANYREFS]		= ETOOMANYREFS,
	[LUSTRE_ETIMEDOUT]		= ETIMEDOUT,
	[LUSTRE_ECONNREFUSED]		= ECONNREFUSED,
	[LUSTRE_EHOSTDOWN]		= EHOSTDOWN,
	[LUSTRE_EHOSTUNREACH]		= EHOSTUNREACH,
	[LUSTRE_EALREADY]		= EALREADY,
	[LUSTRE_EINPROGRESS]		= EINPROGRESS,
	[LUSTRE_ESTALE]			= ESTALE,
	[LUSTRE_EUCLEAN]		= EUCLEAN,
	[LUSTRE_ENOTNAM]		= ENOTNAM,
	[LUSTRE_ENAVAIL]		= ENAVAIL,
	[LUSTRE_EISNAM]			= EISNAM,
	[LUSTRE_EREMOTEIO]		= EREMOTEIO,
	[LUSTRE_EDQUOT]			= EDQUOT,
	[LUSTRE_ENOMEDIUM]		= ENOMEDIUM,
	[LUSTRE_EMEDIUMTYPE]		= EMEDIUMTYPE,
	[LUSTRE_ECANCELED]		= ECANCELED,
	[LUSTRE_ENOKEY]			= ENOKEY,
	[LUSTRE_EKEYEXPIRED]		= EKEYEXPIRED,
	[LUSTRE_EKEYREVOKED]		= EKEYREVOKED,
	[LUSTRE_EKEYREJECTED]		= EKEYREJECTED,
	[LUSTRE_EOWNERDEAD]		= EOWNERDEAD,
	[LUSTRE_ENOTRECOVERABLE]	= ENOTRECOVERABLE,
	[LUSTRE_ERESTARTSYS]		= ERESTARTSYS,
	[LUSTRE_ERESTARTNOINTR]		= ERESTARTNOINTR,
	[LUSTRE_ERESTARTNOHAND]		= ERESTARTNOHAND,
	[LUSTRE_ENOIOCTLCMD]		= ENOIOCTLCMD,
	[LUSTRE_ERESTART_RESTARTBLOCK]	= ERESTART_RESTARTBLOCK,
	[LUSTRE_EBADHANDLE]		= EBADHANDLE,
	[LUSTRE_ENOTSYNC]		= ENOTSYNC,
	[LUSTRE_EBADCOOKIE]		= EBADCOOKIE,
	[LUSTRE_ENOTSUPP]		= ENOTSUPP,
	[LUSTRE_ETOOSMALL]		= ETOOSMALL,
	[LUSTRE_ESERVERFAULT]		= ESERVERFAULT,
	[LUSTRE_EBADTYPE]		= EBADTYPE,
	[LUSTRE_EJUKEBOX]		= EJUKEBOX,
	[LUSTRE_EIOCBQUEUED]		= EIOCBQUEUED,
};

unsigned int lustre_errno_hton(unsigned int h)
{
	unsigned int n;

	if (h == 0) {
		n = 0;
	} else if (h < ARRAY_SIZE(lustre_errno_hton_mapping)) {
		n = lustre_errno_hton_mapping[h];
		if (n == 0)
			goto generic;
	} else {
generic:
		/*
		 * A generic errno is better than the unknown one that could
		 * mean anything to a different host.
		 */
		n = LUSTRE_EIO;
	}

	return n;
}
EXPORT_SYMBOL(lustre_errno_hton);

unsigned int lustre_errno_ntoh(unsigned int n)
{
	unsigned int h;

	if (n == 0) {
		h = 0;
	} else if (n < ARRAY_SIZE(lustre_errno_ntoh_mapping)) {
		h = lustre_errno_ntoh_mapping[n];
		if (h == 0)
			goto generic;
	} else {
generic:
		/*
		 * Similar to the situation in lustre_errno_hton(), an unknown
		 * network errno could coincide with anything.  Hence, it is
		 * better to return a generic errno.
		 */
		h = EIO;
	}

	return h;
}
EXPORT_SYMBOL(lustre_errno_ntoh);


nrows	\nrows	\nString/Number	\n'3'	\n-	\n
\n
\nerror	\nerror message	\nString	\n-	\n-	\n
\n
\nformation 2.5.13+	\ninput text formatting callback function	\nFunction(name, curValue, curPos): {value: curValue, range: curPos}	\n-	\npassing parameter name is the name of input, curValue is input value, curPos is the current position of input cursor, and returned value is formatted value. range is the position of input cursor after formatting	\n
\n

\n
TextareaItem Slots#

footer#

the slot of footer
\n
TextareaItem Events#

focus()#

Input gets focus
\n
blur()#

Input loses focus
\n
getValue()#

Get value of input
\n
TextItem Events#

@focus(name)#

Textarea gets focus
\n
@blur(name)#

Textarea loses blur
\n
@change(name, value)#

Change the value of Textarea
\n
@keyup(name, event)#

key press
\n
@keydown(name, event)<a href


wxFLOOD_SURFACE

};

enum wxPolygonFillMode

{

    wxODDEVEN_RULE,

    wxWINDING_RULE

};

class %delete wxDC : public wxObject

{

    // %win wxDC() wxDC is abstract use wxXXXDC

    //void BeginDrawing(); // these are deprecated in 2.8 and didn't do anything anyway

    bool Blit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxDC* source, wxCoord xsrc, wxCoord ysrc, wxRasterOperationMode logicalFunc = wxCOPY, bool useMask = false );

    void CalcBoundingBox(wxCoord x, wxCoord y );

    void Clear( );

    //void ComputeScaleAndOrigin()  used internally

    void CrossHair(wxCoord x, wxCoord y );

    void DestroyClippingRegion( );

    wxCoord DeviceToLogicalX(wxCoord x );

    wxCoord DeviceToLogicalXRel(wxCoord x );

    wxCoord DeviceToLogicalY(wxCoord y );

    wxCoord DeviceToLogicalYRel(wxCoord y );

    void DrawArc(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord xc, wxCoord yc );

    void DrawBitmap(const wxBitmap& bitmap, wxCoord x, wxCoord y, bool transparent );

    void DrawCheckMark(wxCoord x, wxCoord y, wxCoord width, wxCoord height );

    void DrawCheckMark(const wxRect &rect );

    void DrawCircle(wxCoord x, wxCoord y, wxCoord radius );

    //void DrawCircle(const wxPoint& pt, wxCoord radius );

    void DrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height );

    //void DrawEllipse(const wxPoint& pt, const wxSize& size );

    //void DrawEllipse(const wxRect& rect );

    void DrawEllipticArc(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double start, double end );

    void DrawIcon(const wxIcon& icon, wxCoord x, wxCoord y );

    void DrawLabel(const wxString& text, const wxBitmap& image, const wxRect& rect, int alignment = wxALIGN_LEFT | wxALIGN_TOP, int indexAccel = -1); <font col


// <copyright file="AppBuilderExtensions.cs" company="App Metrics Contributors">
// Copyright (c) App Metrics Contributors. All rights reserved.
// </copyright>

using System;
using System.Net.Http;
using System.Threading.Tasks;
using App.Metrics.Scheduling;
using MetricsSandboxMvc.JustForTesting;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

// ReSharper disable CheckNamespace
namespace Microsoft.AspNetCore.Builder
    // ReSharper restore CheckNamespace
{
    public static class AppBuilderExtensions
    {
        private const int ApdexSamplesInterval = 2;
        private const int GetEndpointSuccessInterval = 1;
        private const int PutAndPostRequestsInterval = 6;
        private const int RandomSamplesInterval = 10;
        private const int SlaEndpointsInterval = 2;
        private static readonly HttpClient HttpClient = new HttpClient { BaseAddress = new Uri("http://localhost:1111/") };

        public static IApplicationBuilder UseTestStuff(
            this IApplicationBuilder app,
            IHostApplicationLifetime lifetime,
            bool runSampleRequestsFromApp)
        {
            app.Use(
                (context, next) =>
                {
                    RandomClientIdForTesting.SetTheFakeClaimsPrincipal(context);
                    return next();
                });

            var token = lifetime.ApplicationStopping;

            if (runSampleRequestsFromApp)
            {
                var apdexSamples = new AppMetricsTaskScheduler(
                    TimeSpan.FromSeconds(ApdexSamplesInterval),
                    () =>
                    {
                        var satisfiedV2WithParam = HttpClient.GetAsync("api/v2/satisfying/1", token);
                        var satisfiedV2NoParam = HttpClient.GetAsync("api/v2/satisfying", token);
                        var satisfied = HttpClient.GetAsync("api/satisfying", token);
                        var tolerating = HttpClient.GetAsync("api/tolerating", token);
                        var frustrating = HttpClient.GetAsync("api/frustrating", token);

                        return Task.WhenAll(satisfied, satisfiedV2WithParam, satisfiedV2NoParam, tolerating, frustrating);
                    });

                apdexSamples.Start();

                var randomEr


.Error()))
		logger.Printf("[%s] ERROR: %s", id, err.Error())
	}
}
package main

import (
	"beam/cmd/segments/gen/commerce"
	"beam/cmd/segments/gen/concurrents"
	"beam/cmd/segments/gen/events"
	commercesvr "beam/cmd/segments/gen/http/commerce/server"
	concurrentssvr "beam/cmd/segments/gen/http/concurrents/server"
	eventssvr "beam/cmd/segments/gen/http/events/server"
	journalsvr "beam/cmd/segments/gen/http/journal/server"
	pageviewssvr "beam/cmd/segments/gen/http/pageviews/server"
	segmentssvr "beam/cmd/segments/gen/http/segments/server"
	swaggersvr "beam/cmd/segments/gen/http/swagger/server"
	"beam/cmd/segments/gen/journal"
	"beam/cmd/segments/gen/pageviews"
	"beam/cmd/segments/gen/segments"
	"context"
	"log"
	"net/http"
	"os"
	"sync"
	"time"

	goahttp "goa.design/goa/v3/http"
	httpmdlwr "goa.design/goa/v3/http/middleware"
	"goa.design/goa/v3/middleware"
)

// handleHTTPServer starts configures and starts a HTTP server on the given
// URL. It shuts down the server if any error is received in the error channel.
func handleHTTPServer(
	ctx context.Context,
	addr string,
	journalEndpoints *journal.Endpoints,
	eventsEndpoints *events.Endpoints,
	pageviewsEndpoints *pageviews.Endpoints,
	concurrentsEndpoints *concurrents.Endpoints,
	commerceEndpoints *commerce.Endpoints,
	segmentsEndpoints *segments.Endpoints,
	wg *sync.WaitGroup,
	errc chan error,
	logger *log.Logger,
	debug bool) {

	// Setup goa log adapter.
	adapter := middleware.NewLogger(logger)

	// Provide the transport specific request decoder and response encoder.
	// The goa http package has built-in support for JSON, XML and gob.
	// Other encodings can be used by providing the corresponding functions,
	// see goa.design/implement/encoding.
	var (
		dec = goahttp.RequestDecoder
		enc = goahttp.ResponseEncoder
	)

	// Build the service HTTP request multiplexer and configure it to serve
	// HTTP requests to the service endpoints.
	mux := goahttp.NewMuxer()

	// Wrap the endpoints with the transport specific layers. The generated
	// server packages contains code generated from the design which maps
	// the service input and output data structures to HTTP requests and
	// responses.
	eh := errorHandler(logger)
	swaggerServer := swaggersvr.New(nil, mux, dec, enc, eh, nil, nil, nil)
	journalServer := journalsvr.New(journalEndpoints, mux, dec, enc, eh, nil)
	eventsServer := eventssvr.New(eventsEndpoints, mux, dec, enc, eh, nil)
	pageviewsServer := pageviewssvr.New(pageviewsEndpoints, mux, dec, enc, eh, nil)
	concurrentsServer := concurrentssvr.New(concurrentsEndpoints, mux, dec, enc, eh, nil)
	commerceServer := commercesvr.New(commerceEndpoints, mux, dec, enc, eh, nil)
	segmentsServer := segmentssvr.New(segmentsEndpoints, mux, dec, enc, eh, nil)
	if debug {
		servers := goahttp.Servers{
			swaggerServer,
			journalServer,
			eventsServer,
			pageviewsServer,
			concurrentsServer,
			commerceServer,


#pragma once
#include "flow/FlowNode.h"
#include "flow/FlowPtr.h"
#include "rndobj/Trans.h"

/** "Runs children when two trans objects are within a range" */
class FlowDistance : public FlowNode {
public:
    // Hmx::Object
    virtual ~FlowDistance();
    OBJ_CLASSNAME(FlowDistance)
    OBJ_SET_TYPE(FlowDistance)
    virtual DataNode Handle(DataArray *, bool);
    virtual bool SyncProperty(DataNode &, DataArray *, int, PropOp);
    virtual void Save(BinStream &);
    virtual void Copy(const Hmx::Object *, CopyType);
    virtual void Load(BinStream &);
    // FlowNode
    virtual bool Activate();
    virtual void Deactivate(bool);
    virtual void ChildFinished(FlowNode *);
    virtual void RequestStop();
    virtual void RequestStopCancel();
    virtual void Execute(QueueState);
    virtual bool IsRunning();
    virtual void UpdateIntensity();

    OBJ_MEM_OVERLOAD(0x1D)
    NEW_OBJ(FlowDistance)

protected:
    FlowDistance();

    /** "First object to compare" */
    FlowPtr<RndTransformable> mObj1; // 0x5c
    /** "Second object to compare" */
    FlowPtr<RndTransformable> mObj2; // 0x7c
    /** "Distance for comparison" */
    float mDistance; // 0x9c
    /** "Is the node persistent?" */
    bool mPersistent; // 0xa0
    bool unka1; // 0xa1
    bool unka2; // 0xa2
    /** "Run children when closer than distance value" */
    bool mRunInRange; // 0xa3
    /** "Applies current distance to flow intensity, closer being higher intensity" */
    bool mDriveIntensity; // 0xa4
    float unka8; // 0xa8
};


Offset startTime, DateTimeOffset endTime, Object executionContext, DbCommand command)
            : this(methodName, connectionString, startTime, endTime, executionContext)
        {
            this.Command = command;
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="methodName"></param>
        /// <param name="connectionString"></param>
        /// <param name="dataAdapter"></param>
        public CommandExecutedEventArgs(MethodName methodName, String connectionString, DateTimeOffset startTime, DateTimeOffset endTime, Object executionContext, DbDataAdapter dataAdapter)
            : this(methodName, connectionString, startTime, endTime, executionContext)
        {
            this.DataAdapter = dataAdapter;
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            var sb = new StringBuilder(128);
            try
            {
                if (String.IsNullOrEmpty(ConnectionString) == false)
                {
                    sb.Append(ConnectionString);
                    sb.Append(" ");
                }
                if (Command != null)
                {
                    sb.Append(Command.CommandText);
                    sb.Append(" ");
                }
                return sb.ToString();
            }
            catch { return base.ToString(); }
        }
    }
}


 bundlerClient = createBundlerClient({
  chain: mainnet,
  transport: http('https://public.pimlico.io/v2/1/rpc'),
});
```

:::

:::info
The Bundler URL above is a public endpoint. Please do not use it in production as you will likely be rate-limited. Consider using [Pimlico's Bundler](https://www.pimlico.io), [Biconomy's Bundler](https://www.biconomy.io), or another Bundler service.
:::

### Returns

`UserOperationReceipt`

The User Operation receipt.

### Parameters

#### hash

- **Type:** `'0x${string}'`

A User Operation hash.

```ts twoslash
import { bundlerClient } from './client';
// ---cut---
const receipt = await bundlerClient.getUserOperationReceipt({
  hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d', // [!code focus]
});
```

## TODO

## prepareUserOperation

Prepares a User Operation for execution and fills in missing properties.

### Usage

:::code-group

```ts twoslash [example.ts]
import { parseEther } from 'viem';
import { account, bundlerClient } from './config';

const userOperation = await bundlerClient.prepareUserOperation({
  // [!code focus:7]
  account,
  calls: [
    {
      to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
      value: parseEther('1'),
    },
  ],
});
```

```ts twoslash [config.ts] filename="config.ts"
import { createPublicClient, http } from 'viem';
import {
  createBundlerClient,
  toCoinbaseSmartAccount,
} from 'viem/account-abstraction';
import { privateKeyToAccount } from 'viem/accounts';
import { mainnet } from 'viem/chains';

const client = createPublicClient({
  chain: mainnet,
  transport: http(),
});

export const account = await toCoinbaseSmartAccount({
  client,
  owners: [privateKeyToAccount('0x...')],
});

export const bundlerClient = createBundlerClient({
  client,
  transport: http('https://public.pimlico.io/v2/1/rpc'),
});
```

:::

:::info
The Bundler URL above is a public endpoint. Please do not use it in production as you will likely be rate-limited. Consider using [Pimlico's Bundler](https://www.pimlico.io), [Biconomy's Bundler](https://www.biconomy.io), or another Bundler service.
:::

#### Account Hoisting

If you do not wish to pass an `account` to every `prepareUserOperation`, you can also hoist the Account on the Bundler Client (see `config.ts`).

[Learn more](/docs/clients/wallet#account).

:::code-group

```ts twoslash [example.ts]
import { parseEther } from 'viem';
import { bundlerClient } from './config';

const userOperation = await bundlerClient.prepareUserOperation({
  // [!code focus:7]
  calls: [
    {
      to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
      value: parseEther('1'),
    },
  ],
});
```

```ts twoslash [config.ts] filename="config.ts"
import { createPublicClient, http } from 'viem';
import {
  createBundlerClient,
  toCoinbaseSmartAccount,
} from 'viem/account-ab


to.PolicyAuditEventsInfo;
import com.rapid7.client.dcerpc.mslsad.dto.PolicyDomainInfo;
import com.rapid7.client.dcerpc.mslsad.dto.PolicyHandle;
import com.rapid7.client.dcerpc.mslsad.messages.LsarCloseRequest;
import com.rapid7.client.dcerpc.mslsad.messages.LsarEnumerateAccountRightsRequest;
import com.rapid7.client.dcerpc.mslsad.messages.LsarEnumerateAccountsWithUserRightRequest;
import com.rapid7.client.dcerpc.mslsad.messages.LsarLookupNamesRequest;
import com.rapid7.client.dcerpc.mslsad.messages.LsarLookupNamesResponse;
import com.rapid7.client.dcerpc.mslsad.messages.LsarLookupSIDsRequest;
import com.rapid7.client.dcerpc.mslsad.messages.LsarLookupSIDsResponse;
import com.rapid7.client.dcerpc.mslsad.messages.LsarOpenPolicy2Request;
import com.rapid7.client.dcerpc.mslsad.messages.LsarQueryInformationPolicyRequest;
import com.rapid7.client.dcerpc.mslsad.objects.LSAPRPolicyAccountDomInfo;
import com.rapid7.client.dcerpc.mslsad.objects.LSAPRPolicyAuditEventsInfo;
import com.rapid7.client.dcerpc.mslsad.objects.LSAPRPolicyPrimaryDomInfo;
import com.rapid7.client.dcerpc.mslsad.objects.LSAPRTranslatedName;
import com.rapid7.client.dcerpc.mslsad.objects.LSAPRTranslatedSID;
import com.rapid7.client.dcerpc.mslsad.objects.LSAPRTrustInformation;
import com.rapid7.client.dcerpc.objects.RPCSID;
import com.rapid7.client.dcerpc.objects.RPCUnicodeString;
import com.rapid7.client.dcerpc.objects.WChar;
import com.rapid7.client.dcerpc.service.Service;
import com.rapid7.client.dcerpc.transport.RPCTransport;

/**
 * This class implements a partial Local Security Authority service in according with [MS-LSAD] and [MS-LSAT].
 *
 * @see [MS-LSAD]
 * @see [MS-LSAT]
 */
public class LocalSecurityAuthorityService extends Service {
    public final static int MAXIMUM_ALLOWED = 33554432;

    /**
     * Create a new {@link LocalSecurityAuthorityService} backed by the provided {@link RPCTransport}
     * which should be bound to the lsarpc interface.
     * @param transport The {@link RPCTransport} bound to the lsarpc interface.
     */
    public LocalSecurityAuthorityService(final RPCTransport transport) {
        super(transport);
    }

    /**
     * Open a new {@link PolicyHandle} for the local machine.
     * Uses {@link LocalSecurityAuthorityService#MAXIMUM_ALLOWED} as the desired access.
     *
     * @return A new {@link PolicyHandle}.
     * @throws IOException Thrown if either a communication failure is encountered, or the call
     * returns an unsuccessful response.
     */
    public PolicyHandle openPolicyHandle() throws IOException {
        return openPolicyHandle(MAXIMUM_ALLOWED);
    }

    /**
     * Open a new {@link PolicyHandle} for the local machine.
     *
     * @param desiredAccess The desired access for the handle.
     * @return A new {@link PolicyHandle}.
     * @throws IOException Thrown if either a communication failure is encountered, or the call
     * returns an unsuccessful response.
     */
    public PolicyHandle openPolicyHandle(final int desiredAccess) throws IOException {
        return openPolicyHandle("", desiredAccess);
    }

    /**
     * Open a new {@link PolicyHandle}.
     *
     * @param serverName The machine name of the host. Null or empty uses local.


上海云鹊医
    - 164、上海云鹊医
    - 165、墨迹天气【墨迹天气】
    - 166、上海逸橙信息科技有限公司
    - 167、沅朋物联
    - 168、杭州恒生云融网络科技有限公司
    - 169、绿米联创
    - 170、重庆易宠科技有限公司
    - 171、安徽引航科技有限公司（乐职网）
    - 172、上海数联医信企业发展有限公司
    - 173、良彬建材
    - 174、杭州求是同创网络科技有限公司
    - 175、荷马国际
    - 176、点雇网
    - 177、深圳市华星光电技术有限公司
    - 178、厦门神州鹰软件科技有限公司
    - 179、深圳市招商信诺人寿保险有限公司
    - 180、上海好屋网信息技术有限公司
    - 181、海信集团【海信】
    - 182、信凌可信息科技（上海）有限公司
    - 183、长春天成科技发展有限公司
    - 184、用友金融信息技术股份有限公司【用友】
    - 185、北京咖啡易融有限公司
    - 186、国投瑞银基金管理有限公司
    - 187、晋松(上海)网络信息技术有限公司
    - 188、深圳市随手科技有限公司【随手记】
    - 189、深圳水务科技有限公司
    - 190、易企秀【易企秀】
    - 191、北京磁云科技
    - 192、南京蜂泰互联网科技有限公司
    - 193、章鱼直播
    - 194、奖多多科技
    - 195、天津市神州商龙科技股份有限公司
    - 196、岩心科技
    - 197、车码科技（北京）有限公司
    - 198、贵阳市投资控股集团
    - 199、康旗股份
    - 200、龙腾出行
    - 201、杭州华量软件
    - 202、合肥顶岭医疗科技有限公司
    - 203、重庆表达式科技有限公司
    - 204、上海米道信息科技有限公司
    - 205、北京益友会科技有限公司
    - 206、北京融贯电子商务有限公司
    - 207、中国外汇交易中心
    - 208、中国外运股份有限公司
    - 209、中国上海晓圈


class Solution:
    def maxProduct(self, n: int) -> int:
        lst=[]
        while(n>0):
            digit = n%10
            lst.append(digit)
            n=n//10
        a = lst[::-1]
        maxproduct=0
        for i in range(len(a)):
            for j in range(i+1,len(a)):
                product=a[i]*a[j]
                if product>maxproduct:
                    maxproduct=product
        return maxproduct


  js.context.callMethod('setByName', [
        'cursor',
        jsonEncode({
          'url': cursorData.url,
          'hotx': cursorData.hotX.toInt(),
          'hoty': cursorData.hotY.toInt(),
        })
      ]);
    }
  }

  Future<void> resetSystemCursor() async {
    latestKey = '';
    js.context.callMethod('setByName', ['cursor', 'auto']);
  }
}

class FlutterCustomMemoryImageCursor extends MouseCursor {
  final String key;
  const FlutterCustomMemoryImageCursor({required this.key});

  @override
  MouseCursorSession createSession(int device) =>
      _FlutterCustomMemoryImageCursorSession(this, device);

  @override
  String get debugDescription =>
      objectRuntimeType(this, 'FlutterCustomMemoryImageCursor');
}

class _FlutterCustomMemoryImageCursorSession extends MouseCursorSession {
  _FlutterCustomMemoryImageCursorSession(
      FlutterCustomMemoryImageCursor cursor, int device)
      : super(cursor, device);

  @override
  FlutterCustomMemoryImageCursor get cursor =>
      super.cursor as FlutterCustomMemoryImageCursor;

  @override
  Future<void> activate() async {
    await CursorManager.instance.setSystemCursor(cursor.key);
  }

  @override
  void dispose() {}
}

deleteCustomCursor(String key) => CursorManager.instance.deleteCursor(key);
resetSystemCursor() => CursorManager.instance.resetSystemCursor();

MouseCursor buildCursorOfCache(
    model.CursorModel cursor, double scale, model.CursorData? cache) {
  if (cache == null) {
    return MouseCursor.defer;
  } else {
    final key = cache.updateGetKey(scale);
    if (!cursor.cachedKeys.contains(key)) {
      // data should be checked here, because it may be changed after `updateGetKey()`
      final data = cache.data;
      if (data == null) {
        return MouseCursor.defer;
      }
      debugPrint(
          "Register custom cursor with key $key (${cache.hotx},${cache.hoty})");
      CursorManager.instance.registerCursor(CursorData(
          key: key,
          url: 'data:image/rgba;base64,${base64Encode(data)}',
          width: (cache.width * cache.scale).toInt(),
          height: (cache.height * cache.scale).toInt(),
          hotX: cache.hotx,
          hotY: cache.hoty));
      cursor.addKey(key);
    }
    return FlutterCustomMemoryImageCursor(key: key);
  }
}
import 'dart:convert';

import 'package:desktop_multi_window/desktop_multi_window.dart';
import 'package:flutter/material.dart';
import 'package:flutter_hbb/common.dart';
import 'package:flutter_hbb/consts.dart';
import 'package:flutter_hbb/models/state_model.dart';
import 'package:flutter_hbb/desktop/pages/file_manager_page.dart';
import 'package:flutter_hbb/desktop/widgets/tabbar_widget.dart';
import 'package:flutter_hbb/utils/multi_window_manager.dart';
import 'package:get/get.dart';

import '../../models/platform_model.dart';

/// File Transfer for multi tabs
class FileManagerTabPage extends StatefulWidget {
  final Map<String, dynamic> params;

  const FileManagerTabPage({Key? key, required this.params}) : super(key: key);

  @override
  State<FileManagerTabPage> createState() => _FileManagerTabPageState(params);
}

class _FileManagerTabPageState extends State<FileManagerTabPage> {
  DesktopTabController get tabController => Get.find<DesktopTabController>();

  static const IconData selectedIcon = Icons.file_copy_sharp;
  static const IconData unselectedIcon = Icons.file_copy_outlined;


|Leatherworking;165;515|N|Sold by Threm Blackscalp in Twilight Highlands|
B Vicious Leather Boots|QID|990078454|RECIPE|78454|M|39.60,34.50|Z|Ironforge|FACTION|Alliance|P|Leatherworking;165;515|N|Sold by Bombus Finespindle in Ironforge|
B Vicious Leather Boots|QID|990078454|RECIPE|78454|M|70.00,58.50|Z|Undercity|FACTION|Horde|P|Leatherworking;165;515|N|Sold by Joseph Moore in Undercity|
B Vicious Leather Boots|QID|990078454|RECIPE|78454|M|71.60,62.80|Z|Stormwind City|FACTION|Alliance|P|Leatherworking;165;515|N|Sold by Jillian Tanner in Stormwind City|
B Vicious Leather Boots|QID|990078454|RECIPE|78454|M|42.00,43.50|Z|Thunder Bluff|FACTION|Horde|P|Leatherworking;165;515|N|Sold by Mak in Thunder Bluff|
B Polar Boots|QID|990060998|RECIPE|60998|M|37.60,29.50|Z|Dalaran City@Dalaran|FACTION|Neutral|P|Leatherworking;165;420|N|Sold by Braeg Stoutbeard in Dalaran|
B Vicious Leather Shoulders|QID|990078455|RECIPE|78455|M|66.60,73.70|Z|The Exodar|FACTION|Alliance|P|Leatherworking;165;515|N|Sold by Haferet in The Exodar|
B Vicious Leather Shoulders|QID|990078455|RECIPE|78455|M|84.80,78.60|Z|Silvermoon City|FACTION|Horde|P|Leatherworking;165;515|N|Sold by Zaralda in Silvermoon City|
B Vicious Leather Shoulders|QID|990078455|RECIPE|78455|M|78.80,76.20|Z|Twilight Highlands|FACTION|Alliance|P|Leatherworking;165;515|N|Sold by Misty Merriweather in Twilight Highlands|
B Vicious Leather Shoulders|QID|990078455|RECIPE|78455|M|60.00,37.30|Z|Darnassus|FACTION|Alliance|P|Leatherworking;165;515|N|Sold by Saenorion in Darnassus|
B Vicious Leather Shoulders|QID|990078455|RECIPE|78455|M|60.30,54.30|Z|Orgrimmar|FACTION|Horde|P|Leatherworking;165;515|N|Sold by Tamar in Orgrimmar|
B Vicious Leather Shoulders|QID|990078455|RECIPE|78455|M|75.20,50.10|Z|Twilight Highlands|FACTION|Horde|P|Leatherworking;165;515|N|Sold by Threm Blackscalp in Twilight Highlands|
B Vicious Leather Shoulders|QID|990078455|RECIPE|78455|M|39.60,34.50|Z|Ironforge|FACTION|Alliance|P|Leatherworking;165;515|N|Sold by Bombus Finespindle in Ironforge|
B Vicious Leather Shoulders|QID|990078455|RECIPE|78455|M|70.00,58.50|Z|Undercity|FACTION|Horde|P|Leatherworking;165;515|N|Sold by Joseph Moore in Undercity|
B Vicious Leather Shoulders|QID|990078455|RECIPE|78455|M|71.60,62.80|Z|Stormwind City|FACTION|Alliance|P|Leatherworking;165;515|N|Sold by Jillian Tanner in Stormwind City|
B Vicious Leathe


 = []
        #     for i in range(sources.shape[0]):
        #         new_sources.append(torch.cat((noise, sources[i]), dim=0).float())
        #     new_sources = torch.from_numpy(np.vstack(new_sources))
        # else:
        #     noise = torch.zeros(int(self.sample_rate * self.slient))
        #     mixture = torch.cat((noise, mixture), dim=0)
        #     new_sources = []
        #     for i in range(sources.shape[0]):
        #         new_sources.append(torch.cat((noise, sources[i]), dim=0))
        #     new_sources = torch.from_numpy(np.vstack(new_sources))

        # noise = torch.zeros(int(self.sample_rate * self.slient))
        # mixture = torch.cat((mixture, noise), dim=0)
        # new_sources = []
        # for i in range(sources.shape[0]):
        #     new_sources.append(torch.cat((sources[i], noise), dim=0))
        # new_sources = torch.from_numpy(np.vstack(new_sources))

        noise = torch.zeros(int(self.sample_rate * self.slient))
        mixture = torch.cat((noise, mixture), dim=0)
        new_sources = []
        for i in range(sources.shape[0]):
            new_sources.append(torch.cat((noise, sources[i]), dim=0))
        new_sources = torch.from_numpy(np.vstack(new_sources))
        return mixture, new_sources, self.mix[idx][0].split("/")[-1]


total = int(getNumCells())*numV;
		const sibr::Vector3u offsetT = sibr::Vector3u(numV, numV, numV);

		sibr::Mesh::Vertices vs(numVtotal);
		sibr::Mesh::Triangles ts(numTtotal);
		for (int i = 0; i < getNumCells(); ++i) {
			const auto cell = getCell(i);
			const sibr::Vector3f offsetV = cell.cast<float>().array()*getCellSize().array();

			for (int v = 0; v < numV; ++v) {
				vs[i*numV + v] = baseMesh->vertices()[v] + offsetV;
			}
			for (int t = 0; t < numT; ++t) {
				ts[i*numT + t] = baseMesh->triangles()[t] + i * offsetT;
			}
		}

		out->vertices(vs);
		out->triangles(ts);
		return out;
	}

	size_t VoxelGridBase::getCellId(const sibr::Vector3i & v) const
	{
		if (outOfBounds(v)) {
			SIBR_ERR << v << " " << dims;
		}
		return v[0] + dims[0] * (v[1] + dims[1] * v[2]); //v[2] + dims[2] * (v[1] + dims[1] * v[0]);
	}

	size_t VoxelGridBase::getCellId(const sibr::Vector3f & world_pos) const
	{
		return getCellId(getCell(world_pos));
	}

	sibr::Vector3f VoxelGridBase::getCellCenter(const sibr::Vector3i & cell) const
	{
		return box.min() + (0.5f*sibr::Vector3f(1, 1, 1) + cell.cast<float>()).cwiseProduct(getCellSize());
	}

	sibr::Vector3f VoxelGridBase::getCellCenter(size_t cellId) const
	{
		return getCellCenter(getCell(cellId));
	}

	int VoxelGridBase::getMinIndex(const sibr::Vector3f & v)
	{
		if (v.x() < v.y()) {
			return v.x() < v.z() ? 0 : 2;
		} else {
			return v.y() < v.z() ? 1 : 2;
		}
	}

	sibr::Vector3f orthoVector(const sibr::Vector3f & v)
	{
		return std::abs(v[2]) < std::abs(v[0]) ? sibr::Vector3f(v[1], -v[0], 0) : sibr::Vector3f(0, -v[2], v[1]);
	}

}/*
 * Copyright (C) 2020, Inria
 * GRAPHDECO research group, https://team.inria.fr/graphdeco
 * All rights reserved.
 *
 * This software is free for non-commercial, research and evaluation use
 * under the terms of the LICENSE.md file.
 *
 * For inquiries contact sibr@inria.fr and/or George.Drettakis@inria.fr
 */

# include <boost/filesystem.hpp>
# include <fstream>
# include "core/assets/ActiveImageFile.hpp"

namespace sibr
{
	bool ActiveImageFile::load( const std::string& filename, bool verbose )
	{

		std::fstream	file(filename, std::ios::in);
		if(_numImages == 0 )
			SIBR_WRG << "No Images Loaded while loading '"<<filename<<"'"<<std::endl;

		// always create the array size of cameras so it can be queried.
		_active.resize(_numImages);
		for(int i=0; i < _numImages; i++)
			_active[i]=false;

		if (file && !boost::filesystem::is_empty(filename))
		{
			while (file.eof() == false)
			{
				int i


		floor.onUpdate.add(() => {
				floor.x -= 2;
				if (floor.x <= -floorSize) {
					floor.x = g.game.width + floorSize;
				}
				const cx = player.x + player.width / 2; //中央
				if (floor.x < cx && floor.x + floorSize > cx) {
					collisionFloor = floor;
				}
				floor.modified();
			});
		}

		//敵設置用エンティティ
		const enemyBase = new g.E({ scene: scene, parent: this });

		// プレイヤーを生成
		const player = new Player(this);

		player.onUpdate.add(() => {
			player.y += 16;
			if (collisionFloor && player.y > collisionFloor.y - player.height) {
				player.y = collisionFloor.y - player.height;
			}
		});

		let isPush = false; //タッチされているか
		let radian = 0; //ショットの角度

		// 攻撃風エフェクト
		const effect = new g.Sprite({
			scene: scene,
			src: scene.asset.getImageById("effect2"),
			width: 50,
			height: 50,
			srcY: 50,
			scaleX: 2,
			scaleY:2,
			parent: this,
		});
		effect.hide();

		//角度取得
		const setAngle = (x: number, y: number): void => {
			const px = player.x + player.width / 2;
			const py = player.y + player.height / 2;
			radian = Math.atan2(y - py, x - px);
		};

		//タッチイベント
		this.onPointDown.add((e) => {
			isPush = true;
			setAngle(e.point.x, e.point.y);
		});

		this.onPointMove.add((e) => {
			setAngle(e.point.x + e.startDelta.x, e.point.y + e.startDelta.y);
		});

		this.onPointUp.add((e) => {
			isPush = false;
			setAngle(e.point.x + e.startDelta.x, e.point.y + e.startDelta.y);
		});

		//メインループ
		let loopCnt = 0;
		this.onUpdate.add(() => {
			bgBase.x -= 1;
			bgBase.modified();

			player.werpon.angle = (radian * 180) / Math.PI;
			player.werpon.modified();

			if (loopCnt % 4 === 0 && isPush && scene.isStart) {
				//ショットを生成
				const shot = new g.Sprite({
					scene: scene,
					x: player.x + player.width / 2 - (loopCnt % 8) * 5,
					y: player.y + player.height / 2 - (loopCnt % 8) * 5,
					src: scene.asset.getImageById("shot"),
					angle: (radian * 180) / Math.PI,
					anchorX: 0.5,
					anchorY: 0.5,
					parent: this,
				});

				//移動量算出
				const speed = 50;
				const mx = speed * Math.cos(radian);
				const my = speed * Math.sin(radian);

				//移動
				shot.x += mx * 4;
				shot.y += my * 4;
				shot.modified();

				shot.onUpdate.add(() => {
					//移動
					shot.x += mx;
					shot.y += my;
					shot.modified();

					let isDelete = false;

					//画面外に出たら削除
					if (
						shot.x + shot.width < 0 ||
						shot.y + shot.width < 0 ||
						shot.x - shot.width > g.game.width ||
						shot.y - shot.width > g.game.height
					) {
						isDelete = true;
					}

					//敵との当たり判定
					enemyBase.children.forEach((e) => {
						const enemy = e as Enemy;
						if (enemy


1234  4B FF B7 95 */	bl func_80170D68
/* 801755D8 00171238  38 00 00 14 */	li r0, 0x14
/* 801755DC 0017123C  9B E1 00 10 */	stb r31, 0x10(r1)
/* 801755E0 00171240  3A C3 00 08 */	addi r22, r3, 8
/* 801755E4 00171244  7E B4 AB 78 */	mr r20, r21
/* 801755E8 00171248  B0 01 00 14 */	sth r0, 0x14(r1)
/* 801755EC 0017124C  80 70 00 0C */	lwz r3, 0xc(r16)
/* 801755F0 00171250  38 03 00 08 */	addi r0, r3, 8
/* 801755F4 00171254  90 10 00 0C */	stw r0, 0xc(r16)
/* 801755F8 00171258  48 00 06 64 */	b lbl_80175C5C
/* 801755FC 0017125C  38 00 00 28 */	li r0, 0x28
/* 80175600 00171260  7E 05 83 78 */	mr r5, r16
/* 80175604 00171264  B0 01 00 14 */	sth r0, 0x14(r1)
/* 80175608 00171268  38 76 00 08 */	addi r3, r22, 8
/* 8017560C 0017126C  38 81 00 10 */	addi r4, r1, 0x10
/* 80175610 00171270  38 C0 00 00 */	li r6, 0
/* 80175614 00171274  81 10 00 0C */	lwz r8, 0xc(r16)
/* 80175618 00171278  38 E0 00 00 */	li r7, 0
/* 8017561C 0017127C  38 08 00 08 */	addi r0, r8, 8
/* 80175620 00171280  90 10 00 0C */	stw r0, 0xc(r16)
/* 80175624 00171284  4B FF B7 45 */	bl func_80170D68
/* 80175628 00171288  7E 05 83 78 */	mr r5, r16
/* 8017562C 0017128C  38 81 00 10 */	addi r4, r1, 0x10
/* 80175630 00171290  4B FF B6 95 */	bl func_80170CC4
/* 80175634 00171294  7C 76 1B 78 */	mr r22, r3
/* 80175638 00171298  48 00 06 24 */	b lbl_80175C5C
/* 8017563C 0017129C  7E C3 B3 78 */	mr r3, r22
/* 80175640 001712A0  7E 05 83 78 */	mr r5, r16
/* 80175644 001712A4  38 81 00 10 */	addi r4, r1, 0x10
/* 80175648 001712A8  38 C0 00 00 */	li r6, 0
/* 8017564C 001712AC  38 E0 00 00 */	li r7, 0
/* 80175650 001712B0  4B FF B7 19 */	bl func_80170D68
/* 80175654 001712B4  38 00 00 7B */	li r0, 0x7b
/* 80175658 001712B8  7E 05 83 78 */	mr r5, r16
/* 8017565C 001712BC  B0 01 00 14 */	sth r0, 0x14(r1)
/* 80175660 001712C0  38 81 00 10 */	addi r4, r1, 0x10
/* 80175664 001712C4  38 63 00 08 */	addi r3, r3, 8
/* 80175668 001712C8  80 D0 00 0C */	lwz r6, 0xc(r16)
/* 8017566C 00


croll-horizontal div,#bd-customcss-detach-container .CodeMirror-simplescroll-vertical div,#bd-customcss-detach-container .CodeMirror-simplescroll-horizontal div{background:var(--main-color)!important}.content-region .CodeMirror-simplescroll-vertical div:active,.content-region .CodeMirror-simplescroll-horizontal div:active,#bd-customcss-detach-container .CodeMirror-simplescroll-vertical div:active,#bd-customcss-detach-container .CodeMirror-simplescroll-horizontal div:active{background:var(--hover-color)!important}.ui-standard-sidebar-view .sidebar-region [class*="scroller-"]{margin:30px 0;-webkit-mask-image:-webkit-linear-gradient(top,transparent 0%,rgba(0,0,0,1) 5%,rgba(0,0,0,1) 95%,transparent 100%)}.ui-standard-sidebar-view .sidebar-region [class*="scroller-"]::-webkit-scrollbar{display:none}.ui-standard-sidebar-view .sidebar-region .sidebar{height:100%;padding:0 6px 0 20px}.ui-standard-sidebar-view .sidebar-region [class*="side-"]{padding:30px 0}.tab-bar.SIDE .tab-bar-item,.ui-tab-bar.SIDE .ui-tab-bar-item,.ui-standard-sidebar-view .ui-tab-bar.SIDE .ui-tab-bar-item::after{-webkit-transition:color .3s ease-in-out,opacity .3s ease-in-out;transition:color .3s ease-in-out,opacity .3s ease-in-out}.ui-standard-sidebar-view .sidebar-region-scroller [class*="item"]{padding:8px 0 8px 20px;margin:0;cursor:pointer!important}.ui-tab-bar.SIDE .ui-tab-bar-item{color:hsla(0,0%,100%,.7)}.ui-tab-bar.SIDE .ui-tab-bar-item.selected,.ui-tab-bar.SIDE .ui-tab-bar-item:active{background:var(--main-color);color:#fff}.ui-standard-sidebar-view .sidebar-region .sidebar-region-scroller [class*="item"],#bd-settings-sidebar .ui-tab-bar-item{color:hsla(0,0%,100%,.3)!important;-webkit-transition:all .15s ease-in-out;transition:all .15s ease-in-out}.ui-standard-sidebar-view .sidebar-region .sidebar-region-scroller [class*="item"]:hover,#bd-settings-sidebar .ui-tab-bar-item:hover{color:hsla(0,0%,100%,.7)!important}.ui-standard-sidebar-view .sidebar-region .sidebar-region-scroller [class*="item"][class*="selected-"],#bd-settings-sidebar .ui-tab-bar-item.selected{background-color:var(--main-color);color:#fff!important}.ui-standard-sidebar-view .sidebar-region .sidebar-region-scroller [class*="item"],#bd-settings-sidebar .ui-tab-bar-item{padding-left:50px}[layer-id="user-settings"] .ui-standard-sidebar-view .sidebar-region .sidebar-region-scroller .sidebar [class*="item"][class*="Brand"]:not([class*="selected-"]):hover{background-color:var(--hover-color)}[layer-id="user-settings"] .ui-standard-sidebar-view .sidebar-region .sidebar-region-scroller .sidebar [class*="itemDanger"]:hover{background-color:#a93d3d}.ui-standard-sidebar-view .sidebar-region .sidebar-region-scroller [class*="item"]::after,#bd-settings-sidebar .ui-tab-bar-item::after{content:"";position:absolute;width:24px;height:24px;left:15px;margin


value_descriptor', position: 3, length: 250, type: TX, required: 'O' }
  ],

  // PROCESSING TYPE
  // This data type indicates whether to process a message as defined in HL7
  // Application (level 7) Processing rules.
  PT = [
    { name: 'processing_id',   position: 1, length: 1, type: ID, required: 'O' },
    { name: 'processing_mode', position: 2, length: 1, type: ID, required: 'O' }
  ],

  // REPEAT INTERVAL
  // Contains the interval between repeated services.
  RI = [
    { name: 'Repeat Pattern',         position: 1, length: 6,   type: IS, required: 'O' },
    { name: 'Explicit Time Interval', position: 2, length: 199, type: ST, required: 'O' }
  ],

  // STREET ADDRESS
  // This data type specifies an entity's street address and associated detail.
  SAD = [
    { name: 'street_address',  position: 1, length: 120, type: ST, required: 'O' },
    { name: 'street_name',     position: 2, length: 50,  type: ST, required: 'O' },
    { name: 'dwelling_number', position: 3, length: 12,  type: ST, required: 'O' }
  ],

  // SPECIMEN SOURCE
  // This data type identifies the site where the specimen should be obtained or
  // where the service should be performed.
  SPS = [
    { name: 'specimen_source_name_or_code',    position: 1, length: 705, type: CWE, required: 'O' },
    { name: 'additives',                       position: 2, length: 705, type: CWE, required: 'O' },
    { name: 'specimen_collection_method',      position: 3, length: 200, type: TX,  required: 'O' },
    { name: 'body_site',                       position: 4, length: 705, type: CWE, required: 'O' },
    { name: 'site_modifier',                   position: 5, length: 705, type: CWE, required: 'O' },
    { name: 'collection_method_modifier_code', position: 6, length: 705, type: CWE, required: 'O' },
    { name: 'specimen_role',                   position: 7, length: 705, type: CWE, required: 'O' }
  ],

  // TIMING QUANTITY
  // Describes when a service should be performed and how frequently.
  TQ = [
    { name: 'quantity',            position: 1,  length: 267, type: CQ,  required: 'O' },
    { name: 'interval',            position: 2,  length: 206, type: RI,  required: 'O' },
    { name: 'duration',            position: 3,  length: 6,   type: ST,  required: 'O' },
    { name: 'start_datetime',      position: 4,  length: 26,  type: TS,  required: 'O' },
    { name: 'end_datetime',        position: 5,  length: 26,  type: TS,  required: 'O' },
    { name: 'priority',            position: 6,  length: 6,   type: ST,  required: 'O' },
    { name: 'condition',           position: 7,  length: 199, type: ST,  required: 'O' },
    { name: 'text',                position: 8,  length: 200, type: TX,  required: 'O' },
    { name: 'conjunction',         position: 9,  length: 1,   type: ID,  required: 'O' },
    { name: 'order_sequencing',    position: 10, length: 110, type: OSD, required: 'O' },
    { name: 'occurrence_duration', position: 11, length: 483, type: CE,  required: 'O' },
    { name: 'total_occurrences',   position: 12, length: 4,   type: NM,  re


m::uninitialized`
/// can be. Note that the [`vec!`] macro *does* let you initialize every element with a
/// value that is only [`Clone`], so the following is semantically equivalent and
/// vastly less dangerous, as long as you can live with an extra heap
/// allocation:
///
/// ```
/// let data: Vec<Vec<u32>> = vec![Vec::new(); 1000];
/// println!("{:?}", &data[0]);
/// ```
///
/// [`Vec`]: ../../std/vec/struct.Vec.html
/// [`vec!`]: ../../std/macro.vec.html
/// [`Clone`]: ../../std/clone/trait.Clone.html
/// [ub]: ../../reference/behavior-considered-undefined.html
/// [write]: ../ptr/fn.write.html
/// [copy]: ../intrinsics/fn.copy.html
/// [copy_no]: ../intrinsics/fn.copy_nonoverlapping.html
/// [`Drop`]: ../ops/trait.Drop.html
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
pub unsafe fn uninitialized<T>() -> T {
    intrinsics::uninit()
}

/// Swaps the values at two mutable locations, without deinitializing either one.
///
/// # Examples
///
/// ```
/// use std::mem;
///
/// let mut x = 5;
/// let mut y = 42;
///
/// mem::swap(&mut x, &mut y);
///
/// assert_eq!(42, x);
/// assert_eq!(5, y);
/// ```
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn swap<T>(x: &mut T, y: &mut T) {
    unsafe {
        ptr::swap_nonoverlapping(x, y, 1);
    }
}

/// Replaces the value at a mutable location with a new one, returning the old value, without
/// deinitializing either one.
///
/// # Examples
///
/// A simple example:
///
/// ```
/// use std::mem;
///
/// let mut v: Vec<i32> = vec![1, 2];
///
/// let old_v = mem::replace(&mut v, vec![3, 4, 5]);
/// assert_eq!(2, old_v.len());
/// assert_eq!(3, v.len());
/// ```
///
/// `replace` allows consumption of a struct field by replacing it with another value.
/// Without `replace` you can run into issues like these:
///
/// ```compile_fail,E0507
/// struct Buffer<T> { buf: Vec<T> }
///
/// impl<T> Buffer<T> {
///     fn get_and_reset(&mut self) -> Vec<T> {
///         // error: cannot move out of dereference of `&mut`-pointer
///         let buf = self.buf;
///         self.buf = Vec::new();
///         buf
///     }
/// }
/// ```
///
/// Note that `T` does not necessarily implement [`Clone`], so it can't even clone and reset
/// `self.buf`. But `replace` can be used to disassociate the original value of `self.buf` from
/// `self`, allowing it to be returned:
///
/// ```
/// # #![allow(dead_code)]
/// use std::mem;
///
/// # struct Buffer<T> { buf: Vec<T> }
/// impl<T> Buffer<T> {
///     fn get_and_reset(&mut self) -> Vec<T> {
///         mem::replace(&mut self.buf, Vec::new())
///     }
/// }
/// ```
///
/// [`Clone`]: ../../std/clone/trait.Clone.html
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn replace<T>(dest: &mut T, mut src: T) -> T {
    swap(dest, &mut src);
    src
}

/// Disposes of a value.
///
/// While this does call the argument's implementation of [`Drop`][drop],
/// it will not release any borrows, as borrows are based on lexical scope.
///
/// This effectively does nothing for
/// [types which implement `Copy`](../../book/first-edition/ownership.html#copy-types),
/// e.g. integers. Such values are copied and _then_ moved into the function


otlptracehttp.WithHeaders(cfg.TelemetryHeaders))
		}
		return otlptracehttp.NewClient(opts...), nil
	default:
		return nil, fmt.Errorf("invalid OTEL_EXPORTER_OTLP_PROTOCOL value %s. Only grpc and http/protobuf are supported", cfg.TelemetryProtocol)
	}
}
package generator

import (
	"fmt"
	"os"
	"strings"

	"get.porter.sh/porter/pkg/secrets"
	"github.com/cnabio/cnab-go/secrets/host"
	survey "gopkg.in/AlecAivazis/survey.v1"
)

// GenerateOptions are the options to generate a parameter or credential set
type GenerateOptions struct {
	// Name of the parameter or credential set.
	Name      string
	Namespace string
	Labels    map[string]string

	// Should we survey?
	Silent bool
}

// SurveyType indicates whether the survey is for a parameter or credential
type SurveyType string

const (
	surveyCredentials SurveyType = "credential"
	surveyParameters  SurveyType = "parameter"

	questionSecret      = "secret"
	questionValue       = "specific value"
	questionEnvVar      = "environment variable"
	questionPath        = "file path"
	questionCommand     = "shell command"
	questionSkip        = "skip"
	surveryFormatString = "%s %s %q\n%s"
	surveyPrefix        = "How would you like to set"
)

type surveyOptions struct {
	required    bool
	description string
}

type surveyOption func(*surveyOptions)

func withDescription(description string) surveyOption {
	return func(s *surveyOptions) {
		s.description = formatDescriptionForSurvey(description)
	}
}

func withRequired(required bool) surveyOption {
	return func(s *surveyOptions) {
		s.required = required
	}
}

type generator func(name string, surveyType SurveyType, opts ...surveyOption) (secrets.SourceMap, error)

func genEmptySet(name string, surveyType SurveyType, opts ...surveyOption) (secrets.SourceMap, error) {
	return secrets.SourceMap{
		Name:   name,
		Source: secrets.Source{Hint: "TODO"},
	}, nil
}

func formatDescriptionForSurvey(description string) string {
	if description != "" {
		description = description + "\n"
	}
	return description
}

func buildSurveySelect(name string, surveyType SurveyType, opts ...surveyOption) *survey.Select {
	surveyOptions := &surveyOptions{}
	for _, opt := range opts {
		opt(surveyOptions)
	}

	selectOptions := []string{questionSecret, questionValue, questionEnvVar, questionPath, questionCommand}
	if !surveyOptions.required {
		selectOptions = append(selectOptions, questionSkip)
	}

	// extra space-suffix to align question and answer. Unfortunately misaligns help text
	return &survey.Select{
		Message: fmt.Sprintf(surveryFormatString, surveyPrefix, surveyType, name, surveyOptions.description),
		Options: selectOptions,
		Default: "environment variable",
	}

}

func genSurvey(name string, surveyType SurveyType, opts ...surveyOption) (secrets.SourceMap, error) {
	if surveyType != surveyCredentials && surveyType != surveyParameters {
		return secrets.SourceMap{}, fmt.Errorf("unsupported survey type: %s", surveyType)
	}

	// extra space-suffix to align question and answer. Unfortunately misaligns help text
	sourceTypePrompt := buildSurveySelect(name, surveyType, opts...)

	// extra space-suffix to align question and answer. Unfortunately misaligns help text
	sourceValuePromptTemplate := "Enter the


(e,{A:()=>o});var n=t(1601),r=t.n(n),i=t(6314),a=t.n(i)()(r());a.push([A.id,".pipeline-json__object{margin-bottom:1.2em;margin-right:-35px;margin-top:1.2em;word-break:break-word;white-space:pre-wrap;display:contents}.pipeline-json__object .pretty-json-container{font-family:ui-monospace,sfmono-regular,sf mono,menlo,consolas,liberation mono,monospace;font-size:.87em}.pipeline-json__object .variable-row,.pipeline-json__object .object-key-val{border-left:none !important}",""]);const o=a},2642:(A,e,t)=>{t.d(e,{A:()=>o});var n=t(1601),r=t.n(n),i=t(6314),a=t.n(i)()(r());a.push([A.id,".feedback-button{background-color:#007bff;border:none;color:#fff;cursor:pointer;font-size:16px;height:40px;line-height:40px;opacity:0;position:fixed;right:-96px;text-align:center;top:50%;padding:0 16px;transform:translateY(-50%) rotate(90deg)}.feedback-button--visible{opacity:1;transition:opacity .5s ease-in}",""]);const o=a},2651:(A,e,t)=>{var n=t(4218);A.exports=function(A,e){var t=A.__data__;return n(e)?t["string"==typeof e?"string":"hash"]:t.map}},2694:(A,e,t)=>{var n=t(6925);function r(){}function i(){}i.resetWarningCache=r,A.exports=function(){function A(A,e,t,r,i,a){if(a!==n){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function e(){return A}A.isRequired=A;var t={array:A,bigint:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:e,element:A,elementType:A,instanceOf:e,node:A,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:r};return t.PropTypes=t,t}},2749:(A,e,t)=>{var n=t(1042),r=Object.prototype.hasOwnProperty;A.exports=function(A){var e=this.__data__;return n?void 0!==e[A]:r.call(e,A)}},2785:A=>{var e=null,t=["Webkit","Moz","O","ms"];A.exports=function(A){e||(e=document.createElement("div"));var n=e.style;if(A in n)return A;for(var r=A.charAt(0).toUpperCase()+A.slice(1),i=t.length;i>=0;i--){var a=t[i]+r;if(a in n)return a}r


');
    }).get(Cypress.env('BUY_INPUT')).should('not.be.disabled');
  });

  it('calculate ticket size and render tickets', () => {
    function checkTickets(money: number): Cypress.Chainable<JQuery<any>> {
      const ticketSize = Math.floor(money / 1000);
      return (
        inputMoneyString(money.toString())
          .get(Cypress.env('BUY_INPUT'))
          .should('be.disabled')
          .get(Cypress.env('BUY_BUTTON'))
          .should('be.disabled')
          .get(Cypress.env('TICKET_SIZE_LABEL'))
          .should('have.text', `총 ${ticketSize}개를 구매하였습니다.`)
          .get(Cypress.env('TICKET_RENDER_CONTAINER'))
          .find('span')
          .should('have.length', ticketSize)
      );
    }

    cy.reload();
    checkTickets(5000);

    cy.reload();
    checkTickets(50000);

    cy.reload();
    checkTickets(27000);
  });

  it('alert when user input money value with remainder', () => {
    let alertMessage: String;
    cy.on('window:alert', (str) => {
      alertMessage = str;
    });

    cy.reload().then(() => {
      alertMessage = undefined;
    });
    inputMoneyString('5500').then(() => {
      expect(alertMessage).to.equal('잔돈으로 500원이 남았습니다');
    });

    cy.reload().then(() => {
      alertMessage = undefined;
    });
    inputMoneyString('1234').then(() => {
      expect(alertMessage).to.equal('잔돈으로 234원이 남았습니다');
    });
  });

  it('show numbers when number toggle enable', () => {
    cy.reload();
    inputMoneyString('4672')
      .get(Cypress.env('TICKET_NUMBER_TOGGLE')).click()
      .get(Cypress.env('TICKET_RENDER_CONTAINER'))
      .find('span')
      .each(($el) => {
        const numArr = $el.text().substr(4).split(', ').map((val) => Number(val));
        expect(numArr).to.be.an('array')
          .and.to.be.lengthOf(6)
          .and.to.satisfy((nums) => (
            nums.every((num) => (num >= 1 && num <= 45))
          ));
      });
  });
});
import {IOEvents as IO_EVENT} from '../../common/events';
import {AbstractMediator} from './abstractMediator';
export class WordMediator extends AbstractMediator {

    constructor(component:any) {
        super(component);
        this.messageBus.on(IO_EVENT.LETTER_UPDATED, this.updateView.bind(this));
    }

    private updateView(payload) {
        var letters = payload.letters;
        this.component.setState({
            letters : letters
        }, ()=> {
        console.log('words updated');
            this.messageBus.emit(IO_EVENT.VIEW_UPDATED)
        });
    }
}
import { Validator, NG_VALIDATORS, AbstractControl } from '@angular/forms';
import { Directive, Input } from '@angular/core';

@Directive({
    selector: '[confirmEqualsValidator]',
    providers: [{
        // Add validator to Angular list of Validators.
        provide: NG_VALIDATORS,
        useExisting: ConfirmEqualsValidator,
        multi: true
    }]
})

export class ConfirmEqualsValidator implements Validator {

    @Input() confirmEqualsValidator: string;

    // accepts a control object passed in.
    validate(control: AbstractControl): { [key: string]:


UI.EndDisabledGroup();
                --EditorGUI.indentLevel;
            }

            EditorGUI.EndDisabledGroup();
        }

        protected void UpdateStencil(Material m)
        {
            var stencilPreset = (StencilPreset) m.GetFloat(OutlinesStencilLayerId);

            var hasOutlinesStencilLayerKeyword = new LocalKeyword(m.shader, ShaderKeywords.StencilOverride);
            bool enableStencil = stencilPreset != StencilPreset.None && CanControlStencil(GetFirstMaterial());
            if (stencilPreset != StencilPreset.Custom)
            {
                if (enableStencil)
                {
                    byte reference = ((StencilLayer) stencilPreset).ToReference();
                    m.SetFloat(ForwardStencilRefId, reference);
                    m.SetFloat(ForwardStencilReadMaskId, 255);
                    m.SetFloat(ForwardStencilWriteMaskId, reference);
                    m.SetFloat(ForwardStencilCompId, (int) CompareFunction.Always);
                    m.SetFloat(ForwardStencilPassId, (int) StencilOp.Replace);
                }
                else
                {
                    m.SetFloat(ForwardStencilRefId, 0);
                    m.SetFloat(ForwardStencilReadMaskId, 255);
                    m.SetFloat(ForwardStencilWriteMaskId, 255);
                    m.SetFloat(ForwardStencilCompId, (int) CompareFunction.Always);
                    m.SetFloat(ForwardStencilPassId, (int) StencilOp.Keep);
                }
            }

            m.SetKeyword(hasOutlinesStencilLayerKeyword, enableStencil);
        }

        protected virtual bool CanControlStencil(Material m) => true;

        private bool IsCanUseOutlinesStencilLayerMixed() => FindProperty(PropertyNames.ZWrite).hasMixedValue;

        protected void DrawOverrideRamp()
        {
            DrawProperty("_OverrideRamp", out MaterialProperty overrideRamp);

            if (overrideRamp.hasMixedValue || overrideRamp.floatValue == 0)
            {
                return;
            }

            EditorGUI.indentLevel++;
            DrawProperty("_OverrideRamp_Threshold");
            DrawProperty("_OverrideRamp_Smoothness");
            DrawProperty("_OverrideRamp_SpecularThreshold");
            DrawProperty("_OverrideRamp_SpecularSmoothness");
            DrawProperty("_OverrideRamp_RimThreshold");
            DrawProperty("_OverrideRamp_RimSmoothness");
            EditorGUI.indentLevel--;
        }

        protected void DrawBlobShadows()
        {
            MaterialProperty property = FindProperty(PropertyNames.ReceiveBlobShadows, Properties);
            if (property == null)
            {
                return;
            }

            EditorGUI.showMixedValue = property.hasMixedValue;
            bool currentValue = property.floatValue > 0.5f;
            bool newValue = EditorGUILayout.Toggle("Receive Blob Shadows", currentValue);
            if (currentValue != newValue)
            {
                property.floatValue = newValue ? 1.0f : 0.0f;
                ForEachMaterial(m => m.SetKeyword(ShaderKeywords.ReceiveBlobShadows, newValue));
                MaterialEditor.PropertiesChanged();
            }

            EditorGUI.showMixedValue = false;
        }
    }
}


/**
 * @file cutting.h
 * @author hjm (hjmalex@163.com)
 * @version 3.0
 * @date 2022-05-15
 */
#ifndef CT_TOOL_CUTTING_H
#define CT_TOOL_CUTTING_H

#include "base/customdialog.h"

namespace Ui
{
    class Cutting;
}

class Cutting : public ct::CustomDialog
{
    Q_OBJECT

public:
    explicit Cutting(QWidget* parent = nullptr);
    ~Cutting();

    virtual void init();
    void selectIn();
    void selectOut();
    void add();
    void apply();
    void start();
    virtual void reset();
    virtual void deinit() { m_cloudview->clearInfo(); }

private:
    void updateInfo(int index);
    void cuttingCloud(bool select_in);

public slots:
    void mouseLeftPressed(const ct::PointXY& pt);
    void mouseLeftReleased(const ct::PointXY& pt);
    void mouseRightReleased(const ct::PointXY& pt);
    void mouseMoved(const ct::PointXY& pt);

private:
    Ui::Cutting* ui;
    bool is_picking;
    bool pick_start;
    std::vector<ct::PointXY> m_pick_points;
    std::map<QString, ct::Cloud::Ptr> m_cutting_map;
};

#endif // CUTTING_H


\
	SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
	SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
	SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2);

#define SP(SBOX, x0, x1, x2, x3, x4, i) \
	get_key(i, 0, RK0); \
	SBOX ## _1(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
	get_key(i, 2, RK2); \
	SBOX ## _2(x0 ## 1, x1 ## 1, x2 ## 1, x3 ## 1, x4 ## 1); \
	get_key(i, 3, RK3); \
	SBOX ## _1(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \
	get_key(i, 1, RK1); \
	SBOX ## _2(x0 ## 2, x1 ## 2, x2 ## 2, x3 ## 2, x4 ## 2); \

#define transpose_4x4(x0, x1, x2, x3, t0, t1, t2) \
	vpunpckldq		x1, x0, t0; \
	vpunpckhdq		x1, x0, t2; \
	vpunpckldq		x3, x2, t1; \
	vpunpckhdq		x3, x2, x3; \
	\
	vpunpcklqdq		t1, t0, x0; \
	vpunpckhqdq		t1, t0, x1; \
	vpunpcklqdq		x3, t2, x2; \
	vpunpckhqdq		x3, t2, x3;

#define read_blocks(x0, x1, x2, x3, t0, t1, t2) \
	transpose_4x4(x0, x1, x2, x3, t0, t1, t2)

#define write_blocks(x0, x1, x2, x3, t0, t1, t2) \
	transpose_4x4(x0, x1, x2, x3, t0, t1, t2)

.align 8
SYM_FUNC_START_LOCAL(__serpent_enc_blk16)
	/* input:
	 *	%rdi: ctx, CTX
	 *	RA1, RB1, RC1, RD1, RA2, RB2, RC2, RD2: plaintext
	 * output:
	 *	RA1, RB1, RC1, RD1, RA2, RB2, RC2, RD2: ciphertext
	 */

	vpcmpeqd RNOT, RNOT, RNOT;

	read_blocks(RA1, RB1, RC1, RD1, RK0, RK1, RK2);
	read_blocks(RA2, RB2, RC2, RD2, RK0, RK1, RK2);

						 K2(RA, RB, RC, RD, RE, 0);
	S(S0, RA, RB, RC, RD, RE);		LK2(RC, RB, RD, RA, RE, 1);
	S(S1, RC, RB, RD, RA, RE);		LK2(RE, RD, RA, RC, RB, 2);
	S(S2, RE, RD, RA, RC, RB);		LK2(RB, RD, RE, RC, RA, 3);
	S(S3, RB, RD, RE, RC, RA);		LK2(RC, RA, RD, RB, RE, 4);
	S(S4, RC, RA, RD, RB, RE);		LK2(RA, R


EYBARS(15, "Monkey Bars", null, ObjectID.MONKEYBARS_END1),
	TROLLHEIM_ROCKS(15, "Rocks", null, new WorldPoint(2838, 3614, 0), ObjectID.TROLL_CLIMBINGROCKS), // No fixed world map location, but rocks near death plateau have a requirement of 15
	YANILLE_UNDERWALL_TUNNEL(16, "Underwall Tunnel", new WorldPoint(2574, 3109, 0), ObjectID.YANILLE_CASTLEHOLE_SC, ObjectID.YANILLE_CASTLEWALL_SC),
	KOUREND_CATACOMBS_SOUTH_WEST_CRACK_NORTH(17, "Crack", new WorldPoint(1647, 10008, 0), ObjectID.ZEAH_CATA_CRACK),
	KOUREND_CATACOMBS_SOUTH_WEST_CRACK_SOUTH(17, "Crack", new WorldPoint(1645, 10001, 0), ObjectID.ZEAH_CATA_CRACK),
	CRABCLAW_CAVES_CREVICE(18, "Crevice", new WorldPoint(1710, 9822, 0), ObjectID.HOSIDIUSQUEST_CRACKIN, ObjectID.HOSIDIUSQUEST_CRACKOUT),
	CRABCLAW_CAVES_ROCKS(18, "Rocks", new WorldPoint(1687, 9802, 0), ObjectID.HOSIDIUSQUEST_ROCK),
	CRABCLAW_CAVES_STEPPING_STONES(18, "Stepping Stones", new WorldPoint(1704, 9800, 0), ObjectID.HOSIDIUSQUEST_STONE),
	YANILLE_WATCHTOWER_TRELLIS(18, "Trellis", null, ObjectID.QIP_WATCHTOWER_TRELLIS_BASE),
	COAL_TRUCKS_LOG_BALANCE(20, "Log Balance", new WorldPoint(2598, 3475, 0), ObjectID.MINE_LOG_BALANCE1),
	GRAND_EXCHANGE_UNDERWALL_TUNNEL(21, "Underwall Tunnel", new WorldPoint(3139, 3515, 0), ObjectID.VARROCK_SC_TUNNEL_WEST, ObjectID.VARROCK_SC_TUNNEL_EAST),
	BRIMHAVEN_DUNGEON_PIPE(22, "Pipe Squeeze", new WorldPoint(2654, 9569, 0), ObjectID.KARAM_DUNGEON_PIPE2),
	OBSERVATORY_SCALE_CLIFF(23, "Grapple Rocks", new WorldPoint(2447, 3155, 0), ObjectID.XBOWS_ROPE_DIAGONAL_OBS, ObjectID.XBOWS_ROCK_HILLTOP_OBS),
	NEMUS_RETREAT_WALL_SOUTH_EAST(24, "Broken Wall", new WorldPoint(1386, 3302, 0), ObjectID.AV_LOWWALL_CLIMB_1),
	NEMUS_RETREAT_WALL_SOUTH_WEST(24, "Broken Wall", new WorldPoint(1368, 3295, 0), ObjectID.AV_LOWWALL_CLIMB_1),
	NEMUS_RETREAT_WALL_EAST(24, "Broken Wall", new WorldPoint(1389, 3309, 0), ObjectID.AV_LOWWALL_CLIMB_2),
	EAGLES_PEAK_ROCK_CLIMB(25, "Rock Climb", new WorldPoint(2320, 3499, 0), ObjectID.EP_CLIMBING_ROCKS01),
	FALADOR_UNDERWALL_TUNNEL(26, "Underwall Tunnel", new WorldPoint(2947, 3313, 0), ObjectID.FALADOR_SC_CASTLEWALL_SOUTH, ObjectID.FALAD


eGetter method first.");
        }

        if (!directToOneGetter.include()) {
            return;
        }
        Class<?> flatClassType = includeParserResult.getIncludeNavigateParams().getFlatClassType();
        Map<Object, Object> flatClassMap = includeParserResult.getFlatClassMap();
        String[] directSelfPropertiesOrPrimary = includeParserResult.getNavigateMetadata().getDirectSelfPropertiesOrPrimary(runtimeContext);
        for (RelationExtraEntity entity : entities) {
            RelationValue selfRelationId = entity.getRelationExtraColumns(directSelfPropertiesOrPrimary);
            if (selfRelationId.isNull()) {
                continue;
            }
            Object targetEntity = directToOneGetter.getIncludeValue(selfRelationId);
            if (targetEntity != null) {
                //如果报错cast那么请确认是否保留了最后一层的集合
                //NavigateFlat 展开最后一层后如果使用了ManyToOne或者OneToOne的对象那么必须保留最后一层集合不可以直接Flat到对象
//                setEntityValue(entity.getEntity(), targetEntity);

                if (flatClassType != null) {//特殊处理
                    Object flatPaddingValue = directToOneGetter.getFlatPaddingValue();
                    flatClassMap.put(flatPaddingValue, targetEntity);
                    setEntityValue(entity.getEntity(), flatPaddingValue);
                } else {
                    addEntityStateIncludes(entity.getEntity(), targetEntity);
                    setEntityValue(entity.getEntity(), targetEntity);
                }
            }
        }
    }

    @Override
    protected void ManyToOneProcess(List<RelationExtraEntity> includes) {
        String[] selfRelationColumn = getSelfRelationColumn();
        RelationIncludeGetter manyToOneGetter = selfNavigateMetadata.getEntityRelationPropertyProvider().getManyToOneGetter(runtimeContext, selfNavigateMetadata, targetColumnMetadataPropertyNames, includes);
        if (manyToOneGetter == null) {
            throw new EasyQueryInvalidOperationException("Please implement the getManyToOneGetter method first.");
        }

        if (!manyToOneGetter.include()) {
            return;
        }
        Class<?> flatClassType = includeParserResult.getIncludeNavigateParams().getFlatClassType();
        Map<Object, Object> flatClassMap = includeParserResult.getFlatClassMap();
        for (RelationExtraEntity entity : entities) {
            RelationValue relationId = entity.getRelationExtraColumns(selfRelationColumn);
            if (relationId.isNull()) {
                continue;
            }
            Object entityInclude = manyToOneGetter.getIncludeValue(relationId);
            if (entityInclude != null) {
                //如果报错cast那么请确认是否保留了最后一层的集合
                //NavigateFlat 展开最后一层后如果使用了ManyToOne或者OneToOne的对象那么必须保留最后一层集合不可以直接Flat到对象

                if (flatClassType != null) {//特殊处理
                    Object flatPaddingValue = manyToOneGetter.getFlatPaddingValue();
                    flatClassMap.put(flatPaddingValue, entityInclude);
                    setEntityValue(entity.getEntity(), flatPaddingValue);
                } else {
                    addEntityStateIncludes(entity.getEntity(), entityInclude);
                    setEntityValue(entity.getEntity(), entityInclude);
                }
            }
        }
    }

    @Override
    protected void OneToManyProcess(List<RelationExtraEntity> includes) {
        boolean single = singleEntityToManyProcess(includes);
        if (single) {
            return;
        }

        //获取关联关系列的元信息
        String[] selfRelationColumn = getSelfRelationColumn();
        //entities如果size只有1就不需要后续操作
        RelationIncludeGetter oneToManyGetter = selfNavigateMetadata.getEntityRelationPropertyProvider().getOneToManyGetter(runtimeContext, selfNavigateMetadata, targetColumnMetadataPropertyNames, includes);
        if (oneToManyGetter ==


terator {
  }
  class HashIterator {
    int lastReturned;
    int nextEntry;
    int currentTable;
    int nextTableIndex;
    int nextSegmentIndex;
  }
  class Segment {
    int loadFactor;
    int table;
    int threshold;
    int modCount;
    int count;
    int serialVersionUID;
  }
  class HashEntry {
    int next;
    int value;
    int hash;
    int key;
  }
  int values;
  int entrySet;
  int keySet;
  int segments;
  int segmentShift;
  int segmentMask;
  int RETRIES_BEFORE_LOCK;
  int MAX_SEGMENTS;
  int MAXIMUM_CAPACITY;
  int DEFAULT_CONCURRENCY_LEVEL;
  int DEFAULT_LOAD_FACTOR;
  int DEFAULT_INITIAL_CAPACITY;
  int serialVersionUID;
}
class CompletionService {
}
class CancellationException {
  int serialVersionUID;
}
class Callable {
}
class BrokenBarrierException {
  int serialVersionUID;
}
class BlockingQueue {
}
class BlockingDeque {
}
class AbstractExecutorService {
}
package com.android.ex.chips;
class SingleRecipientArrayAdapter {
  int mLayoutInflater;
  int mLayoutId;
}
class RecipientEntry {
  int mPhotoBytes;
  int mPhotoThumbnailUri;
  int mIsDivider;
  int mDataId;
  int mContactId;
  int mDestinationLabel;
  int mDestinationType;
  int mDestination;
  int mDisplayName;
  int mIsFirstLevel;
  int mEntryType;
  int ENTRY_TYPE_SIZE;
  int ENTRY_TYPE_PERSON;
  int INVALID_DESTINATION_TYPE;
  int GENERATED_CONTACT;
  int INVALID_CONTACT;
}
class RecipientEditTextView {
  class RecipientChipShadow {
    int mChip;
  }
  class MoreImageSpan {
  }
  class IndividualReplacementTask {
  }
  class RecipientReplacementTask {
  }
  class RecipientTextWatcher {
  }
  int mDelayedShrink;
  int mHandlePendingChips;
  int mIndividualReplacements;
  int mAddTextWatcher;
  int mDragEnabled;
  int mTriedGettingScrollView;
  int mScrollView;
  int mTextWatcher;
  int mCheckedItem;
  int mAlternatesListener;
  int mCopyAddress;
  int mCopyDialog;
  int mGestureDetector;
  int mShouldShrink;
  int mRemovedSpans;
  int mTemporaryRecipients;
  int mAddressPopup;
  int mAlternatesPopup;
  int mNoChips;
  int mPendingChipsCount;
  int mHandler;
  int mPendingChips;
  int mMoreItem;
  int mMoreChip;
  int mDefaultContactPhoto;
  int mAlternatesLayout;
  int mSelectedChip;
  int mValidator;
  int mTokenizer;
  int mChipPadding;
  int mLineSpacingExtra;
  int mChipFontSize;
  int mChipHeight;
  int mChipBackgroundPressed;
  int mInvalidChipBackground;
  int mChipDelete;
  int mChipBackground;
  int sSelectedTextColor;
  int MAX_CHIPS_PARSED;
  int CHIP_LIMIT;
  int DISMISS_DELAY;
  int DISMISS;
  int TAG;
  int COMMIT_CHAR_SPACE;
  int COMMIT_CHAR_SEMICOLON;
  int COMMIT_CHAR_COMMA;
}
class RecipientChip {
  int mOriginalText;
  int mSelected;
  int mEntry;
  int mDataId;
  int mContactId;
  int mValue;
  int mDisplay;
}
class RecipientAlternatesAdapterTest {
}
class Rec


t rgb = [+Infinity, +Infinity, +Infinity];
            const actual = Color.rgb2hex.apply(null, rgb);
            const expected = '#000000';
            expect(actual).toEqual(expected);
        });
    });
    describe('hex2rgb', () => {
        it('should return rgb values for a full 6 letter hex value', () => {
            const hex = '#FF00FF';
            const actual = Color.hex2rgb(hex);
            const expected = {r: 255, g: 0, b: 255, rgb: `rgb(255, 0, 255)`, rgba: `rgba(255, 0, 255, 1)`};
            expect(actual.rgb).toEqual(expected.rgb);
            expect(actual.rgba).toEqual(expected.rgba);
            expect(Object.keys(actual)).toEqual(Object.keys(expected));
        });
        it('should return black for undefined input', () => {
            const actual = Color.hex2rgb();
            const expected = {r: 0, g: 0, b: 0, rgb: `rgb(0, 0, 0)`, rgba: `rgba(0, 0, 0, 1)`};
            expect(actual.rgb).toEqual(expected.rgb);
            expect(actual.rgba).toEqual(expected.rgba);
            expect(Object.keys(actual)).toEqual(Object.keys(expected));
        });
        it('should return black for bad input', () => {
            const actual = Color.hex2rgb('#a');
            const expected = {r: 0, g: 0, b: 0, rgb: `rgb(0, 0, 0)`, rgba: `rgba(0, 0, 0, 1)`};
            expect(actual.rgb).toEqual(expected.rgb);
            expect(actual.rgba).toEqual(expected.rgba);
            expect(Object.keys(actual)).toEqual(Object.keys(expected));
        });
        it('should return black for long, bad input', () => {
            const actual = Color.hex2rgb('#abcdefghijklmnop');
            const expected = {r: 0, g: 0, b: 0, rgb: `rgb(0, 0, 0)`, rgba: `rgba(0, 0, 0, 1)`};
            expect(actual.rgb).toEqual(expected.rgb);
            expect(actual.rgba).toEqual(expected.rgba);
            expect(Object.keys(actual)).toEqual(Object.keys(expected));
        });
        it('should return black for non-hex, bad input', () => {
            const actual = Color.hex2rgb('#zzyyxx');
            const expected = {r: 0, g: 0, b: 0, rgb: `rgb(0, 0, 0)`, rgba: `rgba(0, 0, 0, 1)`};
            expect(actual.rgb).toEqual(expected.rgb);
            expect(actual.rgba).toEqual(expected.rgba);
            expect(Object.keys(actual)).toEqual(Object.keys(expected));
        });
    });
});
import { Coordinates } from '../interfaces/coordinates.interface';
import { ValueTransformer } from 'typeorm';

export class PointTransformer implements ValueTransformer {
  to(value: Coordinates) {
    const { x, y } = value;
    return `${x}, ${y}`;
  }

  from(value): Coordinates {
    if (!value) {
      return;
    }
    const { x, y } = value;
    return { x, y };
  }
}
import { ActionTree } from 'vuex'
import jwt_decode from 'jwt-decode'
import { asyncRouterMap } from '../router'
import hasPermission from '../utils/hasPermission'

const actions: ActionTree<any, any> = {
  async setUser ({ state, commit }, user: any) {
    const decoded: any = jwt_decode(user)
    commit('SET_USER', decoded)
    const { key } = decoded
    console.log(key)
    let accessedRouters = filterAsyncRouter(asyncRouterMap, key)
    commit('SET_ROUTERS', accessedRouters)
  }
}

export default actions

/**
 * 递归过滤异步路由表，返回符合用户角色权限的路由表
 * @param asyncRouterMap 所有路由表
 * @param roles 当前角色
 */

function filterAsyncRouter (asyncRouterMap


field.NewTime(tableName, "oper_time")
	_sysOperLog.CostTime = field.NewInt64(tableName, "cost_time")

	_sysOperLog.fillFieldMap()

	return _sysOperLog
}

type sysOperLog struct {
	sysOperLogDo sysOperLogDo

	ALL           field.Asterisk
	OperID        field.Int64  // 日志主键
	Title         field.String // 模块标题
	BusinessType  field.Int32  // 业务类型（0其它 1新增 2修改 3删除）
	Method        field.String // 方法名称
	RequestMethod field.String // 请求方式
	OperatorType  field.Int32  // 操作类别（0其它 1后台用户 2手机端用户）
	OperName      field.String // 操作人员
	DeptName      field.String // 部门名称
	OperURL       field.String // 请求URL
	OperIP        field.String // 主机地址
	OperLocation  field.String // 操作地点
	OperParam     field.String // 请求参数
	JSONResult    field.String // 返回参数
	Status        field.Int32  // 操作状态（0正常 1异常）
	ErrorMsg      field.String // 错误消息
	OperTime      field.Time   // 操作时间
	CostTime      field.Int64  // 消耗时间

	fieldMap map[string]field.Expr
}

func (s sysOperLog) Table(newTableName string) *sysOperLog {
	s.sysOperLogDo.UseTable(newTableName)
	return s.updateTableName(newTableName)
}

func (s sysOperLog) As(alias string) *sysOperLog {
	s.sysOperLogDo.DO = *(s.sysOperLogDo.As(alias).(*gen.DO))
	return s.updateTableName(alias)
}

func (s *sysOperLog) updateTableName(table string) *sysOperLog {
	s.ALL = field.NewAsterisk(table)
	s.OperID = field.NewInt64(table, "oper_id")
	s.Title = field.NewString(table, "title")
	s.BusinessType = field.NewInt32(table, "business_type")
	s.Method = field.NewString(table, "method")
	s.RequestMethod = field.NewString(table, "request_method")
	s.OperatorType = field.NewInt32(table, "operator_type")
	s.OperName = field.NewString(table, "oper_name")
	s.DeptName = field.NewString(table, "dept_name")
	s.OperURL = field.NewString(table, "oper_url")
	s.OperIP = field.NewString(table, "oper_ip")
	s.OperLocation = field.NewString(table, "oper_location")
	s.OperParam = field.NewString(table, "oper_param")
	s.JSONResult = field.NewString(table, "json_result")
	s.Status = field.NewInt32(table, "status")
	s.ErrorMsg = field.NewString(table, "error_msg")
	s.OperTime = field.NewTime(table, "oper_time")
	s.CostTime = field.NewInt64(table, "cost_time")

	s.fillFieldMap()

	return s
}

func (s *sysOperLog) WithContext(ctx context.Context) *sysOperLogDo {
	return s.sysOperLogDo.WithContext(ctx)
}

func (s sysOperLog) TableName() string { return s.sysOperLogDo.TableName() }

func (s sysOperLog) Alias() string { return s.sysOperLogDo.Alias() }

func (s sysOperLog) Columns(cols ...field.Expr) gen.Columns { return s.sysOperLogDo.Columns(cols


issuers").
		Name(name).
		VersionedParams(&options, scheme.ParameterCodec).
		Do(ctx).
		Into(result)
	return
}

// List takes label and field selectors, and returns the list of ClusterIssuers that match those selectors.
func (c *clusterIssuers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha3.ClusterIssuerList, err error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	result = &v1alpha3.ClusterIssuerList{}
	err = c.client.Get().
		Resource("clusterissuers").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Do(ctx).
		Into(result)
	return
}

// Watch returns a watch.Interface that watches the requested clusterIssuers.
func (c *clusterIssuers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	var timeout time.Duration
	if opts.TimeoutSeconds != nil {
		timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
	}
	opts.Watch = true
	return c.client.Get().
		Resource("clusterissuers").
		VersionedParams(&opts, scheme.ParameterCodec).
		Timeout(timeout).
		Watch(ctx)
}

// Create takes the representation of a clusterIssuer and creates it.  Returns the server's representation of the clusterIssuer, and an error, if there is any.
func (c *clusterIssuers) Create(ctx context.Context, clusterIssuer *v1alpha3.ClusterIssuer, opts v1.CreateOptions) (result *v1alpha3.ClusterIssuer, err error) {
	result = &v1alpha3.ClusterIssuer{}
	err = c.client.Post().
		Resource("clusterissuers").
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(clusterIssuer).
		Do(ctx).
		Into(result)
	return
}

// Update takes the representation of a clusterIssuer and updates it. Returns the server's representation of the clusterIssuer, and an error, if there is any.
func (c *clusterIssuers) Update(ctx context.Context, clusterIssuer *v1alpha3.ClusterIssuer, opts v1.UpdateOptions) (result *v1alpha3.ClusterIssuer, err error) {
	result = &v1alpha3.ClusterIssuer{}
	err = c.client.Put().
		Resource("clusterissuers").
		Name(clusterIssuer.Name).
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(clusterIssuer).
		Do(ctx).
		Into(result)
	return
}

// UpdateStatus was generated because the type contains a Status member.
// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (c *clusterIssuers) UpdateStatus(ctx context.Context, clusterIssuer *v1alpha3.ClusterIssuer, opts v1.UpdateOptions) (result *v1alpha3.ClusterIssuer, err error) {
	result = &v1alpha3.ClusterIssuer{}
	err = c.client.Put().
		Resource("clusterissuers").
		Name(clusterIssuer.Name).
		SubResource("status").
		VersionedParams(&opts, scheme.ParameterCodec).
		Body(clusterIssuer).
		Do(ctx).
		Into(result)
	return
}

// Delete takes name of the clusterIssuer and deletes it. Returns an error if one occurs.
func (c *clusterIssuers) Delete(ctx context


: 29%;
}

.inline-edit-row p.submit {
	zoom: 100%;
}

.inline-edit-row fieldset label span.title {
	display: block;
	float: left;
	width: 5em;
}

.inline-edit-row fieldset label span.input-text-wrap {
	margin-left: 0;
	zoom: 100%;
}

#wpbody-content .inline-edit-row fieldset label span.input-text-wrap input {
	line-height: 130%;
}

#wpbody-content .inline-edit-row .input-text-wrap input {
	width: 95%;
}

#wpbody-content .inline-edit-row .input-text-wrap input.inline-edit-password-input {
	width: 8em;
}
/* end Inline Editor */

#titlediv #title {
	width: 98%;
}

.button,
input[type="reset"],
input[type="button"],
input[type="submit"] {
	padding: 0 8px;
	line-height: 20px;
	height: auto;
}

.button.button-large,
input[type="reset"].button-large,
input[type="button"].button-large,
input[type="submit"].button-large {
	padding: 0 10px;
	line-height: 24px;
	height: auto;
}

.button.button-small,
input[type="reset"].button-small,
input[type="button"].button-small,
input[type="submit"].button-small {
	padding: 0 6px;
	line-height: 16px;
	height: auto;
}

a.button {
	margin: 1px;
	padding: 1px 9px 2px;
}

a.button.button-large {
	padding: 1px 11px 2px;
}

a.button.button-small {
	padding: 1px 7px 2px;
}

#screen-options-wrap {
	overflow: hidden;
}

#the-comment-list .comment-item,
#post-status-info,
#wpwrap,
#wrap,
#postdivrich,
#postdiv,
#poststuff,
.metabox-holder,
#titlediv,
#post-body,
#editorcontainer,
.tablenav,
.widget-liquid-left,
.widget-liquid-right,
#widgets-left,
.widgets-sortables,
#dragHelper,
.widget .widget-top,
.widget-control-actions,
.tagchecklist,
#col-container,
#col-left,
#col-right,
.fileedit-sub {
	display: block;
	zoom: 100%;
}

p.search-box {
	position: static;
	float: right;
	margin: -3px 0 4px;
}

#widget-list .widget,
.feature-filter .feature-group li {
	display: inline;
}

.feature-filter .feature-group li input {
	vertical-align: middle;
}

#editorcontainer #content {
	overflow: auto;
	margin: auto;
	width: 98%;
}

form#template div {
	width: 100%;
}

.wp-editor-container .quicktags-toolbar input {
	overflow: visible;
	padding: 0 4px;
}

#poststuff h2 {
	font-size: 1.6em;
}

#poststuff .inside #parent_id,
#poststuff .inside #page_template,
.inline-edit-row #post_parent,
.inline-edit-row select[name="page_template"] {
	width: 250px;
}

#submitdiv input,
#submitdiv select,
#submitdiv a.button {
	position: relative;
}

#bh {
	margin: 7px 10px 0 0;
	float: right;
}

/* without this dashboard widge


"id": "2471",
		"name": "Orhei",
		"country_id": "144"
	},
	{
		"id": "2472",
		"name": "Soroca",
		"country_id": "144"
	},
	{
		"id": "2473",
		"name": "Taraclia",
		"country_id": "144"
	},
	{
		"id": "2474",
		"name": "Tighina",
		"country_id": "144"
	},
	{
		"id": "2475",
		"name": "Transnistria",
		"country_id": "144"
	},
	{
		"id": "2476",
		"name": "Ungheni",
		"country_id": "144"
	},
	{
		"id": "2477",
		"name": "Fontvieille",
		"country_id": "145"
	},
	{
		"id": "2478",
		"name": "La Condamine",
		"country_id": "145"
	},
	{
		"id": "2479",
		"name": "Monaco-Ville",
		"country_id": "145"
	},
	{
		"id": "2480",
		"name": "Monte Carlo",
		"country_id": "145"
	},
	{
		"id": "2481",
		"name": "Arhangaj",
		"country_id": "146"
	},
	{
		"id": "2482",
		"name": "Bajan-Olgij",
		"country_id": "146"
	},
	{
		"id": "2483",
		"name": "Bajanhongor",
		"country_id": "146"
	},
	{
		"id": "2484",
		"name": "Bulgan",
		"country_id": "146"
	},
	{
		"id": "2485",
		"name": "Darhan-Uul",
		"country_id": "146"
	},
	{
		"id": "2486",
		"name": "Dornod",
		"country_id": "146"
	},
	{
		"id": "2487",
		"name": "Dornogovi",
		"country_id": "146"
	},
	{
		"id": "2488",
		"name": "Dundgovi",
		"country_id": "146"
	},
	{
		"id": "2489",
		"name": "Govi-Altaj",
		"country_id": "146"
	},
	{
		"id": "2490",
		"name": "Govisumber",
		"country_id": "146"
	},
	{
		"id": "2491",
		"name": "Hentij",
		"country_id": "146"
	},
	{
		"id": "2492",
		"name": "Hovd",
		"country_id": "146"
	},
	{
		"id": "2493",
		"name": "Hovsgol",
		"country_id": "146"
	},
	{
		"id": "2494",
		"name": "Omnogovi",
		"country_id": "146"
	},
	{
		"id": "2495",
		"name": "Orhon",
		"country_id": "146"
	},
	{
		"id": "2496",
		"name": "Ovorhangaj",
		"country_id": "146"
	},
	{
		"id": "2497",
		"name": "Selenge",
		"country_id": "146"
	},
	{
		"id": "2498",
		"name": "Suhbaatar",
		"country_id": "146"
	},
	{


, r26 }
	{ rl r15, r16, r17 ; s2a r5, r6, r7 ; lb_u r25, r26 }
	{ rl r15, r16, r17 ; sadah r5, r6, r7 }
	{ rl r15, r16, r17 ; sb r25, r26 ; mulhha_ss r5, r6, r7 }
	{ rl r15, r16, r17 ; sb r25, r26 ; seq r5, r6, r7 }
	{ rl r15, r16, r17 ; sb r25, r26 ; xor r5, r6, r7 }
	{ rl r15, r16, r17 ; seqi r5, r6, 5 ; sb r25, r26 }
	{ rl r15, r16, r17 ; sh r25, r26 ; mulhh_uu r5, r6, r7 }
	{ rl r15, r16, r17 ; sh r25, r26 ; s3a r5, r6, r7 }
	{ rl r15, r16, r17 ; sh r25, r26 ; tblidxb3 r5, r6 }
	{ rl r15, r16, r17 ; shli r5, r6, 5 ; prefetch r25 }
	{ rl r15, r16, r17 ; shri r5, r6, 5 ; lb_u r25, r26 }
	{ rl r15, r16, r17 ; slt r5, r6, r7 }
	{ rl r15, r16, r17 ; slte r5, r6, r7 ; sh r25, r26 }
	{ rl r15, r16, r17 ; slti r5, r6, 5 ; lb_u r25, r26 }
	{ rl r15, r16, r17 ; sltib_u r5, r6, 5 }
	{ rl r15, r16, r17 ; sra r5, r6, r7 ; prefetch r25 }
	{ rl r15, r16, r17 ; sub r5, r6, r7 ; lb_u r25, r26 }
	{ rl r15, r16, r17 ; sw r25, r26 ; clz r5, r6 }
	{ rl r15, r16, r17 ; sw r25, r26 ; nor r5, r6, r7 }
	{ rl r15, r16, r17 ; sw r25, r26 ; slti_u r5, r6, 5 }
	{ rl r15, r16, r17 ; tblidxb0 r5, r6 }
	{ rl r15, r16, r17 ; tblidxb2 r5, r6 }
	{ rl r15, r16, r17 ; xor r5, r6, r7 }
	{ rl r5, r6, r7 ; addi r15, r16, 5 ; lw r25, r26 }
	{ rl r5, r6, r7 ; and r15, r16, r17 }
	{ rl r5, r6, r7 ; fnop ; prefetch r25 }
	{ rl r5, r6, r7 ; info 19 ; lw r25, r26 }
	{ rl r5, r6, r7 ; lb r25, r26 ; and r15, r16, r17 }
	{ rl r5, r6, r7 ; lb r25, r26 ; shl r15, r16, r17 }
	{ rl r5, r6, r7 ; lb_u r25, r26 ; andi r15, r16, 5 }
	{ rl r5, r6, r7 ; lb_u r25, r26 ; shli r15, r16, 5 }
	{ rl r5, r6, r7 ; lh r25, r26 ; and r15, r16, r17 }
	{ rl r5, r6, r7 ; lh r25, r26 ; shl r15, r16, r17 }
	{ rl r5, r6, r


          ),
          const ApiField(
            name: 'limit',
            label: 'Limit',
            hint: 'Maximum number of events to return (optional)',
          ),
          const ApiField(
            name: 'since_id',
            label: 'Since ID',
            hint: 'Events after this ID (optional)',
          ),
          const ApiField(
            name: 'filter',
            label: 'Filter',
            hint: 'Filter expression (optional)',
          ),
          const ApiField(
            name: 'fields',
            label: 'Fields',
            hint: 'Comma-separated list of fields to return (optional)',
          ),
          const ApiField(
            name: 'verb',
            label: 'Verb',
            hint: 'Filter by event type/verb (optional)',
          ),
        ],
      };
}
import 'package:apis/apis.dart';
import 'package:apis/network/remote/shopify/rest/gift_card/abstract/gift_card_service.dart';
import 'package:api_explorer/services/api_request_handler.dart';
import 'package:get_it/get_it.dart';
import 'package:api_explorer/services/api_service_registry.dart';

///*******************************************************************
///**************** 🔎 Search Gift Card 🔎 ******************
///*******************************************************************

class SearchesForGiftCardsHandler implements ApiRequestHandler {
  @override
  Future<Map<String, dynamic>> handleRequest(
    String method,
    Map<String, String> params,
  ) async {
    switch (method) {
      case 'GET':
        try {
          final query = params['query'] ?? '';
          final limit = int.tryParse(params['limit'] ?? '');
          final order = params['order'];
          final fields = params['fields'];
          final createdAtMin = params['created_at_min'];
          final createdAtMax = params['created_at_max'];
          final updatedAtMin = params['updated_at_min'];
          final updatedAtMax = params['updated_at_max'];

          final response =
              await GetIt.I.get<GiftCardService>().searchesForGiftCards(
                    apiVersion: ApiNetwork.apiVersion,
                    query: query,
                    limit: limit,
                    order: order,
                    fields: fields,
                    createdAtMin: createdAtMin,
                    createdAtMax: createdAtMax,
                    updatedAtMin: updatedAtMin,
                    updatedAtMax: updatedAtMax,
                  );

          final resultList =
              response.giftCards?.map((gc) => gc.toJson()).toList() ?? [];

          return {
            "status": "success",
            "message": "Gift cards search completed.",
            "results": resultList,
            "timestamp": DateTime.now().toIso8601String(),
          };
        } catch (e) {
          return {
            "status": "error",
            "message": "Search failed: ${e.toString()}",
            "timestamp": DateTime.now().toIso8601String(),
          };
        }

      default:
        return {
          "error":
              "Method $method not supported for Search Gift Cards API. Only GET is allowed.",
        };
    }
  }

  @override
  List<String> get supportedMethods => ['GET'];

  @override
  Map<String, List<ApiField>> get requiredFields => {
        'GET': [
          const ApiField(
            name: 'query',
            label: 'Search Query',
            hint: 'e.g., code:h99g*',
          ),
          const ApiField(
            name: 'limit',
            label: 'Limit',
            hint: 'Max number of results to return',
            type: ApiFieldType.number,
          ),
          const ApiField(
            name: 'order',
            label: 'Order',
            hint: 'Sort field and direction (e.g. c


 var(--transition-visibility);
    z-index: 10;
}

.media-viewer button.gallery-btn.next {
    left: auto;
    right: 0;
}

.media-viewer button.gallery-btn i {
    --icon-size: 24px;
    --mask-color: var(--main-neutral-secondary);
}

@media (hover: hover) {

    .media-viewer button.gallery-btn:hover {
        background-color: var(--main-surface-primary-op-0-9);
    }

}

/* Images viewer */

/*Images viewer  content */

.media-viewer .img-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.media-viewer .img-wrap.picked {
    cursor: move;
}

.media-viewer .img-wrap img,
.media-viewer .img-wrap img[src=""].active {
    opacity: 0;
    position: absolute;
    transition: opacity 10ms ease-in-out;
}

.media-viewer .img-wrap img.broken-eye,
.media-viewer .img-wrap img.broken-eye[src=""].active {
    background: none;
}

.slideshow .media-viewer .content img {
    transition: opacity 900ms ease-in-out;
}

.media-viewer .content img.active,
.slideshow .media-viewer .content img.active {
    opacity: 1;
}

.media-viewer .content embed,
.media-viewer .content iframe {
    border: 0;
    height: auto;
    width: 100%;
}

.media-viewer-container.docx .media-viewer header,
.media-viewer-container.pdf .media-viewer header {
    position: relative;
}

/* On mouse idle */

.mouse-idle .viewer-bars,
.mouse-idle button.gallery-btn {
    opacity: 0;
    visibility: hidden;
}

.vad.mouse-idle .video-progress-bar.vad,
.mouse-idle .vad .video-progress-bar.vad {
    opacity: 1;
    visibility: visible;
}

.mouse-idle {
    cursor: none !important;
}

.vad.mouse-idle .viewer-vad-control {
    bottom: 16px;
}

/* Errors */

.viewer-error-header {
    color: var(--main-neutral-primary);
    font: var(--text-body-lg);
}

.viewer-error-txt {
    color: var(--main-neutral-primary);
    padding: 40px;
}

.viewer-error-button {
    white-space: nowrap;
}

.viewer-error-buttons div {
    color: var(--main-neutral-primary);
    display: inline-block;
    font-size: 14px;
    line-height: 28px;
    margin: 0 16px;
}

/* Progress bar */

.viewer-progress {
    -webkit-backdrop-filter: blur(48px);
    backdrop-filter: blur(48px);
    background-color: var(--main-surface-primary);
    border-radius: 100%;
    bottom: 20px;
    height: 36px;
    overflow: hidden;
    position: absolute;
    right: 20px;
    transition: var(--transition-all);
    visibility: visible;
    width: 36px;
    z-index: 10;
}

.viewer-progress ul {
    background-color: var(--main-borders-and-lines);
    height: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;


, #0xc0
	lsls r0, r0, #0x12
	adds r1, r1, r0
	mov ip, r1
	ldr r0, _0806291C @ =gGameMode
	ldrb r0, [r0]
	mov sb, r2
	ldr r6, _08062920 @ =gMultiSioStatusFlags
	cmp r0, #1
	bls _0806295A
	movs r5, #0
	ldr r2, _08062924 @ =gMultiplayerConnections
	ldrb r1, [r2]
	movs r0, #1
	ands r1, r0
	adds r7, r2, #0
	cmp r1, #0
	beq _0806295A
	movs r2, #1
	ldr r3, _08062928 @ =gMultiplayerMissingHeartbeats
_080628DA:
	adds r0, r2, #0
	lsls r0, r5
	ldr r4, [r6]
	ands r4, r0
	cmp r4, #0
	bne _08062944
	ldrb r0, [r3]
	adds r1, r0, #1
	strb r1, [r3]
	lsls r0, r0, #0x18
	lsrs r0, r0, #0x18
	cmp r0, #0xb4
	bls _08062948
	movs r0, #0
	ldr r1, _0806292C @ =0x0000FFFF
	bl TasksDestroyInPriorityRange
	ldr r1, _08062930 @ =gBackgroundsCopyQueueCursor
	ldr r0, _08062934 @ =gBackgroundsCopyQueueIndex
	ldrb r0, [r0]
	strb r0, [r1]
	ldr r0, _08062938 @ =sa2__gUnknown_03005390
	strb r4, [r0]
	ldr r1, _0806293C @ =gVramGraphicsCopyCursor
	ldr r0, _08062940 @ =gVramGraphicsCopyQueueIndex
	ldrb r0, [r0]
	strb r0, [r1]
	bl MultiPakCommunicationError
	b _080629DA
	.align 2, 0
_08062918: .4byte gCurTask
_0806291C: .4byte gGameMode
_08062920: .4byte gMultiSioStatusFlags
_08062924: .4byte gMultiplayerConnections
_08062928: .4byte gMultiplayerMissingHeartbeats
_0806292C: .4byte 0x0000FFFF
_08062930: .4byte gBackgroundsCopyQueueCursor
_08062934: .4byte gBackgroundsCopyQueueIndex
_08062938: .4byte sa2__gUnknown_03005390
_0806293C: .4byte gVramGraphicsCopyCursor
_08062940: .4byte gVramGraphicsCopyQueueIndex
_08062944:
	movs r0, #0
	strb r0, [r3]
_08062948:
	adds r3, #1
	adds r5, #1
	cmp r5, #3
	bhi _0806295A
	ldrb r0, [r7]
	asrs r0, r5
	ands r0, r2
	cmp r0, #0
	bne _080628DA
_0806295A:
	ldr r4, _080629C0 @ =gMultiSioRecv
	ldrh


/*
    SPDX-FileCopyrightText: 2014 Eike Hein <hein@kde.org>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#pragma once

#include <QObject>
#include <qqmlregistration.h>

class QAction;
class QActionGroup;
class QMenu;

class ViewPropertiesMenu : public QObject
{
    Q_OBJECT
    QML_ELEMENT

    Q_PROPERTY(QObject *menu READ menu CONSTANT)

    Q_PROPERTY(bool showLayoutActions READ showLayoutActions WRITE setShowLayoutActions NOTIFY showLayoutActionsChanged)
    Q_PROPERTY(bool showLockAction READ showLockAction WRITE setShowLockAction NOTIFY showLockActionChanged)
    Q_PROPERTY(bool showIconSizeActions READ showIconSizeActions WRITE setShowIconSizeActions NOTIFY showIconSizeActionsChanged)

    Q_PROPERTY(int arrangement READ arrangement WRITE setArrangement NOTIFY arrangementChanged)
    Q_PROPERTY(int alignment READ alignment WRITE setAlignment NOTIFY alignmentChanged)
    Q_PROPERTY(bool previews READ previews WRITE setPreviews NOTIFY previewsChanged)
    Q_PROPERTY(bool locked READ locked WRITE setLocked NOTIFY lockedChanged)
    Q_PROPERTY(bool lockedEnabled READ lockedEnabled WRITE setLockedEnabled NOTIFY lockedEnabledChanged)
    Q_PROPERTY(int sortMode READ sortMode WRITE setSortMode NOTIFY sortModeChanged)
    Q_PROPERTY(bool sortDesc READ sortDesc WRITE setSortDesc NOTIFY sortDescChanged)
    Q_PROPERTY(bool sortDirsFirst READ sortDirsFirst WRITE setSortDirsFirst NOTIFY sortDirsFirstChanged)
    Q_PROPERTY(int iconSize READ iconSize WRITE setIconSize NOTIFY iconSizeChanged)

public:
    explicit ViewPropertiesMenu(QObject *parent = nullptr);
    ~ViewPropertiesMenu() override;

    QObject *menu() const;

    bool showLayoutActions() const;
    void setShowLayoutActions(bool show);

    bool showLockAction() const;
    void setShowLockAction(bool show);

    bool showIconSizeActions() const;
    void setShowIconSizeActions(bool show);

    int arrangement() const;
    void setArrangement(int arrangement);

    int alignment() const;
    void setAlignment(int alignment);

    bool previews() const;
    void setPreviews(bool previews);

    bool locked() const;
    void setLocked(bool locked);

    bool lockedEnabled() const;
    void setLockedEnabled(bool lockedEnabled);

    int sortMode() const;
    void setSortMode(int sortMode);

    bool sortDesc() const;
    void setSortDesc(bool sortDesc);

    bool sortDirsFirst() const;
    void setSortDirsFirst(bool sortDirsFirst);

    int iconSize() const;
    void setIconSize(int iconSize);

Q_SIGNALS:
    void showLayoutActionsChanged() const;
    void showLockActionChanged() const;
    void showIconSizeActionsChanged();
    void arrangementChanged() const;
    void alignmentChanged() const;
    void previewsChanged() const;
    void lockedChanged() const;
    void lockedEnabledChanged() const;
    void sortModeChanged() const;
    void sortDescChanged() const;
    void sortDirsFirstChanged() const;
    void iconSizeChanged();

private:
    QMenu *m_menu;
    QMenu *m_arrangementMenu;
    QActionGroup *m_arrangement;
    QMenu *m_alignmentMenu;
    QActionGroup *m_alignment;
    QActionGroup *m_sortMode;
    QMenu *m_iconSizeMenu;
    QActionGroup *m_iconSize;
    QAction *m_sortDesc;
    QAction *m_sortDirsFirst;
    QAction *m_previews;
    QAction *m_locked;
};


izer.right(180);
		// Counterclockwise draw 6 edges of an octagon with edge length b
		// in the colour endcoded by colorNo
		polygonPart(b, 8, true, 6, colorNo);
		Turtleizer.forward(c, colorNo);
		// Clockwise draw 2 edges of an octagon with edge length b
		// in the colour endcoded by colorNo
		polygonPart(h/2.0, 4, false, 2, colorNo);
		Turtleizer.penUp();
		Turtleizer.left(90);
		Turtleizer.backward(h, java.awt.Color.decode("0xffffff"));
		Turtleizer.penDown();
	}

	/**
	 * Draws digit 6 in the colour specified by colorNo with font height h
	 * from the current turtle position.
	 * @param h
	 * @param colorNo
	 */
	private static void digit6(??? h, ??? colorNo) {
		// TODO: Check and accomplish variable declarations:

		// Octagon edge length
		??? b = h * 0.5 / (Math.sqrt(2.0) + 1);
		// Cathetus of the corner triangle outside the octagon
		??? c = b / Math.sqrt(2.0);
		Turtleizer.penUp();
		Turtleizer.forward(c, java.awt.Color.decode("0xffffff"));
		Turtleizer.penDown();
		Turtleizer.right(180);
		// Counterclockwise draw all 8 edges of an octagon with edge length b
		// in the colour endcoded by colorNo
		polygonPart(b, 8, true, 8, colorNo);
		Turtleizer.penUp();
		Turtleizer.left(180);
		Turtleizer.forward(b, java.awt.Color.decode("0xffffff"));
		Turtleizer.penDown();
		Turtleizer.forward(2 * c + b, colorNo);
		// Clockwise draw 3 edges of an octagon with edge length b
		// in the colour endcoded by colorNo
		polygonPart(b, 8, false, 3, colorNo);
		Turtleizer.penUp();
		Turtleizer.left(135);
		Turtleizer.backward(h-c, java.awt.Color.decode("0xffffff"));
		Turtleizer.penDown();
	}

	/**
	 * Draws digit 8 in the colour specified by colorNo with font height h
	 * from the current turtle position.
	 * @param h
	 * @param colorNo
	 */
	private static void digit8(??? h, ??? colorNo) {
		// TODO: Check and accomplish variable declarations:

		// Octagon edge length
		??? b = h * 0.5 / (Math.sqrt(2.0) + 1);
		// Cathetus of the corner triangle outside the octagon
		??? c = b / Math.sqrt(2.0);
		Turtleizer.penUp();
		Turtleizer.forward(c, java.awt.Color.decode("0xffffff"));
		Turtleizer.penDown();
		Turtleizer.right(180);
		// Counterclockwise draw all 8 edges of an octagon with edge length b
		// in the colour endcoded by colorNo
		polygonPart(b, 8, true, 8, colorNo);
		Turtleizer.penUp();
		Turtleizer.left(180);
		Turtleizer.forward(b, java.awt.Color.decode("0xffffff"));
		Turtleizer.right(45);
		Turtleizer.forward(b, java.awt.Color.decode("0xffffff"));
		Turtleizer.left(135);
		Turtleizer.penDown();
		// Clockwise draw 7 edges of an octagon with edge length b
		// in the colour endcoded by colorNo
		polygonPart(b, 8, false, 7, colorNo);
		Turtleizer.penUp();
		Turtleizer.left(45);
		Turtleizer.forward(h/2.0, java.awt.Color.decode("0xffffff"));
		Turtleizer.left(90);
		Turtleizer.forward(c, java.awt.Color.decode